/* ==========================================================================
   Planet Design Language — COMPONENTS
   Every component reads tokens + theme contract only. No raw hex here.
   Catalogue + usage rules: LANGUAGE.md §Components. Live gallery: library.html
   ========================================================================== */

/* ===== STORY COMPONENTS (from Dossier Nº 002) =========================== */

/* Section shell */
.section { padding: var(--sec-pad) 0; border-top: 1px solid var(--line); position: relative; }

/* Section head: mono index rail + headline w/ voice line + sub */
.sec-head { display: grid; grid-template-columns: var(--rail) 1fr; gap: var(--s-10); margin-bottom: var(--sec-head-gap); }
.sec-head .idx { padding-top: var(--s-3); }
.sec-head .idx b { color: var(--accent); font-weight: var(--w-regular); }
.sec-head .sub { margin-top: var(--s-4); }

/* Stamp: pill of mono facts */
.stamp { display: inline-flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; justify-content: center; padding: 7px var(--s-4); border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--scrim); backdrop-filter: blur(10px); }
.stamp > :first-child { color: var(--accent); }

/* Live dot */
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: var(--glow); animation: pl-pulse 2.4s ease-in-out infinite; flex: none; }

/* Card + cursor glow (--mx/--my set by behaviors.js) */
.card { position: relative; border: 1px solid var(--line); border-radius: var(--card-r); background: var(--card-fill); padding: var(--card-pad); overflow: hidden; transition: border-color var(--d-slow) var(--ease), transform var(--d-fast) var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity var(--d-slow); background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), var(--accent-a10), transparent 45%); }
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card.feat { border-color: var(--accent-a30); background: linear-gradient(140deg, var(--accent-a10), transparent 60%), var(--card-fill); }
[data-density="app"] .card::before { display: none; } /* no cursor glow in app density */

/* Tag */
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.tag.sig { color: var(--accent); border-color: var(--accent-a30); background: var(--accent-a05); }
.tag.red { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); background: var(--danger-a); }
.tag.amber { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); background: var(--warn-a); }

/* Quote */
.quote { font-family: var(--font-voice); font-style: var(--voice-style); font-size: var(--t-quote); line-height: 1.12; letter-spacing: -.01em; text-align: center; max-width: 880px; margin: 0 auto; }
.quote span { color: var(--accent); }

/* Not-grid (define by negation) */
.nots { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.not { padding: var(--s-8) var(--s-5); border-right: 1px solid var(--line); }
.not:last-child { border-right: 0; }
.not .x { font-size: 22px; font-weight: var(--w-regular); letter-spacing: -.03em; color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-4); }
.not p { margin-top: var(--s-3); font-size: var(--t-small); color: var(--ink-2); }

