#board-studio{--bq-height:min(36vh,340px)}
#board-studio.bs-cut-expanded{--bq-height:min(72vh,680px)}
#board-studio.bs-shot-prep{--bq-height:min(70vh,720px)}
#board-studio .bq-panel{position:absolute;left:64px;right:12px;bottom:64px;height:var(--bq-height);z-index:12;background:var(--bs-panel);color:var(--bs-ink);border:1px solid var(--bs-line);border-radius:12px;overflow:auto;padding:12px;box-sizing:border-box}
.bq-toolbar{position:sticky;top:-12px;background:var(--bs-panel);z-index:2;padding:4px 0 8px}
.bq-body{display:flex;gap:12px;align-items:flex-start}
.bq-body>video:not([hidden]){flex:0 0 230px;width:230px;position:sticky;top:120px}
#board-studio .bq-panel[hidden]{display:none}
#board-studio .bq-panel header,#board-studio .bq-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#board-studio .bq-panel h3{margin:0 auto 0 0;font-size:14px}
#board-studio .bq-panel button,#board-studio .bq-panel select,#board-studio .bq-panel input{background:var(--bs-soft);color:var(--bs-ink);border:1px solid var(--bs-line);border-radius:6px;padding:6px;font:inherit;max-width:240px}
#board-studio .bq-panel button:disabled{opacity:.5}
#board-studio .bq-panel p{font-size:12px;color:var(--bs-muted);margin:6px 0}
#board-studio .bq-actions{margin-top:8px}
#board-studio .bq-slot label{display:grid;grid-template-columns:65px 1fr;align-items:center;font-size:11px;gap:4px}
#board-studio .bq-slot input{min-width:0;width:100%;box-sizing:border-box}
#board-studio .bq-slots{display:flex;gap:8px;overflow:auto;padding:4px 0;min-width:0;flex:1;align-items:start}
#board-studio .bq-slot{flex:0 0 230px;min-width:0;border:1px solid var(--bs-line);border-radius:8px;padding:8px;display:grid;grid-template-columns:minmax(0,1fr);gap:5px}
#board-studio .bq-slot select{width:100%;min-width:0}
#board-studio .bq-slot-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px}
#board-studio .bq-slot-actions button{font-size:11px;min-width:0}
#board-studio .bq-panel video{max-height:180px;max-width:100%}
#board-studio .bq-handoff{border-top:1px solid var(--bs-line);margin-top:10px;padding-top:8px}
#board-studio .bq-handoff[hidden]{display:none}
#board-studio .bq-shot{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px}
#board-studio .bq-shot textarea{min-width:180px;max-width:100%;background:var(--bs-soft);color:var(--bs-ink);border:1px solid var(--bs-line);border-radius:6px;padding:6px;font:inherit}
#board-studio .bq-slot input[type=checkbox]{width:auto;justify-self:start}
#board-studio.bs-cut-open .bs-stage{bottom:calc(var(--bq-height) + 74px)}
#board-studio.bs-cut-open .bn-panel{bottom:calc(var(--bq-height) + 74px);max-height:calc(100vh - var(--bq-height) - 140px)}
#board-studio.bs-cut-open .bs-selection{bottom:calc(var(--bq-height) + 82px)}
@media(max-width:700px){#board-studio .bq-panel{left:8px}.bq-panel select{max-width:150px}}
.bq-alternatives { display:flex; gap:5px; overflow-x:auto; padding:8px 0; }
#board-studio .bq-panel .bq-alternative { box-sizing:border-box; flex:0 0 calc((100% - 10px)/3); min-width:64px; padding:4px; text-align:left; white-space:normal; display:flex; flex-direction:column; gap:4px; }
.bq-panel .bq-alternative video { width:60px; height:36px; object-fit:cover; margin:0; pointer-events:none; }
.bq-alternative strong,.bq-alternative span { font-size:10px; }
.bq-alternative[aria-pressed="true"] { outline:2px solid #bfa6ea; background:#433751; }
.bq-duration-choice { padding:8px; border:1px solid #c3a26c; border-radius:6px; }
.bq-duration-choice button { margin-top:5px; white-space:normal; }
.bq-candidate-shelf { display:flex; gap:8px; flex-wrap:wrap; }
#board-studio .bq-slot[data-playing="true"]{border-color:#bfa6ea;background:var(--bs-soft)}
@media(max-width:700px){.bq-body{flex-direction:column}.bq-body>video:not([hidden]){flex:none;width:160px;position:static}.bq-body>.bq-slots{width:100%;flex:none}}
