/* ===========================================================================
   CGN NEXUS — design system
   ---------------------------------------------------------------------------
   Rules, in order of importance:

   1. The work is the colour. Thumbnails, stills and artwork carry every bit of
      visual interest on screen. The interface is greyscale so they do.
   2. No ornament. No gradients, no shadows beyond one hover lift, no textures,
      no decorative borders, no icons where a word is clearer.
   3. One typeface. Instrument Sans at three weights, plus a mono used only for
      numerals and micro-labels so figures align.
   4. Space does the separating, not boxes. A hairline where a boundary must be
      explicit; otherwise distance.
   5. White is the accent. It marks what is interactive or current. Two muted
      colours exist for meaning that greyscale cannot carry — shipped, and
      wrong — and nothing else is coloured.

   Stage progression is expressed as brightness: the earlier the stage, the
   dimmer it reads, so a board visibly brightens toward release and turns green
   when it ships. That is information, not decoration.
   =========================================================================== */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  /* True neutrals — no hue cast anywhere */
  --bg:        #0B0B0B;
  --surface:   #121212;
  --raised:    #1A1A1A;
  --sunken:    #060606;

  --line:      rgba(255, 255, 255, 0.075);
  --line-mid:  rgba(255, 255, 255, 0.14);
  --line-firm: rgba(255, 255, 255, 0.26);

  --text:      #F2F2F2;
  --text-2:    #9B9B9B;
  --text-3:    #6A6A6A;
  --text-4:    #4A4A4A;

  /* White is the accent. */
  --accent:    #FFFFFF;

  /* Two colours, both muted, both meaning something. */
  --shipped:   #74B49B;
  --wrong:     #C97B7B;

  /* Lifecycle: brightness rises toward release, then it ships. */
  --st-dev:    #6A6A6A;
  --st-prod:   #9B9B9B;
  --st-rel:    #F2F2F2;
  --st-live:   #74B49B;
  --st-hold:   #4A4A4A;

  --ui:   'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 36px; --sp-7: 56px; --sp-8: 88px;

  --r-sm: 3px; --r: 4px; --r-lg: 6px;

  --nav-w: 232px;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--ui);
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
}
img, svg, video { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ── Type ────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { margin: 0; color: var(--text); text-wrap: balance;
                 font-weight: 600; }

/* Large type is just the same face, set tight. Sentence case: capitals at
   display size read as a logo, and this is a working tool. */
.t-display {
  font-family: var(--ui);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.08;
}
h1.t-display { font-size: clamp(27px, 3.1vw, 39px); }
h2.t-display { font-size: clamp(20px, 2.1vw, 26px); }

h2 { font-size: 15px; letter-spacing: -0.012em; }
h3 { font-size: 14.5px; letter-spacing: -0.008em; }

.eyebrow {
  font-family: var(--mono); font-size: 10px; font-weight: 400;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-3);
}
.num { font-family: var(--mono); font-variant-numeric: tabular-nums;
       color: var(--text); letter-spacing: -0.015em; }
.muted { color: var(--text-3); }
.measure { max-width: 64ch; }
.mini { font-size: 12.5px; color: var(--text-3); }
.right { margin-left: auto; }
.nowrap { white-space: nowrap; }
.deco-rule { height: 1px; background: var(--line); }

/* ── Frame ───────────────────────────────────────────────────────────────── */
.app { display: flex; min-height: 100vh; }

.nav {
  width: var(--nav-w); min-width: var(--nav-w); flex-shrink: 0;
  background: var(--bg);
  border-right: 1px solid var(--line);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
  padding: var(--sp-5) var(--sp-3) var(--sp-4);
}

.main { flex: 1; min-width: 0; padding-block: var(--sp-6) var(--sp-8); }
.shell { padding-inline: clamp(20px, 3.4vw, 44px); max-width: 1480px; }

/* ── Wordmark ────────────────────────────────────────────────────────────── */
.brand { display: flex; align-items: center; gap: 10px;
         padding: 0 8px var(--sp-6); }
.brand .shield {
  width: 26px; height: 26px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid var(--line-firm); border-radius: var(--r-sm);
  font-family: var(--mono); font-size: 8.5px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--text);
}
.brand .wordmark { font-size: 14.5px; font-weight: 600; color: var(--text);
                   letter-spacing: -0.012em; line-height: 1.2; display: block; }
