/*
 * Platanus Quantum — Atelier Noir
 * Visual direction: xAI restraint × BMW M engineering × Runway editorial scale.
 */

:root {
  color-scheme: dark;
  --nav-width: 256px;
  --topbar-height: 60px;
  --content-max: 1500px;
  --void: #070909;
  --void-soft: #0b0d0d;
  --carbon: #101313;
  --carbon-raised: #151919;
  --hairline: #242929;
  --hairline-bright: #343b3b;
  --chalk: #f2f3ef;
  --mist: #a4abaa;
  --dim-ink: #6f7776;
  --jade: #78dfb7;
  --jade-deep: #2ba77d;
  --mineral-blue: #8093ff;
  --vermilion: #ff6655;
  --warning-ink: #f3bd64;
  --danger-ink: #ff746b;
  --app-canvas: var(--void);
  --app-surface: var(--carbon);
  --app-subtle: var(--void-soft);
  --app-ink: var(--chalk);
  --app-copy: #c8cecc;
  --app-muted: var(--mist);
  --app-line: var(--hairline);
  --app-line-strong: var(--hairline-bright);
  --app-blue: var(--jade);
  --app-blue-bright: var(--jade);
  --app-blue-soft: rgba(120, 223, 183, .08);
  --ink: var(--void);
  --ink-soft: var(--carbon);
  --paper: var(--chalk);
  --ash: var(--mist);
  --dim: var(--dim-ink);
  --silver: #d8ddda;
  --charcoal: var(--carbon-raised);
  --line-soft: var(--hairline);
  --line: var(--hairline-bright);
  --cinnabar: var(--jade);
  --cinnabar-soft: rgba(120, 223, 183, .08);
  --bronze: var(--mineral-blue);
  --positive: var(--jade);
  --negative: var(--danger-ink);
  --warning: var(--warning-ink);
  --surface-shadow: none;
}

