:root {
    --bg: #ffffff;
    --bg-alt: #f4f5fa;
    --panel: #ffffff;
    --ink: #0c1230;
    --muted: #5a6285;
    --line: #d9dcec;
    --line-strong: #b9bed8;
    --accent: #081a6e;
    --accent-ink: #ffffff;
    --accent-soft: #e8ebfb;
    --ok: #0f7b45;
    --ok-soft: #e1f4ea;
    --warn: #8a5300;
    --warn-soft: #fff1d9;
    --danger: #b3261e;
    --danger-soft: #fde8e6;
    --focus: #3b52d9;
    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --chrome-bg: #060a24;
    --chrome-ink: #eef0fb;
    --chrome-muted: #9aa2c9;
    --chrome-line: #1d2554;
    --chrome-accent: #8fa2ff;
    --radius: 4px;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #080b1c;
    --bg-alt: #0d1230;
    --panel: #0f1536;
    --ink: #eef0fb;
    --muted: #9aa2c9;
    --line: #232b58;
    --line-strong: #364080;
    --accent: #8fa2ff;
    --accent-ink: #080b1c;
    --accent-soft: #161d4d;
    --ok: #4cc38a;
    --ok-soft: #0f2a21;
    --warn: #f0b45c;
    --warn-soft: #2d2210;
    --danger: #ff7b72;
    --danger-soft: #331618;
    --focus: #8fa2ff;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); max-width: 18ch; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
small { font-size: 0.82rem; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.is-hidden { display: none !important; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.85rem; }
.break { word-break: break-all; }
.nowrap { white-space: nowrap; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 560px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.site-header { border-bottom: 1px solid var(--chrome-line); background: var(--chrome-bg); color: var(--chrome-ink); position: sticky; top: 0; z-index: 30; }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--chrome-ink); }
.brand-logo { height: 46px; width: auto; display: block; }
.brand-mark { display: inline-grid; place-items: center; height: 42px; min-width: 52px; padding: 0 10px; background: var(--accent); color: var(--accent-ink); font-weight: 800; letter-spacing: 0.06em; border-radius: var(--radius); }
.brand-sub { font-weight: 700; letter-spacing: -0.01em; padding-left: 12px; border-left: 1px solid var(--chrome-line); line-height: 1.1; color: var(--chrome-ink); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--chrome-ink); text-decoration: none; padding: 8px 14px; font-weight: 600; font-size: 0.95rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--chrome-accent); }
.nav a.active { border-bottom-color: var(--chrome-accent); color: var(--chrome-accent); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.body-auth .header-tools, .auth .header-tools { margin-left: auto; }
.inline-form { margin: 0; }
.link-btn { background: none; border: 0; color: var(--ink); font: inherit; font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; cursor: pointer; }
.link-btn:hover { color: var(--accent); }
.site-header .link-btn { color: var(--chrome-ink); }
.site-header .link-btn:hover { color: var(--chrome-accent); }
.site-header .icon-btn { border-color: var(--chrome-line); color: var(--chrome-ink); }
.site-header .icon-btn:hover { border-color: var(--chrome-accent); color: var(--chrome-accent); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: var(--radius); cursor: pointer; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn.small { width: 30px; height: 30px; vertical-align: middle; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: inline-grid; }
:root[data-theme="dark"] .theme-moon { display: none; }
.menu-btn { display: none; }

.hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); background: var(--bg); }
.hero-small { padding: 56px 0 36px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.76rem; font-weight: 700; color: var(--accent); margin-bottom: 18px; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 60ch; margin-top: 18px; }
.block { padding: 40px 0 72px; background: var(--bg-alt); }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-strong); border-left-width: 4px; background: var(--panel); margin-bottom: 20px; font-size: 0.95rem; }
.notice .i { margin-top: 3px; }
.notice-warn { border-color: var(--warn); background: var(--warn-soft); color: var(--warn); }
.notice-error { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); background: var(--panel); margin-bottom: 24px; }
.stat { padding: 18px 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; position: relative; }
.stat:last-child { border-right: 0; }
.stat-label { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; font-weight: 700; color: var(--muted); }
.stat strong { font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1.2; }
.stat small { color: var(--muted); }
.spark { width: 100%; height: 28px; margin-top: 6px; }
.spark polyline { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.spark-d { stroke: var(--accent); }
.spark-u { stroke: var(--muted); stroke-dasharray: 3 2; }

.panel { background: var(--panel); border: 1px solid var(--line); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head .muted { font-size: 0.9rem; margin-top: 4px; }
.panel-body { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: inherit; font-weight: 600; font-size: 0.93rem; border-radius: var(--radius); cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); opacity: 0.9; }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.toolbar { display: flex; gap: 10px; padding: 14px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; background: var(--bg-alt); }
.search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); background: var(--panel); padding: 0 12px; border-radius: var(--radius); }
.search input { border: 0; background: transparent; color: var(--ink); font: inherit; padding: 10px 0; width: 100%; outline: none; }
.select select { border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); font: inherit; padding: 10px 12px; border-radius: var(--radius); }