/* Big stat */
.stat .v { font-size: var(--t-stat); font-weight: var(--w-light); letter-spacing: -.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .v small, .stat .v sup { font-size: .3em; color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.mega { font-size: var(--t-mega); font-weight: var(--w-thin); letter-spacing: -.08em; line-height: .82; background: linear-gradient(180deg, var(--ink), transparent); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Meter */
.meter { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: var(--glow); transition: width 1.6s var(--ease); }

/* Threshold bar (Reject / Hold / Approve / Fast-track) */
.thresh-bar { display: grid; grid-template-columns: 45fr 20fr 15fr 20fr; height: 44px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.thresh-bar > div { display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; }
.thresh-bar .r { background: var(--danger-a); color: var(--danger); }
.thresh-bar .h { background: var(--warn-a); color: var(--warn); }
.thresh-bar .a { background: var(--accent-a05); color: var(--accent-deep); }
.thresh-bar .f { background: var(--accent-a20); color: var(--accent); }
[data-theme="planet"] .thresh-bar .a, :root:not([data-theme]) .thresh-bar .a { color: var(--accent-soft); }
.thresh-scale { display: grid; grid-template-columns: 45fr 20fr 15fr 20fr; margin-top: var(--s-2); }
.thresh-marker { position: relative; height: 0; }
.thresh-marker i { position: absolute; top: -52px; width: 2px; height: 52px; background: var(--ink); border-radius: 2px; transition: left 1.2s var(--ease); }

/* Pipeline with travelling beam */
.pipe { position: relative; display: grid; grid-template-columns: repeat(var(--steps, 7), 1fr); }
.pipe::before { content: ""; position: absolute; top: 25px; left: 7%; right: 7%; height: 1px; background: var(--line-2); }
.pipe .beam { position: absolute; top: 24px; left: 0; height: 3px; width: 14%; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: pl-beam 6s var(--ease) infinite; }
.stg { position: relative; text-align: center; padding: 0 6px; }
.stg .n { width: 50px; height: 50px; margin: 0 auto; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); position: relative; z-index: 2; }
.stg.on .n { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 24px var(--accent-a20); }
.stg h5 { margin-top: var(--s-4); font-size: 15px; font-weight: var(--w-medium); letter-spacing: -.02em; }
.stg p { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }

/* Verdict row */
.verdicts .row { display: grid; grid-template-columns: minmax(120px,200px) 70px 100px 1fr; gap: var(--s-6); align-items: center; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.verdicts .row:first-child { border-top: 1px solid var(--line); }
.verdicts .nm { font-size: 17px; font-weight: var(--w-regular); letter-spacing: -.02em; }
.verdicts .sc { font-size: 22px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.verdicts .why { color: var(--ink-3); font-size: var(--t-small); }

/* Numbered list (ticks / decisions) */
.ticks { list-style: none; counter-reset: t; }
.ticks li { counter-increment: t; display: grid; grid-template-columns: 36px 1fr; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.ticks li::before { content: counter(t, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--t-label); color: var(--accent); padding-top: 3px; }
.ticks b { display: block; color: var(--ink); font-weight: var(--w-regular); }

/* Q&A accordion */
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 64px 1fr 24px; align-items: center; padding: var(--s-7) 0; font-size: clamp(19px, 2.2vw, 24px); letter-spacing: -.025em; }
.qa summary::-webkit-details-marker { display: none; }
.qa .pm { width: 18px; height: 18px; position: relative; justify-self: end; }
.qa .pm::before, .qa .pm::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--ink-2); transition: transform var(--d-base) var(--ease); }
.qa .pm::after { transform: rotate(90deg); }
.qa details[open] summary { color: var(--accent); }
.qa details[open] .pm::after { transform: rotate(0); }
.qa .ans { display: grid; grid-template-columns: 64px 1fr; padding-bottom: var(--s-7); }
.qa .ans p { grid-column: 2; color: var(--ink-2); max-width: 780px; }

/* Proof track (timeline) */
.track { position: relative; display: grid; grid-template-columns: repeat(var(--steps, 4), 1fr); }
.track::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: var(--line-2); }
.track .fill { position: absolute; top: 6px; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); box-shadow: var(--glow); border-radius: 3px; transition: width 2s var(--ease); }
.pt { position: relative; padding-right: var(--s-5); }
.pt .node { width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); position: relative; z-index: 2; }
.pt .node::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--ink-3); }
.pt.on .node { border-color: var(--accent-a30); }
.pt.on .node::after { background: var(--accent); box-shadow: var(--glow); animation: pl-pulse 2.4s ease-in-out infinite; }
.pt.done .node::after { background: var(--accent-deep); }
.pt .mono { display: block; margin-top: var(--s-5); }
.pt h5 { font-size: 17px; font-weight: var(--w-medium); margin-top: var(--s-2); letter-spacing: -.02em; }
.pt p { font-size: var(--t-small); color: var(--ink-3); margin-top: 6px; }

/* Screenshot frame */
.shot { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-raised); box-shadow: var(--glow-lg); }
.shot .bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 var(--s-3); border-bottom: 1px solid var(--line); }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.shot .bar span { margin-left: var(--s-3); }

