/* RaDar Mini App — дизайн-система (2026-11-08).
   Тёмная тема — фирменная (палитра chart.py), светлая — из themeParams Telegram (подставляет app.js).
   Сетка 4/8/16 · радиусы по иерархии · тени только у «парящих» слоёв · анимации 150–250 мс. */
/* шрифты RaDar (OFL, свои файлы — CSP font-src self): Unbounded — имя, заголовки, крупные цифры; Onest — текст */
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(fonts/unbounded-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: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(fonts/unbounded-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(fonts/onest-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: "Onest"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(fonts/onest-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  color-scheme: dark;
  /* фирменные цвета: рост, падение, золотая «отметка радара» */
  --up: #2ec98f; --dn: #f25c6e; --gold: #f3c14b; --blue: #5b9dff; --vio: #a08cff; --neu: #5d6573;
  /* фирменный акцент RaDar: мягкое золото — кнопки, вкладки, логотип */
  --acc: #f3c14b; --acc-t: #f6c95c; --on-acc: #1c1503; --tint-acc: rgba(243, 193, 75, 0.14);
  --up-t: #3ad49b; --dn-t: #ff6b7c; --gold-t: #f6c95c; --blue-t: #6aa6ff;   /* те же, но для текста (контраст ≥ 4.5) */
  --on-up: #04150e;
  --tint-up: rgba(46, 201, 143, 0.14); --tint-dn: rgba(242, 92, 110, 0.14);
  --tint-gold: rgba(243, 193, 75, 0.13); --tint-blue: rgba(91, 157, 255, 0.14);
  --sweep: rgba(243, 193, 75, 0.34); --glow: rgba(243, 193, 75, 0.06);
  /* поверхности: тёплый графит; выше слой — светлее */
  --bg: #0c0e12; --s1: #15181e; --s2: #1c2028; --s3: #252a34;
  --line: rgba(190, 196, 210, 0.09); --line2: rgba(190, 196, 210, 0.17); --grid: rgba(190, 196, 210, 0.07);
  --hl: rgba(255, 255, 255, 0.05);
  --txt: #f1f2f5; --txt2: #b3b8c3; --mut: #858c99;
  --glass: rgba(12, 14, 18, 0.8); --nav: #111419; --shim: rgba(238, 243, 247, 0.06);
  --sh-1: inset 0 0 0 1px var(--line), inset 0 1px 0 var(--hl);
  --sh-2: inset 0 0 0 1px var(--line), inset 0 1px 0 var(--hl), 0 22px 44px -26px rgba(0, 0, 0, 0.9);
  --sh-float: 0 14px 34px -12px rgba(0, 0, 0, 0.75), inset 0 0 0 1px var(--line2);
  --sh-btn: 0 10px 24px -12px rgba(243, 193, 75, 0.5);
  /* типографика: системный шрифт Telegram (SF Pro / Roboto / Segoe UI), цифры одной ширины */
  --f: "Onest", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-d: "Unbounded", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-m: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  /* радиусы: герой → группа → плитка → элемент */
  --r-xl: 26px; --r-l: 20px; --r-m: 16px; --r-s: 12px; --r-xs: 8px;
  /* движение */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1); --t1: 150ms; --t2: 200ms; --t3: 250ms;
  --nav-h: 62px;
  --safe-b: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
}
:root[data-theme="light"] {
  color-scheme: light;
  --up: #12b886; --dn: #f03e65; --gold: #e0a100;
  --acc: #e8a900; --acc-t: #8a5f00; --on-acc: #1c1503; --tint-acc: rgba(232, 169, 0, 0.13); --blue: #2f74e8; --vio: #7b61ff; --neu: #9aa6b2;
  --up-t: #067a56; --dn-t: #c4264c; --gold-t: #8a5a00; --blue-t: #1f63d6;
  --tint-up: rgba(18, 184, 134, 0.12); --tint-dn: rgba(240, 62, 101, 0.11);
  --tint-gold: rgba(245, 163, 0, 0.13); --tint-blue: rgba(47, 116, 232, 0.11);
  --sweep: rgba(232, 169, 0, 0.30); --glow: rgba(232, 169, 0, 0.07);
  --bg: #f4f4f6; --s1: #ffffff; --s2: #f6f6f8; --s3: #eaebef;
  --line: rgba(16, 32, 48, 0.09); --line2: rgba(16, 32, 48, 0.16); --grid: rgba(16, 32, 48, 0.07);
  --hl: rgba(255, 255, 255, 0.8);
  --txt: #0b1520; --txt2: #3d4b59; --mut: #5d6b78;
  --glass: rgba(244, 244, 246, 0.84); --nav: #f4f4f6; --shim: rgba(11, 21, 32, 0.05);
  --sh-1: 0 1px 2px rgba(16, 24, 40, 0.05), 0 0 0 1px rgba(16, 24, 40, 0.03);
  --sh-2: 0 1px 2px rgba(16, 24, 40, 0.05), 0 18px 40px -24px rgba(16, 24, 40, 0.30);
  --sh-float: 0 12px 32px -12px rgba(16, 24, 40, 0.32), 0 0 0 1px rgba(16, 24, 40, 0.05);
  --sh-btn: 0 10px 22px -14px rgba(180, 130, 0, 0.6);
}

/* ---------- основа */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0 auto; max-width: 560px; min-height: 100vh;
  padding: 0 16px calc(var(--nav-h) + var(--safe-b) + 8px);
  color: var(--txt); font: 400 15px/1.45 var(--f); letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
/* слабое «свечение экрана радара» под шапкой — глубина без декоративной заливки */
body::before {
  content: ""; position: fixed; left: 0; right: 0; top: 0; height: 360px; z-index: -1; pointer-events: none;
  background: radial-gradient(110% 70% at 50% -12%, var(--glow) 0%, transparent 72%);
}
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
a { color: var(--blue-t); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
::selection { background: var(--tint-acc); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.22em; }
.mono { font-family: var(--f-m); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.num { font-family: var(--f-d); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.num small { font-size: 0.52em; font-weight: 600; letter-spacing: -0.01em; color: var(--txt2); margin-left: 0.06em; }
.up { color: var(--up-t); } .dn { color: var(--dn-t); } .gold { color: var(--gold-t); } .blue { color: var(--blue-t); } .mut { color: var(--mut); }

/* ---------- шапка */
.top {
  position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; margin: 0 -16px; padding: env(safe-area-inset-top, 0px) 16px 0;
  transition: background-color var(--t2) var(--ease), box-shadow var(--t2) var(--ease);
}
.top.scrolled { background: var(--glass); box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 28px; height: 28px; overflow: visible; }
.logo circle { fill: none; stroke: var(--acc); stroke-width: 1.7; }
.logo .lg-r1 { opacity: 0.38; } .logo .lg-r2 { opacity: 0.62; } .logo .lg-r3 { opacity: 0.9; }
.logo .lg-sw { fill: var(--acc); opacity: 0.42; }
.logo .lg-bl { fill: var(--up); stroke: none; }
.brand-t { font: 700 18px/1 var(--f-d); letter-spacing: -0.03em; }
.who { display: inline-flex; align-items: center; }
.av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font: 700 14px/1 var(--f-d); color: var(--on-up); background: linear-gradient(140deg, var(--up), #0f9e74); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line2); }

/* ---------- экран */
#view { min-height: 40vh; }
#view.enter { animation: enter var(--t3) var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }
.scr-h { padding: 6px 2px 18px; }
.scr-h h1 { font: 650 25px/1.15 var(--f-d); letter-spacing: -0.03em; }
.scr-h p { margin-top: 6px; font-size: 14px; color: var(--mut); max-width: 40ch; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 4px 10px; }
.sec-h h2 { font: 600 15px/1.25 var(--f-d); letter-spacing: -0.015em; white-space: nowrap; }
.sec-h > :not(h2) { min-width: 0; text-align: right; }
.aux { font-size: 12.5px; color: var(--mut); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.aux .star { color: var(--gold); width: 13px; height: 13px; }
.foot { margin: 10px 4px 0; font-size: 13px; line-height: 1.45; color: var(--mut); }
.foot .ic { width: 14px; height: 14px; color: var(--gold-t); }
.center { text-align: center; }

/* ---------- поверхности */
.card { background: var(--s1); border-radius: var(--r-l); box-shadow: var(--sh-1); padding: 16px; }
.group { background: var(--s1); border-radius: var(--r-l); box-shadow: var(--sh-1); overflow: hidden; }
.card + .card, .group + .group, .card + .group, .group + .card { margin-top: 12px; }

/* строки списков (как в нативных приложениях: разделитель с отступом от значка) */
.row-i, .sig, .set, .opt {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 16px;
  border: 0; background: none; text-align: left; color: inherit; font: inherit; cursor: pointer;
  transition: background-color var(--t1) var(--ease);
}
.row-i + .row-i::before, .sig + .sig::before, .set + .set::before, .opt + .opt::before, .kv-r + .kv-r::before, .info-r + .info-r::before {
  content: ""; position: absolute; top: 0; left: 68px; right: 0; height: 1px; background: var(--line);
}
.row-i:active, .sig:active, .set:active, .opt:active { background: var(--s2); }
@media (hover: hover) { .row-i:hover, .sig:hover, .set:hover, .opt:hover { background: var(--s2); } }
.r-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.r-t { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15.5px; line-height: 1.25; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-s { display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; font-size: 13px; color: var(--mut); line-height: 1.35; }
.r-s > span { display: inline-flex; align-items: center; gap: 4px; }
.r-s > span + span::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.55; margin-right: 2px; }
.r-s .ic { width: 14px; height: 14px; }
.r-end { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; text-align: right; }
.r-end small { font-size: 12px; color: var(--mut); }
.chev { width: 18px; height: 18px; color: var(--mut); opacity: 0.6; margin-right: -4px; }
.tfb { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--s3);
  font: 600 11.5px/1 var(--f); color: var(--txt2); letter-spacing: 0; }
.tier { color: var(--mut); } .tier.up { color: var(--up-t); } .tier.gold { color: var(--gold-t); }
.tier .ic { width: 14px; height: 14px; }

/* значок направления */
.dirb { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.dirb .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.dirb.up { background: var(--tint-up); color: var(--up-t); }
.dirb.dn { background: var(--tint-dn); color: var(--dn-t); }

/* метки */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--s3); color: var(--txt2); }
.pill .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.pill.up { background: var(--tint-up); color: var(--up-t); }
.pill.dn { background: var(--tint-dn); color: var(--dn-t); }
.pill.gold { background: var(--tint-gold); color: var(--gold-t); }
.pill.blue { background: var(--tint-blue); color: var(--blue-t); }

/* ---------- кнопки */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 20px;
  border: 0; border-radius: var(--r-m); background: var(--acc); color: var(--on-acc); box-shadow: var(--sh-btn);
  font: 650 16px/1 var(--f); letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: transform var(--t1) var(--ease), filter var(--t1) var(--ease), opacity var(--t1);
}
.btn .ic { width: 20px; height: 20px; stroke-width: 2; }
.btn:active { transform: scale(0.98); filter: brightness(0.94); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.ghost { background: var(--s2); color: var(--txt); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.btn.sm { display: inline-flex; width: auto; min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 13px; }
.btn.busy .ic { animation: spin 0.9s linear infinite; }
.lnk { min-height: 44px; min-width: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--up-t);
  font: 600 14px/1 var(--f); cursor: pointer; }
.lnk:active { background: var(--tint-up); }
.back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin: 0 0 6px -8px; padding: 0 12px 0 4px;
  border: 0; border-radius: 12px; background: none; color: var(--up-t); font: 600 16px/1 var(--f); cursor: pointer; }
.back .ic { width: 24px; height: 24px; }
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------- выбор: чипы, ленты, сегменты */
.chip {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border: 0; border-radius: 14px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line2); color: var(--txt);
  font: 600 15px/1 var(--f); letter-spacing: -0.01em; white-space: nowrap; cursor: pointer;
  transition: background-color var(--t1) var(--ease), box-shadow var(--t1) var(--ease), transform var(--t1) var(--ease);
}
.chip:active { transform: scale(0.96); }
.chip.on { background: var(--tint-acc); box-shadow: inset 0 0 0 1.5px var(--acc); }
/* интервал без преимущества — бледный, но выбрать можно */
.chip.nostar:not(.on) { opacity: .55; }
#depDv { margin-top: 6px; padding: 0; min-height: 36px; font-weight: 600; }
.chip .star { width: 13px; height: 13px; color: var(--gold); }
.chip .ck { width: 16px; height: 16px; color: var(--acc-t); stroke-width: 2.4; margin-left: -3px; }
.chip .bolt { width: 16px; height: 16px; color: var(--gold-t); margin-left: -3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rail {
  position: relative; display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px;
  scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; scroll-margin-left: 16px; }
.field { margin-top: 20px; }
.field-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 4px 10px; font-weight: 600; font-size: 15px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: var(--r-m);
  background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); }
.seg button {
  min-height: 44px; padding: 6px 4px; border: 0; border-radius: 12px; background: none; color: var(--mut);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font: 600 14.5px/1.15 var(--f); cursor: pointer; transition: background-color var(--t2) var(--ease), color var(--t2) var(--ease);
}
.seg button small { font-size: 11.5px; font-weight: 500; color: var(--mut); }
.seg button.on { background: var(--s1); color: var(--txt); box-shadow: inset 0 1px 0 var(--hl), 0 6px 14px -8px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line); }
.seg.ic-seg button { flex-direction: row; gap: 7px; }
.seg.ic-seg .ic { width: 18px; height: 18px; }
.seg button.on .ic { color: var(--up-t); }

/* ---------- Главная: герой со статистикой и радаром */
.hero { position: relative; overflow: hidden; margin-top: 4px; padding: 18px 18px 16px; border-radius: var(--r-xl);
  background: var(--s1); box-shadow: var(--sh-2); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(70% 90% at 100% 0%, var(--glow) 0%, transparent 70%); }
.hero > * { position: relative; z-index: 1; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-l { font-size: 14px; font-weight: 500; color: var(--txt2); }
.auto { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; white-space: nowrap; flex: none; padding: 0 12px 0 10px; border: 0; border-radius: 999px;
  background: var(--s3); color: var(--txt2); font: 600 12.5px/1 var(--f); cursor: pointer; }
.auto::before { content: ""; position: absolute; inset: -5px -2px; }   /* зона нажатия 44 px */
.auto i { width: 7px; height: 7px; border-radius: 50%; background: var(--neu); }
.auto.on { background: var(--tint-up); color: var(--up-t); }
.auto.on i { background: var(--up); box-shadow: 0 0 0 3px var(--tint-up); }
.hero-mid { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.hero-num { font-size: 46px; font-weight: 650; }
.hero-sub { margin-top: 8px; font-size: 14px; color: var(--txt2); }
.hero-sub span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--mut); }
.radar { position: relative; width: 108px; height: 108px; flex: none; margin: -4px -2px -4px 0; border-radius: 50%; }
.radar svg, .art { display: block; width: 100%; height: 100%; overflow: visible; }
.rg { fill: none; stroke: var(--up); stroke-width: 0.8; opacity: 0.3; }
.cross { fill: none; stroke: var(--up); stroke-width: 0.6; opacity: 0.14; }
.core { fill: var(--gold); }
.radar-sw { position: absolute; inset: 3%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 282deg, rgba(0, 0, 0, 0) 285deg, var(--sweep) 359.4deg, transparent 360deg);
  animation: sweep 6s linear infinite; }
