@import url('/assets/fonts/fonts.css');

:root {
  --mint: #4ecd89;
  --mint-strong: #257449;
  --mint-hover: #68d99d;
  --mint-soft: rgba(78, 205, 137, .07);
  --mint-wash: rgba(78, 205, 137, .12);
  --mint-nav: rgba(78, 205, 137, .11);
  --mint-active: rgba(78, 205, 137, .15);
  --mint-focus: rgba(78, 205, 137, .48);
  --canvas: #f4f5f4;
  --surface: #ffffff;
  --surface-hover: #fdfefd;
  --surface-2: #e9ecea;
  --ink: #090909;
  --ink-2: rgba(9, 9, 9, .78);
  --ink-3: rgba(9, 9, 9, .64);
  --ink-4: rgba(9, 9, 9, .58);
  --line: rgba(9, 9, 9, .14);
  --line-strong: rgba(9, 9, 9, .30);
  --white-2: rgba(255, 255, 255, .78);
  --white-3: rgba(255, 255, 255, .62);
  --disp: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html {
  background: var(--canvas);
  color: var(--ink);
  scroll-behavior: smooth;
  scrollbar-color: rgba(78, 205, 137, .58) transparent;
  scrollbar-width: thin;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(78, 205, 137, .58); }
body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.55;
}
button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .56; }
a { color: inherit; }
em { color: var(--mint-strong); font-style: normal; }
svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}
:focus-visible { outline: 2px solid var(--mint-strong); outline-offset: 3px; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  z-index: 20;
  top: 9px;
  left: 9px;
  min-height: 44px;
  padding: 12px 14px;
  background: var(--mint);
  color: var(--ink);
  font: 400 12px/1.5 var(--mono);
  transform: translateY(-170%);
}
.skip-link:focus { transform: translateY(0); }

.app-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 29px 18px 21px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.wordmark {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font: 700 25px/.9 var(--disp);
  font-variation-settings: 'opsz' 25, 'wdth' 95;
  letter-spacing: -.03em;
  text-decoration: none;
}
.wordmark img { width: 28px; height: 28px; }
.product-kind { margin: 10px 0 0; color: var(--ink-3); font: 400 10px/1 var(--mono); letter-spacing: .06em; }
.nav-list { display: grid; gap: 2px; margin-top: 62px; }
.nav-link {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  color: var(--ink-3);
  font-size: 13px;
  text-decoration: none;
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.nav-link:hover, .nav-link:focus-visible { background: var(--mint-nav); color: var(--ink); }
.nav-link.is-active { background: var(--mint-active); color: var(--ink); }
.nav-link.is-active::after { position: absolute; right: 9px; width: 6px; height: 6px; background: var(--mint-strong); content: ''; }
.nav-link svg { width: 16px; height: 16px; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; }
.operator { display: flex; min-height: 44px; align-items: center; gap: 10px; color: var(--ink-2); font-size: 12px; }
.operator b { display: block; font-weight: 400; }
.operator small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 11px; }
.operator-initial { display: grid; width: 29px; height: 29px; place-items: center; background: var(--ink); color: var(--surface); font: 600 13px/1 var(--disp); }
.main { min-width: 0; max-width: 1560px; padding: 26px clamp(27px, 5vw, 88px) 88px; }
.topbar { display: flex; min-height: 44px; align-items: center; justify-content: flex-end; border-bottom: 1px solid var(--line); }
.topbar-meta { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font: 400 11px/1 var(--mono); font-variant-numeric: tabular-nums; }
.status-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 auto; background: var(--mint); }
.intro { display: flex; justify-content: space-between; gap: 44px; padding: clamp(58px, 8vw, 112px) 0 clamp(52px, 6vw, 82px); border-bottom: 1px solid var(--line); }
.date-line { margin: 0 0 15px; color: var(--ink-3); font: 400 10px/1 var(--mono); letter-spacing: .05em; }
.intro h1 {
  max-width: 10ch;
  margin: 0;
  font-family: var(--disp);
  font-size: clamp(52px, 6.2vw, 96px);
  font-weight: 650;
  font-variation-settings: 'opsz' 96, 'wdth' 92;
  letter-spacing: -.03em;
  line-height: .86;
  text-wrap: balance;
}
.intro-copy { align-self: flex-end; max-width: 360px; margin: 0 0 5px; color: var(--ink-2); font-size: 15px; line-height: 1.65; text-wrap: pretty; }