/* Planet orb (hero object) */
.orb { position: relative; width: var(--orb, 620px); aspect-ratio: 1; pointer-events: none; }
.orb .body { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--ink) 9%, var(--bg)) 0%, var(--bg-raised) 38%, var(--bg) 70%); box-shadow: inset -40px -30px 90px rgba(0,0,0,.6), inset 18px 14px 60px var(--accent-a10), 0 0 140px var(--accent-a10); overflow: hidden; }
.orb .body::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: radial-gradient(circle at 70% 75%, transparent 60%, color-mix(in srgb, var(--accent) 38%, transparent) 69.5%, transparent 71%); filter: blur(2px); animation: pl-rim 9s ease-in-out infinite; }
.orb .body::after { content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: .16; background: repeating-linear-gradient(0deg, transparent 0 38px, color-mix(in srgb, var(--ink) 35%, transparent) 38px 39px); -webkit-mask: radial-gradient(circle at 40% 35%, #000 20%, transparent 68%); mask: radial-gradient(circle at 40% 35%, #000 20%, transparent 68%); }
.orb .orbit { position: absolute; inset: -22%; border-radius: 50%; border: 1px solid var(--line); transform: rotateX(74deg) rotateZ(-18deg); }
.orb .orbit.o2 { inset: -40%; border-style: dashed; opacity: .6; }
.orb .moon { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; transform: translate(-50%,-50%); animation: pl-spin 18s linear infinite; }
.orb .moon::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px 4px var(--accent-a30); }

/* Scroll cue */
.scroll-cue { width: 1px; height: 48px; background: linear-gradient(var(--accent), transparent); animation: pl-cue 2.4s var(--ease) infinite; transform-origin: top; }

/* ===== APP / PWA COMPONENTS ============================================= */

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--btn-h); padding: 0 var(--s-6); border-radius: var(--r-pill); font-size: 15px; font-weight: var(--w-medium); letter-spacing: -.01em; transition: transform var(--d-fast) var(--ease), background-color var(--d-fast), border-color var(--d-fast), opacity var(--d-fast); white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 var(--accent-a30); }
.btn-primary:hover { box-shadow: 0 0 32px var(--accent-a20); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); background: var(--glass); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-text { color: var(--ink-2); padding: 0 var(--s-2); min-height: var(--touch); }
.btn-text:hover { color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn .k { font-family: var(--font-mono); font-size: 10px; opacity: .6; letter-spacing: .1em; }

/* Field */
.field { display: grid; gap: var(--s-2); }
.field label { font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--ink-3); }
.input { width: 100%; min-height: var(--field-h); padding: 0 var(--s-4); border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--glass); font-size: 16px; /* 16px stops iOS zoom */ transition: border-color var(--d-fast), box-shadow var(--d-fast); outline: none; }
textarea.input { padding: var(--s-3) var(--s-4); min-height: 104px; resize: vertical; line-height: 1.45; }
.input::placeholder { color: var(--ink-3); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-a10); }
.field .hint { font-size: var(--t-caption); color: var(--ink-3); }

/* Option — selectable row (checkbox / radio semantics via aria-pressed) */
.option { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-4); align-items: center; width: 100%; min-height: 64px; padding: var(--s-4) var(--s-5); text-align: left; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--glass); transition: border-color var(--d-fast), background-color var(--d-fast), transform var(--d-fast) var(--ease); }
.option:hover { border-color: var(--line-2); }
.option:active { transform: scale(.99); }
.option[aria-pressed="true"] { border-color: var(--accent-a30); background: var(--accent-a05); }
.option .ttl { font-size: 16px; font-weight: var(--w-regular); color: var(--ink); display: block; }
.option .dsc { font-size: var(--t-caption); color: var(--ink-3); display: block; margin-top: 2px; }
.check { width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all var(--d-fast); }
.option[aria-pressed="true"] .check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.check svg { width: 14px; height: 14px; opacity: 0; }
.option[aria-pressed="true"] .check svg { opacity: 1; }

/* Tile — big touch target (native feel) */
.tile { display: grid; align-content: space-between; gap: var(--s-6); min-height: 132px; padding: var(--s-5); text-align: left; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--card-fill); transition: border-color var(--d-fast), transform var(--d-fast) var(--ease); position: relative; }
.tile:active { transform: scale(.98); }
.tile[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tile .ic { width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--accent-a10); color: var(--accent); }
.tile .ic svg { width: 22px; height: 22px; }
.tile .ttl { font-size: 16px; font-weight: var(--w-medium); letter-spacing: -.02em; }
.tile .dsc { font-size: var(--t-caption); color: var(--ink-3); margin-top: 2px; }
.tile .tick { position: absolute; top: var(--s-4); right: var(--s-4); width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: all var(--d-base) var(--ease); }
.tile[aria-pressed="true"] .tick { opacity: 1; transform: none; }
.tile .tick svg { width: 13px; height: 13px; }

/* Chip — multi-select pill */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { min-height: 40px; padding: 0 var(--s-4); border-radius: var(--r-pill); border: 1px solid var(--line-2); font-size: var(--t-small); color: var(--ink-2); transition: all var(--d-fast); display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* Progress — line + segments */
.progress-line { height: 2px; background: var(--line); position: relative; overflow: hidden; }
.progress-line i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--accent); box-shadow: var(--glow); transition: width var(--d-slow) var(--ease); }
.segments { display: grid; grid-auto-flow: column; gap: 4px; }
.segments i { height: 4px; border-radius: 4px; background: var(--line-2); transition: background-color var(--d-base); }
.segments i.on { background: var(--accent); }

