/* Catalyst — a quiet, cinematic editor look after a simplified Unreal 5 editor: off-black chrome, dark grey panels,
   one dark red accent with a brighter red for what is live or selected. Less is more: few colours, small type, thin lines. */
:root {
  color-scheme: dark;
  /* neutrals lean a little toward the red, so the greys belong to the accent instead of fighting it */
  --bg: #0f0d0d; --chrome: #0a0909; --panel: #161313; --panel-2: #1d1919; --panel-3: #262020; --well: #0b0a0a;
  --line: #2a2424; --line-2: #3a3232; --text: #ece6e1; --muted: #a69d96; --faint: #706762;
  --accent: #9e1c23; --accent-2: #e2373f; --accent-ink: #fff; --accent-dim: rgba(226, 55, 63, 0.13); --accent-glow: rgba(226, 55, 63, 0.28);
  --warm: #d9a066; --ok: #6cbd8a; --warn: #d8a64a; --bad: #ff5d63; --info: #7ea9d8;
  --radius: 6px; --r-sm: 4px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Inter", sans-serif;          /* titles and labels: the condensed caps of a slate or an end credit */
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;          /* frames, timecode, versions */
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 13px/1.45 var(--font); -webkit-font-smoothing: antialiased; letter-spacing: 0.005em; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #2a2a2e; border: 3px solid transparent; background-clip: padding-box; border-radius: 6px; } ::-webkit-scrollbar-thumb:hover { background-color: #3a3a40; } ::-webkit-scrollbar-track { background: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--text); text-decoration: none; } a:hover { color: var(--accent-2); }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font: 600 27px/1.1 var(--display); letter-spacing: 0.035em; text-transform: uppercase; } h2 { font-size: 14.5px; letter-spacing: -0.005em; } h3 { font-size: 13px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .mono { font-family: var(--mono); font-size: 11.5px; }
.row { display: flex; align-items: center; gap: 10px; } .wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; } .right { margin-left: auto; }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* the main toolbar */
#top { height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--chrome); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 9px; font: 600 15px var(--display); letter-spacing: 0.3em; text-transform: uppercase; white-space: nowrap; }
.brand .mark { width: 20px; height: 20px; flex: none; } .brand small { font: 500 10px var(--font); color: var(--faint); letter-spacing: 0.14em; margin-left: 2px; }
#top > select { background: var(--panel-2); border-color: var(--line); height: 30px; padding: 0 10px; font-weight: 500; }
.modes { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 2px; }
.modes button { border: 0; background: none; padding: 4px 13px; border-radius: 3px; cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0.02em; }
.modes button:hover { color: var(--text); } .modes button.on { background: var(--accent); color: #fff; box-shadow: inset 0 -2px 0 var(--accent-2); }
#top input[type=search] { height: 30px; background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%236b6762' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath d='M9.5 9.5L13 13'/%3E%3C/svg%3E") 10px 50% no-repeat; padding-left: 30px; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); } .live.on { background: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-glow); }

/* the outliner (left) */
#shell { display: grid; grid-template-columns: 224px 1fr; min-height: calc(100vh - 46px); }
#nav { background: var(--panel); border-right: 1px solid var(--line); padding: 10px 8px 40px; position: sticky; top: 46px; height: calc(100vh - 46px); overflow: auto; }
#nav .group { font: 600 11.5px var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin: 18px 10px 6px; }
#nav a { display: flex; justify-content: space-between; align-items: center; padding: 5px 10px; border-radius: var(--r-sm); color: var(--muted); font-size: 12.5px; position: relative; }
#nav a:hover { background: var(--panel-2); color: var(--text); }
#nav a.on { background: var(--accent-dim); color: #fff; } #nav a.on::before { content: ''; position: absolute; left: 0; top: 5px; bottom: 5px; width: 2px; border-radius: 2px; background: var(--accent-2); }
#nav a .n { color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; } #nav a.on .n { color: var(--accent-2); }
#main { padding: 24px 28px 90px; min-width: 0; } .mono, .tc, td.num { font-variant-numeric: tabular-nums; }
.head { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.head p { margin: 5px 0 0; color: var(--muted); max-width: 72ch; font-size: 12.5px; }

/* controls */
.btn { border: 1px solid var(--line-2); background: var(--panel-3); padding: 5px 12px; border-radius: var(--r-sm); cursor: pointer; white-space: nowrap; font-size: 12px; font-weight: 500; color: var(--text); transition: background .12s, border-color .12s; }
.btn:hover { background: #2d2d31; border-color: #45454c; } .btn:active { transform: translateY(0.5px); }
.btn.primary { background: var(--accent); color: #fff; border-color: rgba(255, 90, 95, 0.35); } .btn.primary:hover { background: #b9232b; border-color: var(--accent-2); }
.btn.ghost { background: none; border-color: transparent; color: var(--muted); } .btn.ghost:hover { color: var(--text); background: var(--panel-2); }
.btn.small { padding: 3px 9px; font-size: 11.5px; } .btn.danger { color: var(--bad); }
input[type=text], input[type=number], input[type=date], input[type=search], input[type=email], input[type=password], select, textarea { width: 100%; background: var(--well); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 9px; font-size: 12.5px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { min-height: 76px; resize: vertical; } textarea.mono { min-height: 260px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-glow); } .btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 1px; }
label.f { display: block; } label.f > span { display: block; font: 600 11.5px var(--display); color: var(--faint); margin-bottom: 4px; letter-spacing: 0.14em; text-transform: uppercase; }

/* panels and tiles */
.card { background: var(--panel); border: 1px solid rgba(255, 255, 255, 0.025); border-radius: var(--radius); padding: 16px; }
.card > h2, .card > .row:first-child > h2 { font: 600 12px var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }   /* panel titles read like editor tabs */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tile:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45); }
.tile .thumb { aspect-ratio: 2.39 / 1; background: var(--well) center / cover no-repeat; border-bottom: 1px solid var(--line); }
.tile .thumb.tall { aspect-ratio: 4 / 3; }
.tile .body { padding: 10px 12px 12px; } .tile .body strong { font-weight: 600; font-size: 12.5px; } .tile .body p { margin: 4px 0 0; color: var(--muted); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pill { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 0.01em; padding: 1px 7px; border-radius: 3px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; background: var(--panel-2); }
.pill.approved, .pill.done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 9%, transparent); }
.pill.review { color: var(--info); border-color: color-mix(in srgb, var(--info) 40%, transparent); background: color-mix(in srgb, var(--info) 9%, transparent); }
.pill.changes, .pill.must { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: color-mix(in srgb, var(--bad) 9%, transparent); }
.pill.progress, .pill.doing, .pill.should { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 9%, transparent); }
.pill.locked, .pill.agent { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 40%, transparent); background: var(--accent-dim); }
.swatch { width: 16px; height: 16px; border-radius: 3px; border: 1px solid var(--line-2); display: inline-block; }
.swatches { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }

/* the pipeline matrix */
table.matrix { border-collapse: separate; border-spacing: 2px; width: 100%; } table.matrix th { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); text-align: left; padding: 4px 6px; vertical-align: bottom; }
table.matrix td.name { white-space: nowrap; padding-right: 12px; cursor: pointer; font-size: 12.5px; } table.matrix td.name:hover { color: var(--accent-2); }
td.cell { height: 26px; min-width: 62px; border-radius: 3px; background: var(--panel-2); cursor: pointer; text-align: center; font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.04em; }
td.cell:hover { outline: 1px solid var(--line-2); }
td.cell.s-approved { background: color-mix(in srgb, var(--ok) 32%, var(--panel)); color: var(--text); } td.cell.s-review { background: color-mix(in srgb, var(--info) 32%, var(--panel)); color: var(--text); }
td.cell.s-in-progress { background: color-mix(in srgb, var(--warn) 28%, var(--panel)); color: var(--text); } td.cell.s-changes-requested { background: color-mix(in srgb, var(--accent-2) 38%, var(--panel)); color: var(--text); }
td.cell.s-not-needed { background: none; border: 1px dashed var(--line); }
.bar { height: 4px; border-radius: 2px; background: var(--panel-3); overflow: hidden; } .bar i { display: block; height: 100%; background: var(--accent-2); }