.edition-line {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr 1fr;
  min-height: 62px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.edition-line > div { position: relative; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.edition-line > div + div::before { margin-right: 2px; color: var(--line-strong); content: '/'; font: 400 11px/1 var(--mono); }
.edition-line span { color: var(--ink-3); font: 400 11px/1 var(--mono); letter-spacing: .04em; }
.edition-line strong { min-width: 0; overflow: hidden; color: var(--ink); font: 400 12px/1.2 var(--mono); text-overflow: ellipsis; white-space: nowrap; }

.today-brief, .workflow-section, .briefing-section, .prompt-section, .archive-section { border-bottom: 1px solid var(--line); }
.today-brief { padding: clamp(34px, 4.5vw, 58px) 0; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.section-intro h2, .feedback-copy h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--disp);
  font-size: clamp(28px, 2.8vw, 44px);
  font-weight: 600;
  font-variation-settings: 'opsz' 44, 'wdth' 95;
  letter-spacing: -.03em;
  line-height: .98;
  text-wrap: balance;
}
.section-note { max-width: 395px; margin: 0; color: var(--ink-3); font-size: 13px; line-height: 1.55; }
.count-label { color: var(--ink-3); font: 400 11px/1 var(--mono); letter-spacing: .04em; white-space: nowrap; }
.outline-button, .quiet-button, .mint-button, .file-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 2px;
  padding: 0 13px;
  font: 400 11px/1 var(--mono);
  letter-spacing: .025em;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.outline-button { border: 1px solid var(--line-strong); background: transparent; }
.outline-button:hover { border-color: var(--mint-strong); background: var(--mint-wash); }
.quiet-button { border: 0; background: transparent; color: var(--mint-strong); }
.quiet-button:hover { background: var(--mint-wash); }
.mint-button { border: 1px solid var(--mint); background: var(--mint); color: var(--ink); }
.mint-button:hover, .play-button:hover { background: var(--mint-hover); }
.file-button { position: relative; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.file-button:hover { border-color: var(--mint-strong); background: var(--mint-wash); }
.file-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brief-subtitle { max-width: 680px; margin: 19px 0 30px; color: var(--ink-2); font-size: 15px; }

/* The black broadcast console is the product's authored contrast moment. */
.player {
  display: block;
  margin-inline: calc(clamp(27px, 5vw, 88px) * -.42);
  padding: clamp(25px, 3vw, 38px) clamp(27px, 3.4vw, 48px) 22px;
  background: var(--ink);
  color: var(--surface);
}
.player audio { display: none; }
.player-heading { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 20px; }
.player-kicker { display: block; margin-bottom: 8px; color: var(--mint); font: 400 11px/1 var(--mono); letter-spacing: .05em; text-transform: lowercase; }
.player-heading strong { display: block; color: var(--surface); font: 550 21px/1 var(--disp); font-variation-settings: 'opsz' 24, 'wdth' 96; letter-spacing: -.02em; }
.player-stage { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(25px, 3.4vw, 48px); margin-top: 23px; }
.transport-controls { display: grid; grid-template-columns: 44px 64px 44px; align-items: center; gap: 8px; }
.transport-button, .play-button, .speed-button { display: grid; place-items: center; border: 0; transition: background-color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease); }
.transport-button { position: relative; width: 44px; height: 44px; background: transparent; color: var(--white-2); }
.transport-button:hover { background: rgba(255, 255, 255, .10); color: var(--surface); }
.transport-button svg { width: 27px; height: 27px; stroke-width: 1.35; }
.transport-button span { position: absolute; top: 20px; font: 400 7px/1 var(--mono); }
.play-button { width: 64px; height: 64px; border: 1px solid var(--mint); border-radius: 50%; background: var(--mint); color: var(--ink); }
.play-button:active { transform: scale(.96); }
.play-button svg { width: 25px; height: 25px; }
.play-button .play-icon { transform: translateX(1px); }
.play-button .play-icon path { fill: currentColor; stroke: none; }
.play-button .pause-icon { display: none; stroke-width: 2; }
.play-button[data-state='playing'] .play-icon { display: none; }
.play-button[data-state='playing'] .pause-icon { display: block; }
.speed-button { min-width: 51px; min-height: 44px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 2px; background: transparent; color: var(--white-2); font: 400 10px/1 var(--mono); }
.speed-button:hover { border-color: var(--mint); background: rgba(255, 255, 255, .08); color: var(--surface); }
.timeline { min-width: 0; }
.seek-shell { position: relative; height: 44px; }
.seek-track { position: absolute; top: 21px; right: 0; left: 0; height: 2px; overflow: hidden; background: rgba(255, 255, 255, .22); pointer-events: none; }
.seek-track span { display: block; width: 100%; height: 100%; background: var(--mint); transform: scaleX(0); transform-origin: left center; }
.seek-control { position: relative; display: block; width: 100%; height: 44px; margin: 0; padding: 0; border: 0; appearance: none; background: transparent; cursor: pointer; }
.seek-control::-webkit-slider-runnable-track { height: 2px; background: transparent; }
.seek-control::-webkit-slider-thumb { width: 14px; height: 14px; margin-top: -6px; border: 2px solid var(--ink); border-radius: 50%; appearance: none; background: var(--surface); box-shadow: 0 0 0 1px var(--surface); }
.seek-control::-moz-range-track { height: 2px; background: transparent; }
.seek-control::-moz-range-thumb { width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--surface); }
.seek-control:disabled { cursor: not-allowed; }
.chapter-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .12); }
.chapter-button { min-height: 56px; border: 0; border-right: 1px solid rgba(255, 255, 255, .12); padding: 11px 12px 10px 0; background: transparent; color: var(--white-3); text-align: left; }
.chapter-button + .chapter-button { padding-left: 12px; }
.chapter-button:last-child { border-right: 0; }
.chapter-button:hover, .chapter-button:focus-visible { background: rgba(255, 255, 255, .07); color: var(--surface); }
.chapter-button.is-current { color: var(--mint); }
.chapter-button time { display: block; margin-bottom: 5px; font: 400 9px/1 var(--mono); font-variant-numeric: tabular-nums; }
.chapter-button span { display: block; overflow: hidden; font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.time-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: var(--white-3); font: 400 10px/1 var(--mono); font-variant-numeric: tabular-nums; }
.time-row #player-status { padding: 0 14px; text-align: center; }
.time-row #duration { justify-self: end; }
.player-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.player-actions a { display: inline-flex; min-height: 44px; align-items: center; padding-inline: 8px; color: var(--white-3); font: 400 9px/1 var(--mono); letter-spacing: .03em; text-decoration-color: rgba(255, 255, 255, .30); text-underline-offset: 4px; }
.player-actions a:hover { color: var(--mint); text-decoration-color: var(--mint); }
.player-actions a[hidden] { display: none; }
.player-notes { display: flex; gap: 18px; margin-top: 15px; color: var(--ink-3); font-size: 13px; }
.player-notes > span:first-child { display: flex; align-items: center; gap: 7px; }

