:root {
  /* ============================================================
     AuraMind "Original Liquid Glass" — V3 palette (2026-07-02,
     matched to the reference my-portfolio "Live Systems" tokens)
     ============================================================ */
  --void: #0a0d12;
  --abyss: #12161d;
  --charcoal: #171c25;
  --bone: #edeae2;
  --bone-dim: rgba(237, 234, 226, 0.62);
  --phosphor: #ff8a3d;
  --phosphor-soft: rgba(255, 138, 61, 0.16);
  --ion: #5b7fa6; /* coolant — muted steel blue (was #6ea8ff) */
  --ion-soft: rgba(91, 127, 166, 0.16);
  --danger: #ff6b5e;

  --wire: rgba(237, 234, 226, 0.1);
  --wire-strong: rgba(237, 234, 226, 0.24);

  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --r-panel: 20px;
  --r-control: 18px;
  --r-pill: 999px;

  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --glass-fill: rgba(23, 28, 37, 0.52);
  --glass-blur: 18px;

  /* Legacy warm-paper token names, remapped onto the glass palette.
     Only the dormant cockpit rules below still reference these; keeping
     them defined (in the new palette) means nothing resolves to a warm
     paper color anywhere, even in dead selectors. */
  --paper: var(--void);
  --sheet: var(--abyss);
  --ink: var(--bone);
  --muted: var(--bone-dim);
  --dim: rgba(237, 234, 226, 0.45);
  --line: rgba(237, 234, 226, 0.14);
  --line-strong: rgba(237, 234, 226, 0.3);
  --moss: var(--ion);
  --tomato: var(--danger);
  --saffron: var(--phosphor);
  --violet: #6f5b7b;
  --steel: var(--ion);
  --surface: rgba(23, 28, 37, 0.86);
  --surface-strong: var(--charcoal);
  --shadow: 0 2px 1px rgba(255, 255, 255, 0.05) inset, 0 30px 60px rgba(0, 0, 0, 0.55), 0 8px 22px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 2px 1px rgba(255, 255, 255, 0.08) inset, 0 42px 80px rgba(0, 0, 0, 0.6), 0 14px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
  --void: #eef0f4;
  --abyss: #f7f8fa;
  --charcoal: #ffffff;
  --bone: #12161f;
  --bone-dim: rgba(18, 22, 31, 0.64);
  --glass-fill: rgba(255, 255, 255, 0.55);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--bone);
  /* void base + the two warm radial washes (reference "Live Systems" body) */
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 138, 61, 0.1), transparent 34rem),
    radial-gradient(circle at 82% 12%, rgba(91, 127, 166, 0.13), transparent 32rem),
    var(--void);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
  overflow-x: hidden;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

#evidenceMap {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100vw;
  height: 100vh;
  display: block;
  pointer-events: none;
}

.scene-noise,
.map-wash {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* dormant (display:none under .ed-body) — neutralized to the dark palette
     so nothing can ever resolve to warm paper again */
  background:
    linear-gradient(180deg, rgba(18, 22, 29, 0.1), rgba(18, 22, 29, 0.72) 62%, rgba(10, 13, 18, 0.96)),
    radial-gradient(circle at 62% 38%, rgba(91, 127, 166, 0.12), transparent 18rem);
}

.flight-deck {
  position: fixed;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 20;
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.92);
  box-shadow: var(--shadow);
}

.brand-mark {
  min-width: 0;
  display: inline-grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  text-decoration: none;
}

.brand-mark img {
  width: 42px;
  height: 42px;
  padding: 6px;
  border: 1px solid var(--line);
  background: var(--sheet);
}

.brand-mark strong { display: block; font-size: 15px; }
.brand-mark small,
.deck-nav a,
.live-chip,
.kicker,
.stage-label,
.control-line span,
.metric-strip span,
.panel-head span,
.adapter span,
.log-step span,
.system-footer span,
.decision-grid span,
.decision-evidence span,
.integrity-counts span,
.integrity-grid span,
.theme-card span,
.comment-sample-strip span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 850;
  text-transform: uppercase;
}

.deck-nav {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  background: rgba(24, 23, 22, 0.035);
}

.deck-nav a {
  padding: 9px 11px;
  text-decoration: none;
}

.deck-nav a:hover {
  color: var(--ink);
  background: rgba(71, 105, 79, 0.12);
}

.live-chip {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--sheet);
}

.live-chip span {
  width: 18px;
  height: 6px;
  background: var(--moss);
}

main { position: relative; z-index: 1; }

.film-frame {
  scroll-margin-top: 96px;
  min-height: 100vh;
  width: min(1480px, calc(100% - 32px));
  margin-inline: auto;
  padding: clamp(96px, 12vh, 144px) 0 clamp(42px, 8vh, 92px);
  display: grid;
  gap: 24px;
  align-items: center;
}

.hero-frame { grid-template-columns: minmax(320px, 0.8fr) minmax(320px, 0.6fr); }
.hero-type { max-width: 900px; display: grid; gap: 22px; }
.kicker, .stage-label p { color: var(--moss); }

.hero-type h1 {
  max-width: 11.4ch;
  font-size: clamp(54px, 8.4vw, 126px);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-type p:not(.kicker) {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.58;
}

.mission-hud {
  justify-self: end;
  width: min(460px, 100%);
  min-height: 360px;
  display: grid;
  align-content: center;
  gap: 14px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, rgba(71, 105, 79, 0.13) 0 24%, transparent 24%),
    var(--surface-strong);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 44px);
  text-align: left;
}

.mission-hud span {
  color: var(--steel);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.mission-hud strong {
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.92;
}

.mission-hud small {
  max-width: 32ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--sheet);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
}

.stage-label { align-self: end; display: flex; align-items: center; gap: 12px; }
.stage-label span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  background: var(--ink);
}

.ingest-frame {
  grid-template-columns: minmax(320px, 0.88fr) minmax(360px, 1.12fr);
  grid-template-areas: "label label" "console trace";
}
.ingest-frame .stage-label { grid-area: label; }

