:root {
  color-scheme: dark;
  --bg: #090d10;
  --panel: #10171c;
  --panel2: #0c1216;
  --line: #28343c;
  --text: #e5edf1;
  --muted: #8da0aa;
  --accent: #9dd7c6;
  --warn: #e8c27a;
  --danger: #d98f83;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
button, input, select { font: inherit; }
button { background: transparent; color: var(--text); border: 1px solid var(--line); padding: 9px 12px; cursor: pointer; }
button:hover:not(:disabled), button.active { border-color: var(--accent); color: var(--accent); }
button:disabled { opacity: .35; cursor: not-allowed; }
button.primary { background: var(--accent); border-color: var(--accent); color: #07100d; font-weight: 700; }
button.danger { background: var(--danger); border-color: var(--danger); }
.ceres-shell { min-height: 100vh; display: grid; grid-template-rows: auto auto auto 1fr auto; }
.topbar, .workspace-head, footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar { padding: 22px 28px 16px; border-bottom: 1px solid var(--line); }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 0; letter-spacing: .2em; font-size: 28px; }
h2 { margin-bottom: 4px; font-size: 23px; letter-spacing: .08em; }
h3 { letter-spacing: .06em; }
.eyebrow, .field-label { color: var(--muted); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.build-meta, .id { color: var(--muted); font-size: 11px; }
.primary-nav { display: flex; overflow-x: auto; gap: 2px; padding: 0 28px; border-bottom: 1px solid var(--line); }
.primary-nav button { border-width: 0 0 2px; padding: 12px 16px; }
.system-notice { padding: 10px 28px; background: #10251f; color: var(--accent); border-bottom: 1px solid #284a3f; }
main { padding: 24px 28px 36px; max-width: 1500px; width: 100%; margin: 0 auto; }
.workspace-head { margin-bottom: 18px; }
.panel { border: 1px solid var(--line); background: var(--panel); padding: 18px; }
.dashboard-grid, .card-grid, .planning-grid, .two-col, .trace-grid { display: grid; gap: 14px; }
.dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-grid .wide { grid-column: 1 / -1; }
.card-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.planning-grid { grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trace-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: grid; gap: 10px; }
.mission-card, .directive { border: 1px solid var(--line); background: var(--panel2); padding: 14px; display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.mission-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; }
.badge { border: 1px solid var(--line); display: inline-block; padding: 3px 7px; font-size: 10px; letter-spacing: .08em; }
.badge.warn { border-color: var(--warn); color: var(--warn); }
.attention-strip { display: flex; gap: 20px; align-items: baseline; border: 1px solid var(--line); padding: 13px 16px; margin-bottom: 14px; }
.attention-strip.quiet strong { color: var(--accent); }
.muted { color: var(--muted); }
.review-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 18px; }
.metric { background: var(--panel2); border: 1px solid var(--line); padding: 12px; display: grid; gap: 6px; }
.metric span { color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.metric strong { font-size: 17px; }
.timeline { display: grid; gap: 0; border: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 58px 1fr; gap: 14px; padding: 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.timeline-item:last-child { border-bottom: 0; }
.sequence { font-size: 22px; color: var(--accent); }
.decision-trace { border: 1px solid var(--line); background: #0b1318; padding: 18px; margin-top: 14px; }
.trace-head { display: flex; justify-content: space-between; gap: 12px; }
.influence { display: grid; border-top: 1px solid var(--line); padding: 8px 0; }
.influence span, .influence small { color: var(--muted); }
.semantic-note { color: var(--warn); }
.raw-log pre { overflow-x: auto; background: #070b0e; border: 1px solid var(--line); padding: 12px; color: #b7c9d1; }
.meter { height: 7px; background: #07100d; border: 1px solid var(--line); margin: 10px 0; }
.meter span { display: block; height: 100%; background: var(--accent); }
.editor { display: grid; gap: 12px; margin-top: 14px; }
.editor label { display: grid; gap: 6px; color: var(--muted); }
.editor input, .editor select { width: 100%; background: #070b0e; border: 1px solid var(--line); color: var(--text); padding: 9px; }
footer { color: var(--muted); border-top: 1px solid var(--line); padding: 14px 28px; font-size: 10px; letter-spacing: .1em; }
.boot { padding: 30px; color: var(--muted); }
@media (max-width: 850px) {
  .dashboard-grid, .planning-grid, .two-col, .trace-grid, .summary-grid { grid-template-columns: 1fr; }
  .dashboard-grid .wide { grid-column: auto; }
  .topbar, .workspace-head { align-items: flex-start; flex-direction: column; }
  main, .topbar { padding-left: 16px; padding-right: 16px; }
  .primary-nav { padding: 0 16px; }
}
.navigation-grid { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: 14px; }
.nav-entry { display: grid; text-align: left; gap: 4px; width: 100%; }
.nav-entry span { color: var(--muted); font-size: 11px; }
.visualizer { min-height: 300px; }
.commit-review { display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; padding: 12px; background: var(--panel2); border: 1px solid var(--line); }
@media (max-width: 850px) { .navigation-grid { grid-template-columns: 1fr; } }

/* VS-6 UI hierarchy closure: encode priority with structure, weight, spacing and density, never color alone. */
.status-tier { border: 1px solid var(--line); background: var(--panel); margin-bottom: 14px; padding: 16px 18px; }
.status-tier h3 { margin-bottom: 6px; }
.status-tier p { margin-bottom: 0; }
.status-tier-label, .significance-label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.status-tier-decision { border-width: 2px; padding: 20px 22px; margin-bottom: 18px; }
.status-tier-decision h3 { font-size: 24px; letter-spacing: .04em; }
.status-tier-review { border-width: 2px; padding: 20px 22px; }
.status-tier-review h3 { font-size: 20px; }
.status-tier-available { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; }
.status-tier-progress { padding: 14px 16px; background: var(--panel2); }
.status-tier-progress h3 { font-size: 16px; }
.status-tier-routine { padding: 11px 14px; background: transparent; border-style: dashed; }
.status-tier-routine h3 { font-size: 14px; margin-bottom: 8px; }
.status-tier-technical { border-width: 2px; border-style: double; }
.mission-card-review { border-width: 2px; padding: 16px; }
.mission-card-review h4 { font-size: 18px; margin: 6px 0 2px; }
.mission-card-progress { padding: 11px 13px; }
.mission-card-routine { padding: 8px 10px; min-height: 0; opacity: .86; }
.mission-card-routine h4 { margin: 4px 0 0; font-size: 13px; }
.mission-target { color: var(--muted); margin: 2px 0 0; font-size: 11px; }

.summary-panel { padding: 20px; }
.summary-hero { border: 2px solid var(--line); background: var(--panel2); padding: 22px; margin: 14px 0 22px; }
.summary-hero h3 { font-size: 25px; margin: 5px 0 12px; max-width: 800px; }
.summary-hero-kicker { font-size: 11px; letter-spacing: .13em; font-weight: 700; }
.summary-hero-flags { display: flex; gap: 8px; margin: 0 0 14px; }
.summary-hero-routine { border-width: 1px; }
.summary-secondary { border-top: 1px solid var(--line); padding-top: 15px; }
.summary-secondary .summary-grid { margin-top: 9px; }

.timeline { border: 0; gap: 8px; }
.timeline-item { border: 1px solid var(--line); margin: 0; background: var(--panel); }
.timeline-prominent { border-width: 2px; padding: 20px; grid-template-columns: 68px 1fr; }
.timeline-prominent .sequence { font-size: 28px; font-weight: 700; }
.timeline-prominent h3 { font-size: 20px; margin: 4px 0 8px; }
.timeline-notable { padding: 15px 16px; }
.timeline-routine { display: block; padding: 0; background: var(--panel2); }
.timeline-routine > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; padding: 9px 12px; }
.timeline-routine > summary::-webkit-details-marker { display: none; }
.timeline-routine > summary::after { content: "EXPAND"; grid-column: 3; color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.timeline-routine[open] > summary::after { content: "COLLAPSE"; }
.timeline-routine summary strong, .timeline-routine summary small { display: block; }
.timeline-routine summary strong { font-size: 13px; margin: 2px 0; }
.timeline-routine summary small { color: var(--muted); }
.sequence-small { font-size: 16px; }
.timeline-detail { margin-top: 5px; }
.timeline-routine .timeline-detail { border-top: 1px solid var(--line); padding: 10px 12px 12px 70px; }
.timeline-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.technical-detail { margin-top: 8px; color: var(--muted); font-size: 10px; }
.technical-detail summary { cursor: pointer; letter-spacing: .08em; }
.technical-detail code { display: block; overflow-wrap: anywhere; margin-top: 5px; }

.decision-trace { border-width: 2px; padding: 22px; }
.trace-head { align-items: flex-start; }
.decision-action-label { margin-top: 10px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.decision-action { font-size: 30px; letter-spacing: .04em; margin: 2px 0 0; }
.decision-semantic { border: 1px solid var(--warn); padding: 13px 15px; margin: 16px 0; }
.decision-semantic strong { display: block; font-size: 17px; margin: 3px 0 4px; }
.decision-semantic p { margin: 0; }
.evidence-warning { border-left: 3px solid var(--line); padding-left: 12px; }
.trace-major { margin-top: 18px; }
.trace-major > .significance-label { margin-bottom: 8px; }
.influence { gap: 4px; }
.influence-strong, .influence-moderate { padding: 10px 0; }
.influence-trace, .influence-weak { opacity: .78; padding: 7px 0; }
.influence-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.strength-label { font-size: 9px; font-weight: 700; letter-spacing: .1em; border: 1px solid var(--line); padding: 2px 5px; }
.directive-human-label { display: block; color: var(--text) !important; font-size: 11px; font-weight: 700; margin-top: 3px; }
.decision-technical { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; color: var(--muted); }
.decision-technical summary { cursor: pointer; font-size: 10px; letter-spacing: .1em; }
.provenance-list { padding-left: 20px; }
.provenance-list li { margin-bottom: 10px; }
.provenance-list code { overflow-wrap: anywhere; }

@media (max-width: 850px) {
  .status-tier-available { align-items: flex-start; flex-direction: column; }
  .timeline-routine > summary { grid-template-columns: 38px 1fr; }
  .timeline-routine > summary::after { grid-column: 2; }
  .timeline-routine .timeline-detail { padding-left: 50px; }
}

/* VS-6 final presentation hierarchy closure. */
.status-global-state {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: -2px 0 18px;
  padding: 8px 2px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.status-global-state strong {
  color: var(--text);
  font-size: 13px;
  letter-spacing: .08em;
}
.status-global-state span { font-size: 11px; }
.status-global-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.trace-primary { margin-top: 18px; }
.trace-primary > .significance-label { margin-bottom: 8px; }
.trace-additional {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--panel2);
}
.trace-additional > summary {
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted);
}
.trace-additional .trace-grid { margin-top: 10px; }
.trace-primary .influence-weak,
.trace-primary .influence-trace { display: none; }

@media (max-width: 850px) {
  .status-global-state { align-items: flex-start; flex-direction: column; gap: 4px; }
}

/* Pre-MVP prototype release shell — player-safe operational metadata only. */
.public-release-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: center;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  background: rgba(8, 13, 18, 0.94);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.public-release-strip strong { letter-spacing: 0.08em; }
.public-release-strip button,
.public-import-label,
.public-recovery-actions button {
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
  color: inherit;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font: inherit;
}
.public-release-strip button { margin-left: auto; }
.public-import-label { display: inline-block; }
.public-warning { font-weight: 700; }
.public-system-screen { max-width: 860px; margin: 4rem auto; padding: 1rem; }
.public-recovery-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }

/* Public presentation + Pre-MVP positioning closure (presentation/copy-only, v1.12). */
:root {
  --bg: #070b0e;
  --panel: #0d1419;
  --panel2: #0a1014;
  --surface-raised: #111a20;
  --line: #25323a;
  --line-strong: #3a4b55;
  --text: #edf3f4;
  --muted: #8fa1ab;
  --muted-quiet: #657781;
  --accent: #9ed8ca;
  --accent-dim: #5d9e91;
  --warn: #d8ae69;
  --danger: #c7867b;
}

body {
  background:
    radial-gradient(circle at 82% -10%, rgba(70, 126, 118, .09), transparent 34rem),
    linear-gradient(180deg, #080d10 0%, var(--bg) 38%, #06090c 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: .002em;
}
button, input, select { font-family: inherit; }
button {
  min-height: 38px;
  border-color: var(--line-strong);
  border-radius: 2px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .045em;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
button:hover:not(:disabled), button.active { background: rgba(158, 216, 202, .05); }
button.primary {
  background: var(--accent);
  color: #06110e;
  box-shadow: 0 8px 24px rgba(56, 120, 106, .12);
}
code, pre, .build-meta, .id, .sequence, .status-tier-label, .significance-label,
.eyebrow, .field-label, .badge, .strength-label, footer, .timeline-key,
.status-global-label, .coming-soon-badge, .public-release-strip, .first-run-system-line,
.first-run-facts span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.015em; }
h1 { font-size: clamp(31px, 4vw, 45px); font-weight: 760; letter-spacing: .12em; }
h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 720; letter-spacing: -.025em; }
h3 { font-size: 20px; font-weight: 690; }
h4 { font-size: 13px; font-weight: 720; letter-spacing: .045em; }
p { max-width: 78ch; }
.eyebrow, .field-label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.muted { color: var(--muted); }
.id { color: var(--muted-quiet); font-size: 10px; letter-spacing: .025em; }

.topbar {
  padding: 26px 34px 22px;
  border-bottom-color: rgba(93, 114, 124, .38);
  background: rgba(7, 12, 15, .75);
}
.brand-lockup { display: grid; gap: 5px; }
.brand-line { display: flex; align-items: baseline; gap: 16px; }
.brand-line h1 { margin: 0; }
.brand-status {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}
.brand-note { margin: 0; color: var(--muted); font-size: 13px; }
.build-meta { display: grid; text-align: right; gap: 3px; font-size: 10px; line-height: 1.35; }
.primary-nav { padding: 0 34px; gap: 8px; border-bottom-color: rgba(93, 114, 124, .28); }
.primary-nav button { color: var(--muted); padding: 14px 13px 12px; min-height: 0; font-size: 11px; }
.primary-nav button.active { color: var(--text); border-color: var(--accent); background: transparent; }
main { max-width: 1420px; padding: 46px 34px 72px; }
.workspace-head { margin-bottom: 30px; align-items: flex-end; }
.workspace-head h2 { margin: 5px 0 8px; }
.workspace-intro { margin: 0; color: #afbdc4; font-size: 15px; max-width: 64ch; }
.review-mission-id { margin: 14px 0 0; }
.panel { border-color: rgba(75, 94, 104, .55); background: linear-gradient(180deg, rgba(16, 24, 29, .94), rgba(11, 17, 21, .96)); }
.system-notice { padding: 10px 34px; font-size: 12px; }
footer { padding: 16px 34px; color: var(--muted-quiet); }

/* STATUS — current attention first; global quiet state never competes with attention. */
.status-head { margin-bottom: 20px; }
.status-global-state {
  max-width: 980px;
  margin: 0 0 30px;
  padding: 0 0 13px;
  gap: 12px;
  border-bottom: 1px solid rgba(85, 104, 114, .34);
}
.status-global-state strong { color: #c2cdd1; font-size: 12px; font-weight: 650; }
.status-global-state span { color: var(--muted-quiet); }
.status-primary-attention {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent-dim);
  background: linear-gradient(120deg, rgba(19, 31, 35, .98), rgba(11, 17, 21, .98) 68%);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
.status-primary-attention::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -95px;
  top: -140px;
  border: 1px solid rgba(158,216,202,.13);
  transform: rotate(45deg);
  pointer-events: none;
}
.status-tier-label { color: var(--muted); font-size: 9px; }
.status-tier-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 8px 0 20px; }
.status-primary-attention h3 { margin: 0 0 7px; font-size: clamp(26px, 3vw, 37px); letter-spacing: -.025em; }
.status-primary-attention .status-tier-heading p { margin: 0; color: #afbec5; }
.attention-count {
  display: grid;
  place-items: center;
  min-width: 54px;
  min-height: 54px;
  border: 1px solid rgba(158,216,202,.35);
  color: var(--accent);
  font: 700 23px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.status-secondary-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 18px; margin: 0 0 26px; }
.status-secondary-grid .status-tier { margin: 0; }
.status-tier-available {
  padding: 22px 24px;
  border: 1px solid rgba(75, 94, 104, .56);
  background: rgba(12, 18, 22, .72);
}
.status-tier-available h3 { margin: 7px 0 7px; font-size: 19px; }
.status-tier-progress {
  padding: 20px 22px;
  border: 0;
  border-top: 1px solid rgba(75, 94, 104, .58);
  background: transparent;
}
.status-tier-progress h3 { margin: 7px 0 14px; font-size: 17px; }
.status-tier-routine {
  margin-top: 8px;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid rgba(75, 94, 104, .3);
  background: transparent;
}
.status-tier-routine h3 { color: #aab8bf; margin: 6px 0 12px; font-size: 14px; }
.empty-note { margin: 10px 0 0; font-size: 12px; }
.mission-card {
  border-radius: 2px;
  border-color: rgba(81, 101, 111, .5);
  background: rgba(8, 14, 18, .55);
}
.mission-card-review { padding: 19px 20px; gap: 24px; }
.mission-card-review h4 { margin: 7px 0 2px; font-size: 22px; letter-spacing: -.01em; }
.mission-card-main { min-width: 0; }
.mission-card-prompt { margin: 9px 0 0; color: #a9b7bd; font-size: 13px; }
.mission-meta { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; }
.delegated-label { font-size: 11px; }
.mission-card-routine { background: transparent; border-color: rgba(72, 91, 101, .28); }

/* Review — result → state → sequence → trace → technical evidence. */
.review-head { border-bottom: 1px solid rgba(78, 98, 108, .34); padding-bottom: 26px; }
.review-tabs { gap: 18px; margin: -8px 0 30px; border-bottom: 1px solid rgba(78,98,108,.32); }
.review-tabs button { border: 0; border-bottom: 2px solid transparent; padding: 12px 2px 10px; color: var(--muted); }
.review-tabs button.active { color: var(--text); border-color: var(--accent); background: transparent; }
.summary-panel { border: 0; background: transparent; padding: 0; }
.summary-hero {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin: 0 0 42px;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent-dim);
  background: linear-gradient(118deg, rgba(16, 29, 33, .98), rgba(8, 13, 17, .97) 74%);
}
.summary-hero::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -100px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(158,216,202,.12);
  border-radius: 50%;
  box-shadow: inset 0 0 0 38px rgba(158,216,202,.016), inset 0 0 0 76px rgba(158,216,202,.012);
}
.summary-hero-kicker { color: var(--accent); font-size: 10px; letter-spacing: .14em; }
.summary-hero-sequence { margin-top: 9px; color: var(--muted); font: 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }
.summary-hero h3 { max-width: 920px; margin: 16px 0 16px; font-size: clamp(34px, 4.5vw, 58px); letter-spacing: -.04em; }
.summary-hero-copy { position: relative; z-index: 1; margin: 0 0 22px; color: #afbec5; font-size: 15px; }
.summary-hero-flags { position: relative; z-index: 1; }
.summary-hero button { position: relative; z-index: 1; }
.summary-hero-critical { border-left-width: 5px; }
.summary-hero-major { border-left-width: 4px; }
.summary-secondary { border: 0; padding: 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 14px; }
.section-heading h4 { margin: 6px 0 0; font-size: 16px; letter-spacing: -.01em; }
.summary-grid { gap: 12px; margin: 0 0 30px; }
.metric { min-height: 92px; padding: 16px; border: 0; border-top: 1px solid rgba(80,100,110,.52); background: rgba(11,17,21,.52); }
.metric span { color: var(--muted); font: 9px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
.metric strong { font-size: 20px; font-weight: 680; }
.summary-findings { gap: 34px; }
.summary-findings > div { padding-top: 18px; border-top: 1px solid rgba(80,100,110,.32); }

/* Timeline — one visual causal spine without changing canonical order. */
.timeline-shell { max-width: 1080px; margin: 0 auto; }
.timeline-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin: 0 0 28px; }
.timeline-heading h3 { margin: 7px 0 6px; font-size: 26px; }
.timeline-heading p { margin: 0; color: #a8b7bd; }
.timeline-key { color: var(--muted-quiet); font-size: 9px; white-space: nowrap; }
.timeline {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 0 0 0 8px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 40px;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: linear-gradient(180deg, rgba(158,216,202,.65), rgba(87,109,119,.26));
}
.timeline-item {
  position: relative;
  z-index: 1;
  grid-template-columns: 66px 1fr;
  gap: 20px;
  border: 0;
  border-left: 1px solid rgba(80,100,110,.48);
  background: rgba(10,16,20,.58);
}
.timeline-item .sequence {
  position: relative;
  color: #bdcbcF;
  font-size: 16px;
  text-align: center;
}
.timeline-item .sequence::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -13px;
  width: 9px;
  height: 9px;
  transform: translate(50%, -50%);
  border: 2px solid var(--bg);
  background: var(--muted-quiet);
  box-shadow: 0 0 0 1px rgba(158,216,202,.42);
  border-radius: 50%;
}
.timeline-prominent {
  padding: 25px 25px 25px 0;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent-dim);
  background: linear-gradient(100deg, rgba(17,27,32,.95), rgba(9,15,19,.88));
}
.timeline-prominent .sequence { font-size: 22px; color: var(--accent); font-weight: 700; }
.timeline-prominent .sequence::after { width: 13px; height: 13px; background: var(--accent); }
.timeline-prominent h3 { margin: 7px 0 7px; font-size: 25px; letter-spacing: -.025em; }
.timeline-critical { border-left-width: 5px; }
.timeline-notable { padding: 18px 20px 18px 0; border-left-color: rgba(93,119,131,.58); background: rgba(10,16,20,.46); }
.timeline-notable h3 { margin: 5px 0 6px; font-size: 17px; }
.timeline-detail p { margin: 0 0 9px; color: #a6b5bc; font-size: 13px; }
.timeline-actions { margin-top: 9px; }
.timeline-routine {
  margin-left: 0;
  border: 0;
  border-left: 1px solid rgba(71,90,100,.34);
  background: transparent;
}
.timeline-routine > summary { grid-template-columns: 66px 1fr auto; padding: 9px 14px 9px 0; }
.timeline-routine .sequence::after { right: -13px; width: 7px; height: 7px; background: #52636c; }
.timeline-routine summary strong { font-family: inherit; font-size: 13px; font-weight: 600; color: #abb9bf; }
.timeline-routine summary small { color: var(--muted-quiet); }
.timeline-routine .timeline-detail { margin-left: 66px; padding: 12px 14px; border-top-color: rgba(75,94,104,.3); }

/* Decision Trace — selected action anchors the scan; major channels read as comparable blocks. */
.decision-trace {
  max-width: 1180px;
  margin: 38px auto 0;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line-strong);
  border-top: 3px solid rgba(158,216,202,.58);
  background: linear-gradient(180deg, rgba(12,20,24,.96), rgba(8,13,17,.98));
}
.decision-trace-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding-bottom: 22px; border-bottom: 1px solid rgba(77,97,107,.38); }
.decision-trace-intro h3 { margin: 7px 0 6px; font-size: 24px; }
.decision-trace-intro p { margin: 0; color: var(--muted); }
.decision-action-anchor { padding: 31px 0 25px; }
.decision-action-label { margin: 0 0 3px; color: var(--muted); font: 700 9px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
.decision-action-row { display: flex; align-items: center; gap: 18px; }
.decision-action { margin: 0; font-size: clamp(38px, 5vw, 62px); letter-spacing: -.045em; }
.decision-anchor-mark { color: var(--accent); font-size: 30px; font-weight: 300; }
.decision-semantic { max-width: 760px; margin: 0 0 32px; padding: 14px 0 14px 16px; border: 0; border-left: 2px solid var(--warn); background: linear-gradient(90deg, rgba(216,174,105,.06), transparent 70%); }
.decision-semantic strong { font-size: 16px; }
.decision-semantic p { color: #b7b1a4; font-size: 13px; }
.trace-primary { margin-top: 0; padding-top: 4px; }
.trace-grid { gap: 18px; }
.influence-column { min-width: 0; padding: 18px; border-top: 2px solid rgba(158,216,202,.32); background: rgba(8,14,18,.58); }
.influence-column-title { margin-bottom: 12px; color: #b8c6cc; font: 700 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.influence { border-top-color: rgba(74,93,103,.38); padding: 12px 0; gap: 5px; }
.influence:first-of-type { border-top: 0; padding-top: 4px; }
.influence-top strong { font-size: 17px; font-weight: 670; }
.influence > span:not(.strength-label) { color: #a2b2b9; font-size: 12px; }
.strength-label { color: var(--accent); border-color: rgba(158,216,202,.32); }
.directive-human-label { color: #d2dcdf !important; font-family: inherit; font-size: 12px; }
.trace-additional { margin-top: 24px; padding: 12px 14px; border-color: rgba(75,94,104,.35); background: rgba(8,13,17,.4); }
.trace-additional > summary { display: flex; justify-content: space-between; gap: 12px; color: #899ba4; }
.trace-additional > summary span { color: var(--muted-quiet); font-weight: 500; }
.trace-additional .influence-column { opacity: .72; border-top-width: 1px; background: transparent; }
.decision-technical { color: var(--muted-quiet); border-top-color: rgba(75,94,104,.28); }

/* Honest unavailable/future-facing workspaces. */
.coming-soon-panel { max-width: 780px; padding: 32px; border-style: dashed; background: rgba(10,16,20,.45); }
.coming-soon-badge { display: inline-block; margin-bottom: 18px; padding: 4px 8px; border: 1px solid rgba(143,161,171,.4); color: var(--muted); font-size: 9px; letter-spacing: .14em; }
.coming-soon-panel h3 { margin-bottom: 10px; font-size: 25px; }

/* First run — initialize CERES, not an empty save-slot form. */
.public-release-strip {
  gap: .45rem 1rem;
  padding: .62rem 1.25rem;
  border-bottom-color: rgba(255,255,255,.13);
  background: rgba(6,11,14,.96);
  color: #9fafb6;
  font-size: 10px;
}
.public-release-strip strong { color: #d8e3e6; }
.public-release-strip button { margin-left: auto; }
.public-system-screen { max-width: 1180px; margin: 0 auto; padding: clamp(38px, 6vw, 84px) 28px; }
.public-first-run-frame { position: relative; overflow: hidden; min-height: 650px; padding: clamp(32px, 5vw, 64px); border: 1px solid rgba(72,94,104,.55); background: linear-gradient(125deg, rgba(12,22,26,.94), rgba(6,11,14,.98) 72%); box-shadow: 0 28px 90px rgba(0,0,0,.28); }
.first-run-system-line { display: flex; gap: 13px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid rgba(75,96,106,.34); color: var(--muted-quiet); font-size: 9px; letter-spacing: .12em; }
.first-run-system-line strong { color: #a6b5bb; }
.first-run-brand { max-width: 880px; padding: clamp(52px, 8vw, 92px) 0 52px; }
.first-run-brand h1 { margin: 9px 0 18px; font-size: clamp(58px, 10vw, 112px); letter-spacing: .08em; }
.first-run-premise { margin: 0; max-width: 720px; color: #b6c3c8; font-size: clamp(18px, 2vw, 24px); line-height: 1.48; }
.prototype-disclosure {
  display: inline-grid;
  gap: 4px;
  margin-top: 18px;
  padding: 10px 12px;
  border-left: 2px solid rgba(158,216,202,.45);
  background: rgba(158,216,202,.035);
  color: var(--muted);
  font-size: 12px;
}
.prototype-disclosure strong {
  color: var(--accent);
  font: 700 9px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .12em;
}
.prototype-disclosure span { max-width: 58ch; }

.first-run-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .55fr); gap: 42px; align-items: end; }
.first-run-action { max-width: 670px; }
.first-run-action h2 { margin: 8px 0 13px; font-size: 30px; }
.first-run-action > p { color: #a8b6bc; }
.first-run-actions { margin: 24px 0 13px; align-items: stretch; }
.first-run-primary { min-height: 50px; padding: 13px 18px; font-size: 13px; }
.first-run-import { display: grid; place-items: center; min-height: 50px; padding: 12px 16px; color: #b5c2c7; }
.first-run-caution { margin: 0; color: var(--muted-quiet) !important; font-size: 11px; }
.first-run-facts { display: grid; gap: 0; border-top: 1px solid rgba(80,102,112,.42); }
.first-run-facts div { display: grid; gap: 5px; padding: 13px 0; border-bottom: 1px solid rgba(80,102,112,.25); }
.first-run-facts span { color: var(--muted-quiet); font-size: 8px; letter-spacing: .13em; }
.first-run-facts strong { color: #b8c5ca; font-size: 12px; font-weight: 620; }
.first-run-decoration { position: absolute; top: 72px; right: -120px; width: 430px; height: 430px; opacity: .3; pointer-events: none; }
.first-run-decoration span { position: absolute; inset: 0; margin: auto; border: 1px solid rgba(158,216,202,.2); border-radius: 50%; }
.first-run-decoration span:nth-child(2) { inset: 56px; }
.first-run-decoration span:nth-child(3) { inset: 116px; }
.first-run-decoration span:nth-child(4) { inset: 175px; background: rgba(158,216,202,.03); }
.public-recovery-panel { max-width: 760px; padding: 34px; }
.recovery-errors { margin: 20px 0; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }

@media (max-width: 900px) {
  .topbar { align-items: flex-start; }
  .brand-note { max-width: 48ch; }
  .build-meta { text-align: left; }
  .status-secondary-grid, .first-run-grid { grid-template-columns: 1fr; }
  .status-tier-available { align-items: flex-start; flex-direction: column; }
  .timeline-heading, .section-heading, .decision-trace-intro { align-items: flex-start; flex-direction: column; }
  .timeline-key { white-space: normal; }
  .trace-grid { grid-template-columns: 1fr; }
  .first-run-decoration { opacity: .18; }
}

@media (max-width: 620px) {
  main { padding: 32px 18px 56px; }
  .topbar { padding: 22px 18px 18px; }
  .primary-nav { padding: 0 18px; }
  .brand-line { align-items: flex-start; flex-direction: column; gap: 4px; }
  .status-tier-heading { align-items: flex-start; }
  .mission-card-review { align-items: flex-start; flex-direction: column; }
  .timeline { padding-left: 0; }
  .timeline::before { left: 27px; }
  .timeline-item { grid-template-columns: 46px 1fr; }
  .timeline-routine > summary { grid-template-columns: 46px 1fr; }
  .timeline-routine .timeline-detail { margin-left: 46px; }
  .timeline-item .sequence::after { right: -13px; }
  .public-system-screen { padding: 24px 14px; }
  .public-first-run-frame { padding: 26px 22px 34px; }
  .first-run-brand { padding: 44px 0 36px; }
}
.timeline-heading-meta { display: grid; justify-items: end; gap: 8px; }
.timeline-locator { padding-top: 8px; border-top: 1px solid rgba(80,100,110,.35); color: var(--accent); font: 700 9px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.timeline-notable .timeline-detail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.timeline-notable .timeline-detail p { flex: 1 1 420px; margin: 0; }
.timeline-notable .timeline-actions { margin: 0; }
@media (max-width: 900px) { .timeline-heading-meta { justify-items: start; } }