.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 34px 48px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row.is-off { background: var(--bg-alt); }
.row.is-off .who, .row.is-off .rates { opacity: 0.6; }
.idx { color: var(--muted); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.avatar { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.avatar .i { width: 22px; height: 22px; }
.dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--line-strong); border: 2px solid var(--panel); }
.row.is-online .dot { background: var(--ok); }
.who { min-width: 0; }
.name { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--ink); cursor: text; text-align: left; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.name:hover { color: var(--accent); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
.addr { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); font-variant-numeric: tabular-nums; cursor: text; }
.addr:hover { color: var(--accent); }
.inline-input { font: inherit; font-weight: 600; padding: 4px 8px; border: 1px solid var(--accent); background: var(--panel); color: var(--ink); border-radius: var(--radius); width: 100%; max-width: 260px; }
.note { font-style: italic; }
.rates { display: flex; gap: 28px; }
.rate { min-width: 98px; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.rate-top { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.rate-top .i { width: 14px; height: 14px; color: var(--muted); }
.rate small { color: var(--muted); padding-left: 20px; }
.acts { display: flex; gap: 6px; align-items: center; }
.acts .icon-btn { width: 38px; height: 38px; background: var(--bg-alt); }

.switch { position: relative; display: inline-block; width: 46px; height: 26px; margin-right: 8px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border: 1px solid var(--line-strong); background: var(--bg-alt); border-radius: 26px; transition: background 0.15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform 0.15s, background 0.15s; }
.switch input:checked + span { background: var(--accent); border-color: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); background: var(--accent-ink); }
.switch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.badge, .tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid var(--line-strong); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 99px; color: var(--muted); background: transparent; }
.badge-ok { color: var(--ok); border-color: var(--ok); background: var(--ok-soft); }
.badge-off { color: var(--muted); }
.badge-warn { color: var(--warn); border-color: var(--warn); background: var(--warn-soft); }
.badge-bad, .tag-bad { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }
.tag { text-transform: none; letter-spacing: 0; font-size: 0.8rem; border-radius: var(--radius); color: var(--ink); }

.empty { padding: 56px 24px; text-align: center; }
.empty h3 { margin-bottom: 6px; }