.brand .sub { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em;
              text-transform: uppercase; color: var(--text-4); margin-top: 1px;
              display: block; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav-group { display: flex; flex-direction: column; gap: 1px; }
.nav-rule { height: 1px; background: var(--line); margin: var(--sp-4) 8px var(--sp-3); }
.nav-foot { margin-top: auto; padding-top: var(--sp-4); }
.nav-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--text-4);
  padding: 0 10px; margin: var(--sp-5) 0 var(--sp-2);
}

.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 450; color: var(--text-2);
  letter-spacing: -0.008em;
  transition: color .12s ease, background .12s ease;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.035); }
.nav-link svg { flex-shrink: 0; opacity: .42; width: 15px; height: 15px; }
.nav-link:hover svg { opacity: .75; }
.nav-link.is-active { color: var(--accent); background: rgba(255,255,255,.06);
                      font-weight: 550; }
.nav-link.is-active svg { opacity: 1; }
.nav-link.is-quiet { font-size: 13px; color: var(--text-3); }
/* The pillar lead bars were colour for colour's sake. */
.nav-link .lead { display: none; }

.nav-sub { display: flex; flex-direction: column; gap: 1px;
           margin: 1px 0 var(--sp-3); padding-left: 25px; }
.nav-sub a { font-size: 13px; color: var(--text-3); padding: 4px 10px; }
.nav-sub a:hover { color: var(--text); }
.nav-sub a.is-active { color: var(--text); }
.nav-count { margin-left: auto; font-family: var(--mono); font-size: 10.5px;
             color: var(--text-4); font-variant-numeric: tabular-nums; }

/* ── Page header ─────────────────────────────────────────────────────────── */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-5); flex-wrap: wrap; margin-bottom: var(--sp-7);
}
.page-head .titles { display: flex; flex-direction: column; gap: 10px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-mid); background: transparent;
  color: var(--text); font-size: 13px; font-weight: 500;
  letter-spacing: -0.008em; cursor: pointer;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.btn:hover { border-color: var(--line-firm); background: rgba(255,255,255,.04);
             color: var(--accent); }
