.bst{--bs-rim:#554c37;--bs-muted:#a7a58e;--bs-gold:#c9ab70;--bs-green:#8eac78;--bs-red:#c27767;min-width:0;max-width:100%;font:13px/1.55 var(--sans)}
.bst *{box-sizing:border-box;min-width:0}.bst-tabs,.bst-controls,.bst-acts,.bst-lanes,.bst-zoom,.bst-help,.bst-presets,.bst-refs,.bst-label{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.bst-tabs{border-bottom:1px solid var(--bs-rim);padding:0 0 9px;margin-bottom:8px}
.bst-btn{white-space:normal;background:#242a23;border:1px solid #454a3b;color:#dfd5be;border-radius:4px;padding:5px 9px;font-size:12px;line-height:1.42;overflow-wrap:anywhere}
.bst-btn:hover,.bst-btn:focus-visible{border-color:#baa06a;color:#f2d8a7}
.bst-btn[aria-pressed=true],.bst-pick:not([disabled]){background:#3a3223;border-color:#8e7449;color:#f0d39b}
.bst-controls{padding:2px 0 8px;justify-content:space-between;align-items:center;gap:8px 15px}
.bst-lane{color:var(--bs-muted);display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px}.bst-lane select{max-width:180px;background:#222721;color:#e6deca;border:1px solid #68604a;border-radius:3px;font:12px var(--sans);padding:5px}
.bst-zoom-value{color:var(--bs-gold);font:11px var(--mono);min-width:36px;text-align:right}
.bst-presets{margin-bottom:6px}.bst-preset{border-color:#7b6847}.bst-preset:hover{background:#3b3627}.bst-reset{color:#bd9f8f}
.bst-explain,.bst-summary{margin:4px 0;color:var(--bs-muted);font-size:12px;overflow-wrap:anywhere}.bst-summary{color:#d9ccab}
.bst-help{margin:8px 0;color:var(--bs-muted);gap:8px 14px}
.bst-key{display:inline-flex;align-items:center;gap:4px;font-size:11px}.bst-key:before{content:"";width:8px;height:8px;border-radius:2px;border:1px solid currentColor}.bst-key.bst-gold{color:var(--bs-gold)}.bst-key.bst-good{color:var(--bs-green)}.bst-key.bst-bad{color:var(--bs-red)}.bst-key.bst-wait{color:#a5a492}
.bst-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,clamp(215px,29%,350px));max-width:100%;border:1px solid var(--bs-rim);border-radius:6px;overflow:hidden;background:#191e1a}
.bst-board{position:relative;width:100%;height:clamp(430px,66vh,720px);min-width:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y;background:radial-gradient(#a8a28419 1px,transparent 1px) 0 0/15px 15px #131814;scrollbar-color:#635639 #1c231d}
.bst-board:focus-visible{outline:2px solid var(--bs-gold);outline-offset:-2px}.bst-board.bst-grab{cursor:grabbing;user-select:none}
.bst-stage{position:relative;width:100%;height:100%;min-width:100%;min-height:100%;overflow:hidden}
.bst-plane{position:absolute;left:0;top:0;width:max-content;transform-origin:0 0;padding:12px 13px}
.bst-matrix{position:relative;z-index:1;display:grid;gap:4px;font-size:12px;min-width:max-content}
.bst-row{display:grid;grid-template-columns:126px repeat(var(--bst-cols), minmax(175px,190px));gap:15px;align-items:start;border-top:1px solid #414039;margin-top:7px;padding-top:6px}
.bst-head{position:sticky;top:0;min-height:42px;border-top:0;margin-top:0}
.bst-lanename{font-weight:600;color:#bfa877;text-align:left;padding:7px 6px;width:126px}.bst-actlabel{color:#ead2a0;border-bottom:1px solid #6e5d40;padding:7px 5px;font:600 14px var(--serif)}
.bst-cell{display:grid;gap:10px}
.bst-node{background:#242923;border:1px solid #60563a;border-radius:5px;text-align:left;display:grid;gap:4px;padding:7px 9px;min-height:49px;color:#eee5d2;overflow-wrap:anywhere}
.bst-node[aria-pressed=true]{outline:2px solid #e4bc75;outline-offset:2px;box-shadow:0 0 12px #d49b3d44}
.bst-node strong{font-weight:600;line-height:1.32}.bst-node small{font:9px/1.35 var(--mono);color:#bca77d}.bst-node.bst-available:hover{background:#363324}
.bst-node.bst-chosen{background:#212f23;border-color:#778f59;color:#e4efd5}.bst-node.bst-chosen small{color:#aed298}
.bst-node.bst-locked{background:#31211e;border-color:#805144;color:#ddbbb0}.bst-node.bst-locked small{color:#ce8e81}
.bst-node.bst-pending{background:#1b211b;border-color:#45483b}.bst-node.bst-pending strong{color:#babcae}
.bst-wires{position:absolute;inset:0;z-index:0;width:100%;height:100%;pointer-events:none;overflow:hidden}
.bst-wire{fill:none;stroke-width:1.35;opacity:.7}.bst-wire.active{stroke-width:2;opacity:1}
.bst-wire.bst-gold{stroke:#c9ab70}.bst-wire.bst-good{stroke:#92b476}.bst-wire.bst-bad{stroke:#bd675c;stroke-dasharray:4 4}
.bst-edge-dot.bst-gold{fill:#c9ab70}.bst-edge-dot.bst-good{fill:#92b476}.bst-edge-dot.bst-bad{fill:#bd675c}
.bst-drawer{max-height:clamp(430px,66vh,720px);overflow:auto;min-width:0;border-left:1px solid var(--bs-rim);padding:12px;overflow-wrap:anywhere;scrollbar-width:thin;scrollbar-color:#675831 #1b201a}
.bst-drawer h3{font:600 19px/1.4 var(--serif);color:#efdcb5;margin:5px 0 7px}
.bst-drawer h4{font-size:12px;color:#deca9e;margin:0 0 4px}
.bst-drawer p{margin:4px 0 8px;color:#c1c2b3;font-size:12px}.bst-eyebrow{font:600 10px var(--mono);letter-spacing:.08em;color:#bdab84}
.bst-label{justify-content:space-between}.bst-badge{border:1px solid #686047;border-radius:3px;padding:2px 4px;color:#e2d0a1;font:10px var(--mono)}
.bst-badge.bst-chosen{color:#b9dba4;border-color:#5b784d}.bst-badge.bst-locked{color:#e7a89c;border-color:#93584c}
.bst-detail-section{border-top:1px solid #3f4639;padding:8px 0 3px;margin:8px 0 0}.bst-detail-section ol,.bst-detail-section ul{padding-inline-start:15px;margin:4px 0;color:#d9d4bc;font-size:12px}
.bst-detail-section li+li{margin-top:3px}.bst-refs .bst-ref{max-width:100%;text-align:left;font-size:11px;padding:4px 6px}.bst-pick{width:100%;text-align:center}
.bst-empty{margin:14px;color:#c4bba2}
@media(max-width:760px){.bst-wrap{grid-template-columns:minmax(0,1fr)}.bst-board{height:clamp(340px,51vh,560px)}.bst-drawer{border-left:0;border-top:1px solid var(--bs-rim);max-height:52vh}.bst-controls{justify-content:start}.bst-btn{padding:4px 7px;font-size:11px}}

/* Fixed chrome and a horizontally synchronized act ruler; card layout itself stays scrollable. */
.bst-toolbar{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:10px;max-width:100%;overflow-x:auto;scrollbar-width:thin;padding:4px 0 5px}
.bst-toolbar-top{border-bottom:1px solid var(--bs-rim);margin-bottom:3px}
.bst-toolbar>.bst-tabs,.bst-toolbar>.bst-presets,.bst-toolbar>.bst-controls{border:0;padding:0;margin:0;flex:none;flex-wrap:nowrap}
.bst-toolbar .bst-tabs,.bst-toolbar .bst-presets,.bst-toolbar .bst-acts,.bst-toolbar .bst-lanes,.bst-toolbar .bst-zoom{flex-wrap:nowrap}
.bst-toolbar .bst-btn,.bst-toolbar select,.bst-toolbar .bst-summary{white-space:nowrap}
.bst-toolbar .bst-summary{font:11px var(--sans);margin:0;flex:none}
.bst-screenreader{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}
.bst-ruler{position:sticky;left:0;top:0;height:0;width:100%;z-index:4;pointer-events:none}
.bst-ruler-mask{height:calc(36px * var(--bst-ruler-scale,1));width:100%;overflow:hidden;background:#161d17;border-bottom:1px solid #6a5940;box-shadow:0 4px 10px #0a100a9b}
.bst-ruler-track{position:absolute;left:0;top:0;width:max-content;transform-origin:0 0;padding:0 13px;will-change:transform}
.bst-ruler-track .bst-head{position:static;padding:0;min-height:34px}
.bst-ruler-placeholder{position:static;visibility:hidden;min-height:27px}
.bst-lane-heading{display:flex;align-items:center;gap:6px}
.bst-lane-face{border:1px solid #816840;object-fit:cover;border-radius:5px;flex:none}
.bst-node-frame{position:relative}.bst-node-frame>.bst-node{width:100%}.bst-node-frame:has(.bst-quick)>.bst-node{padding-right:43px}
.bst-quick{position:absolute;right:5px;top:5px;padding:2px 4px;font-size:9px;line-height:1.3;background:#272818;color:#e3cf9c;border-color:#766547;border-radius:3px;opacity:1}
.bst-node-frame:has(.bst-chosen)>.bst-quick{color:#c6edae;border-color:#75905e;background:#1c3220}
