/* =====================================================================
   Déclic Stats — feuille de style
   ===================================================================== */
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #f2efe8;
  --surface-3: #ebe7dd;
  --ink: #1b2130;
  --ink-2: #3a4254;
  --muted: #687084;
  --line: #e2ddd2;
  --line-2: #d3cdc0;

  --blue: #2a78d6;   --blue-ink: #1d5fae;   --blue-soft: #e7f0fb;
  --orange: #eb6834; --orange-ink: #b9481a; --orange-soft: #fdede4;
  --green: #1baf7a;  --green-ink: #0f7d56;  --green-soft: #e2f5ed;
  --purple: #4a3aa7; --purple-ink: #3b2e8a; --purple-soft: #ece9f8;
  --red: #d2445c;    --red-ink: #a52a40;    --red-soft: #fbe8eb;
  --yellow: #e9a91c; --yellow-ink: #8a6100; --yellow-soft: #fdf4dc;

  --ch1: var(--green);  --ch1-soft: var(--green-soft);  --ch1-ink: var(--green-ink);
  --ch2: var(--blue);   --ch2-soft: var(--blue-soft);   --ch2-ink: var(--blue-ink);
  --ch3: var(--purple); --ch3-soft: var(--purple-soft); --ch3-ink: var(--purple-ink);
  --accent: var(--blue); --accent-soft: var(--blue-soft); --accent-ink: var(--blue-ink);

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 24, 40, .05), 0 6px 22px rgba(20, 24, 40, .06);
  --shadow-lg: 0 2px 4px rgba(20, 24, 40, .06), 0 18px 40px rgba(20, 24, 40, .10);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --header-h: 62px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11141b; --surface: #181c25; --surface-2: #1f2430; --surface-3: #272d3b;
    --ink: #e8ebf1; --ink-2: #c3c9d5; --muted: #8f98aa; --line: #2b3241; --line-2: #3a4254;
    --blue: #5d9ced; --blue-ink: #8fbbf3; --blue-soft: #172538;
    --orange: #f0885a; --orange-ink: #f6ad8a; --orange-soft: #33201a;
    --green: #35c592; --green-ink: #6fdcb3; --green-soft: #112a22;
    --purple: #8d7fe3; --purple-ink: #b3a9f0; --purple-soft: #221e3a;
    --red: #ec6b80; --red-ink: #f39aa9; --red-soft: #351a21;
    --yellow: #f0bd4b; --yellow-ink: #f5d27f; --yellow-soft: #30270f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 22px rgba(0,0,0,.25);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 18px 40px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11141b; --surface: #181c25; --surface-2: #1f2430; --surface-3: #272d3b;
  --ink: #e8ebf1; --ink-2: #c3c9d5; --muted: #8f98aa; --line: #2b3241; --line-2: #3a4254;
  --blue: #5d9ced; --blue-ink: #8fbbf3; --blue-soft: #172538;
  --orange: #f0885a; --orange-ink: #f6ad8a; --orange-soft: #33201a;
  --green: #35c592; --green-ink: #6fdcb3; --green-soft: #112a22;
  --purple: #8d7fe3; --purple-ink: #b3a9f0; --purple-soft: #221e3a;
  --red: #ec6b80; --red-ink: #f39aa9; --red-soft: #351a21;
  --yellow: #f0bd4b; --yellow-ink: #f5d27f; --yellow-soft: #30270f;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 22px rgba(0,0,0,.25);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 18px 40px rgba(0,0,0,.35);
  color-scheme: dark;
}
body.ch1 { --accent: var(--ch1); --accent-soft: var(--ch1-soft); --accent-ink: var(--ch1-ink); }
body.ch2 { --accent: var(--ch2); --accent-soft: var(--ch2-soft); --accent-ink: var(--ch2-ink); }
body.ch3 { --accent: var(--ch3); --accent-soft: var(--ch3-soft); --accent-ink: var(--ch3-ink); }
body.tools { --accent: var(--orange); --accent-soft: var(--orange-soft); --accent-ink: var(--orange-ink); }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
strong { font-weight: 650; color: var(--ink); }
em { font-style: italic; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
code, kbd { font-family: var(--font-mono); font-size: .86em; background: var(--surface-2); border: 1px solid var(--line); padding: .08em .38em; border-radius: 6px; }
mark { background: var(--yellow-soft); color: inherit; padding: 0 .2em; border-radius: 4px; box-shadow: inset 0 -2px 0 var(--yellow); }
::selection { background: var(--accent-soft); }
.icon { width: 1.1em; height: 1.1em; vertical-align: -.18em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0; }
h1 { font-family: var(--font-head); font-weight: 650; font-size: clamp(2rem, 4.4vw, 2.85rem); letter-spacing: -.01em; font-variation-settings: "opsz" 96; }
h2 { font-family: var(--font-head); font-weight: 620; font-size: clamp(1.45rem, 2.8vw, 1.85rem); margin: 3.2rem 0 1rem; letter-spacing: -.005em; font-variation-settings: "opsz" 48; display: flex; gap: .7rem; align-items: baseline; }
h2 .num { font-family: var(--font-body); font-size: .8rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: .2rem .62rem; transform: translateY(-.25em); flex: none; }
h3 { font-size: 1.16rem; font-weight: 680; margin: 2rem 0 .7rem; }
h4 { font-size: 1rem; font-weight: 680; margin: 1.4rem 0 .5rem; }
ul, ol { padding-left: 1.4rem; margin: 0 0 1em; }
li { margin: .25em 0; }
li::marker { color: var(--muted); }

/* ---------------------------------------------------------------- header */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; gap: .8rem; padding: 0 1.1rem;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { white-space: nowrap; display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.22rem; letter-spacing: -.01em; }
.brand-logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--purple), var(--blue) 55%, var(--green)); display: grid; place-items: center; box-shadow: 0 3px 10px rgba(74, 58, 167, .3); }
.brand-logo svg { width: 22px; height: 22px; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: .02em; margin-top: -3px; }
.topbar .spacer { flex: 1; }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: .15s; }
.iconbtn:hover { color: var(--ink); border-color: var(--line-2); transform: translateY(-1px); }
.iconbtn .icon { width: 19px; height: 19px; }
.navtoggle { display: none; }
.global-progress { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--muted); }
.global-progress .bar { width: 120px; height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.global-progress .bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--blue), var(--purple)); border-radius: 99px; transition: width .6s; }
.readbar { position: fixed; top: var(--header-h); left: 0; height: 3px; width: 0; background: var(--accent); z-index: 49; transition: width .1s linear; }