/* White on black: the only emphatic surface in the system. */
.btn-primary { background: var(--accent); border-color: var(--accent);
               color: #0B0B0B; font-weight: 550; }
.btn-primary:hover { background: #E4E4E4; border-color: #E4E4E4; color: #0B0B0B; }
.btn-ghost { border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { border-color: var(--line-mid); color: var(--text); background: transparent; }
.btn-danger { color: var(--wrong); border-color: transparent; }
.btn-danger:hover { color: var(--wrong); border-color: rgba(201,123,123,.4);
                    background: transparent; }
.btn-xs { padding: 3px 8px; font-size: 12px; }

/* ── Surfaces ────────────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--r); overflow: hidden; }
.card-pad { padding: var(--sp-4) var(--sp-5); }

.panel { display: flex; flex-direction: column; gap: var(--sp-4); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between;
              gap: var(--sp-4); padding-bottom: var(--sp-3);
              border-bottom: 1px solid var(--line); }

.grid { display: grid; gap: var(--sp-4); }
.grid-productions { grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); }
.grid-wide        { grid-template-columns: repeat(auto-fill, minmax(344px, 1fr)); }
.stack   { display: flex; flex-direction: column; gap: var(--sp-4); }
.stack-2 { display: flex; flex-direction: column; gap: var(--sp-2); }
.row-flex{ display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6);
         align-items: start; }
.inline-form { display: inline; }
.scroll-x { overflow-x: auto; }

/* ── Chips and stage marks ───────────────────────────────────────────────── */
/* No fills. A chip is a hairline and a word. */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 7px; border-radius: var(--r-sm);
  border: 1px solid var(--line-mid); color: var(--text-3);
  background: transparent; white-space: nowrap;
}
.chip-strong  { color: var(--text); border-color: var(--line-firm); }
.chip-quiet { color: var(--text-2); }
.chip-live  { color: var(--shipped); border-color: rgba(116,180,155,.34); }
.chip-alert { color: var(--wrong);   border-color: rgba(201,123,123,.38); }

/* A stage is a 4px dot and a word. Brightness carries the progression. */
.stage { display: inline-flex; align-items: center; gap: 6px;
         font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
         text-transform: uppercase; white-space: nowrap; color: var(--text-3); }
.stage::before { content: ''; width: 5px; height: 5px; border-radius: 50%;
                 background: currentColor; flex-shrink: 0; }
.stage-dev  { color: var(--st-dev); }
.stage-prod { color: var(--st-prod); }
.stage-rel  { color: var(--st-rel); }
.stage-live { color: var(--st-live); }
.stage-hold { color: var(--st-hold); }

.pulse { width: 5px; height: 5px; border-radius: 50%; background: var(--shipped);
         flex-shrink: 0; }

/* Pillars are named, not coloured. */
.p-cunningham, .p-moose, .p-brief, .p-watch { color: var(--text-3); }
.pillar-mark { display: none; }
.pillar-head { display: flex; align-items: baseline; gap: var(--sp-4); }
.pillar-head .rule { height: 1px; flex: 1; background: var(--line); }

/* ── Figures ─────────────────────────────────────────────────────────────── */
/* No boxes. Numbers on open ground, separated by a single hairline. */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
           gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.metric { background: var(--bg); padding: var(--sp-4) var(--sp-4) var(--sp-4) 0;
          display: flex; flex-direction: column; gap: 3px; }
.metric:first-child { padding-left: 0; }
.metrics .metric { padding-inline: var(--sp-4); }
.metrics .metric:first-child { padding-left: 0; }
.metric .v { font-family: var(--mono); font-size: 25px; font-weight: 400;
             color: var(--text); letter-spacing: -0.035em;
             font-variant-numeric: tabular-nums; line-height: 1.12; }
.metric .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.13em;
             text-transform: uppercase; color: var(--text-4); }
.metric .d { font-family: var(--mono); font-size: 10.5px;
             font-variant-numeric: tabular-nums; color: var(--text-3); }
.metric .d.up   { color: var(--shipped); }
.metric .d.down { color: var(--wrong); }

/* ── Production card ─────────────────────────────────────────────────────── */
/* Borderless until hover. The still is the object; a frame competes with it. */
.prod-card {
  background: transparent; border: none; border-radius: 0;
  display: flex; flex-direction: column;
  transition: opacity .14s ease;
}
.prod-card:hover { opacity: 1; }
.prod-card:hover .prod-thumb { outline: 1px solid var(--line-firm);
                               outline-offset: 0; }
.prod-card:hover .prod-title { color: var(--accent); }
.prod-thumb {
  aspect-ratio: 16/9; max-width: 100%; position: relative;
  background: var(--sunken); display: grid; place-items: center;
  border-radius: var(--r-sm); overflow: hidden;
  transition: outline-color .14s ease;
}
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-thumb .placeholder { font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-4); }
.prod-thumb .overlay { position: absolute; left: 8px; bottom: 8px;
                       display: flex; gap: 6px; flex-wrap: wrap; }
.prod-thumb .overlay .chip, .prod-thumb .overlay .stage {
  background: rgba(6,6,6,.78); padding: 3px 7px; border-radius: var(--r-sm);
  backdrop-filter: blur(6px);
}
.prod-thumb .runtime {
  position: absolute; right: 8px; bottom: 8px;
  font-family: var(--mono); font-size: 10px; color: var(--text);
  background: rgba(6,6,6,.78); border-radius: var(--r-sm); padding: 3px 6px;
  font-variant-numeric: tabular-nums; backdrop-filter: blur(6px);
}
.prod-body { padding: 11px 0 0; display: flex; flex-direction: column; gap: 6px; }
.prod-title { font-size: 14.5px; font-weight: 550; color: var(--text);
              line-height: 1.34; letter-spacing: -0.014em;
              transition: color .12s ease; }
.prod-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
             font-family: var(--mono); font-size: 10px; letter-spacing: .06em;
             text-transform: uppercase; color: var(--text-4); }
.prod-meta .sep { opacity: .5; }