.command-console {
  grid-area: console;
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.control-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.control-line { min-width: 0; display: grid; gap: 7px; }
.control-line input, .control-line select, .control-line textarea {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  outline: none;
  background: rgba(244, 241, 232, 0.74);
}
.control-line input, .control-line select { min-height: 52px; padding: 0 16px; }
.control-line textarea { min-height: 118px; padding: 14px 16px; resize: vertical; line-height: 1.45; }
.control-line input:focus, .control-line select:focus, .control-line textarea:focus {
  border-color: var(--moss);
  box-shadow: 0 0 0 4px rgba(71, 105, 79, 0.14);
}
.depth-field input { accent-color: var(--tomato); }
.demo-mode {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 6px;
  align-items: center;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  background: rgba(24, 23, 22, 0.035);
}
.demo-mode legend {
  padding: 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.demo-mode label {
  min-width: 0;
  display: grid;
}
.demo-mode input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.demo-mode label span {
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid transparent;
  color: var(--muted);
  background: rgba(255, 253, 247, 0.58);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  text-align: center;
}
.demo-mode input:checked + span {
  color: var(--paper);
  border-color: var(--ink);
  background: var(--ink);
}
.demo-mode input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(71, 105, 79, 0.14);
}

.ignite-button {
  min-height: 58px;
  color: var(--paper);
  border: 0;
  background: var(--ink);
  font-weight: 950;
}
.ignite-button:disabled { cursor: wait; filter: grayscale(0.4); opacity: 0.78; }

.trace-rail {
  grid-area: trace;
  align-self: stretch;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(18px, 2.4vw, 30px);
  border-left: 3px solid var(--tomato);
  background: rgba(255, 253, 247, 0.56);
}
.trace-rail h2 { font-size: clamp(32px, 3.8vw, 64px); line-height: 0.98; }
.trace-rail p:not(.kicker) { color: var(--muted); line-height: 1.55; }

.operation-log { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; max-height: 66vh; overflow: auto; }
.log-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.log-index {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 950;
}
.log-step strong { display: block; margin: 5px 0; font-size: 14px; }
.log-step p, .log-step code { color: var(--muted); font-size: 12px; line-height: 1.45; }
.log-step code {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 7px;
  color: var(--steel);
  background: rgba(60, 102, 113, 0.09);
}
.log-step.running .log-index, .log-step.prototype .log-index, .log-step.manual .log-index { color: var(--tomato); border-color: rgba(199, 67, 50, 0.5); }
.log-step.error .log-index, .log-step.blocked .log-index { color: var(--danger); border-color: rgba(169, 54, 54, 0.5); }

.graph-frame {
  grid-template-columns: minmax(280px, 0.55fr) minmax(440px, 1.45fr);
  grid-template-areas: "label orbit" "metrics adapters";
}
.graph-frame .stage-label { grid-area: label; }
.signal-orbit {
  grid-area: orbit;
  min-height: 260px;
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 10px;
  align-items: stretch;
}
.signal-orbit article {
  min-height: 180px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}
.signal-orbit article:nth-child(1) { border-top: 5px solid var(--moss); }
.signal-orbit article:nth-child(2) { border-top: 5px solid var(--steel); }
.signal-orbit article:nth-child(3) { border-top: 5px solid var(--saffron); }
.signal-orbit article:nth-child(4) { border-top: 5px solid var(--tomato); }
.signal-orbit article:nth-child(5) { border-top: 5px solid var(--violet); }
.signal-orbit span { color: var(--moss); font-size: 12px; font-weight: 950; }
.signal-orbit strong { font-size: 22px; }
.signal-orbit small { color: var(--muted); }

.adapter-grid { grid-area: adapters; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.adapter, .metric-strip article, .brief-core, .brain-core, .integrity-core, .contract-core, .workflow-scenario-core, .ledger-core, .comment-core,
.competitor-core, .source-core, .news-core, .idea-core, .podcast-core, .system-footer article {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.adapter { min-height: 152px; display: grid; align-content: start; gap: 8px; padding: 16px; }
.adapter strong { font-size: 16px; }
.adapter p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.adapter a { color: var(--steel); font-size: 12px; font-weight: 900; }
.adapter.live, .adapter.complete { border-color: rgba(71, 105, 79, 0.52); background: rgba(71, 105, 79, 0.1); }
.adapter.running, .adapter.prototype, .adapter.manual, .adapter.idle { border-color: rgba(217, 164, 65, 0.56); background: rgba(217, 164, 65, 0.1); }
.adapter.error, .adapter.blocked { border-color: rgba(169, 54, 54, 0.48); background: rgba(169, 54, 54, 0.09); }

.metric-strip { grid-area: metrics; display: grid; gap: 10px; }
.metric-strip article { display: grid; gap: 6px; padding: 18px; }
.metric-strip strong { font-size: clamp(27px, 3.8vw, 52px); line-height: 0.95; }

.brief-frame { grid-template-columns: minmax(360px, 0.92fr) minmax(360px, 1.08fr); grid-template-areas: "label label" "brief brain"; }
.brief-frame .stage-label { grid-area: label; }
.brief-core { grid-area: brief; }
.brain-core { grid-area: brain; }
#ingest, #graph, #brief, #proof, #outputs { scroll-margin-top: 96px; }
.evidence-frame {
  min-height: auto;
  align-content: start;
  align-items: start;
  grid-template-columns: minmax(260px, 0.42fr) minmax(560px, 1.58fr);
  grid-template-areas: "label ledger" "integrity ledger";
}
.evidence-frame .stage-label { grid-area: label; }
.integrity-core { grid-area: integrity; align-self: start; }
.ledger-core { grid-area: ledger; }
.output-frame {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-areas:
    "label label label label label label"
    "comments comments competitors competitors competitors competitors"
    "source source source news news news"
    "ideas ideas ideas ideas ideas ideas"
    "podcast podcast podcast podcast podcast podcast";
}
.output-frame .stage-label { grid-area: label; }
.comment-core { grid-area: comments; }
.competitor-core { grid-area: competitors; }
.source-core { grid-area: source; }
.news-core { grid-area: news; }
.idea-core { grid-area: ideas; }
.podcast-core { grid-area: podcast; }
.brief-core, .brain-core, .integrity-core, .contract-core, .workflow-scenario-core, .ledger-core, .comment-core, .competitor-core, .source-core, .news-core, .idea-core, .podcast-core {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 2.2vw, 28px);
}

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.panel-head strong { color: var(--steel); text-align: right; font-size: 13px; }
.decision-output, .integrity-output, .contract-output, .workflow-scenario-output, .brain-output, .comment-output, .list, .competitor-grid, .idea-list, .podcast-output { display: grid; gap: 12px; }
.decision-hero {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(90deg, rgba(71, 105, 79, 0.12), rgba(199, 67, 50, 0.09));
}
.decision-hero h3 { font-size: clamp(24px, 3vw, 44px); line-height: 1.06; }
.decision-grid, .decision-evidence, .integrity-grid, .brain-columns, .brain-evidence, .comment-theme-grid, .comment-sample-strip, .podcast-output {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.decision-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.decision-grid article, .decision-evidence article, .integrity-counts article, .integrity-grid article, .brain-read,
.brain-columns article, .brain-evidence article, .theme-card, .comment-sample-strip article, .signal-item, .competitor,
.idea, .podcast-block, .empty-state {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.74);
}
.decision-evidence ul, .integrity-grid ul, .brain-evidence ul, .theme-card ul, .podcast-block ul, .evidence-list { margin: 0; padding-left: 18px; }
.decision-evidence li, .integrity-grid li, .brain-evidence li, .theme-card li, .podcast-block li,
.source-excerpt, .transcript-excerpt, .competitor p, .idea p, .empty-state p, .brain-read p, .brain-read small,
.podcast-block p, .signal-item small, .competitor small, .idea small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.podcast-wide { grid-column: 1 / -1; }
.podcast-lead {
  border-color: var(--line-strong);
  background: linear-gradient(90deg, rgba(71, 105, 79, 0.12), rgba(217, 164, 65, 0.1)), rgba(255, 253, 247, 0.84);
}
.podcast-lead strong {
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.08;
}
.podcast-script pre {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

.podcast-block a {
  color: var(--ink);
  font-weight: 900;
  text-underline-offset: 4px;
}
.podcast-block li small {
  display: block;
  margin-top: 4px;
}
.segment-flow,
.gap-map-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.segment-flow section,
.gap-map-strip section {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.62);
}
.segment-flow span,
.gap-map-strip span,
.podcast-lead span {
  color: var(--moss);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.gap-map-strip strong {
  font-size: 14px;
  line-height: 1.2;
}
.segment-flow small,
.gap-map-strip small {
  color: var(--steel);
  font-size: 12px;
  line-height: 1.35;
}
.integrity-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.integrity-counts strong { font-size: 38px; }
.mode-row, .brain-meta, .pill-row, .keyword-row { display: flex; flex-wrap: wrap; gap: 7px; }
.mode-row span, .brain-meta span, .pill, .keyword-row span, .table-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  color: var(--steel);
  background: rgba(60, 102, 113, 0.08);
  font-size: 12px;
  font-weight: 850;
}
.pill.cyan { color: var(--steel); }
.pill.green { color: var(--moss); }
.route-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, rgba(71, 105, 79, 0.12), rgba(217, 164, 65, 0.08)),
    rgba(255, 253, 247, 0.82);
}
.route-summary span,
.route-summary small,
.route-dock-item span,
.route-dock-item small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}
.route-summary strong { display: block; margin-top: 4px; font-size: clamp(19px, 2vw, 30px); line-height: 1; }
.route-meter {
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(24, 23, 22, 0.08);
}
.route-meter span {
  display: block;
  width: var(--route-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--moss), var(--saffron), var(--tomato), var(--steel));
}
.proof-route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 247, 0.52);
}
.proof-route::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 25px;
  height: 2px;
  background: linear-gradient(90deg, var(--moss), var(--tomato), var(--steel), var(--ink));
  opacity: 0.22;
}
.proof-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  min-height: 184px;
  padding: 14px 13px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.92), rgba(255, 253, 247, 0.54)),
    rgba(255, 253, 247, 0.78);
}
.proof-card:last-child { border-right: 0; }
.proof-card.complete {
  background:
    linear-gradient(180deg, rgba(71, 105, 79, 0.15), rgba(255, 253, 247, 0.68)),
    rgba(255, 253, 247, 0.84);
}
.proof-card.limited {
  background:
    linear-gradient(180deg, rgba(217, 164, 65, 0.16), rgba(255, 253, 247, 0.66)),
    rgba(255, 253, 247, 0.84);
}
.proof-card.idle { opacity: 0.76; }
.proof-card.complete::after,
.proof-card.limited::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 10px;
  height: 3px;
  background: var(--moss);
}
.proof-card.limited::after { background: var(--saffron); }
.proof-card.idle::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 10px;
  height: 3px;
  background: rgba(24, 23, 22, 0.14);
}
.proof-step {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  font-size: 12px;
  font-weight: 950;
}
.proof-card span,
.proof-mini span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}
.proof-card a,
.proof-card strong,
.signal-item a,
.competitor a,
.theme-card a {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.22;
  text-underline-offset: 4px;
}
.proof-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.proof-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}
.proof-tags em {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid var(--line);
  color: var(--steel);
  background: rgba(60, 102, 113, 0.08);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.proof-card.competitor .proof-step,
.proof-card.signals .proof-step {
  background: var(--tomato);
}
.proof-card.brief .proof-step,
.proof-card.output .proof-step {
  background: var(--moss);
}
.route-dock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.58);
}
.route-dock-item {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 12px;
  border-right: 1px solid var(--line);
  color: inherit;
  background: rgba(255, 253, 247, 0.42);
  text-decoration: none;
}
.route-dock-item:last-child { border-right: 0; }
.route-dock-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.route-dock-item small {
  color: var(--steel);
  text-transform: none;
}
.history-drawer {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}
.history-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 0;
  border-top: 1px solid var(--line);
}
.history-title span,
.history-item span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.history-title strong,
.history-clear {
  color: var(--steel);
  font-size: 12px;
  text-transform: uppercase;
}
.history-clear {
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.52);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}
.history-clear:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
.history-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.48);
}
.history-item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 10px;
  align-content: start;
  padding: 12px;
  border-right: 1px solid var(--line);
}
.history-item:last-child { border-right: 0; }
.history-item strong {
  justify-self: end;
  font-size: 18px;
  line-height: 1;
}
.history-item p,
.history-item small {
  grid-column: 1 / -1;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.history-item p { color: var(--steel); font-weight: 850; }
.history-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-item.live { box-shadow: inset 4px 0 0 rgba(71, 105, 79, 0.64); }
.history-item.fixture { box-shadow: inset 4px 0 0 rgba(199, 67, 50, 0.58); }
.history-item.empty {
  opacity: 0.74;
  box-shadow: inset 4px 0 0 rgba(24, 23, 22, 0.16);
}
.proof-export,
.safe-claim-export {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}
.proof-export.is-copied .export-row,
.proof-export.is-fallback .export-row,
.proof-export.is-downloaded .export-row,
.safe-claim-export.is-copied .export-row,
.safe-claim-export.is-fallback .export-row,
.safe-claim-export.is-downloaded .export-row {
  animation: exportPulse 900ms ease-out;
}

.safe-claim-export .export-row {
  background: rgba(71, 105, 79, 0.08);
}

.safe-claim-export .export-button {
  border-color: var(--steel);
  background: var(--steel);
}

.safe-claim-export .export-button.secondary {
  color: var(--steel);
  background: transparent;
}

.source-approval-checklist {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.approval-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.approval-counts article,
.approval-meta,
.approval-list article {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.54);
}

.approval-counts span,
.approval-meta span,
.approval-list span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.approval-counts strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  line-height: 1;
}

.approval-meta {
  display: grid;
  gap: 5px;
}

.approval-meta strong,
.approval-list strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.approval-meta p,
.approval-list p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.approval-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.approval-list article {
  display: grid;
  gap: 7px;
}

.approval-list article.fixture {
  box-shadow: inset 4px 0 0 rgba(199, 143, 50, 0.65);
}

.approval-list article.approved-public-source {
  box-shadow: inset 4px 0 0 rgba(71, 105, 79, 0.68);
}