/* ---------------------------------------------------------------- layout */
.layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.sidebar {
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto;
  padding: 1.2rem .9rem 3rem; border-right: 1px solid var(--line); background: var(--bg);
  scrollbar-width: thin;
}
.nav-group { margin-bottom: 1.3rem; }
.nav-title { display: flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: .3rem .6rem; }
.nav-title .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--muted)); }
.nav-group[data-ch="ch1"] { --c: var(--ch1); --cs: var(--ch1-soft); --ci: var(--ch1-ink); }
.nav-group[data-ch="ch2"] { --c: var(--ch2); --cs: var(--ch2-soft); --ci: var(--ch2-ink); }
.nav-group[data-ch="ch3"] { --c: var(--ch3); --cs: var(--ch3-soft); --ci: var(--ch3-ink); }
.nav-group[data-ch="tools"] { --c: var(--orange); --cs: var(--orange-soft); --ci: var(--orange-ink); }
.nav-group[data-ch="start"] { --c: var(--ink-2); --cs: var(--surface-2); --ci: var(--ink); }
.nav-link {
  display: flex; align-items: flex-start; gap: .55rem; padding: .42rem .6rem; border-radius: 9px;
  color: var(--ink-2); text-decoration: none; font-size: .9rem; line-height: 1.35; transition: background .15s;
}
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link.active { background: var(--cs); color: var(--ci); font-weight: 600; }
.nav-link .state { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 1.6px solid var(--line-2); display: grid; place-items: center; font-size: .62rem; font-weight: 700; color: var(--muted); }
.nav-link.active .state { border-color: var(--c); color: var(--ci); }
.nav-link.done .state { background: var(--c); border-color: var(--c); color: #fff; }
.nav-link.done .state::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.nav-link.done .state span { display: none; }
.nav-link.exos .state { border-style: dashed; }

.main { min-width: 0; padding: 2.2rem clamp(1rem, 4vw, 3.5rem) 5rem; display: grid; grid-template-columns: minmax(0, 780px) 220px; gap: 3rem; justify-content: center; }
.content { min-width: 0; }
.toc { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; font-size: .84rem; max-height: calc(100vh - var(--header-h) - 4rem); overflow-y: auto; }
.toc-title { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: .32rem 0 .32rem .8rem; border-left: 2px solid var(--line); line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--accent-ink); border-left-color: var(--accent); font-weight: 600; }
.page-wide .main { grid-template-columns: minmax(0, 1060px); }
.page-wide .toc { display: none; }

