/* Нервная клетка · Скрининг и разбор.
   Палитра канала: лён, песок, шалфей, мох, туман, озеро, абрикос, терракота, орех, кора. */

@font-face {
  font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(../fonts/literata-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(../fonts/literata-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(../fonts/literata-cyrillic-wght-italic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Literata"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(../fonts/literata-latin-wght-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(../fonts/manrope-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(../fonts/manrope-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --linen: #F3EEE4;
  --sand: #E4D5BD;
  --sage: #A3B18A;
  --moss: #6F7F5B;
  --mist: #A9C0CC;
  --lake: #5F7F8E;
  --apricot: #E8B08A;
  --terracotta: #C8845E;
  --walnut: #7B5B45;
  --bark: #3B3631;

  --bg: var(--linen);
  --surface: #F8F4EC;
  --surface-2: #ECE5D7;
  --text: var(--bark);
  --muted: #6B6258;
  --heading: var(--walnut);
  --line: #DDD0B8;
  --accent: #56663F;
  --accent-2: var(--lake);
  --accent-soft: #DCE2CF;
  --warm-soft: #F4DFCF;
  --cool-soft: #DDE7EC;
  --brand: #D2604B;

  --sev0: #6F8F5B;
  --sev1: #CFA03C;
  --sev2: #D98244;
  --sev3: #C95B3C;
  --sev4: #B53D3D;

  --serif: "Literata", Georgia, "PT Serif", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(59 54 49 / .06), 0 8px 24px -12px rgb(59 54 49 / .16);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #23201C;
  --surface: #2E2A25;
  --surface-2: #28241F;
  --text: #E9E1D3;
  --muted: #A99F91;
  --heading: #EBC9A6;
  --line: #423B33;
  --accent: #B5C39C;
  --accent-2: #9BB8C7;
  --accent-soft: #343A2C;
  --warm-soft: #3A2E26;
  --cool-soft: #26323A;
  --brand: #EE8A70;
  --shadow: 0 1px 2px rgb(0 0 0 / .32), 0 10px 28px -12px rgb(0 0 0 / .52);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 17px/1.65 var(--sans);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--heading);
  line-height: 1.2;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(29px, 4.8vw, 44px); margin: .2em 0 .4em; }
h1 em { color: var(--accent); font-style: italic; font-weight: 400; }
h2 { font-size: clamp(22px, 3.3vw, 29px); margin: 1.4em 0 .55em; }
h3 { font-size: 20px; margin: 0 0 .45em; }
p { margin: 0 0 .85em; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 22px; }
.wrap--wide { max-width: 1040px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  padding: 11px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand-group { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--heading); }
.logo__img { width: 36px; height: 36px; flex: none; margin: -4px 0; }
.logo__text { font: 500 20px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.logo__text em { color: var(--brand); font-style: italic; }
.section-badge {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font: 600 12.5px/1.2 var(--sans); text-decoration: none; white-space: nowrap;
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-pill {
  display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none;
  border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.nav-pill:hover { background: var(--surface); border-color: var(--line); }

.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); display: grid; place-items: center;
  cursor: pointer; transition: color .15s, border-color .15s; flex: none;
}
.icon-btn:hover { color: var(--text); border-color: var(--sage); }
.ico-sun { display: none; }
:root[data-theme="dark"] .ico-moon { display: none; }
:root[data-theme="dark"] .ico-sun { display: block; }

/* ---------- Footer ---------- */
.site-footer { margin: 56px 0 36px; color: var(--muted); font-size: 14.5px; }
.footer-card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px; margin-bottom: 20px;
}
.footer-disclaimer { margin-bottom: 8px; color: var(--text); font-size: 14.5px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer nav a { color: var(--muted); font-weight: 500; }
.site-footer nav a:hover { color: var(--accent); }

/* ---------- Cards & Typography ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin: 0 0 16px;
}
.card.soft { background: var(--surface-2); box-shadow: none; }
.card.accent {
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface));
  border-color: color-mix(in srgb, var(--sage) 55%, var(--line));
  box-shadow: none;
}
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.5; }
.eyebrow {
  text-transform: uppercase; font-size: 12px; letter-spacing: .1em;
  color: var(--muted); font-weight: 700; margin-bottom: 6px;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--surface-2); color: var(--muted); border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}
.pill--accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.pill--warm { background: var(--warm-soft); color: var(--heading); border-color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font: 600 15px/1.25 var(--sans); text-decoration: none;
  background: var(--moss); color: #F8F4EC;
  transition: transform .12s ease, background .15s ease, filter .15s ease;
}
:root[data-theme="dark"] .btn { background: var(--accent); color: #23201C; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0) scale(.99); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn.secondary {
  background: var(--surface); color: var(--text); border-color: var(--line);
}
.btn.secondary:hover { background: var(--surface-2); border-color: var(--sage); }
.btn.ghost { background: transparent; color: var(--muted); padding: 8px 12px; border-color: transparent; }
.btn.ghost:hover { color: var(--text); background: var(--surface-2); }
.btn.small { padding: 8px 15px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }

/* ---------- Hero & Catalog ---------- */
.hero { padding: 32px 0 18px; }
.hero-lead {
  font: 400 clamp(17.5px, 2vw, 20px)/1.6 var(--serif);
  color: var(--text); max-width: 40em; margin-bottom: 18px;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badge-item {
  font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px;
}

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 26px;
  padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: 600 13.5px/1.2 var(--sans); transition: all .15s;
}
.chip:hover { border-color: var(--sage); }
.chip.is-on {
  background: var(--moss); color: #F8F4EC; border-color: var(--moss);
}
:root[data-theme="dark"] .chip.is-on {
  background: var(--accent); color: #23201C; border-color: var(--accent);
}

.catalog-section { margin-bottom: 32px; }
.section-head { margin-bottom: 16px; }
.section-head h2 { margin: 0 0 4px; }
.section-head p { margin: 0; }

.battery-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.battery-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent-soft) 50%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--sage) 60%, var(--line));
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.battery-card:hover { transform: translateY(-2px); border-color: var(--moss); }
.battery-card__top { margin-bottom: 10px; }
.battery-card__title { margin: 0 0 8px; font-size: 22px; }
.battery-card__title a { color: var(--heading); text-decoration: none; }
.battery-card__title a:hover { color: var(--accent); }
.battery-card__intro { font-size: 15px; line-height: 1.55; margin-bottom: 16px; }
.battery-card__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.test-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform .16s ease, border-color .16s ease;
  padding: 20px;
}
.test-card:hover { transform: translateY(-2px); border-color: var(--sage); text-decoration: none; }
.test-card__meta { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.test-card h3 { margin: 0 0 4px; font-size: 19px; color: var(--heading); }
.test-card__sub { margin-bottom: 8px; font-weight: 600; font-size: 12.5px; }
.test-card__desc { color: var(--muted); margin: 0 0 12px; flex: 1; }
.test-card__go { font-size: 14px; font-weight: 700; color: var(--accent); margin-top: auto; }

.features-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 12px; }
.features-grid p { margin-bottom: 0; margin-top: 4px; }