@keyframes sweep { to { transform: rotate(1turn); } }
.blip { transform-box: fill-box; transform-origin: center; animation: blip 6s linear infinite; }
.blip.up { fill: var(--up); } .blip.dn { fill: var(--dn); }
@keyframes blip { 0% { opacity: 1; transform: scale(1.45); } 10% { transform: scale(1); } 60%, 100% { opacity: 0.4; transform: scale(1); } }
.meter { position: relative; display: flex; gap: 3px; height: 8px; margin-top: 18px; }
.meter > b { height: 100%; border-radius: 8px 3px 3px 8px; background: var(--up); transform-origin: left center; }
.meter > span { flex: 1; height: 100%; border-radius: 3px 8px 8px 3px; background: var(--dn); opacity: 0.8; }
.meter > i { position: absolute; left: 50%; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--txt); opacity: 0.7; }
.enter .meter > b, .enter .gr-b > b { animation: grow var(--t3) var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.meter-l { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--mut); }
.meter-l span:nth-child(2) { color: var(--txt2); font-weight: 600; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.trio > div { min-width: 0; padding: 0 10px; display: flex; flex-direction: column; }
.trio > div:first-child { padding-left: 0; }
.trio.flat { margin: 0; padding: 14px 16px; border-top: 0; }
.trio > div + div { border-left: 1px solid var(--line); }
.trio .k { font-size: 12px; color: var(--mut); }
.trio .v { margin-top: 5px; font: 650 18px/1.1 var(--f-d); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trio .s { margin-top: 3px; font-size: 11.5px; line-height: 1.3; color: var(--mut); }

/* плашки: «мало данных», нет связи, новости */
.note, .callout { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 11px 12px; border-radius: 13px;
  font-size: 13.5px; line-height: 1.42; color: var(--txt); background: var(--tint-gold); box-shadow: inset 3px 0 0 var(--gold); }
.note .ic, .callout .ic { width: 18px; height: 18px; flex: none; margin-top: 0; color: var(--gold-t); }
.callout.blue { background: var(--tint-blue); box-shadow: inset 3px 0 0 var(--blue); }
.callout.blue .ic { color: var(--blue-t); }
.callout.flat { background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); color: var(--txt2); }
.callout.flat .ic { color: var(--mut); }
.callout span { flex: 1; }
.callout .lnk { min-height: 32px; margin: -6px -4px -6px 0; }
.stale { margin: 0 0 12px; align-items: center; }

/* быстрый анализ */
.quick { margin-top: 12px; }
.quick .rail { margin-top: 10px; }
.chip.q { min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: 12px; background: var(--s1); }

/* живые сигналы */
.sig { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; padding: 14px 16px 18px; min-height: 76px; }
.spark { width: 72px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.spark svg { width: 72px; height: 30px; overflow: visible; }
.spark:empty { background: var(--s2); border-radius: 8px; height: 30px; }
.spark.none { visibility: hidden; }
.spark .ln { fill: none; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.spark .en { stroke: var(--mut); stroke-width: 1; stroke-dasharray: 2 3; }
.spark .ar { stroke: none; }
.spark .up .ln { stroke: var(--up); } .spark .dn .ln { stroke: var(--dn); } .spark .flat .ln { stroke: var(--mut); }
.spark .up .dt { fill: var(--up); } .spark .dn .dt { fill: var(--dn); } .spark .flat .dt { fill: var(--mut); }
.spark-v { font: 600 11px/1 var(--f-m); text-align: right; }
.cd { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 52px; text-align: right; }
.cd b { font: 650 16px/1 var(--f-m); letter-spacing: -0.02em; color: var(--gold-t); }
.cd small { font-size: 11.5px; color: var(--mut); white-space: nowrap; }
.prog { position: absolute; left: 68px; right: 16px; bottom: 8px; height: 3px; border-radius: 3px; background: var(--s3); overflow: hidden; }
.prog > b { display: block; height: 100%; border-radius: 3px; background: var(--gold); transition: width 1s linear; }
.stamp { font-size: 12px; color: var(--mut); }
p.stamp { margin: 8px 4px 0; text-align: right; }

/* пустые состояния */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 22px 24px; }
.empty .art { width: 88px; height: 88px; margin-bottom: 14px; }
.empty h3 { font: 600 15px/1.35 var(--f-d); letter-spacing: -0.01em; }
.empty p { margin-top: 6px; font-size: 14px; color: var(--mut); max-width: 32ch; }
.empty .btn { margin-top: 16px; }
.empty.sm { flex-direction: row; justify-content: center; gap: 8px; padding: 18px; color: var(--mut); font-size: 14px; }
.art .wedge { fill: var(--up); opacity: 0.2; }
.art .bl { fill: var(--gold); }

/* рынок сейчас: сессии и новости */
.info-r { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; }
.info-i { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--s3); color: var(--txt2); }
.info-i .ic { width: 20px; height: 20px; }
.info-i.blue { background: var(--tint-blue); color: var(--blue-t); }
.info-i.gold { background: var(--tint-gold); color: var(--gold-t); }
.when { width: 40px; flex: none; text-align: center; }
.when b { display: block; font: 650 14px/1.1 var(--f-m); letter-spacing: -0.02em; }
.when small { display: block; margin-top: 2px; font-size: 11px; color: var(--mut); }
.ccy { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; background: var(--tint-gold); color: var(--gold-t);
  font: 700 11px/1 var(--f); letter-spacing: 0.02em; }
.info-r .r-t { white-space: normal; }

/* связки с преимуществом */
.mk-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--s3); color: var(--txt2); }
.mk-ic .ic { width: 21px; height: 21px; }
.acc { font: 650 15px/1 var(--f-m); letter-spacing: -0.02em; }