/* ── Tables ──────────────────────────────────────────────────────────────── */
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
  text-align: left; font-family: var(--mono); font-size: 9.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--text-4); font-weight: 400;
  padding: 0 var(--sp-4) var(--sp-3) 0; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data th:last-child, table.data td:last-child { padding-right: 0; }
table.data td { padding: 12px var(--sp-4) 12px 0;
                border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data td.n, table.data th.n { text-align: right; font-family: var(--mono);
                                   font-variant-numeric: tabular-nums; }
table.data .strong { color: var(--text); font-weight: 500; }
/* The card wrapper around a table adds a box the table does not need. */
.card > table.data, .card > .scroll-x > table.data { padding: 0 var(--sp-5); }
.card.scroll-x, .scroll-x > table.data { }

.delta { font-family: var(--mono); font-size: 11.5px;
         font-variant-numeric: tabular-nums; color: var(--text-3); }
.delta.up { color: var(--shipped); }
.delta.down { color: var(--wrong); }

.rows { display: flex; flex-direction: column; }
.rows .r { display: grid; align-items: center; gap: var(--sp-4);
           padding: 12px 0; border-bottom: 1px solid var(--line);
           font-size: 13.5px; }
.rows .r:last-child { border-bottom: none; }
.lines { display: flex; flex-direction: column; }
.lines > * { display: grid; align-items: center; gap: var(--sp-4);
             padding: 12px 0; border-bottom: 1px solid var(--line);
             font-size: 13.5px; }

/* ── Messages and empty states ───────────────────────────────────────────── */
.flash { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--sp-5); }
.flash .msg { padding: 10px 14px; border-radius: var(--r-sm); font-size: 13.5px;
              border: 1px solid var(--line-mid); background: var(--surface);
              color: var(--text); }
.flash .msg.success { border-left: 2px solid var(--shipped); }
.flash .msg.error   { border-left: 2px solid var(--wrong); }

.empty {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--sp-7) var(--sp-5); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-3);
  background: var(--surface);
}
.empty h3 { color: var(--text); font-weight: 550; font-size: 14.5px;
            letter-spacing: -0.012em; }
.empty p { margin: 0; font-size: 13.5px; color: var(--text-3); max-width: 48ch; }

.archive-banner { display: flex; align-items: center; gap: 11px;
                  padding: 11px 15px; border-radius: var(--r-sm);
                  border: 1px solid var(--line); background: var(--surface);
                  font-size: 13px; color: var(--text-3); margin-bottom: var(--sp-5); }

/* A gate is a left rule, not a coloured panel. */
.gate { display: flex; align-items: flex-start; gap: 11px; padding: 12px 15px;
        border-radius: var(--r-sm); border: 1px solid var(--line);
        border-left: 2px solid var(--wrong); background: var(--surface);
        font-size: 13.5px; color: var(--text-2); }
.gate.warn { border-left-color: var(--line-firm); }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
           margin-bottom: var(--sp-5); }
.toolbar .spacer { margin-left: auto; }