.briefing-section, .prompt-section, .archive-section { padding: clamp(49px, 6vw, 82px) 0; }
.workflow-section { padding-block: clamp(44px, 5.2vw, 70px); scroll-margin-top: 20px; }
.signal-heading { display: flex; align-items: center; gap: 14px; }
.signal-heading > img { width: 42px; height: 42px; }
.workflow-list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 25px 0 0; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; }
.workflow-item { min-height: 132px; padding: 18px 20px 18px 0; border-right: 1px solid var(--line); }
.workflow-item + .workflow-item { padding-left: 20px; }
.workflow-item:last-child { border-right: 0; }
.workflow-state { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font: 400 11px/1 var(--mono); letter-spacing: .04em; }
.workflow-state i { width: 6px; height: 6px; background: var(--mint); }
.workflow-item h3 { margin: 20px 0 7px; font: 520 23px/1 var(--disp); font-variation-settings: 'opsz' 24, 'wdth' 96; letter-spacing: -.025em; }
.workflow-item p { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 1.55; }
.workflow-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 58px); align-items: center; padding-top: 22px; }
.workflow-input-copy h3 { max-width: 620px; margin: 0 0 8px; font: 520 clamp(22px, 2vw, 30px)/1.08 var(--disp); font-variation-settings: 'opsz' 30, 'wdth' 96; letter-spacing: -.025em; }
.workflow-input-copy .section-note { max-width: 660px; }
.workflow-input-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.voice-actions { display: flex; flex: 0 0 auto; gap: 7px; align-items: start; }
.record-button[aria-pressed='true'] { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.record-button[aria-pressed='true'] svg { color: var(--mint); }
.recording-time { display: inline-flex; min-width: 48px; align-items: center; gap: 7px; color: var(--ink); font: 400 10px/1 var(--mono); font-variant-numeric: tabular-nums; }
.recording-time::before { width: 6px; height: 6px; background: var(--mint); content: ''; }
.recording-time[hidden] { display: none; }

.story-list { margin-top: 31px; border-top: 1px solid var(--line); }
.story { border-bottom: 1px solid var(--line); }
.story > summary { display: grid; grid-template-columns: 76px minmax(0, 1fr) minmax(132px, .34fr) 50px minmax(244px, 260px); gap: 20px; align-items: start; padding: 24px 0; cursor: pointer; list-style: none; transition: background-color .16s var(--ease); }
.story > summary::-webkit-details-marker { display: none; }
.story > summary:hover, .story[open] > summary { background: var(--mint-soft); }
.story-time, .story-toggle { color: var(--ink-3); font: 400 11px/1.35 var(--mono); }
.story-time { position: relative; padding-top: 4px; }
.story-time::after { position: absolute; top: 27px; left: 0; width: 28px; height: 1px; background: var(--line-strong); content: ''; }
.story-topic { display: block; margin-bottom: 8px; color: var(--mint-strong); font: 400 11px/1 var(--mono); letter-spacing: .04em; }
.story-disclosure { display: inline-flex; margin: -2px 0 8px; padding: 4px 6px; border: 1px solid var(--line-strong); color: var(--ink-2); font: 400 10px/1 var(--mono); letter-spacing: .03em; }
.story h3 { max-width: 760px; margin: 0; font: 520 clamp(22px, 2.1vw, 30px)/1.08 var(--disp); font-variation-settings: 'opsz' 32, 'wdth' 95; letter-spacing: -.028em; text-wrap: balance; }
.story-signal { min-width: 0; align-self: center; border-bottom: 1px solid var(--line); padding: 7px 0; color: var(--ink-3); font: 400 12px/1.4 var(--mono); overflow-wrap: anywhere; white-space: normal; }
.story-toggle { justify-self: end; align-self: center; color: var(--mint-strong); }
.story-toggle::after { margin-left: 6px; content: '▸'; }
.story[open] .story-toggle::after { content: '▾'; }
.story-detail { padding: 0 58px 28px 98px; }
.story p { max-width: 70ch; margin: 0; color: var(--ink-3); font-size: 16px; line-height: 1.65; text-wrap: pretty; }
.story-vote-group { grid-column: 5; grid-row: 1; align-self: center; display: grid; min-width: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.story:not([open]) > .story-detail { display: none; }
.story-vote-button { min-width: 0; min-height: 48px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 2px; background: transparent; color: var(--ink-2); font: 300 11px/1 var(--sans); white-space: nowrap; transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease); }
.story-vote-button:hover { border-color: var(--mint-strong); background: var(--mint-wash); color: var(--ink); }
.story-vote-button.is-selected, .story-vote-button[aria-pressed='true'] { border-color: var(--mint-strong); background: var(--mint); color: var(--ink); }

.two-column { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.signal-map, .sources { min-width: 0; padding: clamp(43px, 5.5vw, 72px) 0; }
.signal-map { padding-right: clamp(25px, 4vw, 60px); border-right: 1px solid var(--line); }
.sources { padding-left: clamp(25px, 4vw, 60px); }
.signal-map .section-note { margin-top: 18px; }
.topic-list, .source-list { margin-top: 27px; border-top: 1px solid var(--line); }
.topic-row, .source-row { display: grid; min-height: 52px; align-items: center; border-bottom: 1px solid var(--line); }
.topic-row { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }
.topic-name { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13px; }
.topic-name i { width: 6px; height: 6px; background: var(--mint); }
.topic-count { color: var(--ink-3); font: 400 11px/1 var(--mono); }
.topic-row.is-disabled { opacity: .58; }
.source-row { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
.source-row svg { color: var(--mint-strong); }
.source-row strong { display: block; color: var(--ink-2); font-size: 12px; font-weight: 400; }
.source-row small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 11px; }
.source-footnote { margin: 16px 0 0; color: var(--ink-4); font-size: 12px; line-height: 1.55; }
.source-footnote code { font-family: var(--mono); font-size: 11px; }
.prompt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: clamp(30px, 5vw, 70px); margin-top: 29px; }
.prompt-summary { max-width: 550px; margin: 0; color: var(--ink-2); font: 520 clamp(22px, 2.1vw, 31px)/1.1 var(--disp); font-variation-settings: 'opsz' 32, 'wdth' 96; letter-spacing: -.025em; }
.prompt-grid .section-note { margin-top: 16px; }
.prompt-diff { min-height: 126px; margin: 0; padding: 18px; overflow: auto; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink-2); font: 400 12px/1.65 var(--mono); white-space: pre-wrap; }