/* ---------- Анализ: решение */
.calc { display: flex; align-items: center; gap: 8px; margin: 20px 4px 0; font-size: 13.5px; color: var(--mut); }
.calc .ic { width: 18px; height: 18px; color: var(--up-t); animation: spin 1.6s linear infinite; }
.dec { position: relative; overflow: hidden; margin-top: 20px; padding: 18px; border-radius: var(--r-xl); background: var(--s1); box-shadow: var(--sh-2); scroll-margin-top: 64px; }
.dec::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.dec.is-up::after { background: radial-gradient(80% 60% at 0% 0%, var(--tint-up) 0%, transparent 70%); }
.dec.is-dn::after { background: radial-gradient(80% 60% at 0% 0%, var(--tint-dn) 0%, transparent 70%); }
.dec > * { position: relative; z-index: 1; }
.dec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--mut); }
.dec-h b { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1.2 var(--f-d); letter-spacing: -0.015em; color: var(--txt); }
.dec-main { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.dec-txt { min-width: 0; }
.dec-dir { display: flex; align-items: center; gap: 6px; font: 700 26px/1.05 var(--f-d); letter-spacing: -0.035em; }
.dec-dir .ic { width: 30px; height: 30px; stroke-width: 2.5; margin-left: -3px; }
.dec-dir.up { color: var(--up-t); } .dec-dir.dn { color: var(--dn-t); } .dec-dir.flat { color: var(--txt2); }
.dec-dir.flat { font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; }
.dec-s { margin-top: 6px; font-size: 14px; color: var(--txt2); }
.dec-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ring { position: relative; width: 112px; height: 112px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring .t { fill: none; stroke: var(--s3); stroke-width: 8; }
.ring .v { fill: none; stroke-width: 8; stroke-linecap: round; animation: ring var(--t3) var(--ease) both; }
.ring.is-up .v { stroke: var(--up); } .ring.is-dn .v { stroke: var(--dn); } .ring.is-flat .v { stroke: var(--neu); }
.ring.is-up .ring-c b { color: var(--up-t); } .ring.is-dn .ring-c b { color: var(--dn-t); }
.ring .half { stroke: var(--txt); stroke-width: 2; stroke-linecap: round; opacity: 0.55; }
@keyframes ring { from { stroke-dashoffset: var(--c); } }
.ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-c b { font-size: 25px; }
.ring-c span { margin-top: 4px; font-size: 11px; color: var(--mut); }
.timer { margin-top: 16px; padding: 14px 14px 12px; border-radius: var(--r-m); background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); }
.tm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tm-l { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--gold-t); }
.tm-l .ic { width: 20px; height: 20px; }
.tm-v { font: 700 28px/1 var(--f-m); letter-spacing: -0.03em; color: var(--txt); }
.tm-row.late { display: block; }
.tm-s { display: block; margin-top: 4px; font-size: 13.5px; color: var(--txt2); }
.bar { height: 6px; margin-top: 12px; border-radius: 6px; background: var(--s3); overflow: hidden; }
.bar > b { display: block; height: 100%; border-radius: 6px; background: var(--gold); transition: width 1s linear; }
.tm-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--mut); }
.tm-meta > span:last-child { text-align: right; }
.tm-meta b { display: block; margin-top: 3px; font: 600 14px/1.2 var(--f-m); color: var(--txt); letter-spacing: -0.01em; }
.tm-res { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--txt2); }
.split { margin-top: 16px; }
.split-l { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.split-l .ic { width: 15px; height: 15px; stroke-width: 2.3; }
.split-b { display: flex; gap: 3px; height: 8px; margin-top: 8px; }
.split-b > b { border-radius: 8px 3px 3px 8px; background: var(--up); }
.split-b > span { flex: 1; border-radius: 3px 8px 8px 3px; background: var(--dn); opacity: 0.85; }
.tracked { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--mut); }
.tracked .ic { width: 16px; height: 16px; color: var(--gold-t); }