.field, .input, select.input, textarea.input {
  background: var(--raised); border: 1px solid transparent;
  border-radius: var(--r-sm); color: var(--text);
  padding: 8px 11px; font-size: 13.5px; width: 100%; font-family: inherit;
  transition: border-color .12s ease, background .12s ease;
}
.input::placeholder { color: var(--text-4); }
.input:hover { background: #1F1F1F; }
.input:focus { border-color: var(--line-firm); background: var(--raised);
               outline: none; }
textarea.input { resize: vertical; min-height: 88px; line-height: 1.62; }
select.input { cursor: pointer; }
.input-sm { padding: 6px 9px; font-size: 12.5px; }
.input-inline { width: auto; min-width: 136px; }

.seg { display: inline-flex; gap: 2px; padding: 2px;
       border: 1px solid var(--line); border-radius: var(--r-sm); }
.seg a { padding: 5px 12px; border-radius: 2px; font-size: 12.5px;
         color: var(--text-3); letter-spacing: -0.006em; }
.seg a:hover { color: var(--text); }
.seg a.on { background: rgba(255,255,255,.08); color: var(--text);
            font-weight: 500; }

.form-grid { display: grid; gap: var(--sp-4);
             grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row > label, .lbl {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--text-4);
}
.form-row .hint { font-size: 12px; color: var(--text-4); }
.form-wide { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
                margin-top: var(--sp-5); }

details.panel-form { border: 1px solid var(--line); border-radius: var(--r);
                     background: var(--surface); }
details.panel-form > summary {
  cursor: pointer; list-style: none; padding: 12px 17px;
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  display: flex; align-items: center; gap: 9px; letter-spacing: -0.008em;
}
details.panel-form > summary::-webkit-details-marker { display: none; }
details.panel-form > summary::before {
  content: ''; width: 7px; height: 7px; flex-shrink: 0;
  border-right: 1px solid var(--text-3); border-bottom: 1px solid var(--text-3);
  transform: rotate(-45deg); transition: transform .14s ease;
}
details.panel-form[open] > summary::before { transform: rotate(45deg); }
details.panel-form > summary:hover { color: var(--text); }
details.panel-form .body { padding: var(--sp-2) 17px 17px;
                           border-top: 1px solid var(--line); }

/* ── Tabs ────────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: var(--sp-5); border-bottom: 1px solid var(--line);
        margin-bottom: var(--sp-6); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  padding: 0 0 11px; font-size: 13.5px; font-weight: 450; color: var(--text-3);
  border-bottom: 1px solid transparent; white-space: nowrap; margin-bottom: -1px;
  letter-spacing: -0.008em;
}
.tabs a:hover { color: var(--text-2); }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent);
             font-weight: 550; }
.tabs .tag { font-family: var(--mono); font-size: 10px; margin-left: 6px;
             color: var(--text-4); font-variant-numeric: tabular-nums; }

/* ── Detail header ───────────────────────────────────────────────────────── */
.prod-head { display: grid; grid-template-columns: minmax(240px, 400px) 1fr;
             gap: var(--sp-6); margin-bottom: var(--sp-6); align-items: start; }
.prod-head .art {
  aspect-ratio: 16/9; max-width: 100%; border-radius: var(--r);
  overflow: hidden; background: var(--sunken);
  border: 1px solid var(--line); display: grid; place-items: center;
  position: relative;
}
.prod-head .art img { width: 100%; height: 100%; object-fit: cover; }
.prod-head .art .placeholder { font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-4); }
.prod-head .meta { display: flex; flex-direction: column; gap: var(--sp-3); }
.prod-head h1 { font-size: clamp(21px, 2.5vw, 31px); }
.prod-head .facts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Lifecycle rail: a row of words on a hairline, current one in white. */
.rail { display: flex; gap: 0; flex-wrap: wrap; align-items: stretch;
        border-top: 1px solid var(--line); padding-top: var(--sp-3); }
.rail .step {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .09em;
  text-transform: uppercase; padding: 4px 10px 4px 0;
  border: none; background: transparent; color: var(--text-4);
  cursor: pointer; transition: color .12s ease;
}
.rail .step:hover { color: var(--text-2); }
.rail .step.done { color: var(--text-3); }
.rail .step.now { color: var(--accent); font-weight: 500; }
.rail .step.now::after { content: ''; display: block; height: 1px;
                         background: var(--accent); margin-top: 4px; }

.bar { height: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--text-2); }
.bar.live > span { background: var(--shipped); }

/* ── Board ───────────────────────────────────────────────────────────────── */
.board { display: flex; gap: var(--sp-5); overflow-x: auto;
         padding-bottom: var(--sp-5); align-items: flex-start; }
.board .col { min-width: 244px; width: 244px; flex-shrink: 0;
              background: transparent; border: none;
              display: flex; flex-direction: column; }
.board .col > .hd { padding: 0 0 var(--sp-3);
                    border-bottom: 1px solid var(--line);
                    display: flex; align-items: baseline;
                    justify-content: space-between; gap: 8px; }
.board .col > .hd .name { font-family: var(--mono); font-size: 9.5px;
                          letter-spacing: .13em; text-transform: uppercase;
                          font-weight: 400; color: var(--text-3); }
.board .col > .hd .n { font-family: var(--mono); font-size: 10.5px;
                       color: var(--text-4); font-variant-numeric: tabular-nums; }
.board .col .items { padding: var(--sp-3) 0 0; display: flex;
                     flex-direction: column; gap: var(--sp-3); min-height: 48px; }