.approval-list article.not-publishable {
  box-shadow: inset 4px 0 0 rgba(199, 67, 50, 0.64);
}
.export-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.export-title span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.export-title strong {
  color: var(--steel);
  font-size: 12px;
  text-transform: uppercase;
}
.export-row {
  display: grid;
  grid-template-columns: max-content max-content max-content minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.5);
}
.export-button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}
.export-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
.export-button.secondary {
  color: var(--ink);
  background: transparent;
}
.export-row small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.export-filename {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-top: 0;
  background: rgba(255, 253, 247, 0.38);
}
.export-filename span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.export-filename code {
  min-width: 0;
  overflow: hidden;
  color: var(--steel);
  font: 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.export-fallback {
  display: none;
  max-height: 180px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  color: var(--steel);
  background: rgba(255, 253, 247, 0.72);
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}
.export-fallback.is-visible {
  display: block;
}

@keyframes exportPulse {
  0% { box-shadow: inset 0 0 0 0 rgba(71, 105, 79, 0); }
  28% { box-shadow: inset 0 0 0 2px rgba(71, 105, 79, 0.28); }
  100% { box-shadow: inset 0 0 0 0 rgba(71, 105, 79, 0); }
}

@media (min-width: 1351px) {
  .integrity-core {
    position: sticky;
    top: 100px;
  }
}

@media (min-width: 761px) {
  .route-summary {
    position: sticky;
    top: 92px;
    z-index: 3;
    backdrop-filter: blur(16px);
  }
}
.competitor-grid.video-ranking, .competitor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.video-card { position: relative; padding-left: 58px; }
.rank-badge, .idea-score {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--tomato);
  font-weight: 950;
}
.rank-badge { position: absolute; top: 16px; left: 16px; }
.idea { grid-template-columns: 42px minmax(0, 1fr); }

.system-footer {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.system-footer article { display: grid; gap: 8px; padding: 18px; }

@media (max-width: 1180px) {
  .command-shell,
  .proof-dock,
  .source-ledger,
  .system-footer {
    grid-template-columns: 1fr;
  }

  .hero-frame, .ingest-frame, .graph-frame, .brief-frame, .evidence-frame, .output-frame {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }
  .film-frame > * { grid-area: auto !important; min-width: 0; }
  .mission-hud { justify-self: start; width: min(420px, 100%); }
  .signal-orbit, .adapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .segment-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-route::before { display: none; }
  .route-summary { grid-template-columns: 1fr; }
  .route-dock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-dock-item:nth-child(2) { border-right: 0; }
  .route-dock-item:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 1350px) {
  .evidence-frame {
    grid-template-columns: 1fr;
    grid-template-areas: "label" "ledger" "integrity";
  }
}

@media (max-width: 760px) {
  .flight-deck {
    position: absolute;
    grid-template-columns: 1fr;
  }
  .deck-nav { display: none; }
  .film-frame {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    min-width: 0;
    min-height: auto;
    padding-top: 164px;
  }
  .film-frame > *, .hero-type, .command-console, .trace-rail, .signal-orbit, .adapter-grid, .metric-strip,
  .brief-core, .brain-core, .integrity-core, .contract-core, .ledger-core, .comment-core, .competitor-core, .source-core,
  .news-core, .idea-core, .podcast-core {
    min-width: 0;
    max-width: 100%;
    grid-area: auto !important;
  }
  .hero-type h1 { max-width: 100%; font-size: 43px; overflow-wrap: anywhere; }
  .mission-hud { min-height: 260px; width: 100%; }
  .demo-mode { grid-template-columns: 1fr; }
  .control-pair, .signal-orbit, .adapter-grid, .metric-strip, .decision-grid, .decision-evidence,
  .integrity-counts, .integrity-grid, .brain-columns, .brain-evidence, .comment-theme-grid,
  .comment-sample-strip, .competitor-grid.video-ranking, .competitor-grid, .podcast-output, .system-footer,
  .segment-flow, .proof-route, .route-dock, .history-strip, .contract-meter {
    grid-template-columns: 1fr;
  }
  .history-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .history-item:last-child { border-bottom: 0; }
  .export-row { grid-template-columns: 1fr; }
  .export-button { width: 100%; }
  .export-filename { grid-template-columns: 1fr; }
  .proof-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-card:last-child { border-bottom: 0; }
  .route-dock-item,
  .route-dock-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .route-dock-item:last-child { border-bottom: 0; }
  .trace-rail { border-left: 0; border-top: 3px solid var(--tomato); }
  .video-card { padding-left: 16px; padding-top: 56px; }
}

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

/* CEO rebuild surface: retired warm-paper body gradient removed in the
   liquid-glass reskin — the void base at the top of this file is canonical. */

.flight-deck {
  border-radius: 0;
  backdrop-filter: blur(18px);
}

.mission-control {
  min-height: 100vh;
  padding: 92px 14px 30px;
}

.product-cockpit {
  width: min(1760px, 100%);
  min-height: calc(100vh - 122px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(620px, 1.28fr);
  gap: 12px;
  align-items: stretch;
}

.cockpit-intake,
.cockpit-panel {
  min-width: 0;
  border: 1px solid rgba(232, 226, 212, 0.28);
  background:
    linear-gradient(135deg, rgba(15, 17, 17, 0.96), rgba(34, 39, 36, 0.94) 52%, rgba(36, 29, 34, 0.95)),
    #111312;
  color: #f7f2e7;
  box-shadow: 0 24px 90px rgba(14, 16, 16, 0.26);
}

.cockpit-intake {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(18px, 2.6vw, 30px);
}

.cockpit-title {
  display: grid;
  gap: 12px;
}

.cockpit-title h1 {
  max-width: 8.5ch;
  font-size: clamp(46px, 5.6vw, 92px);
  line-height: 0.9;
}

.cockpit-title p:not(.kicker) {
  max-width: 44ch;
  color: rgba(247, 242, 231, 0.72);
  font-size: 14px;
  line-height: 1.55;
}

.cockpit-fields {
  display: grid;
  gap: 10px;
}

.cockpit-fields label {
  display: grid;
  gap: 7px;
}

.cockpit-fields span,
.cockpit-status span,
.cockpit-metric span,
.cockpit-evidence span,
.cockpit-next span,
.cockpit-competitor span,
.cockpit-comparison span,
.cockpit-workspace span,
.cockpit-quality-stack span,
.cockpit-angle-lab span {
  color: rgba(247, 242, 231, 0.58);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
}

.cockpit-fields input,
.cockpit-fields textarea {
  width: 100%;
  border: 1px solid rgba(247, 242, 231, 0.18);
  background: rgba(247, 242, 231, 0.08);
  color: #f7f2e7;
  outline: none;
  padding: 12px;
}

.cockpit-fields textarea {
  resize: vertical;
  min-height: 108px;
}

.cockpit-fields input:focus,
.cockpit-fields textarea:focus {
  border-color: rgba(217, 164, 65, 0.72);
  box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.16);
}

.cockpit-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cockpit-actions button {
  min-height: 42px;
  border: 1px solid rgba(247, 242, 231, 0.18);
  background: rgba(247, 242, 231, 0.08);
  color: #f7f2e7;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.cockpit-actions button:nth-child(2) {
  border-color: rgba(217, 164, 65, 0.62);
  background: #d9a441;
  color: #181716;
}

.cockpit-actions button:hover {
  transform: translateY(-1px);
}

.cockpit-status {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(247, 242, 231, 0.14);
  background: rgba(247, 242, 231, 0.07);
}

.cockpit-status strong {
  color: #f7f2e7;
  font-size: 15px;
}

.cockpit-status p {
  color: rgba(247, 242, 231, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.cockpit-output {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cockpit-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(244, 241, 232, 0.88)),
    #fffdf7;
  color: var(--ink);
}

.cockpit-panel .panel-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.cockpit-panel .panel-head span {
  color: var(--steel);
}

.cockpit-panel .panel-head strong {
  color: var(--ink);
}

.cockpit-wide {
  grid-column: span 2;
}

.cockpit-score {
  border-top: 4px solid var(--tomato);
}

.cockpit-decision-hero {
  display: grid;
  gap: 10px;
}

.cockpit-decision-hero h2 {
  font-size: clamp(24px, 2.4vw, 42px);
  line-height: 0.98;
}

.cockpit-decision-hero p,
.cockpit-brief p,
.cockpit-evidence p,
.cockpit-next p,
.cockpit-competitor p,
.cockpit-comparison p,
.cockpit-workspace p,
.cockpit-quality-stack p,
.cockpit-angle-lab em {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.cockpit-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cockpit-metric,
.cockpit-evidence article,
.cockpit-competitor,
.cockpit-comparison article,
.cockpit-workspace article,
.cockpit-quality-stack article,
.cockpit-next article,
.cockpit-brief article {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.64);
  padding: 10px;
}

.cockpit-metric strong {
  font-size: 24px;
  line-height: 1;
}

.cockpit-evidence,
.cockpit-competitors,
.cockpit-comparison,
.cockpit-workspace,
.cockpit-quality-stack,
.cockpit-angle-lab,
.cockpit-next,
.cockpit-brief {
  display: grid;
  gap: 8px;
}

.cockpit-evidence strong,
.cockpit-competitor strong,
.cockpit-comparison strong,
.cockpit-workspace strong,
.cockpit-quality-stack strong,
.cockpit-angle-lab strong,
.cockpit-next strong,
.cockpit-brief strong {
  font-size: 14px;
  line-height: 1.25;
}

.cockpit-competitor {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.cockpit-competitor meter {
  width: 84px;
  height: 12px;
  accent-color: var(--moss);
}

.cockpit-comparison {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cockpit-comparison article {
  align-content: start;
}

.cockpit-comparison article > div {
  display: grid;
  gap: 5px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

.cockpit-comparison b {
  color: var(--ink);
}

.cockpit-workspace-summary {
  border-color: rgba(31, 76, 110, 0.22);
  background: rgba(236, 246, 246, 0.66);
}

.cockpit-workspace-row {
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1fr);
  align-items: start;
}

.cockpit-workspace-row.muted {
  opacity: 0.72;
}

.cockpit-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.cockpit-mode-grid button {
  min-height: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.78);
  color: var(--ink);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.15;
  text-transform: uppercase;
}

.cockpit-mode-grid button.active {
  border-color: rgba(31, 76, 110, 0.44);
  background: rgba(31, 76, 110, 0.12);
  box-shadow: inset 0 -3px 0 rgba(31, 76, 110, 0.34);
}

.cockpit-quality {
  border-top: 4px solid var(--moss);
}

.cockpit-quality-hero {
  border-color: rgba(55, 107, 68, 0.28);
  background:
    linear-gradient(135deg, rgba(32, 70, 48, 0.12), rgba(217, 164, 65, 0.1)),
    rgba(255, 253, 247, 0.76);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.cockpit-quality-hero strong {
  font-size: 34px;
  line-height: 1;
}

.cockpit-quality-hero meter {
  width: 92px;
  height: 16px;
  accent-color: var(--moss);
}

.cockpit-quality-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cockpit-quality-grid article {
  padding: 9px;
  background: rgba(255, 253, 247, 0.7);
}

.cockpit-quality-grid article.strong {
  border-color: rgba(55, 107, 68, 0.32);
  background: rgba(55, 107, 68, 0.08);
}

.cockpit-quality-grid article.needs-work {
  border-color: rgba(199, 67, 50, 0.28);
  background: rgba(199, 67, 50, 0.07);
}

.cockpit-quality-grid strong {
  font-size: 20px;
}

.cockpit-quality-next {
  border-color: rgba(31, 76, 110, 0.22);
  background: rgba(236, 246, 246, 0.62);
}

.cockpit-angle-options {
  display: grid;
  gap: 8px;
}

.cockpit-angle-options button,
.cockpit-angle-apply {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.72);
  color: var(--ink);
  display: grid;
  gap: 6px;
  padding: 10px;
  text-align: left;
}

.cockpit-angle-options button.active {
  border-color: rgba(217, 164, 65, 0.78);
  background: rgba(217, 164, 65, 0.16);
  box-shadow: inset 3px 0 0 #d9a441;
}

.cockpit-angle-options button:hover,
.cockpit-angle-apply:hover {
  transform: translateY(-1px);
}

.cockpit-angle-lab em {
  font-style: normal;
}

.cockpit-angle-tune {
  display: grid;
  gap: 7px;
}

.cockpit-angle-tune textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.78);
  color: var(--ink);
  padding: 10px;
  line-height: 1.4;
}

.cockpit-angle-apply {
  justify-content: center;
  text-align: center;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.cockpit-brief ul,
.cockpit-next ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.cockpit-gate {
  border-color: rgba(199, 67, 50, 0.38);
  background: rgba(199, 67, 50, 0.07);
}

.verification-drawer {
  width: min(1760px, 100%);
  margin: 12px auto 0;
  border: 1px solid rgba(31, 76, 110, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.84), rgba(236, 246, 246, 0.72)),
    rgba(255, 253, 247, 0.76);
  box-shadow: 0 24px 80px rgba(24, 23, 22, 0.1);
  backdrop-filter: blur(20px);
}

.verification-drawer > summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(280px, 0.72fr);
  gap: 8px 18px;
  align-items: center;
  padding: 16px 18px;
}