.feedback-section { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(450px, 1.28fr); gap: clamp(36px, 6vw, 90px); padding: clamp(51px, 6vw, 82px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.feedback-copy > p:last-child { max-width: 330px; margin: 17px 0 0; color: var(--ink-3); font-size: 14px; line-height: 1.65; }
.feedback-workbench { min-width: 0; }
.vote-set { margin: 0; padding: 0; border: 0; }
.vote-set legend, .feedback-form label { margin-bottom: 10px; color: var(--ink-3); font: 400 11px/1 var(--mono); letter-spacing: .04em; }
.vote-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.vote-button { min-width: 0; min-height: 52px; padding-inline: 10px; border: 1px solid var(--line-strong); border-radius: 2px; background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 400; white-space: nowrap; }
.vote-button:hover { border-color: var(--mint-strong); background: var(--mint-wash); }
.vote-button.is-selected, .vote-button[aria-pressed='true'] { border-color: var(--mint-strong); background: var(--mint); color: var(--ink); }
.feedback-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 22px; }
.feedback-form label { grid-column: 1 / -1; }
.feedback-form textarea { min-height: 82px; resize: vertical; padding: 12px 13px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 300; line-height: 1.5; }
.feedback-form textarea:hover { background: var(--surface-hover); }
.feedback-form textarea:focus { border-color: var(--mint-strong); box-shadow: 0 0 0 1px var(--mint-focus); }
.feedback-form textarea::placeholder { color: var(--ink-2); }
.feedback-form .mint-button { align-self: end; }
.feedback-status { min-height: 17px; margin: 14px 0 0; color: var(--mint-strong); font-size: 12px; }
.reinforcement-ledger { margin-top: 27px; padding-top: 25px; border-top: 1px solid var(--line-strong); }
.reinforcement-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.reinforcement-heading h3 { margin: 9px 0 0; font: 520 24px/1 var(--disp); font-variation-settings: 'opsz' 26, 'wdth' 96; letter-spacing: -.025em; }
.reinforcement-flow { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; }
.reinforcement-flow li { position: relative; min-height: 76px; padding: 16px; border-right: 1px solid var(--line); }
.reinforcement-flow li:first-child { padding-left: 0; }
.reinforcement-flow li:last-child { border-right: 0; }
.reinforcement-flow li:not(:last-child)::after { position: absolute; top: 35px; right: -5px; z-index: 1; width: 9px; height: 9px; background: var(--canvas); color: var(--ink-3); content: '→'; font: 400 10px/1 var(--mono); }
.reinforcement-flow span { display: block; color: var(--ink-3); font: 400 9px/1 var(--mono); letter-spacing: .05em; }
.reinforcement-flow strong { display: block; margin-top: 10px; color: var(--ink-2); font-size: 12px; font-weight: 300; }
.feedback-history { border-bottom: 1px solid var(--line); }
.feedback-history > p { margin: 0; padding: 15px 0; color: var(--ink-3); font-size: 12px; }
.feedback-history-row { display: grid; grid-template-columns: minmax(0, 1fr) 74px minmax(120px, .7fr); gap: 12px; min-height: 48px; align-items: center; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 12px; }
.feedback-history-row:last-child { border-bottom: 0; }
.feedback-history-row strong { font: 400 10px/1 var(--mono); }
.feedback-history-row small { justify-self: end; color: var(--ink-3); font: 400 9px/1.3 var(--mono); text-align: right; }

.archive-list { margin-top: 29px; border-top: 1px solid var(--line); }
.archive-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(170px, .5fr) 34px; gap: 19px; min-height: 84px; align-items: center; padding: 17px 8px 17px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; transition: background-color .16s var(--ease); }
.archive-row:hover { background: var(--mint-soft); }
.archive-meta { color: var(--ink-3); font: 400 11px/1.45 var(--mono); }
.archive-row h3 { margin: 0; font: 520 21px/1 var(--disp); font-variation-settings: 'opsz' 22, 'wdth' 96; letter-spacing: -.025em; }
.archive-row p { margin: 0; color: var(--ink-3); font-size: 12px; line-height: 1.5; }
.archive-arrow { color: var(--mint-strong); font-size: 19px; text-align: right; }
.topic-editor { width: min(760px, calc(100vw - 32px)); max-height: min(780px, calc(100vh - 32px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--canvas); color: var(--ink); box-shadow: 0 20px 60px rgba(9, 9, 9, .18); }
.topic-editor::backdrop { background: rgba(9, 9, 9, .38); }
.topic-editor form { padding: clamp(24px, 4vw, 38px); }
.topic-editor-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.topic-editor-heading h2 { margin: 0; font: 600 clamp(28px, 3vw, 40px)/.98 var(--disp); font-variation-settings: 'opsz' 40, 'wdth' 95; letter-spacing: -.03em; }
.topic-editor-heading p { max-width: 510px; margin: 14px 0 0; color: var(--ink-3); font-size: 14px; line-height: 1.55; }
.icon-button { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line-strong); border-radius: 2px; background: transparent; color: var(--ink); font-size: 24px; line-height: 1; transition: background-color .16s var(--ease), border-color .16s var(--ease); }
.icon-button:hover { border-color: var(--mint-strong); background: var(--mint-wash); }
.topic-editor-list { margin-top: 28px; border-top: 1px solid var(--line); }
.topic-editor-row { display: grid; grid-template-columns: minmax(0, 1fr) 104px 94px; gap: 12px; align-items: end; margin: 0; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); }
.topic-editor-row label { display: grid; gap: 7px; color: var(--ink-3); font-size: 12px; line-height: 1.2; }
.topic-editor-row input[type='text'], .topic-editor-row input[type='number'] { min-height: 44px; width: 100%; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface); color: var(--ink); padding: 0 11px; font-size: 14px; font-weight: 300; }
.topic-editor-row input:hover { background: var(--surface-hover); }
.topic-editor-enabled { min-height: 44px; grid-template-columns: 16px 1fr; align-items: center; color: var(--ink-2) !important; }
.topic-editor-enabled input { width: 16px; height: 16px; margin: 0; accent-color: var(--mint-strong); }
.topic-editor-status { min-height: 19px; margin: 14px 0 0; color: var(--mint-strong); font-size: 13px; }
.topic-editor-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; margin-top: 22px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 8; max-width: 330px; padding: 13px 15px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); box-shadow: 0 12px 28px rgba(9, 9, 9, .13); font-size: 12px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .16s var(--ease), transform .16s var(--ease); }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.error { margin: 22px 0; color: var(--ink-2); font-size: 13px; }
.film-cursor { display: none; position: fixed; z-index: 18; top: 0; left: 0; width: 28px; height: 34px; pointer-events: none; transform: translate3d(-60px, -60px, 0); will-change: transform; }
.film-cursor svg { width: 100%; height: 100%; fill: var(--surface); stroke: var(--ink); stroke-width: 2.2; }
html.film-cursor-on, html.film-cursor-on * { cursor: none !important; }
html.film-cursor-on .film-cursor { display: block; }

