/* Broadcast Studio (studio.js): the scene editor's layout and the boxes over its preview.
   Everything else on the page uses Shopkeep's own classes from style.css. */
svg.i.up { transform: rotate(180deg); }
.bc-editor { display: grid; grid-template-columns: 180px minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.bc-editor.readonly { grid-template-columns: minmax(0, 1fr) 320px; }
.bc-editor.readonly .bc-tools { display: none; }
.bc-tools .bc-add { display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.bc-tools .bc-add .btn { justify-content: flex-start; }
.bc-center { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bc-label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bc-stage { position: relative; width: 100%; overflow: hidden; background: #000; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line-2); }
.bc-stage iframe, .bc-overlay { position: absolute; left: 0; top: 0; transform-origin: 0 0; border: 0; }
.bc-stage iframe { pointer-events: none; background: #000; }
.bc-overlay { touch-action: none; user-select: none; }
.bc-box { position: absolute; box-sizing: border-box; cursor: move; outline: calc(1px * var(--inv, 1)) dashed rgba(255, 255, 255, 0.25); }
.bc-box:hover { outline-color: rgba(122, 193, 66, 0.8); }
.bc-box.sel { outline: calc(2px * var(--inv, 1)) solid var(--core-green); }
.bc-box.locked { cursor: default; }
.bc-box.locked.sel { outline-style: dashed; }
.readonly .bc-box { cursor: pointer; }
.bc-handle { position: absolute; width: calc(12px * var(--inv, 1)); height: calc(12px * var(--inv, 1)); margin: calc(-6px * var(--inv, 1)); background: #fff; border: calc(2px * var(--inv, 1)) solid var(--core-green); box-sizing: border-box; border-radius: 2px; }
.bc-handle.nw { left: 0; top: 0; cursor: nwse-resize; } .bc-handle.n { left: 50%; top: 0; cursor: ns-resize; } .bc-handle.ne { left: 100%; top: 0; cursor: nesw-resize; }
.bc-handle.e { left: 100%; top: 50%; cursor: ew-resize; } .bc-handle.se { left: 100%; top: 100%; cursor: nwse-resize; } .bc-handle.s { left: 50%; top: 100%; cursor: ns-resize; }
.bc-handle.sw { left: 0; top: 100%; cursor: nesw-resize; } .bc-handle.w { left: 0; top: 50%; cursor: ew-resize; }
.bc-guide { position: absolute; pointer-events: none; background: #ff3d8b; z-index: 10000; }
.bc-guide.v { top: 0; bottom: 0; width: calc(1px * var(--inv, 1)); }
.bc-guide.h { left: 0; right: 0; height: calc(1px * var(--inv, 1)); }
.bc-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bc-layers { max-height: 300px; overflow: auto; }
.bc-layers li { cursor: pointer; padding-top: 6px; padding-bottom: 6px; }
.bc-layers li.on { background: var(--accent-soft); }
.bc-layer-tools { display: flex; gap: 2px; }
.bc-layer-tools .iconbtn.on { color: var(--accent); background: var(--accent-soft); }
.bc-form { gap: 10px; }
.bc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.bc-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bc-checks { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.bc-inline { display: flex; gap: 8px; align-items: center; }
.bc-inline input[type="url"] { flex: 1; }
.bc-dirty { margin: -6px 0 10px; }
.bc-unavailable { margin: 0; padding: 18px; text-align: center; color: var(--ink-2); background: var(--surface-3); border-radius: var(--radius); }
.bc-video { width: 100%; background: #000; border-radius: var(--radius); }
.bc-templates { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; }
.bc-template { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.bc-template span { display: flex; flex-direction: column; }
.bc-template input { width: auto; flex: none; margin-top: 3px; }
.bc-days { display: flex; flex-wrap: wrap; gap: 4px 12px; border: 0; padding: 0; margin: 0; }
.bc-days legend { width: 100%; }
.list li.muted-row > .grow { opacity: 0.6; }
/* The scene loop editor: preview and the ordered item list. */
.bc-editor.loop { grid-template-columns: minmax(0, 1fr) 380px; }
.bc-loop-items { max-height: 520px; overflow: auto; }
.bc-loop-items li { padding-top: 6px; padding-bottom: 6px; }
.bc-loop-items li.on { background: var(--accent-soft); }
.bc-loop-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bc-short { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--danger); }
.bc-loop-item select, .bc-seconds input { padding: 6px 8px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.bc-loop-item select:focus, .bc-seconds input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bc-loop-item select { flex: 1; min-width: 0; }
.bc-grip { cursor: grab; color: var(--ink-3); user-select: none; font-size: 18px; line-height: 1; }
.bc-seconds { display: flex; align-items: center; gap: 4px; flex: none; margin: 0; font-size: 13px; color: var(--ink-2); }
.bc-seconds input { width: 4.5em; }
@media (max-width: 1200px) {
  .bc-editor { grid-template-columns: minmax(0, 1fr) 300px; }
  .bc-tools { grid-column: 1 / -1; }
  .bc-tools .bc-add { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .bc-editor, .bc-editor.readonly, .bc-editor.loop { grid-template-columns: minmax(0, 1fr); }
}
#bc-screen-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
/* Allowed sites: the add form's error and the link test's answer. */
.bc-site-error { margin: -6px 0 0; color: var(--danger); }
.bc-site-result { margin: 12px 0 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