.verification-drawer > summary::-webkit-details-marker {
  display: none;
}

.verification-drawer > summary span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verification-drawer > summary strong {
  color: var(--ink);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.1;
}

.verification-drawer > summary em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.verification-drawer[open] > summary {
  border-bottom: 1px solid rgba(31, 76, 110, 0.14);
}

.verification-drawer-body {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.verification-drawer .command-shell,
.verification-drawer .proof-dock,
.verification-drawer .source-ledger,
.verification-drawer .system-footer {
  width: 100%;
  margin: 0;
}

.command-shell {
  width: min(1760px, 100%);
  min-height: auto;
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(460px, 0.95fr) minmax(520px, 1.18fr);
  gap: 12px;
  align-items: stretch;
}

.source-bay,
.signal-stage,
.compiler-panel,
.proof-dock > article,
.source-ledger > article,
.system-footer article {
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 247, 0.76);
  box-shadow: 0 22px 70px rgba(24, 23, 22, 0.1);
  backdrop-filter: blur(18px);
}

.source-bay,
.compiler-panel {
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
}

.deck-title {
  display: grid;
  gap: 10px;
  padding: 4px 2px 8px;
}

.deck-title h1 {
  max-width: 10.5ch;
  font-size: clamp(38px, 4.4vw, 74px);
  line-height: 0.88;
  letter-spacing: 0;
}

.deck-title p:not(.kicker) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.source-bay .command-console {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.source-bay .control-line input,
.source-bay .control-line select,
.source-bay .control-line textarea {
  background: rgba(255, 253, 247, 0.64);
}

.research-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.research-presets button {
  min-height: 32px;
  flex: 1 1 130px;
  border: 1px solid rgba(61, 91, 101, 0.22);
  background: rgba(255, 253, 247, 0.62);
  color: var(--steel);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.research-presets button:hover {
  border-color: rgba(61, 91, 101, 0.44);
  background: rgba(61, 91, 101, 0.08);
}

.source-input-quality {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(61, 91, 101, 0.22);
  background: rgba(255, 253, 247, 0.5);
}

.source-input-quality.needs-review {
  border-style: dashed;
}

.source-input-quality.is-ready {
  border-color: rgba(70, 118, 94, 0.42);
  background: rgba(70, 118, 94, 0.08);
}

.quality-head,
.quality-pills {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.quality-head {
  align-items: center;
  justify-content: space-between;
}

.quality-head span,
.quality-pills span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.quality-head strong {
  color: var(--steel);
  font-size: 11px;
  text-transform: uppercase;
}

.quality-pills {
  flex-wrap: wrap;
}

.quality-pills article {
  flex: 1 1 118px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.62);
}

.quality-pills article.ok {
  border-color: rgba(70, 118, 94, 0.34);
}

.quality-pills article.gated,
.quality-pills article.fixture {
  border-color: rgba(178, 118, 65, 0.42);
}

.quality-pills article.limited {
  border-color: rgba(217, 164, 65, 0.42);
}

.quality-pills strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
}

.quality-pills p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.source-normalization-preview {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(61, 91, 101, 0.22);
  background: rgba(255, 253, 247, 0.46);
}

.source-normalization-preview.needs-cleanup {
  border-style: dashed;
}

.source-normalization-preview.is-ready {
  border-color: rgba(70, 118, 94, 0.38);
}

.normalization-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.normalization-head span,
.normalization-list span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.normalization-head strong {
  color: var(--steel);
  font-size: 11px;
  text-transform: uppercase;
}

.normalization-list {
  display: grid;
  gap: 6px;
}

.normalization-list article {
  display: grid;
  grid-template-columns: 72px minmax(0, 0.75fr) minmax(0, 1.2fr);
  gap: 8px;
  align-items: start;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.58);
}

.normalization-list article.specific {
  border-color: rgba(70, 118, 94, 0.34);
}

.normalization-list article.manual {
  border-color: rgba(217, 164, 65, 0.38);
}

.normalization-list article.weak,
.normalization-list article.gated {
  border-color: rgba(178, 118, 65, 0.42);
}

.normalization-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
}

.normalization-list p,
.normalization-list small,
.normalization-foot {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.normalization-list small {
  overflow-wrap: anywhere;
}

.run-readiness-summary {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(61, 91, 101, 0.22);
  background: rgba(255, 253, 247, 0.5);
}

.run-readiness-summary.needs-cleanup {
  border-style: dashed;
}

.run-readiness-summary.is-local-ready {
  border-color: rgba(70, 118, 94, 0.42);
  background: rgba(70, 118, 94, 0.08);
}

.readiness-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.readiness-head span,
.readiness-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.readiness-head strong {
  color: var(--steel);
  font-size: 11px;
  text-transform: uppercase;
}

.readiness-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.readiness-grid article {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.6);
}

.readiness-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 12px;
}

.readiness-grid p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.operator-fixes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.operator-fixes article {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(24, 23, 22, 0.12);
  background: rgba(255, 253, 247, 0.42);
}

.operator-fixes span {
  display: block;
  color: var(--steel);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.operator-fixes ul {
  display: grid;
  gap: 4px;
  margin: 6px 0 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.source-fix-apply {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(70, 118, 94, 0.25);
  background: rgba(70, 118, 94, 0.07);
}

.source-fix-apply-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.source-fix-apply-row span {
  color: var(--steel);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.source-fix-apply-row strong {
  margin-right: auto;
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
}

.source-fix-apply-row button {
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(61, 91, 101, 0.28);
  background: rgba(255, 253, 247, 0.82);
  color: var(--steel);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.source-fix-apply-text {
  display: none;
  max-height: 180px;
  overflow: auto;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.74);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.38;
  white-space: pre-wrap;
}

.source-fix-apply-text.is-visible,
.run-readiness-summary.is-fallback .source-fix-apply-text {
  display: block;
}

.source-fix-import {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: start;
}

.source-fix-import textarea {
  width: 100%;
  min-width: 0;
  resize: vertical;
  padding: 7px;
  border: 1px solid rgba(61, 91, 101, 0.22);
  background: rgba(255, 253, 247, 0.76);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  line-height: 1.35;
}

.source-fix-import button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(61, 91, 101, 0.28);
  background: var(--steel);
  color: #fffdf7;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.source-fix-import-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.source-fix-import-history {
  display: grid;
  gap: 5px;
  padding-top: 2px;
}

.source-fix-import-history > span {
  color: var(--steel);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.source-fix-import-history ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-fix-import-history li {
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid rgba(61, 91, 101, 0.18);
  background: rgba(255, 253, 247, 0.52);
}

.source-fix-import-history strong {
  color: var(--ink);
  font-size: 11px;
}

.source-fix-import-history span,
.source-fix-import-history small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.32;
}

.source-health {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-health article {
  padding: 12px;
  background: rgba(255, 253, 247, 0.58);
}

.source-health strong {
  font-size: 24px;
}

.signal-stage {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 12px;
  overflow: hidden;
  padding: 14px;
}

.signal-stage::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 1px solid rgba(24, 23, 22, 0.08);
  background:
    radial-gradient(circle at 26% 38%, rgba(71, 105, 79, 0.16), transparent 22rem),
    radial-gradient(circle at 76% 54%, rgba(199, 67, 50, 0.12), transparent 20rem),
    rgba(255, 253, 247, 0.38);
}

.map-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 8px 0;
}

.map-header h2 {
  font-size: clamp(30px, 3.4vw, 58px);
  line-height: 0.95;
}

.map-header > strong {
  min-width: max-content;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  background: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
}

.map-fallback {
  min-height: 164px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  align-items: end;
  padding: 24px 18px 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(71, 105, 79, 0.08), rgba(199, 67, 50, 0.07), rgba(60, 102, 113, 0.08)),
    rgba(255, 253, 247, 0.52);
}

.map-fallback span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 68px;
  border-right: 1px solid rgba(24, 23, 22, 0.12);
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.map-fallback span::before {
  content: "";
  width: 26px;
  height: 26px;
  margin-bottom: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(24, 23, 22, 0.12);
}