/* график на всю ширину */
.chart-w { margin: 20px -16px 0; padding: 14px 0 10px; background: var(--s1); box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.chart-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 16px 6px; }
.chart-h b { font: 600 14.5px/1.2 var(--f-d); }
.chart-h .mono { font-size: 13.5px; }
#chart { height: 320px; }
.mini { height: 200px; margin: 10px -6px 0; }
.tr-tf { margin-top: 14px; }
.tr-tf button { padding-left: 0; padding-right: 0; }
.chart-na { padding: 40px 16px; text-align: center; color: var(--mut); font-size: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 16px 0; font-size: 12px; color: var(--mut); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 16px; border-top: 2px solid; }
.legend i.dash { border-top-style: dashed; }
.l-blue { color: var(--blue); } .l-up { color: var(--up); } .l-dn { color: var(--dn); } .l-mut { color: var(--mut); }
.l-nw { color: var(--up); border-top-style: dotted !important; border-top-width: 2px; }
.nw-f { margin: 8px 16px 0; font-size: 12.5px; }
.nw-f .ic { color: var(--vio); width: 15px; height: 15px; }

/* связка интервалов */
.mtf { display: grid; grid-template-columns: repeat(auto-fit, minmax(52px, 1fr)); gap: 6px; }
.mtf > div { padding: 12px 6px 10px; border-radius: 14px; background: var(--s2); text-align: center; box-shadow: inset 0 0 0 1px var(--line); }
.mtf > div.cur { box-shadow: inset 0 0 0 1.5px var(--up); background: var(--tint-up); }
.mtf .ic { display: block; width: 24px; height: 24px; margin: 0 auto 6px; stroke-width: 2.3; }
.mtf span { font-size: 12.5px; font-weight: 600; color: var(--txt2); }
.mtf-l { margin-top: 10px; font-size: 13.5px; color: var(--txt2); }
.mtf-l + .mtf-l { margin-top: 4px; }

/* уровни: строки «название — значение» */
.kv-r { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 16px; }
.kv .kv-r + .kv-r::before { left: 16px; }
.kv-k { display: inline-flex; align-items: center; gap: 8px; color: var(--txt2); font-size: 14.5px; }
.kv-v { text-align: right; font-size: 14.5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.blue { background: var(--blue); } .dot.up { background: var(--up); } .dot.dn { background: var(--dn); }

/* подробный разбор */
.more summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 16px;
  font-weight: 600; cursor: pointer; }
.more summary::-webkit-details-marker { display: none; }
.more summary .ic { color: var(--mut); transition: transform var(--t2) var(--ease); }
.more[open] summary .ic { transform: rotate(90deg); }
.more-b { display: grid; gap: 8px; padding: 0 16px 16px; font-size: 14px; color: var(--txt2); }
.more-t { margin-top: 6px; font-weight: 600; color: var(--txt); }
.again { margin-top: 16px; }