/* ---------- Test Runner ---------- */
.runner { min-height: 68vh; display: flex; flex-direction: column; padding-top: 12px; }
.intro-card { padding: 30px; }
.intro-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.intro-scale-title { font-weight: 600; margin-top: -6px; }
.intro-lead { font: 400 18.5px/1.6 var(--serif); margin: 12px 0 18px; }
.instruction-box { margin-bottom: 20px; border-left: 3px solid var(--sage); }
.intro-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.runner-card { padding: 28px; }
.progress { height: 7px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 10px 0 18px; }
.progress > div {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--moss), var(--terracotta));
  transition: width .24s ease;
}
.runner-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; }
.counter-pill { font-weight: 700; color: var(--heading); background: var(--surface-2); padding: 4px 12px; border-radius: 999px; }
.runner-instr { margin-bottom: 4px; }
.question {
  font: 500 clamp(21px, 3.4vw, 27px)/1.35 var(--serif);
  color: var(--heading);
  margin: 8px 0 22px; min-height: 2.6em;
}
.options { display: grid; gap: 10px; }
.option {
  text-align: left; padding: 15px 18px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--text); font: 500 16.5px/1.4 var(--sans); cursor: pointer;
  display: flex; gap: 14px; align-items: center; transition: border-color .12s, background .12s, transform .08s;
}
.option:hover { border-color: var(--moss); background: var(--surface); }
.option:active { transform: scale(.995); }
.option.shaded { background: color-mix(in srgb, var(--surface-2) 65%, var(--bg)); }
.option.selected {
  border-color: var(--moss); background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--moss);
}
.option kbd {
  font: 700 13px/1 var(--sans); color: var(--muted); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; min-width: 28px; text-align: center; flex: none;
}
.option.selected kbd { background: var(--moss); color: #F8F4EC; border-color: var(--moss); }
.fade { animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* ---------- Results & Synthesis Report ---------- */
.demo-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border-radius: var(--radius); margin: 10px 0 16px;
  background: var(--warm-soft); border: 1px solid color-mix(in srgb, var(--terracotta) 45%, var(--line));
}
.demo-banner__title { font-weight: 700; color: var(--heading); font-size: 15px; }
.demo-presets { display: flex; gap: 6px; flex-wrap: wrap; }

.result-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 10px 0 14px;
}