.map-fallback.has-run span::before {
  background: var(--moss);
  box-shadow: 0 0 0 8px rgba(71, 105, 79, 0.1);
}

.map-fallback span:nth-child(2)::before { background: rgba(199, 67, 50, 0.7); }
.map-fallback span:nth-child(3)::before { background: rgba(60, 102, 113, 0.68); }
.map-fallback span:nth-child(4)::before { background: rgba(217, 164, 65, 0.72); }
.map-fallback span:nth-child(5)::before { background: rgba(111, 91, 123, 0.7); }
.map-fallback span:nth-child(6)::before { background: rgba(24, 23, 22, 0.78); }
.map-fallback span:last-child { border-right: 0; }

.workflow-spine {
  display: grid;
  gap: 8px;
}

.workflow-mission {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.58);
}

.workflow-mission span,
.workflow-mission small,
.workflow-card span,
.workflow-card small,
.compiler-status span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.25;
  text-transform: uppercase;
}

.workflow-mission strong {
  color: var(--steel);
  font-size: 13px;
  text-align: center;
  text-transform: uppercase;
}

.workflow-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.workflow-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 132px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.56);
}

.workflow-card strong {
  font-size: 24px;
  line-height: 0.92;
}

.workflow-card p {
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.workflow-card.complete {
  border-color: rgba(71, 105, 79, 0.48);
  box-shadow: inset 0 -4px 0 rgba(71, 105, 79, 0.5);
}

.workflow-card.running {
  border-color: rgba(217, 164, 65, 0.58);
  box-shadow: inset 0 -4px 0 rgba(217, 164, 65, 0.58);
}

.workflow-card.limited {
  border-color: rgba(199, 67, 50, 0.42);
  box-shadow: inset 0 -4px 0 rgba(199, 67, 50, 0.42);
}

.signal-stage .ledger-core,
.signal-stage .trace-rail {
  min-height: 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.66);
  box-shadow: none;
}

.signal-stage .evidence-ledger {
  max-height: 43vh;
  overflow: auto;
  padding-right: 2px;
}

.signal-stage .trace-rail {
  border-left: 1px solid var(--line);
  border-top: 3px solid var(--tomato);
}

.signal-stage .operation-log {
  max-height: 170px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signal-stage .log-step {
  padding: 10px;
}

.compiler-status {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(24, 23, 22, 0.04);
}

.compiler-status strong {
  color: var(--steel);
  font-size: 13px;
  text-transform: uppercase;
}

.compiler-panel .brief-core,
.compiler-panel .podcast-core,
.compiler-panel .brain-core {
  padding: 14px;
  box-shadow: none;
  background: rgba(255, 253, 247, 0.62);
}

.compiler-panel .decision-grid,
.compiler-panel .decision-evidence,
.compiler-panel .podcast-output,
.compiler-panel .brain-columns,
.compiler-panel .brain-evidence {
  grid-template-columns: 1fr;
}

@media (min-width: 1320px) {
  .compiler-panel .podcast-output {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compiler-panel .podcast-wide,
  .compiler-panel .podcast-lead,
  .compiler-panel .gap-map-strip {
    grid-column: 1 / -1;
  }

  .compiler-panel .gap-map-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1520px) {
  .workflow-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workflow-card {
    min-height: 116px;
  }

  .workflow-card strong {
    font-size: 20px;
  }
}

.compiler-panel .decision-hero {
  padding: 14px;
}

.compiler-panel .decision-hero h3,
.compiler-panel .podcast-lead strong {
  font-size: 22px;
}

.compiler-panel .segment-flow,
.compiler-panel .gap-map-strip {
  grid-template-columns: 1fr;
}

.compiler-panel .podcast-block {
  padding: 12px;
}

.proof-dock,
.source-ledger,
.system-footer {
  width: min(1760px, 100%);
  margin: 12px auto 0;
  display: grid;
  gap: 12px;
}

.proof-dock {
  grid-template-columns: minmax(300px, 0.9fr) minmax(340px, 1fr) minmax(380px, 1.1fr) minmax(300px, 0.8fr);
}

.proof-dock > article,
.source-ledger > article {
  min-width: 0;
  padding: 14px;
}

.adapter-core .adapter-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.proof-tools {
  display: grid;
  align-content: start;
  gap: 12px;
}

.contract-meter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.contract-meter article,
.contract-route {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.58);
}

.contract-meter span,
.contract-route span,
.contract-dimensions span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.contract-meter strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.contract-route {
  display: grid;
  gap: 7px;
}

.contract-route strong {
  font-size: 15px;
}

.contract-route p,
.contract-limits {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.contract-dimensions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.contract-dimensions span {
  padding: 7px 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(71, 105, 79, 0.1);
}

.contract-limits {
  margin: 0;
  padding-left: 17px;
}

.workflow-scenario-route,
.workflow-scenario-gate,
.workflow-scenario-evidence article,
.workflow-scenario-brief article {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.58);
}

.workflow-scenario-route,
.workflow-scenario-gate {
  display: grid;
  gap: 7px;
}

.workflow-scenario-route span,
.workflow-scenario-evidence span,
.workflow-scenario-brief span,
.workflow-scenario-gate span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.workflow-scenario-route strong,
.workflow-scenario-gate strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.workflow-scenario-route small,
.workflow-scenario-evidence small,
.workflow-scenario-gate em,
.workflow-scenario-gate p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.workflow-scenario-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.workflow-scenario-evidence article {
  display: grid;
  gap: 6px;
}

.workflow-scenario-evidence strong {
  font-size: 13px;
  line-height: 1.2;
}

.workflow-scenario-evidence p,
.workflow-scenario-brief p,
.workflow-scenario-brief li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.workflow-scenario-brief {
  display: grid;
  gap: 8px;
}

.workflow-scenario-brief ol,
.workflow-scenario-brief ul {
  margin: 8px 0 0;
  padding-left: 17px;
}

.source-ledger {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-areas:
    "source source competitors competitors claim claim"
    "queue queue queue comments comments comments"
    "news news news ideas ideas ideas";
}

.source-ledger .source-core { grid-area: source; }
.source-ledger .competitor-core { grid-area: competitors; }
.source-ledger .claim-risk-core { grid-area: claim; }
.source-ledger .queue-core { grid-area: queue; }
.source-ledger .comment-core { grid-area: comments; }
.source-ledger .news-core { grid-area: news; }
.source-ledger .idea-core { grid-area: ideas; }

.source-ledger .list,
.source-ledger .competitor-grid,
.source-ledger .claim-risk-output,
.source-ledger .operator-queue,
.source-ledger .comment-output,
.source-ledger .idea-list {
  max-height: 520px;
  overflow: auto;
}

.claim-risk-output {
  display: grid;
  gap: 10px;
}

.operator-queue {
  display: grid;
  gap: 8px;
}

.queue-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.queue-filter button {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.7);
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.queue-filter button[aria-pressed="true"] {
  border-color: rgba(61, 91, 101, 0.42);
  color: var(--steel);
  background: rgba(61, 91, 101, 0.1);
}

.queue-handoff {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
  padding: 8px;
  border: 1px dashed rgba(61, 91, 101, 0.24);
  background: rgba(255, 253, 247, 0.5);
}

.queue-handoff.is-copied,
.queue-handoff.is-downloaded {
  border-color: rgba(70, 118, 94, 0.5);
  background: rgba(70, 118, 94, 0.08);
}

.queue-handoff.is-fallback {
  border-color: rgba(178, 118, 65, 0.45);
}

.queue-handoff-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.queue-handoff-row span,
.queue-handoff-file span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.queue-handoff-row strong {
  margin-right: auto;
  color: var(--steel);
  font-size: 11px;
  text-transform: uppercase;
}

.queue-handoff-row button {
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.82);
  color: var(--ink);
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.queue-handoff-row button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.queue-snapshot-label {
  display: grid;
  gap: 4px;
}

.queue-snapshot-label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.queue-snapshot-label input {
  min-height: 30px;
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.82);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  padding: 5px 8px;
}

.reviewer-export-badge {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 8px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid rgba(61, 91, 101, 0.2);
  background: rgba(61, 91, 101, 0.07);
}

.reviewer-export-badge span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.reviewer-export-badge strong {
  min-width: 0;
  color: var(--ink);
  font-size: 11px;
}

.reviewer-export-badge small,
.reviewer-export-badge em {
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.3;
}

.reviewer-export-badge em {
  grid-column: 1 / -1;
  overflow-wrap: anywhere;
}

.reviewer-export-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.reviewer-export-actions small {
  flex: 1 1 180px;
}

.reviewer-export-actions button {
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid rgba(61, 91, 101, 0.24);
  background: rgba(255, 253, 247, 0.82);
  color: var(--ink);
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.reviewer-export-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.queue-verifier-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 8px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid rgba(70, 118, 94, 0.22);
  background: rgba(70, 118, 94, 0.07);
}

.queue-verifier-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.queue-verifier-summary strong {
  min-width: 0;
  color: var(--steel);
  font-size: 11px;
}