/* boards */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; align-items: start; }
.col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 120px; }
.col.over { border-color: var(--accent-2); } .col h3 { font: 600 10px var(--font); text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 8px; }
.task { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; margin-bottom: 6px; cursor: grab; } .task:hover { border-color: var(--line-2); }
.task .t { font-weight: 600; font-size: 12.5px; } .task .m { font-size: 11.5px; color: var(--muted); margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; } .frame { flex: 0 0 250px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; } .frame:hover { border-color: var(--line-2); }
.frame .thumb { aspect-ratio: 2.39 / 1; background: var(--well) center / cover no-repeat; display: grid; place-items: center; color: var(--faint); font-size: 11px; } .frame .body { padding: 8px 10px; font-size: 12px; }
.canvas { position: relative; height: 70vh; background: var(--well); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; background-image: radial-gradient(#1f1f22 1px, transparent 1px); background-size: 22px 22px; }
.pin { position: absolute; width: 220px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; cursor: grab; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5); }
.pin img { display: block; width: 100%; pointer-events: none; } .pin .cap { padding: 6px 8px; font-size: 11.5px; }

/* chat and history */
.msgs { display: flex; flex-direction: column; gap: 12px; } .msg { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--panel-3); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line-2); text-transform: uppercase; }
.avatar.agent { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 45%, transparent); background: var(--accent-dim); }
.msg .who { font-weight: 600; font-size: 12.5px; } .msg .when { color: var(--faint); font-size: 11px; margin-left: 6px; } .msg .text { white-space: pre-wrap; color: #d6d2cd; }
.log { display: grid; grid-template-columns: 150px 130px 90px 1fr auto; gap: 4px 12px; align-items: center; font-size: 12px; } .log > div { padding: 6px 0; border-bottom: 1px solid var(--line); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the details panel (right) */
#drawer { position: fixed; top: 46px; right: 0; bottom: 0; width: min(600px, 100vw); background: var(--panel); border-left: 1px solid var(--line-2); overflow: auto; padding: 16px 18px 60px; z-index: 30; box-shadow: -24px 0 50px rgba(0, 0, 0, 0.55); }
#drawer .tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 14px 0; }
#drawer .tabs button { background: none; border: 0; padding: 7px 11px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; font-size: 12px; font-weight: 500; }
#drawer .tabs button:hover { color: var(--text); } #drawer .tabs button.on { color: var(--text); border-color: var(--accent-2); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .fields .wide { grid-column: 1 / -1; }
.assetpick { display: flex; gap: 10px; align-items: center; } .assetpick .prev { width: 96px; aspect-ratio: 16/9; border-radius: var(--r-sm); background: var(--well) center / cover no-repeat; border: 1px solid var(--line); flex: none; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; } .checks label { border: 1px solid var(--line-2); border-radius: 3px; padding: 2px 9px; font-size: 11.5px; cursor: pointer; color: var(--muted); } .checks input { display: none; } .checks label.on { border-color: var(--accent-2); color: #fff; background: var(--accent-dim); }
#toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--panel-3); border: 1px solid var(--line-2); border-left: 3px solid var(--accent-2); padding: 9px 14px; border-radius: var(--r-sm); z-index: 80; max-width: 80vw; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); font-size: 12.5px; }
#toast.bad { border-left-color: var(--bad); color: var(--bad); }
.empty { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--faint); font-size: 12.5px; }
.drop { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 14px; text-align: center; color: var(--faint); } .drop.over { border-color: var(--accent-2); color: var(--accent-2); }
@media (max-width: 860px) { #shell { grid-template-columns: 1fr; } #nav { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 2px; padding: 8px; } #nav .group { width: 100%; margin: 8px 6px 2px; } }

/* shoot day */
.slate h2 { font-family: var(--mono); font-size: 16px; } .slatebody p { margin: 8px 0 0; } .slatebody .lines, .pack .lines { font-family: var(--mono); font-size: 13px; white-space: pre-wrap; border-left: 2px solid var(--line); padding-left: 10px; }
.small { font-size: 12px; }
table.takes { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; } table.takes th { text-align: left; font-size: 11px; font-weight: 500; color: var(--muted); padding: 4px 6px; border-bottom: 1px solid var(--line); }
table.takes td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: middle; } table.takes td.num { font-family: var(--mono); font-weight: 700; width: 44px; } table.takes td.note { min-width: 200px; }
table.takes tr.circled td.num { color: var(--ok); } table.takes tr.ng { opacity: 0.55; }
.streams { display: inline-flex; gap: 3px; } .chip { width: 20px; height: 20px; border-radius: 4px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--faint); border: 1px dashed var(--line); }
.chip.on { color: var(--text); border: 1px solid var(--faint); background: var(--panel-2); }
.rate { display: inline-flex; gap: 3px; } .rate .btn.on.r-ng { color: var(--bad); border-color: var(--bad); } .rate .btn.on.r-ok { color: var(--info); border-color: var(--info); } .rate .btn.on.r-circled { background: var(--ok); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.thumbsm { display: block; width: 84px; aspect-ratio: 16 / 9; border-radius: 4px; background: var(--panel-2) center / cover no-repeat; border: 1px solid var(--line); }
/* the shoot pack: on screen as a page, on paper without the app around it */
body.printing #top, body.printing #nav { display: none; } body.printing #shell { display: block; } body.printing #main { max-width: 900px; margin: 0 auto; }
.pack h1 { margin: 16px 0 4px; } .packslate { border-top: 2px solid var(--text); margin-top: 22px; padding-top: 10px; break-inside: avoid; } .packslate h2 { font-family: var(--mono); }
.pack img.plan { max-width: 100%; max-height: 300px; border: 1px solid var(--line); margin: 6px 0; } .pack img.plan.big { max-height: none; width: 100%; max-width: 640px; display: block; break-after: page; }
table.sheet { width: 100%; border-collapse: collapse; margin-top: 8px; } table.sheet th, table.sheet td { border: 1px solid var(--line); padding: 7px 6px; text-align: left; font-size: 12px; } table.sheet td { height: 24px; }
table.sheet th:nth-child(1) { width: 52px; } table.sheet th:nth-child(2) { width: 110px; } table.sheet th:nth-child(3) { width: 110px; }
@media print { body { background: #fff; color: #000; } .noprint { display: none; } #main { padding: 0; } .muted { color: #444; } table.sheet th, table.sheet td { border-color: #888; } .packslate { border-color: #000; } }

/* review room */
h3.sect { font: 600 12px var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin: 18px 0 8px; }
.rvcard .thumb { aspect-ratio: 16 / 9; display: grid; place-items: center; } .vidmark { font-size: 12px; color: var(--muted); }
.room { display: flex; flex-direction: column; gap: 12px; height: calc(100vh - 52px - 44px); }
.roomhead { display: flex; align-items: center; gap: 12px; } .roomhead h1 { font-size: 22px; } .versel { width: auto; }
.roombody { display: grid; grid-template-columns: 1fr 340px; gap: 16px; min-height: 0; flex: 1; }
.stagecol { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; }
.tools { display: inline-flex; align-self: flex-start; align-items: center; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tool { width: 34px; height: 30px; border: 0; background: none; border-radius: 999px; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.tool:hover { color: var(--text); } .tool.on { background: var(--accent); color: var(--accent-ink); }
.tools .sep { width: 1px; height: 20px; background: var(--line); margin: 0 6px; }
.swatchbtn { width: 20px; height: 20px; border-radius: 50%; border: 2px solid transparent; background: var(--c); cursor: pointer; margin: 0 3px; box-shadow: 0 0 0 1px var(--line); }
.swatchbtn.on { border-color: var(--bg); box-shadow: 0 0 0 2px var(--c); }
.stages { flex: 1; min-height: 0; display: grid; place-items: center; background: #050505; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; } .stages.two { grid-template-columns: 1fr 1fr; gap: 10px; }
.stagewrap { width: 100%; height: 100%; display: grid; place-items: center; min-height: 0; }
.stage { position: relative; max-width: 100%; max-height: 100%; aspect-ratio: 16 / 9; width: 100%; }
.stage img, .stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; }
.stage svg.ink { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.stage.cmp { opacity: .92; } .cmplabel { position: absolute; left: 8px; top: 8px; font: 600 11px var(--mono); background: rgba(0,0,0,.6); color: #fff; padding: 2px 6px; border-radius: 4px; }
.transport { display: flex; align-items: center; gap: 8px; } .scrubwrap { position: relative; flex: 1; } .scrub { width: 100%; accent-color: var(--accent); }
.ticks { position: absolute; left: 0; right: 0; top: -6px; height: 6px; pointer-events: none; } .ticks i { position: absolute; width: 3px; height: 8px; border-radius: 2px; background: var(--accent-2); pointer-events: auto; cursor: pointer; transform: translateX(-1px); }
.tc { min-width: 120px; text-align: right; color: var(--muted); }
.npanel { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-height: 0; }
.nlist { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 6px; margin: 0 -4px; padding: 0 4px; }
.ngroup { font: 600 11px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 8px 0 2px; }
.ncard { border: 1px solid var(--line); border-radius: 8px; padding: 8px; cursor: pointer; background: var(--panel-2); position: relative; } .ncard:hover, .ncard.hl { border-color: var(--faint); }
.ncard .x { position: absolute; top: 4px; right: 4px; padding: 0 6px; }
.nthumb { width: 64px; height: 40px; flex: none; border-radius: 4px; background: var(--bg) center / cover no-repeat; border: 1px solid var(--line); }
.nthumb.scope { display: grid; place-items: center; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ntext { margin-top: 4px; font-size: 12.5px; } .nanswer { margin-top: 6px; font-size: 11.5px; color: var(--muted); border-left: 2px solid var(--ok); padding-left: 8px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; } .ncard:hover .nanswer { -webkit-line-clamp: unset; }
.chip-scope { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.chip-scope .dot { width: 8px; height: 8px; border-radius: 50%; }
.send { margin-top: 10px; padding: 10px; font-size: 14px; }
.notepop { position: fixed; z-index: 60; width: 320px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.notepop textarea { min-height: 64px; }
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.45); display: grid; place-items: center; } .modalcard { width: min(560px, 92vw); }
.jobcard { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 10px 12px; } .jobcard p { margin: 6px 0 0; }
.btn.on { border-color: var(--accent); color: var(--accent); }
@media (max-width: 1000px) { .roombody { grid-template-columns: 1fr; } .room { height: auto; } .stages { min-height: 50vh; } }

/* sign-in */
body.signedout { display: grid; place-items: center; min-height: 100vh; } .signin { width: min(380px, 92vw); padding: 26px; } .signin h1 { margin-bottom: 4px; } .signin form { margin-top: 16px; }
.signin input { padding: 10px 12px; } .signin .err { color: var(--bad); margin: 0; min-height: 1em; font-size: 13px; }
.card.slate > .row:first-child > h2 { font: 500 14px var(--mono); letter-spacing: 0.02em; text-transform: none; color: var(--accent-2); margin: 0; min-width: 34px; }   /* a slate code reads like the slate */

/* outliner icons */
#nav a .ico { width: 16px; height: 16px; flex: none; color: var(--faint); margin-right: 9px; } #nav a:hover .ico { color: var(--muted); } #nav a.on .ico { color: var(--accent-2); }
#nav a .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* overview: the project's own picture under its title */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 230px; display: flex; align-items: flex-end; background: var(--well) center 40% / cover no-repeat; margin-bottom: 4px; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 9, 9, 0.94) 0%, rgba(10, 9, 9, 0.72) 42%, rgba(10, 9, 9, 0.15) 100%), linear-gradient(0deg, rgba(10, 9, 9, 0.85) 0%, transparent 55%); }
.hero .in { position: relative; z-index: 1; padding: 26px 28px; max-width: 640px; display: flex; flex-direction: column; gap: 10px; }
.hero h1 { font-size: 40px; letter-spacing: 0.04em; } .hero p { margin: 0; color: #d6cec8; font-size: 13.5px; max-width: 58ch; }
.hero .spec { display: flex; gap: 16px; flex-wrap: wrap; font: 500 11.5px var(--mono); color: var(--muted); letter-spacing: 0.04em; } .hero .spec b { color: var(--text); font-weight: 500; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.kpi { background: var(--panel); border-radius: var(--radius); padding: 13px 16px; display: flex; flex-direction: column; gap: 4px; border-left: 2px solid var(--line-2); cursor: pointer; transition: background .12s; } .kpi:hover { background: var(--panel-2); }
.kpi .k { font: 600 11.5px var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); } .kpi .v { font: 500 24px var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.kpi .s { font-size: 11.5px; color: var(--muted); } .kpi.hot { border-left-color: var(--accent-2); } .kpi.hot .v { color: var(--accent-2); }

/* the status bar */
#status { position: fixed; left: 0; right: 0; bottom: 0; height: 24px; display: flex; align-items: center; gap: 16px; padding: 0 14px; background: var(--chrome); border-top: 1px solid var(--line); font: 500 10.5px var(--mono); color: var(--faint); letter-spacing: 0.03em; z-index: 25; }
#status .on { color: var(--muted); } #status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); display: inline-block; margin-right: 6px; } #status .dot.live { background: var(--accent-2); box-shadow: 0 0 0 2px var(--accent-glow); }
#status .sp { flex: 1; } #nav { height: calc(100vh - 46px - 24px); } #drawer { bottom: 24px; }
body.signedout #status, body.printing #status { display: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.btn.primary:disabled, .send:disabled { background: var(--panel-2); color: var(--faint); border-color: var(--line); box-shadow: none; }
.stagemeta { position: absolute; left: 10px; bottom: 8px; font: 500 10.5px var(--mono); color: rgba(255, 255, 255, 0.55); letter-spacing: 0.04em; pointer-events: none; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); font-variant-numeric: tabular-nums; }

.rvcard .thumb .tilevid { width: 100%; height: 100%; object-fit: cover; display: block; }
.ncard { padding-right: 28px; }

/* Unreal assets: the Content Browser's picture-and-type-strip cards, quieter */
.ue-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ue-bar .ue-search { width: min(320px, 100%); } .ue-bar select { width: auto; max-width: 260px; }
.ue-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ue-chip { display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px var(--font); color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; cursor: pointer; transition: color .12s, border-color .12s, background .12s; }
.ue-chip:hover { color: var(--text); border-color: var(--line-2); }
.ue-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--type, var(--faint)); }
.ue-chip span { font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.ue-chip.on { color: var(--text); background: var(--panel-3); border-color: color-mix(in srgb, var(--type, var(--accent-2)) 55%, transparent); }
.ue-chip.on span { color: var(--muted); }
.ue-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ue-card { all: unset; box-sizing: border-box; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.ue-card:hover, .ue-card:focus-visible { border-color: var(--line-2); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5); }
.ue-card:focus-visible { outline: 1px solid var(--accent-2); outline-offset: 1px; }
.ue-card.missing { opacity: 0.5; }
.ue-thumb { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 50% 42%, #1c1818, var(--well) 72%); border-bottom: 2px solid var(--type); display: grid; place-items: center; overflow: hidden; }
.ue-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ue-glyph { font: 600 12px var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in srgb, var(--type) 70%, var(--faint)); text-align: center; padding: 0 10px; }
.ue-flag { position: absolute; top: 6px; left: 6px; }
.ue-body { padding: 7px 9px 9px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ue-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ue-type { font: 500 10.5px var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: color-mix(in srgb, var(--type) 75%, var(--text)); }
.ue-meta { display: flex; justify-content: space-between; gap: 8px; font: 10.5px var(--mono); color: var(--faint); } .ue-meta span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ue-hero { aspect-ratio: 1; max-height: 360px; margin: 12px auto 0; border-radius: var(--radius); background: radial-gradient(circle at 50% 42%, #1c1818, var(--well) 72%); border: 1px solid var(--line); border-bottom: 2px solid var(--type); display: grid; place-items: center; overflow: hidden; }
.ue-hero img { width: 100%; height: 100%; object-fit: contain; image-rendering: auto; }
.ue-kvs { display: grid; gap: 4px; } .ue-kv { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: 12.5px; } .ue-kv > span:first-child { color: var(--muted); } .ue-kv .mono { word-break: break-all; }

.stylebox { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 6px; }

/* ---------------------------------------------------------------- dropdowns
   The closed control is ours everywhere: no system bevel, a thin chevron. Where the browser lets the open list be styled
   too (Chromium: appearance base-select), it is a dark panel with the studio's red for the chosen line; elsewhere
   (Safari) the system menu opens from our control. */
select:not([multiple]) {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a69d96' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 10px 6px;
  transition: border-color .12s, background-color .12s;
}
select:not([multiple]):hover { border-color: var(--line-2); background-color: var(--panel); }
select:disabled { opacity: .5; cursor: default; }
@supports (appearance: base-select) {
  select:not([multiple]) { appearance: base-select; field-sizing: fixed; background-image: none; display: flex; align-items: center; gap: 8px; min-height: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  select:not([multiple]) > button, select:not([multiple]) selectedcontent { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  select:not([multiple])::picker-icon {
    content: ''; width: 10px; height: 6px; margin-left: auto; color: var(--muted); transition: rotate .15s ease;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a69d96' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px 6px no-repeat;
  }
  select:not([multiple]) { padding-right: 10px; }
  select:open { border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-glow); }
  select:open::picker-icon { rotate: 180deg; }
  select:not([multiple])::picker(select) {
    appearance: base-select; background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius);
    padding: 4px; margin-block: 4px; box-shadow: 0 14px 34px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .4);
    max-height: min(340px, 60vh); overflow-y: auto; scrollbar-width: thin; min-width: anchor-size(width);
    opacity: 1; transition: opacity .12s ease, translate .12s ease, display .12s allow-discrete, overlay .12s allow-discrete;
  }
  @starting-style { select:not([multiple])::picker(select):popover-open { opacity: 0; translate: 0 -4px; } }
  select:not([multiple]) option {
    display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 8px; border-radius: var(--r-sm);
    font-size: 12.5px; line-height: 1.35; color: var(--text); cursor: pointer; white-space: nowrap;
  }
  select:not([multiple]) option::checkmark { content: ''; width: 6px; height: 6px; border-radius: 50%; background: transparent; flex: none; }
  select:not([multiple]) option:checked::checkmark { background: var(--accent-2); box-shadow: 0 0 6px var(--accent-glow); }
  select:not([multiple]) option:hover, select:not([multiple]) option:focus-visible { background: var(--panel-3); outline: none; }
  select:not([multiple]) option:checked { color: #fff; font-weight: 500; }
  select:not([multiple]) option:disabled { color: var(--faint); cursor: default; }
  select:not([multiple]) optgroup { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 6px 8px 2px; }
}

/* ---------------------------------------------------------------- shot tracker and budget */
table.tracker { border-collapse: separate; border-spacing: 0; font-size: 12px; min-width: 100%; }
table.tracker th { position: sticky; top: 0; background: var(--panel-2); color: var(--muted); font-weight: 500; font-size: 11px; text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; z-index: 1; }
table.tracker td { border-bottom: 1px solid var(--line); padding: 4px 6px; vertical-align: middle; }
table.tracker .sticky { position: sticky; left: 0; background: var(--panel); z-index: 2; }
table.tracker th.sticky { z-index: 3; background: var(--panel-2); }
table.tracker .shotname { cursor: pointer; min-width: 220px; display: flex; align-items: center; gap: 8px; border-bottom: 0; }
table.tracker .shotname:hover strong { color: var(--accent-2); }
table.tracker .tcell { min-width: 74px; height: 34px; cursor: pointer; position: relative; border-left: 1px solid var(--line); font-size: 10.5px; }
table.tracker .tcell:hover { outline: 1px solid var(--line-2); outline-offset: -1px; }
table.tracker .tcell .st { display: block; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
table.tracker .tcell .who { position: absolute; right: 4px; top: 3px; font-size: 9.5px; background: var(--panel-3); border-radius: 8px; padding: 0 4px; color: var(--text); }
table.tracker .tcell .due { font-family: var(--mono); font-size: 9.5px; color: var(--faint); }
table.tracker .due.bad, .bad { color: var(--bad) !important; }
table.tracker .tcell.late { box-shadow: inset 2px 0 0 var(--bad); }
.tcell.s-todo { background: transparent; } .tcell.s-in-progress { background: rgba(126, 169, 216, .12); color: var(--info); }
.tcell.s-review { background: rgba(216, 166, 74, .14); color: var(--warn); } .tcell.s-changes-requested { background: rgba(255, 93, 99, .13); color: var(--bad); }
.tcell.s-approved { background: rgba(108, 189, 138, .14); color: var(--ok); } .tcell.s-not-needed { color: var(--faint); background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255,255,255,.025) 6px 12px); }
table.tracker .sumrow td { background: var(--panel-2); position: sticky; top: 33px; z-index: 1; }
table.tracker .tsum { font-size: 10.5px; color: var(--muted); }
.bar { height: 5px; background: var(--well); border-radius: 3px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--ok); }
.bar.over i { background: var(--bad); }
.months { display: flex; gap: 12px; align-items: flex-end; overflow-x: auto; padding-top: 6px; }
.month { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 70px; }
.month .col { height: 120px; width: 26px; background: var(--well); border-radius: 4px; display: flex; align-items: flex-end; overflow: hidden; }
.month .col i { display: block; width: 100%; background: linear-gradient(var(--accent-2), var(--accent)); }
table.plain { width: 100%; border-collapse: collapse; font-size: 12.5px; } table.plain td { padding: 6px 4px; border-bottom: 1px solid var(--line); }
