/* NevaOne UI — design system.
   Direction: a precise operations tool. Neutral surfaces, hairlines instead of
   shadows, ink for primary actions, one cobalt accent used sparingly, tabular
   figures. No inline styles anywhere (strict CSP). */

@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/InstrumentSans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/InstrumentSans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/JetBrainsMono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/JetBrainsMono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-2: #f1f2f4;
  --line: #e4e6ea;
  --line-strong: #d2d5db;
  --text: #121418;
  --muted: #5e6470;
  --faint: #959ba6;
  --ink: #121418;          /* primary buttons */
  --on-ink: #ffffff;
  --brand: #2a4ad8;        /* cobalt: links, focus, active, data */
  --brand-2: #2a4ad8;
  --brand-soft: #edf0fd;
  --chart: #2a4ad8;        /* single-series marks (validated L-band + 3:1 contrast) */
  --ok: #12804e;  --ok-soft: #e7f4ed;
  --warn: #b25d05; --warn-soft: #fcf2e3;
  --err: #c42a40; --err-soft: #fbeaed;
  --info: #2a62a6; --info-soft: #eaf1fa;
  --code-bg: #121418; --code-fg: #e7e9ee;
  --overlay: rgba(18, 20, 24, .42);
  --pop: 0 10px 30px rgba(18, 20, 24, .12), 0 2px 6px rgba(18, 20, 24, .06);
  --r: 8px;
  --r-sm: 6px;
  --sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0f11; --surface: #15171a; --surface-2: #1b1e22; --line: #25282d; --line-strong: #32363c;
    --text: #eceef1; --muted: #9aa1ac; --faint: #6b717b; --ink: #eceef1; --on-ink: #0e0f11;
    --brand: #7d93ff; --brand-2: #7d93ff; --brand-soft: #1a2142; --chart: #6f86fa;
    --ok: #46c48a; --ok-soft: #11261b; --warn: #e3a447; --warn-soft: #2a2011; --err: #f2687b; --err-soft: #2e161b;
    --info: #71a7ea; --info-soft: #132235; --code-bg: #0a0b0d; --overlay: rgba(0, 0, 0, .6);
    --pop: 0 12px 34px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0f11; --surface: #15171a; --surface-2: #1b1e22; --line: #25282d; --line-strong: #32363c;
  --text: #eceef1; --muted: #9aa1ac; --faint: #6b717b; --ink: #eceef1; --on-ink: #0e0f11;
  --brand: #7d93ff; --brand-2: #7d93ff; --brand-soft: #1a2142; --chart: #6f86fa;
  --ok: #46c48a; --ok-soft: #11261b; --warn: #e3a447; --warn-soft: #2a2011; --err: #f2687b; --err-soft: #2e161b;
  --info: #71a7ea; --info-soft: #132235; --code-bg: #0a0b0d; --overlay: rgba(0, 0, 0, .6);
  --pop: 0 12px 34px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .4); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 var(--sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: "ss01"; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -.012em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-soft); }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px; padding: 14px 10px;
  background: var(--surface); border-right: 1px solid var(--line); z-index: 30; }
