/* Existing trading desk layout; colors supplied by theme.css. */

:root {
  --ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --bar: 52px;          /* верхняя панель */
  --tabs: 44px;         /* строка вкладок */
  --gut: 20px;
  --r: 12px;
  --r-sm: 6px;

  --ease: cubic-bezier(.16,.84,.44,1);
  --fast: .16s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 14px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.015em; }
p { margin: 0 0 .85em; }
a { color: inherit; }
code { font: 400 .92em/1 var(--mono); background: var(--surface-2); padding: 2px 5px; border-radius: 3px; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
[hidden] { display: none !important; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pos { color: var(--up-ink); } .neg { color: var(--down-ink); } .mut { color: var(--ink-3); }
.note { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.lbl { font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* ─── сплэш ───────────────────────────────────────────────────────────── */
#splash {
  min-height: 100svh; display: flex; flex-direction: column;
  padding: 24px max(var(--gut), 3.5vw) 26px; position: relative; overflow: hidden;
}
#splash::before { display: none; }
.splash-top { display: flex; align-items: center; gap: 12px; }
.splash-top .spacer { flex: 1; }

/* две колонки: слева обещание, справа продукт. Правая половина не должна
   пустовать — это первое, что заметно на широком экране. */
.splash-grid {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 48px; align-items: center; padding: 34px 0 26px; max-width: 1400px; width: 100%;
  margin: 0 auto;
}
@media (max-width: 1040px) { .splash-grid { grid-template-columns: 1fr; gap: 30px; padding: 24px 0; } }

.hook {
  font-size: clamp(40px, 6.4vw, 82px); line-height: .98; letter-spacing: -.04em;
  font-weight: 500; margin: 0 0 20px; max-width: 15ch;
}
/* Число — отдельной строкой: иначе «in 6» повисает сиротой в конце первой. */
.hook em { font-style: normal; color: var(--up-ink); display: block; }
.hook em.neg { color: var(--down-ink); }
.hook #hook-tail { font-size: .62em; letter-spacing: -.025em; color: var(--ink); }
.splash-sub { font-size: 16.5px; color: var(--ink-2); max-width: 56ch; margin: 0 0 24px; line-height: 1.55; }
.splash-sub b { color: var(--ink); font-weight: 500; }

.receipts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; margin: 0 0 24px; max-width: 620px;
}
.receipts div { padding: 12px 14px; background: var(--surface); }
/* подмена метрики: короткий проявляющий сдвиг, чтобы смена читалась как смена */
@keyframes swapIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.receipts div.swap { animation: swapIn .34s var(--ease) both; }
.receipts div span { min-height: 2.6em; }
.receipts b { display: block; font: 400 19px/1.1 var(--mono); font-variant-numeric: tabular-nums; margin-bottom: 5px; }
.receipts span { font-size: 11.5px; color: var(--ink-3); line-height: 1.4; display: block; }
.splash-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.splash-token {
  margin: 20px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.55; max-width: 62ch;
}
.splash-token b { color: var(--ink); font-weight: 500; }
.splash-foot { font-size: 11px; color: var(--ink-3); line-height: 1.55; max-width: 96ch; margin: 0; }

/* правая колонка — доказательство, а не украшение */
.splash-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.proof { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.proof-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-bottom: 1px solid var(--line-soft);
}
.proof-head .mono { font-size: 17px; color: var(--up-ink); font-variant-numeric: tabular-nums; }
.proof canvas { display: block; width: 100%; height: 232px; }
@media (max-width: 1040px) { .proof canvas { height: 190px; } }
.proof-foot { padding: 9px 14px; border-top: 1px solid var(--line-soft); }
.winners { list-style: none; margin: 0; padding: 4px 0; }
.winners li {
  display: flex; align-items: baseline; gap: 12px; padding: 7px 14px; font-size: 13px;
}
.winners li .t { font-weight: 500; }
.winners li .bar { flex: 1; height: 5px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.winners li .bar i { display: block; height: 100%; background: var(--up-ink); }
.winners li .v { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--up-ink); }

/* ─── бренд ───────────────────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
/* One vector mark, shared with docs, favicon and exported avatars. */
.brand .glyph { display: block; flex: none; width: 32px; height: 32px; }
.brand .mk { font-weight: 500; letter-spacing: -.02em; font-size: 20px; }
.brand .sub { font: 500 9.5px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }

/* ─── кнопки ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 18px;
  border: 1px solid var(--accent); border-radius: 999px; background: var(--accent);
  color: var(--on-accent); font: 500 14px/1 var(--ui); text-decoration: none; cursor: pointer;
  transition: background var(--fast), border-color var(--fast);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.lg { height: 50px; padding: 0 26px; font-size: 15.5px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--ink-3); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; }
.btn .arw { font-family: var(--mono); font-size: 12px; }

/* ─── шелл приложения ─────────────────────────────────────────────────── */
#app { min-height: 100svh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--bar);
  display: flex; align-items: center; gap: 16px; padding: 0 var(--gut);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.topbar .spacer { flex: 1; }
/* штамп снимка — кнопка: в нём же живёт раскрытие состояния данных,
   чтобы не держать жёлтую стену поверх первого экрана */
.stamp {
  display: inline-flex; align-items: center; gap: 8px; font: 400 11px/1 var(--mono);
  color: var(--ink-3); white-space: nowrap; background: none; border: 0; cursor: pointer;
  padding: 6px 8px; border-radius: var(--r-sm); transition: background var(--fast);
}
.stamp:hover { background: var(--surface-2); color: var(--ink-2); }
.stamp .caret { font-size: 9px; opacity: .7; }
.stampdrop {
  position: absolute; right: var(--gut); top: calc(var(--bar) - 4px); z-index: 60;
  width: min(460px, calc(100vw - var(--gut) * 2));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 12px 32px rgba(20,21,15,.14); padding: 4px 0;
}
.stampdrop .sd {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.stampdrop .sd:last-child { border-bottom: 0; }
.stampdrop .sd b { display: block; font-weight: 500; font-size: 12.5px; margin-bottom: 2px; }
.stampdrop .sd span { font-size: 12px; color: var(--ink-2); line-height: 1.45; }
.stampdrop .sd a { color: var(--accent-ink); }
.stamp .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.stamp .dot.warn { background: var(--warn-ink); }
@media (max-width: 720px) {
  .stamp .full { display: none; }
  .stamp { padding: 6px; }
  .topbar { gap: 10px; }
}
/* На узком экране в шапке остаётся только кошелёк: Follow и Docs уже есть
   на первом экране и в строке вкладок, три кнопки её распирали. */
@media (max-width: 560px) {
  .wide-only { display: none !important; }
  .tabbar .docslink { padding: 0 10px; }
}

.tabbar {
  position: sticky; top: var(--bar); z-index: 39; height: var(--tabs);
  display: flex; align-items: stretch; gap: 2px; padding: 0 var(--gut);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.tabbar::-webkit-scrollbar { display: none; }
.tabbar button {
  appearance: none; border: 0; background: none; cursor: pointer; white-space: nowrap;
  font: 500 13px/1 var(--ui); color: var(--ink-3); padding: 0 13px;
  border-bottom: 2px solid transparent; transition: color var(--fast), border-color var(--fast);
}
.tabbar button:hover { color: var(--ink); }
.tabbar button[aria-selected="true"] { color: var(--accent-ink); border-bottom-color: var(--accent-ink); }
.tabbar .docslink { display: flex; align-items: center; white-space: nowrap; margin-left: auto;
  font: 500 13px/1 var(--ui); color: var(--ink-3); text-decoration: none; padding: 0 13px;
  border-bottom: 2px solid transparent; transition: color var(--fast); }
.tabbar .docslink:hover { color: var(--ink); }

.pane { padding: 22px var(--gut) 72px; max-width: 1360px; width: 100%; margin: 0 auto; }
.pane > header { margin-bottom: 18px; }
.pane > header h2 { font-size: 21px; margin-bottom: 5px; }
.pane > header p { margin: 0; color: var(--ink-2); font-size: 13.5px; max-width: 78ch; }

/* ─── панели ──────────────────────────────────────────────────────────── */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.panel > .head {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  padding: 11px 14px; border-bottom: 1px solid var(--line-soft);
}
.panel > .head .lbl { margin-right: auto; }
.panel > .body { padding: 14px; }
.panel > .foot { padding: 10px 14px; border-top: 1px solid var(--line-soft); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
/* книга: таблица плюс панель проверки. Инлайновые grid-template-columns здесь
   недопустимы — медиазапрос их не переопределит и мобильный экран разъедется. */
.booklayout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
@media (max-width: 1000px) { .booklayout { grid-template-columns: minmax(0, 1fr); } }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* показатели */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
         border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 14px; }
@media (max-width: 980px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--surface); padding: 13px 15px 14px; }
.stat .k { font: 500 9.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.stat .v { font: 400 clamp(21px, 2.4vw, 28px)/1.1 var(--mono); font-variant-numeric: tabular-nums;
           margin: 9px 0 5px; letter-spacing: -.02em; }
.stat .v.pos { color: var(--up-ink); } .stat .v.neg { color: var(--down-ink); }
.stat .n { font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }

.kv { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0;
      border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.kv:last-child { border-bottom: 0; }
.kv b { font: 400 13px/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.kv span { color: var(--ink-3); }

/* 9.5px капитель обязана проходить AA: ink-3 на surface-3 давал 4.3:1 */
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 3px;
       background: var(--surface-3); font: 500 9.5px/1 var(--mono); letter-spacing: .08em;
       text-transform: uppercase; color: var(--ink-2); }
.tag.live { color: var(--up-ink); background: var(--up); }
.tag.plan { color: var(--warn-ink); background: var(--warn-bg); }
.tag.off  { color: var(--ink-2); }

.banner { display: flex; gap: 10px; padding: 11px 13px; border-radius: var(--r-sm);
          background: var(--warn-bg); border: 1px solid var(--warn-line); font-size: 12.5px;
          color: var(--ink-2); margin-bottom: 14px; line-height: 1.5; }
.banner b { color: var(--ink); }
.banner.info { background: var(--accent-soft); border-color: var(--line); }

/* ─── шкала входа ─────────────────────────────────────────────────────── */
.scale .axis { position: absolute; left: 0; right: 0; top: 46px; height: 1px; background: var(--line); }
.scale .tk { position: absolute; top: 41px; width: 1px; height: 11px; background: var(--line); }
.scale .tk.big { top: 36px; height: 21px; background: var(--ink-3); }
.scale .mark { position: absolute; top: 8px; bottom: 8px; width: 1px; background: var(--accent); }
.scale .mark::before {
  content: attr(data-l); position: absolute; top: -2px; left: 7px; white-space: nowrap;
  font: 500 10.5px/1 var(--mono); color: var(--accent-ink);
}
.scale .cap { position: absolute; top: 62px; font: 400 10.5px/1 var(--mono); color: var(--ink-3); }

/* ─── состав книги одной полосой ─────────────────────────────────────── */
.compbar { display: flex; height: 26px; border-radius: var(--r-sm); overflow: hidden; gap: 1px; }
.compbar i {
  display: grid; place-items: center; font: 500 10px/1 var(--mono); letter-spacing: .05em;
  color: var(--on-accent); min-width: 2px; transition: flex-grow var(--fast);
}
.compbar i.won { background: var(--up-ink); }
.compbar i.lost { background: var(--down-ink); }
.compbar i.open { background: var(--ink-3); }
.compbar i.unres { background: var(--surface-3); color: var(--ink-2); }
#entryhist { display: block; width: 100%; height: 176px; }

/* ─── карта делянок ───────────────────────────────────────────────────── */
.fieldplot { position: relative; padding: 12px 14px 14px; }
.fieldplot canvas { display: block; width: 100%; cursor: crosshair; }
.fieldplot .rd, .plot .rd {
  position: absolute; pointer-events: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 7px 9px;
  font: 400 11.5px/1.5 var(--mono); box-shadow: 0 8px 22px rgba(20,21,15,.12);
  white-space: nowrap; z-index: 3;
}
.legend { display: flex; gap: 14px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); }
.legend i { width: 11px; height: 11px; display: inline-block; border: 1px solid var(--line); border-radius: 1px; }
.legend i.ln { width: 14px; height: 0; border: 0; border-top: 2px solid; }

/* ─── график ──────────────────────────────────────────────────────────── */
.plot { position: relative; padding: 14px; }
.plot canvas { width: 100%; height: 300px; display: block; }
@media (max-width: 700px) { .plot canvas { height: 210px; } }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.seg button { appearance: none; border: 0; background: transparent; cursor: pointer;
              font: 500 11.5px/1 var(--mono); letter-spacing: .04em; color: var(--ink-2);
              padding: 8px 11px; border-right: 1px solid var(--line-soft);
              transition: background var(--fast), color var(--fast); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.seg button:hover:not([aria-pressed="true"]) { background: var(--surface-2); }
.seg button:disabled { opacity: .4; cursor: not-allowed; }

/* ─── таблицы ─────────────────────────────────────────────────────────── */
.scroller { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: right; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { font: 500 9.5px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase;
     color: var(--ink-3); background: var(--surface-2); position: sticky; top: 0; z-index: 1; }
th button { appearance: none; border: 0; background: none; font: inherit; color: inherit;
            cursor: pointer; padding: 0; letter-spacing: inherit; text-transform: inherit; }
th button[aria-sort]::after { content: " ↓"; }
th button[aria-sort="ascending"]::after { content: " ↑"; }
tbody tr { transition: background var(--fast); }
tbody tr:hover { background: var(--surface-2); }
td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
/* результат: полоска фоном под цифрой, масштаб общий по срезу */
td.res { position: relative; }
/* тонкая черта под числом, а не заливка за ним: заливка резала цифры пополам */
td.res .rbar { position: absolute; right: 12px; bottom: 5px; height: 3px; border-radius: 2px; z-index: 0; }
td.res .rbar.up { background: var(--up-ink); opacity: .55; }
td.res .rbar.dn { background: var(--down-ink); opacity: .45; }
td.res span { position: relative; z-index: 1; }
@media (max-width: 760px) { td.res .rbar { display: none; } }
td a { color: var(--accent-ink); text-decoration: none; }
td a:hover { text-decoration: underline; }
.empty { padding: 38px 14px; text-align: center; color: var(--ink-3); font-size: 13.5px; }

.filters { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; padding: 11px 14px;
           border-bottom: 1px solid var(--line-soft); }
.filters input[type="search"] {
  height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); font: 400 12.5px/1 var(--ui); color: var(--ink);
  min-width: 0; flex: 1 1 170px; max-width: 260px;
}

/* таблица в карточки на узком экране */
@media (max-width: 760px) {
  table, tbody, tr, td { display: block; }
  table { width: 100%; }
  thead { display: none; }
  tbody { padding: 2px 12px 10px; }
  tbody tr { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
             padding: 11px 13px; margin: 10px 0; }
  td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 14px;
       align-items: baseline; white-space: normal; text-align: right; }
  td::before { content: attr(data-l); font: 500 9.5px/1.4 var(--mono); letter-spacing: .08em;
               text-transform: uppercase; color: var(--ink-3); text-align: left; }
  td:first-child { padding-bottom: 8px; margin-bottom: 5px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
  td:first-child::before { display: none; }
  .scroller { overflow-x: hidden; }
}

/* ─── разборы ─────────────────────────────────────────────────────────── */
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
        padding: 15px; display: flex; flex-direction: column; gap: 11px; }
.case .kind { font: 500 9.5px/1 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.case .big-n { font: 400 27px/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.case h3 { font-size: 17px; }
.case dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 0; font-size: 12.5px; }
.case dt { color: var(--ink-3); }
.case dd { margin: 0; text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ─── шаги / строки ───────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line);
         border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); padding: 14px 15px 16px; }
.step .n { font: 500 9.5px/1 var(--mono); letter-spacing: .11em; color: var(--accent-ink); }
.step h3 { font-size: 15px; margin: 8px 0 5px; }
.step p { font-size: 12.5px; color: var(--ink-2); margin: 0; }

.rows { display: flex; flex-direction: column; }
.row { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.row:last-child { border-bottom: 0; }
.row .body { flex: 1; }
.row .body b { display: block; font-weight: 500; font-size: 13.5px; margin-bottom: 2px; }
.row .body span { font-size: 12.5px; color: var(--ink-2); }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
        border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }
.flow .fx { background: var(--surface); padding: 13px 15px 15px; }
.flow .fx b { display: block; font: 500 9.5px/1 var(--mono); letter-spacing: .1em;
              text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.flow .fx p { margin: 0; font-size: 12.5px; }

/* ─── конвейер и проверки (Method) ───────────────────────────────────── */
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
            background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (max-width: 980px) { .pipeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pipeline { grid-template-columns: 1fr; } }
.pipeline .st { background: var(--surface); padding: 13px 15px 15px; position: relative; }
.pipeline .st .n { font: 500 9.5px/1 var(--mono); letter-spacing: .11em; color: var(--ink-3); }
.pipeline .st h3 { font-size: 14.5px; margin: 8px 0 4px; }
.pipeline .st .v { font: 400 20px/1.1 var(--mono); font-variant-numeric: tabular-nums; margin: 6px 0 4px; }
.pipeline .st p { font-size: 11.5px; color: var(--ink-3); margin: 0; line-height: 1.45; }
/* стрелка между ступенями */
.pipeline .st:not(:last-child)::after {
  content: "→"; position: absolute; right: -9px; top: 50%; transform: translateY(-50%);
  font: 400 13px/1 var(--mono); color: var(--ink-3); background: var(--surface);
  width: 18px; height: 18px; display: grid; place-items: center; z-index: 2;
}
@media (max-width: 980px) { .pipeline .st::after { display: none !important; } }

.checks .row2 {
  display: flex; align-items: flex-start; gap: 12px; padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.checks .row2:last-child { border-bottom: 0; }
.checks .row2 .body { flex: 1; min-width: 0; }
.checks .row2 b { display: block; font-weight: 500; font-size: 13.5px; margin-bottom: 2px; }
.checks .row2 span { font-size: 12.5px; color: var(--ink-2); }
.badge {
  flex: none; display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
  border-radius: 3px; font: 500 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  margin-top: 1px;
}
.badge.ok   { background: var(--up); color: var(--up-ink); }
.badge.bad  { background: var(--down); color: var(--down-ink); }
.badge.warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge.off  { background: var(--surface-3); color: var(--ink-2); }

.rules { display: flex; flex-direction: column; gap: 0; }
.rules .r2 { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.rules .r2:last-child { border-bottom: 0; }
.rules .r2 b { display: block; font-weight: 500; font-size: 13px; margin-bottom: 3px; }
.rules .r2 span { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.rules .r2 code { font-size: 11.5px; }

/* ─── токен: что получаешь / чего не получаешь ───────────────────────── */
.getlist { display: flex; flex-direction: column; }
.getlist .g {
  display: flex; gap: 11px; align-items: flex-start; padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.getlist .g:first-child { padding-top: 2px; }
.getlist .g:last-child { border-bottom: 0; padding-bottom: 2px; }
.getlist .g .ic {
  flex: none; width: 18px; height: 18px; border-radius: 3px; display: grid; place-items: center;
  font: 500 12px/1 var(--mono); margin-top: 1px;
}
.getlist .g.y .ic { background: var(--up); color: var(--up-ink); }
.getlist .g.n .ic { background: var(--down); color: var(--down-ink); }
.getlist .g b { display: block; font-weight: 500; font-size: 13.5px; margin-bottom: 2px; }
.getlist .g span { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }

.mech { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 15px; }
.mech.pick { border-color: var(--up-ink); box-shadow: inset 0 0 0 1px var(--up-ink); }
.mech .top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.mech h4 { font-size: 14.5px; margin: 0; }
.mech p { font-size: 12.5px; color: var(--ink-2); margin: 0 0 8px; line-height: 1.5; }
.mech p:last-child { margin-bottom: 0; }
.mech .why { font-size: 12px; color: var(--ink-3); }

.undecided { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 20px; }
@media (max-width: 860px) { .undecided { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .undecided { grid-template-columns: 1fr; } }
.undecided span {
  font-size: 12.5px; color: var(--ink-2); padding: 6px 0 6px 16px; position: relative;
}
.undecided span::before {
  content: "—"; position: absolute; left: 0; color: var(--ink-3); font-family: var(--mono); font-size: 11px;
}

/* ─── FAQ ─────────────────────────────────────────────────────────────── */
details.q { border-bottom: 1px solid var(--line-soft); }
details.q:last-child { border-bottom: 0; }
details.q summary { cursor: pointer; list-style: none; padding: 13px 34px 13px 0; position: relative;
                    font-size: 14px; font-weight: 500; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; position: absolute; right: 4px; top: 12px;
                           font: 400 17px/1 var(--mono); color: var(--ink-3); }
details.q[open] summary::after { content: "–"; }
details.q .a { padding: 0 0 15px; max-width: 84ch; color: var(--ink-2); font-size: 13px; }
details.q .a p:last-child { margin-bottom: 0; }

.disclaimer { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; max-width: 92ch; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ─── кошельки деска ───────────────────────────────────────────────── */
.wallets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.wal {
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
  background: var(--surface-2); display: flex; flex-direction: column; gap: 3px;
}
.wal.live { border-color: var(--up-ink); background: var(--surface); }
.wtop { display: flex; align-items: center; gap: 8px; }
.wtop b { font-size: 13px; letter-spacing: .01em; }
.wval { font-family: var(--mono); font-size: 21px; letter-spacing: -.01em; margin: 2px 0 1px; }
.wval.pos { color: var(--up-ink); } .wval.neg { color: var(--down-ink); }
.wsub { font-size: 11.5px; color: var(--ink-2); line-height: 1.45; }
.wlink { font-family: var(--mono); font-size: 11px; color: var(--ink-2); margin-top: 4px; }
.wlink:hover { color: var(--accent-ink); }

/* Keep the introductory brand and snapshot readable on compact screens. */
@media (max-width: 600px) {
  .splash-top { flex-wrap: wrap; }
  .splash-top .brand { flex-wrap: wrap; }
  .splash-top #splash-stamp { width: 100%; font-size: 11px; }
  .splash-top .spacer { display: none; }
  .splash-grid { gap: 26px; }
}