.board .col.dev  > .hd .name { color: var(--st-dev); }
.board .col.prod > .hd .name { color: var(--st-prod); }
.board .col.rel  > .hd .name { color: var(--st-rel); }
.board .col.live > .hd .name { color: var(--st-live); }
.board .col.hold > .hd .name { color: var(--st-hold); }
.board .col .empty-col { font-family: var(--mono); font-size: 10px;
                         color: var(--text-4); padding: var(--sp-3) 0; }

.board-card { background: transparent; border: none; border-radius: 0;
              overflow: visible; display: block; }
.board-card:hover .thumb { outline: 1px solid var(--line-firm); }
.board-card:hover .t { color: var(--accent); }
.board-card .thumb { aspect-ratio: 16/9; background: var(--sunken);
                     display: grid; place-items: center; border-radius: var(--r-sm);
                     overflow: hidden; transition: outline-color .14s ease; }
.board-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.board-card .thumb .ph { font-family: var(--mono); font-size: 8.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-4); }
.board-card .b { padding: 9px 0 0; display: flex; flex-direction: column; gap: 5px; }
.board-card .t { font-size: 13px; font-weight: 500; color: var(--text);
                 line-height: 1.36; letter-spacing: -0.012em;
                 transition: color .12s ease; }
.board-card .m { display: flex; gap: 7px; flex-wrap: wrap; font-family: var(--mono);
                 font-size: 9px; letter-spacing: .06em; text-transform: uppercase;
                 color: var(--text-4); }
.board-card .m .late { color: var(--wrong); }

/* ── Research notes ──────────────────────────────────────────────────────── */
.notes { display: flex; flex-direction: column; }
.note { border: none; border-bottom: 1px solid var(--line);
        border-left: 1px solid transparent; border-radius: 0;
        background: transparent; padding: var(--sp-4) 0 var(--sp-4) 0;
        display: flex; flex-direction: column; gap: 6px; }
.note.unverified { border-left: 1px solid var(--wrong); padding-left: var(--sp-4); }
.note.verified { border-left: 1px solid var(--shipped); padding-left: var(--sp-4); }
.note .top { display: flex; align-items: baseline; gap: 10px;
             justify-content: space-between; }
.note .ttl { color: var(--text); font-weight: 500; font-size: 14px;
             letter-spacing: -0.01em; }
.note .bd { font-size: 13.5px; line-height: 1.62; white-space: pre-wrap;
            color: var(--text-2); }
.note .foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
              font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em;
              text-transform: uppercase; color: var(--text-4); }

/* ── Script editor ───────────────────────────────────────────────────────── */
.script-wrap { display: grid; grid-template-columns: 1fr 260px; gap: var(--sp-6);
               align-items: start; }
textarea.script {
  width: 100%; min-height: 64vh; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  color: var(--text); padding: var(--sp-6) clamp(24px, 4vw, 52px);
  font-family: var(--ui); font-size: 16.5px; line-height: 1.82; resize: vertical;
  letter-spacing: -0.006em;
}
textarea.script:focus { outline: none; border-color: var(--line-mid); }
.script-side { display: flex; flex-direction: column; gap: var(--sp-4);
               position: sticky; top: var(--sp-4); }

/* ── Packaging ───────────────────────────────────────────────────────────── */
.title-opt { display: flex; align-items: flex-start; gap: 11px;
             padding: 12px 0; border: none;
             border-bottom: 1px solid var(--line); border-radius: 0;
             background: transparent; }
.title-opt.chosen { border-left: 1px solid var(--accent); padding-left: var(--sp-4); }
.title-opt .txt { font-size: 15px; color: var(--text); line-height: 1.38;
                  font-weight: 450; letter-spacing: -0.014em; }
.title-opt.chosen .txt { font-weight: 550; }
.title-opt .len { font-family: var(--mono); font-size: 10px; color: var(--text-4);
                  margin-left: auto; white-space: nowrap; }
.title-opt .len.over { color: var(--wrong); }

/* ── Asset tile ──────────────────────────────────────────────────────────── */
.asset { border: none; border-radius: 0; background: transparent;
         display: flex; flex-direction: column; }
