  :root {
    --bg: #ffffff;
    --paper: #ffffff;
    --ink: #292929;
    --muted: #6b6b6b;
    --soft: #9a9a9a;
    --rule: #e5e5e5;
    --rail-bg: #fafafa;
    --accent: #4a8a8a;
    --accent-soft: #ecf3f2;
    --accent-dim: #3a7575;
    --shadow: 0 1px 2px rgba(0,0,0,0.04);
    --font-serif: 'Roboto Condensed', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  }
  [data-theme="dark"] {
    --bg: #14171a;
    --paper: #14171a;
    --ink: #e8e6e3;
    --muted: #9ca3a8;
    --soft: #6c7479;
    --rule: #2a2f33;
    --rail-bg: #181c20;
    --accent: #7fb8b8;
    --accent-soft: #1e2a2a;
    --accent-dim: #9bcccc;
    --shadow: 0 1px 2px rgba(0,0,0,0.4);
  }
  * { box-sizing: border-box; }
  html, body { height: 100%; }
  body {
    font-family: var(--font-serif);
    background: var(--bg);
    color: var(--ink);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    font-size: 17px;
    display: flex;
    flex-direction: column;
  }
  .topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    font-family: var(--font-sans);
    font-size: 13px;
  }
  .topbar .title { font-weight: 600; color: var(--ink); }
  .topbar .sep { color: var(--soft); }
  .topbar .meta { color: var(--muted); font-size: 12px; }
  .topbar .spacer { flex: 1; }
  .variant-switch { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  .variant-title { color: var(--accent); font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
    background: transparent; border: 1.5px solid var(--accent); padding: 4px 12px; border-radius: 8px; }
  .hamburger {
    display: none;
    appearance: none;
    border: 1px solid var(--rule);
    background: var(--bg);
    color: var(--ink);
    border-radius: 7px;
    padding: 5px;
    cursor: pointer;
    line-height: 0;
  }
  .hamburger svg { width: 18px; height: 18px; }
  .hamburger:hover { border-color: var(--accent-dim); color: var(--accent); }
  .scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }
  .scrim.open { opacity: 1; pointer-events: auto; }
  .topic-dd { position: relative; }
  .topic-dd-btn {
    appearance: none; display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px 6px 12px; border-radius: 8px;
    border: 1px solid var(--rule); background: var(--rail-bg);
    color: var(--ink); font-size: 13px; font-weight: 600; font-family: var(--font-sans);
    cursor: pointer; transition: border-color 0.12s, background 0.12s;
  }
  .topic-dd-btn:hover { border-color: var(--accent-dim); }
  .topic-dd-btn .caret { color: var(--ink); font-size: 22px; line-height: 1; margin-left: 6px; }
  .topic-dd-menu {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 20;
    min-width: 180px; padding: 4px;
    background: var(--paper); border: 1px solid var(--rule); border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    display: none;
  }
  [data-theme="dark"] .topic-dd-menu { box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
  .topic-dd.open .topic-dd-menu { display: block; }
  .topic-dd-item {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 10px; border-radius: 6px;
    font-size: 13px; color: var(--ink); cursor: pointer;
  }
  .topic-dd-item:hover { background: var(--rail-bg); }
  .topic-dd-item .check { width: 14px; color: var(--accent); font-weight: 700; }
  .topic-dd-item.active { color: var(--accent); font-weight: 600; }
  .variant-pill {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--rule);
    background: var(--bg);
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
  }
  .variant-pill:hover { border-color: var(--accent-dim); color: var(--accent); }
  .variant-pill.active { background: var(--accent); color: var(--paper); border-color: var(--accent); font-weight: 600; }
  [data-theme="dark"] .variant-pill.active { color: var(--bg); }
  .theme-toggle {
    appearance: none;
    border: 1px solid var(--rule);
    background: var(--bg);
    color: var(--muted);
    border-radius: 999px;
    padding: 5px 10px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .theme-toggle:hover { border-color: var(--accent-dim); color: var(--accent); }
  .theme-toggle svg { width: 14px; height: 14px; }

  .layout { display: grid; grid-template-columns: 280px 1fr; flex: 1; min-height: 0; }
  .sidebar {
    background: var(--rail-bg);
    border-right: 1px solid var(--rule);
    padding: 24px 0 60px;
    overflow-y: auto;
    font-family: var(--font-sans);
  }
  .section { padding: 0 20px; margin-bottom: 22px; }
  .section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--soft);
    font-weight: 700;
    margin-bottom: 10px;
    padding-left: 4px;
  }
  .nav-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 7px 12px;
    margin: 1px -4px;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    border-radius: 6px;
    line-height: 1.4;
    user-select: none;
  }
  .nav-item:hover { background: rgba(0,0,0,0.04); color: var(--ink); }
  .nav-item.active { background: var(--accent); color: #fff; font-weight: 600; }
  .nav-item.active .num { color: rgba(255,255,255,0.7); }
  .nav-item .num {
    font-size: 11px;
    color: var(--soft);
    font-variant-numeric: tabular-nums;
    flex: 0 0 22px;
    font-weight: 600;
  }
  .nav-item .label { flex: 1; }

  .focus {
    overflow-y: auto;
    padding: 0;
  }
  .article {
    max-width: 960px;
    margin: 0 auto;
    padding: 56px 48px 120px;
  }
  .pane { display: none; }
  .pane.active { display: block; }

  /* Longform typography */
  .kicker {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 14px;
  }
  h1.title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 18px;
    letter-spacing: 0;
  }
  .deck {
    font-size: 16px;
    color: var(--muted);
    font-style: italic;
    line-height: 1.55;
    margin: 0 0 32px;
  }
  .byline {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--soft);
    padding: 12px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    margin-bottom: 36px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .pullquote {
    font-size: 19px;
    line-height: 1.45;
    color: var(--accent);
    margin: 36px -20px;
    padding: 22px 20px;
    border-top: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    font-weight: 700;
  }
  .body p { margin: 0 0 22px; }
  .hook {
    font-style: italic;
    color: var(--accent);
    font-size: 17px;
    margin: 0 0 24px;
    padding-left: 16px;
    border-left: 1px solid var(--accent);
  }
  .subhead {
    font-family: var(--font-sans);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    font-weight: 700;
    margin: 28px 0 8px;
  }
  .meta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
    padding: 18px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    font-family: var(--font-sans);
    font-size: 13px;
  }
  .meta-row .item { }
  .meta-row .item .k {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--soft);
    font-weight: 700;
    margin-bottom: 4px;
  }
  .meta-row .item .v { color: var(--ink); font-family: var(--font-serif); font-size: 15px; line-height: 1.5; }
  ul.list { padding-left: 22px; margin: 0 0 22px; }
  ul.list li { margin-bottom: 10px; }

  .character-block, .location-block { padding: 24px 0; border-bottom: 1px dashed var(--rule); }
  .character-block:last-child, .location-block:last-child { border-bottom: none; }
  .character-name, .location-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.25;
  }
  .character-role, .location-tag {
    font-family: var(--font-sans);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--soft);
    font-weight: 600;
    margin-bottom: 16px;
  }
  .voice-samples {
    background: var(--accent-soft);
    padding: 14px 18px;
    border-radius: 6px;
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.65;
  }
  .voice-samples .vs-label {
    font-family: var(--font-sans);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
  }
  .voice-samples ul { margin: 0; padding-left: 18px; }
  .voice-samples li { margin-bottom: 6px; }

  .phase-card {
    margin-bottom: 28px;
    padding: 20px 22px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-left: 1px solid var(--accent);
    border-radius: 6px;
  }
  .phase-card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
  .phase-card .eps { font-family: var(--font-sans); font-size: 11px; color: var(--soft); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
  .phase-card p { margin: 8px 0 0; font-size: 16px; line-height: 1.65; color: var(--muted); }

  /* Editorial brief */
  .brief-thesis {
    font-size: 18px;
    line-height: 1.5;
    color: var(--accent);
    font-weight: 700;
    margin: 0 0 28px;
    padding: 18px 20px;
    background: var(--accent-soft);
    border-radius: 6px;
    border-left: 1px solid var(--accent);
  }
  .brief-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0 0 24px;
  }
  .brief-card {
    padding: 16px 18px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 6px;
  }
  .brief-card.span-2 { grid-column: 1 / -1; }
  .brief-card .bc-label {
    font-family: var(--font-sans);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
  }
  .brief-card .bc-body { line-height: 1.6; }
  .brief-card .bc-body p { margin: 0 0 10px; }
  .brief-card .bc-body p:last-child { margin-bottom: 0; }
  .fact-checklist {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
  }
  .fact-checklist li {
    position: relative;
    padding: 12px 14px 12px 40px;
    margin-bottom: 8px;
    background: var(--rail-bg);
    border: 1px solid var(--rule);
    border-radius: 6px;
    line-height: 1.55;
    font-size: 15px;
  }
  .fact-checklist li::before {
    content: '✓';
    position: absolute;
    left: 12px;
    top: 12px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--paper);
    background: var(--accent);
    border-radius: 50%;
  }
  [data-theme="dark"] .fact-checklist li::before { color: var(--bg); }

  /* Structure timeline */
  .timeline { margin: 0 0 8px; }
  .tl-node {
    position: relative;
    padding: 0 0 24px 28px;
    border-left: 1px solid var(--rule);
  }
  .tl-node:last-child { border-left-color: transparent; padding-bottom: 0; }
  .tl-node::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
  }
  .tl-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 2px;
  }
  .tl-num {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.06em;
  }
  .tl-loc { font-weight: 700; font-size: 15px; }
  .tl-dur {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--soft);
    font-variant-numeric: tabular-nums;
    margin-left: auto;
  }
  .tl-bar {
    height: 4px;
    background: var(--accent-soft);
    border-radius: 2px;
    margin: 6px 0 10px;
  }
  .tl-bar > span {
    display: block;
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
  }
  .tl-chars { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
  .tl-char {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 4px;
    padding: 2px 8px;
  }
  .tl-purpose { font-style: italic; color: var(--muted); margin: 0 0 6px; line-height: 1.55; }
  .tl-visual { margin: 0 0 10px; line-height: 1.6; }
  .tl-beats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 8px;
  }
  .tl-beat-group .tbg-label {
    font-family: var(--font-sans);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--soft);
    font-weight: 700;
    margin-bottom: 4px;
  }
  .tl-beat-group ul { margin: 0; padding-left: 18px; }
  .tl-beat-group li { margin-bottom: 5px; font-size: 14px; line-height: 1.5; color: var(--muted); }

  @media (max-width: 760px) {
    .brief-grid, .tl-beats, .kv-grid { grid-template-columns: 1fr; }
  }

  /* Generic structured data renderer */
  .data-bullets { margin: 0 0 14px; padding-left: 20px; }
  .data-bullets li { margin-bottom: 8px; line-height: 1.6; }
  .data-cards { display: flex; flex-direction: column; gap: 14px; margin: 0 0 18px; }
  .data-card {
    padding: 16px 18px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-left: 1px solid var(--accent);
    border-radius: 6px;
  }
  .data-card .dc-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
  }
  .kv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
    margin: 0 0 16px;
  }
  .kv-item { min-width: 0; }
  .kv-key {
    font-family: var(--font-sans);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--soft);
    font-weight: 700;
    margin-bottom: 3px;
  }
  .kv-val { line-height: 1.5; }
  .fields { display: flex; flex-direction: column; gap: 12px; margin: 0 0 8px; }
  .field-label {
    font-family: var(--font-sans);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 3px;
  }
  .field-val { line-height: 1.6; }
  .field-val > p:first-child { margin-top: 0; }
  .field-val > p:last-child { margin-bottom: 0; }
  /* Nested blocks get an indent rail so hierarchy reads clearly */
  .field-block > .field-val {
    padding-left: 14px;
    border-left: 1px solid var(--rule);
    margin-top: 6px;
  }
  .data-card .fields { gap: 10px; }

  /* Citations / verification */
  .verif-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
  }
  .verif-stat {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--rule);
    background: var(--rail-bg);
    color: var(--muted);
  }
  .verif-stat b { color: var(--ink); font-variant-numeric: tabular-nums; }
  .verif-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--rail-bg);
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted);
  }
  .verif-legend span { flex: 1 1 240px; }
  .verif-legend b {
    color: var(--ink);
    margin-right: 6px;
    font-weight: 700;
  }
  .verif-card {
    padding: 16px 18px;
    margin-bottom: 12px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-left: 1px solid var(--soft);
    border-radius: 6px;
  }
  .verif-card.is-accept { border-left-color: #2e9e6b; }
  .verif-card.is-flag { border-left-color: #d08a1a; }
  .verif-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }
  .verif-badge {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 5px;
  }
  .verif-badge.is-accept { background: rgba(46,158,107,0.14); color: #2e9e6b; }
  .verif-badge.is-flag { background: rgba(208,138,26,0.16); color: #c07d12; }
  [data-theme="dark"] .verif-badge.is-accept { color: #6ed29c; }
  [data-theme="dark"] .verif-badge.is-flag { color: #e6b153; }
  .claim-type {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--soft);
    border: 1px solid var(--rule);
    border-radius: 5px;
    padding: 2px 8px;
  }
  .conf {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--soft);
    font-variant-numeric: tabular-nums;
  }
  .conf-bar {
    width: 60px;
    height: 5px;
    border-radius: 3px;
    background: var(--rule);
    overflow: hidden;
  }
  .conf-bar > span { display: block; height: 100%; border-radius: 3px; }
  .conf-bar.is-accept > span { background: #2e9e6b; }
  .conf-bar.is-flag > span { background: #d08a1a; }
  .verif-claim { font-size: 15px; line-height: 1.55; margin: 0 0 8px; font-weight: 500; }
  .verif-context {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
    padding-left: 12px;
    border-left: 1px solid var(--rule);
  }
  .verif-context .vc-label {
    font-family: var(--font-sans);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--soft);
    font-weight: 700;
    margin-right: 6px;
  }

  /* Rubric scorecard */
  .score-head {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    margin: 0 0 18px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 8px;
  }
  .score-head.is-accept { border-left: 1px solid #2e9e6b; }
  .score-head.is-flag { border-left: 1px solid #d08a1a; }
  .score-big {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .score-head.is-accept .score-big { color: #2e9e6b; }
  .score-head.is-flag .score-big { color: #c07d12; }
  [data-theme="dark"] .score-head.is-accept .score-big { color: #6ed29c; }
  [data-theme="dark"] .score-head.is-flag .score-big { color: #e6b153; }
  .score-meta { flex: 1; font-family: var(--font-sans); }
  .score-meta .sm-stage { font-size: 14px; font-weight: 600; color: var(--ink); }
  .score-meta .sm-sub { font-size: 11px; color: var(--soft); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 3px; }
  .rubric-row {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
  }
  .rubric-row:last-child { border-bottom: none; }
  .rubric-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
  }
  .rubric-name { font-weight: 600; font-size: 15px; flex: 1; line-height: 1.4; }
  .rubric-score {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
  }
  .rubric-rationale { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; }
  .rubric-feedback {
    margin: 8px 0 0;
    padding: 10px 12px;
    background: rgba(208,138,26,0.08);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.5;
  }
  .rubric-feedback .rf-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #c07d12;
    margin-bottom: 4px;
  }
  [data-theme="dark"] .rubric-feedback .rf-label { color: #e6b153; }
  .rubric-feedback ul { margin: 0; padding-left: 16px; }
  .rubric-feedback li { margin-bottom: 4px; color: var(--muted); }

  /* Screenplay-style script breakdown */
  .script-block {
    margin-bottom: 26px;
    padding: 20px 22px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-left: 1px solid var(--accent);
    border-radius: 6px;
  }
  .script-block .sb-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
  }
  .script-block .sb-num {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--paper);
    background: var(--accent);
    border-radius: 5px;
    padding: 3px 8px;
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
  }
  [data-theme="dark"] .script-block .sb-num { color: var(--bg); }
  .script-block .sb-slug {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
  }
  .sb-group-label {
    font-family: var(--font-sans);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--soft);
    font-weight: 700;
    margin: 18px 0 8px;
  }
  .action-line {
    font-style: italic;
    color: var(--muted);
    margin: 0 0 10px;
    line-height: 1.6;
  }
  .dialogue {
    margin: 0 0 16px;
    padding-left: 14px;
    border-left: 1px solid var(--accent-soft);
  }
  .dlg-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 3px;
  }
  .dlg-speaker {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ink);
  }
  .dlg-role {
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 4px;
    padding: 2px 6px;
  }
  .dlg-register {
    font-family: var(--font-sans);
    font-size: 10px;
    color: var(--soft);
    font-weight: 500;
  }
  .dlg-note {
    font-style: italic;
    color: var(--soft);
    font-size: 14px;
    margin: 0 0 3px;
  }
  .dlg-line { margin: 0 0 6px; line-height: 1.6; }
  .dlg-alts {
    font-family: var(--font-sans);
    font-size: 13px;
    margin: 4px 0 0;
  }
  .dlg-alts summary {
    cursor: pointer;
    color: var(--accent);
    font-weight: 600;
    font-size: 12px;
    list-style: none;
  }
  .dlg-alts summary::-webkit-details-marker { display: none; }
  .dlg-alts summary::before { content: '▸ '; }
  .dlg-alts[open] summary::before { content: '▾ '; }
  .dlg-alts ul { margin: 8px 0 0; padding-left: 18px; }
  .dlg-alts li { margin-bottom: 6px; color: var(--muted); line-height: 1.55; font-family: var(--font-serif); }
  .prod-notes {
    margin-top: 18px;
    padding: 14px 16px;
    background: var(--rail-bg);
    border: 1px dashed var(--rule);
    border-radius: 6px;
    font-family: var(--font-sans);
  }
  .prod-notes .pn-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--soft);
    font-weight: 700;
    margin-bottom: 8px;
  }
  .prod-notes .pn-group { margin-bottom: 10px; }
  .prod-notes .pn-group:last-child { margin-bottom: 0; }
  .prod-notes .pn-kind {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
  }
  .prod-notes ul { margin: 0; padding-left: 18px; }
  .prod-notes li { margin-bottom: 5px; font-size: 13px; line-height: 1.5; color: var(--muted); }

  .callback-card {
    padding: 16px 0;
    border-bottom: 1px dashed var(--rule);
  }
  .callback-card:last-child { border-bottom: none; }
  .callback-card .ref { font-family: var(--font-sans); font-size: 11px; color: var(--accent); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

  .hint {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--soft);
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed var(--rule);
  }
  .kbd {
    font-family: ui-monospace, 'SF Mono', monospace;
    font-size: 11px;
    padding: 2px 6px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 3px;
  }

  @media (max-width: 760px) {
    .layout { grid-template-columns: 1fr; }
    .hamburger { display: inline-flex; }
    .scrim { display: block; }
    .sidebar {
      position: fixed;
      top: 0; left: 0; bottom: 0;
      width: 260px;
      max-width: 80vw;
      z-index: 50;
      padding-top: 20px;
      transform: translateX(-100%);
      transition: transform 0.22s ease;
      box-shadow: 2px 0 16px rgba(0,0,0,0.12);
    }
    .sidebar.open { transform: translateX(0); }
    .article { padding: 32px 20px 80px; }
    h1.title { font-size: 22px; }
    .pullquote { font-size: 16px; margin: 28px -10px; padding: 18px 14px; }
  }