@media (max-width: 1240px) { .main { grid-template-columns: minmax(0, 780px); } .toc { display: none; } }
@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  .navtoggle { display: inline-grid; }
  .sidebar { position: fixed; left: 0; top: var(--header-h); width: min(320px, 88vw); z-index: 60; transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--shadow-lg); background: var(--surface); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: var(--header-h) 0 0 0; background: rgba(10, 12, 20, .35); z-index: 55; }
  .global-progress .bar { width: 70px; }
  .global-progress .label { display: none; }
}
@media (max-width: 400px) { .global-progress { display: none; } }
@media (max-width: 560px) {
  body { font-size: 16px; }
  .main { padding: 1.4rem 16px 4rem; }
  .brand small { display: none; }
}

/* ---------------------------------------------------------------- lesson hero */
.hero {
  position: relative; overflow: hidden; border-radius: 22px; padding: clamp(1.4rem, 4vw, 2.4rem);
  background: linear-gradient(140deg, var(--accent-soft), var(--surface) 70%); border: 1px solid var(--line);
  margin-bottom: 2.2rem;
}
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); pointer-events: none; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .8rem; }
.hero h1 { margin-bottom: .9rem; max-width: 18em; }
.hero .question { font-family: var(--font-head); font-style: italic; font-size: clamp(1.08rem, 2.2vw, 1.28rem); color: var(--ink-2); line-height: 1.5; margin-bottom: 1.2rem; max-width: 34em; font-variation-settings: "opsz" 24; }
.hero .question::before { content: "« "; color: var(--accent); }
.hero .question::after { content: " »"; color: var(--accent); }
.meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; padding: .28rem .7rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.chip .icon { width: 14px; height: 14px; }
.goals { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.goals li { display: flex; gap: .6rem; align-items: flex-start; margin: 0; font-size: .96rem; }
.goals li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.goals-title { font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.lead { font-size: 1.1rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- callout boxes */
.box { position: relative; margin: 1.6rem 0; padding: 1.05rem 1.2rem 1.05rem 1.2rem; border-radius: var(--radius); background: var(--bs, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--bc, var(--line)) 30%, transparent); }
.box > :last-child { margin-bottom: 0; }
.box-title { display: flex; align-items: center; gap: .5rem; font-size: .76rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--bi, var(--ink-2)); margin-bottom: .55rem; }
.box-title .icon { width: 18px; height: 18px; }
.box.idee     { --bs: var(--yellow-soft); --bc: var(--yellow); --bi: var(--yellow-ink); }
.box.retenir  { --bs: var(--blue-soft);   --bc: var(--blue);   --bi: var(--blue-ink); }
.box.piege    { --bs: var(--red-soft);    --bc: var(--red);    --bi: var(--red-ink); }
.box.exam     { --bs: var(--purple-soft); --bc: var(--purple); --bi: var(--purple-ink); }
.box.analogie { --bs: var(--green-soft);  --bc: var(--green);  --bi: var(--green-ink); }
.box.spss     { --bs: var(--surface);     --bc: var(--ink-2);  --bi: var(--ink-2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.box.calc     { --bs: var(--orange-soft); --bc: var(--orange); --bi: var(--orange-ink); }
.box.retenir.big { padding: 1.4rem 1.5rem; }
.box.exam .en-answer, .en-answer { font-family: var(--font-head); font-style: italic; font-size: 1.05rem; line-height: 1.55; color: var(--ink); background: var(--surface); border-radius: 10px; padding: .8rem 1rem; border-left: 3px solid var(--purple); margin: .5rem 0; font-variation-settings: "opsz" 18; }
.en-answer::before { content: "EN"; display: inline-block; font-family: var(--font-body); font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--purple); border-radius: 5px; padding: .05rem .35rem; margin-right: .55rem; vertical-align: .15em; }

/* SPSS menu path */
.menu { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .25rem; font-family: var(--font-mono); font-size: .8rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: .2rem .55rem; color: var(--ink); line-height: 1.6; }
.menu b { font-weight: 600; }
.menu i { font-style: normal; color: var(--muted); }

/* ---------------------------------------------------------------- steps */
.steps { list-style: none; counter-reset: st; padding: 0; margin: 1.4rem 0; }
.steps > li { counter-increment: st; position: relative; padding: 0 0 1.3rem 3.1rem; margin: 0; }
.steps > li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 750; font-size: .95rem; box-shadow: 0 0 0 4px var(--bg); z-index: 1; }
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: calc(1.05rem - 1px); top: 2.1rem; bottom: 0; width: 2px; background: color-mix(in srgb, var(--accent) 28%, transparent); }
.steps > li > strong:first-child, .steps .step-title { display: block; font-size: 1.02rem; margin-bottom: .15rem; padding-top: .2rem; }
.steps.compact > li { padding-bottom: .7rem; }

