/* Генализация v2 — айдентика портала.
   Светлый серо-тёплый фон, глубокий чёрный, хром и фирменный «свет»: изумруд → мята → кислотный лайм.
   Коралл и янтарь — только для рисков. Синего, голубого и оранжевого нет намеренно.
   Шрифты: Unbounded (широкий для заголовков), Onest (текст), JetBrains Mono (метки). */

:root {
  --bg: #e8e9e4;
  --bg-2: #dcded8;
  --surface: #f5f5f1;
  --surface-2: #ffffff;
  --ink: #0a0d0c;
  --ink-2: #2c3330;
  --muted: #66706b;
  --faint: #979e9a;
  --line: rgba(10, 13, 12, 0.11);
  --line-2: rgba(10, 13, 12, 0.22);
  --em: #00a37a;
  --em-deep: #006b51;
  --mint: #5ef2c2;
  --lime: #c8ff3d;
  --grad: linear-gradient(90deg, #00a37a 0%, #5ef2c2 52%, #c8ff3d 100%);
  --grad-v: linear-gradient(180deg, #c8ff3d 0%, #5ef2c2 45%, #00a37a 100%);
  --coral: #e5484d;
  --coral-soft: rgba(229, 72, 77, 0.12);
  --amber: #d99a00;
  --amber-soft: rgba(217, 154, 0, 0.15);
  --moss: #2f8a5b;
  --moss-soft: rgba(47, 138, 91, 0.13);
  --plum: #1d2522;
  --plum-soft: rgba(10, 13, 12, 0.08);
  /* имена из первой версии — чтобы экраны не переписывать */
  --emerald: var(--em);
  --primary: var(--ink);
  --primary-ink: var(--em-deep);
  --primary-soft: rgba(0, 163, 122, 0.1);
  --primary-soft-2: rgba(0, 163, 122, 0.2);
  --on-primary: #ffffff;
  --glass: var(--surface);
  --glass-strong: var(--surface-2);
  --glass-solid: var(--surface-2);
  --glass-border: var(--line);
  --display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Onest', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r: 18px;
  --rail: 250px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0e0d; --bg-2: #121715; --surface: #131917; --surface-2: #19201d; --ink: #eef2ef; --ink-2: #c7d0cb; --muted: #8c9792; --faint: #5f6965;
  --line: rgba(238, 242, 239, 0.09); --line-2: rgba(238, 242, 239, 0.18); --plum: #e9efeb; --plum-soft: rgba(238, 242, 239, 0.08); --on-primary: #0a0d0c; --primary-ink: #5ef2c2;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto-dark"] { color-scheme: dark; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--em); outline-offset: 2px; border-radius: 6px; }
svg[viewBox="0 0 24 24"] { width: 18px; height: 18px; flex: none; }
.mono { font-family: var(--mono); font-size: 0.9em; letter-spacing: 0; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; } .nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
.bg { display: none; }

/* ---------- метки и общие приёмы ---------- */
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tags { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.tags .tag + .tag::before { content: ''; display: inline-block; width: 14px; height: 1px; background: var(--line-2); vertical-align: middle; margin: 0 10px 0 -12px; }
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.12; margin: 0; padding-top: 0.04em; }
.bgword { position: absolute; z-index: 0; pointer-events: none; user-select: none; font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 0.8; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(10, 13, 12, 0.09); letter-spacing: -0.02em; }
:root[data-theme="dark"] .bgword { -webkit-text-stroke-color: rgba(238, 242, 239, 0.08); }
.gradtext { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chrome-obj { display: block; pointer-events: none; user-select: none; filter: drop-shadow(0 30px 40px rgba(10, 13, 12, 0.18)); }
.chrome-fallback { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 8%, #c9d1cd 20%, #4b5551 55%, #e7ecea 70%, #1c2220 100%); aspect-ratio: 1; }
.barcode { height: 26px; width: 120px; background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 4px, currentColor 4px 5px, transparent 5px 8px, currentColor 8px 11px, transparent 11px 12px); opacity: 0.85; }

/* ---------- логотип ---------- */
.logo { display: block; height: 34px; width: auto; color: var(--ink); }
.logo.light { color: #fff; }

/* ---------- заставка ---------- */
#splash { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
#splash.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
#splash .bgword { font-size: 26vw; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.splash-globe { width: min(520px, 86vw); aspect-ratio: 1; position: relative; z-index: 1; margin-top: -30px; }
.splash-globe canvas { width: 100%; height: 100%; display: block; }
.splash-logo { position: relative; z-index: 1; margin-top: -24px; animation: rise 1s var(--ease) both 0.3s; }
.splash-logo .logo { height: clamp(40px, 6vw, 64px); }
.splash-sub { position: relative; z-index: 1; margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); animation: rise 1s var(--ease) both 0.5s; }
.splash-bar { position: relative; z-index: 1; width: 220px; height: 3px; background: var(--line); margin-top: 26px; overflow: hidden; border-radius: 2px; }
.splash-bar i { display: block; height: 100%; width: 0; background: var(--grad); animation: bar 2.5s var(--ease) forwards; }
.splash-corner { position: absolute; z-index: 1; }
.splash-corner.tl { top: 24px; left: 28px; } .splash-corner.tr { top: 24px; right: 28px; text-align: right; } .splash-corner.bl { bottom: 24px; left: 28px; } .splash-corner.br { bottom: 24px; right: 28px; }
@keyframes bar { to { width: 100%; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--ink); color: var(--surface-2); border-color: var(--ink); padding-left: 7px; }
:root[data-theme="dark"] .btn.primary { color: #0a0d0c; }
.btn.primary svg { width: 32px; height: 32px; padding: 8px; border-radius: 8px; background: var(--lime); color: #0a0d0c; }
.btn.primary:hover { background: #1a201e; }
:root[data-theme="dark"] .btn.primary:hover { background: #fff; }
.btn.coral { background: var(--coral); color: #fff; border-color: var(--coral); }
.btn.ghost { border-color: transparent; color: var(--em-deep); }
.btn.ghost:hover { background: var(--primary-soft); }
.btn.sm { height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; gap: 7px; }
.btn.sm.primary { padding-left: 5px; } .btn.sm.primary svg { width: 26px; height: 26px; padding: 6px; border-radius: 7px; }
.btn.xs { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; gap: 5px; }
.btn.xs svg { width: 14px; height: 14px; }
.btn.lg { height: 56px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn.lg.primary { padding-left: 8px; } .btn.lg.primary svg { width: 40px; height: 40px; padding: 10px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.light { color: #fff; border-color: rgba(255, 255, 255, 0.35); } .btn.light:hover { border-color: #fff; }
.btn.white { background: #fff; color: #0a0d0c; border-color: #fff; padding-left: 7px; } .btn.white svg { width: 32px; height: 32px; padding: 8px; border-radius: 8px; background: #0a0d0c; color: var(--lime); }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent; display: grid; place-items: center; color: inherit; flex: none; }
.icon-btn:hover { border-color: currentColor; }

/* ---------- метки статусов ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.5; background: var(--ink); color: var(--surface-2); white-space: nowrap; }
:root[data-theme="dark"] .badge { color: #0a0d0c; }
.badge.coral { background: var(--coral-soft); color: var(--coral); }
.badge.amber { background: var(--amber-soft); color: #a77400; }
:root[data-theme="dark"] .badge.amber { color: var(--amber); }
.badge.moss { background: var(--moss-soft); color: var(--moss); }
.badge.plum { background: var(--plum-soft); color: var(--ink); }
.badge.gray { background: var(--line); color: var(--muted); }
.badge.outline { background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); }
.badge.lime { background: var(--lime); color: #0a0d0c; }
.badge svg { width: 12px; height: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: currentColor; flex: none; }
.dot.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; font-size: 13px; font-weight: 520; color: var(--ink-2); transition: all 0.2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface-2); }
.chip svg { width: 14px; height: 14px; }
.gene { font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--em-deep); }
:root[data-theme="dark"] .gene { color: var(--mint); }

.seg { display: inline-flex; padding: 4px; border-radius: 12px; border: 1px solid var(--line-2); gap: 2px; flex-wrap: wrap; max-width: 100%; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 560; color: var(--ink-2); white-space: nowrap; transition: all 0.2s; }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--surface-2); }
.seg button svg { width: 16px; height: 16px; vertical-align: -3px; }

/* ---------- поверхности ---------- */
.card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: relative; min-width: 0; }
.panel { padding: 0; overflow: hidden; }
.card h3, .panel h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0; text-transform: uppercase; }
.card-head { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; }
.panel .card-head { padding: 18px 22px 0; }
.card-head .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.card.dark { background: var(--ink); color: #eef2ef; border-color: var(--ink); }
.card.dark .muted, .card.dark .sub { color: #93a09a; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.g-side { grid-template-columns: minmax(280px, 0.8fr) minmax(0, 2fr); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.mt { margin-top: 16px; }

/* ---------- поля ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line-2); background: var(--surface-2); border-radius: 10px; padding: 11px 13px; font-size: 14.5px; outline: none; transition: border 0.2s, box-shadow 0.2s; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(94, 242, 194, 0.35); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.input-icon .input { padding-left: 40px; }
.switch { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.switch:first-child { border-top: 0; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 46px; height: 26px; border-radius: 99px; background: var(--line-2); position: relative; flex: none; transition: background 0.25s; margin-top: 1px; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); transition: transform 0.3s var(--ease); }
.switch input:checked + .track { background: var(--ink); }
.switch input:checked + .track::after { transform: translateX(20px); background: var(--lime); }
.switch input:focus-visible + .track { outline: 2px solid var(--em); outline-offset: 2px; }
.switch b { display: block; font-weight: 600; font-size: 14.5px; }
.switch small { color: var(--muted); font-size: 12.5px; }
input[type=range] { accent-color: var(--em); width: 100%; }

/* ---------- загрузка файлов ---------- */
.drop { border: 1.5px dashed var(--line-2); border-radius: 16px; padding: 34px 22px; text-align: center; transition: all 0.25s var(--ease); cursor: pointer; position: relative; overflow: hidden; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(10, 13, 12, 0.025) 14px 15px); }
.drop:hover, .drop.over { border-color: var(--ink); border-style: solid; }
.drop.over { background: var(--primary-soft); }
.drop .drop-ic { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--ink); color: var(--lime); }
.drop .drop-ic svg { width: 24px; height: 24px; }
.drop b { display: block; font-family: var(--display); font-weight: 700; font-size: 14px; text-transform: uppercase; }
.drop p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.files { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); animation: rise 0.4s var(--ease) both; }
.file .ext { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; font-family: var(--mono); font-size: 10.5px; font-weight: 700; background: var(--ink); color: var(--lime); flex: none; }
.file .meta { min-width: 0; flex: 1; }
.file .meta b { display: block; font-size: 14px; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file .meta span { font-size: 12px; color: var(--muted); }

/* ---------- таблицы ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover { background: rgba(94, 242, 194, 0.08); }
.t tbody tr.click { cursor: pointer; }
.t tr.appear { animation: rowIn 0.45s var(--ease) both; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.t .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- цифры ---------- */
.kpi { padding: 18px 20px 20px; border-top: 2px solid var(--ink); border-radius: 4px 4px var(--r) var(--r); }
.kpi .lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.kpi .val { font-family: var(--display); font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin-top: 12px; font-variant-numeric: tabular-nums; }
.kpi .val small { font-family: var(--font); font-size: 15px; color: var(--muted); font-weight: 500; }
.kpi .foot { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.kpi .ic { display: none; }

/* ---------- списки ---------- */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; }
.li:first-child { border-top: 0; }
.li .grow { flex: 1; min-width: 0; }
.li .grow b { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .grow span { font-size: 12.5px; color: var(--muted); }
a.li { border-radius: 10px; margin: 0 -8px; padding: 12px 8px; }
a.li:hover { background: rgba(94, 242, 194, 0.1); }
.li > svg { width: 16px; height: 16px; }
.li-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: var(--lime); flex: none; }
.li-ic svg { width: 18px; height: 18px; }
.li-ic.coral { background: var(--coral-soft); color: var(--coral); }
.li-ic.amber { background: var(--amber-soft); color: #a77400; }
.li-ic.moss { background: var(--moss-soft); color: var(--moss); }
.li-ic.plum { background: var(--plum-soft); color: var(--ink); }

/* ---------- прогресс ---------- */
.prog { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width 0.6s var(--ease); }
.prog.amber i { background: var(--amber); } .prog.coral i { background: var(--coral); }
.ring { --p: 0; --c: var(--em); width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0); display: grid; place-items: center; flex: none; }
.ring::before { content: ''; grid-area: 1/1; width: 50px; height: 50px; border-radius: 50%; background: var(--surface); }
.ring b { grid-area: 1/1; position: relative; font-family: var(--display); font-size: 13px; font-weight: 700; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--em); animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { border-radius: 8px; background: linear-gradient(90deg, var(--line) 0%, rgba(94, 242, 194, 0.25) 40%, var(--line) 80%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- пустые состояния ---------- */
.empty { text-align: center; padding: 42px 20px; color: var(--muted); position: relative; }
.empty .em-ic { width: 70px; height: 70px; border-radius: 18px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--ink); color: var(--lime); }
.empty .em-ic svg { width: 30px; height: 30px; }
.empty b { display: block; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 15px; text-transform: uppercase; margin-bottom: 6px; }
.empty p { margin: 0 auto 16px; max-width: 46ch; font-size: 14px; }

.stream { font-size: 15px; line-height: 1.65; color: var(--ink-2); white-space: pre-wrap; }
.stream .caret { display: inline-block; width: 9px; height: 1.1em; vertical-align: -3px; background: var(--lime); margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai-note { display: flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.03em; color: var(--muted); margin-top: 10px; }
.ai-note svg { width: 14px; height: 14px; color: var(--amber); }

/* ---------- риски ---------- */
.risk-high { color: var(--coral); } .risk-mid { color: #b98200; } .risk-low { color: var(--moss); }
.zyg { display: inline-flex; gap: 3px; align-items: center; }
.zyg i { width: 11px; height: 11px; border-radius: 3px; border: 1.5px solid var(--line-2); display: inline-block; }
.zyg i.on { background: var(--coral); border-color: var(--coral); }
.zyg.mid i.on { background: var(--amber); border-color: var(--amber); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; align-items: start; }
.tile { padding: 20px; transition: transform 0.35s var(--ease), border-color 0.3s; overflow: hidden; }
.tile:hover { transform: translateY(-2px); border-color: var(--line-2); }
.tile .t-head { display: flex; gap: 12px; align-items: center; }
.tile .t-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--ink); color: var(--lime); }
.tile .t-ic svg { width: 22px; height: 22px; }
.tile.high { border-left: 3px solid var(--coral); } .tile.high .t-ic { color: var(--coral); }
.tile.mid { border-left: 3px solid var(--amber); } .tile.mid .t-ic { color: var(--amber); }
.tile.low { border-left: 3px solid var(--moss); }
.tile.none .t-ic { background: var(--line); color: var(--faint); }
.tile.none h4 { color: var(--ink-2); }
.tile h4 { margin: 0; font-size: 15.5px; font-weight: 650; line-height: 1.25; }
.tile .lvl { font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 3px; }
.meter { display: flex; gap: 4px; margin: 16px 0 12px; }
.meter i { flex: 1; height: 6px; border-radius: 2px; background: var(--line); }
.tile.low .meter i.on { background: var(--moss); } .tile.mid .meter i.on { background: var(--amber); } .tile.high .meter i.on { background: var(--coral); }
.tile .genes { display: flex; gap: 6px; flex-wrap: wrap; min-height: 26px; }
.tile .rec { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; display: none; }
.tile.open .rec { display: block; animation: rise 0.45s var(--ease) both; }
.tile .rec-btn { margin-top: 14px; }
a.tile { color: inherit; }

/* ---------- пациент ---------- */
.steps-bar { display: flex; gap: 0; flex-wrap: wrap; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; width: fit-content; max-width: 100%; }
.sb { display: flex; align-items: center; gap: 8px; padding: 10px 16px 10px 10px; font-size: 13px; font-weight: 560; color: var(--muted); border-right: 1px solid var(--line); }
.sb:last-child { border-right: 0; }
.sb i { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-family: var(--mono); font-size: 11px; background: var(--line); }
.sb.done { color: var(--ink); } .sb.done i { background: var(--ink); color: var(--lime); }
.sb.cur { color: var(--ink); background: rgba(200, 255, 61, 0.25); } .sb.cur i { background: var(--lime); color: #0a0d0c; }
.match-anim { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.match-anim .m { padding: 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.match-anim .m b { display: block; font-family: var(--display); font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.match-anim .m span { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }

/* ---------- отчёт: фирменный документ ---------- */
.report-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.sheet { background: #fdfdfb; color: #111614; border-radius: 4px; padding: 0 0 54px; position: relative; overflow: hidden; box-shadow: 0 1px 0 #fff inset, 0 40px 80px -40px rgba(10, 13, 12, 0.45), 0 0 0 1px rgba(10, 13, 12, 0.08); font-size: 13.5px; max-width: 880px; margin: 0 auto; width: 100%; }
.sheet .guilloche { display: block; width: 100%; height: 64px; }
.sheet .sh-body { padding: 26px 56px 0; position: relative; }
.sheet .sh-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 18px; border-bottom: 2px solid #111614; }
.sheet .sh-brand { display: flex; gap: 14px; align-items: center; }
.sheet .sh-brand .em { width: 56px; height: 56px; flex: none; }
.sheet .sh-brand small { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #5d6662; }
.sheet .sh-brand b { display: block; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: 0.01em; text-transform: uppercase; margin-top: 3px; }
.sheet .sh-num { text-align: right; font-family: var(--mono); font-size: 10.5px; color: #5d6662; letter-spacing: 0.04em; line-height: 1.7; }
.sheet .sh-num b { color: #111614; font-size: 12px; }
.sheet h2 { font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: 0; margin: 26px 0 6px; line-height: 1.15; }
.sheet h4 { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin: 28px 0 10px; display: flex; gap: 10px; align-items: center; }
.sheet h4::before { content: attr(data-n); background: #111614; color: #c8ff3d; padding: 2px 6px; border-radius: 4px; }
.sheet h4::after { content: ''; flex: 1; height: 1px; background: #d9dcd6; }
.sheet p { line-height: 1.6; margin: 0 0 10px; color: #2d3532; }
.sheet .meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 18px 0 6px; border: 1px solid #111614; border-radius: 6px; overflow: hidden; }
.sheet .meta-grid div { padding: 10px 14px; border-right: 1px solid #d9dcd6; }
.sheet .meta-grid div:last-child { border-right: 0; }
.sheet .meta-grid span { display: block; font-family: var(--mono); font-size: 9.5px; color: #66706b; text-transform: uppercase; letter-spacing: 0.08em; }
.sheet .meta-grid b { font-size: 13.5px; font-weight: 650; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sheet th { text-align: left; font-family: var(--mono); font-weight: 600; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.08em; color: #66706b; padding: 8px; border-bottom: 1.5px solid #111614; }
.sheet td { padding: 8px; border-bottom: 1px solid #e6e8e3; }
.sheet .sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sheet .sum div { border: 1px solid #d9dcd6; border-radius: 6px; padding: 12px 14px; position: relative; overflow: hidden; }
.sheet .sum b { display: block; font-family: var(--display); font-weight: 700; font-size: 13px; text-transform: uppercase; margin: 4px 0 2px; }
.sheet .sign-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 30px; padding-top: 18px; border-top: 1px solid #d9dcd6; position: relative; min-height: 150px; }
.sheet .sign-line { width: 220px; border-bottom: 1px solid #8f9893; height: 56px; position: relative; }
.sheet .sign-line svg { position: absolute; left: 6px; bottom: 2px; width: 200px; height: 60px; overflow: visible; }
.sheet .seal { position: absolute; left: 190px; bottom: -4px; width: 168px; height: 168px; transform: rotate(-9deg) scale(0.6); opacity: 0; pointer-events: none; }
.sheet .seal.on { animation: stamp 0.55s cubic-bezier(0.2, 1.6, 0.4, 1) forwards; }
@keyframes stamp { from { opacity: 0; transform: rotate(-9deg) scale(1.6); } to { opacity: 0.92; transform: rotate(-9deg) scale(1); } }
.sheet .qr { display: flex; gap: 12px; align-items: center; }
.sheet .qr svg { width: 76px; height: 76px; }
.sheet .qr span { font-family: var(--mono); font-size: 9.5px; color: #5d6662; line-height: 1.6; max-width: 170px; }
.sheet .watermark { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%) rotate(-22deg); font-family: var(--display); font-size: 104px; font-weight: 800; color: transparent; -webkit-text-stroke: 2px rgba(217, 154, 0, 0.25); letter-spacing: 0.04em; pointer-events: none; white-space: nowrap; }
.sheet .wm-emblem { position: absolute; right: -60px; top: 120px; width: 360px; opacity: 0.045; pointer-events: none; }
.sheet .foot-note { margin-top: 22px; font-family: var(--mono); font-size: 9.5px; color: #7b8480; line-height: 1.6; letter-spacing: 0.02em; }
.sheet .microtext { font-family: var(--mono); font-size: 6.5px; letter-spacing: 0.25em; color: #9aa39f; white-space: nowrap; overflow: hidden; margin-top: 10px; }
.sig { width: 200px; height: 60px; overflow: visible; }
.sig.on path { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1.6s var(--ease) 0.35s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.status-steps { display: flex; flex-direction: column; }
.ss { display: flex; gap: 12px; align-items: flex-start; position: relative; padding-bottom: 18px; }
.ss:last-child { padding-bottom: 0; }
.ss::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line-2); }
.ss:last-child::before { display: none; }
.ss i { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-family: var(--mono); font-size: 12px; background: var(--line); color: var(--muted); flex: none; position: relative; z-index: 1; }
.ss i svg { width: 15px; height: 15px; }
.ss.done i { background: var(--ink); color: var(--lime); } .ss.done::before { background: var(--ink); }
.ss.cur i { background: var(--lime); color: #0a0d0c; }
.ss b { display: block; font-size: 14.5px; font-weight: 650; }
.ss span { font-size: 12.5px; color: var(--muted); }
@media (min-width: 1181px) { .report-side { position: sticky; top: 20px; } }

/* ---------- конвейер ---------- */
.pipe { padding: 20px 22px; }
.pipe-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pipe-head h3 { font-size: 15px; }
.pipe-steps { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.ps { border-radius: 10px; padding: 10px 10px 9px; background: var(--surface-2); border: 1px solid var(--line); position: relative; overflow: hidden; min-height: 88px; display: flex; flex-direction: column; text-align: left; transition: border-color 0.25s; color: var(--ink); }
.ps:hover { border-color: var(--ink); }
.ps .n { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); }
.ps .nm { font-size: 12.5px; font-weight: 600; line-height: 1.2; margin-top: 4px; }
.ps .ct { margin-top: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); padding-top: 6px; }
.ps .fill { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--grad); transition: width 0.6s var(--ease); }
.ps.done { background: var(--ink); border-color: var(--ink); color: #eef2ef; }
.ps.done .n { color: var(--lime); } .ps.done .ct { color: #93a09a; }
:root[data-theme="dark"] .ps.done { background: #eef2ef; color: #0a0d0c; } :root[data-theme="dark"] .ps.done .n { color: var(--em-deep); }
.ps.running { border: 1.5px solid var(--ink); background: linear-gradient(180deg, rgba(200, 255, 61, 0.28), transparent 70%), var(--surface-2); }
.ps.running .n { color: var(--ink); }
.ps.skipped { background: repeating-linear-gradient(135deg, var(--line), var(--line) 5px, transparent 5px, transparent 10px); }
.ps.skipped .nm { text-decoration: line-through; color: var(--muted); }
.ps.error { border: 1.5px solid var(--coral); background: var(--coral-soft); } .ps.error .n { color: var(--coral); }
.pipe-path { display: grid; grid-template-columns: 3fr 3fr 2fr; gap: 6px; margin-top: 8px; }
.pipe-path span { font-family: var(--mono); font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; border-top: 1px solid var(--line-2); padding-top: 5px; }
.logline { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 10px; font-size: 13px; padding: 8px 0; border-top: 1px solid var(--line); align-items: center; }
.logline:first-child { border-top: 0; }
.logline.appear { animation: rowIn 0.4s var(--ease) both; }

/* ---------- справочник: граф ---------- */
.tree-graph { position: relative; overflow: auto; min-height: 420px; }
.tree-graph svg { display: block; }
.tg-link { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.tg-link.hl { stroke: url(#tgGrad); stroke-width: 3; }
.tg-node { cursor: pointer; }
.tg-node rect { fill: var(--surface-2); stroke: var(--line-2); transition: all 0.2s; }
.tg-node:hover rect { stroke: var(--ink); }
.tg-node.sel > rect:first-of-type { fill: var(--ink); stroke: var(--ink); }
.tg-node.sel text { fill: var(--surface-2); }
.tg-node text { font-family: var(--font); font-size: 12.5px; fill: var(--ink); }
.tg-node .mono-t { font-family: var(--mono); font-size: 12px; font-weight: 600; fill: var(--em-deep); }
.tg-node.sel .mono-t { fill: var(--lime); }
.tg-node .tog { fill: var(--surface-2); stroke: var(--ink); }
.tg-node .tog-t { font-family: var(--mono); font-size: 11px; fill: var(--ink); font-weight: 700; text-anchor: middle; }
.tg-node.sel .tog-t { fill: var(--ink); }
.tg-col { font-family: var(--mono); font-size: 10.5px; fill: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.tg-k-disease rect.k { fill: var(--ink); } .tg-k-bioblock rect.k { fill: #8a948f; } .tg-k-phenotype rect.k { fill: var(--em); } .tg-k-gene rect.k { fill: #5ef2c2; } .tg-k-rs rect.k { fill: #9ad200; }
.tg-node.sel rect.k { fill: var(--lime); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend i.k-disease { color: var(--ink); } .legend i.k-bioblock { color: #8a948f; } .legend i.k-phenotype { color: var(--em); } .legend i.k-gene { color: #5ef2c2; } .legend i.k-rs { color: #9ad200; }
.tree-list { font-size: 14px; }
.tl-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.tl-row:hover { background: rgba(94, 242, 194, 0.12); }
.tl-row .car { width: 18px; color: var(--muted); transition: transform 0.2s; flex: none; display: grid; place-items: center; }
.tl-row .car svg { width: 14px; height: 14px; }
.tl-row.open .car { transform: rotate(90deg); }
.tl-kind { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; padding: 2px 6px; border-radius: 4px; flex: none; line-height: 1.5; }
.k-disease { background: var(--ink); color: var(--surface-2); } .k-bioblock { background: rgba(138, 148, 143, 0.22); color: #4b5551; } .k-phenotype { background: rgba(0, 163, 122, 0.14); color: var(--em-deep); } .k-gene { background: rgba(94, 242, 194, 0.3); color: #00563f; } .k-rs { background: rgba(200, 255, 61, 0.45); color: #2c3a00; }
.ent-card dl { display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; margin: 14px 0 0; font-size: 13.5px; }
.ent-card dt { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding-top: 2px; }
.ent-card dd { margin: 0; font-weight: 520; min-width: 0; overflow-wrap: anywhere; }
.k5 { width: 100%; max-width: 280px; display: block; margin: 0 auto; }
.k5 text { font-family: var(--mono); font-size: 10.5px; font-weight: 700; fill: var(--ink); text-anchor: middle; text-transform: uppercase; }
.k5 line { stroke: var(--line-2); stroke-width: 1.4; }
.k5 line.on { stroke: var(--ink); stroke-width: 2; }
.path-builder { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.path-step { display: inline-flex; align-items: center; gap: 6px; padding: 7px 8px 7px 12px; border-radius: 10px; background: var(--ink); color: var(--surface-2); font-weight: 560; font-size: 13.5px; }
.path-step button { border: 0; background: rgba(255, 255, 255, 0.15); color: inherit; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; }
.path-step button svg { width: 12px; height: 12px; }
.arrow { color: var(--faint); }
.cat-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.cat-side { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1500px) { .cat-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .cat-side { grid-template-columns: minmax(0, 1fr); } }

/* ---------- модерация ---------- */
.mod-item { display: flex; gap: 12px; padding: 12px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; text-align: left; background: transparent; width: 100%; color: inherit; }
.mod-item:hover { background: rgba(94, 242, 194, 0.1); }
.mod-item.on { background: var(--surface-2); border-color: var(--ink); }
.mod-item .grow { min-width: 0; flex: 1; }
.mod-item b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod-item span { font-size: 12.5px; color: var(--muted); }
.mod-item .badge { flex: none; align-self: flex-start; font-size: 10px; color: var(--muted); margin-top: 2px; }
.mod-item .grow span { display: block; overflow: hidden; text-overflow: ellipsis; }
.mod-item .li-ic { width: 36px; height: 36px; }
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.diff > div { border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.diff .was { background: var(--coral-soft); } .diff .now { background: rgba(200, 255, 61, 0.35); }
.diff span { display: block; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 4px; }
.diff .was span { color: var(--coral); } .diff .now span { color: #3b5200; }

/* ---------- модальные окна ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(10, 13, 12, 0.42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fadeIn 0.25s both; }
.modal { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.5); animation: pop 0.4s var(--ease) both; position: relative; }
.modal h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: 20px; text-transform: uppercase; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.drawer { position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(540px, calc(100% - 24px)); z-index: 81; padding: 26px; overflow: auto; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.5); animation: slideIn 0.45s var(--ease) both; }
.drawer h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
pre.code { font-family: var(--mono); font-size: 12.5px; background: var(--ink); color: #d6f5e9; border-radius: 12px; padding: 16px; overflow: auto; white-space: pre-wrap; margin: 0; }
.palette { width: min(660px, 100%); align-self: start; margin-top: 10vh; padding: 0; overflow: hidden; background: var(--ink); color: #eef2ef; border-color: var(--ink); }
.palette .p-in { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.palette .p-in svg { width: 20px; height: 20px; color: var(--lime); }
.palette input { flex: 1; border: 0; background: transparent; outline: none; font-size: 18px; color: #fff; }
.palette input::placeholder { color: #6f7a75; }
.palette kbd, kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 5px; border: 1px solid currentColor; opacity: 0.6; }
.palette .p-list { max-height: 50vh; overflow: auto; padding: 8px; }
.palette .p-grp { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: #6f7a75; padding: 10px 12px 4px; }
.palette .p-it { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.palette .p-it svg { width: 18px; height: 18px; color: var(--mint); flex: none; }
.palette .p-it.on { background: rgba(200, 255, 61, 0.14); }
.palette .p-it span { color: #7f8a85; font-size: 12.5px; margin-left: auto; }
.palette .p-foot { display: flex; gap: 14px; padding: 10px 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-family: var(--mono); font-size: 11px; color: #6f7a75; }
.palette .empty b { color: #fff; }
#toasts { position: fixed; z-index: 90; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 12px; border-radius: 12px; background: #0a0d0c; color: #eef2ef; font-size: 14px; font-weight: 520; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.45); animation: toastIn 0.45s var(--ease) both; }
.toast svg { width: 26px; height: 26px; padding: 5px; border-radius: 7px; background: var(--lime); color: #0a0d0c; flex: none; }
.toast.out { animation: toastOut 0.35s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ========== КАБИНЕТ ========== */
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 12px; margin: 12px 0 12px 12px; height: calc(100vh - 24px); display: flex; flex-direction: column; padding: 18px 12px 12px; border-radius: 22px; background: #0a0d0c; color: #e9eeeb; overflow: hidden; }
.sidebar::after { content: ''; position: absolute; left: -40px; right: -40px; bottom: -120px; height: 220px; background: radial-gradient(closest-side, rgba(94, 242, 194, 0.28), transparent); pointer-events: none; }
.sidebar .brand { padding: 2px 8px 14px; display: block; }
.sidebar .brand .logo { height: 26px; }
.sidebar .brand .tag { color: #6f7a75; display: block; margin-top: 8px; font-size: 10px; }
.search-pill { display: flex; align-items: center; gap: 9px; margin: 0 4px 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); color: #8d9893; font-size: 13.5px; text-align: left; width: calc(100% - 8px); }
.search-pill svg { width: 16px; height: 16px; }
.search-pill kbd { margin-left: auto; }
.nav { flex: 1; overflow-y: auto; padding: 0 2px; scrollbar-width: none; position: relative; z-index: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav-group { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: #59635f; padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: #c9d2cd; font-size: 14px; font-weight: 500; position: relative; transition: background 0.2s, color 0.2s; }
.nav a .code { font-family: var(--mono); font-size: 10px; color: #59635f; width: 24px; flex: none; }
.nav a svg { display: none; }
.nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav a.on { background: var(--grad); color: #0a0d0c; font-weight: 650; }
.nav a.on .code { color: rgba(10, 13, 12, 0.6); }
.nav a.locked { opacity: 0.4; }
.nav a .badge { margin-left: auto; background: rgba(200, 255, 61, 0.16); color: var(--lime); }
.nav a.on .badge { background: #0a0d0c; color: var(--lime); }
.nav a .badge svg { display: inline; width: 11px; height: 11px; }
.side-foot { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 12px 4px 0; display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.avatar { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 12px; color: #0a0d0c; background: var(--grad); flex: none; }
.who { min-width: 0; flex: 1; }
.who b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who span { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0; color: #7f8a85; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .icon-btn { width: 32px; height: 32px; color: #9aa5a0; }
.side-foot .icon-btn svg { width: 16px; height: 16px; }

.main { min-width: 0; padding: 12px 30px 110px; position: relative; overflow-x: clip; }
.mobile-top { display: none; }
#view { animation: viewIn 0.5s var(--ease) both; position: relative; z-index: 2; }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* герой экрана кабинета */
.hero { position: relative; padding: 44px 0 28px; margin-bottom: 22px; min-height: 250px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero .road { position: absolute; inset: -12px -30px 0 -30px; z-index: 0; pointer-events: none; overflow: hidden; }
.hero .road svg { width: 100%; height: 100%; }
.hero .road { -webkit-mask-image: linear-gradient(90deg, transparent 0 38%, #000 70%); mask-image: linear-gradient(90deg, transparent 0 38%, #000 70%); }
.hero .bgword { right: -10px; top: 6px; font-size: clamp(120px, 15vw, 230px); }
.hero .chrome-obj { position: absolute; right: 3%; top: 8px; width: clamp(150px, 17vw, 250px); z-index: 1; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(2deg); } }
.hero > *:not(.road):not(.bgword):not(.chrome-obj) { position: relative; z-index: 2; }
.hero .tags { margin-bottom: 18px; }
.hero h1 { font-size: clamp(30px, 4vw, 60px); max-width: min(15ch, calc(100% - 250px)); }
.hero h1.long { font-size: clamp(26px, 3.3vw, 48px); }
.hero .lead { margin: 14px 0 0; color: var(--ink-2); max-width: 62ch; font-size: 15.5px; }
.hero .crumbs { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.hero .crumbs a { border-bottom: 1px solid var(--line-2); }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); z-index: 2; }

.disclaimer { margin: 40px 0 0; padding-top: 14px; border-top: 1px solid var(--line-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.disclaimer svg { width: 14px; height: 14px; }
.tabs-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.locked-card { max-width: 560px; margin: 30px auto; text-align: center; }
.tabbar { display: none; }
.sheet-menu .nav a { color: var(--ink); padding: 12px; font-size: 15px; }
.sheet-menu .nav a .code { color: var(--muted); }
.sheet-menu .nav-group { color: var(--muted); }

/* ========== ПУБЛИЧНЫЙ ПОРТАЛ ========== */
.pub { position: relative; overflow: hidden; }
.pnav { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 40; width: min(1400px, calc(100% - 24px)); height: 56px; display: flex; align-items: center; gap: 18px; padding: 0 8px 0 18px; border-radius: 14px; background: #0a0d0c; color: #eef2ef; box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.5); }
.pnav .logo { height: 22px; }
.pnav nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.pnav nav a { font-size: 13.5px; color: #c4ccc8; padding: 8px 12px; border-radius: 8px; }
.pnav nav a:hover, .pnav nav a.on { color: #fff; background: rgba(255, 255, 255, 0.08); }
.pnav .btn { height: 40px; }
.pnav .menu-btn { display: none; color: #fff; }
.wrap { width: min(1400px, calc(100% - 48px)); margin: 0 auto; position: relative; }
.psec { position: relative; padding: 96px 0; }
.psec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; position: relative; z-index: 2; }
.psec-head h2 { font-size: clamp(30px, 4.4vw, 64px); }
.psec-head p { max-width: 48ch; color: var(--ink-2); margin: 12px 0 0; font-size: 16px; }
.phero { min-height: 100vh; padding: 120px 0 40px; position: relative; display: flex; flex-direction: column; }
.phero .bgword { font-size: 34vw; left: -2vw; bottom: 6vh; }
.phero canvas.hero3d { position: absolute; right: -4vw; top: 40px; width: min(62vw, 880px); height: min(92vh, 900px); z-index: 1; }
.phero .hero-text { position: relative; z-index: 2; max-width: 760px; margin-top: auto; }
.phero h1 { font-size: clamp(40px, 5.6vw, 92px); }
.phero h1 em { font-style: normal; }
.phero .lead { font-size: 18px; color: var(--ink-2); max-width: 52ch; margin: 22px 0 28px; }
.aud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 48px; position: relative; z-index: 2; }
.aud a { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 12px; min-height: 190px; transition: background 0.25s, color 0.25s, transform 0.3s var(--ease); }
.aud a:hover { background: #0a0d0c; color: #eef2ef; transform: translateY(-3px); }
.aud a:hover .tag, .aud a:hover p { color: #93a09a; }
.aud h3 { font-family: var(--display); font-weight: 800; font-size: 20px; text-transform: uppercase; margin: 0; }
.aud p { margin: 0; color: var(--ink-2); font-size: 14px; }
.aud .go { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.aud .go i { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--lime); color: #0a0d0c; }
.facts { position: relative; }
.facts svg.roads { width: 100%; height: auto; display: block; }
.facts .flash { animation: flashmove 7s linear infinite; }
@keyframes flashmove { to { stroke-dashoffset: -2040; } }
.facts .fact { position: absolute; display: flex; gap: 12px; align-items: flex-start; transform: translate(-50%, -50%); }
.facts .fact .top { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg); }
.facts .fact b { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.4vw, 54px); line-height: 0.9; }
.facts .fact span { display: block; font-size: 12.5px; color: var(--ink-2); max-width: 20ch; line-height: 1.35; margin-top: 4px; }
.facts .fact.light b, .facts .fact.light span { color: #0a0d0c; }
.facts-list { display: none; }
.how { position: relative; }
.how .track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.how .st > .tag { display: block; margin-top: 46px; }
.how .track::before { content: ''; position: absolute; left: 0; right: 0; top: 84px; height: 44px; border-radius: 30px; background: var(--bg-2); }
.how .track::after { content: ''; position: absolute; left: 2%; right: 18%; top: 99px; height: 14px; border-radius: 8px; background: var(--grad); box-shadow: 0 0 30px rgba(94, 242, 194, 0.7); animation: flow 6s ease-in-out infinite alternate; }
@keyframes flow { from { right: 70%; } to { right: 4%; } }
.how .st { position: relative; z-index: 1; }
.how .st .num { font-family: var(--display); font-weight: 800; font-size: 72px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.how .st .chrome-obj { width: 120px; margin: -10px 0 0 auto; position: relative; z-index: 2; }
.how .st h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 17px; margin: 12px 0 6px; }
.how .st p { margin: 0; color: var(--ink-2); font-size: 14px; }
.map-wrap { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(260px, 1fr); gap: 18px; align-items: stretch; }
.mapbox { background: #0a0d0c; border-radius: 22px; position: relative; overflow: hidden; color: #eef2ef; min-height: 520px; }
.mapbox svg { width: 100%; height: 100%; display: block; }
.mapbox .m-dot { fill: rgba(238, 242, 239, 0.22); }
.mapbox .m-node { cursor: pointer; }
.mapbox .m-node circle.core { fill: var(--lime); }
.mapbox .m-node.lab circle.core { fill: var(--mint); }
.mapbox .m-node circle.halo { fill: none; stroke: var(--lime); stroke-opacity: 0.5; transform-box: fill-box; transform-origin: center; animation: halo 2.8s ease-out infinite; }
.mapbox .m-node.lab circle.halo { stroke: var(--mint); }
@keyframes halo { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.mapbox .m-label { font-family: var(--mono); font-size: 10px; fill: #b9c3be; letter-spacing: 0.04em; paint-order: stroke; stroke: #0a0d0c; stroke-width: 3px; }
.mapbox .m-label.hub { fill: var(--lime); font-weight: 700; font-size: 11px; }
.mapbox .m-arc { fill: none; stroke: url(#arcGrad); stroke-width: 1.4; stroke-dasharray: 4 6; animation: dash 18s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }
.mapbox .m-tags { position: absolute; left: 22px; top: 18px; right: 22px; display: flex; justify-content: space-between; }
.mapbox .m-tags .tag { color: #7f8a85; }
.mapbox .m-tip { position: absolute; background: #fff; color: #0a0d0c; border-radius: 10px; padding: 10px 12px; font-size: 13px; pointer-events: none; transform: translate(-50%, -120%); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); white-space: nowrap; }
.map-side { display: flex; flex-direction: column; gap: 12px; }
.map-side .card { flex: 1; }
.big-num { font-family: var(--display); font-weight: 800; font-size: 48px; line-height: 1; }
.kb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kb-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; min-height: 260px; transition: transform 0.3s var(--ease), border-color 0.3s; }
.kb-card:hover { transform: translateY(-3px); border-color: var(--ink); }
.kb-card h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 19px; margin: 0; line-height: 1.15; }
.kb-card .bgword { font-size: 120px; right: -10px; bottom: -20px; }
.guide-teaser { background: #0a0d0c; color: #eef2ef; border-radius: 26px; padding: 48px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; position: relative; overflow: hidden; }
.guide-teaser .bgword { -webkit-text-stroke-color: rgba(255, 255, 255, 0.07); font-size: 220px; right: -20px; bottom: -40px; }
.guide-teaser h2 { font-size: clamp(28px, 3.6vw, 52px); }
.guide-teaser p { color: #b9c3be; }
.guide-teaser ol { list-style: none; margin: 0; padding: 0; counter-reset: g; display: grid; gap: 10px; position: relative; z-index: 1; }
.guide-teaser li { counter-increment: g; display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.guide-teaser li::before { content: counter(g, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: #0a0d0c; background: var(--lime); padding: 3px 6px; border-radius: 5px; }
.ticker { background: #0a0d0c; color: #eef2ef; overflow: hidden; border-top: 1px solid #222; border-bottom: 1px solid #222; position: relative; }
.ticker::before { content: ''; position: absolute; inset: 0; background: var(--grad); opacity: 0.12; }
.ticker .tk { display: flex; gap: 40px; align-items: center; padding: 14px 0; white-space: nowrap; width: max-content; animation: marquee 40s linear infinite; position: relative; }
.ticker .tk > * { flex: none; }
.ticker .tk .w { font-family: var(--display); font-weight: 800; font-size: 26px; }
.ticker .tk .tag { color: #93a09a; }
.ticker .tk .qr { width: 34px; height: 34px; }
.ticker .tk .barcode { color: #eef2ef; }
@keyframes marquee { to { transform: translateX(-50%); } }
.pfoot { background: #0a0d0c; color: #eef2ef; padding: 80px 0 40px; position: relative; overflow: hidden; }
.pfoot::before { content: ''; position: absolute; left: -10%; right: -10%; bottom: -60%; height: 120%; background: radial-gradient(closest-side, rgba(0, 163, 122, 0.45), transparent 70%); }
.pfoot .wrap { z-index: 1; }
.pfoot h2 { font-size: clamp(34px, 5vw, 80px); }
.pfoot .cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 56px; font-size: 14px; }
.pfoot .cols .tag { color: #6f7a75; display: block; margin-bottom: 8px; }
.pfoot .cols a { display: block; color: #c9d2cd; padding: 3px 0; }
.pfoot .bottom { margin-top: 56px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.pfoot .bottom .tag { color: #6f7a75; }
.pfoot .logo.huge { height: auto; width: 100%; margin-top: 50px; color: #eef2ef; opacity: 0.95; }
.page-sub { padding-top: 120px; }
.guide-sheet { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.callout { display: flex; gap: 14px; padding: 18px; border-top: 1px solid var(--ink); }
.callout .n { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; min-width: 44px; }
.callout h4 { margin: 0 0 4px; font-family: var(--display); font-weight: 700; font-size: 14px; text-transform: uppercase; }
.callout p { margin: 0; font-size: 14px; color: var(--ink-2); }
.pin { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--lime); color: #0a0d0c; font-family: var(--mono); font-size: 11px; font-weight: 700; vertical-align: middle; margin-left: 6px; }

/* вход */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 520px); gap: 0; padding: 84px 12px 12px; }
.login-art { position: relative; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.login-art .bgword { font-size: 22vw; left: -1vw; top: 6vh; }
.login-art .chrome-obj { position: absolute; right: 6%; top: 8%; width: min(36vw, 420px); }
.login-art h1 { font-size: clamp(36px, 5vw, 76px); position: relative; z-index: 2; }
.login-art p { position: relative; z-index: 2; max-width: 46ch; color: var(--ink-2); font-size: 16px; }
.login-form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 34px; display: flex; flex-direction: column; gap: 14px; align-self: center; }
.login-form h2 { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 22px; }
.roles { display: grid; gap: 8px; }
.role-opt { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: transparent; text-align: left; transition: all 0.2s; color: inherit; }
.role-opt:hover { border-color: var(--ink); }
.role-opt[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: #eef2ef; }
.role-opt[aria-checked="true"] .ic { background: var(--lime); color: #0a0d0c; }
.role-opt[aria-checked="true"] span span { color: #93a09a; }
.role-opt .ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: var(--lime); flex: none; }
.role-opt b { display: block; font-weight: 650; font-size: 15px; }
.role-opt span span { font-size: 13px; color: var(--muted); }
.role-opt .code { font-family: var(--mono); font-size: 10px; margin-left: auto; white-space: nowrap; flex: none; opacity: 0.6; align-self: flex-start; }
.guest-link { background: none; border: 0; color: var(--em-deep); padding: 6px 0; font-weight: 600; text-align: left; }

/* ---------- адаптив ---------- */
@media (max-width: 1599px) { .hide-md { display: none !important; } }
@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main, .g-side { grid-template-columns: minmax(0, 1fr); }
  .report-layout { grid-template-columns: minmax(0, 1fr); }
  .pipe-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pipe-path { display: none; }
  .map-wrap { grid-template-columns: minmax(0, 1fr); }
  .kb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pnav nav { display: none; }
  .pnav .menu-btn { display: grid; margin-left: auto; }
  .pnav .spacer { display: none; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .main { padding: 0 16px 110px; }
  .mobile-top { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 20; margin: 0 -16px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: #0a0d0c; color: #eef2ef; }
  .mobile-top .logo { height: 20px; }
  .mobile-top .avatar { width: 32px; height: 32px; }
  .hero { min-height: 0; padding: 26px 0 22px; }
  .hero .chrome-obj { width: 84px; right: -6px; top: 6px; }
  .hero .road { inset: -6px -16px 0 -16px; -webkit-mask-image: linear-gradient(90deg, transparent 0 55%, #000 85%); mask-image: linear-gradient(90deg, transparent 0 55%, #000 85%); opacity: .7; }
  .hero .bgword { font-size: 120px; }
  .hero h1 { font-size: clamp(26px, 8vw, 40px); max-width: 100%; }
  .hero h1.long { font-size: clamp(20px, 6.4vw, 30px); }
  .hero .tags { gap: 14px; margin-bottom: 12px; padding-right: 100px; }
  .hero .tags .tag:nth-child(n+3) { display: none; }
  .tabbar { display: flex; position: fixed; z-index: 30; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 6px; border-radius: 18px; justify-content: space-around; background: #0a0d0c; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.5); }
  .tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border-radius: 12px; font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.04em; color: #8d9893; background: none; border: 0; min-width: 0; }
  .tabbar svg { width: 21px; height: 21px; }
  .tabbar .on { color: #0a0d0c; background: var(--grad); }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 18px; }
  .kpi .val { font-size: 30px; }
  #toasts { bottom: 92px; }
  .diff { grid-template-columns: minmax(0, 1fr); }
  .sheet .sh-body { padding: 22px 20px 0; }
  .sheet .meta-grid { grid-template-columns: repeat(2, 1fr); }
  .sheet .meta-grid div:nth-child(2) { border-right: 0; }
  .sheet .meta-grid div:nth-child(-n+2) { border-bottom: 1px solid #d9dcd6; }
  .sheet .sum { grid-template-columns: minmax(0, 1fr); }
  .sheet .sign-row { flex-direction: column; align-items: flex-start; }
  .sheet .seal { left: auto; right: 8px; bottom: 96px; width: 128px; height: 128px; }
  .sheet h2 { font-size: 19px; }
  .sheet .watermark { font-size: 56px; }
  .sheet .sh-head { flex-direction: column; align-items: flex-start; }
  .sheet .sh-num { text-align: left; }
  /* портал */
  .wrap { width: calc(100% - 32px); }
  .psec { padding: 64px 0; }
  .phero { padding-top: 96px; min-height: 0; }
  .phero canvas.hero3d { position: relative; right: auto; top: auto; width: 100%; height: 360px; margin: -10px 0 -30px; }
  .phero .bgword { font-size: 50vw; bottom: auto; top: 90px; }
  .phero h1 { font-size: clamp(28px, 8.2vw, 44px); }
  .phero .tags .tag:nth-child(n+3), .psec-head .tags .tag:nth-child(n+3) { display: none; }
  .how .st > .tag { margin-top: 4px; }
  .psec-head h2 { font-size: clamp(28px, 8.4vw, 40px); }
  .phero .lead { font-size: 16px; }
  .aud { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
  .aud a { min-height: 0; }
  .facts svg.roads, .facts .fact { display: none; }
  .facts-list { display: grid; gap: 0; border-left: 14px solid transparent; border-image: var(--grad-v) 1; padding-left: 18px; }
  .facts-list div { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; }
  .facts-list b { font-family: var(--display); font-weight: 800; font-size: 40px; min-width: 110px; }
  .how .track { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-left: 26px; }
  .how .track::before { left: 0; right: auto; top: 0; bottom: 0; width: 12px; height: auto; }
  .how .track::after { left: 3px; right: auto; top: 0; width: 6px; height: 60%; animation: none; }
  .how .st .chrome-obj { position: absolute; right: 0; top: 0; width: 84px; margin: 0; }
  .how .st .num { font-size: 52px; }
  .mapbox { min-height: 300px; }
  .kb-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-teaser { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; gap: 24px; }
  .pfoot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-sheet { grid-template-columns: minmax(0, 1fr); }
  .login-wrap { grid-template-columns: minmax(0, 1fr); padding-top: 80px; }
  .login-art { padding: 10px 8px 22px; min-height: 260px; }
  .login-art .chrome-obj { width: 170px; right: 0; top: 0; }
  .login-form { padding: 22px; }
  .pnav { height: 52px; padding-left: 14px; }
  .pnav .btn.hide-sm { display: none; }
}
@media (max-width: 560px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; } .kpi .val { font-size: 24px; }
  .pipe-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .t th, .t td { padding: 10px; }
  .hide-sm { display: none !important; }
  .seg button { padding: 7px 10px; font-size: 13px; }
  .logline { grid-template-columns: 60px minmax(0, 1fr); }
  .logline > :last-child { grid-column: 2; }
  .steps-bar { width: 100%; }
  .sb { flex: 1 1 50%; border-bottom: 1px solid var(--line); }
}
/* телефон: в таблицах оставляем главные столбцы, остальное — на компьютере */
@media (max-width: 560px) {
  .t-hist tr > :nth-child(1), .t-log tr > :nth-child(1), .t-log tr > :nth-child(2), .t-llm tr > :nth-child(1), .t-llm tr > :nth-child(2), .t-llm tr > :nth-child(5), .t-kb tr > :nth-child(2), .t-kb tr > :nth-child(4) { display: none; }
  .t-pat td:nth-child(6) .small { display: none; }
  .t-pat th, .t-pat td { padding: 10px 6px; }
  .sheet .doc-table tr > :nth-child(4) { display: none; }
  .sheet table { font-size: 11.5px; } .sheet th, .sheet td { padding: 7px 5px; }
  .sheet h2 { font-size: 16px !important; }
  .hero h1.long { font-size: clamp(18px, 5.6vw, 26px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .sheet .seal.on { opacity: 0.92; transform: rotate(-9deg) scale(1); }
  .ticker .tk { animation: none; }
}
@media print {
  .sidebar, .tabbar, .mobile-top, .hero, .report-side, .disclaimer, .pnav { display: none !important; }
  .shell { display: block; } .main { padding: 0; } .sheet { box-shadow: none; }
}