@media (max-width: 920px) {
  .app-shell { display: block; }
  .sidebar { position: static; flex-direction: row; align-items: center; height: auto; min-height: 68px; padding: 12px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .product-kind, .sidebar-bottom { display: none; }
  .nav-list { display: flex; gap: 1px; margin: 0 0 0 auto; }
  .nav-link { width: 44px; justify-content: center; padding: 0; border-bottom: 2px solid transparent; }
  .nav-link.is-active { border-bottom-color: var(--mint-strong); }
  .nav-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .main { padding: 22px 22px 63px; }
  .feedback-section { grid-template-columns: 1fr; gap: 35px; }
  .feedback-copy > p:last-child { max-width: 500px; }
  .player { margin-inline: -8px; }
  .story > summary { grid-template-columns: 76px minmax(0, 1fr) auto; }
  .story-signal { grid-column: 2; grid-row: 2; }
  .story-toggle { grid-column: 3; grid-row: 1; }
  .story-detail { padding-left: 98px; }
  .story-vote-group { grid-column: 2 / -1; grid-row: 3; width: min(100%, 560px); min-width: 0; margin-top: 4px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .intro { display: block; padding: 54px 0 45px; }
  .intro-copy { margin: 27px 0 0; }
  .edition-line { grid-template-columns: repeat(2, 1fr); padding-block: 10px; row-gap: 6px; }
  .edition-line > div + div::before { display: none; }
  .workflow-list { grid-template-columns: repeat(2, 1fr); }
  .workflow-item { padding: 18px 16px 18px 0; }
  .workflow-item + .workflow-item { padding-left: 20px; }
  .workflow-item:nth-child(odd) { padding-left: 0; }
  .workflow-item:nth-child(even) { padding-right: 0; }
  .workflow-item:nth-child(2) { border-right: 0; }
  .workflow-item:nth-child(3) { border-right: 1px solid var(--line); }
  .workflow-item:nth-child(4) { border-right: 0; }
  .workflow-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .workflow-input { grid-template-columns: 1fr; gap: 17px; }
  .workflow-input-actions { justify-content: flex-start; }
  .two-column { grid-template-columns: 1fr; }
  .signal-map { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .sources { padding-left: 0; }
  .prompt-grid { grid-template-columns: 1fr; }
  .story > summary { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 17px; }
  .story-detail { padding-right: 0; padding-left: 73px; }
  .story-vote-group { grid-column: 1 / -1; grid-row: 3; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .archive-row { grid-template-columns: 110px minmax(0, 1fr) 27px; }
  .archive-row p { display: none; }
}

@media (max-width: 510px) {
  .sidebar { overflow: hidden; }
  .wordmark { min-width: 44px; justify-content: center; }
  .wordmark span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-list { width: 220px; min-width: 220px; margin-left: auto; }
  .nav-link { flex: 0 0 44px; }
  .main { padding-inline: 17px; }
  .topbar-meta { display: none; }
  .section-intro { align-items: start; flex-direction: column; }
  .outline-button { align-self: flex-start; }
  .player { margin-inline: -17px; padding: 24px 17px 18px; }
  .player-heading strong { font-size: 20px; }
  .player-stage { display: block; margin-top: 15px; }
  .transport-controls { grid-template-columns: 48px 76px 48px; justify-content: center; gap: 13px; margin: 8px 0 13px; }
  .transport-button { width: 48px; height: 48px; }
  .play-button { width: 76px; height: 76px; }
  .play-button svg { width: 28px; height: 28px; }
  .timeline { width: 100%; }
  .seek-track { height: 3px; }
  .seek-control::-webkit-slider-runnable-track { height: 3px; }
  .seek-control::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -6.5px; }
  .chapter-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter-button:nth-child(2) { border-right: 0; }
  .chapter-button:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .time-row #player-status { max-width: 150px; padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .player-actions { justify-content: space-between; margin-top: 12px; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, .12); }
  .player-notes { display: block; }
  .story-signal { max-width: 100%; white-space: normal; line-height: 1.4; }
  .story-vote-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vote-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-vote-button, .vote-button { min-height: 50px; }
  .workflow-item { min-height: 124px; }
  .feedback-form { grid-template-columns: 1fr; }
  .feedback-form .mint-button { justify-self: start; }
  .voice-actions { flex-wrap: wrap; }
  .workflow-input-actions { display: block; }
  .workflow-input-actions .voice-actions { margin-top: 10px; }
  .reinforcement-flow li { padding: 14px 9px; }
  .reinforcement-flow li:first-child { padding-left: 0; }
  .feedback-history-row { grid-template-columns: minmax(0, 1fr) 60px; }
  .feedback-history-row small { grid-column: 1 / -1; justify-self: start; padding-bottom: 10px; text-align: left; }
  .archive-row { grid-template-columns: 80px minmax(0, 1fr) 24px; gap: 11px; }
  .archive-row h3 { font-size: 18px; }
  .topic-editor-row { grid-template-columns: minmax(0, 1fr) 78px; }
  .topic-editor-enabled { grid-column: 1 / -1; width: max-content; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