/* ---------------------------------------------------------------- figures & formulas */
.figure { margin: 1.8rem 0; padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.figure > svg, .figure .viz > svg { display: block; width: 100%; height: auto; }
.figure figcaption, .figcap { font-size: .86rem; color: var(--muted); margin-top: .7rem; line-height: 1.5; }
.figure figcaption b { color: var(--ink-2); }
.formula { margin: 1.4rem 0; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; text-align: center; }
.formula .legend { text-align: left; font-size: .9rem; color: var(--ink-2); margin-top: .7rem; border-top: 1px dashed var(--line); padding-top: .7rem; }
.formula .legend p { margin: .2rem 0; }
.katex { font-size: 1.08em; }
.katex-display { margin: .4rem 0 !important; overflow-x: auto; overflow-y: hidden; padding: .2rem 0; }

/* svg diagram text helpers (for hand-made schemas) */
.svg-t { font-family: var(--font-body); font-size: 14px; fill: var(--ink); }
.svg-t.small { font-size: 12px; fill: var(--muted); }
.svg-t.bold { font-weight: 700; }
.svg-t.head { font-family: var(--font-head); font-size: 17px; font-weight: 650; }
.svg-line { stroke: var(--ink-2); stroke-width: 1.6; fill: none; }
.svg-muted { stroke: var(--line-2); }
.svg-card { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.2; }
.f-blue { fill: var(--blue); } .f-orange { fill: var(--orange); } .f-green { fill: var(--green); } .f-purple { fill: var(--purple); } .f-red { fill: var(--red); } .f-yellow { fill: var(--yellow); }
.f-blue-soft { fill: var(--blue-soft); } .f-orange-soft { fill: var(--orange-soft); } .f-green-soft { fill: var(--green-soft); } .f-purple-soft { fill: var(--purple-soft); } .f-red-soft { fill: var(--red-soft); } .f-yellow-soft { fill: var(--yellow-soft); }
.s-blue { stroke: var(--blue); } .s-orange { stroke: var(--orange); } .s-green { stroke: var(--green); } .s-purple { stroke: var(--purple); } .s-red { stroke: var(--red); } .s-ink { stroke: var(--ink-2); }
.f-ink { fill: var(--ink); } .f-muted { fill: var(--muted); } .f-surface { fill: var(--surface); } .f-surface2 { fill: var(--surface-2); }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; margin: 1.4rem 0; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
table.nice { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.nice th, table.nice td { padding: .6rem .85rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.nice thead th { background: var(--surface-2); font-size: .84rem; color: var(--ink-2); font-weight: 700; }
table.nice tbody tr:last-child td { border-bottom: 0; }
table.nice td.num, table.nice th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.nice .ok { color: var(--green-ink); font-weight: 650; }
table.nice .ko { color: var(--red-ink); font-weight: 650; }

/* SPSS output */
.spss-out { margin: 1.6rem 0; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: #1a1a1a; box-shadow: var(--shadow); overflow: hidden; }
.spss-out .spss-bar { display: flex; align-items: center; gap: .5rem; padding: .45rem .8rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5a6170; background: #eef0f4; border-bottom: 1px solid #d9dde5; }
.spss-out .spss-bar::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #c8202f; box-shadow: 14px 0 0 #d9a21b, 28px 0 0 #2f8f4e; margin-right: 30px; }
.spss-out .spss-body { padding: .9rem 1rem 1rem; overflow-x: auto; }
.spss-title { font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: .95rem; text-align: center; margin: 0 0 .5rem; color: #1a1a1a; }
table.spss { border-collapse: collapse; font-family: Arial, Helvetica, sans-serif; font-size: .76rem; margin: 0 auto; color: #1a1a1a; background: #fff; }
table.spss th, table.spss td { padding: .3rem .45rem; border: 1px solid #c9ced8; white-space: nowrap; }
table.spss thead th { white-space: normal; min-width: 3.2em; line-height: 1.25; }
table.spss th { font-weight: 400; background: #fff; color: #2b2b2b; text-align: center; }
table.spss tbody th { text-align: left; }
table.spss td { text-align: right; font-variant-numeric: tabular-nums; }
table.spss td.txt { text-align: left; }
table.spss .hl { background: #fff3c4; outline: 2px solid #e9a91c; outline-offset: -2px; font-weight: 700; }
table.spss .hl2 { background: #dcebff; outline: 2px solid #2a78d6; outline-offset: -2px; font-weight: 700; }
table.spss .dim { color: #9aa0aa; }
.spss-note { font-family: Arial, Helvetica, sans-serif; font-size: .74rem; color: #444; margin-top: .45rem; text-align: left; }
.pin { display: inline-grid; place-items: center; min-width: 1.35em; height: 1.35em; padding: 0 .25em; border-radius: 999px; background: var(--orange); color: #fff; font: 700 .72rem/1 var(--font-body); vertical-align: .12em; margin: 0 .2em; box-shadow: 0 0 0 2px #fff; }
.pin.b { background: var(--blue); } .pin.g { background: var(--green); } .pin.p { background: var(--purple); }
.reading { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .55rem; }
.reading li { display: flex; gap: .6rem; align-items: flex-start; margin: 0; padding: .65rem .85rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: .94rem; }
.reading li .pin { flex: none; margin-top: .2em; }

/* ---------------------------------------------------------------- two columns / compare */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.4rem 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.card h4 { margin-top: 0; }
.card.good { border-top: 4px solid var(--green); }
.card.bad { border-top: 4px solid var(--red); }
.card.blue { border-top: 4px solid var(--blue); }
.card.orange { border-top: 4px solid var(--orange); }
.card.purple { border-top: 4px solid var(--purple); }
.say { display: flex; gap: .55rem; align-items: flex-start; margin: .35rem 0; }
.say::before { flex: none; font-weight: 800; width: 1.4em; height: 1.4em; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; margin-top: .2em; }
.say.yes::before { content: "✓"; background: var(--green-soft); color: var(--green-ink); }
.say.no::before { content: "✗"; background: var(--red-soft); color: var(--red-ink); }

/* vocabulary */
.en { font-style: italic; color: var(--purple-ink); border-bottom: 1px dotted var(--purple); cursor: help; }
.vocab { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 1.4rem; }
.vocab span { font-size: .84rem; padding: .3rem .65rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.vocab span b { color: var(--purple-ink); font-weight: 650; }

/* ---------------------------------------------------------------- quiz */
.quiz { margin: 1.6rem 0; padding: 1.15rem 1.2rem 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.quiz-head { display: flex; align-items: center; gap: .5rem; font-size: .74rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .45rem; }
.quiz-q { font-weight: 600; margin-bottom: .8rem; }
.quiz-opts { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; counter-reset: opt; }
.quiz-opts > li { counter-increment: opt; margin: 0; position: relative; display: flex; gap: .7rem; align-items: flex-start; padding: .65rem .85rem; border-radius: 11px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s, transform .1s; font-size: .96rem; line-height: 1.5; }
.quiz-opts > li::before { content: counter(opt, upper-alpha); flex: none; width: 1.6rem; height: 1.6rem; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: .8rem; background: var(--surface-2); color: var(--ink-2); }
.quiz:not(.answered) .quiz-opts > li:hover { border-color: var(--accent); transform: translateX(2px); }
.quiz-opts > li .why { display: none; }
.quiz.answered .quiz-opts > li { cursor: default; }
.quiz.answered .quiz-opts > li.picked .why, .quiz.answered .quiz-opts > li.right .why { display: block; font-size: .88rem; color: var(--ink-2); margin-top: .3rem; }
.quiz-opts > li > .opt-body { flex: 1; }
.quiz.answered .quiz-opts > li.right { border-color: var(--green); background: var(--green-soft); }
.quiz.answered .quiz-opts > li.right::before { content: "✓"; background: var(--green); color: #fff; }
.quiz.answered .quiz-opts > li.wrong { border-color: var(--red); background: var(--red-soft); }
.quiz.answered .quiz-opts > li.wrong::before { content: "✗"; background: var(--red); color: #fff; }
.quiz.answered .quiz-opts > li:not(.right):not(.wrong) { opacity: .6; }
.quiz-explain { display: none; margin-top: .9rem; padding: .8rem 1rem; border-radius: 10px; background: var(--surface-2); font-size: .94rem; }
.quiz.answered .quiz-explain { display: block; animation: fadein .3s; }
.quiz-explain > :last-child { margin-bottom: 0; }
.quiz-verdict { font-weight: 700; margin-bottom: .3rem; }
.quiz-verdict.ok { color: var(--green-ink); } .quiz-verdict.ko { color: var(--red-ink); }
.quiz-retry { margin-top: .6rem; }
@keyframes fadein { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font: 600 .95rem/1 var(--font-body); padding: .78rem 1.15rem; border-radius: 12px; border: 1.5px solid transparent; background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .15s, background .15s; box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn.ghost:hover { border-color: var(--ink-2); }
.btn.small { padding: .5rem .8rem; font-size: .85rem; border-radius: 9px; }
.btn.done { background: var(--green); box-shadow: 0 4px 14px color-mix(in srgb, var(--green) 30%, transparent); }
.btn .icon { width: 18px; height: 18px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------------------------------------------------------------- details: solutions / hints */
details.solution, details.hint, details.more { margin: 1rem 0; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
details.solution > summary, details.hint > summary, details.more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .55rem; padding: .7rem 1rem; font-weight: 650; font-size: .93rem; user-select: none; }
details > summary::-webkit-details-marker { display: none; }
details.solution > summary { color: var(--green-ink); background: var(--green-soft); }
details.hint > summary { color: var(--yellow-ink); background: var(--yellow-soft); }
details.more > summary { color: var(--ink-2); background: var(--surface-2); }
details > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
details[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
details > .det-body { padding: 1rem 1.15rem .4rem; border-top: 1px solid var(--line); }
details > .det-body > :last-child { margin-bottom: .6rem; }

/* ---------------------------------------------------------------- exercises */
.exo { margin: 2rem 0; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.exo-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.exo-head h3 { margin: 0; font-size: 1.08rem; flex: 1 1 260px; }
.exo-body { padding: 1.1rem 1.25rem .4rem; }
.exo-body > ol > li, .exo-body ol.qs > li { margin-bottom: .7rem; }
.level { display: inline-flex; align-items: center; gap: .1rem; font-size: .8rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; letter-spacing: .03em; }
.level.l1 { background: var(--green-soft); color: var(--green-ink); }
.level.l2 { background: var(--blue-soft); color: var(--blue-ink); }
.level.l3 { background: var(--purple-soft); color: var(--purple-ink); }
.level-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; margin: 1.2rem 0 2rem; }
.level-legend > div { padding: .8rem 1rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; }
.dataset { font-size: .76rem; font-weight: 600; padding: .22rem .55rem; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }

/* ---------------------------------------------------------------- end of lesson */
.summary { margin: 3rem 0 1.5rem; padding: 1.4rem 1.5rem; border-radius: 18px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.summary h2 { margin-top: 0; font-size: 1.35rem; }
.summary ul { margin-bottom: 0; }
.lesson-end { margin-top: 3rem; display: grid; gap: 1rem; }
.done-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.done-card p { margin: 0; color: var(--ink-2); }
.feedback { padding: 1.2rem 1.4rem; border-radius: 16px; background: var(--surface); border: 1px dashed var(--line-2); }
.feedback h3 { margin: 0 0 .3rem; font-size: 1.02rem; }
.feedback p.sub { color: var(--muted); font-size: .9rem; margin-bottom: .8rem; }
.fb-choices { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.fb-choice { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border-radius: 11px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; font: 600 .9rem var(--font-body); color: var(--ink-2); transition: .15s; }
.fb-choice:hover { border-color: var(--line-2); color: var(--ink); }
.fb-choice.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.fb-choice .em { font-size: 1.15rem; }
.feedback textarea { width: 100%; min-height: 84px; resize: vertical; padding: .7rem .85rem; border-radius: 11px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: .95rem/1.5 var(--font-body); }
.feedback textarea:focus, input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.fb-status { font-size: .9rem; margin-top: .6rem; }
.fb-status.ok { color: var(--green-ink); } .fb-status.err { color: var(--red-ink); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.pager a { display: block; padding: 1rem 1.2rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); transition: .15s; }
.pager a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.pager small { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: .2rem; }
.pager .next { text-align: right; grid-column: 2; }
.pager span { font-weight: 650; line-height: 1.35; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; } }

/* ---------------------------------------------------------------- interactive viz */
.viz-wrap { margin: 1.8rem 0; padding: 1.1rem 1.1rem 1rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.viz-head { display: flex; align-items: center; gap: .55rem; margin-bottom: .2rem; }
.viz-head .badge { font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #fff; background: var(--accent); border-radius: 6px; padding: .18rem .45rem; }
.viz-head h4 { margin: 0; font-size: 1rem; }
.viz-sub { font-size: .9rem; color: var(--muted); margin: .1rem 0 .8rem; }
.viz svg { display: block; width: 100%; height: auto; overflow: visible; }
.viz .axis line, .viz .axis path { stroke: var(--line-2); }
.viz .axis text, .viz text.lab { fill: var(--muted); font: 12px var(--font-body); }
.viz text.lab-strong { fill: var(--ink); font: 600 13px var(--font-body); }
.viz .grid line { stroke: var(--line); stroke-dasharray: 2 4; }
.controls { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; align-items: center; margin: .8rem 0 .3rem; font-size: .9rem; }
.controls label { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-2); font-weight: 550; }
.controls input[type=range] { width: 150px; accent-color: var(--accent); }
.controls select { font: inherit; padding: .35rem .5rem; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); }
.controls output, .controls .val { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); min-width: 2.5em; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.seg button { font: 600 .82rem var(--font-body); padding: .42rem .7rem; border: 0; background: var(--bg); color: var(--ink-2); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button.on { background: var(--accent); color: #fff; }
.readout { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; margin-top: .8rem; }
.readout > div { padding: .6rem .8rem; border-radius: 11px; background: var(--surface-2); }
.readout small { display: block; font-size: .78rem; font-weight: 650; color: var(--muted); }
.readout b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.verdict { margin-top: .8rem; padding: .75rem 1rem; border-radius: 11px; font-size: .95rem; border: 1px solid var(--line); }
.verdict.reject { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.verdict.keep { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .82rem; color: var(--ink-2); margin-top: .5rem; }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* test finder */
.finder { display: grid; gap: .9rem; }
.finder-crumbs { display: flex; flex-wrap: wrap; gap: .4rem; }
.finder-crumbs button { font: 600 .8rem var(--font-body); padding: .3rem .65rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); cursor: pointer; }
.finder-q { font-family: var(--font-head); font-size: 1.2rem; font-weight: 620; }
.finder-opts { display: grid; gap: .55rem; }
.finder-opts button { text-align: left; font: 500 .96rem/1.45 var(--font-body); padding: .8rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; transition: .15s; }
.finder-opts button:hover { border-color: var(--accent); transform: translateX(3px); }
.finder-opts button small { display: block; color: var(--muted); font-size: .84rem; margin-top: .15rem; }
.finder-result { border-radius: 16px; padding: 1.2rem 1.3rem; background: linear-gradient(140deg, var(--accent-soft), var(--surface)); border: 1px solid var(--line); }
.finder-result h4 { font-family: var(--font-head); font-size: 1.35rem; margin: 0 0 .2rem; }
.finder-result .fr { color: var(--muted); margin-bottom: .8rem; }
.finder-result dl { display: grid; grid-template-columns: 9.5rem 1fr; gap: .4rem .8rem; margin: 0; font-size: .93rem; }
.finder-result dt { font-weight: 700; color: var(--ink-2); }
.finder-result dd { margin: 0; }
@media (max-width: 560px) { .finder-result dl { grid-template-columns: 1fr; } .finder-result dt { margin-top: .4rem; } }

/* ---------------------------------------------------------------- home */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding: clamp(1.4rem, 4vw, 2.6rem); border-radius: 26px; background: radial-gradient(120% 140% at 0% 0%, var(--purple-soft), transparent 55%), radial-gradient(120% 140% at 100% 100%, var(--green-soft), transparent 50%), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 2.5rem; }
.home-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); margin-bottom: .8rem; }
.home-hero h1 em { font-style: italic; color: var(--purple); font-variation-settings: "opsz" 120; }
.home-hero p { font-size: 1.1rem; color: var(--ink-2); }
.home-hero .actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
@media (max-width: 820px) { .home-hero { grid-template-columns: 1fr; } .home-hero .art { order: -1; max-width: 360px; } }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin: 1.2rem 0 2.6rem; }
.how > div { padding: 1.2rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.how .n { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 800; margin-bottom: .6rem; }
.how h4 { margin: 0 0 .3rem; }
.how p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.chapter-block { margin: 2.4rem 0; }
.chapter-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.chapter-head .big { font-family: var(--font-head); font-size: 2.8rem; font-weight: 700; line-height: 1; color: var(--c); opacity: .9; }
.chapter-head h2 { margin: 0; font-size: 1.5rem; }
.chapter-head p { margin: .1rem 0 0; color: var(--muted); font-size: .95rem; }
.chapter-head .pct { margin-left: auto; font-size: .85rem; font-weight: 700; color: var(--c); white-space: nowrap; }
.chapter-block[data-ch="ch1"] { --c: var(--ch1); --cs: var(--ch1-soft); --ci: var(--ch1-ink); }
.chapter-block[data-ch="ch2"] { --c: var(--ch2); --cs: var(--ch2-soft); --ci: var(--ch2-ink); }
.chapter-block[data-ch="ch3"] { --c: var(--ch3); --cs: var(--ch3-soft); --ci: var(--ch3-ink); }
.chapter-block[data-ch="tools"] { --c: var(--orange); --cs: var(--orange-soft); --ci: var(--orange-ink); }
.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.lesson-card { position: relative; display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1.05rem; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: .15s; min-height: 118px; }
.lesson-card:hover { border-color: var(--c); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.lesson-card .k { font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--ci); }
.lesson-card .t { font-weight: 650; line-height: 1.35; }
.lesson-card .d { margin-top: auto; font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; }
.lesson-card.done::after { content: "✓"; position: absolute; top: .8rem; right: .8rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.lesson-card.exos { background: var(--cs); border-style: dashed; }

/* diagnostic */
.diag-result { margin-top: 2rem; padding: 1.5rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.diag-bars { display: grid; gap: .8rem; margin: 1rem 0 1.4rem; }
.diag-bar { display: grid; grid-template-columns: 11rem 1fr 3.5rem; gap: .8rem; align-items: center; font-size: .93rem; }
.diag-bar .track { height: 12px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.diag-bar .track span { display: block; height: 100%; border-radius: 99px; background: var(--c, var(--accent)); width: 0; transition: width .8s; }
@media (max-width: 560px) { .diag-bar { grid-template-columns: 1fr 3rem; } .diag-bar .track { grid-column: 1 / -1; grid-row: 2; } }
.diag-progress { position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; display: flex; align-items: center; gap: .8rem; padding: .6rem .9rem; border-radius: 12px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; margin-bottom: 1rem; }
.diag-progress .track { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.diag-progress .track span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }

/* admin */
.fb-list { display: grid; gap: .8rem; margin-top: 1rem; }
.fb-item { padding: .9rem 1.1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.fb-item .top { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: .3rem; }
.fb-item .top b { color: var(--ink); font-size: .92rem; }
.fb-item pre { white-space: pre-wrap; font: .85rem/1.5 var(--font-mono); background: var(--surface-2); padding: .6rem .8rem; border-radius: 9px; margin: .5rem 0 0; }
input[type=text], input[type=password] { font: inherit; padding: .6rem .8rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); }

/* footer */
.foot { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }

/* print */
@media print {
  .topbar, .sidebar, .toc, .lesson-end, .readbar, .controls { display: none !important; }
  .layout, .main { display: block; padding: 0; }
  body { background: #fff; font-size: 12pt; }
  details > .det-body { display: block !important; }
  .box, .quiz, .figure, .exo, .viz-wrap { break-inside: avoid; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.viz svg text.lab, .viz svg text.lab-strong { paint-order: stroke; stroke: var(--surface); stroke-width: 3.5px; stroke-linejoin: round; }