html { background: var(--void); }
body {
  color: var(--chalk);
  background: var(--void);
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: -.012em;
}
body::before { display: none; }
::selection { color: #06110d; background: var(--jade); }
a { color: inherit; }

.global-header {
  height: 72px;
  grid-template-columns: var(--nav-width) minmax(300px, 1fr) auto;
  gap: 28px;
  padding: 0 24px 0 20px;
  background: rgba(7, 9, 9, .94);
  border-color: var(--hairline);
  backdrop-filter: blur(22px);
}
.global-header .brand { position: relative; gap: 12px; color: var(--chalk); }
.global-header .brand-mark { width: 34px; height: 34px; flex-basis: 34px; filter: saturate(.75) brightness(1.3); }
.global-header .brand-type { gap: 2px; }
.global-header .brand-type strong { color: var(--chalk); font-size: 14px; font-weight: 520; letter-spacing: .02em; }
.global-header .brand-type small { color: var(--dim-ink); font: 8px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.brand-spectrum { position: absolute; right: 12px; bottom: -18px; display: grid; width: 42px; height: 2px; grid-template-columns: repeat(3, 1fr); }
.brand-spectrum i:nth-child(1) { background: var(--jade); }
.brand-spectrum i:nth-child(2) { background: var(--mineral-blue); }
.brand-spectrum i:nth-child(3) { background: var(--vermilion); }

.header-command button {
  width: min(420px, 100%);
  height: 36px;
  color: #7d8584;
  background: rgba(255,255,255,.025);
  border-color: rgba(255,255,255,.11);
  border-radius: 999px;
  box-shadow: none;
}
.header-command button:hover { color: #d9dddb; background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.22); box-shadow: none; }
.header-command .command-search { color: #737a79; }
.header-command kbd { color: #858c8b; background: transparent; border-color: #313636; border-radius: 99px; box-shadow: none; }
.global-actions { gap: 10px; }
.system-chip { height: 30px; color: #a9e9cd; font: 9px/1 var(--mono); letter-spacing: .08em; background: rgba(120,223,183,.055); border-color: rgba(120,223,183,.22); }
.system-chip i { background: var(--jade); box-shadow: 0 0 0 3px rgba(120,223,183,.08); }
.header-icon-button, .user-monogram {
  color: #aab1af;
  background: transparent;
  border-color: var(--hairline-bright);
  border-radius: 50%;
}
.header-icon-button:hover { color: var(--chalk); background: #151919; border-color: #555e5c; }
.user-monogram { color: var(--void); font-weight: 700; background: var(--chalk); border-color: var(--chalk); }

.sidebar {
  inset-block-start: 72px;
  width: var(--nav-width);
  padding: 20px 14px 18px;
  color: var(--mist);
  background: #080a0a;
  border-color: var(--hairline);
}
.workspace-switcher {
  min-height: 62px;
  grid-template-columns: 34px 1fr auto;
  gap: 11px;
  margin: 0 2px 28px;
  padding: 10px 6px 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
}
.workspace-avatar { width: 34px; height: 34px; color: var(--void); font-size: 9px; background: var(--jade); border-radius: 50%; }
.workspace-switcher small { color: #59605f; font: 8px/1 var(--mono); letter-spacing: .1em; }
.workspace-switcher strong { color: #dfe3e0; font-size: 11px; font-weight: 420; letter-spacing: 0; }
.workspace-switcher b { color: #59605f; }
.primary-nav { gap: 26px; }
.nav-group { gap: 2px; }
.nav-group h2 { margin: 0 10px 9px; color: #505655; font: 8px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.nav-item {
  min-height: 42px;
  grid-template-columns: 26px 1fr auto;
  padding: 0 10px;
  color: #7c8482;
  font-size: 12px;
  font-weight: 400;
  border-radius: 0;
}
.nav-item::before { position: absolute; left: -14px; width: 2px; height: 0; content: ""; background: var(--jade); transition: height 180ms ease; }
.nav-item:hover { color: #dfe3e0; background: transparent; }
.nav-item.is-active { color: var(--chalk); background: transparent; }
.nav-item.is-active::before { height: 22px; }
.nav-index { width: 22px; height: 22px; color: #555c5b; background: transparent; border-color: #252929; border-radius: 50%; }
.nav-item.is-active .nav-index { color: var(--jade); background: transparent; border-color: rgba(120,223,183,.4); }
.nav-caret { color: var(--jade); }
.sidebar-foot { padding: 16px 6px 0; border-color: var(--hairline); }
.system-state strong { color: #bac0be; font-weight: 400; }
.system-state small { color: #555c5b; }
.sidebar-foot > p { color: #4e5554; }
.sidebar-foot > p b { color: var(--jade); }

.workspace { min-height: 100vh; margin-left: var(--nav-width); padding-top: 72px; background: var(--void); }
.topbar {
  top: 72px;
  height: var(--topbar-height);
  padding: 0 40px;
  background: rgba(7,9,9,.9);
  border-color: var(--hairline);
  backdrop-filter: blur(22px);
}
.page-heading { gap: 15px; }
.page-heading span { color: #555d5b; font-size: 8px; letter-spacing: .13em; }
.page-heading h1 { color: #d9ddda; font-size: 13px; font-weight: 440; letter-spacing: .01em; }
.main-content { width: min(100%, calc(var(--content-max) + 80px)); padding: 56px 40px 110px; background: var(--void); }
.main-content:has(.overview-cinematic) { padding-top: 0; }

.button {
  min-height: 42px;
  padding-inline: 18px;
  color: var(--chalk);
  font-size: 11px;
  font-weight: 560;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: transparent;
  border-color: #3b4240;
  border-radius: 0;
  box-shadow: none;
}
.button:hover { transform: none; box-shadow: none; }
.button-primary { color: #07100d; background: var(--jade); border-color: var(--jade); }
.button-primary:hover { color: #07100d; background: #9af0d0; border-color: #9af0d0; }
.button-secondary, .button-ghost { color: #d5dad7; background: transparent; border-color: #3c4241; }
.button-secondary:hover, .button-ghost:hover { color: var(--chalk); background: #121515; border-color: #69716f; }
.button-small { min-height: 34px; padding-inline: 13px; font-size: 9px; }
.text-link { color: #cbd1ce; font-size: 10px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; }
.text-link:hover { color: var(--jade); }
.icon-button, .icon-link { color: #aab0ae; background: transparent; border-color: var(--hairline-bright); border-radius: 50%; }

.page-intro { grid-template-columns: 48px minmax(0, 900px); gap: 24px; margin: 8px 0 48px; }
.section-number { width: 40px; height: 40px; color: var(--jade); font-size: 9px; background: transparent; border-color: rgba(120,223,183,.35); border-radius: 50%; }
.intro-copy { gap: 12px; }
.intro-copy .eyebrow, .panel-head span, .freeze-card > div > span, .cost-card > span, .reproduction-card > span, .detail-id > span {
  color: #6b7371;
  font: 9px/1.2 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.page-intro h2 { color: var(--chalk); font-size: clamp(38px, 4.2vw, 64px); font-weight: 400; line-height: .98; letter-spacing: -.06em; }
.page-intro p { max-width: 720px; color: #858d8b; font-size: 13px; line-height: 1.65; }

.panel, .form-section, .queue-card, .molecule-card, .cost-card, .freeze-card, .reproduction-card, .evidence-card, .chart-panel, .detail-visual, .detail-summary {
  color: #c9cfcc;
  background: var(--void-soft);
  border-color: var(--hairline);
  border-radius: 0;
  box-shadow: none;
}
.panel-head { min-height: 72px; padding: 18px 22px; border-color: var(--hairline); }
.panel-head h3 { color: #e8ebe7; font-size: 15px; font-weight: 440; letter-spacing: -.02em; }

/* Cinematic overview */
.overview-cinematic {
  grid-template-areas: "copy stage" "proof proof";
  grid-template-columns: minmax(390px, .82fr) minmax(560px, 1.18fr);
  grid-template-rows: minmax(610px, 1fr) auto;
  gap: 0 56px;
  min-height: 730px;
  margin: 0;
  padding: 0 56px;
  color: var(--chalk);
  background: var(--void);
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  box-shadow: none;
}
.overview-cinematic .hero-copy { grid-area: copy; display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 70px; }
.hero-kicker { color: #6f7775; font: 9px/1.2 var(--mono); letter-spacing: .14em; }
.hero-kicker i { width: 7px; height: 7px; background: var(--jade); border-radius: 50%; box-shadow: 0 0 0 5px rgba(120,223,183,.06); }
.hero-copy h2 { margin: 30px 0 24px; color: var(--chalk); font-size: clamp(56px, 5.6vw, 84px); font-weight: 400; line-height: .98; letter-spacing: -.075em; }
.hero-copy h2 em { display: block; margin-top: 8px; color: var(--jade); font-size: .68em; font-style: normal; font-weight: 400; letter-spacing: -.075em; white-space: nowrap; }
.hero-copy > p { max-width: 500px; color: #8d9593; font-size: 14px; font-weight: 350; line-height: 1.65; }
.hero-actions { margin-top: 34px; gap: 26px; }
.hero-actions .button { min-height: 48px; padding-inline: 23px; }

.molecular-stage { position: relative; grid-area: stage; min-width: 0; align-self: stretch; overflow: hidden; background: #090b0b; border-inline: 1px solid var(--hairline); }
.stage-head { position: absolute; inset: 0 0 auto 0; z-index: 3; display: flex; height: 48px; align-items: center; justify-content: space-between; padding: 0 18px; color: #707876; font: 8px/1 var(--mono); letter-spacing: .12em; border-bottom: 1px solid var(--hairline); }
.stage-head span:last-child { display: flex; align-items: center; gap: 7px; color: #729887; }
.stage-head i { width: 5px; height: 5px; background: var(--jade); border-radius: 50%; box-shadow: 0 0 0 4px rgba(120,223,183,.06); }
.quantum-molecule { position: absolute; inset: 40px 0 78px; width: 100%; height: calc(100% - 118px); }
.stage-orbits { stroke: #242a29; stroke-width: 1; stroke-dasharray: 3 8; }
.stage-orbits path { stroke: rgba(128,147,255,.18); }
.bond-group { stroke-width: 18; }
.atom-labels { fill: rgba(255,255,255,.72); font: 20px/1 var(--sans); font-weight: 500; }
.quantum-pulse { stroke-width: 1; stroke-dasharray: 4 9; opacity: .7; transform-origin: 174px 302px; animation: quantumPulse 5s linear infinite; }
.spectral-trace { stroke-width: 2; opacity: .72; }
.stage-coordinate { position: absolute; z-index: 3; color: #414746; font: 7px/1 var(--mono); letter-spacing: .1em; }
.stage-x { right: 14px; top: 58px; }
.stage-y { left: 14px; bottom: 88px; transform: rotate(-90deg); transform-origin: left bottom; }
.stage-readout { position: absolute; inset: auto 0 0; display: grid; height: 78px; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hairline); }
.stage-readout > div { display: grid; align-content: center; gap: 8px; padding: 0 14px; border-left: 1px solid var(--hairline); }
.stage-readout > div:first-child { border-left: 0; }
.stage-readout span { color: #59615f; font: 7px/1 var(--mono); letter-spacing: .13em; }
.stage-readout strong { color: #d9ddda; font: 11px/1 var(--mono); font-weight: 400; }
.stage-readout > div:last-child strong { color: var(--jade); }
.overview-cinematic .hero-proof { grid-area: proof; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.overview-cinematic .hero-proof span { display: grid; min-height: 94px; grid-template-columns: none; align-content: center; gap: 8px; padding: 0 24px; color: #626a68; font-size: 9px; border: 0; border-left: 1px solid var(--hairline); }
.overview-cinematic .hero-proof span:first-child { padding-left: 0; border-left: 0; }
.overview-cinematic .hero-proof b { color: #dfe3df; font: 12px/1 var(--mono); font-weight: 400; }
@keyframes quantumPulse { 0% { opacity: .2; transform: scale(.78) rotate(0); } 50% { opacity: .85; } 100% { opacity: .12; transform: scale(1.2) rotate(180deg); } }

/* Native interactive molecular renderer. Product imagery receives the depth; UI chrome stays flat. */
.molecule-scene3d {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #080a0a;
  background-image: none !important;
  filter: none !important;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.molecule-scene3d:active { cursor: grabbing; }
.molecule-scene3d canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.molecule-gesture {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  color: rgba(207,215,212,.36);
  font: 7px/1 var(--mono);
  letter-spacing: .13em;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}
.molecule-scene3d:hover .molecule-gesture, .detail-molecule .molecule-gesture, .hero-molecule .molecule-gesture { opacity: 1; transform: translateY(0); }
.hero-molecule-scene { position: absolute; inset: 48px 0 78px; }
.hero-molecule, .hero-molecule-scene .molecule-scene3d { width: 100%; height: 100%; min-height: 0; background: transparent; }
.hero-molecule .molecule-gesture { right: 18px; bottom: 16px; color: rgba(120,223,183,.48); }
.candidate-tile .molecule-scene3d { background: #080a0a; border: 1px solid #1e2322; border-radius: 10px; transition: border-color 180ms ease, background 180ms ease; }
.candidate-tile:hover .molecule-scene3d { background: #0b0e0d; border-color: rgba(120,223,183,.28); }
.candidate-tile > span { z-index: 3; }
.molecule-visual { background: #080a0a; }
.molecule-card .molecule-scene3d { background: #080a0a; border-radius: 8px; }
.molecule-card:hover .molecule-scene3d { background: #0b0e0d; }
.molecule-card .molecule-scene3d canvas { transition: transform 400ms cubic-bezier(.2,.8,.2,1); }
.molecule-card:hover .molecule-scene3d canvas { transform: scale(1.025); }
.detail-visual { background: #080a0a; }
#detail-molecule { position: relative; z-index: 2; width: min(88%, 560px); aspect-ratio: 1.18; }
.detail-molecule { width: 100%; height: 100%; background: transparent; border: 1px solid #1d2221; border-radius: 14px; }
.detail-tabs { z-index: 5; background: rgba(8,10,10,.72); border: 1px solid #252b2a; border-radius: 999px; backdrop-filter: blur(14px); }
.detail-tabs button { color: #6f7775; background: transparent; border-radius: 999px; }
.detail-tabs button.is-active { color: #07100d; background: var(--jade); }
.detail-visual > p { color: #59615f; }
.detail-watermark { color: rgba(255,255,255,.035); }

.metric-band { margin: 0 0 96px; background: transparent; border: 0; border-bottom: 1px solid var(--hairline); border-radius: 0; box-shadow: none; }
.metric-band .metric-cell { min-height: 156px; padding: 30px 26px; background: transparent; border-color: var(--hairline); }
.metric-cell > span { color: #606866; font: 8px/1.2 var(--mono); letter-spacing: .13em; }
.metric-cell strong { color: var(--chalk); font-size: clamp(30px, 3vw, 44px); font-weight: 400; letter-spacing: -.055em; }
.metric-cell strong em { color: #59615f; font-size: 9px; }
.metric-cell p { color: #656d6b; font-size: 9px; }
.metric-band .metric-cell.accent { background: rgba(120,223,183,.035); }
.metric-cell.accent strong { color: var(--jade); }

.run-panel { margin-bottom: 92px; }
.run-row { min-height: 92px; padding: 16px 22px; color: #aeb5b2; border-color: var(--hairline); }
.run-row:hover { background: rgba(255,255,255,.018); }
.run-identity strong { color: #e0e4e0; font-weight: 420; }
.run-identity span, .run-identity small, .run-meta small { color: #5d6563; }
.progress-cluster progress { height: 3px; background: #202424; }
.progress-cluster progress::-webkit-progress-value { background: var(--jade); }
.run-meta span { color: #b7bdbb; }
.row-link { color: #777f7d; }
.row-link:hover { color: var(--jade); }
.split-section { gap: 24px; }
.candidate-strip { gap: 1px; padding: 1px; background: var(--hairline); border-radius: 0; }
.candidate-tile { color: #9da5a2; background: #0b0d0d; }
.candidate-tile:hover { color: var(--chalk); background: #101313; }
.candidate-tile .molecule-crop { background-color: #e8ebe5; filter: grayscale(.18) contrast(1.05); }
.candidate-tile strong { color: #d9ddda; }
.evidence-radar { background: #0b0d0d; border-color: var(--hairline); border-radius: 0; }
.gate-list a { color: #aeb4b1; border-color: var(--hairline); }
.gate-list a:hover { background: rgba(255,255,255,.018); }
.gate-list strong { color: #d7dbd7; font-weight: 420; }
.gate-list small { color: #59615f; }
.data-disclaimer { color: #69716f; border-color: var(--hairline); }
.data-disclaimer span { color: var(--jade); }
.data-disclaimer b { color: #a9b0ad; }

/* Forms and configuration */
.form-stack { gap: 1px; background: var(--hairline); }
.form-section { gap: clamp(30px, 5vw, 74px); padding: clamp(34px, 4vw, 56px); background: #0a0c0c; }
.form-section > header > span, .step-token { color: var(--jade); background: transparent; border-color: rgba(120,223,183,.35); border-radius: 50%; }
.form-section h3 { color: #e1e5e1; font-size: 18px; font-weight: 420; }
.form-section header p { color: #59615f; }
.field > span, .field label, .range-field label, .toggle-row strong, .choice-stack legend { color: #aeb5b2; font-weight: 420; }
.field small, .range-field small { color: #5d6563; }
.field input, .field textarea, .field select, .range-field input, .search-field input, .inline-select select, .constraint-row input, .constraint-row select {
  color: #e2e6e2;
  background: #111414;
  border-color: #2b3130;
  border-radius: 0;
  box-shadow: none;
}
.field input:focus, .field textarea:focus, .field select:focus, .search-field input:focus { border-color: var(--jade); box-shadow: 0 0 0 1px var(--jade); }
.unit-input em { color: #59615f; }
.choice-stack label, .choice-card, .solver-option, .preset-card { color: #aeb5b2; background: #0c0f0f; border-color: #292e2d; border-radius: 0; }
.choice-stack label:hover, .choice-card:hover, .solver-option:hover, .preset-card:hover { color: #d9ddda; background: #111414; border-color: #48504e; }
.choice-stack label:has(input:checked), .choice-card:has(input:checked), .solver-option:has(input:checked), .preset-card.is-active { color: #dff8ee; background: rgba(120,223,183,.045); border-color: rgba(120,223,183,.52); box-shadow: none; }
.choice-stack label > span, .backend-choice label > span { color: #9ca4a1; background: #0f1212; border-color: #2c3231; border-radius: 0; }
.choice-stack label > input:checked + span, .backend-choice input:checked + span { color: #dff8ee; background: rgba(120,223,183,.045); border-color: rgba(120,223,183,.52); box-shadow: inset 2px 0 0 var(--jade); }
.choice-stack b, .backend-choice b { color: #d8ddda; }
.choice-stack small, .backend-choice small { color: #626a68; }
.constraint-table, .constraint-row, .constraint-head { border-color: var(--hairline); }
.constraint-head { color: #5d6563; background: #0d1010; }
.constraint-row strong { color: #d9ddda; }
.freeze-card, .cost-card, .reproduction-card { background: #0b0d0d; }
.check-field { color: #959d9a; }
.cost-card h3, .freeze-card h3, .reproduction-card h3 { color: var(--chalk); font-weight: 420; }
.cost-card dl > div { border-color: var(--hairline); }
.cost-card dt { color: #69716f; }
.cost-card dd { color: #d9ddda; }
.cost-note { color: #bda774; background: rgba(243,189,100,.045); border-color: rgba(243,189,100,.22); }
.lambda-scale { border-color: var(--hairline); }
.lambda-scale span { color: #626a68; }
.lambda-scale span.active { color: var(--jade); }

/* Queue */
.queue-toolbar, .candidate-toolbar { background: #0b0d0d; border-color: var(--hairline); border-radius: 0; }
.queue-filter button { color: #727a78; }
.queue-filter button.is-active { color: var(--chalk); background: transparent; border-bottom: 1px solid var(--jade); border-radius: 0; }
.legend-line, .demo-boundary { color: #656d6b; }
.demo-boundary { padding-block: 14px; background: #0b0d0d; border-color: var(--hairline); border-radius: 0; }
.demo-boundary span { color: var(--jade); }
.queue-list { gap: 1px; background: var(--hairline); }
.queue-card { min-height: 202px; padding: 22px; background: #0b0d0d; border: 0; border-left: 2px solid var(--jade); }
.queue-card:hover { background: #0e1111; border-color: var(--jade); box-shadow: none; transform: none; }
.queue-index { color: #525a58; }
.queue-core h3 { color: #e5e8e4; font-weight: 420; }
.queue-route span, .queue-metadata dt { color: #616967; }
.queue-route .is-done { color: #b9c0bd; }
.queue-route i { background: #292e2d; }
.queue-metadata { border-color: var(--hairline); }
.queue-metadata dd { color: #cbd0cd; }

/* Candidates and details */
.search-field i, .inline-select span, .range-field > span { color: #717977; }
.view-toggle { overflow: hidden; border-color: #313735; border-radius: 0; }
.view-toggle button { color: #727a78; background: #0d1010; }
.view-toggle button + button { border-color: #313735; }
.view-toggle button.is-active { color: var(--jade); background: rgba(120,223,183,.065); }
.candidate-summary { color: #626a68; }
.candidate-summary p i { background: var(--jade); }
.molecule-grid { gap: 1px; background: var(--hairline); }
.molecule-card { background: #0a0c0c; border: 0; }
.molecule-card:hover { background: #0f1212; border-color: transparent; box-shadow: none; transform: none; }
.molecule-visual { background: #e9ece6; border-color: var(--hairline); }
.molecule-card .molecule-crop { background-color: #e9ece6; filter: grayscale(.16) contrast(1.06); }
.rank-mark { color: #07100d; background: var(--jade); border-radius: 0; }
.valid-mark { color: #235d49; background: rgba(238,248,242,.92); border-color: rgba(35,93,73,.18); }
.molecule-body { color: #7a8280; background: #0a0c0c; }
.molecule-body > span, .molecule-body h3 { color: #e0e4e0; }
.molecule-body code { color: #656d6b; }
.score-row { border-color: var(--hairline); }
.score-row strong { color: #d7dcd8; }
.score-bar { background: #232827; }
.score-bar i { background: var(--jade); }
.breadcrumb { color: #656d6b; }
.breadcrumb a:hover { color: var(--jade); }
.molecule-detail-hero { background: transparent; border-color: var(--hairline); border-radius: 0; }
.detail-visual { background: #e8ebe5; }
.detail-copy { color: #9fa6a3; background: #0a0c0c; }
.detail-copy h2 { color: var(--chalk); font-weight: 400; }
.molecular-formula { color: var(--jade); }
.detail-copy code { color: #7f8785; background: #111414; border-color: var(--hairline); }
.score-pair article { border-color: var(--hairline); }
.score-pair span, .score-pair small { color: #656d6b; }
.score-pair strong { color: #e2e6e2; }
.score-pair article > div { background: #232827; }
.score-pair article > div i { background: var(--jade); }
.fact-sheet dl > div, .evidence-mini li, .record-nav { border-color: var(--hairline); }
.fact-sheet dt, .evidence-mini small, .record-nav span { color: #626a68; }
.fact-sheet dd, .evidence-mini strong, .record-nav strong { color: #d5dad6; }
.evidence-mini li i { color: #737b79; border-color: #3b4240; }
.evidence-mini li.is-done i { color: #07100d; background: var(--jade); border-color: var(--jade); }

/* Evidence */
.evidence-summary { background: #0b0d0d; }
.evidence-score, .evidence-boundary { border-color: var(--hairline); }
.evidence-score > span, .evidence-score p, .evidence-boundary p { color: #69716f; }
.evidence-score strong { color: var(--chalk); font-weight: 400; }
.evidence-score strong em { color: #626a68; }
.evidence-axis b { background: #313635; }
.evidence-axis div i { background: #303534; }
.evidence-axis div.verified i { background: var(--jade); }
.evidence-axis div.warning i { background: var(--warning-ink); }
.evidence-axis div.missing i { background: var(--danger-ink); }
.evidence-axis span { color: #d3d8d4; }
.evidence-axis small { color: #626a68; }
.evidence-boundary span { color: var(--jade); }
.gate-grid { gap: 1px; background: var(--hairline); }
.gate-card { color: #9aa29f; background: #0b0d0d; border: 0; border-top: 2px solid #3a403f; border-radius: 0; }
.gate-card:hover { background: #0e1111; transform: none; }
.gate-card h3 { color: #e2e6e2; font-weight: 420; }
.gate-card > span, .gate-card p, .gate-card small { color: #666e6c; }
.gate-card footer { border-color: var(--hairline); }
.gate-card footer code { color: #727a78; }
.gate-verified { border-top-color: var(--jade); }
.gate-warning { border-top-color: var(--warning-ink); }
.gate-missing { border-top-color: var(--danger-ink); }
.ledger-head { color: #5f6765; background: #0f1212; }
.ledger-row, .ledger-head { border-color: var(--hairline); }
.ledger-row { color: #aeb5b2; }
.ledger-row strong, .ledger-row code { color: #d3d8d4; }
.table-note { color: #666e6c; border-color: var(--hairline); }
.source-figure { background: #e9ece6; }
.missing-tile { color: #c8cecb; background: rgba(255,102,85,.035); border-color: rgba(255,102,85,.2); }
.missing-tile > b { color: var(--danger-ink); }
.reproduction-card li { color: #777f7d; border-color: var(--hairline); }
.reproduction-card li .done { color: var(--jade); }

/* Metrics */
.snapshot-badge { color: #92a09c; background: transparent; border-color: #313735; border-radius: 99px; }
.dashboard-grid { gap: 1px; background: var(--hairline); }
.chart-panel { background: #0b0d0d; }
.chart-unit, .chart-caption { color: #5f6765; }
.chart-caption { border-color: var(--hairline); }
.bar-chart a span, .bar-chart a b { color: #717977; }
.bar-chart a > i { background: #4a5351; }
.bar-chart a:first-child > i { background: linear-gradient(90deg, var(--jade), var(--mineral-blue)); }
.scatter-chart { background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px); }
.scatter-chart a { color: #07100d; background: var(--jade); border-color: #07100d; }
.axis-x, .axis-y { color: #5c6462; }
.lambda-chart div { border-color: var(--hairline); }
.lambda-chart b { background: var(--mineral-blue); }
.lambda-chart span, .lambda-chart small { color: #69716f; }
.source-donut { background: conic-gradient(var(--jade) 0 36%, #6c7ae8 36% 89%, #bf9a60 89% 100%); }
.source-donut > div { background: #0b0d0d; }
.source-donut strong, .source-donut span { color: var(--chalk); }
.source-panel li { border-color: var(--hairline); }
.source-panel li span { color: #7d8583; }
.source-panel li b { color: #d5dad6; }
.integrity-score strong { color: var(--chalk); font-weight: 400; }
.integrity-score > div span, .integrity-panel > p { color: #737b79; }
.original-figure img { background: #e9ece6; mix-blend-mode: normal; }

/* Status, dialogs, feedback */
.status-pill { border-radius: 99px; }
.status-positive { color: #9ee7ca; background: rgba(120,223,183,.06); border-color: rgba(120,223,183,.24); }
.status-active { color: #b8c2ff; background: rgba(128,147,255,.06); border-color: rgba(128,147,255,.24); }
.status-warning { color: #efc984; background: rgba(243,189,100,.06); border-color: rgba(243,189,100,.24); }
.status-negative { color: #ff9b93; background: rgba(255,102,85,.06); border-color: rgba(255,102,85,.24); }
.status-muted { color: #89918f; background: rgba(255,255,255,.025); border-color: #303635; }
.tag { color: #8e9693; background: transparent; border-color: #363c3b; border-radius: 99px; }
.tag-accent { color: var(--jade); border-color: rgba(120,223,183,.3); }
.command-dialog, .log-dialog, .figure-dialog { color: #c9cfcc; background: #0b0d0d; border-color: #343a39; border-radius: 0; box-shadow: 0 34px 110px rgba(0,0,0,.68); }
.command-dialog::backdrop, .log-dialog::backdrop, .figure-dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(10px); }
.command-head { border-color: var(--hairline); }
.command-head span { color: var(--jade); }
.command-head h2 { color: var(--chalk); font-weight: 400; }
.command-list a { color: #8b9391; border-radius: 0; }
.command-list a:hover { color: var(--chalk); background: #121515; }
.command-list b { color: var(--jade); }
.log-dialog pre { color: #a4e5cb; background: #070909; }
.toast { color: #b8bfbc; background: #0d1010; border-color: #333938; border-left-color: var(--jade); border-radius: 0; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.empty-state, .no-results, .not-found { color: #727a78; }
.not-found h2, .empty-state h3, .no-results h3 { color: var(--chalk); font-weight: 400; }

@media (prefers-reduced-motion: reduce) {
  .quantum-pulse { animation: none; }
}

@media (max-width: 1240px) {
  :root { --nav-width: 232px; }
  .global-header { grid-template-columns: var(--nav-width) minmax(260px, 1fr) auto; }
  .overview-cinematic { grid-template-columns: minmax(340px, .78fr) minmax(480px, 1.22fr); gap: 0 34px; padding-inline: 38px; }
  .hero-copy h2 { font-size: clamp(52px, 5.6vw, 72px); }
}

@media (max-width: 960px) {
  .global-header { height: 68px; grid-template-columns: 1fr auto; }
  .header-command { display: none; }
  .global-actions .system-chip { display: none; }
  .sidebar { top: 68px; width: 248px; transform: translateX(-104%); box-shadow: 30px 0 80px rgba(0,0,0,.55); }
  body.menu-open .sidebar { transform: translateX(0); }
  body.menu-open .scrim { display: block; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); }
  .workspace { margin-left: 0; padding-top: 68px; }
  .topbar { top: 68px; padding-inline: 22px; }
  .main-content { padding: 44px 22px 86px; }
  .main-content:has(.overview-cinematic) { padding-top: 0; }
  .overview-cinematic { grid-template-areas: "copy" "stage" "proof"; grid-template-columns: 1fr; grid-template-rows: auto minmax(560px, 65vh) auto; gap: 0; padding: 0 38px; }
  .overview-cinematic .hero-copy { padding-block: 78px; }
  .molecular-stage { border-top: 1px solid var(--hairline); }
  .overview-cinematic .hero-proof { grid-template-columns: repeat(2, 1fr); }
  .overview-cinematic .hero-proof span:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--hairline); }
  .overview-cinematic .hero-proof span:nth-child(4) { border-top: 1px solid var(--hairline); }
  .mobile-menu { display: flex !important; }
}

@media (max-width: 700px) {
  .global-header { height: 64px; padding-inline: 15px; }
  .global-header .brand-mark { width: 30px; height: 30px; }
  .brand-spectrum { right: 8px; bottom: -16px; width: 34px; }
  .workspace { padding-top: 64px; }
  .topbar { top: 64px; height: 54px; padding-inline: 14px; }
  .page-heading span { display: none; }
  .main-content { padding: 36px 15px 72px; }
  .main-content:has(.overview-cinematic) { padding: 0 15px 72px; }
  .page-intro { grid-template-columns: 36px 1fr; gap: 14px; margin-bottom: 38px; }
  .section-number { width: 32px; height: 32px; }
  .page-intro h2 { font-size: clamp(36px, 11vw, 50px); }
  .overview-cinematic { grid-template-rows: auto minmax(470px, 61vh) auto; padding: 0 20px; }
  .overview-cinematic .hero-copy { padding-block: 58px 54px; }
  .hero-kicker { max-width: 270px; line-height: 1.55; }
  .hero-copy h2 { margin-block: 26px 20px; font-size: clamp(48px, 14vw, 62px); }
  .hero-copy > p { font-size: 13px; }
  .hero-actions { align-items: flex-start; gap: 18px; }
  .molecular-stage { min-height: 470px; }
  .quantum-molecule { inset-block: 42px 116px; height: calc(100% - 158px); transform: scale(1.16); }
  .stage-head { padding-inline: 12px; }
  .stage-head span:first-child { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .stage-readout { height: 116px; grid-template-columns: repeat(2, 1fr); }
  .stage-readout > div { min-height: 58px; border-top: 1px solid var(--hairline); }
  .stage-readout > div:nth-child(-n+2) { border-top: 0; }
  .stage-readout > div:nth-child(odd) { border-left: 0; }
  .overview-cinematic .hero-proof span { min-height: 82px; padding-inline: 14px; }
  .metric-band { margin-bottom: 78px; }
  .metric-cell { min-height: 126px; padding: 22px 18px; }
  .panel-head { min-height: 64px; padding: 16px; }
  .form-section { padding: 30px 18px; }
  .queue-card { padding: 20px 16px; }
  .molecule-grid { gap: 1px; }
  .command-dialog { width: calc(100vw - 24px); }
}

@media (max-width: 430px) {
  .global-header .brand-type small { max-width: 128px; }
  .global-actions .header-icon-button { display: none; }
  .overview-cinematic { padding-inline: 17px; }
  .hero-copy h2 { font-size: 49px; }
}

/* Keep legacy atlas rules from tinting the live renderer. */
.candidate-tile .molecule-crop,
.molecule-card .molecule-crop,
.detail-molecule,
.hero-molecule {
  background-color: #080a0a;
  background-image: none;
  filter: none;
}
.molecule-visual, .detail-visual { background: #080a0a; }

/* --------------------------------------------------------------------------
 * Typography refinement — readable scientific density
 * Apple/Linear clarity, IBM research discipline, Stripe-grade tabular data.
 * Chinese stays in a text-optimised sans; mono is reserved for IDs and values.
 * ------------------------------------------------------------------------ */
:root {
  --font-ui: "Noto Sans SC", "Microsoft YaHei UI", "Segoe UI Variable Text", "PingFang SC", system-ui, sans-serif;
  --font-display: "Noto Sans SC", "Segoe UI Variable Display", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  --font-data: "IBM Plex Mono", "JetBrains Mono", SFMono-Regular, "Cascadia Code", Consolas, monospace;
  --sans: var(--font-ui);
  --serif: var(--font-display);
  --mono: var(--font-data);
  --type-body: 15px;
  --type-ui: 13px;
  --type-caption: 12px;
  --type-micro: 10.5px;
  --copy-primary: #d8ddda;
  --copy-secondary: #a2aaa7;
  --copy-tertiary: #7c8582;
}

html { font-size: 16px; }
body {
  font-family: var(--font-ui);
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  font-optical-sizing: auto;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
code, kbd, .mono { font-family: var(--font-data); font-variant-numeric: tabular-nums slashed-zero; }
:where(.metric-cell, .score-row, .score-pair, .queue-metadata, .cost-card, .fact-sheet, .ledger-row, .bar-chart, .lambda-chart, .integrity-score) {
  font-variant-numeric: tabular-nums slashed-zero;
}
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid rgba(120, 223, 183, .72);
  outline-offset: 2px;
}

/* Product chrome */
.global-header .brand-type strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.025em;
}
.global-header .brand-type small {
  color: #89918f;
  font: 10px/1.35 var(--font-ui);
  font-weight: 400;
  letter-spacing: .05em;
  text-transform: none;
}
.header-command button { font-size: 12.5px; letter-spacing: 0; }
.header-command kbd { font-size: 10.5px; }
.system-chip { min-height: 31px; padding-inline: 10px; font-size: 10px; letter-spacing: .055em; }
.workspace-avatar { font-size: 10px; font-family: var(--font-data); }
.workspace-switcher small { color: #737c79; font: 10px/1.25 var(--font-ui); font-weight: 500; letter-spacing: .055em; }
.workspace-switcher strong { font-size: 12.5px; font-weight: 500; }
.nav-group h2 {
  margin-bottom: 8px;
  color: #6f7875;
  font: 11px/1.3 var(--font-ui);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: none;
}
.nav-item { min-height: 44px; color: #929a97; font-size: 13px; line-height: 1.35; }
.nav-index { font: 9.5px/1 var(--font-data); }
.system-state strong { color: #c6ccca; font-size: 11.5px; font-weight: 500; }
.system-state small { color: #717a77; font-size: 10.5px; line-height: 1.45; }
.sidebar-foot > p { color: #68716e; font: 9.5px/1.45 var(--font-data); }
.page-heading span { color: #747d7a; font: 10px/1 var(--font-data); letter-spacing: .075em; }
.page-heading h1 { color: #e1e5e2; font-size: 15px; font-weight: 550; letter-spacing: -.01em; }

.button {
  min-height: 42px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}
.button-small { min-height: 36px; font-size: 12px; }
.text-link { color: #d3d8d5; font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.tag, .status-pill { font-size: 11px; line-height: 1.25; }

/* Page hierarchy */
.section-number { font: 10.5px/1 var(--font-data); }
.intro-copy .eyebrow, .panel-head span, .freeze-card > div > span, .cost-card > span, .reproduction-card > span, .detail-id > span {
  color: #818a87;
  font: 10.5px/1.35 var(--font-data);
  letter-spacing: .075em;
}
.page-intro h2 {
  max-width: 960px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 480;
  line-height: 1.06;
  letter-spacing: -.042em;
  text-wrap: balance;
}
.page-intro p { max-width: 760px; color: var(--copy-secondary); font-size: 15px; line-height: 1.72; }
.panel-head h3 { color: #eef0ed; font-family: var(--font-display); font-size: 17px; font-weight: 520; letter-spacing: -.02em; }

/* Overview editorial type */
.hero-kicker { color: #87908d; font: 10.5px/1.4 var(--font-data); letter-spacing: .09em; }
.hero-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(56px, 5.35vw, 80px);
  font-weight: 480;
  line-height: 1.01;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.hero-copy h2 em { font-weight: 440; letter-spacing: -.05em; }
.hero-copy > p { max-width: 540px; color: var(--copy-secondary); font-size: 15.5px; font-weight: 400; line-height: 1.72; }
.stage-head { height: 50px; padding-inline: 20px; color: #89928f; font: 10px/1 var(--font-data); letter-spacing: .07em; }
.stage-coordinate { color: #5e6764; font: 9px/1 var(--font-data); letter-spacing: .055em; }
.stage-readout { height: 84px; }
.stage-readout > div { gap: 7px; padding-inline: 16px; }
.stage-readout span { color: #77807d; font: 9.5px/1.15 var(--font-data); letter-spacing: .065em; }
.stage-readout strong { color: #e3e7e4; font: 12.5px/1 var(--font-data); }
.hero-molecule-scene { inset-block: 50px 84px; }
.overview-cinematic .hero-proof span { min-height: 100px; color: #818a87; font-size: 11.5px; line-height: 1.45; }
.overview-cinematic .hero-proof b { color: #e2e6e3; font: 13px/1.15 var(--font-data); }
.molecule-gesture { right: 14px; bottom: 12px; color: rgba(207,215,212,.5); font: 9px/1 var(--font-data); letter-spacing: .08em; }
.metric-cell > span { color: #828b88; font: 10.5px/1.3 var(--font-data); letter-spacing: .07em; }
.metric-cell strong { font-family: var(--font-data); font-weight: 430; letter-spacing: -.04em; }
.metric-cell strong em { color: #7b8481; font-size: 11px; }
.metric-cell p { color: #858e8b; font-size: 11.5px; line-height: 1.5; }

/* Forms and solver controls */
.form-section h3 { font-family: var(--font-display); font-size: 19px; font-weight: 520; letter-spacing: -.02em; }
.form-section header p { color: #7f8885; font-size: 12.5px; line-height: 1.6; }
.field > span, fieldset legend, .range-field > span, .inline-select > span,
.field label, .range-field label, .toggle-row strong, .choice-stack legend {
  color: #bcc3c0;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}
.field small, .range-field small, .choice-stack small, .backend-choice small {
  color: #808986;
  font-family: var(--font-ui);
  font-size: 11.5px;
  line-height: 1.5;
}
.field-error { font-size: 11.5px; line-height: 1.45; }
.field input, .field textarea, .field select, .range-field input, .search-field input, .inline-select select, .constraint-row input, .constraint-row select {
  min-height: 44px;
  font-family: var(--font-ui);
  font-size: 13.5px;
}
.choice-stack b, .backend-choice b { font-family: var(--font-ui); font-size: 13px; font-weight: 550; }
.constraint-head { color: #7e8784; font-size: 11px; }
.constraint-row strong { font-size: 12.5px; }
.freeze-card p { color: #7f8885; font-size: 12px; line-height: 1.55; }
.check-field { color: #aab2af; font-size: 12px; line-height: 1.55; }
.backend-choice strong { font-family: var(--font-display); font-size: 19px; font-weight: 520; }
.cost-card dt { color: #818a87; font-size: 11.5px; }
.cost-note p { font-size: 11.5px; line-height: 1.55; }
.lambda-scale span { font-size: 10.5px; }

/* Queue and run state */
.queue-filter button { min-height: 38px; color: #8e9794; font-size: 12px; }
.legend-line { color: #818a87; font-size: 11px; }
.demo-boundary span { font: 10.5px/1.5 var(--font-data); letter-spacing: .07em; }
.demo-boundary p { color: #969e9b; font-size: 11.5px; line-height: 1.55; }
.queue-core h3 { font-family: var(--font-display); font-size: 20px; font-weight: 520; }
.queue-route { color: #7d8683; font-size: 11px; line-height: 1.4; }
.queue-metadata dt { color: #7d8683; font-size: 10.5px; }
.queue-metadata dd { font-size: 12px; }
.progress-cluster > div { color: #909895; font-size: 11px; }
.run-identity strong { font-size: 13px; font-weight: 550; }
.run-identity span, .run-identity small, .run-meta small { color: #7e8784; font-size: 10.5px; }
.run-meta span { font-size: 12px; }

/* Candidate library and molecular detail */
.candidate-summary { color: #7f8885; font-size: 11.5px; }
.candidate-tile > span, .rank-mark, .valid-mark { font: 9.5px/1 var(--font-data); }
.molecule-body > span { font: 10px/1.35 var(--font-data); letter-spacing: .04em; }
.molecule-body h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.035em; }
.molecule-body > code { color: #858e8b; font-size: 10.5px; }
.molecule-body footer span { color: #79827f; font-size: 10px; }
.molecule-body footer b { color: #c4cac7; font-size: 10.5px; }
.score-row span { color: #89928f; font-size: 10.5px; }
.score-row strong { font-size: 12px; }
.breadcrumb { color: #818a87; font-size: 12px; }
.detail-tabs button { min-height: 36px; padding: 8px 14px; font-family: var(--font-ui); font-size: 12px; font-weight: 500; }
.detail-visual > p { color: #747d7a; font-size: 11px; line-height: 1.55; }
.detail-copy h2 { font-family: var(--font-data); font-weight: 420; letter-spacing: -.055em; }
.molecular-formula { font-family: var(--font-display); font-weight: 600; letter-spacing: -.025em; }
.detail-copy > code { color: #a0a8a5; font-size: 12px; line-height: 1.55; }
.detail-copy > p { color: #a0a8a5; font-size: 13px; line-height: 1.75; }
.score-pair span { font-size: 10.5px; }
.score-pair small { color: #7c8582; font-size: 10.5px; line-height: 1.45; }
.fact-sheet dt { color: #818a87; font-size: 11px; }
.fact-sheet dd { font-size: 12.5px; }
.evidence-mini strong { font-size: 12.5px; font-weight: 520; }
.evidence-mini small, .record-nav span { color: #818a87; font-size: 11px; }

/* Evidence, traceability and reproduction */
.evidence-score > span { color: #87908d; font-size: 11px; }
.evidence-score p { color: #858e8b; font-size: 11.5px; line-height: 1.55; }
.evidence-axis small { color: #7f8885; font-size: 10px; }
.evidence-boundary > span { font: 10.5px/1.2 var(--font-data); letter-spacing: .075em; }
.evidence-boundary p { color: #929a97; font-size: 11.5px; line-height: 1.6; }
.gate-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 520; }
.gate-card > p { color: #858e8b; font-size: 12px; line-height: 1.6; }
.gate-card footer code { color: #87908d; font-size: 10px; }
.ledger-head { color: #7e8784; font-size: 10.5px; }
.ledger-row code, .ledger-row > span { color: #c3c9c6; font-size: 10.5px; }
.table-note p { color: #858e8b; font-size: 11px; line-height: 1.55; }
.source-figure button { min-height: 34px; font-family: var(--font-ui); font-size: 11px; }
.missing-tile strong { font-size: 11.5px; }
.missing-tile small { color: #929a97; font-size: 10px; }
.reproduction-card li { color: #929a97; font-size: 11px; line-height: 1.5; }
.snapshot-badge { color: #a5aeab; font-size: 11px; }

/* Data visualisation: never hide evidence behind 6–8px labels */
.chart-caption { color: #818a87; font-size: 11.5px; line-height: 1.55; }
.bar-chart a { grid-template-columns: 30px 1fr 48px; }
.bar-chart a > span, .bar-chart a > b { color: #929a97; font: 10.5px/1 var(--font-data); }
.bar-chart a > b { color: #d4d9d6; }
.scatter-chart a { width: 20px; height: 20px; }
.scatter-chart a span { font: 8px/1 var(--font-data); font-weight: 600; }
.scatter-chart > i { color: #7d8683; font: 10px/1 var(--font-data); }
.lambda-chart span { color: #969e9b; font: 10px/1 var(--font-data); }
.lambda-chart small { color: #7e8784; font: 9.5px/1.5 var(--font-data); }
.source-donut small { color: #7f8885; font-size: 10px; }
.source-panel li span { color: #929a97; font-size: 11px; }
.source-panel li b { color: #d6dbd8; font: 11px/1 var(--font-data); }
.integrity-score span { color: #929a97; font-size: 11px; line-height: 1.55; }
.integrity-score span b { color: #d6dbd8; font: 10.5px/1.55 var(--font-data); }
.integrity-panel > p { color: #969e9b; font-size: 12px; line-height: 1.6; }

/* Dialogs and feedback */
.command-head span { font: 10px/1 var(--font-data); letter-spacing: .08em; }
.command-head h2 { font-family: var(--font-display); font-size: 19px; font-weight: 520; }
.command-list a { font-size: 12.5px; }
.command-list b { font: 10px/1 var(--font-data); }
.toast { font-size: 12px; line-height: 1.5; }

@media (max-width: 700px) {
  :root { --type-body: 14px; }
  .global-header .brand-type strong { font-size: 15px; }
  .global-header .brand-type small { font-size: 9.5px; }
  .page-heading h1 { font-size: 14px; }
  .page-intro h2 { font-size: clamp(34px, 10vw, 46px); line-height: 1.08; }
  .page-intro p { font-size: 14px; }
  .hero-copy h2 { font-size: clamp(46px, 13vw, 58px); }
  .hero-copy > p { font-size: 14.5px; }
  .overview-cinematic .hero-proof span { min-height: 88px; font-size: 10.5px; }
  .stage-readout span { font-size: 9px; }
  .stage-readout strong { font-size: 12px; }
  .metric-cell p { font-size: 11px; }
  .form-section h3 { font-size: 18px; }
  .detail-copy > p { font-size: 12.5px; }
}

/* Dense-surface legibility corrections found during rendered-page QA. */
.candidate-tile > span, .rank-mark, .valid-mark { font-size: 10px; }
.molecule-body > span { font-size: 11px; }
.molecule-body dl dt { color: #8b9491; font: 10.5px/1.2 var(--font-data); }
.molecule-body dl dd { color: #d0d6d3; font: 11.5px/1.35 var(--font-data); }
.molecule-body > code { font-size: 11px; }
.molecule-body footer span { font-size: 10.5px; }
.molecule-body footer b { font-size: 11.5px; font-weight: 500; }
.metric-cell > span { font-size: 11.5px; }
.scatter-chart a span { font-size: 9px; }
.panel-head .status-pill, .panel-head .tag { font-size: 11px; }
.evidence-axis span { color: #d6dbd8; font: 11px/1.2 var(--font-data); }
.backend-choice i { font-size: 10px; }
.backend-choice em { color: #929a97; font-size: 11.5px; }
.unit-input em { color: #818a87; font-size: 10.5px; }
.cost-card dd { color: #d9ddda; font-size: 12px; }
.range-field > span b { font-size: 11.5px; }
