/* CineClic HQ, the Cinema look (2026-09-23). Loaded after style.css, pay.css and invoice.css.
   Built from Joe's media design board (Wolverine Worldwide, Mathijs Hanenkamp, One Day Vol., Lusaxweb,
   carlhauser, Toledo Museum of Art). Charcoal, Inter Tight, posters with plain labels, hairlines, no glass.
   Green is only for money and done. Red is only for a signal (No data, overdue, an error). */
:root {
  --bg: #111111; --panel: #151515; --panel2: #1a1a1a;
  --ink: #ffffff; --muted: #9c9c9c; --dim: #8a8a8a;
  --line: rgba(255,255,255,.09); --hair: rgba(255,255,255,.16);
  --red: #ffffff; --red-dim: rgba(255,255,255,.07);
  --good: #3ee38a; --warn: #e6b64d; --signal: #ff3b30;
  --display: "Inter Tight", "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --sig: "Instrument Serif", Georgia, serif;
  --mark: "Archivo", "Inter Tight", sans-serif;
}
body { font-family: var(--body); background: var(--bg); }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.02em; font-weight: 600; }
a { color: var(--ink); }
code { background: var(--panel2); border-color: var(--line); }

/* ---------- wordmark: CINE CLIC, boxed HQ */
.logo, h1.logo { font: 900 17px/1 var(--mark); font-stretch: 125%; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
h1.logo { font-size: 24px; margin: 0 0 14px; }
.logo span { display: inline-block; vertical-align: 2px; font: 900 8.5px/1 var(--mark); font-stretch: 125%; letter-spacing: .12em; color: var(--ink); border: 1.5px solid var(--ink); padding: 3px 4px 2px; margin-left: 7px; border-radius: 1px; }
h1.logo span { font-size: 11px; vertical-align: 4px; }
.auth-card { background: none; border: 1px solid var(--line); border-radius: 2px; }
.auth-sub { font-size: 14px; }

/* ---------- shell, left column (default): a stacked list of words, the Toledo menu as a column */
.side { width: 236px; padding: 26px 22px 20px; border-right: 1px solid var(--line); }
.side .logo { margin-bottom: 28px; }
.side-tabs { gap: 0; }
.tab { font: 600 20px/1.15 var(--display); letter-spacing: -.03em; text-transform: none; color: var(--dim); padding: 5px 0; border-radius: 0; background: none; transition: color .2s; }
.tab:hover { color: var(--muted); }
.tab.on { color: var(--ink); background: none; font-weight: 600; }
.tab.admin { color: var(--dim); }
.tab.admin.on { color: var(--ink); background: none; }
.tab.admin + .tab.admin { margin-top: 0; padding-top: 5px; border-top: 0; }
.tab.admin:first-of-type, .tab:not(.admin) + .tab.admin { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.side-foot { border-top: 1px solid var(--line); padding-top: 16px; }
.me { font-size: 12.5px; color: var(--ink); }
.me br + * , .me { line-height: 1.45; }
main { padding: 30px clamp(18px, 2.4vw, 34px) 60px; }

/* tabs switch: a minimal two word toggle in the side foot */
.tabs-sw { display: flex; gap: 14px; margin: 0 0 12px; font: 500 11px/1 var(--body); color: var(--dim); }
.tabs-sw span { letter-spacing: .02em; }
.tabs-sw button { background: none; border: 0; padding: 0 0 2px; color: var(--dim); font: inherit; cursor: pointer; border-bottom: 1px solid transparent; }
.tabs-sw button.on { color: var(--ink); border-bottom-color: var(--ink); }
.tabs-sw button:hover { color: var(--muted); }

/* ---------- shell, top words: one row of big words, active white, the rest grey (carlhauser) */
html[data-tabs="top"] .shell { flex-direction: column; }
html[data-tabs="top"] .side { width: 100%; height: auto; position: sticky; top: 0; z-index: 6; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 0 34px; padding: 16px clamp(18px, 2.4vw, 34px) 0; border-right: 0; border-bottom: 1px solid var(--line); background: var(--bg); overflow: visible; }
html[data-tabs="top"] .side .logo { margin: 0 0 14px; }
html[data-tabs="top"] .side-tabs { flex-direction: row; align-items: baseline; gap: 0 26px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding-right: 40px; mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); }
html[data-tabs="top"] .side-tabs::-webkit-scrollbar { display: none; }
html[data-tabs="top"] .tab { font-size: 26px; white-space: nowrap; padding: 0 0 14px; flex: none; }
html[data-tabs="top"] .tab.admin, html[data-tabs="top"] .tab:not(.admin) + .tab.admin { margin: 0 0 0 4px; padding: 0 0 14px 26px; border-top: 0; border-left: 1px solid var(--line); }
html[data-tabs="top"] .tab.admin + .tab.admin { margin: 0; padding-left: 0; border-left: 0; }
html[data-tabs="top"] .side-foot { margin: 0 0 14px; padding: 0; border: 0; display: flex; align-items: center; gap: 16px; }
html[data-tabs="top"] .side-foot .me { display: none; }
html[data-tabs="top"] .side-foot .btn.wide { width: auto; margin: 0; }
html[data-tabs="top"] .tabs-sw { margin: 0; }
html[data-tabs="top"] .notif-wrap { margin: 0; }

/* ---------- controls */
input, select, textarea { background: transparent; border: 1px solid var(--hair); border-radius: 2px; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 1px; }
.btn { background: var(--ink); color: var(--bg); border-radius: 999px; font: 500 13px/1 var(--body); padding: 10px 16px; }
.btn:hover { filter: none; background: #e6e6e6; }
.btn.ghost { background: none; color: var(--ink); border: 1px solid var(--hair); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.danger { background: none; color: var(--signal); border: 1px solid color-mix(in srgb, var(--signal) 60%, transparent); }
.btn.small { padding: 7px 11px; font-size: 12px; }
.mini { background: none; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.mini:hover:not(:disabled) { color: var(--ink); border-color: var(--hair); }
.mini.danger { color: var(--signal); }
.view-toggle { background: none; border: 0; padding: 0; gap: 18px; }
.view-toggle .mini { border-radius: 0; padding: 6px 0 7px; border-bottom: 1px solid transparent; font-size: 12px; }
.view-toggle .mini.on { color: var(--ink); background: none; border-bottom-color: var(--ink); font-weight: 500; }
.filter-bar select, .filter-bar input { border-radius: 999px; padding: 8px 14px; font-size: 12.5px; background: transparent; }
label { color: var(--muted); }
.notice { background: rgba(255,59,48,.08); border-color: var(--signal); border-radius: 2px; }
.save-status.error { color: var(--signal); }
#toast { background: var(--ink); color: var(--bg); border: 0; border-radius: 999px; font-family: var(--body); }
#toast.error { background: var(--signal); color: #fff; }

/* ---------- chips: plain words separated by dots. Green only for money and done, red only for a signal */
.chip { background: none; border: 0; padding: 0; font: 500 11.5px/1.4 var(--body); color: var(--muted); border-radius: 0; gap: 4px; }
.card-meta .chip + .chip::before, .kitchen-card-meta .chip + .chip::before { content: "·"; margin-right: 4px; color: var(--dim); }
.chip.empty, .chip.chip-edit.empty { color: var(--dim); }
.chip.link, .chip.link.edit, button.chip.link { color: var(--ink); background: none; border: 0; }
button.chip.link:hover { text-decoration: underline; text-underline-offset: 3px; border: 0; }
.chip.p-youtube, .chip.p-instagram, .chip.p-tiktok, .chip.p-vlog, .chip.who, .chip.style, .chip.k-original { color: var(--ink); }
.chip.s-approved, .chip.s-posted, .chip.rate, .chip.a-approved, .chip.inv-st-paid { color: var(--good); }
.chip.s-pending, .chip.k-inspiration, .chip.s-draft { color: var(--muted); }
.chip.a-rejected, .chip.inv-st-rejected { color: var(--signal); }
.chip.cat { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.chip.cat.on { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.due { font-size: 11.5px; }
.due.overdue { color: var(--signal); font-weight: 600; }

/* ---------- pipeline board: hairline columns numbered top right, tall posters, plain labels (Lusaxweb) */
.board { gap: 0; }
.col { background: none; border: 0; border-left: 1px solid var(--line); border-radius: 0; width: 246px; min-width: 246px; padding: 0 0 20px; }
.col:last-child { border-right: 1px solid var(--line); }
.col.drag-over { background: rgba(255,255,255,.03); border-color: var(--hair); }
.col-head { border-bottom: 0; padding: 0 14px 14px; }
.col-title, .col-title-input { font: 500 12px/1 var(--body); text-transform: none; letter-spacing: 0; color: var(--ink); }
.col-title.editable:hover { background: none; color: var(--muted); }
.col-count { order: 3; flex: 1; text-align: right; font: 600 13px/1 var(--display); color: var(--muted); letter-spacing: -.02em; }
.col-head .mini { order: 2; }
.col-body { padding: 0 14px; gap: 22px; }
.col-body.drop-at-end::after { background: var(--ink); }
.card { background: none; border: 0; border-radius: 0; overflow: visible; outline-offset: 2px; }
.card:hover, .card:focus-visible { border-color: transparent; transform: none; box-shadow: none; }
.card:focus-visible { outline: 1.5px solid var(--ink); }
.card.drop-before { outline-color: var(--ink); }
.card-thumb { aspect-ratio: 4 / 5; border-radius: 2px; background: var(--panel2); }
.card-thumb img { transition: transform .8s cubic-bezier(.19,1,.22,1); }
.card:hover .card-thumb img { transform: scale(1.035); }
.card-body { padding: 11px 0 0; }
.card-title { font: 500 14px/1.3 var(--display); letter-spacing: -.01em; }
.card-title::after { content: "→"; display: inline-block; margin-left: 8px; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s cubic-bezier(.19,1,.22,1); }
.card:hover .card-title::after { opacity: 1; transform: none; }
.card-meta { margin-top: 8px; row-gap: 3px; }
.card-actions .mini { border: 0; padding: 3px 4px; }
.card-check { background: rgba(17,17,17,.7); }
.card-approval, .appr-badge { border-radius: 999px; }
.appr-btn.appr-yes.on { background: var(--good); border-color: var(--good); color: #04150c; }
.appr-btn.appr-no.on { background: var(--signal); border-color: var(--signal); color: #fff; }
.appr-badge.approved { color: var(--good); border-color: var(--good); }
.appr-badge.denied { color: var(--signal); border-color: var(--signal); }
.card-drive:hover { color: var(--ink); }
.empty-col { font-size: 12px; padding: 4px 0; }

/* no data: a stock still with a red tag, never an empty box */
.card-noimg, .list-thumb.none { position: relative; color: transparent; font-size: 0; overflow: hidden; }
.card-noimg img, .list-thumb.none img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.35) brightness(.6); }
.nodata { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: 6px; font: 600 9.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--signal); padding: 5px 7px 4px; border-radius: 2px; white-space: nowrap; }
.nodata::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.nodata.folder { background: rgba(17,17,17,.75); }
.list-thumb.none .nodata { left: 0; top: 0; right: 0; bottom: 0; transform: none; justify-content: center; border-radius: 0; font-size: 7.5px; padding: 0; }
.list-thumb.none .nodata::before { display: none; }

.nodata-wrap { position: relative; overflow: hidden; display: block; color: transparent; font-size: 0; }
.nodata-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.35) brightness(.6); }
.asset-nopreview.nodata-wrap, .broll-noimg.nodata-wrap, .sch-gal-none.nodata-wrap { position: absolute; inset: 0; }
.sch-bl-noimg.nodata-wrap, .sch-pick-noimg.nodata-wrap { position: absolute; inset: 0; }
.sch-bl-noimg .nodata, .sch-pick-noimg .nodata, .list-thumb.none .nodata { left: 0; top: 0; right: 0; bottom: 0; transform: none; justify-content: center; border-radius: 0; font-size: 7.5px; padding: 0; }
.sch-bl-noimg .nodata::before, .sch-pick-noimg .nodata::before { display: none; }
/* The gallery card's own channel/status/views chips already occupy the top
   strip (.sch-gal-top, full width, top:8px) -- pushed down so the two
   overlay systems don't fight for the same corner. Only ever visible now
   that the gallery view's own crash (an unrelated bug) stopped hiding it. */
.sch-gal-none .nodata { top: 46px; }

/* ---------- leaderboard: rows between hairlines, the top three are not framed in amber */
.lb-row { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 14px 0; }
.lb-row:hover { border-color: var(--line); transform: none; }
.lb-row.top3 { background: none; border-color: var(--line); }
.lb-row.me { outline: 0; box-shadow: inset 2px 0 0 var(--ink); padding-left: 14px; }
.lb-board { gap: 0; border-bottom: 1px solid var(--line); }

/* ---------- notifications: a bell, not a box */
.notif-bell { background: none; border: 0; padding: 6px 0; width: auto; }
.notif-bell:hover { border: 0; }
.notif-badge { background: var(--ink); color: var(--bg); font-weight: 600; top: 2px; left: 16px; }
.notif-panel { background: var(--bg); border-radius: 2px; }
.notif-head { text-transform: none; letter-spacing: 0; font-weight: 500; }

/* ---------- pay: the bold plus script pairing */
.pay-title { font: 600 44px/1 var(--display) !important; letter-spacing: -.04em !important; text-transform: none !important; }
.pay-title span { font: italic 400 1em var(--sig) !important; color: var(--ink) !important; letter-spacing: 0 !important; }

/* ---------- shorts queue: the Send to Palmier popup */
.sq-modal { max-width: 520px; }
.sq-modal h3 { font: 600 26px/1.05 var(--display); letter-spacing: -.035em; margin: 0 0 6px; }
.sq-video { margin: 0 0 6px; color: var(--muted); font-size: 13.5px; }
.sq-list { max-height: 46vh; overflow: auto; border-top: 1px solid var(--line); margin-top: 10px; }
.sq-row { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 4px; cursor: pointer; color: var(--ink); font: inherit; }
.sq-row:hover { background: rgba(255,255,255,.04); }
.sq-row b { display: block; font: 500 14px/1.3 var(--display); }
.sq-row small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.sq-actions { margin-top: 10px; }
.sq-actions .btn.small { padding: 7px 12px; }

/* ---------- .note-zone.drag-over's wash was a hard-coded literal of the OLD --good (#5bc378), not the token
   (2026-09-23 /impeccable audit, P2): the ring correctly tracked --good, the wash behind it did not. */
.note-zone.drag-over { background: color-mix(in srgb, var(--good) 7%, transparent) !important; }

/* ---------- danger and negative states: repointed from --red (now the white brand accent) to --signal
   (2026-09-23 /impeccable audit, P0/P1). --red covered both jobs before Cinema; Cinema only fixed .notice and
   .btn.danger, leaving the rest silently white -- an overdue date or a denied submission read identically to a
   normal link. Every genuine negative-state consumer of --red across style.css/pay.css/invoice.css goes here. */
.due.overdue, .chip.due.overdue, .kitchen-card-due.overdue, .sch-bl-age.late,
.appr-btn.appr-no.on, .appr-badge.denied,
.save-status.error, #toast.error, .mini.danger,
.sch-import-warn, .lb-chan.zero, .sch-quota.over b, .carousel-batch-row.fail,
.inv-error, .inv-problems li.block, .chip.mv-bad, .chip.a-rejected, .chip.inv-st-rejected {
  color: var(--signal) !important;
}
.appr-btn.appr-no.on, .appr-badge.denied { background: var(--signal) !important; border-color: var(--signal) !important; color: #fff !important; }
.mini.danger { border-color: color-mix(in srgb, var(--signal) 55%, transparent) !important; }
.inv-error { background: rgba(255,59,48,.08) !important; border-color: var(--signal) !important; color: var(--ink) !important; }

/* ---------- reel editing hq: full card, real video previewing, premium and sleek */
.rb-jobs { gap: 28px; }
.rb-card { background: none; border: 0; border-radius: 2px; overflow: visible; }
.rb-video { border-radius: 2px; overflow: hidden; border: 1px solid var(--line); background: var(--panel2); }
.rb-video-none.nodata-wrap { position: absolute; inset: 0; }
.rb-card-body { padding: 14px 0 0; }
.rb-card-head h3 { font: 600 22px/1.15 var(--display) !important; letter-spacing: -.03em !important; }
.rb-dir { font-size: 13px; border-top: 1px solid var(--line); padding-top: 10px; }
.rb-reply { color: var(--good); }
.rb-note { color: var(--dim); font-size: 11.5px; }

/* ---------- list view, tables */
table.cardlist th { font: 500 11.5px/1 var(--body); text-transform: none; letter-spacing: 0; color: var(--dim); border-bottom: 1px solid var(--line); }
table.cardlist td { border-bottom-color: var(--line); }
table.cardlist tr.selected td { background: rgba(255,255,255,.05); }
table.cardlist td.cell-edit:hover, table.cardlist td.cell-edit:focus-visible { background: rgba(255,255,255,.04); box-shadow: none; }
.list-thumb { border-radius: 2px; }

/* ---------- modal, drawer, popovers */
.overlay { background: rgba(17,17,17,.78); }
.modal { background: var(--bg); border: 1px solid var(--line); border-radius: 2px; }
.drawer { background: var(--bg); border-left: 1px solid var(--line); box-shadow: -24px 0 60px rgba(0,0,0,.5); }
.drawer-head h3 { font: 600 24px/1.05 var(--display); letter-spacing: -.035em; }
.drawer-close:hover { background: none; }
.check-row { background: none; border-radius: 2px; border-color: var(--line); padding: 10px 12px; font-size: 13px; }
.cell-popover { border-radius: 2px; }
.cell-popover-opt.on { color: var(--ink); }
.comments h4 { font: 500 11.5px/1 var(--body); text-transform: none; letter-spacing: 0; }

/* ---------- card editor: the Edit Brief form inside the drawer (2026-09-23).
   Plain labels that light up on focus, hairline fields, a pill for each style
   with a drawn checkmark (no native browser control left showing). */
.drawer-preview { border-radius: 2px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.drawer-approval { background: var(--panel2); border: 1px solid var(--line); border-radius: 2px; }
.drawer-approval-label { color: var(--ink); font-weight: 500; }

label { font: 500 11.5px/1.3 var(--body); letter-spacing: .01em; color: var(--dim); margin: 14px 0 6px; transition: color 150ms ease; }
label:focus-within { color: var(--ink); }
input, select, textarea { color: var(--ink); font: 400 14px/1.4 var(--body); padding: 9px 10px; transition: border-color 150ms ease, background 150ms ease; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); background: rgba(255,255,255,.025); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) center, calc(100% - 11px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.6); }
input:disabled { opacity: .5; }

.field-block { margin: 16px 0; }
.field-label { font: 500 11.5px/1 var(--body); letter-spacing: .01em; color: var(--dim); margin-bottom: 10px; }
.hint-inline { font-style: normal; font-family: var(--sig); font-size: 13px; opacity: .65; margin-left: 6px; }
.edit-brief { background: var(--panel2); border: 1px solid var(--line); border-radius: 2px; padding: 14px 14px 4px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }

.style-picks { gap: 7px; }
.style-pick { background: none; border: 1px solid var(--hair); border-radius: 999px; padding: 6px 12px 6px 9px; font: 500 11.5px/1.3 var(--body); color: var(--muted); transition: border-color 150ms ease, color 150ms ease, background 150ms ease; }
.style-pick:hover { border-color: var(--muted); color: var(--ink); }
.style-pick.on { border-color: var(--ink); color: var(--ink); background: rgba(255,255,255,.05); }
.style-pick input { appearance: none; -webkit-appearance: none; width: 12px; height: 12px; border: 1.5px solid var(--hair); border-radius: 3px; margin: 0; position: relative; transition: border-color 150ms ease, background 150ms ease; }
.style-pick:hover input { border-color: var(--muted); }
.style-pick.on input { border-color: var(--ink); background: var(--ink); }
.style-pick.on input::after { content: ""; position: absolute; left: 3.5px; top: 0.5px; width: 4px; height: 7px; border: solid var(--bg); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

.row2 { gap: 12px 14px; }
.note-zone { border-radius: 2px; }
.note-zone.drag-over { box-shadow: 0 0 0 1.5px var(--ink); background: rgba(255,255,255,.03); }
.note-hint { color: var(--dim); }
.note-thumb img { border-radius: 2px; }

.posting-section h4 { text-transform: none; font: 500 11.5px/1 var(--body); letter-spacing: .01em; color: var(--dim); }
.posting-list-row { border-radius: 2px; background: var(--panel2); border-color: var(--line); }

.comment { border-radius: 2px; }
.save-status { font-variant-numeric: tabular-nums; }

/* ---------- glass pop out (2026-09-23, Joe's two references: the frosted media player and the
   sleep card). Pages stay flat and cinematic; anything that floats over them is frosted glass:
   the card drawer, popups, menus. Capsule fields with a top highlight, a round white check. */
:root { --glass: rgba(22,22,22,.66); --glass-edge: rgba(255,255,255,.1); --cap: rgba(255,255,255,.05); --cap-edge: rgba(255,255,255,.08); --cap-hi: inset 0 1px 0 rgba(255,255,255,.1); }
.drawer-overlay.open { background: rgba(6,6,6,.42); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); }
.drawer { top: 14px; right: 14px; bottom: 14px; width: 500px; max-width: calc(100vw - 28px); border-radius: 26px; background: var(--glass); backdrop-filter: blur(30px) saturate(1.25); -webkit-backdrop-filter: blur(30px) saturate(1.25); border: 1px solid var(--glass-edge); box-shadow: 0 40px 100px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08); padding: 26px 26px 30px; transform: translateX(calc(100% + 28px)); }
.drawer-overlay.open .drawer { transform: none; }
.drawer::-webkit-scrollbar { width: 0; }
.drawer-head { margin-bottom: 18px; }
.drawer-head h3 { font-size: 30px; letter-spacing: -.04em; }
.save-status { font: 500 11px/1 var(--body); color: var(--muted); background: var(--cap); border: 1px solid var(--cap-edge); border-radius: 999px; padding: 6px 10px; min-width: 0; }
.save-status:empty { display: none; }
.drawer-close { width: 34px; height: 34px; border-radius: 50%; background: var(--cap); border: 1px solid var(--cap-edge); box-shadow: var(--cap-hi); color: var(--ink); font-size: 18px; padding: 0; display: inline-flex; align-items: center; justify-content: center; transition: background 150ms ease; }
.drawer-close:hover { background: rgba(255,255,255,.12); }
.drawer-preview { border-radius: 18px; border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 14px 40px rgba(0,0,0,.35); margin-bottom: 18px; }
.drawer-approval { background: var(--cap); border: 1px solid var(--cap-edge); border-radius: 18px; box-shadow: var(--cap-hi); padding: 14px 16px; }

/* capsule fields: the Volume and Theme rows */
.drawer label, .modal label { color: var(--dim); margin: 16px 0 7px 14px; }
.drawer label:focus-within, .modal label:focus-within { color: var(--ink); }
.drawer input, .drawer select, .drawer textarea, .modal input, .modal select, .modal textarea { background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.035)); border: 1px solid var(--cap-edge); border-radius: 999px; padding: 13px 18px; box-shadow: var(--cap-hi); margin-top: 0; }
.drawer textarea, .modal textarea { border-radius: 20px; padding: 14px 18px; line-height: 1.5; resize: vertical; }
.drawer input:hover, .drawer select:hover, .drawer textarea:hover, .modal input:hover, .modal select:hover, .modal textarea:hover { border-color: rgba(255,255,255,.16); background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.045)); }
.drawer input:focus, .drawer select:focus, .drawer textarea:focus, .modal input:focus, .modal select:focus, .modal textarea:focus { outline: 0; border-color: rgba(255,255,255,.4); background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.05)); box-shadow: var(--cap-hi), 0 0 0 4px rgba(255,255,255,.06); }
.drawer select, .modal select { padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%), linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.035)); background-size: 5px 5px, 5px 5px, auto; background-position: calc(100% - 20px) center, calc(100% - 15px) center, 0 0; background-repeat: no-repeat; }
.drawer select:hover, .modal select:hover { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%), linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.045)); }
.drawer select:focus, .modal select:focus { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%), linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.05)); }
.drawer .row2, .modal .row2 { gap: 0 12px; }

