:root {
  --bg: #111315;
  --bg-deep: #0b0d0e;
  --surface: #171a1b;
  --surface-soft: #1d2021;
  --line: #313738;
  --line-strong: #4d5554;
  --text: #f3f0e6;
  --muted: #a9ada7;
  --dim: #707875;
  --lime: #d7ff4f;
  --lime-dark: #1b230d;
  --cyan: #79d9e8;
  --amber: #ffbe55;
  --coral: #ff7a68;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  --radius: 6px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body, button, a { -webkit-font-smoothing: antialiased; }

button, a { font: inherit; }

button { color: inherit; }

button[hidden], [hidden] { display: none !important; }

a { color: inherit; }

p, h1, h2, h3, dl, dd, dt { margin: 0; }

h1, h2, h3 { letter-spacing: 0; line-height: 1.08; }

h1, h2 { font-weight: 700; }

h3 { font-weight: 650; }

svg { width: 17px; height: 17px; stroke-width: 1.8; flex: 0 0 auto; }

.shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--lime);
  color: #111315;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: rgba(11, 13, 14, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111315;
  background: var(--lime);
  border-radius: 50%;
}

.brand-mark svg { width: 16px; height: 16px; stroke-width: 2.3; }

.brand-name { font-size: 14px; font-weight: 760; letter-spacing: 0.015em; }

.brand-name span { color: var(--muted); font-weight: 520; }

.desktop-nav, .mobile-nav { display: flex; align-items: center; gap: 26px; }

.desktop-nav a, .mobile-nav a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 160ms ease;
}

.desktop-nav a:hover, .desktop-nav a:focus-visible, .mobile-nav a:hover, .mobile-nav a:focus-visible, .desktop-nav a.active { color: var(--text); }

.desktop-nav a.active::after { content: ""; display: block; height: 2px; margin-top: 5px; background: var(--lime); }

.mobile-nav-toggle { display: none !important; }

.mobile-nav { display: none; }

.hero {
  min-height: 370px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: end;
  gap: 56px;
  padding-top: 82px;
  padding-bottom: 64px;
}

.eyebrow, .section-kicker, .micro-label, .stage-index, .live-state, .session-chip, .key-hint, .hero-meta-row span, .result-band span, .subsection-note, .footer-bottom {
  font-family: var(--font-mono);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 650;
}

.eyebrow-dot, .status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(215, 255, 79, 0.12);
}

.hero h1 {
  max-width: 780px;
  margin-top: 19px;
  font-size: 64px;
  letter-spacing: -0.025em;
}

.accent-text { color: var(--lime); }

.hero-lede {
  max-width: 650px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-meta { border-top: 1px solid var(--line); }

.hero-meta-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 7px 12px;
  padding: 15px 0 14px;
  border-bottom: 1px solid var(--line);
}

.hero-meta-row span { grid-row: span 2; color: var(--lime); font-size: 10px; padding-top: 3px; }
.hero-meta-row strong { font-size: 13px; font-weight: 650; }
.hero-meta-row small { color: var(--dim); font-size: 12px; }

.tool-section {
  padding: 34px 0 54px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.native-ad-section {
  padding: 16px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.native-ad-inner {
  min-height: 108px;
  padding: 12px 16px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.native-ad-label {
  display: block;
  margin-bottom: 8px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-topline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-kicker { color: var(--lime); font-size: 10px; font-weight: 700; }
.section-topline h2 { margin-top: 8px; font-size: 29px; }
.section-intro { max-width: 560px; color: var(--muted); font-size: 14px; line-height: 1.65; }

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.system-status .status-dot { width: 6px; height: 6px; }

.lab-layout { display: grid; grid-template-columns: minmax(0, 1fr) 258px; gap: 18px; align-items: stretch; }

.workbench, .live-panel { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }

.workbench { min-width: 0; }

.workbench-header, .live-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 20px; border-bottom: 1px solid var(--line); }

.micro-label { display: block; color: var(--dim); font-size: 10px; font-weight: 700; }

.workbench-note { margin-top: 5px; color: var(--muted); font-size: 13px; }

.session-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cyan);
  font-size: 9px;
  white-space: nowrap;
}

.session-chip svg { width: 13px; height: 13px; }

.mode-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }

.mode-tab {
  min-height: 67px;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-content: center;
  gap: 3px 9px;
  padding: 12px 16px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.mode-tab svg { grid-row: span 2; align-self: center; color: var(--dim); }
.mode-tab span { font-size: 13px; font-weight: 700; }
.mode-tab small { color: var(--dim); font-size: 11px; }
.mode-tab:hover, .mode-tab:focus-visible { color: var(--text); background: #242829; }
.mode-tab.is-selected { color: #10130d; background: var(--lime); }
.mode-tab.is-selected svg, .mode-tab.is-selected small { color: #334015; }

.test-stage-wrap { padding: 16px; background: #111415; }

.test-stage {
  position: relative;
  min-height: 382px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 38px;
  background: #171a1b;
  border: 1px solid #3a4242;
  outline: none;
  cursor: crosshair;
  user-select: none;
  touch-action: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.test-stage:focus-visible { box-shadow: 0 0 0 3px rgba(215, 255, 79, 0.35); }

.stage-corner { position: absolute; width: 18px; height: 18px; border-color: var(--dim); pointer-events: none; }
.stage-corner-tl { top: 14px; left: 14px; border-top: 1px solid; border-left: 1px solid; }
.stage-corner-tr { top: 14px; right: 14px; border-top: 1px solid; border-right: 1px solid; }
.stage-corner-bl { bottom: 14px; left: 14px; border-bottom: 1px solid; border-left: 1px solid; }
.stage-corner-br { right: 14px; bottom: 14px; border-right: 1px solid; border-bottom: 1px solid; }

.stage-copy { max-width: 430px; text-align: center; pointer-events: none; }
.stage-index { color: var(--dim); font-size: 10px; font-weight: 700; }
.stage-copy h3 { margin-top: 12px; font-size: 27px; }
.stage-copy p { margin: 11px auto 0; color: var(--muted); font-size: 14px; }

.stage-action {
  position: absolute;
  bottom: 30px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 17px;
  color: #10130d;
  background: var(--lime);
  border: 1px solid var(--lime);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transform: translateX(-50%);
  transition: background 160ms ease, transform 160ms ease;
}

.stage-action:hover, .stage-action:focus-visible { background: #efffae; transform: translateX(-50%) translateY(-2px); }
.stage-action svg { width: 16px; height: 16px; }

.test-stage.is-waiting { background: #131718; border-color: #59615d; }
.test-stage.is-go { background: var(--lime); border-color: var(--lime); cursor: pointer; }
.test-stage.is-go .stage-copy h3, .test-stage.is-go .stage-copy p, .test-stage.is-go .stage-index { color: #10130d; }
.test-stage.is-go .stage-copy h3 { font-size: 31px; }
.test-stage.is-flicking, .test-stage.is-tracking { cursor: crosshair; }
.test-stage.is-feedback { cursor: default; }
.test-stage.is-early { background: #382622; border-color: var(--coral); }
.test-stage.is-miss { background: #35291e; border-color: var(--amber); }

.stage-target {
  position: absolute;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--lime);
  border-radius: 50%;
  background: rgba(215, 255, 79, 0.12);
  transform: translate(-50%, -50%);
  cursor: crosshair;
}

.stage-target::before { content: ""; width: 7px; height: 7px; background: var(--lime); border-radius: 50%; }
.stage-target::after { content: ""; position: absolute; width: 76px; height: 76px; border: 1px solid rgba(215, 255, 79, 0.35); border-radius: 50%; }
.stage-target.is-visible { display: flex; }
.stage-target.is-tracking { width: 52px; height: 52px; border-color: var(--cyan); background: rgba(121, 217, 232, 0.12); }
.stage-target.is-tracking::before { background: var(--cyan); }
.stage-target.is-tracking::after { border-color: rgba(121, 217, 232, 0.4); }

.stage-feedback { position: absolute; top: 22px; left: 50%; color: var(--muted); font-family: var(--font-mono); font-size: 11px; transform: translateX(-50%); }
.test-stage.is-go .stage-feedback { color: #26320d; }

.workbench-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 17px 20px 19px; border-top: 1px solid var(--line); }
.progress-copy strong { display: block; margin-top: 5px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
.workbench-actions { display: flex; align-items: center; gap: 8px; }
.key-hint { justify-self: end; color: var(--dim); font-size: 9px; }

kbd { padding: 4px 6px; color: var(--muted); border: 1px solid var(--line-strong); border-bottom-color: #6b7572; border-radius: 3px; font-family: var(--font-mono); font-size: 9px; }

.button, .icon-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button { padding: 0 14px; border: 1px solid transparent; }
.button:hover, .button:focus-visible, .icon-button:hover, .icon-button:focus-visible { transform: translateY(-1px); }
.button-primary { color: #10130d; background: var(--lime); border-color: var(--lime); }
.button-primary:hover, .button-primary:focus-visible { background: #efffae; }
.button-quiet { color: var(--muted); background: transparent; border-color: var(--line-strong); }
.button-quiet:hover, .button-quiet:focus-visible { color: var(--text); background: var(--surface-soft); border-color: var(--muted); }
.icon-button { width: 42px; padding: 0; color: var(--muted); background: transparent; border: 1px solid var(--line-strong); }
.icon-button:hover, .icon-button:focus-visible { color: var(--text); background: var(--surface-soft); }
.button svg, .icon-button svg { width: 15px; height: 15px; }

.live-panel { display: flex; flex-direction: column; }
.live-panel-heading h3 { margin-top: 6px; font-size: 17px; }
.live-state { color: var(--lime); font-size: 9px; }
.live-metrics { display: grid; grid-template-columns: repeat(2, 1fr); }
.live-metrics > div { min-height: 82px; padding: 17px 16px; border-bottom: 1px solid var(--line); }
.live-metrics > div:nth-child(odd) { border-right: 1px solid var(--line); }
.live-metrics dt { color: var(--dim); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }
.live-metrics dd { margin-top: 7px; color: var(--text); font-family: var(--font-mono); font-size: 19px; }
.live-panel-footer { margin-top: auto; padding: 18px 16px 20px; }
.legend-row { display: flex; align-items: center; gap: 9px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.legend-swatch { width: 10px; height: 10px; display: inline-block; border: 1px solid currentColor; }
.swatch-ready { color: var(--muted); background: #27302f; }
.swatch-go { color: var(--lime); background: var(--lime); }
.swatch-warn { color: var(--amber); background: var(--amber); }

.results-section { padding-top: 74px; padding-bottom: 92px; }
.results-topline { align-items: flex-end; }
.results-topline h2 { font-size: 32px; }
.results-topline .section-intro { margin-top: 10px; }
.result-actions { display: flex; align-items: center; gap: 8px; }
.result-empty { min-height: 166px; display: flex; align-items: center; gap: 18px; padding: 26px 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty-marker { color: var(--dim); font-family: var(--font-mono); font-size: 20px; }
.result-empty h3 { font-size: 17px; }
.result-empty p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: var(--lime); font-size: 12px; font-weight: 700; text-decoration: none; }
.text-link:hover, .text-link:focus-visible { color: #efffae; }
.text-link svg { width: 14px; height: 14px; }

.result-banner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 21px 0 16px; border-top: 1px solid var(--line); }
.result-banner h3 { margin-top: 7px; font-size: 22px; }
.result-band { text-align: right; }
.result-band span { display: block; color: var(--dim); font-size: 9px; }
.result-band strong { display: block; margin-top: 6px; color: var(--lime); font-family: var(--font-mono); font-size: 15px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric-cell { min-height: 125px; padding: 20px 18px; border-right: 1px solid var(--line); }
.metric-cell:last-child { border-right: 0; }
.metric-label { display: block; color: var(--dim); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }
.metric-cell strong { display: inline-block; margin-top: 13px; color: var(--text); font-family: var(--font-mono); font-size: 31px; font-weight: 500; }
.metric-cell small { margin-left: 7px; color: var(--muted); font-family: var(--font-mono); font-size: 10px; }

.result-detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); border-bottom: 1px solid var(--line); }
.trend-panel, .interpretation-panel { min-height: 246px; padding: 23px 20px; }
.trend-panel { border-right: 1px solid var(--line); }
.subsection-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.subsection-heading h3 { margin-top: 7px; font-size: 17px; }
.subsection-note { color: var(--dim); font-size: 9px; }
.trend-bars { min-height: 122px; display: flex; align-items: flex-end; gap: 12px; margin-top: 26px; padding: 0 4px; border-bottom: 1px solid var(--line-strong); }
.trend-bar-item { min-width: 26px; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.trend-bar-value { color: var(--muted); font-family: var(--font-mono); font-size: 9px; white-space: nowrap; }
.trend-bar { width: 100%; min-height: 8px; background: var(--cyan); border-top: 2px solid var(--text); }
.trend-bar-item:nth-child(2n) .trend-bar { background: var(--lime); }
.trend-bar-item:nth-child(3n) .trend-bar { background: var(--amber); }
.trend-bar-label { color: var(--dim); font-family: var(--font-mono); font-size: 9px; }
.chart-summary { margin-top: 14px; color: var(--dim); font-size: 11px; }

.interpretation-panel { background: #141718; }
.interpretation-panel h3 { margin-top: 15px; font-size: 20px; }
.interpretation-panel > p:not(.micro-label) { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.note-line { display: flex; align-items: flex-start; gap: 9px; margin-top: 27px; padding-top: 14px; color: var(--dim); border-top: 1px solid var(--line); font-size: 11px; }
.note-line svg { color: var(--cyan); width: 15px; height: 15px; margin-top: 2px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 540px; border-collapse: collapse; text-align: left; }
caption { padding: 18px 0 10px; color: var(--dim); font-family: var(--font-mono); font-size: 10px; text-align: left; text-transform: uppercase; }
th, td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
th { color: var(--dim); font-family: var(--font-mono); font-size: 10px; font-weight: 500; text-transform: uppercase; }
td { color: var(--muted); }
td strong { color: var(--text); font-family: var(--font-mono); font-weight: 500; }

.method-section { padding: 70px 0 74px; background: #141718; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method-item { min-height: 244px; padding: 22px 22px 28px; border-right: 1px solid var(--line); }
.method-item:last-child { border-right: 0; }
.method-number { color: var(--lime); font-family: var(--font-mono); font-size: 10px; }
.method-item h3 { max-width: 230px; margin-top: 32px; font-size: 18px; }
.method-item p { max-width: 320px; margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.setup-strip { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 42px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.setup-strip h3 { margin-top: 8px; font-size: 18px; }
.setup-strip > div > p:not(.micro-label) { max-width: 300px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.setup-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin: 0; padding: 0; list-style: none; counter-reset: setup; }
.setup-list li { display: grid; grid-template-columns: 25px 1fr; gap: 8px; align-items: start; padding-top: 3px; }
.setup-list span { color: var(--cyan); font-family: var(--font-mono); font-size: 10px; }
.setup-list p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.method-footnote { max-width: 820px; margin-top: 22px; color: var(--dim); font-size: 12px; line-height: 1.7; }
.method-footnote strong { color: var(--text); }

.protocol-section { padding: 70px 0 72px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.protocol-intro { max-width: 430px; }
.protocol-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.protocol-step { min-height: 220px; padding: 22px 22px 26px; border-right: 1px solid var(--line); }
.protocol-step:last-child { border-right: 0; }
.step-number { color: var(--lime); font-family: var(--font-mono); font-size: 10px; }
.protocol-step > svg { display: block; margin-top: 30px; color: var(--cyan); width: 21px; height: 21px; }
.protocol-step h3 { margin-top: 15px; font-size: 18px; }
.protocol-step p { max-width: 300px; margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.protocol-note { display: flex; align-items: flex-start; gap: 11px; max-width: 780px; margin-top: 24px; color: var(--muted); font-size: 12px; }
.protocol-note svg { color: var(--lime); margin-top: 2px; }
.protocol-note strong { color: var(--text); }

.faq-section { padding-top: 74px; padding-bottom: 88px; }
.faq-list { margin-top: 5px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; color: var(--text); font-size: 15px; font-weight: 650; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--lime); font-family: var(--font-mono); font-size: 18px; font-weight: 400; }
details[open] summary::after { content: "-"; }
details p { max-width: 760px; padding: 0 38px 20px 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr 0.7fr 0.8fr; gap: 40px; padding: 34px 0 32px; }
.footer-brand .brand-mark { width: 26px; height: 26px; }
.footer-copy { max-width: 230px; margin-top: 14px; color: var(--dim); font-size: 12px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-links .micro-label { margin-bottom: 5px; }
.footer-links a { color: var(--muted); font-size: 12px; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--text); }
.footer-note { display: flex; align-items: flex-start; gap: 10px; color: var(--dim); font-size: 11px; line-height: 1.6; }
.footer-note .status-dot { width: 6px; height: 6px; flex: 0 0 auto; margin-top: 6px; background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 190, 85, 0.1); }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0 16px; color: #59615e; border-top: 1px solid var(--line); font-size: 9px; }

.toast { position: fixed; z-index: 30; right: 18px; bottom: 18px; max-width: min(360px, calc(100% - 36px)); padding: 12px 14px; color: #111315; background: var(--lime); border: 1px solid var(--lime); border-radius: 4px; box-shadow: var(--shadow); font-size: 12px; font-weight: 700; }

.legal-nav { display: flex; align-items: center; gap: 22px; }
.legal-nav a { color: var(--muted); font-size: 12px; text-decoration: none; }
.legal-nav a:hover, .legal-nav a:focus-visible { color: var(--text); }
.legal-content { max-width: 900px; padding-top: 76px; padding-bottom: 95px; }
.legal-content h1 { max-width: 780px; margin-top: 16px; font-size: 48px; }
.legal-lede { max-width: 680px; margin-top: 20px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.last-updated { margin-top: 20px; color: var(--dim); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }
.legal-rule { margin-top: 42px; border-top: 1px solid var(--line); }
.legal-section { max-width: 760px; padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.legal-section h2 { margin-top: 8px; font-size: 23px; }
.legal-section p { margin-top: 13px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.inline-link { color: var(--lime); text-decoration-color: rgba(215, 255, 79, 0.45); text-underline-offset: 3px; }
.inline-link:hover, .inline-link:focus-visible { color: #efffae; }
.inline-code { color: var(--text); font-family: var(--font-mono); font-size: 0.92em; }
.contact-panel { display: flex; align-items: flex-start; gap: 17px; margin-top: 28px; padding: 22px; background: var(--surface); border: 1px solid var(--line); }
.contact-panel > svg { color: var(--cyan); width: 22px; height: 22px; margin-top: 3px; }
.contact-panel h2 { margin-top: 8px; color: var(--lime); font-family: var(--font-mono); font-size: 18px; font-weight: 500; word-break: break-word; }
.contact-panel p:not(.micro-label) { max-width: 610px; margin-top: 11px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.legal-list { margin: 15px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 2; }
.legal-page .footer-bottom { text-transform: none; letter-spacing: 0; font-family: var(--font-sans); font-size: 11px; }
.legal-page .footer-bottom a { color: var(--muted); text-decoration: none; }
.legal-page .footer-bottom a:hover, .legal-page .footer-bottom a:focus-visible { color: var(--text); }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 35px; }
  .hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 0; }
  .hero-meta-row { display: block; padding: 13px 12px 12px 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .hero-meta-row:last-child { border-right: 0; padding-left: 12px; }
  .hero-meta-row span, .hero-meta-row strong, .hero-meta-row small { display: block; }
  .hero-meta-row strong { margin-top: 8px; }
  .hero-meta-row small { margin-top: 2px; }
  .lab-layout { grid-template-columns: 1fr; }
  .live-panel { min-height: 0; }
  .live-panel-footer { margin-top: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px 16px; align-items: center; }
  .live-panel-footer .micro-label { grid-column: 1 / -1; }
  .legend-row { margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 32px, 1240px); }
  .desktop-nav { display: none; }
  .mobile-nav-toggle { display: inline-flex !important; }
  .mobile-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
  .mobile-nav[hidden] { display: none !important; }
  .mobile-nav a { padding: 12px 0; border-top: 1px solid var(--line); }
  .hero { min-height: 0; padding-top: 57px; padding-bottom: 48px; }
  .hero h1 { font-size: 44px; }
  .hero-lede { font-size: 15px; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta-row, .hero-meta-row:last-child { display: grid; grid-template-columns: 28px 1fr; gap: 4px 10px; padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-meta-row:last-child { padding-left: 0; }
  .hero-meta-row span { grid-row: span 2; }
  .hero-meta-row strong, .hero-meta-row small { margin-top: 0; }
  .section-topline, .results-topline { display: block; }
  .section-topline h2, .results-topline h2 { font-size: 27px; }
  .system-status { margin-top: 15px; }
  .workbench-header, .live-panel-heading { align-items: flex-start; padding: 16px; }
  .session-chip { margin-top: 2px; }
  .mode-tab { min-height: 74px; display: block; padding: 12px 10px; text-align: center; }
  .mode-tab svg { display: block; margin: 0 auto 7px; }
  .mode-tab span, .mode-tab small { display: block; }
  .mode-tab small { margin-top: 3px; font-size: 9px; }
  .test-stage-wrap { padding: 9px; }
  .test-stage { min-height: 330px; padding: 24px; }
  .stage-copy h3 { font-size: 23px; }
  .stage-copy p { font-size: 13px; }
  .workbench-footer { grid-template-columns: 1fr; gap: 15px; padding: 16px; }
  .workbench-actions { justify-content: flex-start; }
  .key-hint { justify-self: start; }
  .live-panel-footer { display: block; padding: 16px; }
  .legend-row { margin-top: 11px; }
  .result-actions { margin-top: 18px; flex-wrap: wrap; }
  .result-empty { align-items: flex-start; flex-wrap: wrap; padding: 22px 0; }
  .result-empty .text-link { width: 100%; margin-left: 38px; }
  .result-banner { align-items: flex-start; flex-direction: column; gap: 18px; }
  .result-band { text-align: left; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-cell:nth-child(2) { border-right: 0; }
  .metric-cell:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .metric-cell { min-height: 111px; padding: 17px 14px; }
  .metric-cell strong { font-size: 25px; }
  .metric-cell small { display: block; margin: 2px 0 0; }
  .result-detail-grid { grid-template-columns: 1fr; }
  .trend-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .trend-bars { gap: 7px; }
  .protocol-section { padding: 56px 0 60px; }
  .method-section { padding: 56px 0 60px; }
  .method-grid { grid-template-columns: 1fr; }
  .method-item { min-height: 0; padding: 20px 0 23px; border-right: 0; border-bottom: 1px solid var(--line); }
  .method-item:last-child { border-bottom: 0; }
  .method-item h3 { margin-top: 20px; }
  .setup-strip { grid-template-columns: 1fr; gap: 22px; }
  .setup-list { grid-template-columns: 1fr; gap: 12px; }
  .protocol-intro { margin-top: 16px; }
  .protocol-grid { grid-template-columns: 1fr; }
  .protocol-step { min-height: 0; padding: 20px 0 23px; border-right: 0; border-bottom: 1px solid var(--line); }
  .protocol-step:last-child { border-bottom: 0; }
  .protocol-step > svg { margin-top: 22px; }
  .faq-section { padding-top: 56px; padding-bottom: 64px; }
  summary { font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-note { grid-column: auto; }
  .legal-nav { gap: 12px; }
  .legal-nav a:nth-child(n + 3) { display: none; }
  .legal-content { padding-top: 57px; padding-bottom: 66px; }
  .legal-content h1 { font-size: 38px; }
  .legal-lede { font-size: 15px; }
  .contact-panel { padding: 18px; }
}

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