/* ---------- Статистика */
.st-hero .hero-num { font-size: 50px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tile { display: flex; flex-direction: column; min-height: 112px; padding: 14px; border-radius: var(--r-m); background: var(--s1); box-shadow: var(--sh-1); }
.tile .k { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mut); }
.tile .k .ic { width: 15px; height: 15px; }
.tile .v { margin-top: 14px; font: 650 22px/1.05 var(--f-d); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tile .v small { font-size: 0.56em; font-weight: 600; color: var(--txt2); letter-spacing: 0; margin-left: 4px; }
.tile .s { margin-top: 4px; font-size: 12px; line-height: 1.3; color: var(--mut); }
.wait { display: inline-block; width: 48px; height: 22px; border-radius: 6px; background: var(--s3); vertical-align: middle; }
.curve-card { margin-top: 12px; padding: 16px 16px 12px; }
.curve-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cv-t { display: block; font: 600 13.5px/1.3 var(--f-d); letter-spacing: -0.01em; }
.curve-h p { margin-top: 3px; font-size: 12.5px; color: var(--mut); min-height: 17px; }
.curve-h p b { display: inline; font: inherit; color: var(--txt); font-weight: 600; }
.curve-v { font-size: 30px; flex: none; }
.curve { position: relative; height: 168px; margin: 14px 0 0; touch-action: pan-y; cursor: crosshair; }
.curve svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.curve .zero { stroke: var(--line2); stroke-width: 1; stroke-dasharray: 3 4; }
.curve .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.curve .ln.up { stroke: var(--up); } .curve .ln.dn { stroke: var(--dn); }
.curve .ar { stroke: none; }
.curve .g-up { stop-color: var(--up); } .curve .g-dn { stop-color: var(--dn); }
.curve .end { stroke: var(--s1); stroke-width: 2.5; }
.curve .end.up { fill: var(--up); } .curve .end.dn { fill: var(--dn); }
.curve .zl { fill: var(--mut); font: 500 10.5px var(--f); }
.curve .scrub { stroke: var(--txt2); stroke-width: 1; opacity: 0; }
.curve .pt { fill: var(--txt); stroke: var(--s1); stroke-width: 2; opacity: 0; }
.curve-f { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--mut); }
.curve-f b { color: var(--txt2); font-weight: 600; }
.sk-curve { height: 168px; margin-top: 14px; }
/* фильтр рынок/интервал и зона максимальной просадки на графике итога */
.st-fw { display: grid; gap: 8px; margin-bottom: 12px; }
.st-fw + .curve-card { margin-top: 0; }
.st-fw:empty { display: none; }
.chip.f { padding: 0 14px; border-radius: 12px; font-size: 14px; }
.curve .ddz { fill: var(--dn); opacity: 0.1; }
.ddk { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; background: var(--dn); opacity: 0.4; vertical-align: -1px; }
.gr { padding: 13px 16px; }
.gr + .gr { border-top: 1px solid var(--line); }
.gr-t { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.gr-n { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.gr-n .ic { width: 18px; height: 18px; color: var(--txt2); }
.gr-n .ic.up { color: var(--up-t); } .gr-n .ic.gold { color: var(--gold-t); }
.gr-v { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.gr-v .few { width: 15px; height: 15px; color: var(--gold-t); }
.gr-v b { min-width: 40px; text-align: right; }
.gr-b { position: relative; display: flex; height: 5px; margin-top: 9px; border-radius: 5px; background: var(--s3); }
.gr-b > b { height: 100%; border-radius: 5px; transform-origin: left center; }
.gr-b > b.up { background: var(--up); } .gr-b > b.dn { background: var(--dn); }
.gr-b > i { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--txt); opacity: 0.5; }
.day-h { margin: 18px 4px 8px; font-size: 13px; font-weight: 600; color: var(--mut); }
.day-h:first-child { margin-top: 0; }
.more-btn { margin-top: 14px; }

/* ---------- Сигналы (настройки) */
.set { min-height: 72px; }
.set-i { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--s3); color: var(--txt2);
  transition: background-color var(--t2) var(--ease), color var(--t2) var(--ease); }
.set-i .ic { width: 21px; height: 21px; }
.set-i.on { background: var(--tint-up); color: var(--up-t); }
.set-i.sm { width: 34px; height: 34px; border-radius: 11px; }
.set-i.sm .ic { width: 18px; height: 18px; }
.switch { position: relative; width: 51px; height: 31px; flex: none; border-radius: 999px; background: var(--s3); box-shadow: inset 0 0 0 1px var(--line2);
  transition: background-color var(--t2) var(--ease); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); transition: transform var(--t2) var(--ease); }
.switch.on { background: var(--up); box-shadow: none; }
.switch.on::after { transform: translateX(20px); }
.mk-h { display: flex; align-items: center; gap: 10px; padding: 12px 8px 6px 16px; }
.mk-h b { flex: 1; font-size: 15.5px; }
.cnt { font-size: 13px; color: var(--mut); font-variant-numeric: tabular-nums; margin-right: 2px; }
.mk-c { padding: 4px 16px 16px; }
.mk-c .chip { min-height: 44px; padding: 0 14px; border-radius: 12px; font-size: 14.5px; }
.opt { min-height: 60px; }
.opt .r-t { white-space: normal; }
.opt .ck { margin-left: auto; width: 20px; height: 20px; color: var(--up-t); stroke-width: 2.4; opacity: 0; transform: scale(0.6);
  transition: opacity var(--t2) var(--ease), transform var(--t2) var(--ease); }
.opt.on .ck { opacity: 1; transform: none; }
.opt .set-i { width: 36px; height: 36px; border-radius: 11px; }
.opt .set-i .ic { width: 19px; height: 19px; }
.set-i.gold { background: var(--tint-gold); color: var(--gold-t); }
.set-i.blue { background: var(--tint-blue); color: var(--blue-t); }

/* ---------- Школа */
.ask { padding: 16px; }
.ask-h { display: flex; align-items: flex-start; gap: 12px; }
.ask-h b { display: block; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.ask-h p { margin-top: 3px; font-size: 13px; color: var(--mut); }
.ask-i { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--up-t);
  background: linear-gradient(140deg, var(--tint-up), var(--tint-blue)); box-shadow: inset 0 0 0 1px var(--line); }
.ask-i .ic { width: 22px; height: 22px; }
.ask-f { position: relative; margin-top: 14px; }
textarea {
  display: block; width: 100%; min-height: 96px; resize: none; padding: 13px 60px 13px 14px; border: 0; border-radius: var(--r-m);
  background: var(--s2); box-shadow: inset 0 0 0 1px var(--line2); color: var(--txt); font: 15px/1.45 var(--f);
  transition: box-shadow var(--t1) var(--ease);
}
textarea::placeholder { color: var(--mut); }
textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--up); }
.ask-b { position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; border: 0; border-radius: 13px; display: grid; place-items: center;
  background: var(--up); color: var(--on-up); cursor: pointer; transition: transform var(--t1) var(--ease), opacity var(--t1); }
.ask-b .ic { width: 22px; height: 22px; stroke-width: 2.3; }
.ask-b:active { transform: scale(0.94); }
.ask-b:disabled { opacity: 0.5; }
.answer:empty { display: none; }
.answer { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); line-height: 1.55; }
.ans-src { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12.5px; color: var(--mut); }
.ans-src .ic { width: 15px; height: 15px; }
.err { display: flex; align-items: center; gap: 8px; color: var(--dn-t); font-size: 14px; }
.lessons { margin-top: 12px; }
.ls-h { display: flex; align-items: center; gap: 12px; padding: 16px 16px 8px; }
.ls-h b { font: 600 14.5px/1.3 var(--f-d); letter-spacing: -0.01em; }
.ls-e { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--s2);
  box-shadow: inset 0 0 0 1px var(--line); font-size: 21px; line-height: 1; color: var(--acc-t); }
.ls-e .ic { width: 21px; height: 21px; }
.row-i.ls { min-height: 54px; padding: 10px 16px; }
.row-i.ls + .row-i.ls::before { left: 56px; }
.ls-n { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--s3);
  font: 600 13px/1 var(--f-d); color: var(--txt2); }