.brand { display: flex; align-items: center; gap: 9px; padding: 4px 10px 6px; }
.brand-mark { width: 22px; height: 22px; border-radius: 5px; flex: none; background: var(--ink); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 6px 6px auto auto; width: 6px; height: 6px; border-radius: 1px; background: var(--brand); }
.brand-mark.custom-logo { background: center/contain no-repeat; }
.brand-mark.custom-logo::after { display: none; }
.brand-name { font-size: 15.5px; font-weight: 600; letter-spacing: -.02em; }
.brand-name b { font-weight: 600; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 1px; overflow-y: auto; margin: 0 -2px; padding: 0 2px; }
.nav-section { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 14px 10px 5px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: var(--r-sm); color: var(--muted); font-weight: 500; }
.nav a svg { width: 16px; height: 16px; flex: none; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--surface-2); font-weight: 600; }
.nav a.active svg { color: var(--brand); }
.nav .count { margin-left: auto; font: 500 11px var(--mono); color: var(--faint); }
.sidebar-foot { margin-top: auto; display: grid; gap: 6px; }
.server-pill { display: flex; align-items: center; gap: 8px; font: 12px var(--mono); padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 28px;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1; max-width: 440px; }
.search input { width: 100%; height: 32px; padding: 0 44px 0 32px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); outline: none; }
.search input::placeholder { color: var(--faint); }
.search input:focus { border-color: var(--brand); }
.search-ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search-ico svg { width: 15px; height: 15px; }
.search kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 11px var(--mono); color: var(--faint); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.demo-badge { margin-left: auto; font: 500 11px var(--mono); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.icon-btn { width: 32px; height: 32px; border-radius: var(--r-sm); border: 1px solid transparent; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn svg { width: 16px; height: 16px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--sans); color: var(--text); background: var(--surface-2); border: 1px solid var(--line-strong); }
.only-mobile { display: none; }
.view { padding: 26px 28px 72px; max-width: 1360px; width: 100%; outline: none; }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; font-weight: 600; }
.page-head p { margin: 4px 0 0; color: var(--muted); max-width: 70ch; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: var(--r-sm); cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); font-weight: 500; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn svg { width: 15px; height: 15px; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.danger { color: var(--err); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Cards & grids ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 14px; font-weight: 600; }
.card-head .sub { color: var(--faint); font-size: 12.5px; }
.card-pad h2 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.grid { display: grid; gap: 16px; }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.g-side { grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
.mt { margin-top: 16px; }

/* Key figures: one strip with hairline dividers, not glowing tiles. */
.g-4:has(> .kpi), .g-3:has(> .kpi) { gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.kpi { padding: 16px 20px; border: 0; border-radius: 0; background: transparent; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
.kpi .glow { display: none; }
.kpi .label { display: flex; align-items: center; gap: 7px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kpi .kpi-ico { width: auto; height: auto; background: none !important; color: var(--faint) !important; }
.kpi .kpi-ico svg { width: 14px; height: 14px; }
.kpi .value { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.kpi .delta.up { color: var(--ok); }
.kpi-ico { width: 30px; height: 30px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--muted); }
.kpi-ico svg { width: 16px; height: 16px; }
.tone-brand { background: var(--brand-soft); color: var(--brand); }
.tone-ok { background: var(--ok-soft); color: var(--ok); }
.tone-warn { background: var(--warn-soft); color: var(--warn); }
.tone-err { background: var(--err-soft); color: var(--err); }
.tone-info { background: var(--info-soft); color: var(--info); }

/* Meters */
.meter-row { display: grid; grid-template-columns: 84px 1fr 64px; align-items: center; gap: 12px; padding: 7px 0; }
.meter-row .name { color: var(--muted); }
.meter-row .val { text-align: right; font: 500 12.5px var(--mono); font-variant-numeric: tabular-nums; }
.meter { height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--brand); width: 0; transition: width .6s ease; }
.meter.warn > i { background: var(--warn); }

/* Lists / tables */
.list { list-style: none; margin: 0; padding: 4px 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 9px 20px; }
.list li + li { border-top: 1px solid var(--line); }
.list li:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.list .meta { color: var(--muted); font-size: 12.5px; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list li.tone-brand { background: var(--surface-2); color: inherit; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font: 500 10.5px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .07em; padding: 10px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
td b { font-weight: 500; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.truncate { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Badges & dots */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; white-space: nowrap; line-height: 20px; }
.badge svg { width: 12px; height: 12px; flex: none; }
.dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--faint); }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.err { background: var(--err); }
.rr { font: 600 11px var(--mono); padding: 1px 6px; border-radius: 4px; min-width: 46px; text-align: center; display: inline-block; background: var(--surface-2) !important; color: var(--text) !important; border: 1px solid var(--line); }

/* App identifiers: neutral monograms; the type is written next to them. */
.app-ico { width: 30px; height: 30px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line); font: 600 11px var(--mono); text-transform: lowercase; }
.app-ico svg { width: 15px; height: 15px; }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.app-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.app-card:hover { border-color: var(--line-strong); }
.app-card .top { display: flex; gap: 11px; align-items: center; }
.app-card .name { font-weight: 600; }
.app-card .domain { color: var(--muted); font: 12.5px var(--mono); }
.app-card .stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-sm); }
.app-card .stat { padding: 7px 10px; }
.app-card .stat + .stat { border-left: 1px solid var(--line); }
.app-card .stat b { display: block; font: 500 13px var(--mono); font-variant-numeric: tabular-nums; }
.app-card .stat span { font-size: 11.5px; color: var(--faint); }
.app-card .foot { display: flex; gap: 6px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { height: 28px; padding: 0 11px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 500; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; }
.chip:hover { color: var(--text); }
.chip.active { color: var(--text); border-color: var(--text); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 500; font-size: 13px; }
.field .hint { color: var(--faint); font-size: 12px; }
.input, select.input, textarea.input { min-height: 34px; padding: 6px 10px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); outline: none; width: 100%; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row > .input { flex: 1; min-width: 110px; }
.switch { position: relative; width: 32px; height: 18px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-strong); cursor: pointer; transition: .15s; }
.switch span::after { content: ""; position: absolute; width: 14px; height: 14px; left: 2px; top: 2px; border-radius: 50%; background: #fff; transition: .15s; }
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::after { transform: translateX(14px); background: var(--on-ink); }
.switch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Code */
.editor { font: 12.5px/1.65 var(--mono); min-height: 420px; resize: vertical; background: var(--code-bg); color: var(--code-fg);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; tab-size: 2; width: 100%; outline: none; }
.editor:focus { border-color: var(--brand); }
pre.code { margin: 0; font: 12px/1.65 var(--mono); background: var(--code-bg); color: var(--code-fg); border-radius: var(--r-sm); padding: 14px; overflow: auto; max-height: 520px; white-space: pre; }
.violation { display: flex; gap: 10px; padding: 10px 12px; border-left: 2px solid var(--err); background: var(--err-soft); margin-bottom: 6px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.violation svg { width: 16px; height: 16px; color: var(--err); flex: none; margin-top: 2px; }
.violation code { font: 600 12px var(--mono); }
.success-box { display: flex; gap: 10px; padding: 10px 12px; color: var(--ok); background: var(--ok-soft); font-weight: 500; margin-bottom: 12px; align-items: center; border-radius: var(--r-sm); }
.success-box svg { width: 16px; height: 16px; }

/* Destinations */
.dest { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.dest .head { display: flex; gap: 10px; align-items: center; }
.dest .head .grow { flex: 1; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.empty-add { border: 1px dashed var(--line-strong); border-radius: var(--r); display: grid; place-items: center; min-height: 150px; color: var(--muted);
  cursor: pointer; font-weight: 500; background: transparent; text-align: center; }
.empty-add:hover { border-color: var(--text); color: var(--text); }
.empty-add div > span { width: 30px; height: 30px; border-radius: var(--r-sm); display: grid; place-items: center; border: 1px solid var(--line); margin: 0 auto 8px; }
.empty-add svg { width: 15px; height: 15px; }
td.nw { white-space: nowrap; }

/* Timeline */
.timeline { list-style: none; padding: 8px 20px 14px; margin: 0; }
.timeline li { position: relative; padding: 8px 0 8px 22px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline li:first-child::before { top: 16px; }
.timeline li:last-child::before { bottom: calc(100% - 16px); }
.timeline li::after { content: ""; position: absolute; left: 0; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--faint); }
.timeline li.done::after { background: var(--ok); border-color: var(--ok); }
.timeline b { font-weight: 500; }
.timeline .meta { color: var(--muted); font-size: 12.5px; }

/* Score ring */
.ring { width: 140px; height: 140px; position: relative; margin: 12px auto; }
.ring svg { width: 140px; height: 140px; transform: rotate(-90deg); }
.ring .bg { stroke: var(--surface-2); }
.ring .fg { stroke: var(--brand); stroke-linecap: butt; transition: stroke-dashoffset .9s ease; }
.ring .lbl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .lbl b { font-size: 34px; font-weight: 600; letter-spacing: -.03em; display: block; line-height: 1; font-variant-numeric: tabular-nums; }
.ring .lbl span { color: var(--muted); font-size: 12px; }
.check { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--line); }
.check:first-child { border-top: 0; }
.check svg { width: 16px; height: 16px; flex: none; }
.check .grow { flex: 1; min-width: 0; }
.check b { font-weight: 500; }
.check .ok { color: var(--ok); } .check .warn { color: var(--warn); } .check .err { color: var(--err); } .check .muted { color: var(--faint); }

/* Modal & wizard */
.modal-backdrop { position: fixed; inset: 0; background: var(--overlay); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal-backdrop[hidden] { display: none; }
.modal { background: var(--surface); border-radius: 10px; box-shadow: var(--pop); width: min(780px, 100%); max-height: calc(100vh - 40px); overflow: auto; border: 1px solid var(--line); }
.modal-head { padding: 18px 22px 4px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-head h2 { font-size: 17px; font-weight: 600; }
.modal-head p { margin: 2px 0 0; color: var(--faint); font: 12px var(--mono); }
.modal-body { padding: 14px 22px; }
.modal-foot { padding: 12px 22px; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.steps { display: flex; gap: 4px; padding: 8px 22px 0; }
.steps i { height: 2px; flex: 1; background: var(--line); }
.steps i.on { background: var(--ink); }
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; }
.type { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; background: var(--surface); text-align: left; }
.type:hover { border-color: var(--line-strong); background: var(--surface-2); }
.type.sel { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.type b { font-weight: 600; } .type span { color: var(--muted); font-size: 12.5px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.summary { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--surface-2); }
.summary .list li { padding: 6px 0; border: 0; }
.summary .list svg { width: 15px; height: 15px; color: var(--ok); }

@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.spacer { flex: 1; }
.right { text-align: right; }
.hidden { display: none !important; }
.sep { height: 1px; background: var(--line); margin: 12px 0; }
.spin { width: 14px; height: 14px; border: 2px solid color-mix(in srgb, var(--on-ink) 35%, transparent); border-top-color: var(--on-ink); border-radius: 50%; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main, .g-side { grid-template-columns: minmax(0, 1fr); }
  .g-4:has(> .kpi) .kpi:nth-child(2) { border-right: 0; } .g-4:has(> .kpi) .kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 256px; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: var(--pop); }
  .only-mobile { display: grid; }
  .topbar { padding: 0 12px; }
  .view { padding: 20px 16px 56px; }
  .g-3, .g-2, .plans { grid-template-columns: minmax(0, 1fr); }
  .demo-badge, .search kbd { display: none; }
}
@media (max-width: 560px) { .g-4 { grid-template-columns: minmax(0, 1fr); } .g-4:has(> .kpi) .kpi { border-right: 0; border-bottom: 1px solid var(--line); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
