:root {
  --primary: #000000;
  --accent: #EC1C24;
  --bg: #0A0A0C;
  --fg: #FFFFFF;
  /* DERIVED from the brand's own bg/fg, never hardcoded.
     These were fixed dark-theme values (#121319 / #23252f / #8b8e9c). That is invisible
     for a brand whose bg is white: a light-ground brand renders --fg #1B2430 text on a
     --panel #121319 panel, a contrast ratio of 1.18:1, on the calendar — the Creative
     Lead's primary test surface. color-mix keeps every one of these relative to the
     brand's own background, so a light brand gets light panels and a dark brand gets
     dark ones with no per-brand branching. */
  --panel:   color-mix(in srgb, var(--fg) 5%,  var(--bg));
  --panel-2: color-mix(in srgb, var(--fg) 8%,  var(--bg));
  --line:    color-mix(in srgb, var(--fg) 16%, var(--bg));
  --muted:   color-mix(in srgb, var(--fg) 62%, var(--bg));
  --pass: #3ec77a;
  --fail: #ff5a5f;
  --warn: #f2b705;
  --display: 'Tahoma', system-ui, sans-serif;
  --body: 'Tahoma', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.wrap { max-width: none; margin: 0; padding: 0 40px 72px; }   /* full-bleed office — entire viewport */
.wrap--bleed { max-width: none; padding-left: 40px; padding-right: 40px; }
header.shell {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22,22,26,0.55), rgba(10,10,12,0.0));
  padding: 26px 28px 22px;
}
header.shell .inner { max-width: none; margin: 0; }
.brandline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brandline .brandmark { display: inline-flex; align-items: center; line-height: 0; }
.brandline .brandmark svg { height: 26px; width: auto; display: block; }
.brandline .mark {
  font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em;
}
.brandline .mark .dot { color: var(--accent); }
.brandline .role {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}
.tagline { color: var(--muted); margin-top: 6px; font-size: 13.5px; }
nav.officenav { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
nav.officenav a {
  color: var(--fg); font-size: 13px; padding: 7px 13px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel);
}
nav.officenav a:hover { border-color: var(--accent); text-decoration: none; }
nav.officenav a.active { background: var(--primary); border-color: var(--accent); }
/* The one nav entry that LEAVES the office: the cockpit, where work is edited and signed off.
   Dashed so it reads as a doorway rather than another office page. */
nav.officenav a.offsite { border-style: dashed; color: var(--muted); }
nav.officenav a.offsite:hover { color: var(--fg); border-color: var(--accent); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap; border:0; }
/* second-level tab bar (templates · calendar families) */
nav.subnav { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line); }
nav.subnav a { color: var(--muted); font-size: 12px; padding: 5px 11px; border-radius: 7px;
  border: 1px solid transparent; }
nav.subnav a:hover { color: var(--fg); border-color: var(--line); text-decoration: none; }
nav.subnav a.active { color: var(--fg); background: var(--panel); border-color: var(--accent); }
/* Grouped sub-nav (see lib.SUBNAV_GROUPS): clusters answer "what this is / your seat /
   how it runs" so a ten-tab bar reads as a route instead of a menu. */
nav.subnav.grouped { gap: 6px 18px; align-items: center; }
nav.subnav.grouped .subnav-group { display: inline-flex; align-items: center; gap: 4px;
  flex-wrap: wrap; }
nav.subnav.grouped .subnav-group + .subnav-group { padding-left: 18px;
  border-left: 1px solid var(--line); }