.ls-n .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.ls-n.done { background: var(--tint-up); color: var(--up-t); }
.row-i.ls .r-t { font-weight: 500; font-size: 15px; white-space: normal; }
.crumb { margin: 4px 4px 12px; font-size: 13px; color: var(--mut); }
.lesson { padding: 20px 18px; font-size: 16.5px; line-height: 1.62; }
.lesson b:first-of-type { font: 650 18px/1.35 var(--f-d); letter-spacing: -0.02em; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pn button { display: flex; align-items: center; gap: 8px; min-height: 76px; padding: 12px 14px; border: 0; border-radius: var(--r-m);
  background: var(--s1); box-shadow: var(--sh-1); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: transform var(--t1) var(--ease); }
.pn button:active { transform: scale(0.98); }
.pn .ic { width: 18px; height: 18px; color: var(--mut); flex: none; }
.pn small { display: block; font-size: 12px; color: var(--mut); }
.pn b { display: block; margin-top: 3px; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.pn .nx { grid-column: 2; justify-content: space-between; text-align: right; }
.pn .nx span { margin-left: auto; }

/* ---------- состояния: нет входа, ошибка */
.state { min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 8px; }
.state-art { position: relative; width: 120px; height: 120px; margin-bottom: 22px; }
.state-art .art { opacity: 0.9; }
.state-badge, .state-i { display: grid; place-items: center; border-radius: 20px; background: var(--s1); box-shadow: var(--sh-float); color: var(--gold-t); }
.state-badge { position: absolute; right: -6px; bottom: -6px; width: 52px; height: 52px; border-radius: 17px; }
.state-badge .ic { width: 26px; height: 26px; }
.state-i { width: 72px; height: 72px; margin-bottom: 20px; border-radius: 24px; }
.state-i .ic { width: 34px; height: 34px; }
.state h2 { font: 650 20px/1.25 var(--f-d); letter-spacing: -0.025em; max-width: 18ch; }
.state p { margin-top: 10px; max-width: 34ch; font-size: 15px; color: var(--txt2); }
.state .btn { margin-top: 24px; max-width: 320px; }

/* ---------- строка о риске */
.risk { display: flex; align-items: flex-start; gap: 10px; margin: 28px 2px 10px; padding: 12px 14px; border-radius: var(--r-s);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--mut); font-size: 12px; line-height: 1.45; }
.risk .ic { width: 16px; height: 16px; margin-top: 1px; color: var(--mut); }

/* ---------- нижняя навигация */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 7; max-width: 560px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--nav-h) + var(--safe-b)); padding: 5px 6px var(--safe-b);
  background: var(--glass); box-shadow: 0 -1px 0 var(--line);
  -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7);
}
.tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 0;
  border: 0; background: none; color: var(--mut); font: 600 11px/1 var(--f); letter-spacing: 0; cursor: pointer; }
.tab-i { width: 54px; height: 30px; border-radius: 15px; display: grid; place-items: center;
  transition: background-color var(--t2) var(--ease), color var(--t2) var(--ease), transform var(--t1) var(--ease); }
.tab-i svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs button.on { color: var(--txt); }
.tabs button.on .tab-i { color: var(--acc-t); }
.tabs button.on .tab-i svg { stroke-width: 2.1; }
.tabs button:active .tab-i { transform: scale(0.9); }

/* ---------- всплывающее сообщение */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 12px); z-index: 9; width: max-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: var(--r-m); background: var(--s3); color: var(--txt);
  font-size: 14px; font-weight: 500; box-shadow: var(--sh-float); opacity: 0; transform: translate(-50%, 8px);
  transition: opacity var(--t2) var(--ease), transform var(--t2) var(--ease);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast[hidden] { display: none; }
.toast .ic { width: 18px; height: 18px; }
.toast .ok { color: var(--up-t); } .toast .err { color: var(--dn-t); }

/* ---------- скелетоны загрузки */
.sk { position: relative; overflow: hidden; background: var(--s1); border-radius: var(--r-l); box-shadow: var(--sh-1); }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--shim), transparent); animation: shim 1.3s ease-in-out infinite; }
@keyframes shim { to { transform: translateX(100%); } }
.sk-hero { height: 286px; margin-top: 4px; border-radius: var(--r-xl); }
.sk-hero.short { height: 200px; }
.sk-btn { height: 52px; margin-top: 12px; border-radius: var(--r-m); }
.sk-t { height: 16px; width: 42%; margin: 30px 4px 12px; border-radius: 6px; box-shadow: none; }
.sk-list { height: 210px; }
.sk-row { height: 76px; }
.sk-h1 { height: 30px; width: 52%; margin: 8px 2px 22px; border-radius: 9px; box-shadow: none; }
.sk-seg { height: 52px; border-radius: var(--r-m); }
.sk-rail { height: 44px; margin-top: 12px; border-radius: 14px; }
.sk-dec { height: 300px; margin-top: 20px; border-radius: var(--r-xl); }
.sk-chart { height: 340px; margin: 20px -16px 0; border-radius: 0; }
.sk-text { height: 360px; }
.sk-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.sk-tile { height: 108px; border-radius: var(--r-m); }

/* ---------- подсказки ⓘ и лист снизу */
.tip { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -6px -4px -6px 0; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--mut); cursor: pointer; vertical-align: middle; position: relative; flex: none; }
.tip::before { content: ""; position: absolute; inset: -8px; }   /* зона нажатия 44 px */
.tip .ic { width: 16px; height: 16px; }
.tip:active { background: var(--s3); color: var(--txt); }
.kv-k .tip { margin-left: -4px; }
.callout .tip, .foot .tip, .scr-h .tip { margin: -6px -2px -6px 2px; }
.callout .tip .ic, .foot .tip .ic, .scr-h .tip .ic { width: 16px; height: 16px; color: var(--mut); }
.tm-meta .tip { width: 22px; height: 22px; margin: -4px 0 -4px 2px; }
.tm-meta .tip::before { inset: -11px; }
.tm-meta .tip .ic { width: 14px; height: 14px; }
.sheet-w { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(2, 6, 10, 0.55); opacity: 0; transition: opacity var(--t3) var(--ease); }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: 86vh; display: flex; flex-direction: column;
  padding: 8px 0 calc(16px + var(--safe-b)); border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--s1); box-shadow: var(--sh-float);
  transform: translateY(104%); transition: transform var(--t3) var(--ease); }