.asset:hover .prev { outline: 1px solid var(--line-firm); }
.asset .prev { aspect-ratio: 4/3; background: var(--sunken); display: grid;
               place-items: center; border-radius: var(--r-sm); overflow: hidden;
               transition: outline-color .14s ease; }
.asset .prev img { width: 100%; height: 100%; object-fit: cover; }
.asset .prev .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em;
                  text-transform: uppercase; color: var(--text-4); }
.asset .b { padding: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.asset .t { color: var(--text); font-size: 13.5px; line-height: 1.36;
            font-weight: 500; letter-spacing: -0.012em; }

.rights { display: inline-flex; align-items: center; gap: 6px;
          font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em;
          text-transform: uppercase; white-space: nowrap; color: var(--text-3); }
.rights::before { content: ''; width: 5px; height: 5px; border-radius: 50%;
                  background: currentColor; }
.rights.ok   { color: var(--shipped); }
.rights.warn { color: var(--text-2); }
.rights.stop { color: var(--wrong); }

/* ── Series one-sheet ────────────────────────────────────────────────────── */
.series-card { border: none; border-radius: 0; overflow: visible;
               background: transparent; display: flex; flex-direction: column; }
.series-card:hover .cover { outline: 1px solid var(--line-firm); }
.series-card:hover .name { color: var(--accent); }
.series-card .cover {
  aspect-ratio: 3/2; background: var(--sunken); position: relative;
  display: grid; place-items: end start; padding: var(--sp-4);
  border-radius: var(--r-sm); overflow: hidden;
  transition: outline-color .14s ease;
}
.series-card .cover img { position: absolute; inset: 0; width: 100%; height: 100%;
                          object-fit: cover; }
.series-card .cover .scrim { position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(6,6,6,.82) 100%); }
.series-card .cover .name {
  position: relative; font-size: clamp(16px, 1.8vw, 20px); font-weight: 600;
  color: var(--text); line-height: 1.2; letter-spacing: -0.02em;
  text-wrap: balance; transition: color .12s ease;
}
.series-card .b { padding: 11px 0 0; display: flex; flex-direction: column; gap: 8px; }

/* ── Newsletter desk ─────────────────────────────────────────────────────── */
.issue-card { background: var(--surface); border: 1px solid var(--line);
              border-radius: var(--r-sm); padding: 11px 12px;
              display: flex; flex-direction: column; gap: 6px;
              transition: border-color .12s ease; }
.issue-card:hover { border-color: var(--line-mid); }
.issue-card:hover .s { color: var(--accent); }
.issue-card .s { color: var(--text); font-size: 13.5px; line-height: 1.38;
                 font-weight: 500; letter-spacing: -0.012em;
                 transition: color .12s ease; }
.issue-card .m { display: flex; gap: 7px; flex-wrap: wrap; font-family: var(--mono);
                 font-size: 9px; letter-spacing: .06em; text-transform: uppercase;
                 color: var(--text-4); }
.issue-card .m .late { color: var(--wrong); }