/* the Edit Brief: an inner glass card with pills */
.drawer .edit-brief { background: rgba(255,255,255,.035); border: 1px solid var(--cap-edge); border-radius: 22px; padding: 16px 16px 8px; box-shadow: var(--cap-hi); margin: 14px 0 6px; }
.drawer .edit-brief label { margin-left: 14px; }
.drawer .field-label { margin: 0 0 12px 4px; color: var(--muted); }
.drawer .hint-inline { opacity: .5; }
.drawer .style-picks { gap: 8px; }
.drawer .style-pick { gap: 8px; padding: 8px 14px 8px 9px; font: 500 12px/1.2 var(--body); color: var(--muted); background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)); border: 1px solid var(--cap-edge); box-shadow: var(--cap-hi); transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease; }
.drawer .style-pick:hover { color: var(--ink); border-color: rgba(255,255,255,.18); background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.05)); }
.drawer .style-pick:active { transform: scale(.98); }
.drawer .style-pick.on { color: var(--ink); border-color: rgba(255,255,255,.34); background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.08)); box-shadow: var(--cap-hi), 0 8px 24px rgba(0,0,0,.25); }
.drawer .style-pick input { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.28); background: rgba(0,0,0,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.drawer .style-pick:hover input { border-color: rgba(255,255,255,.5); }
.drawer .style-pick.on input, .drawer .style-pick input:checked { border-color: var(--ink); background: var(--ink); box-shadow: 0 2px 10px rgba(255,255,255,.25); }
.drawer .style-pick.on input::after, .drawer .style-pick input:checked::after { content: ""; position: absolute; left: 5.5px; top: 2.5px; width: 4.5px; height: 8px; border: solid var(--bg); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }

/* the two toggles at the top: done (green, it is the one done state) and needs shorts */
.drawer .check-row { background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.035)); border: 1px solid var(--cap-edge); border-radius: 999px; box-shadow: var(--cap-hi); padding: 11px 16px 11px 12px; gap: 11px; color: var(--muted); font: 500 12.5px/1.3 var(--body); margin: 0 0 10px; transition: color 150ms ease, border-color 150ms ease; }
.drawer .check-row:hover { color: var(--ink); border-color: rgba(255,255,255,.18); }
.drawer .check-row input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.28); background: rgba(0,0,0,.2); position: relative; flex: none; transition: background 150ms ease, border-color 150ms ease; }
.drawer .check-row input:checked { border-color: var(--ink); background: var(--ink); }
.drawer .check-row input:checked::after { content: ""; position: absolute; left: 6.5px; top: 3px; width: 5px; height: 9px; border: solid var(--bg); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.drawer .check-row input#mDone:checked { border-color: var(--good); background: var(--good); }
.drawer .check-row:has(input#mDone:checked) { color: var(--good); border-color: rgba(62,227,138,.35); }

/* notes, posting, comments, actions */
.drawer .note-zone { border-radius: 20px; }
.drawer .note-zone.drag-over { box-shadow: 0 0 0 1.5px rgba(255,255,255,.5); background: rgba(255,255,255,.04); }
.drawer .note-hint, .drawer .hint { margin-left: 14px; }
.drawer .note-thumb img { border-radius: 12px; }
.drawer .posting-section, .drawer .comments { border-top: 1px solid var(--cap-edge); margin-top: 22px; padding-top: 18px; }
.drawer .posting-section h4, .drawer .comments h4 { color: var(--muted); font-size: 12px; margin-left: 4px; }
.drawer .posting-list-row { background: var(--cap); border: 1px solid var(--cap-edge); border-radius: 999px; padding: 9px 14px; box-shadow: var(--cap-hi); }
.drawer .comment { background: var(--cap); border: 1px solid var(--cap-edge); border-radius: 18px; padding: 12px 14px; box-shadow: var(--cap-hi); }
.drawer .comment-add .btn.small { margin-top: 8px; }
.drawer .modal-actions { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--cap-edge); }
.drawer .btn.ghost, .modal .btn.ghost { background: var(--cap); border-color: var(--cap-edge); box-shadow: var(--cap-hi); }
.drawer .btn.danger, .modal .btn.danger { background: rgba(255,59,48,.08); }
.drawer .mini, .modal .mini { background: var(--cap); border-color: var(--cap-edge); box-shadow: var(--cap-hi); padding: 6px 12px; }
.drawer .drawer-approval-btns .appr-btn, .rv-acts .appr-btn { border-radius: 999px; }

/* popups and menus share the same glass */
.overlay { background: rgba(6,6,6,.42); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); }
.modal { background: var(--glass); backdrop-filter: blur(30px) saturate(1.25); -webkit-backdrop-filter: blur(30px) saturate(1.25); border: 1px solid var(--glass-edge); border-radius: 26px; box-shadow: 0 40px 100px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08); }
.cell-popover, .notif-panel { background: var(--glass); backdrop-filter: blur(24px) saturate(1.2); -webkit-backdrop-filter: blur(24px) saturate(1.2); border: 1px solid var(--glass-edge); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08); }
.sq-row { border-radius: 0; }
.sq-modal .sq-list { border-top-color: var(--cap-edge); }