.queue-verifier-summary small,
.queue-verifier-summary em {
  grid-column: 1 / -1;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.queue-qa-footer-readout {
  display: grid;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid rgba(70, 118, 94, 0.26);
  background: rgba(70, 118, 94, 0.08);
}

.queue-qa-footer-readout.warn {
  border-color: rgba(174, 91, 68, 0.36);
  background: rgba(174, 91, 68, 0.08);
}

.queue-qa-footer-readout > div {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.queue-qa-footer-readout span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.queue-qa-footer-readout strong {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--steel);
  font-size: 11px;
}

.queue-qa-footer-readout ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.queue-qa-footer-readout li {
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid rgba(61, 91, 101, 0.14);
  background: rgba(255, 253, 247, 0.62);
}

.queue-qa-footer-readout li span,
.queue-qa-footer-readout li strong {
  display: block;
}

.queue-qa-footer-readout li strong {
  overflow-wrap: anywhere;
}

.queue-qa-footer-readout small,
.queue-qa-footer-readout em {
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.queue-failure-drill {
  display: grid;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid rgba(61, 91, 101, 0.2);
  background: rgba(255, 253, 247, 0.72);
}

.queue-failure-drill.warn {
  border-color: rgba(174, 91, 68, 0.36);
  background: rgba(174, 91, 68, 0.08);
}

.queue-failure-drill > div {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.queue-failure-drill span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.queue-failure-drill strong {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--steel);
  font-size: 11px;
}

.queue-failure-drill ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.queue-failure-drill li {
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid rgba(61, 91, 101, 0.14);
  background: rgba(255, 253, 247, 0.62);
}

.queue-failure-drill li.is-pass {
  border-color: rgba(70, 118, 94, 0.26);
  background: rgba(70, 118, 94, 0.08);
}

.queue-failure-drill li.is-fail {
  border-color: rgba(174, 91, 68, 0.34);
  background: rgba(174, 91, 68, 0.08);
}

.queue-failure-drill li span,
.queue-failure-drill li strong {
  display: block;
}

.queue-failure-drill li strong {
  overflow-wrap: anywhere;
}

.queue-failure-drill small,
.queue-failure-drill em {
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.reviewer-drill-export {
  display: grid;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid rgba(70, 118, 94, 0.22);
  background: rgba(70, 118, 94, 0.07);
}

.reviewer-drill-export.warn {
  border-color: rgba(174, 91, 68, 0.36);
  background: rgba(174, 91, 68, 0.08);
}

.reviewer-drill-export > div {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.reviewer-drill-export span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.reviewer-drill-export strong {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--steel);
  font-size: 11px;
}

.reviewer-drill-export p {
  margin: 0;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.reviewer-drill-export small,
.reviewer-drill-export em,
.reviewer-drill-export code {
  min-width: 0;
  color: var(--muted);
  font-family: inherit;
  font-size: 10px;
  font-style: normal;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.queue-copy-compare {
  display: grid;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid rgba(61, 91, 101, 0.18);
  background: rgba(255, 253, 247, 0.72);
}

.queue-copy-compare.match {
  border-color: rgba(70, 118, 94, 0.34);
  background: rgba(70, 118, 94, 0.08);
}

.queue-copy-compare.mismatch,
.queue-copy-compare.missing {
  border-color: rgba(174, 91, 68, 0.34);
  background: rgba(174, 91, 68, 0.08);
}

.queue-copy-compare > div {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.queue-copy-compare span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.queue-copy-compare strong {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--steel);
  font-size: 11px;
}

.queue-copy-compare button {
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid rgba(61, 91, 101, 0.24);
  background: rgba(255, 253, 247, 0.86);
  color: var(--ink);
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.queue-copy-compare textarea {
  width: 100%;
  min-height: 58px;
  resize: vertical;
  border: 1px solid rgba(61, 91, 101, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 10px;
  line-height: 1.35;
}

.queue-copy-compare small,
.queue-copy-compare em {
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.queue-compare-history {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 3px 7px;
  align-items: center;
  padding-top: 5px;
  border-top: 1px solid rgba(61, 91, 101, 0.14);
}

.queue-compare-history small,
.queue-compare-history em {
  grid-column: 1 / -1;
}

.queue-handoff-file {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
}

.queue-handoff-file code {
  overflow-wrap: anywhere;
}

.queue-handoff-text {
  display: none;
  max-height: 180px;
  overflow: auto;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.74);
  color: var(--ink);
  white-space: pre-wrap;
  font-size: 11px;
  line-height: 1.5;
}

.queue-handoff-text.is-visible {
  display: block;
}

.evidence-priority-filter {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(61, 91, 101, 0.2);
  background: rgba(255, 253, 247, 0.72);
}

.evidence-priority-filter > div {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.evidence-priority-filter span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.evidence-priority-filter strong {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--steel);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.evidence-priority-filter ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.evidence-priority-filter li {
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid rgba(61, 91, 101, 0.14);
  background: rgba(255, 253, 247, 0.62);
}

.evidence-priority-filter li span,
.evidence-priority-filter li strong {
  display: block;
}

.evidence-priority-filter small,
.evidence-priority-filter em {
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.queue-item {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) minmax(0, 1.4fr) auto;
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.58);
}

.queue-item span,
.queue-item small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.queue-item strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.25;
}

.queue-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.queue-state {
  justify-self: end;
  padding: 5px 7px;
  border: 1px solid rgba(61, 91, 101, 0.26);
  color: var(--steel);
  background: rgba(61, 91, 101, 0.08);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.queue-item.complete .queue-state {
  border-color: rgba(71, 105, 79, 0.38);
  color: var(--olive);
  background: rgba(71, 105, 79, 0.1);
}

.queue-item.gated .queue-state,
.queue-item.locked .queue-state {
  border-color: rgba(199, 67, 50, 0.32);
  color: var(--tomato);
  background: rgba(199, 67, 50, 0.08);
}

.claim-risk-score {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.claim-risk-score article,
.claim-risk-columns article,
.claim-risk-mix {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.58);
}

.claim-risk-score span,
.claim-risk-columns span,
.claim-risk-mix span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.claim-risk-score strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
}

.claim-risk-mix {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.claim-risk-mix span {
  width: 100%;
}

.claim-risk-mix em {
  padding: 6px 8px;
  border: 1px solid rgba(61, 91, 101, 0.26);
  color: var(--steel);
  background: rgba(61, 91, 101, 0.08);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.claim-risk-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.claim-risk-columns ul,
.claim-risk-limits {
  margin: 8px 0 0;
  padding-left: 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.claim-risk-limits {
  margin: 0;
}

.system-footer {
  margin-bottom: 24px;
}

@media (max-width: 1280px) {
  .command-shell,
  .proof-dock,
  .source-ledger {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .source-ledger > * {
    grid-area: auto !important;
  }

  .workflow-cards,
  .adapter-core .adapter-grid,
  .claim-risk-columns,
  .queue-item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .queue-state {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .mission-control {
    padding: 150px 10px 20px;
  }

  .command-shell {
    min-height: auto;
  }

  .deck-title h1 {
    max-width: 100%;
    font-size: 42px;
  }

  .map-header,
  .workflow-mission {
    grid-template-columns: 1fr;
  }

  .map-header {
    display: grid;
  }

  .map-header > strong {
    width: fit-content;
  }

  .map-fallback,
  .workflow-cards,
  .source-health,
  .signal-stage .operation-log,
  .adapter-core .adapter-grid,
  .claim-risk-score,
  .claim-risk-columns,
  .approval-counts,
  .normalization-list article,
  .readiness-grid,
  .operator-fixes,
  .evidence-priority-filter ul,
  .queue-qa-footer-readout ul,
  .queue-failure-drill ul {
    grid-template-columns: 1fr;
  }

  .map-fallback span {
    border-right: 0;
    border-bottom: 1px solid rgba(24, 23, 22, 0.12);
  }

  .map-fallback span:last-child {
    border-bottom: 0;
  }

  .signal-stage .evidence-ledger,
  .source-ledger .list,
  .source-ledger .competitor-grid,
  .source-ledger .comment-output,
  .source-ledger .idea-list {
    max-height: none;
  }
}

.ack-qa-footer-failure-summary-readout,
.ack-qa-coverage-warning-summary-readout {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(40, 78, 99, 0.22);
  border-radius: 8px;
  background: rgba(250, 247, 237, 0.72);
  color: #21333b;
}

.ack-qa-footer-failure-summary-readout strong,
.ack-qa-coverage-warning-summary-readout strong {
  font-size: 13px;
}

.ack-qa-footer-failure-summary-readout small,
.ack-qa-footer-failure-summary-readout em,
.ack-qa-coverage-warning-summary-readout small,
.ack-qa-coverage-warning-summary-readout em,
.ack-qa-coverage-warning-summary-readout code {
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ack-qa-coverage-warning-summary-readout code {
  color: #284e63;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(40, 78, 99, 0.16);
  border-radius: 6px;
  padding: 5px 6px;
}

.ack-qa-footer-failure-summary-readout.warn,
.ack-qa-coverage-warning-summary-readout.warn {
  border-color: rgba(160, 84, 47, 0.42);
  background: rgba(255, 238, 220, 0.76);
}

@media (max-width: 1520px) {
  .product-cockpit {
    grid-template-columns: minmax(300px, 0.72fr) minmax(560px, 1.28fr);
  }

  .cockpit-output {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .product-cockpit {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .cockpit-title h1 {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .product-cockpit {
    width: 100%;
    gap: 10px;
  }

  .verification-drawer {
    width: 100%;
  }

  .verification-drawer > summary {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .cockpit-intake,
  .cockpit-panel {
    padding: 12px;
  }

  .cockpit-title h1 {
    font-size: 42px;
    overflow-wrap: anywhere;
  }

  .cockpit-actions,
  .cockpit-output,
  .cockpit-comparison,
  .cockpit-workspace-row,
  .cockpit-mode-grid,
  .cockpit-quality-hero,
  .cockpit-quality-grid,
  .cockpit-metrics {
    grid-template-columns: 1fr;
  }

  .cockpit-wide {
    grid-column: auto;
  }

  .cockpit-competitor {
    grid-template-columns: 1fr;
  }

  .cockpit-competitor meter {
    width: 100%;
  }
}

/* ---------- Competitor watch (background engine) ---------- */

.watch-cockpit {
  width: min(1760px, 100%);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(620px, 1.28fr);
  gap: 12px;
  align-items: stretch;
}

.watch-intake,
.watch-cockpit .cockpit-panel {
  min-width: 0;
  border: 1px solid rgba(232, 226, 212, 0.28);
  background:
    linear-gradient(135deg, rgba(15, 17, 17, 0.96), rgba(34, 39, 36, 0.94) 52%, rgba(36, 29, 34, 0.95)),
    #111312;
  color: #f7f2e7;
  box-shadow: 0 24px 90px rgba(14, 16, 16, 0.26);
  border-radius: 18px;
}

.watch-intake {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(18px, 2.6vw, 30px);
}

.watch-status {
  font-size: 13px;
  color: rgba(247, 242, 231, 0.72);
  border-top: 1px solid rgba(232, 226, 212, 0.2);
  padding-top: 14px;
  line-height: 1.5;
}

.watch-status strong { color: #f7f2e7; }
.watch-status .watch-status-warn { color: var(--saffron); }
.watch-status .watch-status-ok { color: #7fd8a0; }

.watch-cockpit .cockpit-output {
  display: grid;
  gap: 12px;
  align-content: start;
}

.watch-cockpit .cockpit-panel {
  padding: clamp(16px, 2vw, 22px);
  display: grid;
  gap: 14px;
  align-content: start;
}

.watch-alerts {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.watch-alert-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(247, 242, 231, 0.06);
  border: 1px solid rgba(232, 226, 212, 0.14);
  font-size: 13px;
}

.watch-alert-row .watch-badge { justify-self: start; }
.watch-alert-row time { color: rgba(247, 242, 231, 0.55); font-size: 11px; white-space: nowrap; }

.watch-badge {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(232, 226, 212, 0.3);
  white-space: nowrap;
}

.watch-badge.new_upload { color: #8fd0ff; border-color: rgba(143, 208, 255, 0.45); }
.watch-badge.trending { color: #ffb679; border-color: rgba(255, 182, 121, 0.5); }

.watch-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: 12px;
  max-height: 640px;
  overflow-y: auto;
}

.watch-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(232, 226, 212, 0.16);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(247, 242, 231, 0.03);
}

.watch-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: rgba(247, 242, 231, 0.08);
}

.watch-card-body {
  display: grid;
  gap: 6px;
  padding: 10px 12px 14px;
}

.watch-card-body a {
  color: #f7f2e7;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.watch-card-body a:hover { text-decoration: underline; }

.watch-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  color: rgba(247, 242, 231, 0.65);
}

.watch-card-hook {
  font-size: 12px;
  color: rgba(247, 242, 231, 0.75);
  border-top: 1px dashed rgba(232, 226, 212, 0.18);
  padding-top: 8px;
}

.watch-card-hook strong { color: #ffb679; }

/* ---------- Trend signals (Hacker News / GitHub Trending / Product Hunt) ---------- */

.signals-cockpit {
  width: min(1760px, 100%);
  margin: 18px auto 0;
  border: 1px solid rgba(232, 226, 212, 0.28);
  background:
    linear-gradient(135deg, rgba(15, 17, 17, 0.96), rgba(34, 39, 36, 0.94) 52%, rgba(36, 29, 34, 0.95)),
    #111312;
  color: #f7f2e7;
  box-shadow: 0 24px 90px rgba(14, 16, 16, 0.26);
  border-radius: 18px;
  padding: clamp(16px, 2vw, 22px);
  display: grid;
  gap: 14px;
}

.signals-note {
  font-size: 12.5px;
  color: rgba(247, 242, 231, 0.6);
  line-height: 1.5;
}

.signals-note button {
  margin-left: 6px;
  background: transparent;
  border: 1px solid rgba(232, 226, 212, 0.32);
  color: #f7f2e7;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 11.5px;
  cursor: pointer;
}

.signals-note button:hover { border-color: rgba(232, 226, 212, 0.6); }

.signals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: 12px;
}

.signals-column {
  display: grid;
  align-content: start;
  gap: 8px;
}

.signals-column h3 {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 242, 231, 0.55);
  margin: 0 0 2px;
}

.signal-row {
  display: grid;
  gap: 3px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(247, 242, 231, 0.05);
  border: 1px solid rgba(232, 226, 212, 0.12);
}

.signal-row a {
  color: #f7f2e7;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.signal-row a:hover { text-decoration: underline; }

.signal-row-meta {
  font-size: 11px;
  color: rgba(247, 242, 231, 0.55);
}

@media (max-width: 980px) {
  .watch-cockpit {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   EDITORIAL BRIEF-FIRST SURFACE — AuraMind Liquid Glass skin (2026-07-02)
   Same information architecture as the warm-paper editorial redesign; only
   the material changed. The cockpit/watch/signals rules above remain in
   place (unused, harmless) — their JS still exists as dead code pending a
   future cleanup pass. Material recipes below are copied verbatim from
   liquid-glass-core.css (the AuraMind canonical core).
   ========================================================================= */

/* ---------- aurora depth field (fixed, behind everything) ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
}
.aurora::before {
  background: radial-gradient(circle, rgba(255, 138, 61, 0.11), transparent 65%);
  top: -18vmax;
  right: -12vmax;
}
.aurora::after {
  background: radial-gradient(circle, rgba(91, 127, 166, 0.10), transparent 65%);
  bottom: -20vmax;
  left: -14vmax;
}
@media (prefers-reduced-motion: no-preference) {
  .aurora::before { animation: aurora-drift-a 75s ease-in-out infinite alternate; }
  .aurora::after  { animation: aurora-drift-b 90s ease-in-out infinite alternate; }
}
@keyframes aurora-drift-a {
  to { transform: translate3d(-10vmax, 12vmax, 0) scale(1.15); }
}
@keyframes aurora-drift-b {
  to { transform: translate3d(12vmax, -10vmax, 0) scale(1.1); }
}

/* ambient particle canvas — sits above the aurora (later in DOM), below content */
#ambientField {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  display: block;
  pointer-events: none;
}

/* ---------- .glass — the panel material (restrained, per reference) ----------
   No pointer-tracked sheen, no masked-gradient rim: a plain 1px wire border
   with a slightly brighter top edge + the layered --shadow do all the work. */
.glass {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(var(--tint, transparent), var(--tint, transparent)),
    var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  border: 1px solid var(--wire);
  border-top-color: rgba(255, 255, 255, 0.18);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.glass:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
[data-theme="light"] .glass {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04),
    0 24px 48px -28px rgba(18, 22, 31, 0.35);
}

/* solid fallback panel for static/dense sections (no backdrop-filter cost) */
.panel-solid {
  background: var(--charcoal);
  border-radius: var(--r-panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 18px 40px -24px rgba(0, 0, 0, 0.6);
}

/* ---------- .gel — interactive control material ---------- */
.gel {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border: 0;
  border-radius: var(--r-pill);
  padding: 0.85em 1.7em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--bone);
  cursor: pointer;
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 10px 24px -12px rgba(0, 0, 0, 0.55);
  transition: transform 0.35s var(--spring), box-shadow 0.35s var(--ease-out);
}
.gel:hover { transform: translateY(-1px); }
.gel:active {
  transform: scale(0.97);
  box-shadow:
    inset 0 1px 6px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.gel--primary {
  background: linear-gradient(180deg, #ffa05e, var(--phosphor));
  color: #1a0d02;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 12px 28px -10px rgba(255, 138, 61, 0.45);
}
.gel--primary:active {
  box-shadow:
    inset 0 2px 8px rgba(120, 50, 0, 0.35),
    0 6px 16px -8px rgba(255, 138, 61, 0.4);
}

/* ---------- .dock — floating glass nav (family signature, kept for parity) ---------- */
.dock {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--r-pill);
  max-width: min(1080px, calc(100vw - 32px));
  transition: padding 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  /* + .glass material class on the same element */
}
.dock.is-condensed {
  padding: 0.35rem 0.9rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 40px -18px rgba(0, 0, 0, 0.8);
}
.dock a.is-active { position: relative; }
.dock a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--phosphor);
  box-shadow: 0 0 8px 2px var(--phosphor-soft);
}

/* ---------- text treatments ----------
   V3 correction: no gradient-clipped headings — solid bone ink only. */
.display-ink {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--bone);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--phosphor);
}

/* ---------- focus / a11y ---------- */
:focus-visible {
  outline: 2px solid var(--ion);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =========================================================================
   Editorial surface reskin
   ========================================================================= */

.ed-body {
  /* Editorial tokens remapped onto the glass palette so every rule below
     (and anything app.js renders) inherits the dark skin consistently. */
  --ed-ink-950: var(--bone);
  --ed-ink-800: rgba(237, 234, 226, 0.86);
  --ed-ink-600: var(--bone-dim);
  --ed-ink-400: rgba(237, 234, 226, 0.55);
  --ed-paper-000: var(--abyss);
  --ed-paper-100: var(--charcoal);
  --ed-paper-200: rgba(237, 234, 226, 0.08);
  --ed-paper-border: rgba(237, 234, 226, 0.14);
  --ed-accent: var(--phosphor);
  --ed-accent-100: var(--phosphor-soft);
  --ed-evidence: var(--ion);
  --ed-evidence-100: var(--ion-soft);
  --ed-live: var(--phosphor);

  /* paint the void base here too — .ed-body outranks the element-level body
     rule, so it must carry the canvas itself rather than go transparent */
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 138, 61, 0.1), transparent 34rem),
    radial-gradient(circle at 82% 12%, rgba(91, 127, 166, 0.13), transparent 32rem),
    var(--void);
  color: var(--ed-ink-800);
  font-family: var(--font-body);
}

.ed-body .flight-deck,
.ed-body .map-wash,
.ed-body #evidenceMap {
  display: none;
}

.ed-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(237, 234, 226, 0.08);
  background: rgba(10, 13, 18, 0.6);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ed-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ed-ink-950);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.ed-brand img {
  width: 26px;
  height: 26px;
  /* circular white chip — original AuraMind mark unchanged, just framed */
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.ed-header__side {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ed-header-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ed-ink-400);
}

.ed-lineage {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--phosphor);
  text-decoration: none;
}

.ed-lineage:hover { text-decoration: underline; }

.ed-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 32px) 96px;
}

/* ---------- Command bar (glass dock-like bar: one input + Run) ---------- */

.command-bar {
  /* .glass material class is applied on the element itself in index.html */
  padding: clamp(18px, 2.4vw, 26px);
  margin-bottom: clamp(28px, 5vw, 48px);
}

.command-bar__row {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.command-bar__row--auto {
  grid-template-columns: 1fr auto;
}

.command-field span small {
  font-weight: 400;
  text-transform: none;
  color: var(--ed-ink-400);
  letter-spacing: 0;
  font-family: var(--font-body);
}

.command-field {
  display: grid;
  gap: 6px;
}

.command-field span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ed-ink-600);
  text-transform: uppercase;
}

/* gel-textured field controls — no backdrop-filter (they sit inside the
   .command-bar glass panel; backdrop-filters must never nest) */
.command-field input,
.command-field textarea {
  border: 0;
  border-radius: 12px; /* concentric-ish: panel 28 − padding */
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ed-ink-950);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  transition: box-shadow 0.35s var(--ease-out);
}

.command-field input::placeholder,
.command-field textarea::placeholder {
  color: var(--ed-ink-400);
}

.command-field input:focus-visible,
.command-field textarea:focus-visible {
  outline: 2px solid var(--ion);
  outline-offset: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(91, 127, 166, 0.4),
    0 0 0 4px var(--ion-soft);
}

/* Run button = gel--primary control (phosphor gradient, spring press) */
.command-run {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border: 0;
  border-radius: var(--r-pill);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  background: linear-gradient(180deg, #ffa05e, var(--phosphor));
  color: #1a0d02;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 12px 28px -10px rgba(255, 138, 61, 0.45);
  transition: transform 0.35s var(--spring), box-shadow 0.35s var(--ease-out);
}

.command-run:hover { transform: translateY(-1px); }
.command-run:active {
  transform: scale(0.97);
  box-shadow:
    inset 0 2px 8px rgba(120, 50, 0, 0.35),
    0 6px 16px -8px rgba(255, 138, 61, 0.4);
}
.command-run:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

.command-advanced {
  margin-top: 14px;
}

.command-advanced summary {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ed-ink-600);
  cursor: pointer;
  list-style: none;
}

.command-advanced summary::-webkit-details-marker { display: none; }
.command-advanced summary::before { content: "▸ "; color: var(--ed-ink-400); }
.command-advanced[open] summary::before { content: "▾ "; }

.command-advanced__body {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.command-bar__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  min-height: 20px;
}

.command-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ed-ink-600);
  line-height: 1.5;
}

.command-status .status-err { color: var(--danger); }

.connector-truth {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ed-ink-600);
}

.connector-truth span {
  border-radius: var(--r-pill);
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

/* Watch Pulse — gel chip with phosphor live-dot */
.watch-pulse {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  row-gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ed-ink-600);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

/* [hidden] cascade guard — .watch-pulse declares display:flex, so the UA
   [hidden]{display:none} rule alone would lose. (Bug existed pre-reskin.) */
.watch-pulse[hidden] { display: none; }

.watch-pulse__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--phosphor);
  box-shadow: 0 0 8px 2px var(--phosphor-soft);
}
@media (prefers-reduced-motion: no-preference) {
  .watch-pulse__dot { animation: pulse-live 2.6s ease-in-out infinite; }
}
@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 0 var(--phosphor-soft); }
  50% { box-shadow: 0 0 8px 3px var(--phosphor-soft); }
}

.watch-pulse button {
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ed-ink-950);
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 12px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.35s var(--spring), box-shadow 0.35s var(--ease-out);
}