/* Step rail — vertical checklist of a flow */
.rail-steps { list-style: none; display: grid; gap: 2px; }
.rail-steps li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 var(--s-3); border-radius: var(--r-sm); font-size: var(--t-small); color: var(--ink-3); cursor: pointer; }
.rail-steps li:hover { background: var(--glass); color: var(--ink-2); }
.rail-steps li .i { font-family: var(--font-mono); font-size: var(--t-label); }
.rail-steps li.done { color: var(--ink-2); }
.rail-steps li.done .st { color: var(--accent-deep); }
.rail-steps li.on { background: var(--accent-a05); color: var(--ink); box-shadow: inset 2px 0 0 var(--accent); }
.rail-steps li.on .i { color: var(--accent); }
.rail-steps .st { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

/* App shell */
.appbar { position: sticky; top: 0; z-index: var(--z-nav); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); height: calc(var(--nav-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--gutter) 0; background: var(--scrim); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: var(--w-medium); letter-spacing: -.01em; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-nav); display: grid; grid-template-columns: repeat(var(--tabs, 5), 1fr); height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--scrim); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line); }
.tabbar a, .tabbar button { display: grid; place-items: center; align-content: center; gap: 4px; font-size: 10.5px; color: var(--ink-3); text-decoration: none; min-height: var(--touch); }
.tabbar svg { width: 22px; height: 22px; }
.tabbar .on { color: var(--accent); }
.sidenav { display: grid; align-content: start; gap: 2px; padding: var(--s-4); border-right: 1px solid var(--line); min-height: 100dvh; position: sticky; top: 0; }
.sidenav a { display: flex; align-items: center; gap: var(--s-3); min-height: 40px; padding: 0 var(--s-3); border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; font-size: var(--t-small); }
.sidenav a svg { width: 18px; height: 18px; }
.sidenav a:hover { background: var(--glass); color: var(--ink); }
.sidenav a.on { background: var(--accent-a05); color: var(--accent); }

/* Bottom action bar (sticky primary on mobile) */
.actionbar { position: sticky; bottom: 0; z-index: var(--z-nav); display: grid; gap: var(--s-2); padding: var(--s-4) var(--gutter) calc(var(--s-4) + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); }

/* Sheet (bottom sheet on mobile, centered dialog on desktop) */
.sheet { border: 1px solid var(--line-2); border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--bg-raised); padding: var(--s-6) var(--s-6) calc(var(--s-6) + env(safe-area-inset-bottom)); box-shadow: 0 -30px 80px -20px rgba(0,0,0,.5); }
.sheet .grab { width: 36px; height: 4px; border-radius: 4px; background: var(--line-2); margin: -8px auto var(--s-5); }
@media (min-width: 720px) { .sheet { border-radius: var(--r-xl); } .sheet .grab { display: none; } }

/* Banners (PWA states) */
.banner { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); font-size: var(--t-small); border: 1px solid var(--line-2); background: var(--glass); }
.banner.offline { border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: var(--warn-a); color: var(--warn); }
.banner.update { border-color: var(--accent-a30); background: var(--accent-a05); }
.banner .grow { flex: 1; color: var(--ink-2); }
.banner svg { width: 18px; height: 18px; flex: none; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--s-4) + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: var(--z-sheet); display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font-size: var(--t-small); animation: pl-in var(--d-base) var(--ease); }

/* Avatar */
.avatar { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 16px; font-weight: var(--w-medium); letter-spacing: -.02em; background: radial-gradient(circle at 30% 30%, var(--accent-a20), transparent 70%); }

/* Icon (24px grid — see icons/README.md) */
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.sm { width: 18px; height: 18px; }
.icon.lg { width: 32px; height: 32px; }

/* Key-value list */
.kv { list-style: none; }
.kv li { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-top: 1px solid var(--line); font-size: var(--t-small); color: var(--ink-2); }
.kv li b { color: var(--ink); font-weight: var(--w-regular); }

/* ===== RESPONSIVE COLLAPSE ============================================== */
@media (max-width: 960px) {
  .sec-head { grid-template-columns: 1fr; gap: var(--s-3); }
  .pipe { grid-template-columns: 1fr; gap: var(--s-6); }
  .pipe::before, .pipe .beam { display: none; }
  .stg { display: grid; grid-template-columns: 50px 1fr; gap: var(--s-4); text-align: left; align-items: center; }
  .stg h5 { margin-top: 0; }
  .stg p { grid-column: 2; margin-top: -12px; }
  .verdicts .row { grid-template-columns: 1fr auto auto; gap: var(--s-2) var(--s-4); }
  .verdicts .why { grid-column: 1 / -1; }
  .track { grid-template-columns: 1fr 1fr; row-gap: var(--s-10); }
  .track::before, .track .fill { display: none; }
}
@media (max-width: 560px) {
  .qa summary { grid-template-columns: 44px 1fr 24px; }
  .qa .ans { grid-template-columns: 44px 1fr; }
  .not { border-right: 0; border-bottom: 1px solid var(--line); }
}