/* ── Team ────────────────────────────────────────────────────────────────── */
.load { display: flex; flex-direction: column; gap: 6px; }
.load-bar { height: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.load-bar > span { display: block; height: 100%; background: var(--text-2); }
.load-bar.warm > span { background: var(--text); }
.load-bar.hot  > span { background: var(--wrong); }

.avatar { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
          display: grid; place-items: center; overflow: hidden;
          font-family: var(--mono); font-size: 9.5px; font-weight: 500;
          color: var(--text-2); background: var(--raised);
          border: 1px solid var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 44px; height: 44px; font-size: 13px; }
.avatar-row { display: flex; align-items: center; gap: 10px; }

/* ── Run of show ─────────────────────────────────────────────────────────── */
.ros { display: flex; flex-direction: column; background: transparent;
       border: none; border-top: 1px solid var(--line); border-radius: 0; }
.ros .seg { background: transparent; padding: 13px 0;
            border-bottom: 1px solid var(--line);
            display: grid; grid-template-columns: 26px 1fr auto auto; gap: var(--sp-4);
            align-items: center; }
.ros .seg.done { opacity: .45; }
.ros .seg .n { font-family: var(--mono); font-size: 10.5px; color: var(--text-4);
               font-variant-numeric: tabular-nums; }
.ros .seg .t { color: var(--text); font-size: 14px; line-height: 1.4;
               letter-spacing: -0.01em; }
.ros .seg .t small { display: block; color: var(--text-4); font-size: 12px;
                     margin-top: 2px; }
.ros .seg .dur { font-family: var(--mono); font-size: 12px; color: var(--text-2);
                 font-variant-numeric: tabular-nums; }

/* Segment kinds read as a greyscale ramp; the ad read is the one exception,
   because overrunning a sponsor slot costs money. */
.timebar { display: flex; height: 3px; overflow: hidden;
           background: rgba(255,255,255,.06); }
.timebar > span { display: block; height: 100%; }
.timebar .k-cold_open { background: #3A3A3A; }
.timebar .k-intro     { background: #4A4A4A; }
.timebar .k-headline  { background: #6A6A6A; }
.timebar .k-deep_dive { background: #F2F2F2; }
.timebar .k-debate    { background: #C4C4C4; }
.timebar .k-quickfire { background: #8A8A8A; }
.timebar .k-listener  { background: #5A5A5A; }
.timebar .k-ad        { background: var(--shipped); }
.timebar .k-outro     { background: #3A3A3A; }
.timebar .k-other     { background: #2A2A2A; }

/* ── Money and funnel ────────────────────────────────────────────────────── */
.money { font-family: var(--mono); font-variant-numeric: tabular-nums;
         color: var(--text); letter-spacing: -0.02em; }
.money.lg { font-size: 22px; }

.funnel { display: flex; gap: 1px; background: var(--line);
          border-block: 1px solid var(--line); overflow-x: auto; }
.funnel .step { background: var(--bg); padding: var(--sp-4); flex: 1;
                display: flex; flex-direction: column; gap: 4px; min-width: 96px; }
.funnel .step .k { font-family: var(--mono); font-size: 9px; letter-spacing: .13em;
                   text-transform: uppercase; color: var(--text-4); }
.funnel .step .v { font-family: var(--mono); font-size: 19px; color: var(--text);
                   font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.funnel .step.on { background: var(--surface); }
.funnel .step.on .k { color: var(--text-2); }

/* ── Calendar ────────────────────────────────────────────────────────────── */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px;
       background: var(--line); border: 1px solid var(--line);
       border-radius: var(--r); overflow: hidden; }
.cal .dow { background: var(--bg); padding: 9px 10px;
            font-family: var(--mono); font-size: 9px; letter-spacing: .13em;
            text-transform: uppercase; color: var(--text-4); text-align: center; }
.cal .day { background: var(--surface); min-height: 92px; padding: 8px;
            display: flex; flex-direction: column; gap: 5px; }
.cal .day.dim { background: var(--bg); }
.cal .day.today { background: var(--raised); }
.cal .day .num { font-family: var(--mono); font-size: 10.5px; color: var(--text-4);
                 font-variant-numeric: tabular-nums; }
.cal .day.today .num { color: var(--accent); }
.cal .ev { font-size: 11px; line-height: 1.34; padding: 2px 0 2px 7px;
           border-left: 1px solid var(--line-firm); color: var(--text-3);
           display: block; }
.cal .ev:hover { border-left-color: var(--accent); color: var(--text-2); }
.cal .ev b { color: var(--text-2); font-weight: 450; }
.cal .ev:hover b { color: var(--text); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .prod-head { grid-template-columns: 1fr; }
  .script-wrap { grid-template-columns: 1fr; }
  .script-side { position: static; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .app { flex-direction: column; }
  .nav { width: 100%; min-width: 0; height: auto; position: static;
         flex-direction: row; flex-wrap: wrap; align-items: center;
         gap: var(--sp-2); padding: var(--sp-3) var(--sp-4);
         border-right: none; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 var(--sp-4) 0 0; }
  .nav-group { flex-direction: row; flex-wrap: wrap; }
  .nav-rule, .nav-sub, .nav-label { display: none; }
  .nav-foot { margin-top: 0; padding-top: 0; }
  .metrics { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
}

@media (max-width: 720px) {
  .ros .seg { grid-template-columns: 22px 1fr; }
  .ros .seg .dur { grid-column: 2; }
  .cal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal .dow { display: none; }
  .tabs { gap: var(--sp-4); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