nav.subnav.grouped .subnav-label { font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted); opacity: 0.75; margin-right: 4px;
  font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) {
  nav.subnav.grouped .subnav-group { flex-basis: 100%; }
  nav.subnav.grouped .subnav-group + .subnav-group { padding-left: 0; border-left: 0; }
}
.srcline { margin-top: 6px; opacity: 0.7; }
.srcline .mono { font-size: 11px; color: var(--muted); }
.section-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted);
  margin: 38px 0 14px;
}
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
/* ── responsive hardening (mobile + tablet) — one place, every office page ── */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }                 /* no accidental horizontal scroll on phones */
img, svg, video, canvas, iframe { max-width: 100%; height: auto; }
h1, h2, h3, h4, p, .card, .v, .mark { overflow-wrap: anywhere; }
/* wide data tables scroll inside their own container, never break the page */
.tablewrap, .scrollx, .tablescroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
@media (max-width: 640px) {
  .wrap { padding: 0 14px 56px; }
  header.shell .inner, footer.shell .inner { padding-left: 14px; padding-right: 14px; }
  nav.officenav { gap: 5px; }
  nav.officenav a { font-size: 12px; padding: 6px 10px; }
  .brandline { gap: 8px; }
  .brandline .role { white-space: normal; font-size: 10px; }
  .brandline .brandmark svg { height: 22px; }
  table { font-size: 12px; }
}
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
}
.card .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.card .v { font-family: var(--display); font-size: 30px; font-weight: 700; margin-top: 6px; }
.card .sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.badge.pass { color: var(--pass); border-color: rgba(62,199,122,0.35); }
.badge.pass::before { background: var(--pass); }
.badge.fail { color: var(--fail); border-color: rgba(255,90,95,0.4); }
.badge.fail::before { background: var(--fail); }
.badge.warn { color: var(--warn); border-color: rgba(242,183,5,0.4); }
.badge.warn::before { background: var(--warn); }
.badge.skip { color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: none; }
.bar { height: 8px; border-radius: 999px; background: var(--panel-2); overflow: hidden; border: 1px solid var(--line); }
.bar > span { display: block; height: 100%; background: var(--accent); }
.bar.green > span { background: var(--pass); }
.mono { font-variant-numeric: tabular-nums; }
.dim { color: var(--muted); }
.pill-state { font-size: 11px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.pill-state.rendered-full { color: var(--pass); border-color: rgba(62,199,122,0.35); }
.pill-state.rendered-partial { color: var(--warn); border-color: rgba(242,183,5,0.4); }
.pill-state.scripted { color: var(--muted); }
footer.shell {
  border-top: 1px solid var(--line); color: var(--muted); font-size: 12px;
  padding: 22px 28px; margin-top: 40px;
}
footer.shell .inner { max-width: none; margin: 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.statusline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.statusline .big { font-family: var(--display); font-weight: 700; font-size: 15px; }

.glref { color: inherit; text-decoration: none; cursor: help;
  border-bottom: 1px dotted color-mix(in srgb, var(--accent) 65%, transparent); }
.glref:hover { color: var(--accent); border-bottom-style: solid; }

:root { --rowalt: color-mix(in srgb, var(--fg) 4%, transparent); }
  .cal-ethos { color:color-mix(in srgb,var(--fg) 85%,transparent); font-size:14px; letter-spacing:.08em; text-transform:uppercase; margin:0 0 10px; border-left:3px solid var(--accent); padding-left:10px; }
  .cal-intro { color:color-mix(in srgb,var(--fg) 78%,transparent); max-width:1100px; font-size:14px; margin:0; }
  .legend { display:flex; gap:18px; flex-wrap:wrap; margin:16px 0 4px; font-size:12px; color:color-mix(in srgb,var(--fg) 70%,transparent); }
  .legend i { display:inline-block; width:11px; height:11px; border-radius:3px; vertical-align:-1px; margin-right:5px; }
  .pub { margin-top:8px; font-size:12px; color:color-mix(in srgb,var(--fg) 62%,transparent); }
  .tablewrap { overflow:auto; border-top:1px solid var(--line); }
  table { border-collapse:collapse; width:100%; font-size:12px; table-layout:fixed; }
  thead th { position:sticky; top:0; z-index:3; background:var(--primary); color:var(--fg);
    font-family:var(--display); font-weight:600; font-size:10.5px; letter-spacing:.03em; text-transform:uppercase;
    padding:8px 8px; text-align:left; border-bottom:1px solid var(--line); vertical-align:top; }
  thead th small { display:block; font-family:var(--body); font-weight:400; text-transform:none; letter-spacing:0;
    font-size:9.5px; color:color-mix(in srgb,var(--fg) 62%,transparent); margin-top:2px; }
  thead th:nth-child(1){width:72px} thead th:nth-child(2){width:40px} thead th:nth-child(3){width:50px} thead th:nth-child(4){width:12%}
  td { padding:6px 8px; border-bottom:1px solid color-mix(in srgb,var(--fg) 6%,transparent); vertical-align:top;
    border-right:1px solid color-mix(in srgb,var(--fg) 5%,transparent); }
  td.cell { cursor:pointer; } td.cell:hover { background:color-mix(in srgb,var(--accent) 12%, transparent); outline:1px solid color-mix(in srgb,var(--accent) 40%, transparent); }
  /* Links in the grid and the modal: WHITE text, the accent on the underline — a 9px accent word
     at 55% opacity was the least legible thing on the page. */
  .edit-lnk { display:inline-block; margin-top:3px; font-family:var(--mono); font-size:9.5px; letter-spacing:.04em; color:color-mix(in srgb,var(--fg) 70%,transparent); text-decoration:underline; text-decoration-color:var(--accent); text-underline-offset:2px; }
  td.cell:hover .edit-lnk, details.cutsd:hover .edit-lnk, table.cuts tr:hover .edit-lnk, .edit-lnk:hover { color:var(--fg); }
  td.cell a, .modal-card a, .cal-foot a { color:var(--fg); text-decoration:underline; text-decoration-color:var(--accent); text-underline-offset:2px; }
  td.cell a:hover, .modal-card a:hover, .cal-foot a:hover { text-decoration-thickness:2px; }
  details.cutsd summary .edit-lnk, table.cuts td .edit-lnk { margin-left:8px; }
  .txt { display:block; color:color-mix(in srgb,var(--fg) 88%,transparent); }
  tr.day.campaign:nth-child(even) { background:var(--rowalt); }
  tr.day.wk-first td { border-top:2px solid var(--line); }
  tr.day.wk-first { background:color-mix(in srgb, var(--accent) 8%, transparent); }
  /* Off-weeks step back by colour, not by opacity: a row at 50% opacity put its own text under AA. */
  tr.day.off td { color:color-mix(in srgb,var(--fg) 62%,transparent); background:color-mix(in srgb,var(--fg) 2%,transparent); }
  .holchip { display:inline-block; margin-top:3px; font-size:10px; padding:1px 6px; border-radius:10px; background:color-mix(in srgb,var(--accent) 16%,transparent); color:var(--fg); }
  .promochip { display:inline-block; margin-top:3px; font-size:10px; font-weight:700; padding:1px 6px; border-radius:10px; background:var(--accent); color:#fff; cursor:help; }
  .c-wk { font-family:var(--display); font-weight:700; }
  /* A slot that holds several assets (Sunday's hero beats + long-form, Tuesday's two threads):
     one nested column of cells, each its own td.cell, no doubled borders or padding. */
  td.stack { padding:0; }
  .stackt { table-layout:fixed; width:100%; }
  tr.day.wk-first .stackt td, tr.day .stackt td { border-top:0; border-right:0; }
  .stackt tr:last-child td { border-bottom:0; }
  /* The topics shelf reuses the grid's cells; its columns are all topics, so the grid's fixed
     Day/Date widths must not apply to them. */
  table.topics thead th:nth-child(1) { width:104px; }
  table.topics thead th:nth-child(2), table.topics thead th:nth-child(3), table.topics thead th:nth-child(4) { width:auto; }
  details.fold.t > summary { font-size:14px; color:var(--fg); }
  .c-day, .c-date { color:color-mix(in srgb,var(--fg) 62%,transparent); font-variant-numeric:tabular-nums; }
  .camp-name { display:block; font-weight:600; color:var(--fg); }
  .camp-tag { display:block; color:color-mix(in srgb,var(--fg) 78%,transparent); font-size:10.5px; letter-spacing:.04em; text-transform:uppercase; margin-top:3px; }
  .bb-new, .bb-live { display:inline-block; font-size:9px; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
    padding:1px 5px; border-radius:5px; margin-right:5px; vertical-align:1px; }
  .bb-new { background:color-mix(in srgb,var(--accent) 22%,transparent); color:var(--fg); border:1px solid var(--accent); }
  .bb-live { background:color-mix(in srgb,var(--fg) 10%,transparent); color:color-mix(in srgb,var(--fg) 70%,transparent); border:1px solid var(--line); }
  .cell-chip { display:inline-block; background:color-mix(in srgb,var(--accent) 18%, transparent); border:1px solid var(--accent);
    color:var(--fg); border-radius:7px; padding:3px 9px; font-family:var(--body); font-size:11px; }
  details.fold > summary { cursor:pointer; padding:12px clamp(14px,3vw,40px); font-family:var(--display); font-weight:600; font-size:13px;
    color:color-mix(in srgb,var(--fg) 75%,transparent); background:color-mix(in srgb,var(--primary) 20%,var(--bg)); border-bottom:1px solid var(--line); }
  details.fold > summary:hover { color:var(--fg); text-decoration:underline; text-decoration-color:var(--accent); text-underline-offset:3px; }
  details.fold.y > summary { font-size:16px; color:var(--fg); background:color-mix(in srgb,var(--accent) 12%,var(--bg)); }
  details.fold.q > summary { font-size:14px; padding-left:calc(clamp(14px,3vw,40px) + 18px); }
  details.fold.m > summary { font-weight:500; padding-left:calc(clamp(14px,3vw,40px) + 36px); }
  details.fold .f-meta { font-family:var(--body); font-weight:400; font-size:11px; margin-left:10px; color:color-mix(in srgb,var(--fg) 62%,transparent); }
  .band { padding:0 clamp(14px,3vw,40px); }
  .band-h { font-family:var(--display); font-weight:700; font-size:18px; margin:34px 0 14px; color:var(--fg); border-bottom:2px solid var(--accent); display:inline-block; padding-bottom:2px; }
  .q-intro { color:color-mix(in srgb,var(--fg) 70%,transparent); font-size:13px; margin:-6px 0 14px; }
  .qgrid { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px,1fr)); gap:16px; margin-bottom:10px; }
  .qcard { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:0 0 12px; overflow:hidden; }
  .qcard header { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; padding:12px 16px;
    background:color-mix(in srgb,var(--accent) 12%, transparent); border-bottom:1px solid var(--line); }
  .q-tag { font-family:var(--display); font-weight:700; font-size:18px; color:var(--fg); border-bottom:2px solid var(--accent); }
  .q-range { font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:color-mix(in srgb,var(--fg) 62%,transparent); }
  .q-status { margin-left:auto; font-size:10px; text-transform:uppercase; letter-spacing:.06em; border:1px solid var(--accent);
    color:color-mix(in srgb,var(--fg) 85%,transparent); border-radius:20px; padding:2px 9px; }
  .q-camps { list-style:none; margin:0; padding:6px 0; }
  .q-camps li { display:flex; gap:12px; padding:8px 16px; border-bottom:1px solid color-mix(in srgb,var(--fg) 6%,transparent); }
  .q-camps li:last-child { border-bottom:0; }
  .qc-wk { font-family:var(--display); font-weight:700; font-size:12px; color:var(--fg); min-width:64px; font-variant-numeric:tabular-nums; }
  .qc-main { display:flex; flex-direction:column; gap:2px; }
  .qc-label { font-size:13px; color:color-mix(in srgb,var(--fg) 92%,transparent); }
  .qc-meta { font-size:10.5px; text-transform:uppercase; letter-spacing:.03em; color:color-mix(in srgb,var(--fg) 70%,transparent); }
  .q-foot { padding:10px 16px 0; font-size:11px; color:color-mix(in srgb,var(--fg) 62%,transparent); }
  .desc-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(340px,1fr)); gap:16px; }
  .desc { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:16px 18px; }
  .desc header { display:flex; gap:10px; align-items:baseline; font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:color-mix(in srgb,var(--fg) 62%,transparent); }
  .desc h3 { font-family:var(--display); font-size:16px; margin:8px 0 2px; } .d-tag { color:color-mix(in srgb,var(--fg) 78%,transparent); font-size:12px; margin:0 0 10px; }
  .d-field { margin-top:8px; } .d-k { font-size:10.5px; text-transform:uppercase; letter-spacing:.05em; color:color-mix(in srgb,var(--fg) 62%,transparent); }
  .d-field p { margin:3px 0 0; font-size:13px; color:color-mix(in srgb,var(--fg) 88%,transparent); }
  .threads { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px,1fr)); gap:14px; }
  .thread { background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:14px 16px; }
  .t-name { font-family:var(--display); font-weight:600; font-size:14px; } .t-meta { font-size:11px; color:color-mix(in srgb,var(--fg) 70%,transparent); margin:3px 0 6px; }
  .thread p { margin:0; font-size:12.5px; color:color-mix(in srgb,var(--fg) 80%,transparent); }
  .cal-foot { margin-top:24px; font-size:12px; color:color-mix(in srgb,var(--fg) 62%,transparent); }
  .cal-foot nav a { margin-right:14px; }
  .modal { position:fixed; inset:0; background:rgba(0,0,0,.62); display:none; align-items:flex-start; justify-content:center; padding:5vh 20px; z-index:50; }
  .modal.open { display:flex; }
  .modal-card { background:var(--panel); border:1px solid var(--accent); border-radius:14px; max-width:min(1180px, 94vw); width:100%; max-height:88vh; overflow:auto; box-shadow:0 20px 60px rgba(0,0,0,.5); }
  .modal-h { display:flex; align-items:center; gap:12px; padding:16px 20px; border-bottom:1px solid var(--line); position:sticky; top:0; background:var(--panel); }
  .modal-h h3 { font-family:var(--display); margin:0; font-size:18px; }
  .modal-x { margin-left:auto; background:transparent; border:1px solid var(--line); color:var(--fg); border-radius:8px; padding:5px 12px; cursor:pointer; font-family:var(--body); }
  .modal-x:hover { border-color:var(--accent); color:var(--fg); }
  .modal-body { padding:18px 20px; }
  .panel-rows { display:flex; flex-direction:column; gap:12px; }
  .pl { display:grid; grid-template-columns:150px 1fr; gap:12px; align-items:start; font-size:13.5px; }
  .pl.col { grid-template-columns:1fr; gap:6px; }
  .pk { font-size:11px; letter-spacing:.05em; text-transform:uppercase; color:color-mix(in srgb,var(--fg) 62%,transparent); }
  .pv { color:color-mix(in srgb,var(--fg) 92%,transparent); } .pv .quote { font-style:italic; }
  .cov { color:color-mix(in srgb,var(--fg) 78%,transparent); font-size:11px; margin-left:6px; text-transform:none; }
  ol.beats, ul.caps, ul.pubmap { margin:2px 0 0; padding-left:18px; font-size:13px; }
  ul.caps, ul.pubmap { list-style:none; padding-left:0; display:flex; flex-direction:column; gap:7px; }
  ul.caps b, ul.pubmap b { color:var(--fg); margin-right:6px; }
  ul.pubmap .vol { color:color-mix(in srgb,var(--fg) 85%,transparent); font-variant-numeric:tabular-nums; }
  ul.pubmap .tot { border-top:1px solid var(--line); margin-top:6px; padding-top:8px; color:var(--fg); }
  .blogbody { white-space:pre-wrap; font-size:12.5px; line-height:1.6; color:var(--tx2); max-height:46vh; overflow:auto; padding:10px 12px; background:color-mix(in srgb,var(--fg) 4%,transparent); border-radius:8px; border-left:3px solid var(--accent); }
  .tiers { display:flex; flex-wrap:wrap; gap:6px; }
  .tier { font-size:11px; border:1px solid var(--line); border-radius:7px; padding:5px 8px; display:flex; flex-direction:column; }
  .tier i { font-style:normal; font-size:9.5px; text-transform:uppercase; opacity:.7; } .tier.done { border-color:var(--accent); color:var(--fg); }
  /* The page-wide `table-layout:fixed` divides columns blindly, which crushed the authored-layers
     column to one word per line while acceptance sat mostly empty, and clipped the headers to
     'ASPEC'/'TEMPLA'. The cuts table sizes to its content instead, with the rule column given the
     room it actually needs and the whole table free to scroll on a narrow screen. */
  table.cuts { width:100%; border-collapse:collapse; font-size:12px; margin-top:6px;
    table-layout:auto; min-width:820px; }
  .cutswrap { overflow-x:auto; }
  table.cuts th { white-space:nowrap; }
  table.cuts col.c-room { width:8%; } table.cuts col.c-aspect { width:7%; }
  table.cuts col.c-tpl { width:12%; } table.cuts col.c-lay { width:32%; }
  table.cuts col.c-cap { width:24%; } table.cuts col.c-acc { width:17%; }
  table.cuts td:first-child, table.cuts td:nth-child(2) { white-space:nowrap; }
  table.cuts th { text-align:left; font-size:10px; letter-spacing:.06em; text-transform:uppercase; color:color-mix(in srgb,var(--fg) 62%,transparent); border-bottom:1px solid var(--line); padding:4px 6px; }
  table.cuts td { border-bottom:1px solid var(--line); padding:5px 6px; vertical-align:top; }
  table.cuts ul.lay { margin:0; padding-left:14px; } table.cuts ul.lay b { color:var(--fg); font-weight:600; margin-right:4px; }
  /* The Caption column. Unwritten is SHOWN as unwritten — a caption nobody has composed is
     not the scene's copy, and the cap is printed beside it so the reviewer sees the limit. */
  table.cuts td.c-cap { font-size:11.5px; line-height:1.45; }
  table.cuts td.c-cap .capempty { color:color-mix(in srgb,var(--fg) 62%,transparent); font-style:italic; }
  table.cuts td.c-cap .capnote { display:block; margin-top:3px; font-family:var(--mono,ui-monospace,monospace); font-size:9.5px; letter-spacing:.04em; text-transform:uppercase; color:color-mix(in srgb,var(--fg) 62%,transparent); }
  table.cuts td.c-cap .capval { display:block; max-height:7.6em; overflow:auto; white-space:pre-wrap; }
  table.cuts td.c-cap.written .capnote { color:color-mix(in srgb,var(--fg) 78%,transparent); }
  /* THE ASSET SHEET — the five sections a cell opens (brief · script · composition + variables ·
     channel posts · media). Rendered in the browser from /calendar/sheet/<id>.json. */
  .sheet-loading { color:color-mix(in srgb,var(--fg) 62%,transparent); font-size:12px; padding:10px 2px; }
  .sheet-id { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; margin:14px 0 4px; padding-top:12px; border-top:1px solid var(--line); }
  .sheet-id b { font-size:14px; } .sheet-id .vol { color:color-mix(in srgb,var(--fg) 78%,transparent); font-size:11px; font-family:var(--mono,ui-monospace,monospace); }
  /* A section is a fold. The two the reviewer judges (Brief, Script) open; the five generated facts
     fold behind one summary line each. The title is WHITE; the accent is the marker beside it. */
  .sheet-sec { margin:10px 0; border-top:1px solid var(--line); }
  .sheet-sec > summary { cursor:pointer; list-style:none; padding:8px 0 6px; display:flex; align-items:baseline; gap:8px; }
  .sheet-sec > summary::-webkit-details-marker { display:none; }
  .sheet-sec > summary::before { content:'\25B8'; color:var(--accent); font-size:11px; flex:0 0 auto; }
  .sheet-sec[open] > summary::before { content:'\25BE'; }
  .sheet-sec > summary:hover h4 { text-decoration:underline; text-decoration-color:var(--accent); text-underline-offset:3px; }
  .sheet-sec > summary:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:4px; }
  .sheet-sec h4 { margin:0; font-size:10.5px; letter-spacing:.09em; text-transform:uppercase; color:var(--fg); font-weight:700; display:inline; }
  .sheet-sec h4 .sheet-sub { margin-left:8px; color:color-mix(in srgb,var(--fg) 62%,transparent); letter-spacing:.04em; font-weight:400; text-transform:none; }
  .sheet-what { margin:8px 0 2px; font-size:12.5px; line-height:1.55; max-width:78ch; color:color-mix(in srgb,var(--fg) 88%,transparent); border-left:2px solid var(--accent); padding-left:10px; }
  .sheet-empty { margin:4px 0; font-size:11.5px; line-height:1.5; color:color-mix(in srgb,var(--fg) 62%,transparent); font-style:italic; }
  .sheet-brief p { margin:2px 0 8px; font-size:12.5px; line-height:1.6; }
  .sheet-lead { margin:2px 0 10px; font-size:13.5px; line-height:1.62; max-width:70ch; }
  .sheet-h5 { margin:12px 0 4px; font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color:color-mix(in srgb,var(--fg) 62%,transparent); }
  .sheet-kvs { display:grid; grid-template-columns:auto 1fr; gap:3px 12px; margin:6px 0; font-size:12px; align-items:baseline; }
  .sheet-k { font-family:var(--mono,ui-monospace,monospace); font-size:10px; letter-spacing:.06em; text-transform:uppercase; color:color-mix(in srgb,var(--fg) 62%,transparent); }
  .sheet-v { line-height:1.5; }
  /* Every label links to its glossary entry — the Chairman's rule: no name goes unexplained. */
  a.glref { color:inherit; text-decoration:none; border-bottom:1px dotted color-mix(in srgb,var(--accent) 60%,transparent); }
  a.glref:hover { color:var(--fg); border-bottom-style:solid; }
  .sheet-ex { font-size:11.5px; line-height:1.45; }
  .sheet-target { color:color-mix(in srgb,var(--fg) 85%,transparent); margin-top:2px; }
  .sheet-sect { font-family:var(--mono,ui-monospace,monospace); font-size:9.5px; color:color-mix(in srgb,var(--fg) 62%,transparent); margin-top:2px; }
  .sheet-alt { margin-top:4px; font-size:10.5px; color:color-mix(in srgb,var(--fg) 62%,transparent); }
  .sheet-ovr { font-size:11.5px; line-height:1.5; }
  table.cuts tr.authored td:first-child { border-left:2px solid var(--accent); }
  table.cuts tr.over td { background:color-mix(in srgb,var(--accent) 12%,transparent); }
  .sheet-chips .chip.empty { color:color-mix(in srgb,var(--fg) 62%,transparent); font-style:italic; }
  .sheet-chips .chip.big { font-size:10.5px; padding:3px 8px; }
  .sheet-comp { margin:10px 0 4px; font-size:12px; }
  .sheet-chips { display:flex; flex-wrap:wrap; gap:5px; margin-top:4px; }
  .sheet-chips .chip { font-size:9.5px; font-family:var(--mono,ui-monospace,monospace); letter-spacing:.04em; border:1px solid var(--line); border-radius:6px; padding:2px 6px; color:color-mix(in srgb,var(--fg) 65%,transparent); }
  .sheet-media { display:flex; flex-wrap:wrap; gap:10px; }
  .sheet-media .mcard { border:1px solid var(--line); border-radius:8px; padding:8px; width:170px; }
  .sheet-media .mcard.pending { opacity:.7; } .sheet-media .mcard.published, .sheet-media .mcard.rendered { border-color:var(--accent); }
  .sheet-media video { width:100%; border-radius:5px; display:block; }
  .sheet-media .noimg { display:flex; align-items:center; justify-content:center; height:96px; border-radius:5px; background:color-mix(in srgb,var(--fg) 6%,transparent); font-size:10.5px; color:color-mix(in srgb,var(--fg) 62%,transparent); }
  .sheet-media .mlab { margin-top:5px; font-size:10.5px; font-family:var(--mono,ui-monospace,monospace); }
  .sheet-media .mrooms { font-size:9.5px; color:color-mix(in srgb,var(--fg) 62%,transparent); margin-top:2px; line-height:1.35; }
  .sheetbtn { margin-left:10px; font-size:10px; font-family:var(--mono,ui-monospace,monospace); background:none; border:1px solid var(--accent); color:var(--fg); border-radius:5px; padding:2px 6px; cursor:pointer; }
  details.cutsd { border:1px solid var(--line); border-radius:8px; padding:6px 10px; margin-bottom:6px; }
  details.cutsd summary { cursor:pointer; font-size:13px; } details.cutsd summary .vol { color:color-mix(in srgb,var(--fg) 78%,transparent); font-size:11px; margin-left:8px; }
  .hidden { display:none; }

  /* ── REVIEW STATE ON THE CELL ─────────────────────────────────────────────────────────────
     The render gate, said on the cell. SHAPE AND WORD FIRST, colour second — a hollow square,
     a tick, a filled triangle carrying the word STALE, a dotted ring for scaffolding. Every one
     survives a greyscale screen, and the cell's aria-label says the whole sentence.
     The measured contrast of #EC1C24 on #0A0A0C is 4.36:1 — enough for a 1px rule (3:1) and
     SHORT of AA for small text (4.5:1) — so the accent is spent on borders and fills, never on
     the words themselves. Muted text stays at >= 55% white. */
  .rev { display:inline-flex; align-items:baseline; gap:3px; margin-right:5px; vertical-align:1px;
    font-family:var(--mono,ui-monospace,monospace); font-size:9px; line-height:1.2; letter-spacing:.05em; white-space:nowrap; }
  .rev .rw { text-transform:none; }
  /* Not reviewed: quiet on purpose — it is the state of nearly everything, and shouting it
     would make the two that matter invisible. 62% white clears 4.5:1 on this ground. */
  .revNone { color:color-mix(in srgb,var(--fg) 62%,transparent); }
  /* The tick is WHITE and the accent is spent on the rule under it, where 4.36:1 is enough. */
  .revSigned { color:var(--fg); border-bottom:2px solid var(--accent); padding-bottom:1px; }
  .revHolding { color:color-mix(in srgb,var(--fg) 62%,transparent);
    border:1px dotted color-mix(in srgb,var(--fg) 40%,transparent); border-radius:999px; padding:0 5px; }
  /* STALE is the loud one: signed, then edited — the asset has ALREADY left the render set and
     nothing else on this surface says so. */
  .revStale { font-weight:700; color:var(--fg); background:color-mix(in srgb,var(--accent) 78%,transparent);
    border:1px solid var(--accent); border-radius:3px; padding:1px 5px; }
  td.cell[data-review="stale"] { outline:1px solid var(--accent); outline-offset:-1px; }
  /* THE OPENER. One control per element: the <button> inside the cell is what Tab reaches and
     Enter/Space open; it is drawn as the cell's own text, not as a button. */
  .cellbtn { display:block; width:100%; margin:0; padding:0; border:0; background:none; color:inherit;
    font:inherit; text-align:left; cursor:pointer; -webkit-appearance:none; appearance:none; }
  .cellbtn .txt { display:block; }
  /* A HOLDING CELL STEPS BACK — so the 464 that need a person stand out at a glance. Never below
     AA (62% is the floor on this ground): italic, lighter, a dotted edge, no left rule. A real asset
     nobody has reviewed carries a solid white rule down its left edge — that IS the work list. */
  td.cell[data-holding="1"] { border-left:2px dotted color-mix(in srgb,var(--fg) 30%,transparent); }
  td.cell[data-holding="1"] .txt, td.cell[data-holding="1"] .camp-name { color:color-mix(in srgb,var(--fg) 62%,transparent); font-style:italic; font-weight:400; }
  td.cell[data-review="unreviewed"]:not([data-holding]) { border-left:2px solid color-mix(in srgb,var(--fg) 72%,transparent); }
  td.cell[data-review="unreviewed"]:not([data-holding]) .txt { color:var(--fg); }
  .sr { position:absolute; width:1px; height:1px; margin:-1px; padding:0; border:0;
    overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; }

  /* ── FOCUS MUST BE VISIBLE ────────────────────────────────────────────────────────────────
     There was not one :focus-visible rule on this page and every cell was a mouse-only <td>.
     A 2px accent ring on the black ground measures 4.36:1 — well past the 3:1 a non-text
     indicator needs — and the offset keeps it off the glyphs. */
  .cellbtn:focus-visible, .fbtn:focus-visible, .modal-x:focus-visible, .sheetbtn:focus-visible,
  details.fold > summary:focus-visible, details.cutsd summary:focus-visible,
  a:focus-visible, .modal-card:focus-visible {
    outline:2px solid var(--accent); outline-offset:2px; border-radius:4px; }
  td.cell:focus-within { background:color-mix(in srgb,var(--accent) 12%,transparent); }
  .cellbtn:focus-visible { outline-offset:-2px; }

  /* ── WHAT NEEDS ME — the reviewer's work list over a static grid ──────────────────────── */
  .revbar { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:14px 0 6px;
    padding-bottom:10px; border-bottom:1px solid var(--line); }
  .fbtn { display:inline-flex; align-items:baseline; gap:6px; padding:5px 10px; border-radius:6px;
    border:1px solid var(--line); background:transparent; color:var(--fg); font-family:var(--body);
    font-size:12px; cursor:pointer; }
  .fbtn:hover { border-color:var(--accent); }
  /* Never colour alone: the chosen filter also carries a solid rule, a bolder weight and
     aria-checked for anyone who is not looking at it. */
  .fbtn.on { border-color:var(--accent); box-shadow:inset 0 -2px 0 var(--accent); font-weight:700; }
  .fbtn .fn { font-family:var(--mono,ui-monospace,monospace); font-size:10px;
    color:color-mix(in srgb,var(--fg) 62%,transparent); }
  .fbtn.on .fn { color:var(--fg); }
  .fnote { font-size:11px; color:color-mix(in srgb,var(--fg) 62%,transparent); }
  .fnote b { color:color-mix(in srgb,var(--fg) 85%,transparent); font-weight:600; }
  /* Under a filter the cells that do not match stay in place (a table cannot lose one cell
     without losing its columns) but step back; a day with no match is removed outright. */
  /* A cell the filter excludes is HIDDEN, not ghosted — the table keeps its columns, the screen
     reader and the eye keep only the work. (A 28% ghost was text under AA that nobody asked for;
     the cockpit removes the chip outright, and this is the same reading.) */
  td.cell.miss > * { visibility:hidden; }
  td.cell.miss { border-left-color:transparent; pointer-events:none; }
  .nojs-note { font-size:11px; color:color-mix(in srgb,var(--fg) 62%,transparent); }