.form { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; }
.field > span { font-weight: 600; }
.field small { color: var(--muted); }
.field input, .field textarea, .field select { font: inherit; padding: 10px 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); border-radius: var(--radius); width: 100%; }
.field textarea { resize: vertical; font-family: var(--mono); font-size: 0.85rem; }
.field input[readonly] { background: var(--bg-alt); color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; }
.check input { margin-top: 5px; accent-color: var(--accent); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; font-size: 0.93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; }
.code { margin: 0; padding: 16px; background: var(--bg-alt); border: 1px solid var(--line); font-family: var(--mono); font-size: 0.8rem; overflow-x: auto; white-space: pre; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks strong { display: block; font-size: 0.93rem; }
.checks small { color: var(--muted); word-break: break-word; }
.check-icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.checks .ok .check-icon { background: var(--ok-soft); color: var(--ok); }
.checks .bad .check-icon { background: var(--warn-soft); color: var(--warn); }
.danger-zone { border-color: var(--danger); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th { text-align: left; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem; color: var(--muted); padding: 12px 24px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.table td { padding: 14px 24px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }

.auth-wrap { padding: 72px 0 96px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.auth-card { padding: 28px; margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.auth-wrap h1 { max-width: 14ch; }
.card { background: var(--panel); border: 1px solid var(--line); }

.modal-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(6, 9, 30, 0.6); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow-y: auto; }
.modal { background: var(--panel); border: 1px solid var(--line-strong); width: 100%; max-width: 560px; }
.modal.wide { max-width: 820px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.modal-foot .left { margin-right: auto; }
.qr-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.qr-box { background: #fff; padding: 10px; border: 1px solid var(--line); line-height: 0; }
.qr-box svg { width: 100%; height: auto; display: block; }
.conf { margin: 0; padding: 14px; background: var(--bg-alt); border: 1px solid var(--line); font-family: var(--mono); font-size: 0.78rem; white-space: pre-wrap; word-break: break-all; max-height: 300px; overflow: auto; }
details.more { border: 1px solid var(--line); padding: 12px 16px; }
details.more summary { cursor: pointer; font-weight: 600; }
details.more[open] summary { margin-bottom: 14px; }
.dropzone { border: 1px dashed var(--line-strong); padding: 24px; text-align: center; background: var(--bg-alt); }
.dropzone input { max-width: 100%; }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 40px); }
.toast { padding: 12px 16px; border: 1px solid var(--line-strong); border-left-width: 4px; background: var(--panel); color: var(--ink); min-width: 240px; max-width: 420px; font-size: 0.93rem; }
.toast-ok { border-left-color: var(--ok); }
.toast-error { border-left-color: var(--danger); }
.toast-warn { border-left-color: var(--warn); }

.site-footer { border-top: 1px solid var(--chrome-line); background: var(--chrome-bg); color: var(--chrome-ink); padding-top: 48px; }
.site-footer .muted { color: var(--chrome-muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.footer-grid h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--chrome-muted); margin-bottom: 12px; }
.footer-grid a { display: block; color: var(--chrome-ink); text-decoration: none; padding: 3px 0; }
.footer-grid a:hover { color: var(--chrome-accent); }
.footer-grid .brand { display: inline-flex; margin-bottom: 12px; padding: 0; }
.footer-base { border-top: 1px solid var(--chrome-line); padding-top: 18px; padding-bottom: 24px; color: var(--chrome-muted); font-size: 0.88rem; }

@media (max-width: 980px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat { border-bottom: 1px solid var(--line); }
    .stat-live { grid-column: span 2; border-right: 0; }
    .grid-2 { grid-template-columns: 1fr; }
    .row { grid-template-columns: 34px 48px minmax(0, 1fr) auto; }
    .rates { grid-column: 3 / -1; grid-row: 2; }
    .acts { grid-column: 3 / -1; grid-row: 3; flex-wrap: wrap; }
}

@media (max-width: 760px) {
    .wrap { padding: 0 18px; }
    .header-row { min-height: 68px; gap: 12px; flex-wrap: wrap; }
    .brand-sub { display: none; }
    .menu-btn { display: inline-grid; }
    .nav { display: none; flex-direction: column; width: 100%; order: 5; margin-left: 0; padding-bottom: 12px; }
    .nav.open { display: flex; }
    .nav a { border-bottom: 1px solid var(--chrome-line); padding: 12px 0; }
    .header-tools { margin-left: auto; }
    .hero { padding: 48px 0 32px; }
    .panel-head, .panel-body, .toolbar, .row, .modal-body { padding-left: 16px; padding-right: 16px; }
    .row { grid-template-columns: 44px minmax(0, 1fr); }
    .idx { display: none; }
    .avatar { grid-row: 1; }
    .who { grid-column: 2; }
    .rates { grid-column: 1 / -1; grid-row: auto; justify-content: space-between; gap: 12px; }
    .acts { grid-column: 1 / -1; grid-row: auto; }
    .form-grid { grid-template-columns: 1fr; }
    .qr-grid { grid-template-columns: 1fr; }
    .qr-box { max-width: 280px; }
    .footer-grid { grid-template-columns: 1fr; }
    .btn-row .btn { flex: 1 1 auto; }
    .table th, .table td { padding-left: 16px; padding-right: 16px; }
    .stats { grid-template-columns: 1fr 1fr; }
}

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

.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 8px; border-radius: 99px; background: var(--chrome-accent); color: #060a24; font-size: 0.72rem; font-weight: 800; line-height: 1; vertical-align: middle; }
.tab.active .count { background: var(--accent-ink); color: var(--accent); }
.hero-home { padding: 96px 0 72px; }
.hero-home h1 { max-width: 16ch; font-size: clamp(2.4rem, 6vw, 4rem); }
.hero-actions { margin-top: 32px; }
.block-plain { background: var(--bg); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); max-width: 24ch; }
.block-plain .lead, .block .lead { margin-bottom: 8px; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-top: 36px; background: var(--panel); }
.feature { padding: 28px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.feature:last-child { border-right: 0; }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border-radius: var(--radius); }
.feature-icon .i { width: 22px; height: 22px; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--panel); counter-reset: none; }
.steps li { padding: 32px 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.steps li:last-child { border-right: 0; }
.step-num { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; color: var(--accent); }
.faq-grid { align-items: start; }
.faq { border: 1px solid var(--line); background: var(--panel); padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq[open] summary { margin-bottom: 10px; }
.cta { background: var(--accent); color: var(--accent-ink); padding: 48px 0; }
.cta .muted { color: inherit; opacity: 0.8; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta .btn-primary { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.auth-alt { margin-top: 18px; }
.tabs { gap: 6px; }
.tab.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.owner { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; }
.owner .i { width: 14px; height: 14px; }
.dev-line { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.dev-line .i { width: 16px; height: 16px; color: var(--muted); }
.name.static { cursor: default; }
.name.static:hover { color: var(--ink); }
.row-portal { grid-template-columns: 48px minmax(0, 1fr) auto auto; }
.badge-warn { color: var(--warn); }
.checks .warn .check-icon { background: var(--warn-soft); color: var(--warn); }
.table td .btn-row { flex-wrap: wrap; }
.table td .btn { padding: 6px 10px; font-size: 0.82rem; }
.table td .btn .i { width: 15px; height: 15px; }

@media (max-width: 980px) {
    .features { grid-template-columns: 1fr 1fr; }
    .feature:nth-child(2) { border-right: 0; }
    .feature:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .steps { grid-template-columns: 1fr; }
    .steps li { border-right: 0; border-bottom: 1px solid var(--line); }
    .steps li:last-child { border-bottom: 0; }
    .row-portal { grid-template-columns: 48px minmax(0, 1fr); }
    .row-portal .rates, .row-portal .acts { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .features { grid-template-columns: 1fr; }
    .feature { border-right: 0; border-bottom: 1px solid var(--line); }
    .feature:last-child { border-bottom: 0; }
    .hero-home { padding: 64px 0 48px; }
    .row-portal { grid-template-columns: 44px minmax(0, 1fr); }
}

.pick { display: flex; flex-direction: column; border: 1px solid var(--line); max-height: 320px; overflow-y: auto; }
.pick-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.pick-row:last-child { border-bottom: 0; }
.pick-row:hover { background: var(--bg-alt); }
.pick-row input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.pick-main { flex: 1; min-width: 0; }

.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 6px; }
@media (max-width: 760px) { .check-grid { grid-template-columns: 1fr; } }

.chart-wrap { position: relative; }
.chart { display: block; width: 100%; height: 300px; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-label { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.ch-empty { fill: var(--muted); font-size: 14px; font-family: var(--font); }
.ch-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-line-d { stroke: var(--accent); }
.ch-line-u { stroke: var(--ok); }
.ch-area { stroke: none; }
.ch-area-d { fill: var(--accent); fill-opacity: 0.16; }
.ch-area-u { fill: var(--ok); fill-opacity: 0.14; }
.ch-cap { stroke-width: 1.5; stroke-dasharray: 6 4; }
.ch-cap-down { stroke: var(--accent); stroke-opacity: 0.7; }
.ch-cap-up { stroke: var(--ok); stroke-opacity: 0.7; }
.ch-hover { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-tip { position: absolute; top: 12px; min-width: 130px; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line-strong); font-size: 0.82rem; line-height: 1.5; pointer-events: none; z-index: 5; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; font-size: 0.88rem; color: var(--muted); }
.legend .sw { display: inline-block; width: 14px; height: 4px; margin-right: 8px; vertical-align: middle; border-radius: 2px; }
.sw-down { background: var(--accent); }
.sw-up { background: var(--ok); }
.sw-cap { background: repeating-linear-gradient(90deg, var(--muted) 0 4px, transparent 4px 7px); }
.legend-check { margin-left: auto; font-size: 0.88rem; }
.gauge { display: flex; flex-direction: column; gap: 8px; }
.gauge-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.93rem; }
.bar { height: 12px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.bar-small { height: 8px; min-width: 90px; }
.bar-fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width 0.4s; }
.bar-up { background: var(--ok); }
.bar-hot { background: var(--danger); }
.share-cell { min-width: 120px; }
.stats-grid { margin: 24px 0; }
.stats-grid .panel-head .btn-row { flex-wrap: wrap; }
.stats-grid .kv dt { white-space: nowrap; }
@media (max-width: 760px) { .chart { height: 240px; } .legend-check { margin-left: 0; } }