/* Astavin Studio — brand: deep red (the pouch), black, greys, white */
:root {
  --bg: #0a0a0b; --panel: #121214; --panel2: #18181b; --line: #26262b; --line2: #34343a;
  --tx: #f3f3f4; --mu: #8d8d95; --mu2: #5f5f67;
  --red: #962725; --red2: #b5302c; --redbg: rgba(150, 39, 37, .16);
  --ok: #4fbf7f; --warn: #d9a441;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--tx); font: 15px/1.45 Inter, -apple-system, system-ui, sans-serif; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--tx); background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; width: 100%; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--line2); }
textarea { resize: vertical; }
.mono { font-family: var(--mono); }
.mu { color: var(--mu); } .small { font-size: 13px; }

/* top bar */
.top { height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 5; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; text-decoration: none; }
.logo .mark { width: 30px; height: 20px; position: relative; }
.logo .mark i { position: absolute; top: 1px; width: 18px; height: 18px; border-radius: 50%; }
.logo .mark i:first-child { left: 0; background: #f3f3f4; } .logo .mark i:last-child { left: 10px; background: var(--red); opacity: .95; }
.top .tag { color: var(--mu); }
.top .sp { flex: 1; }
.engine { font-family: var(--mono); font-size: 13px; padding: 6px 12px; border-radius: 99px; background: #151a16; color: var(--ok); display: flex; align-items: center; gap: 8px; }
.engine::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.engine.off { background: #1d1414; color: #d46b68; }
.btn { border: 1px solid var(--line2); background: var(--panel2); border-radius: 99px; padding: 9px 16px; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { border-color: #4a4a52; }
.btn.light { background: #f3f3f4; color: #0a0a0b; border-color: #f3f3f4; font-weight: 500; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; font-weight: 500; }
.btn.red:hover { background: var(--red2); }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .45; cursor: default; }
.iconbtn { background: none; border: none; color: var(--mu); padding: 6px; border-radius: 8px; } .iconbtn:hover { color: var(--tx); background: var(--panel2); }

/* layout */
.shell { display: grid; grid-template-columns: 300px 1fr; min-height: calc(100vh - 64px); }
.side { border-right: 1px solid var(--line); padding: 18px 12px; }
.side h4 { margin: 4px 10px 12px; font-weight: 400; color: var(--mu); font-size: 14px; }
.proj { display: flex; gap: 12px; padding: 10px; border-radius: 12px; cursor: pointer; align-items: center; }
.proj:hover { background: var(--panel); } .proj.sel { background: var(--panel2); }
.badge { width: 42px; height: 42px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--mu); flex: none; }
.proj.sel .badge { background: #f3f3f4; color: #0a0a0b; border-color: #f3f3f4; }
.proj .t { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mu); }
.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mu2); }
.dot.review::before, .dot.waiting_gate::before { background: var(--red2); }
.dot.running::before { background: var(--warn); } .dot.done::before { background: var(--ok); } .dot.error::before { background: #e05252; }

/* new brief */
.page { max-width: 1100px; margin: 0 auto; padding: 56px 40px 80px; }
.page h1 { font-size: 46px; letter-spacing: -.02em; margin: 0 0 12px; font-weight: 600; }
.lead { color: var(--mu); font-size: 18px; max-width: 760px; margin: 0 0 32px; }
.fmts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 26px; }
.fmt { position: relative; border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 18px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; min-height: 196px; }
.fmt:hover { border-color: var(--line2); }
.fmt.sel { border-color: #f3f3f4; box-shadow: 0 0 0 1px #f3f3f4 inset; }
.fmt.sel::after { content: "✓"; position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; background: #f3f3f4; color: #0a0a0b; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.fmt b { font-size: 19px; font-weight: 500; } .fmt p { margin: 0; color: var(--mu); font-size: 14px; flex: 1; }
.fmt .ft { font-family: var(--mono); font-size: 12px; color: var(--mu2); }
.grid2 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field label { display: block; color: var(--mu); font-size: 14px; margin-bottom: 8px; }
.drop { border: 1px solid var(--line); background: var(--panel2); border-radius: 16px; margin: 10px 0 22px; overflow: hidden; }
.drop.over { border-color: var(--red2); }
.drop textarea { border: none; background: transparent; min-height: 240px; padding: 18px; font-size: 16px; }
.drop .bar { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.chip { font-size: 13px; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; display: inline-flex; gap: 6px; align-items: center; }
.go { display: flex; align-items: center; gap: 18px; }
.go .btn { padding: 14px 24px; font-size: 16px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 70px; padding-top: 34px; border-top: 1px solid var(--line); }
.steps .n { font-family: var(--mono); color: var(--red2); font-size: 13px; } .steps b { display: block; margin: 10px 0 6px; font-weight: 500; font-size: 17px; }
.err { color: #e47c79; font-size: 14px; }

/* project */
.proj-wrap { display: grid; grid-template-columns: 1fr 420px; min-height: calc(100vh - 64px); }
.pmain { padding: 26px 36px; border-right: 1px solid var(--line); min-width: 0; }
.phead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.phead h2 { margin: 0; font-weight: 500; font-size: 26px; }
.pill { font-family: var(--mono); font-size: 13px; padding: 6px 12px; border-radius: 99px; background: var(--panel2); display: inline-flex; gap: 8px; align-items: center; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mu2); }
.pill.review::before, .pill.waiting_gate::before { background: var(--red2); } .pill.running::before { background: var(--warn); } .pill.done::before { background: var(--ok); }
.prow { display: flex; align-items: center; gap: 10px; margin: 18px 0; flex-wrap: wrap; }
.tabs { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 4px; }
.tabs button { background: none; border: none; color: var(--mu); padding: 8px 16px; border-radius: 99px; }
.tabs button.on { background: var(--panel2); color: var(--tx); }
.meta { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--mu2); }
.empty { text-align: center; color: var(--mu); padding: 80px 20px; border: 1px dashed var(--line); border-radius: 16px; margin-top: 10px; }
.doc { white-space: pre-wrap; font-size: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; max-height: 70vh; overflow: auto; }

/* gate */
.gate { border: 1px solid var(--red); background: var(--redbg); border-radius: 14px; padding: 18px; margin: 0 0 18px; }
.gate h3 { margin: 0 0 8px; font-weight: 500; }
.gate .msg { white-space: pre-wrap; color: #e6e6e8; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.thumbs img { max-height: 300px; max-width: 100%; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; }
.thumbs a.f { font-size: 13px; }

/* notes / activity panel */
.pside { display: flex; flex-direction: column; min-height: 0; height: calc(100vh - 64px); position: sticky; top: 64px; }
.pside .hd { padding: 26px 26px 10px; display: flex; align-items: baseline; gap: 10px; }
.pside .hd b { font-size: 20px; font-weight: 500; }
.log { flex: 1; overflow: auto; padding: 0 26px 10px; display: flex; flex-direction: column; gap: 10px; }
.ev { font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.ev .w { color: var(--mu); font-size: 12px; font-family: var(--mono); display: block; margin-bottom: 3px; }
.ev.say, .ev.post { border-left: 2px solid var(--red); padding-left: 10px; }
.ev.tool { color: var(--mu2); font-size: 12px; font-family: var(--mono); }
.ev.error { color: #e47c79; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 20; }
.modal .box { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; width: min(720px, 94vw); max-height: 88vh; overflow: auto; padding: 24px; }
.modal h3 { margin: 0 0 14px; font-weight: 500; }
.krow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; margin-bottom: 10px; }
.krow .k { font-size: 14px; } .krow .k small { display: block; color: var(--mu); font-family: var(--mono); font-size: 11px; }
pre.chk { background: var(--panel2); border-radius: 10px; padding: 12px; font-size: 12px; overflow: auto; }

@media (max-width: 1100px) { .fmts { grid-template-columns: repeat(4, 1fr); } .proj-wrap { grid-template-columns: 1fr; } .pside { position: static; max-height: none; } }
@media (max-width: 760px) { .top { padding: 0 12px; gap: 8px; } .top .tag { display: none; } .logo { font-size: 16px; } .top .btn.light { padding: 7px 12px; } .engine { font-size: 11px; padding: 5px 9px; } .pmain { padding: 18px 16px; } .shell { grid-template-columns: 1fr; } .side { display: none; } .grid2 { grid-template-columns: 1fr; } .fmts { grid-template-columns: 1fr 1fr; } .page { padding: 30px 16px; } .steps { grid-template-columns: 1fr; } }

.dropzone { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; border-style: dashed; padding: 20px; }
.dropzone:hover { border-color: var(--line2); }
.page h1 { margin-bottom: 28px; }

/* ===== review = our internal Frame's player (web/frame.js), in Astavin colours ===== */
.pmain.review { display: flex; flex-direction: column; height: calc(100vh - 64px); padding: 16px 0 0; }
.pmain.review > #phead, .pmain.review > #gate, .pmain.review > .prow { padding: 0 20px; }
.pmain.review .prow { margin: 12px 0 0; }
.pmain.review #tabbody { flex: 1; min-height: 0; display: flex; margin-top: 12px; border-top: 1px solid var(--line); }
.fr { --body: #d4d4d8; --hook: #b5302c; --accent: #b5302c; --accent2: #cf3d38; font-size: 14px; }
.fr button { font: inherit; color: var(--tx); background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; cursor: pointer; }
.fr button:hover { border-color: var(--line2); }
.fr button.primary { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.fr button.primary:hover { background: var(--red2); }
.fr button.ghost { background: transparent; }
.fr button.danger { background: #b3262a; border-color: #b3262a; color: #fff; font-weight: 600; }
.fr button:disabled { opacity: .45; cursor: default; }
.fr select { width: auto; padding: 6px 8px; border-radius: 8px; background: var(--bg); }
.fr textarea { background: var(--bg); border-radius: 8px; padding: 9px 11px; }
.fr .muted { color: var(--mu); } .fr .small { font-size: 12px; } .fr .spacer { flex: 1; }
.fr .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .fr .row.end { justify-content: flex-end; margin-top: 16px; }
.fr .chip { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); color: var(--mu); white-space: nowrap; text-decoration: none; cursor: default; }
.fr a.chip { cursor: pointer; font-size: 12px; padding: 3px 10px; }
.fr .chip.body { color: #e4e4e7; border-color: #6b6b73; }
.fr .chip.hook { color: #f08a86; border-color: #7a2422; }
.fr .chip.ok { color: #fff; border-color: #f3f3f4; }
.fr .chip.sent { color: #9a9aa2; border-style: dashed; }
.fr .chip.prev { background: transparent; border: 1px dashed currentColor; }
.modal.fr .box { width: min(440px, 100%); }
.modal.fr .err { color: #e47c79; min-height: 1em; margin-top: 8px; }
#frToast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--line); padding: 10px 16px; border-radius: 8px; z-index: 70; }
.fr.stage { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.fr .stage-top { display: flex; gap: 8px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fr .videos { flex: 1 1 0; min-height: 0; display: flex; gap: 14px; justify-content: center; align-items: center; padding: 14px; background: #070708; }
.fr .vwrap { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: 100%; min-height: 0; cursor: pointer; background: #000; border-radius: 6px; overflow: hidden; }
.fr .vwrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; transform: translateZ(0); }
.fr .vwrap .tag { position: absolute; top: 8px; left: 8px; font-size: 12px; background: rgba(0,0,0,.6); padding: 2px 8px; border-radius: 99px; color: #fff; pointer-events: none; }
.fr .bigplay { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; pointer-events: none; transition: opacity .15s; }
.fr .bigplay::after { content: ""; margin-left: 6px; border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent #fff; }
.fr .vwrap.playing .bigplay { opacity: 0; }
.fr .controls { padding: 10px 16px 12px; border-top: 1px solid var(--line); background: var(--panel); }
.fr.fside { display: flex; flex-direction: column; min-height: 0; height: 100%; background: var(--panel); }
.fr .ftabs { display: flex; border-bottom: 1px solid var(--line); }
.fr .ftabs button { flex: 1; border: 0; border-radius: 0; background: transparent; padding: 14px 12px; color: var(--mu); }
.fr .ftabs button.on { color: var(--tx); box-shadow: inset 0 -2px 0 var(--red2); }
.fr .pane { flex: 1; min-height: 0; overflow: auto; padding: 12px; }
.fr .composer { border-top: 1px solid var(--line); padding: 12px; display: grid; gap: 8px; }
.fr .composer textarea { min-height: 64px; resize: vertical; }
.fr .actions { border-top: 1px solid var(--line); padding: 12px; display: grid; gap: 6px; }
.fr .actions .fix { padding: 12px; font-size: 15px; }
.fr .actions .fix .n { background: rgba(0,0,0,.25); border-radius: 99px; padding: 1px 8px; margin-left: 6px; font-size: 13px; }
.fr .actions .ap { border: 0; color: var(--mu); } .fr .actions .ap:hover:not(:disabled) { color: var(--tx); }
.fr .filters { display: flex; gap: 6px; margin-bottom: 10px; align-items: center; flex-wrap: wrap; }
.fr .filters button { padding: 3px 9px; font-size: 12px; } .fr .filters button.on { border-color: #6b6b73; color: #fff; }
.fr .c { padding: 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; background: var(--panel2); }
.fr .c.done { opacity: .55; } .fr .c.earlier { opacity: .62; border-style: dashed; } .fr .c.earlier:hover { opacity: .9; }
.fr .c .h { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.fr .c .who { font-weight: 600; }
.fr .c .t, .fr .check .t { font-family: var(--mono); font-size: 12px; color: #f08a86; cursor: pointer; }
.fr .c .txt { white-space: pre-wrap; word-break: break-word; }
.fr .c .acts { display: flex; gap: 10px; margin-top: 6px; font-size: 12px; color: var(--mu); }
.fr .c .acts a { cursor: pointer; } .fr .c .acts a:hover { color: var(--tx); }
.fr .c .replies { margin: 8px 0 0 12px; border-left: 2px solid var(--line); padding-left: 10px; }
.fr .c .replies .r { margin-bottom: 6px; }
.fr .earlier-head { margin: 14px 0 6px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.fr .words { line-height: 2; } .fr .words span { cursor: pointer; padding: 1px 2px; border-radius: 3px; }
.fr .words span:hover { background: var(--panel2); } .fr .words span.now { background: var(--red); color: #fff; }
.fr .words span.extra { text-decoration: underline wavy #d9a441; }
.fr .words .miss { color: #f08a86; text-decoration: line-through; font-size: 12px; margin: 0 3px; cursor: pointer; }
.fr .check { padding: 10px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line); margin-bottom: 12px; }

/* review bottom bar: the studio's look (thin segment bars, white play circle) with Frame's functions */
.fr .controls { padding: 14px 20px 12px; }
.fr .timeline { position: relative; height: 46px; cursor: pointer; margin: 0 0 8px; user-select: none; touch-action: none; }
.fr .timeline .segs { position: absolute; left: 0; right: 0; top: 14px; display: flex; gap: 4px; }
.fr .timeline .seg { min-width: 0; }
.fr .timeline .seg .bar { height: 7px; border-radius: 4px; background: var(--line2); position: relative; overflow: hidden; }
.fr .timeline .seg .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--red2); }
.fr .timeline .seg.now .bar { background: #4a4a52; }
.fr .timeline .seg span { display: block; font-size: 11px; color: var(--mu); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr .timeline .seg.now span { color: var(--tx); }
.fr .timeline .seg span small { color: var(--mu2); font-size: 10px; margin-left: 4px; }
.fr .timeline .marks { position: absolute; left: 0; right: 0; top: 0; height: 12px; }
.fr .timeline .mark { position: absolute; top: 1px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--red2); }
.fr .timeline .mark.body { background: var(--red2); } .fr .timeline .mark.hook { background: #f08a86; }
.fr .timeline .mark.done { opacity: .35; }
.fr .timeline .mark.span { border-radius: 3px; margin-left: 0; height: 5px; top: 4px; }
.fr .timeline .mark.earlier { background: transparent !important; box-shadow: inset 0 0 0 2px #8d8d95; }
.fr .timeline .range { position: absolute; top: 10px; height: 15px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.55); border-radius: 4px; pointer-events: none; }
.fr .timeline .head { position: absolute; top: 10px; width: 3px; height: 15px; margin-left: -1px; background: #f3f3f4; border-radius: 2px; pointer-events: none; }
.fr .timeline .hover { position: absolute; top: -22px; transform: translateX(-50%); font: 12px var(--mono); background: #000; border: 1px solid var(--line); padding: 2px 6px; border-radius: 4px; pointer-events: none; white-space: nowrap; }
.fr .fctl { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.fr .fctl .grp { display: flex; gap: 8px; align-items: center; }
.fr .fctl .grp.c { gap: 14px; } .fr .fctl .grp.r { justify-content: flex-end; }
.fr .fctl .ib { background: none; border: none; color: var(--mu); padding: 6px 8px; border-radius: 8px; }
.fr .fctl .ib:hover { color: var(--tx); background: var(--panel2); }
.fr .fctl .play { width: 52px; height: 52px; border-radius: 50%; background: #f3f3f4; color: #0a0a0b; border: none; font-size: 17px; padding: 0; }
.fr .fctl .play:hover { background: #fff; }
.fr .fctl select { font-size: 12px; padding: 4px 6px; color: var(--mu); }
.fr .tc { font: 17px var(--mono); white-space: nowrap; } .fr .tc span { color: var(--mu2); }
.fr .segnow { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; background: var(--panel2); border: 1px solid var(--line2); }
.fr .segnow.hook { border-color: var(--red); color: #f08a86; }
.fr .vol { width: 80px; padding: 0; accent-color: var(--red2); cursor: pointer; border: 0; background: none; }
.fr .fkeys { display: flex; gap: 16px; justify-content: center; margin-top: 10px; color: var(--mu); font-size: 12px; }
.fr .fkeys b { font: 11px var(--mono); color: var(--tx); background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; margin-right: 5px; }
.fr .modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fr .modes button { padding: 8px 6px; font-size: 13px; text-align: center; }
.fr .modes button.on { border-color: var(--red2); color: #fff; background: var(--redbg); }
.fr .filters button[data-v].on { border-color: var(--red2); color: #fff; background: var(--redbg); }
.fr .sents { display: flex; flex-direction: column; gap: 2px; }
.fr .sent { display: grid; grid-template-columns: 62px 1fr 26px; gap: 8px; align-items: start; padding: 6px 6px; border-radius: 8px; line-height: 1.5; }
.fr .sent:hover { background: var(--panel2); } .fr .sent.now { background: var(--panel2); box-shadow: inset 2px 0 0 var(--red2); }
.fr .sent .t { padding-top: 2px; }
.fr .sent .w span { cursor: pointer; border-radius: 3px; padding: 0 1px; }
.fr .sent .w span.now { background: var(--red); color: #fff; }
.fr .sent .sc { visibility: hidden; padding: 0; width: 24px; height: 24px; border-radius: 6px; font-size: 15px; line-height: 1; }
.fr .sent:hover .sc { visibility: visible; }
@media (max-height: 820px) { .fr .fkeys { display: none; } .fr .videos { padding: 8px; } .fr .controls { padding: 8px 16px; } }
@media (max-width: 1100px) { .pmain.review { height: auto; } .fr .videos { flex: none; height: 64vh; } .fr .fctl { grid-template-columns: 1fr; } .fr .fctl .grp, .fr .fctl .grp.r { justify-content: center; } .fr .fkeys { display: none; } .fr.fside { min-height: 60vh; } }
.fr .fctl button, .fr .fctl .tc { white-space: nowrap; }
.fr .fctl { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.fr .fctl .grp.c { gap: 10px; }
.fr .vol { width: 64px; }
.fr .fctl .grp.r { gap: 4px; }
.fr .tc { font-size: 15px; }
@media (max-width: 1600px) { .fr .vol { display: none; } }
.fr .c { position: relative; padding-bottom: 12px; }
.fr .c .trash { position: absolute; right: 8px; bottom: 8px; background: none; border: none; color: #e05252; padding: 4px; border-radius: 6px; line-height: 0; opacity: .75; }
.fr .c .trash:hover { opacity: 1; background: rgba(224,82,82,.12); }
.fr .c .pen { position: absolute; right: 36px; bottom: 8px; background: none; border: none; color: #9a9a9a; padding: 4px; border-radius: 6px; line-height: 0; opacity: .8; }
.fr .c .pen:hover { opacity: 1; color: #d0d0d0; background: rgba(255,255,255,.08); }
.fr .c .txt { padding-right: 26px; }
.fr .modes button { position: relative; }
.fr .modes button[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 220px; white-space: normal; text-align: left; font-size: 12px; line-height: 1.4; color: var(--tx); background: #000; border: 1px solid var(--line2); border-radius: 8px; padding: 8px 10px; z-index: 30; pointer-events: none; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.fr .modes button[data-m=frame][data-tip]:hover::after { left: 0; transform: none; }
.fr .modes button[data-m=video][data-tip]:hover::after { left: auto; right: 0; transform: none; }

.navl { color: var(--mu); text-decoration: none; margin-left: 18px; font-size: 15px; } .navl:hover, .navl.on { color: var(--tx); }
.tr-list { display: flex; flex-direction: column; gap: 6px; margin-top: 26px; }
.tr-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; text-decoration: none; }
.tr-row:hover { border-color: var(--line2); } .tr-row .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.tr-head h2 { margin: 0; font-weight: 500; font-size: 24px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tr-lines { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px 0; }
.tr-line { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 7px 18px; line-height: 1.5; }
.tr-line:hover { background: var(--panel2); } .tr-line .ts { font-family: var(--mono); font-size: 13px; color: #f08a86; padding-top: 2px; }
.bar { height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 10px; } .bar i { display: block; height: 100%; background: var(--red2); }
@media (max-width: 760px) { .tr-head h2 { flex-basis: 100%; white-space: normal; } .tr-line { grid-template-columns: 50px 1fr; gap: 10px; padding: 7px 12px; } .navl { margin-left: 4px; } }

.tr-row.busy { cursor: default; }
.tr-row .tbar { width: 180px; height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; flex: none; }
.tr-row .tbar i { display: block; height: 100%; background: var(--red2); transition: width .4s; }
.tr-row .pct { width: 36px; text-align: right; font-family: var(--mono); }
.tr-row .st.error { color: #e47c79; } .tr-row .st.running { color: var(--tx); }
@media (max-width: 760px) { .tr-row .tbar { width: 70px; } }

.lchips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.fr .actions .cc { padding: 10px; border: 1px solid var(--line2); }

.bcards { display: flex; gap: 10px; flex-wrap: wrap; }
.bcard { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; cursor: pointer; text-decoration: none; }
.bcard:hover { border-color: var(--line2); } .bcard.sel { border-color: #f3f3f4; box-shadow: 0 0 0 1px #f3f3f4 inset; }
.bcard img { height: 28px; max-width: 80px; object-fit: contain; } .bcard b { font-weight: 500; }
.bcard.add { color: var(--mu); font-size: 14px; }
.bl-ph { width: 28px; height: 28px; border-radius: 8px; background: var(--panel2); display: grid; place-items: center; color: var(--mu); }
.pchips { display: flex; gap: 8px; flex-wrap: wrap; }
.pchip { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); background: var(--panel); border-radius: 99px; }
.pchip img { width: 26px; height: 26px; object-fit: cover; border-radius: 6px; } .pchip.on { border-color: #f3f3f4; }
.brand { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 18px; }
.bhead { display: flex; gap: 16px; align-items: flex-start; }
.blogo { width: 96px; height: 96px; border: 1px dashed var(--line2); border-radius: 14px; display: grid; place-items: center; cursor: pointer; overflow: hidden; flex: none; background: var(--panel2); }
.blogo img { max-width: 90%; max-height: 90%; object-fit: contain; }
.bname { font-size: 20px; font-weight: 500; margin-bottom: 8px; } .bdesc { min-height: 60px; font-size: 14px; }
.prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 16px; }
.prod { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--panel2); display: flex; flex-direction: column; gap: 8px; }
.prod .phead { display: flex; gap: 6px; } .prod textarea { min-height: 54px; font-size: 13px; }
.prod.addp { justify-content: center; border-style: dashed; background: transparent; }
.photos { display: flex; gap: 6px; flex-wrap: wrap; }
.ph { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph button { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.7); border: none; color: #fff; border-radius: 6px; width: 18px; height: 18px; line-height: 1; padding: 0; font-size: 12px; }
.ph.add { display: grid; place-items: center; color: var(--mu); font-size: 22px; cursor: pointer; border-style: dashed; }

.switches { display: flex; gap: 8px; margin-right: 6px; }
.swbtn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 10px; border: 1px solid var(--line2);
  background: var(--panel2); color: var(--tx); text-decoration: none; font-size: 13px; font-weight: 500; transition: border-color .15s, background .15s; }
.swbtn:hover { border-color: #5a5a62; background: #202024; }
.swbtn .swdot { width: 9px; height: 9px; border-radius: 50%; background: var(--red2); }
.swbtn.polish .swdot { background: linear-gradient(#f3f3f4 50%, #dc143c 50%); }
.swbtn.adloc .swdot { background: #8d8d95; }
.swbtn .swarr { color: var(--mu); font-size: 12px; }
@media (max-width: 900px) { .swbtn .swarr { display: none; } .swbtn { padding: 6px 9px; } }

/* team (owner) */
.team { display: flex; flex-direction: column; gap: 8px; }
.trow { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr auto 32px; gap: 8px; align-items: center; }
.trow .tl b { display: block; font-weight: 500; } .trow .tl small { color: var(--mu); font-size: 12px; }
.trow select, .trow input { min-width: 0; }
.rolepill.owner { justify-self: start; padding: 6px 12px; border-radius: 99px; background: rgba(181,48,44,.18); color: #e47c79; font-size: 13px; }
.roles { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.roles b { color: var(--tx); font-weight: 500; }
@media (max-width: 640px) { .trow { grid-template-columns: 1fr 1fr; } }
body.role-editor #newBtn, body.role-editor #gen, body.role-editor #fixBtn, body.role-editor #apBtn, body.role-editor #lgo, body.role-editor #gYes, body.role-editor #gNo, body.role-editor #send, body.role-editor #stopBtn { display: none !important; }

/* own start frame */
.sfdrop { min-height: 110px; }
.sfthumbs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.sfth { position: relative; } .sfth img { height: 120px; border-radius: 10px; display: block; }
.sfth b { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: #333; color: #fff; font-size: 13px; display: grid; place-items: center; cursor: pointer; }
.sfmode { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; font-size: 14px; }
.sfmode input { width: auto; margin-right: 6px; }
body.role-editor #gOwn { display: none !important; }

/* gate picture captions */
.gfig { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.gfig figcaption { font-size: 12.5px; color: var(--mu); max-width: 260px; }

.gmore { margin-top: 10px; } .gmore summary { cursor: pointer; color: var(--mu); font-size: 13px; }
.gmore .thumbs { margin-top: 10px; }

/* Polished | Raw switch */
.phead { display: flex; align-items: center; gap: 10px; }
.phead .sp { flex: 1; }
.vsw { display: inline-flex; background: var(--panel2); border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.vsw button { background: none; border: none; color: var(--mu); padding: 5px 12px; border-radius: 99px; font-size: 13px; cursor: pointer; }
.vsw button.on { background: var(--tx); color: var(--bg, #0a0a0b); }
.msg.plain p { margin: 0 0 8px; } .msg.plain .ask { font-weight: 600; color: var(--tx); }
.gopts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.gopts .chip { background: var(--panel2); border: 1px solid var(--line); color: var(--tx); border-radius: 99px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.gopts .chip.rec { border-color: #b5302c; } .gopts .chip.sel { background: #b5302c; border-color: #b5302c; }

/* Workings (Polished) */
.wbanner { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 14px; font-size: 15px; }
.wbanner.waiting_gate { border-color: #b5302c; } .wbanner.review, .wbanner.done { border-color: #2f7d4f; }
.wi { width: 22px; text-align: center; flex: none; }
.wdots { display: inline-flex; gap: 4px; margin-left: 4px; } .wdots i { width: 5px; height: 5px; border-radius: 50%; background: var(--mu); animation: wd 1.2s infinite; }
.wdots i:nth-child(2) { animation-delay: .2s; } .wdots i:nth-child(3) { animation-delay: .4s; }
@keyframes wd { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.wfeed { display: flex; flex-direction: column; gap: 2px; }
.witem { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 14px; align-items: start; }
.witem .wt { color: var(--mu); font-size: 12px; }
.wthumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; } .wthumbs img { height: 110px; border-radius: 8px; display: block; }

/* Action required (Oskar 2026-11-26): a project waiting for a human is red in the sidebar */
.proj.act { background: rgba(181,48,44,.16); box-shadow: inset 3px 0 0 #b5302c; }
.proj.act .dot { color: #ff6b66; font-weight: 600; }
.dot.waiting_gate::before { background: #ff4b45; box-shadow: 0 0 0 3px rgba(255,75,69,.25); }
.pill.waiting_gate { color: #ff6b66; }

body.polished .pside.claudeside { display: none; }
body.polished .proj-wrap:has(.pside.claudeside) { grid-template-columns: 1fr; }

/* remove projects from the sidebar (soft) */
.proj { position: relative; }
.proj .prm { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: var(--panel2); border: 1px solid var(--line);
  border-radius: 8px; padding: 4px 6px; font-size: 13px; opacity: 0; cursor: pointer; }
.proj:hover .prm { opacity: 1; } .proj .prm:hover { border-color: #b5302c; }
.rmlink { display: block; margin: 14px 10px 4px; font-size: 12px; color: var(--mu); cursor: pointer; } .rmlink:hover { color: var(--tx); }
.rmrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; font-size: 13px; }
.rmrow .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mu); }
.rmrow button { background: none; border: 1px solid var(--line); color: var(--tx); border-radius: 8px; padding: 3px 8px; font-size: 12px; cursor: pointer; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .2s;
  background: #1c1c1f; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; gap: 14px; align-items: center; z-index: 50; font-size: 14px; }
#toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast button { background: none; border: none; color: #ff6b66; font-weight: 600; cursor: pointer; }

/* spend boxes (Oskar 2026-11-26): value only, colour = kind, full label on hover */
#meta { display: flex; gap: 8px; margin-left: auto; }
.spend { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 12px;
  font-size: 15px; font-weight: 600; cursor: default; border: 1px solid; }
.spend i { width: 8px; height: 8px; border-radius: 50%; }
.spend.gen { color: #8fb8ff; background: rgba(66,133,244,.12); border-color: rgba(66,133,244,.45); } .spend.gen i { background: #4285f4; }
.spend.tech { color: #e6b86a; background: rgba(230,160,50,.12); border-color: rgba(230,160,50,.45); } .spend.tech i { background: #e6a032; }
.spend::after { content: attr(data-tip); position: absolute; right: 0; top: calc(100% + 6px); white-space: nowrap; background: #1c1c1f;
  color: var(--tx); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 400;
  opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 10; }
.spend:hover::after { opacity: 1; }

/* brief page (Oskar 2026-11-26: "make this screen a bit prettier") */
.page.brief { max-width: 1080px; padding-bottom: 120px; }
.bhead h1 { margin-bottom: 6px; } .bhead p { margin: 0 0 30px; font-size: 15px; }
.bsec { display: grid; grid-template-columns: 34px 1fr; gap: 16px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: 22px 22px 20px 18px; margin-bottom: 14px; }
.bnum { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600;
  background: var(--panel2); border: 1px solid var(--line2); color: var(--tx); }
.bbody { min-width: 0; } .bbody h3 { margin: 4px 0 14px; font-size: 17px; font-weight: 600; }
.brief .fmts { margin-bottom: 0; gap: 10px; }
.brief .fmt { background: var(--panel2); min-height: 176px; padding: 16px; transition: border-color .12s, transform .12s, background .12s; }
.brief .fmt:hover { transform: translateY(-1px); }
.brief .fmt.sel { border-color: #b5302c; box-shadow: 0 0 0 1px #b5302c inset; background: linear-gradient(180deg, rgba(181,48,44,.14), var(--panel2) 70%); }
.brief .fmt.sel::after { background: #b5302c; color: #fff; }
.ficon { font-size: 22px; line-height: 1; }
.brief .fmt b { font-size: 17px; } .brief .fmt p { font-size: 13px; line-height: 1.45; }
.bgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { margin: 8px 0 0; font-size: 12.5px; color: var(--mu); }
.dropzone.small { min-height: 92px; margin: 0; padding: 14px; }
.dz-i { display: inline-block; margin-right: 6px; opacity: .8; }
.chipsrow { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.seg { display: inline-flex; background: var(--panel2); border: 1px solid var(--line); border-radius: 99px; padding: 3px; gap: 2px; }
.seg label { margin: 0; cursor: pointer; } .seg input { display: none; }
.seg span { display: inline-block; padding: 7px 14px; border-radius: 99px; font-size: 13.5px; color: var(--mu); transition: background .12s, color .12s; }
.seg label:has(input:checked) span { background: var(--tx); color: var(--bg, #0a0a0b); font-weight: 500; }
.sfgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.sfopts { display: flex; flex-direction: column; gap: 10px; } .sfopts .hint { margin: 0; }
#sfBox .field + #sfIn { margin-top: 18px; }
.gobar { position: sticky; bottom: 16px; margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: rgba(20,20,22,.92); backdrop-filter: blur(8px); border: 1px solid var(--line2); border-radius: 18px; padding: 12px 12px 12px 16px; z-index: 5; }
.gosum { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.gs { font-size: 12.5px; color: var(--mu2); border: 1px dashed var(--line2); border-radius: 99px; padding: 5px 10px; white-space: nowrap; }
.gs.on { color: var(--tx); border-style: solid; background: var(--panel2); }
.gobar .btn { padding: 13px 24px; font-size: 15px; flex: none; }
@media (max-width: 900px) { .bgrid, .sfgrid { grid-template-columns: 1fr; } .brief .fmts { grid-template-columns: repeat(2, 1fr); } }

.bhead { display: block; } .bhead h1 { display: block; } .bhead p { display: block; }
@media (max-width: 760px) {
  .page.brief { padding: 22px 12px 110px; }
  .bsec { grid-template-columns: 1fr; gap: 8px; padding: 16px 14px; }
  .bnum { width: 26px; height: 26px; font-size: 12px; }
  .brief .fmt { min-height: 0; padding: 12px; } .brief .fmt p { display: none; }
  .gosum { display: none; } .gobar { justify-content: flex-end; padding: 10px; }
  .gobar .btn { width: 100%; justify-content: center; }
}

/* brief page fixes (Oskar 2026-11-26): unused sections hidden, brief upload behind a link, steady Visuals box */
.bsec[hidden], .field[hidden] { display: none !important; }
.bsh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; } .bsh h3 { margin: 4px 0 0; }
.blink { font-size: 13px; color: var(--tx); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line2); }
.blink:hover { text-decoration-color: var(--tx); }
#briefBox { margin-top: 14px; }
.seg.full { display: flex; width: 100%; } .seg.full label { flex: 1; } .seg.full span { display: block; text-align: center; }
.hint.sfhint, #brHint { min-height: 2.9em; margin: 0; }
.sfgrid { align-items: stretch; } .sfgrid .sfdrop { height: 100%; min-height: 168px; }
.sfopts .sfnote { flex: 1; min-height: 64px; }
#brHint { margin-top: 8px; }

/* pop-up map at the gate (Oskar 2026-11-26) */
.pmap { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel2); max-height: 70vh; overflow: auto; }
.pmhead { position: sticky; top: 0; display: flex; gap: 10px; align-items: baseline; padding: 10px 14px; background: var(--panel2); border-bottom: 1px solid var(--line); z-index: 1; }
.pmpart { padding: 10px 14px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mu); }
.pmrow { display: grid; grid-template-columns: 1fr 132px; gap: 14px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.pmtxt { font-size: 14px; line-height: 1.5; } .pmtxt mark { background: rgba(255,214,0,.25); color: var(--tx); border-radius: 4px; padding: 0 2px; }
.pmid { display: inline-block; font-family: var(--mono); font-size: 11px; color: var(--mu); border: 1px solid var(--line2); border-radius: 6px; padding: 1px 5px; margin-right: 8px; }
.pmimg { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pmimg img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; display: block; }
.pmmiss { width: 120px; height: 120px; border-radius: 10px; border: 1px dashed var(--line2); display: grid; place-items: center; color: var(--mu); font-size: 12px; }

/* image lightbox (Oskar 2026-11-28: images open on the same page, not a new tab) */
.lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.88); display: flex; align-items: center;
  justify-content: center; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 6px; cursor: default;
  box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%;
  width: 44px; height: 44px; font-size: 26px; line-height: 44px; cursor: pointer; padding: 0; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox .lbx { top: 16px; right: 16px; }
.lightbox .lbp { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lbnx { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lbbar { position: absolute; bottom: 14px; left: 16px; right: 16px; display: flex; gap: 14px; align-items: center;
  justify-content: center; color: #ddd; font-size: 13px; cursor: default; }
.lightbox .lbcap { max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox .lbopen { color: #9cf; }

/* visuals map gate (Oskar 2026-11-28) */
.vmap { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel2); max-height: 75vh; overflow: auto; }
.vmhead { position: sticky; top: 0; z-index: 2; background: var(--panel2); padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.vmtrack { height: 6px; border-radius: 3px; background: rgba(127,127,127,.25); overflow: hidden; }
#vmBar { height: 100%; background: #e9a23b; transition: width .2s; }
.vmstr { color: #e5534b; }
.vmpart { padding: 6px 14px 12px; }
.vmplabel { font-weight: 700; margin: 10px 0 6px; font-size: 14px; }
.vmseg { display: flex; gap: 12px; padding: 8px 10px; border-radius: 10px; margin: 4px 0; }
.vmseg.ugc { background: rgba(127,127,127,.10); border-left: 3px solid rgba(127,127,127,.5); flex-direction: column; gap: 2px; }
.vmseg.br { background: rgba(233,162,59,.10); border-left: 3px solid #e9a23b; }
.vmseg.br.struck { opacity: .45; border-left-color: #e5534b; }
.vmseg.br.struck .vmtxt mark { text-decoration: line-through; }
.vmmed img, .vmmed video { width: 96px; height: 170px; object-fit: cover; border-radius: 8px; display: block; background: #000; }
.vmmiss { width: 96px; height: 170px; border-radius: 8px; border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; font-size: 12px; opacity: .7; text-align: center; }
.vmbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.vmtag { font-size: 12px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.vmid { background: #e9a23b; color: #000; border-radius: 5px; padding: 1px 6px; }
.vmx { margin-left: auto; background: none; border: 1px solid var(--line); color: inherit; border-radius: 6px; font-size: 12px; padding: 2px 8px; cursor: pointer; }
.vmtxt { font-size: 14px; line-height: 1.45; }
.vmtxt mark { background: rgba(233,162,59,.35); color: inherit; border-radius: 3px; padding: 0 2px; }
.vmshows { font-size: 13px; opacity: .85; }
.vmnote { font-size: 12px; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: inherit; }
.vmseg.br.pres { background: rgba(56,178,172,.10); border-left-color: #38b2ac; }
.vmseg.br.pres .vmid { background: #38b2ac; }
.vmseg.br.noted { box-shadow: inset 0 0 0 1px #6aa9ff; }
.vmseg.br.struck.noted { opacity: .8; }
.vmredo { color: #6aa9ff; }
.vmprob summary { cursor: pointer; font-size: 12px; color: #e9a23b; }

/* review player, Oskar's sketch 2026-11-28: the timeline is one rounded panel with thin red bars and plain labels, and the
   play controls hang off its bottom as a tab of the same panel (one shape, curved inner corners). Also undoes two leaks:
   the brief page's toggle `.seg` (made the bars into pills) and the comment card `.fr .c` (boxed the play controls). */
.fr .timeline { isolation: isolate; margin: 4px 0 0; height: 40px; }
.fr .timeline::before { content: ""; position: absolute; inset: -8px -14px -10px; background: var(--panel2); border-radius: 16px; z-index: -1; }
.fr .timeline .seg { display: block; background: none; border: 0; padding: 0; border-radius: 0; gap: 0; min-width: 64px; }
.fr .timeline .seg .bar { height: 4px; border-radius: 2px; background: rgba(229, 72, 77, .28); }
.fr .timeline .seg .bar i { background: #e5484d; }
.fr .timeline .seg.now .bar { background: rgba(229, 72, 77, .38); }
.fr .timeline .seg span { display: block; padding: 0; border-radius: 0; background: none; font-size: 11.5px; margin-top: 7px; }
.fr .timeline .segs { top: 12px; gap: 6px; }
.fr .timeline .head { top: 7px; height: 14px; width: 2px; }
.fr .timeline .range { top: 8px; height: 12px; }
.fr .fctl { margin-top: 0; align-items: start; }
.fr .fctl .grp.r, .fr .fctl .grp:first-child { padding-top: 14px; }
.fr .fctl .grp.c { position: relative; margin: 0; background: var(--panel2); border: 0; border-radius: 0 0 22px 22px;
  padding: 10px 22px 12px; gap: 14px; }
.fr .fctl .grp.c::before, .fr .fctl .grp.c::after { content: ""; position: absolute; top: 10px; width: 18px; height: 18px; pointer-events: none; }
.fr .fctl .grp.c::before { left: -18px; background: radial-gradient(circle at 0 100%, transparent 17.5px, var(--panel2) 18px); }
.fr .fctl .grp.c::after { right: -18px; background: radial-gradient(circle at 100% 100%, transparent 17.5px, var(--panel2) 18px); }
.fr .fctl .play { width: 46px; height: 46px; }
@media (max-width: 1100px) { .fr .fctl .grp.c { border-radius: 0 0 18px 18px; } .fr .fctl .grp.r, .fr .fctl .grp:first-child { padding-top: 6px; } }
.vmseg.br.chg { box-shadow: inset 0 0 0 2px #6aa9ff; background: rgba(106,169,255,.10); }
.vmnew { background: #6aa9ff; color: #04203f; border-radius: 5px; padding: 1px 7px; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.vmchg { font-size: 13px; color: #9cc4ff; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vmonly { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--tx); cursor: pointer; margin-left: auto; }
.vmap.only-chg .vmseg:not(.chg) { display: none; }
.vmap.only-chg .vmpart:not(:has(.chg)) { display: none; }
/* Revana call budget badge (Oskar 2026-11-28) */
.engine.rvb { margin-left: 8px; }
.engine.rvb::before { background: #38b2ac !important; }
.engine.rvb.warm::before { background: #e9a23b !important; }
.engine.rvb.hot { color: #f08a86; } .engine.rvb.hot::before { background: #e5484d !important; }
.vmdup { background: #e5484d; color: #fff; border-radius: 5px; padding: 1px 7px; font-size: 11px; font-weight: 700; }

/* Localize frames board (Polish Studio, 2026-11-29): original | ours per clip */
.fboard { margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; overflow: auto; max-height: 75vh; background: var(--panel); }
.fboard .vmhead .chip { font-size: 12px; }
.fbhooks { display: flex; gap: 6px; flex-wrap: wrap; }
.fbrow { display: flex; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); border-left: 3px solid var(--line); }
.fbrow.ed { border-left-color: #e9a23b; background: rgba(233,162,59,.06); }
.fbrow.ed .vmid { background: #e9a23b; }
.fbrow:not(.ed) .vmid { background: #8b8b8b; }
.fbrow.chg { box-shadow: inset 0 0 0 2px #6aa9ff; }
.fbrow.struck { opacity: .55; border-left-color: #e5534b; }
.fbrow.noted { box-shadow: inset 0 0 0 1px #6aa9ff; }
.fbimgs { display: flex; gap: 8px; flex: none; }
.fbimgs figure { margin: 0; text-align: center; }
.fbimgs img { width: 110px; height: 196px; object-fit: cover; border-radius: 8px; display: block; background: #000; }
.fbimgs .vmmiss { width: 110px; height: 196px; }
.fbimgs figcaption { font-size: 11px; opacity: .7; margin-top: 3px; }
.fbed { color: #e9a23b; font-weight: 600; }
.fboard.only-chg .fbrow:not(.chg) { display: none; }
@media (max-width: 700px) { .fbrow { flex-direction: column; } }

/* Organic → Ad: script board + brief card (2026-11-30) */
.sboard { margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; overflow: auto; max-height: 75vh; background: var(--panel); }
.sboard .vmhead, .hcard { padding: 10px 14px; }
.sbaudit pre { white-space: pre-wrap; font-size: 11px; max-height: 240px; overflow: auto; }
.sbaudit .ok { color: #2e9e5b; } .sbaudit .err { color: #d6453d; }
.sbh { margin: 12px 14px 6px; font-size: 13px; }
.sbrow { display: flex; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); border-left: 3px solid var(--line); }
.sbrow .sbid { flex: 0 0 92px; font-weight: 600; font-size: 12px; display: flex; flex-direction: column; gap: 3px; }
.sbrow .sbk { font-weight: 400; font-size: 11px; opacity: .7; }
.sbrow .sbtxt { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sbrow .sborig { font-size: 12px; opacity: .65; text-decoration: none; border-left: 2px solid var(--line); padding-left: 8px; }
.sbrow .sbours { font-size: 14px; line-height: 1.45; }
.sbrow .sbvis { font-size: 12px; opacity: .8; background: rgba(127,127,127,.08); border-radius: 6px; padding: 6px 8px; }
.sbrow.kept { border-left-color: #2e9e5b; } .sbrow.trimmed { border-left-color: #e9a23b; } .sbrow.new { border-left-color: #4a7fd6; }
.sbrow.hook { border-left-color: #b45ad6; }
.sbrow.cut .sborig { text-decoration: line-through; }
.sbrow.noted { background: rgba(214,69,61,.06); }
.sbrow.chg { background: rgba(74,127,214,.07); }
.sboard.only-chg .sbrow:not(.chg) { display: none; }
.hcard { margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.hcard .hname { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.hcard .hlinks { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.hcard .hlinks a { text-decoration: none; }
.hfmts { display: flex; gap: 10px; flex-wrap: wrap; }
.navl .wip { font-size: 9px; font-weight: 700; background: #e9a23b; color: #1b1300; border-radius: 4px; padding: 1px 4px; margin-left: 4px; vertical-align: middle; }
.tr-row .st.act { color: #f08a86; font-weight: 600; }
.onew { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--panel); }
.oangles { display: flex; gap: 6px; flex-wrap: wrap; }
.oangles .chip { cursor: pointer; }
.oangles .chip.sel { background: #d6453d; color: #fff; border-color: #d6453d; }
.ocost { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 16px; }
.ocbox { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 150px; background: var(--panel); }
.ocbox b { font-size: 18px; } .ocbox span { font-size: 12px; opacity: .75; }
.ocbox.wide { flex: 1; justify-content: center; } .ocbox.wide b { font-size: 13px; }
.cdframe { width: 100%; height: 72vh; border: 1px solid var(--line); border-radius: 10px; background: #0a0a0b; margin: 0 0 8px; display: block; }
.sboard:has(.cdframe) { max-height: none; overflow: visible; }

/* Iterations map (2026-11-30) */
.itbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 14px; }
.itbar .sp { flex: 1; } .itbar select { width: auto; padding: 7px 10px; }
.itlist { display: flex; flex-direction: column; gap: 12px; padding-bottom: 80px; }
.itw { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel); display: flex; flex-direction: column; gap: 8px; }
.ithead { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.itt { font-size: 15px; } .itmeta { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.itmeta .chip { font-size: 11px; } .itmeta a.chip { text-decoration: none; } .chip.res { background: var(--redbg); color: #f08a86; }
.itnums { display: flex; gap: 14px; } .itnums div { display: flex; flex-direction: column; align-items: flex-end; }
.itnums b { font-size: 15px; } .itnums span { font-size: 11px; color: var(--mu); }
.ithook { font-style: italic; }
.ittier { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.itlab { font-size: 11px; color: var(--mu); width: 128px; flex: none; }
.itopt { cursor: pointer; font-size: 12px; } .itopt.sel { background: var(--red); border-color: var(--red); color: #fff; }
.itopt.rec:not(.sel) { border-color: #d9a441; color: #f2c98a; } .itrec { color: #f2c98a; font-weight: 500; }
.itpicked { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.itp { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--panel); font-size: 13px; }
.itgo { position: sticky; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line2); background: var(--panel2); border-radius: 14px; padding: 10px 14px; box-shadow: 0 6px 24px rgba(0,0,0,.4); }

/* Iterations v2: list + full-screen winner (2026-11-30) */
.itfil { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.itfil input#itQ { max-width: 280px; } .itfil select { width: auto; padding: 8px 10px; }
.itlive { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--mu); } .itlive input { width: auto; }
.itpk { margin-bottom: 12px; } .itpk summary { cursor: pointer; margin-bottom: 6px; }
.ittable { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.itrow { display: grid; grid-template-columns: minmax(0, 1fr) 90px 60px 60px 90px 150px; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; align-items: center; }
.itrow:hover { background: var(--panel2); } .itrow.head { font-size: 11px; color: var(--mu); background: var(--panel); }
.itrow .ok { color: var(--ok); } .itrow .err { color: #f08a86; }
@media (max-width: 800px) { .itrow { grid-template-columns: 1fr 70px 50px; } .itrow > span:nth-child(n+4) { display: none; } }
.itad { max-width: none; padding-bottom: 120px; }
.itadhead h2 { margin: 6px 0; }
.itcols { display: grid; grid-template-columns: minmax(280px, 34%) 1fr; gap: 18px; margin-top: 12px; }
@media (max-width: 900px) { .itcols { grid-template-columns: 1fr; } }
.itleft h4, .itright h4 { margin: 14px 0 6px; font-size: 13px; color: var(--mu); }
.itvid { width: 100%; max-height: 420px; border-radius: 10px; background: #000; }
.itprof { display: flex; flex-direction: column; gap: 4px; font-size: 12px; } .itprof div { display: grid; grid-template-columns: 130px 1fr; gap: 8px; } .itprof b { font-weight: 500; }
.itfam { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.itfa { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: var(--panel); } .itfa.me { border-color: var(--red); }
.itarrow { font-size: 12px; color: var(--mu); padding-left: 10px; } .itfc { padding: 4px 0 4px 10px; border-left: 2px solid var(--line); }
.itscript { white-space: pre-wrap; font-size: 12px; max-height: 420px; overflow: auto; background: var(--panel); padding: 10px; border-radius: 8px; }
.itbox { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--panel); margin-bottom: 12px; }
.ithd { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; } .ithd .btn { margin-left: auto; }
.itbanm { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; margin-left: auto; } .itbanm input { width: auto; }
#itBanS { width: auto; padding: 5px 8px; font-size: 12px; }
.itsug { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.itgrp { margin: 6px 0; } .itgrp summary { cursor: pointer; font-weight: 600; font-size: 13px; padding: 4px 0; }
.itdim { display: grid; grid-template-columns: 150px 1fr; gap: 8px; padding: 5px 0; border-top: 1px dashed var(--line); }
.itdl { font-size: 12px; color: var(--mu); padding-top: 4px; } .itvals { display: flex; flex-wrap: wrap; gap: 5px; }
.itv, .itpb { cursor: pointer; font-size: 12px; } .itv i { font-style: normal; opacity: .6; font-size: 11px; }
.itv.current { border-color: var(--ok); color: var(--ok); cursor: default; }
.itv.blocked { opacity: .35; cursor: not-allowed; } .itv.banned, .itpb.banned { text-decoration: line-through; opacity: .5; }
.itv.sel, .itpb.sel { background: var(--red); border-color: var(--red); color: #fff; }
.itad .itgo { position: fixed; left: 0; right: 0; bottom: 0; border-radius: 0; flex-direction: column; align-items: stretch; gap: 8px; z-index: 6; }
.itdraft, .itbask { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .itbask .btn { margin-left: auto; }
body.itfull .shell { grid-template-columns: 1fr; } body.itfull .side { display: none; }
.itsort { cursor: pointer; user-select: none; } .itsort:hover { color: var(--tx); } .itsort.on { color: var(--tx); font-weight: 600; }

/* Iterations winner page v3 (2026-11-30 redesign) */
.itadhead { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.itnums2 { text-align: right; font-size: 14px; }
.itcols2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; margin-top: 16px; }
@media (max-width: 1000px) { .itcols2 { grid-template-columns: 1fr; } }
.itmain { display: flex; flex-direction: column; gap: 14px; }
.itrecs { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.itrecs .ithd { display: flex; justify-content: space-between; margin-bottom: 8px; }
.itrecg { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.itrec { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; display: flex; flex-direction: column; gap: 4px; }
.itrec a, .itopt2 a { color: #f08a86; text-decoration: none; font-size: 13px; } .itadded { color: var(--ok); font-size: 13px; }
.ittiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ittile { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ittile.on { border: 2px solid var(--red2); background: var(--redbg); }
.itpanel { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.itph { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; border-bottom: 1px solid var(--line); } .itph a { margin-left: auto; }
.itbanbar { padding: 8px 12px; border-bottom: 1px solid var(--line); } .itbanbar select { width: auto; padding: 4px 8px; font-size: 12px; }
.itopt2 { display: grid; grid-template-columns: minmax(0, 1fr) 70px 70px; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); align-items: center; }
.itopt2 > :last-child { text-align: right; }
.itmore { display: block; padding: 8px 12px; } .itshut { padding: 9px 12px; line-height: 1.6; }
.itown { display: flex; gap: 8px; } .itown input { flex: 1; }
.itside h4 { margin: 12px 0 6px; font-size: 13px; color: var(--mu); }
.itad .itgo { display: flex; flex-direction: row; justify-content: space-between; align-items: center; }
.ittiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.itopt2 { grid-template-columns: minmax(0, 1fr) 0 70px; }
.iopage { max-width: 1100px; } .iopage h3 { margin-top: 26px; }
.iolist { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.iorow { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; background: var(--panel); }
.iorow input, .iorow select { padding: 6px 8px; font-size: 13px; width: auto; }
.iorow .ioL { width: 200px; } .iorow .ioN { flex: 1; min-width: 220px; } .iorow .ioA, .iorow .ioE { width: 90px; }
.iosg { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; color: var(--mu); } .iosg input { width: auto; }
.iox { color: #f08a86; text-decoration: none; font-size: 18px; padding: 0 6px; }
.iofmt { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.iofmt label { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.iofmt select { width: auto; padding: 5px 8px; font-size: 13px; }
.iosave { position: sticky; bottom: 12px; margin-top: 20px; }
.iorow .ioS { width: 150px; }
.iodrag { cursor: grab; color: var(--mu); padding: 0 6px; font-size: 16px; user-select: none; letter-spacing: -3px; }
.iodrag:active { cursor: grabbing; }
.iorow.dragging { opacity: .4; } .iorow.over { box-shadow: inset 0 2px 0 var(--red2); }
#ioHistBox { margin-top: 8px; max-height: 260px; overflow: auto; background: var(--panel); border-radius: 10px; }
.iohv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.iohv a { color: #f08a86; text-decoration: none; }
.iosave .ok { color: var(--ok); }
.itbasket { border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; background: var(--panel); display: flex; flex-direction: column; gap: 8px; }
.itbasket .ithd { display: flex; gap: 10px; align-items: baseline; }
.itbrow { display: grid; grid-template-columns: minmax(0, 1fr) 80px 24px; gap: 10px; align-items: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); }
.itbrow a { color: #f08a86; text-decoration: none; font-size: 18px; text-align: center; }
.itbasket textarea { min-height: 70px; }
.itbgo { display: flex; justify-content: flex-end; }
.itad { padding-bottom: 40px; }
.itbrow { display: flex; flex-direction: column; gap: 6px; }
.itbtop { display: grid; grid-template-columns: minmax(0, 1fr) 80px 24px; gap: 10px; align-items: center; }
.itbtop a { color: #f08a86; text-decoration: none; font-size: 18px; text-align: center; }
.itcm { min-height: 46px !important; font-size: 13px; padding: 7px 10px; }
.itviews { display: flex; gap: 6px; margin: 4px 0 14px; } .itviews a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--mu); font-size: 14px; }
.itviews a.on { background: var(--red); border-color: var(--red); color: #fff; }
.itrow.ib { grid-template-columns: minmax(0, 1fr) 210px 90px 28px; }
.ibdel { background: none; border: 0; color: var(--mu, #888); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; } .ibdel:hover { color: #f08a86; background: rgba(240,138,134,.12); } .ibact { color: #f08a86; font-weight: 600; }

.ibframe { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0; background: var(--panel2); }
.ibdesc { margin: 6px 0 8px; font-size: 14px; width: 100%; box-sizing: border-box; resize: vertical; }
.ibhead { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.ibgrid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: stretch; }
.ibleft { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ibleft .ibdesc { margin: 0; }
.ibdrop { flex: 1; min-height: 160px; display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; border-radius: 10px; }
.ibdrop .dz-i { font-size: 22px; }
.ibacts { display: flex; gap: 10px; align-items: stretch; }
#ibNote { flex: 1; min-width: 0; resize: vertical; }
.ibbtn { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.ibbtn .btn { white-space: nowrap; padding: 9px 18px; }
.ibright { display: flex; gap: 12px; flex-wrap: wrap; }
.ibpic { margin: 0; width: 200px; display: flex; flex-direction: column; gap: 6px; }
.ibpic img, .ibempty { width: 200px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; display: block; background: var(--panel); border: 1px solid var(--line); }
.ibempty { display: flex; align-items: center; justify-content: center; color: var(--mu, #888); }
.ibpic figcaption { font-size: 12px; color: var(--mu, #888); text-align: center; }
@media (max-width: 900px) { .ibgrid { grid-template-columns: 1fr; } .ibright { justify-content: center; } .ibpic, .ibpic img, .ibempty { width: min(42vw, 200px); } }

/* iteration brief hooks (2026-11-30) */
.ibhooks-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 18px; } .ibhooks-h .sbh { margin: 0; }
.hksaved { color: #7fd6a2; font-weight: 600; }
.ibhooks { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; margin-top: 10px; }
.hk { border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.hk.kept { border-color: rgba(181, 48, 44, .55); }
.hktop { display: flex; align-items: center; gap: 10px; }
.hkn { width: 26px; height: 26px; border-radius: 50%; background: #b5302c; color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
.hkkind { font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; opacity: .75; }
.hkf { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.hkf > span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; opacity: .55; }
.hkf textarea { width: 100%; box-sizing: border-box; resize: none; overflow: hidden; min-height: 34px; font-size: 14px; line-height: 1.45; padding: 7px 9px; border-radius: 8px; }
.hk-spoken textarea { font-size: 15px; }
.hk-text textarea { font-weight: 600; }
.hk-visual textarea { font-size: 13px; opacity: .85; }

.itbr { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; cursor: pointer; } .itbr input { margin-top: 2px; }