.watch-pulse button:hover { transform: translateY(-1px); }
.watch-pulse button:active { transform: scale(0.97); }

.watch-pulse__secondary {
  background: transparent;
  color: var(--ed-ink-600);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ---------- Empty state ---------- */

.ed-empty {
  max-width: 640px;
  margin: clamp(32px, 8vw, 88px) auto;
  text-align: center;
}

.ed-empty[hidden] { display: none; }

.ed-empty__kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--phosphor);
  margin: 0 0 12px;
}

.ed-empty h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.08;
  margin: 0 0 14px;
  background: linear-gradient(180deg, var(--bone) 55%, rgba(237, 234, 226, 0.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ed-empty p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ed-ink-600);
}

/* ---------- Brief stage ---------- */

.brief-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.brief-stage[hidden] {
  display: none;
}

/* Elevated glass sheet — .glass material class applied in index.html.
   The document keeps its serif editorial voice; ink is bone. */
.brief-doc {
  padding: clamp(28px, 4vw, 52px);
  font-family: Georgia, "Iowan Old Style", serif;
  color: var(--ed-ink-800);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.brief-doc__masthead {
  border-bottom: 1px solid var(--ed-paper-200);
  padding-bottom: 22px;
  margin-bottom: 26px;
}

.brief-doc__kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--phosphor);
  text-shadow: none;
  margin: 0 0 12px;
}