.sheet-w.show .sheet { transform: none; }
.sheet-w.show .sheet-bg { opacity: 1; }
.sheet-g { display: block; width: 38px; height: 5px; margin: 0 auto 6px; border-radius: 3px; background: var(--line2); }
.sheet-b { overflow-y: auto; padding: 10px 20px 0; overscroll-behavior: contain; }
.sh-h { display: flex; align-items: center; gap: 12px; }
.sh-h h3 { font: 650 17px/1.3 var(--f-d); letter-spacing: -0.02em; }
.sh-i { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--tint-blue); color: var(--blue-t); }
.sh-i .ic { width: 21px; height: 21px; }
.sh-i.gold { background: var(--tint-gold); color: var(--gold-t); }
.sh-p { margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--txt); }
.sh-l:empty { display: none; }
.sh-lesson { margin-top: 14px; padding: 16px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.sh-lesson b:first-of-type { font-size: 17px; }
.sh-a { display: grid; gap: 10px; margin-top: 20px; }

/* ---------- знакомство (3 экрана) */
body.noscroll { overflow: hidden; }
.onb { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 20px calc(20px + var(--safe-b)); background: var(--bg);
  animation: enter var(--t3) var(--ease) both; transition: opacity var(--t2) var(--ease); touch-action: pan-y; overflow-y: auto; }
.onb::before { content: ""; position: absolute; inset: 0 0 auto; height: 60%; z-index: -1; pointer-events: none;
  background: radial-gradient(90% 70% at 50% 18%, var(--glow) 0%, transparent 72%); }
.onb.out { opacity: 0; }
.onb-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.onb-n { font-size: 13px; color: var(--mut); font-variant-numeric: tabular-nums; }
.onb-c { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8px 4px; }
.onb-art { width: 150px; height: 150px; display: grid; place-items: center; margin-bottom: 28px; }
.onb-art .art { width: 150px; height: 150px; }
.onb-art .ring { width: 140px; height: 140px; }
.onb-art .ring-c b { font-size: 31px; }
.onb-meter { width: 230px; }
.onb-meter .meter { margin-top: 0; height: 12px; }
.onb-c h2 { font: 700 23px/1.2 var(--f-d); letter-spacing: -0.03em; max-width: 16ch; }
.onb-c p { margin-top: 14px; max-width: 34ch; font-size: 16px; line-height: 1.55; color: var(--txt2); }
.onb-dots { display: flex; justify-content: center; gap: 8px; margin: 10px 0 20px; }
.onb-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line2); transition: width var(--t2) var(--ease), background-color var(--t2); }
.onb-dots i.on { width: 24px; background: var(--up); }
.onb-b { display: grid; gap: 10px; }

/* ---------- Мои активы */
.mt { margin-top: 12px; }
.ov-r { min-height: 60px; padding: 10px 16px; gap: 10px; }
.ov-r + .ov-r::before { left: 62px; }
.mk-ic.sm { width: 36px; height: 36px; border-radius: 12px; }
.mk-ic.sm .ic { width: 19px; height: 19px; }
.ov-r .r-t .star { width: 13px; height: 13px; color: var(--gold); }
.ov-sp { width: 64px; height: 28px; flex: none; }
.ov-sp svg { display: block; width: 64px; height: 28px; overflow: visible; }
.ov-sp .ln { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ov-sp .ar { stroke: none; }
.ov-sp .up .ln { stroke: var(--up); } .ov-sp .dn .ln { stroke: var(--dn); } .ov-sp .flat .ln { stroke: var(--mut); }
.ov-sp .up .dt { fill: var(--up); } .ov-sp .dn .dt { fill: var(--dn); } .ov-sp .flat .dt { fill: var(--mut); }
.ov-r .r-end { min-width: 84px; gap: 4px; }
.ov-p { font-size: 14px; font-weight: 600; }
.ov-r .r-end small { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 600; }
.ov-r .r-end small .ic { width: 12px; height: 12px; stroke-width: 2.4; }
.ov-r .r-end small.up { color: var(--up-t); } .ov-r .r-end small.dn { color: var(--dn-t); }
.ov-sk { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 16px; }
.ov-sk i { display: block; height: 14px; border-radius: 6px; box-shadow: none; background: var(--s3); }
.ov-sk i:nth-child(1) { width: 36px; height: 36px; border-radius: 12px; }
.ov-sk i:nth-child(2) { flex: 1; }
.ov-sk i:nth-child(3) { width: 70px; }

/* ---------- новости и «замок» */
.callout b { font-weight: 650; }
.callout.lock { background: var(--tint-gold); box-shadow: inset 3px 0 0 var(--gold); }
.callout.lock > .ic { color: var(--gold-t); }
.callout.ok { background: var(--tint-up); box-shadow: inset 3px 0 0 var(--up); }
.callout.ok > .ic { color: var(--up-t); }
.imp { display: inline-flex !important; gap: 2px !important; }
.imp i { width: 5px; height: 5px; border-radius: 50%; background: var(--dn); }
.ev .r-s .ic { width: 13px; height: 13px; }
.ev .r-s .gold { font-weight: 600; }
.ev.on { background: var(--tint-gold); }
.ev.on .r-s, .ev.on .when small { color: var(--txt2); }   /* AA на золотой подложке */
.ev-f { margin-top: 1px; }
.cal-r { min-height: 60px; }
.cal { margin-top: 18px; }

/* ---------- Мой риск */
.dep { padding: 14px; }
.dep-f { display: flex; gap: 8px; }
.dep-f input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 0; border-radius: var(--r-s); background: var(--s2);
  box-shadow: inset 0 0 0 1px var(--line2); color: var(--txt); font: 600 17px/1 var(--f-m); letter-spacing: -0.01em; }
.dep-f input::placeholder { color: var(--mut); font-family: var(--f); font-weight: 400; font-size: 15px; }
.dep-f input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--up); }
.dep-f .btn.sm { min-height: 48px; flex: none; }
.stake { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--txt2); line-height: 1.45; }
.stake .ic { width: 18px; height: 18px; color: var(--up-t); flex: none; margin-top: 1px; }
.stake b { color: var(--txt); font-size: 15px; }
#rkRow .pill { flex: none; }

/* ---------- полировка 2026-11-12: переходы, отклик, графики */
.gs-up { stop-color: var(--up); } .gs-dn { stop-color: var(--dn); } .gs-flat { stop-color: var(--mut); }
#view.enter[data-dir="r"] { animation-name: enterR; } #view.enter[data-dir="l"] { animation-name: enterL; }
@keyframes enterR { from { opacity: 0; transform: translateX(18px); } }
@keyframes enterL { from { opacity: 0; transform: translateX(-18px); } }
.seg button, .auto, .lnk, .back, .tip, .row-i, .sig, .set, .opt { transition: background-color var(--t1) var(--ease), color var(--t2) var(--ease), transform var(--t1) var(--ease); }
.seg button:active, .auto:active, .lnk:active, .back:active { transform: scale(0.95); }
.row-i:active, .sig:active, .set:active, .opt:active { transform: scale(0.985); }
.tabs button { position: relative; z-index: 1; }
.tab-ind { position: absolute; top: 5px; left: 6px; width: calc((100% - 12px) / 5); height: 52px; pointer-events: none;
  transform: translateX(calc(var(--i, 0) * 100%)); transition: transform var(--t3) var(--ease); }
.tab-ind::before { content: ""; position: absolute; top: 4px; left: 50%; width: 54px; height: 30px; margin-left: -27px; border-radius: 15px; background: var(--tint-acc); }
#chart, .mini { position: relative; }
.lwc { animation: chartIn var(--t3) var(--ease) both; }
@keyframes chartIn { from { opacity: 0; transform: translateY(4px); } }
.ch-tip { position: absolute; top: 0; left: 0; z-index: 3; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: var(--r-s);
  background: var(--glass); box-shadow: var(--sh-float); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); pointer-events: none; font-size: 12px; white-space: nowrap; }