.result-hero {
  padding: 28px 28px 26px; border-radius: 22px; color: #F3EEE4; margin: 8px 0 18px;
  background: linear-gradient(135deg, #2B2621 0%, #3A4430 60%, #4C5B3E 100%);
  border: 1px solid #4A543E;
  box-shadow: var(--shadow);
}
.result-hero .eyebrow { color: #C5D3B0; }
.result-hero h1 { color: #F8F4EC; margin: .15em 0 .3em; font-size: clamp(26px, 4.2vw, 38px); }
.result-hero p { color: #DFD7C8; margin: 0; font-size: 16.5px; }

.sev-dot { display: inline-block; width: 10px; height: 10px; border-radius: 99px; margin-right: 7px; vertical-align: 1px; }
.sev-0 { background: var(--sev0); }
.sev-1 { background: var(--sev1); }
.sev-2 { background: var(--sev2); }
.sev-3 { background: var(--sev3); }
.sev-4 { background: var(--sev4); }

.gauge {
  position: relative; height: 14px; border-radius: 99px; overflow: hidden;
  display: flex; background: var(--surface-2); margin: 14px 0 6px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.gauge .seg { position: absolute; top: 0; bottom: 0; opacity: .88; }
.gauge-wrap { position: relative; margin-bottom: 24px; }
.gauge-marker {
  position: absolute; top: -5px; width: 5px; height: 24px; border-radius: 4px;
  background: var(--text); transform: translateX(-2.5px); box-shadow: 0 0 0 3px var(--surface);
}
.gauge-labels { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.threshold {
  position: absolute; top: -5px; bottom: -5px; width: 2.5px;
  background: var(--text); opacity: .55; z-index: 2;
}

.bar-row {
  display: grid; grid-template-columns: minmax(140px, 38%) 1fr auto;
  gap: 12px; align-items: center; margin: 10px 0;
}
.bar { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar > div { height: 100%; background: linear-gradient(90deg, var(--moss), var(--terracotta)); border-radius: 99px; }

.subscale-item {
  padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.subscale-item:last-child { border-bottom: 0; padding-bottom: 0; }
.subscale-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-bottom: 6px;
}
.subscale-meaning { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); }

.domain-row {
  padding: 16px 0; border-bottom: 1px dashed var(--line);
}
.domain-row:first-of-type { padding-top: 4px; }
.domain-row:last-of-type { border-bottom: 0; }
.domain-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
}

.symptom-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.symptom-chip {
  font-size: 13px; padding: 4px 11px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
}

.why { padding-left: 1.2em; margin: 8px 0 0; }
.why li { margin: 6px 0; }
.why .ans { color: var(--muted); font-size: 14px; }
.notice { border-left: 4px solid var(--sev1); }
.crisis {
  border: 2px solid var(--sev4);
  background: color-mix(in srgb, var(--sev4) 9%, var(--surface));
}
.crisis h2 { margin-top: 0; color: var(--sev4); }
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.contacts a { font-size: 21px; font-weight: 800; text-decoration: none; color: var(--sev4); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 10px 0 10px 46px; border-bottom: 1px dashed color-mix(in srgb, var(--line) 65%, transparent); }
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 10px; width: 32px; height: 32px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 14px; display: grid; place-items: center;
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; background: var(--surface-2); }

/* ---------- Messenger Share Panel ---------- */
.share-panel {
  border: 1.5px solid color-mix(in srgb, var(--sage) 60%, var(--line));
  background: linear-gradient(160deg, var(--surface), color-mix(in srgb, var(--accent-soft) 35%, var(--surface)));
}
.share-modes {
  display: flex; flex-wrap: wrap; gap: 6px; background: var(--surface-2);
  padding: 5px; border-radius: 14px; margin: 12px 0;
  border: 1px solid var(--line);
}
.share-modes button {
  flex: 1 1 auto; border: 0; background: transparent; padding: 9px 13px;
  border-radius: 10px; font: 600 13.5px/1.25 var(--sans); color: var(--muted); cursor: pointer;
  transition: all .15s;
}
.share-modes button.on {
  background: var(--surface); color: var(--heading); box-shadow: var(--shadow);
}
.share-preview-box {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-size: 14px; line-height: 1.5; color: var(--text);
  margin-bottom: 14px; white-space: pre-wrap; word-break: break-word;
}
.messenger-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px;
}
.msg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 10px; border-radius: 12px; font: 700 13.5px/1.2 var(--sans); text-align: center;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .1s, filter .15s;
}
.msg-btn:hover { transform: translateY(-1px); filter: brightness(1.05); text-decoration: none; }
.msg-btn--tg { background: #279EDA; color: #fff; }
.msg-btn--wa { background: #25A35A; color: #fff; }
.msg-btn--max { background: #6B4EFF; color: #fff; }
.msg-btn--copy { background: var(--moss); color: #F8F4EC; }
.msg-btn--png { background: var(--surface); color: var(--text); border-color: var(--line); }

textarea, input[type=text] {
  width: 100%; font: inherit; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--text); resize: vertical;
}
details summary { cursor: pointer; font-weight: 600; color: var(--heading); }
.stepper { display: flex; gap: 8px; margin: 10px 0 18px; }
.stepper div { flex: 1; height: 7px; border-radius: 99px; background: var(--surface-2); }
.stepper div.done { background: var(--moss); }
.stepper div.now { background: var(--terracotta); }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  .battery-grid { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr; gap: 4px; }
  .intro-card, .runner-card, .card { padding: 18px; }
  .result-hero { padding: 22px 18px; }
}

@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #f4f4f4; --text: #000; --muted: #444; --line: #ccc; --heading: #111; }
  .site-header, .site-footer, .no-print, .btn, .demo-banner, .result-toolbar { display: none !important; }
  .card { box-shadow: none; break-inside: avoid; border-color: #ccc; }
  .result-hero { background: #2B2621 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .gauge, .bar > div, .sev-dot, .seg { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .page-break { break-before: page; }
  body { font-size: 11.5pt; }
}