/* ---------- scripts: put on the pipeline (2026-09-26), a flat page card */
.open-pipeline-row { margin: 4px 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--panel2); }
.open-pipeline-row .hint { margin: 8px 0 0; }

/* ---------- story bank: topics, era, grade, the By Topic storyline view (2026-10-05).
   A flat page like the rest of Scripts, not glass -- glass is only for things that float. */
.sb-thumb, .sb-thumb-big, .sb-reel-card, .sb-reel-none { border-radius: 2px; }
.sb-proven { color: var(--good); }
.sb-era { color: var(--dim); }
.sb-topic-note { background: var(--panel2); border-color: var(--line); border-radius: 2px; }
.sb-reel-col h4 { text-transform: none; font: 500 11.5px/1 var(--body); letter-spacing: .01em; color: var(--dim); }
.sb-reel-card { background: var(--panel2); border-color: var(--line); transition: border-color 150ms ease, transform 150ms ease; }
.sb-reel-card:hover { border-color: var(--muted); transform: translateY(-2px); }
.sb-reel-title { font: 500 13px/1.3 var(--display); }

/* ---------- storyboards: one panel board per script (2026-10-05), flat like the rest of Scripts */
.sbd-panel { background: var(--panel2); border: 1px solid var(--line); border-radius: 2px; }
.sbd-panel.approved { border-color: var(--good); }
.sbd-beat { font: 600 11.5px/1 var(--display); letter-spacing: .04em; }
.sbd-line { font: 500 15px/1.5 var(--display); letter-spacing: -.005em; }
.sbd-reel-col h4 { text-transform: none; font: 500 11px/1 var(--body); letter-spacing: .01em; color: var(--dim); }