.brief-doc__angle {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ed-ink-950);
  margin: 0 0 14px;
}

.brief-doc__hook {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ed-ink-600);
  margin: 0 0 18px;
  max-width: 62ch;
}

.brief-doc__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ed-ink-400);
  text-shadow: none;
}

.brief-doc__meta-item strong { color: var(--ed-ink-950); font-weight: 600; }
.brief-doc__meta-dot { opacity: 0.5; }

/* Evidence-grounded pill — gel chip (no backdrop-filter: nested in glass) */
.brief-doc__brain-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ed-ink-600);
  background: rgba(255, 255, 255, 0.05);
  border: 0;
  border-radius: var(--r-pill);
  padding: 5px 12px;
  cursor: default;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brief-doc__brain-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ed-ink-400);
}
.brief-doc__brain-pill[data-connected="true"] .brief-doc__brain-dot {
  background: var(--phosphor);
  box-shadow: 0 0 8px 2px var(--phosphor-soft);
}

.brief-doc__thesis {
  font-size: 20px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ed-ink-950);
  border-left: 3px solid var(--phosphor);
  padding-left: 20px;
  margin: 0 0 34px;
}

.brief-doc__h2 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--phosphor);
  text-shadow: none;
  margin: 34px 0 14px;
}

.brief-doc__body h2:first-of-type { margin-top: 0; }

.brief-doc__script {
  font-family: Georgia, "Iowan Old Style", serif;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ed-ink-800);
  white-space: pre-wrap;
  margin: 0;
}

.brief-doc__beats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.brief-doc__beat {
  position: relative;
  padding-left: 22px;
}

.brief-doc__beat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--phosphor-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 61, 0.5);
}

.brief-doc__beat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--phosphor);
  text-shadow: none;
  margin-bottom: 3px;
}

.brief-doc__beat p { font-size: 15.5px; line-height: 1.6; margin: 0 0 6px; }

/* citation pill — ion gel chip (no backdrop-filter: nested in glass) */
.brief-doc__evidence {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11px;
  color: var(--ion);
  background: var(--ion-soft);
  border: 0;
  border-radius: var(--r-pill);
  padding: 3px 10px;
  cursor: pointer;
  text-decoration: none;
  text-shadow: none;
  box-shadow: inset 0 0 0 1px rgba(91, 127, 166, 0.28);
  transition: transform 0.35s var(--spring), box-shadow 0.35s var(--ease-out);
}

.brief-doc__evidence:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(91, 127, 166, 0.5);
}
.brief-doc__evidence:active { transform: scale(0.97); }

.brief-doc__questions,
.brief-doc__ideas {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 15.5px;
  line-height: 1.55;
}

/* ---------- Sources rail ---------- */

.sources-rail {
  position: sticky;
  top: 84px; /* clears the sticky glass header */
  font-family: var(--font-body);
}

.sources-rail__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  padding: 0 4px;
}

.sources-rail__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--phosphor);
  margin: 0;
}

.sources-rail__count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ed-ink-400);
}

/* solid charcoal panels (rim treatment, no backdrop-filter cost) */
.sources-group {
  background: var(--charcoal);
  border: 0;
  border-radius: var(--r-control);
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 18px 40px -24px rgba(0, 0, 0, 0.6);
}

.sources-group__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ed-ink-950);
  cursor: pointer;
  list-style: none;
}

.sources-group__summary::-webkit-details-marker { display: none; }

.sources-group__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ed-ink-600);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--r-pill);
  padding: 2px 9px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.sources-group__list {
  list-style: none;
  margin: 0;
  padding: 0 10px 10px;
  display: grid;
  grid-auto-rows: max-content; /* guard: rows must never compress if a
                                  max-height/overflow is ever added */
  gap: 8px;
}

/* dead-cockpit .empty-state rule above paints paper — override for the rail */
.sources-group__list .empty-state {
  display: block;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ed-ink-600);
  font-size: 12.5px;
  line-height: 1.5;
}

.source-card {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 9px;
  scroll-margin-top: 96px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.source-card:hover { border-color: rgba(91, 127, 166, 0.45); }

.source-card--flash {
  border-color: var(--phosphor);
  box-shadow: 0 0 0 3px var(--phosphor-soft);
}

/* HONESTY UI — fixture cards stay visually distinct: dashed danger border,
   diagonal striping, danger-tinted name (JS prefixes "⚠ Fixture — not real:") */
.source-card--fixture {
  border-style: dashed;
  border-color: rgba(255, 107, 94, 0.5);
  opacity: 0.75;
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 107, 94, 0.05),
    rgba(255, 107, 94, 0.05) 8px,
    rgba(255, 255, 255, 0.02) 8px,
    rgba(255, 255, 255, 0.02) 16px
  );
}
.source-card--fixture .source-card__name { color: var(--danger); }

.source-card img {
  width: 52px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.source-card__body { min-width: 0; }

.source-card__name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ed-ink-950);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-card__stat {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ed-ink-400);
  margin: 0;
  line-height: 1.4;
}

.sources-group__note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ed-ink-600);
  padding: 0 14px 14px;
  margin: 0;
}

.sources-group__link {
  display: block;
  margin-top: 8px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ion);
  cursor: pointer;
}

.sources-group__link:hover { text-decoration: underline; }

.sources-group__raw {
  margin: 0 14px 14px;
  padding: 10px;
  background: var(--void);
  color: var(--bone-dim);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.5;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* [hidden] cascade guard for the raw JSON toggle (pre displays block by
   default; kept explicit so a future display: rule can't regress it) */
.sources-group__raw[hidden] { display: none; }

/* ---------- Footer (AuraMind lineage) ---------- */

.ed-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px clamp(20px, 4vw, 32px) 40px;
  border-top: 1px solid rgba(237, 234, 226, 0.08);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ed-ink-600);
}

.ed-footer a {
  color: var(--ion);
  text-decoration: none;
}

.ed-footer a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .command-bar__row,
  .command-advanced__body {
    grid-template-columns: 1fr;
  }
  .brief-stage {
    grid-template-columns: 1fr;
  }
  .sources-rail {
    position: static;
  }
}

@media (max-width: 480px) {
  .ed-header {
    position: static; /* avoid a tall wrapped sticky bar eating the viewport */
  }
  .command-run {
    width: 100%;
  }
  .command-bar__foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .connector-truth {
    flex-direction: column;
  }
  .brief-doc__brain-pill {
    margin-left: 0;
  }
  .sources-rail {
    top: auto;
  }
  .source-card { scroll-margin-top: 20px; }
}

/* ---------- Reduced motion (belt-and-braces; a global kill switch also
   exists earlier in this file) ---------- */

@media (prefers-reduced-motion: reduce) {
  .gel,
  .command-run,
  .watch-pulse button,
  .brief-doc__evidence,
  .source-card,
  .glass::after,
  .command-field input,
  .command-field textarea {
    transition: none;
  }
  .gel:hover,
  .command-run:hover,
  .watch-pulse button:hover,
  .brief-doc__evidence:hover {
    transform: none;
  }
  .glass::after { display: none; }
  .aurora::before,
  .aurora::after,
  .watch-pulse__dot {
    animation: none;
  }
}