.ch-tip[hidden] { display: none; }
.ch-tip b { font-size: 15px; color: var(--txt); } .ch-tip small { color: var(--mut); font-size: 11.5px; }
.curve svg.draw .ln { stroke-dasharray: 1; animation: draw 450ms var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.swipe-h { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; font-size: 12.5px; color: var(--mut); }
.swipe-h .ic { width: 15px; height: 15px; }
.ptr { position: fixed; top: calc(var(--tg-safe-area-inset-top, 0px) + 10px); left: 50%; z-index: 8; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--s1); box-shadow: var(--sh-float); color: var(--mut); pointer-events: none; opacity: 0;
  transform: translate(-50%, calc(var(--p, 0) * 64px - 48px)) rotate(calc(var(--p, 0) * 270deg)); }
.ptr.on { opacity: var(--p, 0); } .ptr.ready { color: var(--up-t); opacity: 1; }
.ptr.spin { opacity: 1; transition: transform var(--t2) var(--ease); }
.ptr.spin .ic { animation: spin 0.9s linear infinite; }
.ptr .ic { width: 20px; height: 20px; }
html { overscroll-behavior-y: none; }

/* ---------- меньше движения по желанию пользователя */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .radar-sw { display: none; }
  .blip { animation: none !important; opacity: 1; }
  .sk::after { display: none; }
  .sheet, .sheet-bg { transition: none !important; }
}

/* ---------- демо-счёт */
.up-t { color: var(--up-t); } .dn-t { color: var(--dn-t); }
.dm-hero .hero-num { font-size: 44px; margin-top: 10px; }
.dm-hero .hero-sub b { font-weight: 600; }
.dm-curve { height: 150px; margin-top: 12px; cursor: default; }
.dm-curve .empty.sm { height: 100%; align-items: center; font-size: 13px; }
.dm-curve .empty .ic { position: static; width: 18px; height: 18px; flex: none; }
.dm-p { align-items: flex-start; }
.dm-p .r-s + .r-s { margin-top: 1px; }
.dm-v { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; text-align: right; }
.dm-v .num { font-size: 16px; letter-spacing: -0.02em; }
.dm-v small { font-size: 12px; color: var(--mut); font-variant-numeric: tabular-nums; }
.dm-cmp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dm-m { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px 10px; }
.dm-m.on { box-shadow: var(--sh-1), inset 0 0 0 1.5px var(--up); }
.dm-mt { font-size: 12px; font-weight: 600; color: var(--txt2); line-height: 1.25; min-height: 30px; }
.dm-m .num { font-size: 17px; letter-spacing: -0.02em; }
.dm-mini { position: relative; height: 54px; margin: 6px 0 4px; }
.dm-mini svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dm-mini .zero, .dm-curve .zero { stroke: var(--line2); stroke-width: 1; stroke-dasharray: 3 4; }
.dm-mini .ln { fill: none; stroke-width: 1.6; stroke-linejoin: round; }
.dm-mini .ln.up { stroke: var(--up); } .dm-mini .ln.dn { stroke: var(--dn); }
.dm-mini .g-up { stop-color: var(--up); } .dm-mini .g-dn { stop-color: var(--dn); }
.dm-ms { font-size: 11.5px; color: var(--mut); line-height: 1.3; }
.dm-l { margin: 18px 4px 8px; font-size: 13.5px; font-weight: 600; color: var(--txt2); }
.dm-c { font-size: 13.5px; line-height: 1.45; color: var(--txt2); }
.dm-tbl { margin-top: 12px; border-radius: var(--r-m); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.dm-tr { display: grid; grid-template-columns: 0.9fr 1.2fr 1fr 0.9fr; gap: 6px; padding: 8px 12px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.dm-tr > span:not(:first-child) { text-align: right; }
.dm-tr + .dm-tr { border-top: 1px solid var(--line); }
.dm-tr.h { background: var(--s2); font-size: 11.5px; color: var(--mut); font-weight: 600; }
.dm-tr.bust { background: var(--tint-dn); color: var(--dn-t); }
#dmCalc .callout, #dmCalc .tiles { margin-top: 12px; }
.dm-w { margin-top: 12px; }
#dmRow .pill, #dmHome .pill { flex: none; }
/* Deriv: мини-график открытой сделки и таймер до итога под ним */
.dv-ch { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dv-t { font: 600 12px/1 var(--f-m); color: var(--mut); }
.dv-t b { font-weight: 600; }

/* ---------- панель управления (главная) */
.ctl { margin-top: 12px; padding: 14px 10px 12px; background: var(--s1); border-radius: var(--r-l); box-shadow: var(--sh-1); }
.ctl-h { display: flex; align-items: baseline; justify-content: space-between; padding: 0 6px 10px; }
.ctl-h h2 { font: 600 14px/1.2 var(--f-d); letter-spacing: -0.01em; }
.ctl-h span { font-size: 12px; color: var(--mut); }
.ctl-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.ctl-b { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 76px; padding: 4px 0; border: 0;
  background: none; cursor: pointer; border-radius: var(--r-s); transition: transform var(--t1) var(--ease); }
.ctl-b:active { transform: scale(0.94); }
.ctl-i { position: relative; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center;
  background: var(--s2); color: var(--acc-t); box-shadow: inset 0 0 0 1px var(--line); }
.ctl-i .ic { width: 22px; height: 22px; }
.ctl-i em { position: absolute; top: -2px; right: -2px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--neu); box-shadow: 0 0 0 2.5px var(--s1); }
.ctl-b.on .ctl-i em { background: var(--up); }
.ctl-t { font-size: 11.5px; line-height: 1.15; font-weight: 550; color: var(--txt2); text-align: center; }
.ctl-s { margin-top: -4px; font-size: 10.5px; line-height: 1.1; color: var(--mut); }
.ctl-b.on .ctl-s { color: var(--up-t); }

/* ---------- счета на главной: две плитки рядом */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.duo > .group { margin: 0; }
.duo .set { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; height: 100%; padding: 14px; position: relative; }
.duo .set .r-main { width: 100%; }
.duo .set .r-t { font: 600 14px/1.2 var(--f-d); letter-spacing: -0.01em; }
.duo .set .r-s { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 6px; text-align: left; }
.duo .set .r-s span:first-child { font: 600 16px/1.2 var(--f); color: var(--txt); font-variant-numeric: tabular-nums; }
.duo .set .pill { position: absolute; top: 14px; right: 12px; }
.duo .set .chev { display: none; }
.duo .group[hidden] { display: none; }
.duo:has(> .group[hidden]) { grid-template-columns: 1fr; }

/* «Где сбывалось чаще» (22.11) */
#pkSeg { margin: 0 0 10px; }
.sec-s { margin: 16px 4px 8px; font-size: 13px; font-weight: 600; color: var(--mut); }
.gr-n .badge { margin-left: 2px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--up-t); background: color-mix(in srgb, var(--up) 16%, transparent); white-space: nowrap; }
.gr-v b.mut { font-family: var(--f-b, inherit); font-size: 13px; font-weight: 500; }

/* Сигналы: сворачиваемые группы активов (23.11) */
.mk-d > summary { list-style: none; cursor: pointer; }
.mk-d > summary::-webkit-details-marker { display: none; }
.mk-d > summary .chev { margin-left: 4px; transition: transform var(--t1) var(--ease); }
.mk-d[open] > summary .chev { transform: rotate(90deg); }
.mk-d .cnt.on { color: var(--up-t); }
.mk-a { display: flex; gap: 16px; padding: 0 16px 4px; }
.mk-d + .mk-d { margin-top: 8px; }