/* ---------- pages: headings and the condensed type replaced everywhere */
.style-index, .rulecard-num, .lb-rank, .sch-hero-count, .pay-rate, .pay-rtotal, .est-big, .inv-total, .doc-lines tfoot td, .inv-tile strong { font-family: var(--display) !important; font-weight: 600 !important; letter-spacing: -.03em !important; text-transform: none !important; }
.style-card-info h3, .style-modal-title h3, .sch-gal-info h3, .kitchen-card-info h3, .client-card-info h3, .script-card-text, .hook-card-text, .ai-result-head, .pay-title, .pay-name h4, .pay-card h4, .pay-receipt-head h4, .est-name h4, .est-result h4, .inv-owner h4, .doc-head h2, .sch-month { font-family: var(--display) !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: -.025em !important; }
.style-card-info h3 { font-size: 18px !important; line-height: 1.1 !important; }
.style-card { border: 0; border-radius: 2px; background: var(--panel2); }
.style-card:hover, .style-card:focus-visible { transform: none; border-color: transparent; box-shadow: none; }
.style-card:focus-visible { outline: 1.5px solid var(--ink); }
.pay-rate, .pay-rtotal, .est-big, .inv-total { color: var(--good) !important; }
.lb-rank { color: var(--muted) !important; }
.hint, .loading { color: var(--dim); }

