/* Сейсмограф GitHub.
   Бумага самописца, чернильные трассы, красный — только для силы сигнала. */

/* Шрифты лежат у нас (web/fonts): без запросов к Google, браузер берёт только нужные алфавиты. */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/onest-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/onest-cyrillic.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-weight: 400 700; font-display: swap; src: url(/fonts/onest-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/onest-latin.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: 'Unbounded'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/fonts/unbounded-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/fonts/unbounded-cyrillic.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-weight: 500 700; font-display: swap; src: url(/fonts/unbounded-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/fonts/unbounded-latin.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 {
  --paper: #F2F4F6;
  --paper-2: #E8ECF0;
  --sheet: #FFFFFF;
  --ink: #17202B;
  --ink-2: #3A4654;
  --muted: #667381;
  --grid: #DDE3E9;
  --grid-strong: #C9D1DA;
  --rule: #CDD4DC;
  --quake: #C8102E;
  --quake-soft: rgba(200, 16, 46, 0.09);
  --warn: #93590A;
  --warn-soft: rgba(147, 89, 10, 0.1);
  --focus: #1F5FBF;
  --scrim: rgba(18, 26, 36, 0.38);
  --shadow: 0 18px 50px rgba(18, 26, 36, 0.18);

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --gutter: clamp(16px, 3vw, 36px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10151B;
    --paper-2: #18202A;
    --sheet: #151C24;
    --ink: #E4E9EF;
    --ink-2: #BAC4CF;
    --muted: #8894A2;
    --grid: #1F2832;
    --grid-strong: #2A3541;
    --rule: #2C3743;
    --quake: #FF5468;
    --quake-soft: rgba(255, 84, 104, 0.12);
    --warn: #E3A64F;
    --warn-soft: rgba(227, 166, 79, 0.12);
    --focus: #86B4FF;
    --scrim: rgba(0, 0, 0, 0.55);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
body.panel-open { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

button { cursor: pointer; }
.ghost {
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
}
.ghost:hover:not(:disabled) { border-color: var(--ink-2); }
.ghost:disabled { opacity: 0.55; cursor: default; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.linkish:hover { color: var(--ink); }

/* ---------- шапка ---------- */

.top {
  display: flex;
  align-items: center;
  gap: 14px 28px;
  flex-wrap: wrap;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 22px; fill: none; stroke: var(--quake); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.tagline { margin: 0; color: var(--muted); font-size: 13px; }
.probe { display: flex; flex: 1 1 340px; max-width: 520px; margin-left: auto; }
.probe input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-right: 0;
  border-radius: 8px 0 0 8px;
}
.probe input::placeholder { color: var(--muted); }
.probe button {
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 0 8px 8px 0;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}
.probe button:disabled { opacity: 0.6; cursor: progress; }
.status { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.status-text .warn { color: var(--warn); }
.status-text .live::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--quake);
  vertical-align: 1px;
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

main { padding: 0 var(--gutter) 72px; max-width: 1480px; margin: 0 auto; }

/* ---------- самописец ---------- */

.drum {
  margin-top: 26px;
  background-color: var(--sheet);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 16px, 16px 100%;
  background-position: 0 -1px, -1px 0;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}
.drum-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding: 16px 20px 10px;
  background: linear-gradient(var(--sheet) 70%, transparent);
}
.drum-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.drum-legend { margin: 0; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.swatch { width: 18px; height: 3px; border-radius: 2px; background: var(--quake); }

.channel {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  align-items: stretch;
  width: 100%;
  padding: 0;
  border: 0;
  border-top: 1px dashed var(--grid-strong);
  background: transparent;
  text-align: left;
}
.channel:hover .ch-name b { text-decoration: underline; text-underline-offset: 3px; }
.channel:focus-visible { outline-offset: -2px; }
.ch-label {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 10px 16px 10px 20px;
  background: linear-gradient(90deg, var(--sheet) 85%, transparent);
  min-width: 0;
}
.ch-mag {
  grid-row: 1 / 3;
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 2.3ch;
}
.ch-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-name .owner { color: var(--muted); }
.ch-name b { font-weight: 600; }
.ch-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; white-space: nowrap; overflow: hidden; }
.ch-meta strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ch-trace { position: relative; height: 70px; min-width: 0; }
.ch-trace svg { position: absolute; inset: 0; display: block; }
.ch-trace .wk line { stroke: var(--grid-strong); stroke-width: 1; }
.ch-trace .mid { stroke: var(--grid-strong); stroke-dasharray: 2 4; }
.ch-trace .calm { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; opacity: 0.8; }
.ch-trace .hot { fill: none; stroke: var(--quake); stroke-width: 1.35; stroke-linejoin: round; }
.ch-trace .pen { fill: var(--quake); }

.lvl-hi .ch-mag, .lvl-hi .mag-n { color: var(--quake); }
.lvl-mid .ch-mag, .lvl-mid .mag-n { color: var(--ink); }
.lvl-lo .ch-mag, .lvl-lo .mag-n { color: var(--muted); }

.channels.reveal .ch-trace svg {
  clip-path: inset(0 100% 0 0);
  animation: record 1.5s cubic-bezier(.25, .7, .3, 1) forwards;
  animation-delay: calc(var(--i) * 90ms);
}
@keyframes record { to { clip-path: inset(0 0 0 0); } }

.drum-axis {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  border-top: 1px solid var(--grid-strong);
  font-size: 12px;
  color: var(--muted);
  background: var(--sheet);
}
.drum-axis .ticks { display: flex; justify-content: space-between; padding: 6px 4px 8px 0; }

/* ---------- панель управления ---------- */

.board { margin-top: 34px; }
.controls { display: flex; flex-direction: column; gap: 14px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); }
.tabs button {
  position: relative;
  padding: 9px 14px 11px;
  background: none;
  border: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: -1px;
  height: 2px;
  background: var(--ink);
}
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.filters input[type="search"], .filters select {
  height: 36px;
  padding: 0 10px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 14px;
}
.filters input[type="search"] { flex: 1 1 260px; max-width: 380px; }
.filters input::placeholder { color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); }
.lang-switch button { padding: 6px 10px; font-size: 12.5px; font-weight: 600; }
.cat { color: var(--muted); }
.cat-chip { color: var(--ink); font-weight: 500; }

/* ---------- список ---------- */

.list-wrap { margin-top: 16px; }
.list-head, .row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 128px 150px 80px 76px 136px;
  gap: 18px;
  align-items: center;
}
.list-head {
  padding: 0 10px 8px;
  border-bottom: 1px solid var(--rule);
  font-size: 12.5px;
  color: var(--muted);
}
.list-head .sort { background: none; border: 0; padding: 0; text-align: left; color: inherit; }
.list-head .sort:hover { color: var(--ink); }
.list-head .sort[data-dir]::after { content: " ↓"; }
.list-head .sort[data-dir="1"]::after { content: " ↑"; }
.list { list-style: none; margin: 0; padding: 0; }
.row {
  width: 100%;
  padding: 13px 10px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--grid);
  text-align: left;
}
.row:hover { background: var(--paper-2); }
.row:focus-visible { outline-offset: -2px; }
.row.trust-bad { opacity: 0.62; }

.mag-n {
  font-family: var(--display);
  font-weight: 500;
  font-size: 21px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.mag-d { display: block; margin-top: 5px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mag-d.up { color: var(--quake); }

.who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.name { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 15px; }
.name .full { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.name .owner { color: var(--muted); }
.name b { font-weight: 600; }
.new {
  flex: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--quake);
}
.desc { color: var(--ink-2); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.lang { display: inline-flex; align-items: center; gap: 6px; }
.lang i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }

.stage { font-size: 12px; font-weight: 500; }
.stage-breakout, .stage-early { color: var(--quake); }
.stage-peak { color: var(--ink); }
.stage-cooling, .stage-steady, .stage-quiet { color: var(--muted); }
.trust-mark { color: var(--warn); font-weight: 500; }

.spark svg { display: block; }
.spark rect { fill: var(--ink-2); opacity: 0.5; }
.spark rect.hot { fill: var(--quake); opacity: 1; }
.spark rect.today { opacity: 0.28; }
.spark rect.hot.today { opacity: 0.55; }

.pace { display: flex; flex-direction: column; gap: 2px; }
.pace-n { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pace small { font-size: 12px; color: var(--muted); }
.pace small.up { color: var(--quake); }
.total, .age { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 14px; }
.seen { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--ink-2); }

.empty {
  padding: 56px 12px;
  text-align: center;
  color: var(--ink-2);
}
.empty p { margin: 0 auto 14px; max-width: 46ch; }
.list-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 10px 0; }
.count { font-size: 13px; color: var(--muted); }
.db-line { flex-basis: 100%; margin: 4px 0 0; font-size: 12.5px; color: var(--muted); max-width: 120ch; }

.archive-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.archive-bar input[type="date"] {
  height: 36px;
  padding: 0 10px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 14px;
}
.archive-bar .ghost { height: 36px; min-width: 40px; font-size: 18px; line-height: 1; padding: 0 12px; }
.archive-note { font-size: 13px; color: var(--muted); margin-left: 4px; }

/* ---------- карточка ---------- */

.scrim {
  position: fixed; inset: 0;
  background: var(--scrim);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility 0s .25s;
  z-index: 20;
}
.scrim.open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(680px, 100vw);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--sheet);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .3s cubic-bezier(.3, .7, .3, 1), visibility 0s .3s;
  z-index: 30;
}
.panel.open { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.3, .7, .3, 1); }
.panel:focus { outline: none; }
.p-inner { padding: 18px 28px 48px; }
.p-bar { display: flex; justify-content: flex-end; }
.p-close {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: none; border: 1px solid transparent; border-radius: 8px;
}
.p-close:hover { border-color: var(--rule); }
.p-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; }
.p-head { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.p-ava { width: 52px; height: 52px; border-radius: 12px; background: var(--paper-2); }
.p-title { font-size: 21px; line-height: 1.25; text-decoration: none; word-break: break-word; }
.p-title .owner { color: var(--muted); }
.p-title b { font-weight: 700; }
.p-title:hover b { text-decoration: underline; text-underline-offset: 4px; }
.p-desc { margin: 6px 0 0; color: var(--ink-2); max-width: 60ch; }
.p-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.p-tags a { color: var(--muted); }
.p-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.p-actions .ghost[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.p-actions a.ghost { text-decoration: none; display: inline-flex; align-items: center; }

.p-verdict {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 20px;
  align-items: center;
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.p-mag {
  grid-row: 1 / 3;
  font-family: var(--display);
  font-weight: 700;
  font-size: 48px;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.p-verdict .v1 { font-size: 16px; font-weight: 600; }
.p-verdict .v2 { font-size: 13.5px; color: var(--muted); }
.p-verdict .v2 .trust-mark { font-weight: 500; }

.p-sec { margin-top: 30px; }
.p-sec h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.p-about p { margin: 0 0 8px; max-width: 64ch; }
.p-about p[lang="ru"] { font-size: 16px; line-height: 1.5; }
.p-about p.en { color: var(--ink-2); }
.p-about .fine { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.p-about h4 { margin: 18px 0 6px; font-size: 14px; font-weight: 600; }
.uses { margin: 0 0 8px; padding-left: 18px; max-width: 64ch; }
.uses li { margin-bottom: 4px; }
.uses li::marker { color: var(--quake); }
.uses.en { color: var(--ink-2); font-size: 13.5px; }
.uses.en li::marker { color: var(--muted); }

.mag-hist { position: relative; height: 96px; }
.mag-hist svg { display: block; }
.mag-hist .line { fill: none; stroke: var(--ink-2); stroke-width: 1.5; }
.mag-hist circle { fill: var(--ink); }
.mag-hist circle.hi { fill: var(--quake); }
.mag-hist .gridline { stroke: var(--grid); }
.mag-hist .tick { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.why { margin: 0; padding-left: 18px; }
.why li { margin: 0 0 6px; max-width: 64ch; }
.why li::marker { color: var(--muted); }

.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-head h3 { margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.seg button { padding: 5px 11px; font-size: 13px; background: none; border: 0; border-left: 1px solid var(--rule); color: var(--muted); }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--paper-2); color: var(--ink); font-weight: 500; }
.chart { position: relative; height: 230px; user-select: none; touch-action: pan-y; }
.chart svg { display: block; }
.chart .bar { fill: var(--ink-2); opacity: 0.55; }
.chart .bar.hot { fill: var(--quake); opacity: 0.95; }
.chart .bar.today { opacity: 0.3; }
.chart .ghost-bar { fill: none; stroke: var(--ink-2); stroke-dasharray: 2 2; }
.chart .base { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.chart .gridline { stroke: var(--grid); }
.chart .tick { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .cursor { stroke: var(--ink); stroke-width: 1; opacity: 0.35; }
.tip {
  position: absolute; top: 4px;
  padding: 6px 9px;
  background: var(--ink); color: var(--paper);
  border-radius: 6px;
  font-size: 12.5px;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
}
.chart-note { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); max-width: 70ch; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px 20px;
  margin: 0;
}
.facts div { border-top: 1px solid var(--grid); padding-top: 8px; }
.facts dt { font-size: 12.5px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.facts dd small { font-weight: 400; color: var(--muted); font-size: 12.5px; }

.trust-box { padding: 14px 16px; border-radius: 10px; background: var(--paper-2); }
.trust-box.doubt, .trust-box.bad { background: var(--warn-soft); }
.trust-box p { margin: 0; }
.trust-box ul { margin: 8px 0 0; padding-left: 18px; }
.trust-box li { margin-bottom: 4px; }
.trust-box .fine { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 9px 0; border-top: 1px solid var(--grid); }
.plain li:first-child { border-top: 0; padding-top: 0; }
.plain a { text-decoration: none; font-weight: 500; }
.plain a:hover { text-decoration: underline; text-underline-offset: 3px; }
.plain small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

.p-loading, .p-error { padding: 40px 0; color: var(--ink-2); }

/* ---------- подвал ---------- */

.site-foot { max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter) 56px; }
.how {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  gap: 4px 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.how h2 { grid-row: span 3; margin: 0; font-size: 15px; font-weight: 600; }
.how p { margin: 0 0 10px; max-width: 76ch; color: var(--ink-2); font-size: 14px; }
.p-about .about-text { font-size: 16px; line-height: 1.5; }

/* ---------- уведомление ---------- */

.toast {
  position: fixed; left: 50%; bottom: 24px;
  max-width: min(560px, calc(100vw - 32px));
  padding: 11px 16px;
  background: var(--ink); color: var(--paper);
  border-radius: 10px;
  font-size: 14px;
  box-shadow: var(--shadow);
  transform: translate(-50%, 20px);
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
  z-index: 40;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s ease, transform .2s ease; }

/* ---------- узкие экраны ---------- */

@media (max-width: 1100px) {
  .list-head, .row { grid-template-columns: 56px minmax(0, 1fr) 110px 130px 70px; }
  .list-head > :nth-child(6), .list-head > :nth-child(7), .row .age, .row .seen { display: none; }
}
@media (max-width: 760px) {
  .tagline { display: none; }
  .probe { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  .status { margin-left: auto; }
  .channel, .drum-axis { grid-template-columns: 1fr; }
  .ch-label { background: none; padding: 10px 16px 0; }
  .ch-trace { height: 56px; }
  .drum-axis > span:first-child { display: none; }
  .drum-axis .ticks { padding-left: 8px; }
  .list-head { display: none; }
  .row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; }
  .row .spark, .row .total, .pace small { display: none; }
  .pace { align-items: flex-end; text-align: right; }
  .p-inner { padding: 12px 18px 40px; }
  .p-mag { font-size: 40px; }
  .how { grid-template-columns: 1fr; }
  .how h2 { grid-row: auto; margin-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .channels.reveal .ch-trace svg { clip-path: none; }
}
