/* Traceon — консоль комплаенс-офицера. Шрифты лежат локально: работает без интернета. */
/* Extended Cyrillic includes Ә Ғ Қ Ң Ө Ү Һ and their lowercase forms.
   Ұ and І are supplied by the base Cyrillic subset. Use one font version for every subset. */
@font-face { font-family: "Plex"; font-style: normal; font-weight: 400; font-display: swap; src: url(../vendor/fonts/ibm-plex-sans-cyrillic-ext-400-normal.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: "Plex"; font-style: normal; font-weight: 500; font-display: swap; src: url(../vendor/fonts/ibm-plex-sans-cyrillic-ext-500-normal.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: "Plex"; font-style: normal; font-weight: 600; font-display: swap; src: url(../vendor/fonts/ibm-plex-sans-cyrillic-ext-600-normal.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: "Plex"; font-weight: 400; font-display: swap; src: url(../vendor/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2116, U+2190-21FF, U+25B2, U+25BC; }
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url(../vendor/fonts/ibm-plex-sans-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url(../vendor/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2116; }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url(../vendor/fonts/ibm-plex-sans-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url(../vendor/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2116; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url(../vendor/fonts/ibm-plex-sans-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Condensed"; font-weight: 600; font-display: swap; src: url(../vendor/fonts/ibm-plex-sans-condensed-latin-600-normal.woff2) format("woff2"); }

/* Traceon — демо скоринга. Рабочая панель: поиск сверху, сводка, граф слева, причины справа.
   Тёмная «биржевая» тема: янтарь — действие и бренд; зелёный/оранжевый/красный — уровни риска;
   фиолетовый — тип схемы; бирюзовый — связи с сетью. Шрифты локальные: работает без интернета. */
:root {
  --bg: #0B0E11; --panel: #161A1F; --panel-2: #1E2329; --panel-3: #262B33;
  --line: #2B3139; --line-2: #363C45;
  --ink: #EAECEF; --ink-2: #B7BDC6; --muted: #848E9C; --dim: #5E6673;
  --accent: #F0B429; --accent-soft: rgba(240, 180, 41, .12);
  --low: #2EBD85; --medium: #E8A13A; --high: #F6465D; --ok: #2EBD85;
  --violet: #8B7CF6; --violet-soft: rgba(139, 124, 246, .12);
  --cyan: #22C3D6; --cyan-soft: rgba(34, 195, 214, .10);
  --radius: 10px;
  --gutter: clamp(12px, 2vw, 24px);
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-family: "Plex", -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.5; color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-size: 22px; line-height: 1.25; }
h2 { font-size: 15px; line-height: 1.35; }
h3 { font-size: 13px; line-height: 1.35; color: var(--ink-2); }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: #111; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: 12.5px; line-height: 1.5; font-weight: 400; }

/* ---------- Шапка и тикер ---------- */
.topbar { display: flex; align-items: center; gap: 18px; height: 54px; padding: 0 var(--gutter);
  background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { border-radius: 7px; flex: none; }
.brand img.brand-wm { border-radius: 0; height: 18px; width: auto; }
.brand-name { font-weight: 600; font-size: 16px; }
.brand-sub { color: var(--muted); font-size: 12.5px; padding-left: 10px; border-left: 1px solid var(--line-2); white-space: nowrap; }
.top-link { margin-left: auto; color: var(--ink-2); font-size: 13px; text-decoration: none; }
.top-link:hover { color: var(--accent); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); min-width: 0;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
#status-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.status.ok .pulse { background: var(--low); animation: pulse 2.4s ease-out infinite; }
.status.bad { color: var(--high); border-color: rgba(246, 70, 93, .45); }
.status.bad .pulse { background: var(--high); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 189, 133, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(46, 189, 133, 0); } }
.ticker { display: flex; background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ticker::-webkit-scrollbar { display: none; }
.ticker .t { padding: 7px 18px; border-right: 1px solid var(--line); white-space: nowrap; }
.ticker .t small { display: block; color: var(--muted); font-size: 11px; }
.ticker .t b { font: 600 13.5px var(--mono); font-variant-numeric: tabular-nums; }
.ticker .t b.acc { color: var(--accent); } .ticker .t b.up { color: var(--low); }
.ticker .t i { font-style: normal; font-size: 11px; color: var(--dim); margin-left: 6px; }

/* ---------- Командная строка ---------- */
.command { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 10px 16px;
  align-items: center; padding: 12px var(--gutter); background: rgba(11, 14, 17, .92); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.search { display: flex; align-items: center; gap: 8px; margin: 0; background: var(--panel-2); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 4px 4px 4px 12px; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-ico { width: 17px; height: 17px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: 14px var(--mono); padding: 8px 2px; }
.search input::placeholder { color: var(--dim); font-family: inherit; }
kbd { font: 11px var(--mono); color: var(--dim); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 6px; }
.examples { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ex-label { color: var(--muted); font-size: 12px; flex: none; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; padding: 2px 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; flex: none; font: inherit; font-size: 12.5px; color: var(--ink-2); cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 10px; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--muted)); flex: none; }
.chip:hover { color: var(--ink); border-color: var(--line-2); background: var(--panel-2); }
.chip .cid { font: 11.5px var(--mono); color: var(--muted); }
.field-error { grid-column: 1 / -1; color: var(--high); font-size: 12.5px; }
.field-error:empty { display: none; }

/* Подпись — сворачиваемый блок */
.sig { grid-column: 1 / -1; }
.sig summary { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; font-size: 13px; color: var(--ink-2); user-select: none; }
.sig summary::-webkit-details-marker { display: none; }
.sig summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg); transition: transform .15s; }
.sig[open] summary::before { transform: rotate(45deg); }
.sig summary:hover .sig-title { color: var(--ink); }
.sig-state { font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.sig-state.ok { color: var(--low); border-color: rgba(46, 189, 133, .45); background: rgba(46, 189, 133, .08); }
.sig-body { margin-top: 10px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; }
.sig-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr) auto; gap: 10px; align-items: end; margin: 0; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
label { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea { font: 12.5px var(--mono); color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; width: 100%; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.sig-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sig-result { font-size: 12.5px; }
.sig-result:empty { display: none; }
.sig-result.ok { color: var(--low); } .sig-result.bad { color: var(--high); }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 500; font-size: 13px;
  border-radius: 7px; padding: 8px 14px; cursor: pointer; text-decoration: none; border: 1px solid var(--line-2); white-space: nowrap; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #111; font-weight: 600; padding: 8px 18px; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.primary:disabled { opacity: .6; cursor: progress; }
.btn.secondary { background: var(--panel-3); color: var(--ink); }
.btn.secondary:hover { border-color: var(--muted); }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.ghost:hover { color: var(--high); border-color: rgba(246, 70, 93, .5); }
.btn.ghost:disabled { opacity: .6; cursor: default; }
.link { font: inherit; font-size: 12.5px; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(240, 180, 41, .4); }

/* ---------- Пустое состояние ---------- */
.result { padding: 16px var(--gutter) 0; max-width: 1600px; margin: 0 auto; }
.result.loading .report { opacity: .45; transition: opacity .2s; pointer-events: none; }
.empty { max-width: 760px; margin: 48px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty::before { content: ""; width: 56px; height: 56px; background: url(../logo.svg) center/contain no-repeat; opacity: .8; }
.empty p { color: var(--muted); max-width: 60ch; }
.empty-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; width: 100%; }
.ex-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--c, var(--line-2)); border-radius: 8px; padding: 12px 14px; }
.ex-card:hover { background: var(--panel-2); border-color: var(--line-2); border-top-color: var(--c); }
.ex-card b { font-size: 14px; font-weight: 600; }
.ex-card span { font: 12px var(--mono); color: var(--muted); }

/* ---------- Сводка ---------- */
.summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.score { position: relative; width: 116px; height: 134px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--lvl, var(--ink)); }
.hex { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hex path { fill: none; stroke-linejoin: round; }
.hex-edge { stroke: var(--lvl, var(--line-2)); stroke-width: 2.5; fill: color-mix(in srgb, var(--lvl, #000) 9%, transparent) !important; }
.hex-glow { stroke: var(--lvl, transparent); stroke-width: 10; opacity: .18; filter: blur(6px); }
.score-num { position: relative; font: 600 48px/1 var(--mono); font-variant-numeric: tabular-nums; text-shadow: 0 0 22px color-mix(in srgb, var(--lvl, #fff) 45%, transparent); }
.score-of { position: relative; font-size: 11px; color: var(--muted); margin-top: 4px; }
.sum-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sum-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.sum-id { min-width: 0; }
#r-title { font: 600 18px var(--mono); letter-spacing: .01em; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: 12px; margin-top: 2px; font-family: var(--mono); overflow-wrap: anywhere; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sum-level { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.level { font-size: 18px; font-weight: 600; color: var(--lvl, var(--ink)); white-space: nowrap; }
.scale-wrap { max-width: 560px; }
.scale { position: relative; display: grid; grid-template-columns: 40fr 30fr 30fr; gap: 3px; height: 7px; }
.zone { display: block; height: 100%; border-radius: 2px; }
.zone.low { background: rgba(46, 189, 133, .55); } .zone.medium { background: rgba(232, 161, 58, .55); } .zone.high { background: rgba(246, 70, 93, .6); }
.marker { position: absolute; top: -6px; width: 4px; height: 19px; margin-left: -2px; border-radius: 2px; left: 0; background: var(--ink);
  box-shadow: 0 0 0 3px var(--panel), 0 0 12px var(--lvl, #fff); transition: left .7s cubic-bezier(.2, .8, .2, 1); }
.scale-labels { display: grid; grid-template-columns: 40fr 30fr 30fr; margin-top: 6px; font-size: 11px; color: var(--muted); }
.scheme-line { padding: 8px 12px; border: 1px solid rgba(139, 124, 246, .35); border-left: 3px solid var(--violet); background: var(--violet-soft);
  border-radius: 0 6px 6px 0; font-size: 14px; line-height: 1.45; }
.scheme-line span { font-weight: 600; color: var(--violet); margin-right: 4px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 11.5px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; color: var(--ink-2); background: var(--panel-2); }
.badge.ok { border-color: rgba(46, 189, 133, .45); color: var(--low); background: rgba(46, 189, 133, .08); }
.badge.warn { border-color: rgba(246, 70, 93, .5); color: var(--high); background: rgba(246, 70, 93, .08); }

/* ---------- Рабочая область: граф | причины ---------- */
.workspace { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.legend { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.legend li { display: flex; align-items: center; gap: 5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.focus { background: var(--accent); box-shadow: 0 0 8px rgba(240, 180, 41, .6); }
.dot.plain { background: var(--panel-3); border: 2px solid #6B7584; }
.dot.listed { background: var(--high); }
.dot.scheme { background: var(--violet); }
.graph { height: clamp(320px, 52vh, 520px); margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted);
  background-color: var(--bg); background-image: radial-gradient(rgba(132, 142, 156, .16) 1px, transparent 1px); background-size: 18px 18px; }
.patterns { margin-top: 14px; }
.patterns h3 { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pattern-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-top: 8px; }
.pattern { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--panel-2); font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.pattern b { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.pattern-stat { color: var(--muted); font-size: 11.5px; }
.pattern-list > .pattern-stat { grid-column: 1 / -1; }
.pattern.clickable { cursor: pointer; }
.pattern.clickable:hover { border-color: var(--line-2); }
.pattern.active { border-color: var(--violet); background: var(--violet-soft); }

.why-panel { display: flex; flex-direction: column; gap: 18px; }
.conclusion { padding: 12px 14px; background: var(--panel-2); border-left: 3px solid var(--lvl, var(--accent)); border-radius: 0 6px 6px 0; }
.conclusion h2 { margin-bottom: 4px; }
#r-conclusion { color: var(--ink-2); font-size: 13.5px; }
.conclusion .note { margin-top: 6px; }
.drivers-bar { display: flex; gap: 2px; height: 9px; border-radius: 3px; overflow: hidden; margin-top: 8px; background: var(--panel-3); }
.drivers-bar span { display: block; min-width: 3px; }
.drivers-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0; margin: 8px 0 0; font-size: 12px; color: var(--ink-2); }
.drivers-legend li { display: flex; align-items: center; gap: 6px; }
.drivers-legend b { font-family: var(--mono); color: var(--ink); }
.sw { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.g-hidden { background: var(--dim); } .g-network { background: var(--cyan); } .g-structure { background: var(--violet); }

/* Вкладки */
.tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.tab { font: inherit; font-size: 13px; font-weight: 500; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 8px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.count { font: 600 11px var(--mono); color: var(--dim); background: var(--panel-3); border-radius: 4px; padding: 0 5px; }
.tab.active .count { color: var(--accent); background: var(--accent-soft); }

.factor-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.factor-list li { padding: 9px 11px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.factor-list.up li { box-shadow: inset 3px 0 0 var(--high); }
.factor-list.down li { box-shadow: inset 3px 0 0 var(--low); }
.factor-list .empty-item { color: var(--muted); box-shadow: none !important; }
.f-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.f-group { display: inline-block; padding: 0 6px; border-radius: 4px; font-weight: 500; line-height: 17px; }
.f-group.g-hidden { background: var(--panel-3); color: var(--ink-2); }
.f-group.g-network { background: var(--cyan-soft); color: var(--cyan); }
.f-group.g-structure { background: var(--violet-soft); color: var(--violet); }
.factor-list .proxy { display: block; font-size: 12px; color: var(--cyan); margin-top: 3px; }
.factor-list .hint { display: block; color: var(--accent); font-size: 12px; margin-top: 2px; }
.factors-note { margin-top: 10px; font-size: 11.5px; }

/* ---------- Низ: журнал и модель ---------- */
.bottom { max-width: 1600px; margin: 16px auto 32px; margin-inline: var(--gutter); }
@media (min-width: 1648px) { .bottom { margin-inline: auto; } }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
td { padding: 7px 10px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
tbody tr:hover td { background: var(--panel-2); }
td.q { font-family: var(--mono); font-size: 12px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.lvl-low { color: var(--low) !important; } .lvl-medium { color: var(--medium) !important; } .lvl-high { color: var(--high) !important; }
.model { max-width: 760px; }
.model td:not(:first-child), .model th:not(:first-child) { text-align: right; font-family: var(--mono); }
.model tbody tr:first-child td { color: var(--accent); }
.model .note { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) { .marker { transition: none; } .status.ok .pulse { animation: none; } }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .command { grid-template-columns: minmax(0, 1fr); }
  .sig-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sig-actions { flex-direction: row; align-items: center; gap: 14px; }
}
@media (max-width: 720px) {
  .brand-sub, .top-link, kbd { display: none; }
  .status { margin-left: auto; max-width: 55vw; }
  .command { position: static; }
  .sig-form { grid-template-columns: minmax(0, 1fr); }
  .summary { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 16px; }
  .sum-main { width: 100%; text-align: left; }
  .sum-level { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .empty-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .graph { height: 340px; }
}
@media (max-width: 420px) {
  .empty-grid { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1; }
}

.report { scroll-margin-top: 96px; }
@media (max-width: 720px) { .report { scroll-margin-top: 12px; } }
