:root {
  --ink: #121427;
  --muted: #53596e;
  --paper: #f8f8fb;
  --dark: #090d1c;
  --dark-fg: #f7f8ff;
  --dark-muted: #b5bfd6;
  --violet: #4c3fc4;
  --bright: #b2aaff;
  --rule: #daddE8;
  --edge: clamp(20px,5.8vw,84px);
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft Yahei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
button,select { font: inherit; }
button { cursor: pointer; }
a:focus-visible,button:focus-visible,select:focus-visible { outline: 3px solid #7764ff; outline-offset: 4px; }
a,button,select { -webkit-tap-highlight-color: #7764ff3b; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { line-height: 1.14; }
.wrap { width: min(1200px, calc(100% - var(--edge)*2)); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: 12px; left: 12px; transform: translateY(-150%); padding: 10px 12px; background: white; border-radius: 8px; }
.skip:focus { transform: none; }
section[id],#boundary { scroll-margin-top: 100px; }

/* Opening: quiet brand bar; a single visual and one launch statement. */
.top { position: sticky; top: 0; z-index: 5; background: #fafafdF4; border-bottom: 1px solid #e7e8ef; backdrop-filter: blur(16px); }
.nav { height: 70px; display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 28px; align-items: center; }
.brand { width: 132px; display: block; overflow: hidden; border-radius: 7px; }
.nav nav { display: flex; gap: clamp(20px,3vw,50px); align-items: center; }
.nav nav a { padding: 10px 0; color: #3b4057; white-space: nowrap; text-decoration: none; font-size: .95rem; font-weight: 640; }
.nav nav a:hover { color: var(--violet); }
.nav-code { justify-self: end; font-size: .91rem; font-weight: 670; text-decoration: none; white-space: nowrap; padding: 6px 13px; border: 1px solid #d8dce8; border-radius: 999px; }
.nav-code .ic { color: var(--violet); margin-left: .25rem; }
.nav-code:hover { border-color: #9287e0; }
.hero { min-height: min(735px,82svh); isolation: isolate; overflow: hidden; position: relative; background: var(--dark); color: var(--dark-fg); display: grid; align-items: stretch; }
.hero-visual,.hero-veil { position: absolute; inset: 0; pointer-events: none; }
.hero-visual { z-index: -1; overflow: hidden; background: radial-gradient(ellipse 55% 80% at 80% 58%,#151b49 0,transparent 80%); }
.hero-visual img { position: absolute; top: 50%; right: -3.5%; width: min(1120px,84%); max-width: none; transform: translateY(-50%); }
.hero-veil { background: linear-gradient(90deg, #090d1c 1%,#090d1ceb 21%,#090d1c70 48%,transparent 68%),linear-gradient(0deg,#090d1c 0%,transparent 28%); }
.hero-inner { min-width: 0; display: grid; grid-template-rows: 1fr auto; align-items: center; padding-top: 48px; }
.hero-copy { position: relative; max-width: 720px; padding-block: 48px 80px; }
.eyebrow { font-size: .87rem; font-weight: 710; letter-spacing: .06em; margin-bottom: 19px; color: var(--violet); }
.hero-copy .eyebrow { color: #c8caff; }
.hero-en { font: 600 .73rem var(--mono); letter-spacing: .08em; }
.hero h1 { font-size: clamp(49px,6.15vw,92px); font-weight: 770; letter-spacing: -.065em; line-height: 1.12; }
.hero h1 > span { display: block; }
.hero h1 > span:nth-child(2) { color: #b6adfd; }
.hero-dot { padding-left: .015em; }
.lede { font-size: clamp(1rem,1.6vw,1.17rem); color: var(--dark-muted); margin-top: 24px; line-height: 1.8; max-width: 28rem; }
.actions { margin-top: 29px; display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.btn { min-height: 49px; display: inline-flex; justify-content: center; align-items: center; gap: .66rem; text-decoration: none; font-weight: 700; padding: 10px 19px; border-radius: 999px; border: 1px solid transparent; }
.ic { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; flex: 0 0 auto; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.prime { background: #eeebff; color: #1a1542; }
.prime:hover { background: #fff; }
.hero-link { border-color: #49546f; color: var(--dark-fg); }
.hero-link:hover { background: #a5a8d018; border-color: #8b8bac; }
.hero-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0 19px; color: #adb7d2; border-top: 1px solid #8890bb3b; font-size: .76rem; }
.hero-caption span:first-child { font: 600 .71rem var(--mono); letter-spacing: .09em; }
.hero-caption i,.live { display: inline-block; width: 7px; height: 7px; margin-right: .45rem; border-radius: 50%; background: #adabff; box-shadow: 0 0 12px #9d9aff; vertical-align: .1em; }

/* Editorial product explanation and separated proof surface. */
.section { padding-block: clamp(68px,9vw,128px); }
.section-intro { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,.65fr); gap: 3rem; align-items: end; }
.section-index { display: inline-block; margin-right: .55em; font-family: var(--mono); font-weight: 650; opacity: .84; }
.section h2 { font-size: clamp(36px,5.2vw,72px); font-weight: 750; letter-spacing: -.061em; text-wrap: balance; }
.section-intro > p,.start-copy > p:not(.eyebrow) { color: var(--muted); font-size: clamp(1rem,1.5vw,1.12rem); max-width: 34ch; margin-bottom: .12rem; }
.stages { list-style: none; padding: 0; margin: clamp(34px,5vw,63px) 0 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-block: 1px solid var(--rule); }
.stages li { padding: 25px 23px 30px; }
.stages li:first-child { padding-left: 0; }
.stages li + li { border-left: 1px solid var(--rule); }
.stages .step { display: flex; align-items: center; justify-content: space-between; color: var(--violet); font: .84rem var(--mono); }
.step svg { width: 25px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.stages h3 { font-size: clamp(1.12rem,2.2vw,1.48rem); margin: 20px 0 9px; }
.stages p { color: var(--muted); font-size: .97rem; }

.lab { color: var(--dark-fg); background: radial-gradient(ellipse 62% 130% at 80% 60%, #18224a 0, transparent 95%),#10152b; }
.lab-wrap { display: grid; grid-template-columns: .68fr 1.25fr; align-items: center; gap: clamp(35px,6vw,85px); }
.lab .eyebrow,.start .eyebrow { color: #b6adff; }
.lab h2 { font-size: clamp(36px,4.8vw,63px); }
.lab-intro > p:not(.eyebrow) { margin-top: 18px; color: var(--dark-muted); max-width: 30ch; }
.switch { display: grid; margin-top: 25px; max-width: 350px; }
.switch button { min-height: 48px; padding: .55rem .65rem; display: grid; grid-template-columns: 2rem 1fr auto; column-gap: 6px; align-items: center; text-align: left; color: var(--dark-muted); background: none; border: 0; border-top: 1px solid #414d72; }
.switch button:last-child { border-bottom: 1px solid #414d72; }
.phase-number,.phase-arrow { font: 600 .84rem var(--mono); }
.phase-arrow { opacity: .48; }
.switch button[aria-pressed=true] { color: #f3efff; background: #8f7fff24; }
.switch button[aria-pressed=true] .phase-arrow,.switch button:hover .phase-arrow { opacity: 1; }
.switch button:hover { color: var(--dark-fg); }

.console { min-width: 0; color-scheme: dark; padding: clamp(16px,2.8vw,32px); border: 1px solid #3b486c; border-radius: 20px; background: #0c1227; box-shadow: 0 28px 60px #03081566; }
.console-top { min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 9px; }
.console-top > div { font-weight: 710; min-width: 0; }
.console-top .live { background: #b2aaff; margin-right: .53rem; }
.console .unit { color: #aeb9d9; margin-inline-start: .48rem; font: 500 .78rem var(--mono); white-space: nowrap; }
.pick { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; color: var(--dark-muted); font-size: .88rem; }
.pick select { min-height: 38px; padding: 4px 7px; background: #202a49; color: white; border: 1px solid #4f618b; border-radius: 7px; }
figure { margin: 14px 0 0; }
figure svg { display: block; width: 100%; height: auto; overflow: visible; }
.a,.b { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke: #b3a8ff; }
.b { stroke: #75e2f4; stroke-dasharray: 5 4; }
figcaption { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: .86rem; color: #c5cfe3; padding: 6px 0 14px; }
figcaption span { display: inline-flex; gap: .45rem; align-items: center; }
figcaption i { width: 1.05rem; border-top: 2px solid #b3a8ff; }
#legend-extra i { border-top: 2px dashed #75e2f4; }
.chart-step { margin-inline-start: auto; color: #a6b2cd; }
.metric { border-top: 1px solid #303e61; padding-top: 12px; font-size: .96rem; line-height: 1.5; }
.provenance { display: inline-block; color: #a8b6d2; font-size: .85rem; margin-top: 7px; text-underline-offset: 3px; }
a.provenance:hover { color: white; }

/* Research and start sections; the manuscript lines contrast the chart. */
.papers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(19px,3vw,38px); margin-top: clamp(34px,5vw,62px); }
.papers article { padding: clamp(21px,3.4vw,40px); background: #f0eff9; border-top: 3px solid #9183df; border-radius: 0 0 14px 14px; }
.papers article:nth-child(2) { background: #edf0fb; border-color: #7992df; }
.paper-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem; color: #3d3f5f; font: 620 .76rem var(--mono); letter-spacing: .05em; }
.papers h3 { font: 840 clamp(45px,7vw,96px)/1 -apple-system,BlinkMacSystemFont,system-ui,sans-serif; letter-spacing: -.09em; margin: 18px 0 13px; }
.papers p { color: #42495f; }
.paper-links { display: flex; flex-wrap: wrap; gap: .8rem 1.45rem; margin-top: 25px; }
.paper-links a { color: #4033a7; text-decoration: none; font-weight: 680; border-bottom: 1px solid transparent; }
.paper-links a:hover { border-color: currentColor; }
.boundary { color: var(--muted); max-width: 80ch; font-size: .97rem; margin-top: 25px; padding-inline-start: 15px; border-left: 2px solid #a79beb; }
.boundary strong { color: var(--ink); }
.start { background: radial-gradient(ellipse 80% 145% at 25% 70%,#242052,transparent 75%),#0c1022; color: var(--dark-fg); }
.start-wrap { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(29px,5vw,69px); }
.start h2 { font-size: clamp(34px,4.5vw,68px); }
.start-copy > p:not(.eyebrow) { color: var(--dark-muted); margin-top: 17px; }
.terminal { padding: 18px 19px; min-width: 0; background: #111830; border: 1px solid #465376; border-radius: 14px; }
.terminal > div { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: #d4d8f1; font-size: .89rem; }
.terminal button { font-size: .88rem; border: 1px solid #596585; color: #ebeaff; background: #222949; border-radius: 7px; min-height: 34px; padding-inline: 10px; }
.terminal button:hover { border-color: #c3baff; }
.terminal pre { margin: 17px 0 12px; padding: 13px; background: #0a0e20; border-radius: 8px; color: #ded9ff; font: .89rem/1.62 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.terminal p,#copy-status { font-size: .88rem; color: var(--dark-muted); }
#copy-status:not(:empty) { display: block; color: #c9c1ff; margin-top: 5px; }
footer { color: #b9c2d7; background: #090d1c; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 11px 20px; padding-block: 22px; font-size: .9rem; }
footer a { text-decoration: none; }
footer a:hover { color: white; }
.footer-label { opacity: .82; }

/* Animate presentation once, never the demo data or the reading order. */
@media (prefers-reduced-motion:no-preference) {
  .hero-visual img { animation: signal-enter 950ms ease-out both; }
  .hero-copy { animation: copy-enter 640ms cubic-bezier(.2,.7,.24,1) both; }
  @keyframes signal-enter { from { opacity: 0; transform: translate(2%,-49%); } to { opacity: 1; transform: translate(0,-50%); } }
  @keyframes copy-enter { from { opacity: .22; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }
@media (max-width: 1030px) {
  .hero-visual img { width: min(1070px,111%); right: -25%; }
  .hero-veil { background: linear-gradient(90deg,#090d1c 0%,#090d1ccc 25%,#090d1c44 58%, transparent 75%),linear-gradient(0deg,#090d1c 0%,transparent 21%); }
  .stages li { padding-inline: 14px; }
}
@media (max-width: 820px) {
  .lab-wrap,.start-wrap { gap: 28px; }
  .lab-wrap { grid-template-columns: .72fr 1fr; }
}
@media (max-width: 725px) {
  :root { --edge: clamp(15px,4.9vw,40px); }
  .nav { height: 62px; column-gap: 10px; }
  .nav nav { gap: clamp(9px,3vw,20px); }
  .nav nav a,.nav-code { font-size: .85rem; }
  .nav-code { padding: 5px 8px; }
  .brand { width: clamp(81px,24vw,106px); }
  section[id],#boundary { scroll-margin-top: 74px; }
  .hero { min-height: min(765px, max(640px,83svh)); }
  .hero-inner { padding-top: 0; align-items: start; }
  .hero-copy { padding-block: 57px 180px; }
  .hero h1 { font-size: clamp(34px,9.78vw,66px); letter-spacing: -.068em; }
  .hero .eyebrow { margin-bottom: 16px; }
  .lede { margin-top: 20px; max-width: 35ch; }
  .hero .actions { margin-top: 22px; }
  .hero-visual { background: radial-gradient(ellipse 84% 53% at 64% 76%,#22275c 0,transparent 100%); }
  .hero-visual img { top: 70%; right: -47%; width: max(675px,154%); }
  .hero-veil { background: linear-gradient(0deg,#090d1c 0%,transparent 17%,transparent 49%,#090d1cdd 68%,#090d1c 91%),linear-gradient(90deg,#090d1c45 0%,transparent 45%); }
  .hero-caption { align-self: end; padding-block: 13px 15px; font-size: .69rem; gap: 6px; }
  .hero-caption span:first-child { font-size: .63rem; letter-spacing: .015em; }
  .section-intro,.lab-wrap,.start-wrap { grid-template-columns: 1fr; gap: 20px; }
  .section-intro > p { max-width: 45ch; }
  .stages { grid-template-columns: 1fr 1fr; }
  .stages li,.stages li:first-child { padding: 21px 12px; }
  .stages li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stages li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .stages h3 { margin: 14px 0 7px; }
  .switch { display: grid; grid-template-columns: repeat(3,1fr); max-width: none; border-block: 1px solid #414d72; }
  .switch button,.switch button:last-child { border: 0; display: block; text-align: center; padding-inline: .18rem; font-size: .9rem; }
  .phase-number,.phase-arrow { display: none; }
  .papers { gap: 15px; }
}
@media (max-width: 410px) {
  .hero-copy .eyebrow > span { display: none; }
  .hero-caption span > i { display: none; }
  .pick > span { display: none; }
  #wave text { font-size: 17px; }
  .section h2 { font-size: clamp(29px,8.9vw,38px); }
  .papers { grid-template-columns: 1fr; }
  .nav-code .ic { display: none; }
  .console .unit { font-size: .72rem; }
}

/* Optional proof: do not expand the launch layout until the reader asks. */
.proof { margin-top: 14px; border-top: 1px solid #303e61; }
.proof summary { width: fit-content; margin-top: 8px; padding: 7px 0; cursor: pointer; font-size: .92rem; font-weight: 710; color: #ded9ff; }
.proof summary:hover { color: white; }
.proof summary:focus-visible,.value-scroll:focus-visible { outline: 2px solid #b5aaff; outline-offset: 4px; }
.proof-body { padding-top: 7px; }
.proof-tools { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 7px 14px; color: #dce4fa; font-size: .9rem; }
.csv-link { min-height: 39px; display: inline-flex; align-items: center; gap: .38rem; padding: 4px 9px; border: 1px solid #67719b; border-radius: 7px; text-decoration: none; font-weight: 680; }
.csv-link:hover { background: #2a3359; border-color: #9a97cf; color: #fff; }
.proof-hint,.recipe > p { margin-block: .52rem; font-size: .85rem; color: #b6c2df; }
.value-scroll { max-height: 11rem; overflow: auto; border: 1px solid #465478; border-radius: 8px; }
.value-table { border-spacing: 0; width: 100%; font-size: .83rem; font-variant-numeric: tabular-nums; }
.value-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.value-table thead { position: sticky; top: 0; background: #212946; }
.value-table th,.value-table td { text-align: right; padding: 6px 7px; border-bottom: 1px solid #28385b; }
.value-table tr > :first-child { text-align: left; }
.value-table tbody th { font-weight: 600; color: #bac4dc; }
.value-table tbody tr:last-child > * { border-bottom: 0; }
.recipe { padding-top: 20px; }
.recipe h3 { font-size: 1rem; }
.recipe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 13px; margin: .75rem 0 .38rem; font-size: .86rem; }
.recipe-grid > div { padding: 7px 0; min-width: 0; border-top: 1px solid #374568; }
.recipe-grid dt { font-weight: 700; color: #d8e0f5; }
.recipe-grid dd { margin: 0; color: #b6c2df; overflow-wrap: anywhere; }
.recipe-check code { display: block; font-size: .77rem; overflow-wrap: anywhere; color: #d8e0f5; }
.recipe-source { color: #cfc6ff; text-underline-offset: 3px; font-size: .87rem; }
@media (max-width: 420px) {
  .recipe-grid { grid-template-columns: 1fr; }
  .value-table th,.value-table td { padding-inline: 5px; }
}

/* Paired lab controls identify both data source and measured variable. */
.console-top { flex-wrap: wrap; }
.console-top .chart-context { flex: 1 0 max-content; }
.chart-context .plot-signal { margin-inline-start: .48rem; font-size: .83rem; font-weight: 560; color: #d9dfff; white-space: nowrap; }
.lab-controls { display: flex; gap: .7rem; }
.lab-controls .pick { min-width: 0; }
.chart-scope,.metric-scope { font-size: .84rem; color: #b6c2df; line-height: 1.55; }
.chart-scope { padding-bottom: .7rem; }
.metric-scope:not(:empty) { margin-top: .25rem; }
@media (max-width: 1150px) {
  .console-top .chart-context { flex-basis: 100%; }
}
@media (max-width: 475px) {
  .lab-controls { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; }
  .lab-controls .pick { flex-direction: column; align-items: stretch; gap: .2rem; }
  .lab-controls .pick > span { display: block; }
  .lab-controls select { width: 100%; min-height: 41px; }
}
.value-scroll { overflow-anchor: none; }

/* Share only public demo state; keep the default lab uncluttered. */
.lab-share { margin-top: 12px; border-top: 1px solid #303e61; }
.lab-share summary { width: fit-content; margin-top: 8px; padding: 7px 0; cursor: pointer; color: #ded9ff; font-size: .92rem; font-weight: 710; }
.lab-share summary:hover { color: white; }
.share-context { margin: .42rem 0 .34rem; color: #dce4fa; font-size: .9rem; }
.share-label { display: block; margin: 0 0 .25rem; color: #b6c2df; font-size: .83rem; }
.share-controls { display: flex; align-items: stretch; gap: .45rem; }
.share-controls input { flex: 1 1 0; width: 100%; min-width: 0; padding: .4rem .55rem; color: #dce4fa; background: #131d35; border: 1px solid #566382; border-radius: 7px; font: .82rem var(--mono); }
.share-controls button { flex: 0 0 auto; color: #e9e5ff; background: #202a49; font-size: .88rem; font-weight: 680; }
.share-help,.share-status { margin: .45rem 0; color: #b6c2df; font-size: .83rem; }
.share-status:empty { display: none; }
.share-status:not(:empty) { color: #bbdcf8; }
.lab-share summary:focus-visible,.share-controls input:focus-visible { outline: 2px solid #b5aaff; outline-offset: 3px; }
@media (max-width: 410px) { .share-controls { flex-wrap: wrap; } .share-controls input { flex-basis: 100%; } }

/* A low-priority, private-by-design format check next to local setup. */
.csv-preflight { grid-column: 1 / -1; border: 1px solid #485576; background: #111830; padding: .94rem 1.18rem; border-radius: 14px; min-width: 0; }
.csv-preflight summary { width: fit-content; cursor: pointer; font-weight: 730; color: #e5e0ff; }
.csv-preflight summary:focus-visible,.csv-preflight input:focus-visible,.csv-preflight button:focus-visible { outline: 2px solid #b5aaff; outline-offset: 3px; }
.csv-preflight-body { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: .85rem; }
.csv-preflight-body > * { min-width: 0; }
.csv-preflight-intro > label,.csv-report h3 { font-size: 1rem; font-weight: 700; }
.csv-preflight p,.csv-estimate-label { color: #c5d0e9; font-size: .89rem; margin-block: .48rem; }
.csv-inputs { display: flex; flex-wrap: wrap; gap: .35rem .56rem; align-items: start; padding-block: .35rem; }
.csv-inputs input { width: 100%; min-width: 0; font-size: .88rem; padding: 5px; border: 1px solid #526286; border-radius: 6px; }
.csv-inputs input::file-selector-button,.csv-preflight button { background: #252f53; color: #f1edff; border: 1px solid #5e6e97; border-radius: 6px; padding: .36rem .62rem; }
.csv-inputs input::file-selector-button { margin-right: .48rem; }
.csv-preflight button { font-size: .88rem; }
.csv-fixture { font-size: .86rem; text-underline-offset: 3px; color: #d0c7ff; }
.csv-report { padding-inline-start: 1rem; border-left: 1px solid #3f4d72; }
.csv-summary { display: grid; grid-template-columns: auto auto 1fr; gap: .5rem; margin: .65rem 0; font-size: .87rem; }
.csv-summary > div { min-width: 0; }
.csv-summary dt { color: #c3cce4; }
.csv-summary dd { margin: 0; color: #f3efff; font-weight: 660; overflow-wrap: anywhere; }
.csv-estimate { border-top: 1px solid #39486c; padding-top: .34rem; }
.csv-estimate-label { font-weight: 700; }
.csv-window-fields { display: flex; flex-wrap: wrap; gap: .42rem .8rem; }
.csv-window-fields label { display: flex; align-items: center; gap: .4rem; font-size: .87rem; color: #d4ddf3; }
.csv-window-fields input { width: 5.1rem; min-height: 35px; padding: 4px 6px; color: #f1edff; background: #1a2441; border: 1px solid #566688; border-radius: 6px; font: .89rem var(--mono); }
@media (max-width: 725px) {
  .csv-preflight { padding-inline: .85rem; }
  .csv-preflight-body { grid-template-columns: 1fr; gap: .92rem; }
  .csv-report { padding-inline-start: 0; border-left: 0; border-top: 1px solid #3f4d72; padding-top: .85rem; }
}
@media (max-width: 380px) { .csv-summary { grid-template-columns: 1fr 1fr; } .csv-summary > :last-child { grid-column: 1 / -1; } }

/* Locale controls share the same normal navigation and require no third party fonts. */
.nav-actions { justify-self: end; display: flex; align-items: center; gap: .65rem; }
#site-language { color: #3b4057; background: transparent; border: 1px solid #d8dce8; border-radius: 999px; min-height: 36px; min-width: 44px; padding: .3rem .55rem; font-size: .83rem; font-weight: 700; white-space: nowrap; }
#site-language:hover { color: var(--violet); border-color: #9287e0; }
.hero-copy .eyebrow > .hero-label { display: inline; }
html[lang="en"] .hero-divider,html[lang="en"] .hero-en { display: none; }
html[lang="en"] .hero h1 { font-size: clamp(58px,7.7vw,112px); letter-spacing: -.072em; }
html[lang="en"] .section h2 { text-wrap: balance; }
html[lang="en"] .console-top .chart-context { flex-basis: 100%; }
html[lang="en"] .lab-controls .pick select { max-width: 100%; }
html[lang="en"] .share-controls { flex-wrap: wrap; }
html[lang="en"] .share-controls input { flex-basis: 100%; }
@media (max-width: 725px) {
  html[lang="en"] .hero h1 { font-size: clamp(47px,10vw,69px); }
  .nav:has(#site-language:not([hidden])) { height: auto; min-height: 88px; grid-template-columns: 1fr 1fr; gap: 0 .45rem; padding-block: .36rem .17rem; }
  .nav:has(#site-language:not([hidden])) nav { grid-area: 2 / 1 / 3 / 3; justify-content: center; gap: clamp(1.1rem,6vw,2rem); }
  .nav:has(#site-language:not([hidden])) nav a { padding-block: .3rem; }
  section[id],#boundary { scroll-margin-top: 98px; }
}
@media (max-width: 410px) {
  html[lang="en"] .hero h1 { font-size: clamp(41px,11vw,51px); }
  html[lang="en"] .hero-caption span:first-child { flex: 0 1 38%; }
  html[lang="en"] .hero .btn { min-height: 44px; padding-inline: .78rem; }
}
@media (max-width: 1150px) {
  html[lang="en"] .lab-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); flex-basis: 100%; gap: .5rem; }
  html[lang="en"] .lab-controls .pick { flex-direction: column; align-items: stretch; gap: .2rem; }
  html[lang="en"] .lab-controls .pick > span { display: block; }
  html[lang="en"] .lab-controls select { width: 100%; }
}

.proof-actions { display: flex; flex-wrap: wrap; gap: .42rem; }
.proof-actions .print-sample { background: #202a49; color: inherit; font: inherit; font-weight: 680; }
.proof-actions .print-sample:hover { background: #2a3359; }

.point-inspector{margin:.45rem 1.1rem .9rem;color:#dce8ff;border:1px solid #34435f;border-radius:12px;background:#131c30}
.point-inspector summary{padding:.68rem .82rem;cursor:pointer;color:#ecf0ff;font-size:.9rem}
.point-inner{padding:0 .82rem .65rem}
.point-inner label{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.85rem;align-items:center;color:#b9c7e5}
.point-inner input{width:100%;min-width:0;accent-color:#b0a6ff}
.point-results{display:flex;align-items:flex-start;flex-wrap:wrap;gap:.55rem 1rem;margin:.55rem 0}
.point-results output{flex:1 1 245px;line-height:1.55;overflow-wrap:anywhere}
.point-inner p{margin:.3rem 0 0;color:#acbada;line-height:1.6;font-size:.83rem}
.point-inner :focus-visible,.point-inspector summary:focus-visible{outline:2px solid #a9a1ff;outline-offset:3px}

.alarm-lab{margin:.45rem 1.1rem .9rem;color:#dce8ff;border:1px solid #566078;border-radius:12px;background:#171e32}
.alarm-lab summary{padding:.68rem .82rem;cursor:pointer;color:#ecf0ff;font-size:.9rem}
.alarm-inner{padding:0 .82rem .85rem}
.alarm-inner p{margin:.3rem 0;color:#bbc8e1;line-height:1.5;font-size:.83rem}
.alarm-inputs,.alarm-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin:.67rem 0}
.alarm-inputs{grid-template-columns:repeat(3,minmax(0,1fr))}
.alarm-inputs label{min-width:0;color:#dce8ff;font-size:.82rem}
.alarm-inputs select,.alarm-inputs input{width:100%;min-width:0;min-height:44px;margin-top:.3rem;padding:.3rem .44rem;border:1px solid #7583a3;border-radius:6px;background:#111a2e;color:#edf4ff;font:inherit}
.alarm-inputs [aria-invalid="true"]{border-color:#ffc08b}
.alarm-cards section{min-width:0;border:1px solid #475370;border-radius:7px;padding:.55rem .62rem;background:#1b263c}
.alarm-cards h3{margin:0;color:#f0eaff;font-size:.89rem}
.alarm-cards ul{margin:.3rem 0 0;padding-left:1.12em;color:#dce8ff;font-size:.8rem}
.alarm-inner #alarm-error{color:#ffd3af}
.alarm-inner #alarm-export{margin-top:.3rem;color:#edf4ff;background:#25364a;min-height:44px}
.alarm-inner #alarm-export:hover{background:#35456a}
.alarm-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.alarm-lab :focus-visible{outline:2px solid #ffcf8e;outline-offset:2px}
@media(max-width:520px){.alarm-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}.alarm-inputs label:first-child{grid-column:1/-1}.alarm-cards{grid-template-columns:minmax(0,1fr)}.alarm-lab{margin-left:.75rem;margin-right:.75rem}}

.journey-shortcut{display:inline-block;margin-top:.48rem;color:#433899;font-size:.87rem;font-weight:700;text-underline-offset:.25em}
.journeys{margin-top:clamp(1.7rem,5vw,4rem);padding:clamp(1rem,3.2vw,2rem);border:1px solid #d7d5ea;border-radius:1rem;background:linear-gradient(128deg,#f5f1ff,#f8faff);scroll-margin-top:6.9rem;color:#151d33}
.journey-lead{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:.9rem}
.journey-lead h3{font-size:clamp(1.35rem,3vw,2.05rem);line-height:1.12;letter-spacing:-.03em;margin-top:.2rem}
.journey-lead .eyebrow{color:#59468c;margin:0}
.journey-lead>p{margin:0;max-width:32ch;color:#475375;font-size:.9rem}
.journey-cards{display:grid;gap:.5rem}
.journey-card{border:1px solid #d5d9ee;border-radius:.72rem;background:#fff;min-width:0}
.journey-card summary{display:flex;align-items:center;gap:.75rem;padding:.65rem .75rem;cursor:pointer;list-style:none;min-height:46px}
.journey-card summary::-webkit-details-marker{display:none}
.journey-card summary::after{content:'+';margin-left:auto;color:#463a83;font-size:1.18rem}
.journey-card[open] summary::after{content:'−'}
.journey-card strong,.journey-card small{display:block}
.journey-card small{color:#465577;font-size:.83em;margin-top:.12rem}
.journey-index{display:grid;place-items:center;border:1px solid #d1c8ee;background:#f1ebff;border-radius:.5rem;flex:0 0 2rem;height:2rem;color:#463a83;font-weight:700}
.journey-body{padding:.03rem .85rem .75rem 3.55rem;font-size:.89rem;color:#33415f}
.journey-body p{margin:.36rem 0}
.journey-body p.journey-limit{color:#5c3b35}
.journey-steps{padding-left:1.25rem;margin:.55rem 0}
.journey-steps li{padding-left:.14rem;margin:.3rem 0}
.journey-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem .8rem;margin-top:.64rem}
.journey-actions a,.journey-actions button{display:inline-flex;align-items:center;gap:.4rem;min-height:44px;font:inherit;font-weight:700;color:#463681}
.journey-actions a{text-underline-offset:.2em}
.journey-actions button{border:1px solid #c7bde5;border-radius:.5rem;background:#f7f1ff;padding:.3rem .56rem;text-align:left;cursor:pointer}
.journeys :focus-visible,.journey-shortcut:focus-visible{outline:2px solid #5941ac;outline-offset:2px}
#lab-title,#proof summary,#csv-preflight summary{scroll-margin-top:7rem}
.prebuilt-start{margin:.6rem 0;color:#dee5fb;font-size:.85rem}
.prebuilt-start summary{cursor:pointer;min-height:44px;align-content:center}
.prebuilt-start p{line-height:1.5}
@media(max-width:620px){.journey-lead{display:block}.journey-lead>p{margin-top:.45rem}.journey-body{padding-inline:.8rem}}