/* ---------- phones */
/* ---------- review player: full playback (raw or any edited version) with notes pinned to the timeline, opened from the Pipeline drawer's Review button. Floats over the app, so it's glass like .drawer/.modal, not flat like the pages underneath (see cinema.css's own glass block above). */
.review { position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1); display: grid; grid-template-rows: auto minmax(0,1fr); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; padding: calc(14px + env(safe-area-inset-top,0px)) 20px calc(16px + env(safe-area-inset-bottom,0px)); }
.review.on { opacity: 1; visibility: visible; transition: opacity .25s; }
.rv-top { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 10px 18px; align-items: center; padding-bottom: 14px; }
.rv-top .eyebrow { margin: 0; font: 500 11px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.rv-top h2 { margin: 4px 0 0; font: 600 24px/1.1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.rv-top .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rv-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.rv-acts .appr-btn, .rv-acts .chip { white-space: nowrap; }
.rv-close { width: 34px; height: 34px; border-radius: 50%; background: var(--cap); border: 1px solid var(--cap-edge); box-shadow: var(--cap-hi); color: var(--ink); font-size: 18px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.rv-close:hover { background: rgba(255,255,255,.12); }
.rv-body { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 18px; min-height: 0; }
.rv-stage { display: grid; grid-template-rows: auto minmax(0,1fr) auto; min-height: 0; gap: 10px; }
.vers { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg-btn { font: 500 11px/1 var(--body); letter-spacing: .04em; color: var(--dim); background: var(--cap); border: 1px solid var(--cap-edge); border-radius: 999px; padding: 7px 13px; }
.seg-btn[aria-pressed="true"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.vidwrap { position: relative; min-height: 0; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--glass-edge); display: grid; place-items: center; }
.vidwrap video { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.vidwrap .bigplay { position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.32); backdrop-filter: blur(8px); display: grid; place-items: center; color: #fff; transition: opacity .3s; }
.vidwrap.playing .bigplay { opacity: 0; pointer-events: none; }
.vidwrap .cmtflash { position: absolute; left: 16px; bottom: 16px; max-width: 60%; padding: 10px 14px; border-radius: 14px; background: rgba(0,0,0,.62); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); font: 400 13px/1.4 var(--body); color: var(--ink); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.vidwrap .cmtflash.on { opacity: 1; transform: none; }
.vidwrap .cmtflash small { display: block; font: 500 10px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); opacity: .6; margin-bottom: 5px; }
.ctlbar { display: grid; grid-template-columns: auto auto auto minmax(0,1fr) auto auto auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--cap-edge); border-radius: 999px; background: var(--cap); }
.ctlbar button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.ctlbar button:hover { background: rgba(255,255,255,.12); }
.ctlbar time { font: 400 10.5px/1 var(--body); font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--dim); white-space: nowrap; }
.ctlbar .spd { width: auto; padding: 0 9px; border-radius: 999px; border: 1px solid var(--cap-edge); font: 400 10px/1 var(--body); letter-spacing: .04em; }
.scrub { position: relative; height: 26px; display: grid; align-items: center; }
.scrub input { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; margin: 0; position: relative; z-index: 2; }
.scrub input::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) var(--p,0%), rgba(255,255,255,.2) var(--p,0%)); }
.scrub input::-moz-range-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) var(--p,0%), rgba(255,255,255,.2) var(--p,0%)); }
.scrub input::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%; background: #fff; margin-top: -4px; border: 0; }
.scrub input::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 0; }
.scrub .mk { position: absolute; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--dim); z-index: 3; cursor: pointer; border: 0; transition: transform .15s; }
.scrub .mk.mine { background: var(--ink); }
.scrub .mk:hover, .scrub .mk.on { transform: scale(1.7); }
.thread { display: grid; grid-template-rows: auto minmax(0,1fr) auto; min-height: 0; border-radius: 22px; padding: 16px 16px 14px; background: var(--glass); backdrop-filter: blur(26px) saturate(1.2); -webkit-backdrop-filter: blur(26px) saturate(1.2); border: 1px solid var(--glass-edge); }
.thread-head h3 { margin: 0 0 12px; font: 600 15px/1.2 var(--display); letter-spacing: -.01em; color: var(--ink); }
.thread-head h3 span { color: var(--dim); font-weight: 500; }
.cmts { overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.cmt { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px; padding: 10px; border-radius: 14px; cursor: pointer; }
.cmt:hover, .cmt.on { background: var(--cap); }
.cmt .ts { font: 500 10.5px/1.6 var(--body); font-variant-numeric: tabular-nums; color: var(--dim); }
.cmt .who { font: 500 11px/1.4 var(--body); color: var(--dim); margin-bottom: 2px; }
.cmt .who b { color: var(--ink); font-weight: 600; }
.cmt p { margin: 0; font: 400 13px/1.45 var(--body); color: var(--ink); }
.cmts .empty { font: 400 13px/1.5 var(--body); color: var(--dim); padding: 6px 2px; }
.compose { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--cap-edge); }
.compose .at { display: flex; justify-content: space-between; font: 500 10.5px/1 var(--body); letter-spacing: .03em; color: var(--dim); margin-bottom: 7px; }
.compose .at b { color: var(--ink); font-variant-numeric: tabular-nums; }
.compose textarea { width: 100%; min-height: 56px; resize: vertical; background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.035)); border: 1px solid var(--cap-edge); border-radius: 14px; padding: 10px 12px; color: var(--ink); font: 400 13px/1.4 var(--body); box-shadow: var(--cap-hi); }
.compose .cb { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.compose .cb small { font: 400 10.5px/1.3 var(--body); color: var(--dim); }
.btn.sm { padding: 7px 13px; font-size: 11.5px; }

@media (max-width: 720px) {
  .side { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .side .logo { margin: 0; font-size: 14px; }
  html[data-tabs="top"] .tab, .tab { font-size: 15px; padding: 6px 0; white-space: normal; }
  html[data-tabs="top"] .side { grid-template-columns: auto minmax(0,1fr) auto; column-gap: 12px; padding-bottom: 10px; }
  html[data-tabs="top"] .side .logo, html[data-tabs="top"] .side-foot { min-width: 0; }
  html[data-tabs="top"] .side .logo { font-size: 11px; }
  html[data-tabs="top"] .side-tabs { gap: 0 16px; }
  html[data-tabs="top"] .notif-wrap, html[data-tabs="top"] .me { display: none; }
  .tab.admin, .tab:not(.admin) + .tab.admin { margin: 0; padding: 6px 0 6px 12px; border-top: 0; border-left: 1px solid var(--line); border-radius: 0; }
  .tab.admin + .tab.admin { padding-left: 0; border-left: 0; }
  .tabs-sw { display: none; }
  main { padding: 18px 16px 50px; }
  .col { width: 220px; min-width: 220px; }
  .mini { min-height: 32px; padding: 6px 10px; }
  .card-check { width: 28px; height: 28px; }
  .card-check input { width: 20px; height: 20px; }
  .drawer { top: 8px; right: 8px; bottom: 8px; max-width: calc(100vw - 16px); border-radius: 22px; padding: 20px 18px 24px; }
  .review { padding: 12px 12px calc(12px + env(safe-area-inset-bottom,0px)); }
  .rv-top h2 { font-size: 18px; }
  .rv-body { grid-template-columns: 1fr; grid-template-rows: minmax(0,1fr) minmax(180px,40%); overflow-y: auto; }
  .thread { border-radius: 18px; }
}
