/* A2Z Security Portal — dark operations console theme (self-contained) */
:root {
  --bg: #060a11;
  --bg-2: #080e18;
  --panel: #0d1524;
  --panel-2: #101a2d;
  --panel-3: #152238;
  --line: rgba(148, 163, 184, .14);
  --line-strong: rgba(148, 163, 184, .28);
  --text: #e5ecf6;
  --text-2: #b7c4d8;
  --muted: #8494ad;
  --accent: #22d3ee;
  --accent-2: #6366f1;
  --accent-soft: rgba(34, 211, 238, .12);
  --ok: #34d399;
  --warn: #fbbf24;
  --crit: #fb7185;
  --high: #fb923c;
  --med: #facc15;
  --low: #38bdf8;
  --info: #94a3b8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px -22px rgba(0, 0, 0, .85);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(34, 211, 238, .08), transparent 60%),
    radial-gradient(900px 480px at 5% 0%, rgba(99, 102, 241, .09), transparent 55%),
    var(--bg);
  color: var(--text);
  font: 14px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono, code, pre { font-family: var(--mono); }
code { background: rgba(148, 163, 184, .12); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
.inline { display: inline; margin: 0; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.only-mobile { display: none; }
.ico { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- shell ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 248px; z-index: 40;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(13, 21, 36, .98), rgba(8, 14, 24, .99));
  border-right: 1px solid var(--line);
  padding: 18px 14px;
}
.brand { display: flex; gap: 11px; align-items: center; padding: 4px 8px 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  font: 800 13px/1 var(--mono); letter-spacing: .04em; color: #03121a;
  background: linear-gradient(135deg, var(--accent), #67e8f9 55%, var(--accent-2));
  box-shadow: 0 0 0 1px rgba(34, 211, 238, .35), 0 10px 26px -12px rgba(34, 211, 238, .8);
}
.brand__meta { display: flex; flex-direction: column; }
.brand__name { font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.brand__sub { color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; padding-bottom: 10px; }
.nav__label {
  color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; padding: 14px 10px 6px;
}
.nav__item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px;
  color: var(--text-2); font-size: 13.5px; border: 1px solid transparent;
}
.nav__item:hover { background: rgba(148, 163, 184, .07); color: var(--text); text-decoration: none; }
.nav__item.is-active {
  background: linear-gradient(90deg, rgba(34, 211, 238, .14), rgba(99, 102, 241, .06));
  border-color: rgba(34, 211, 238, .22); color: #eafcff;
}
.nav__item.is-active .ico { color: var(--accent); }
.nav__pill {
  margin-left: auto; background: var(--crit); color: #1a0509; font-weight: 800;
  font-size: 10.5px; border-radius: 99px; padding: 1px 7px;
}
.sidebar__foot { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.safety-chip {
  display: flex; align-items: center; gap: 7px; font: 700 10.5px/1 var(--mono);
  letter-spacing: .1em; color: var(--ok); background: rgba(52, 211, 153, .08);
  border: 1px solid rgba(52, 211, 153, .25); border-radius: 8px; padding: 8px 10px;
}
.safety-chip .muted { font-weight: 500; letter-spacing: .02em; }
.demo-chip {
  text-align: center; font: 800 10px/1 var(--mono); letter-spacing: .18em; color: #fde68a;
  background: rgba(251, 191, 36, .1); border: 1px dashed rgba(251, 191, 36, .4);
  border-radius: 7px; padding: 6px;
}
.sidebar__version { color: var(--muted); font: 11px/1.4 var(--mono); padding: 2px 2px 0; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--muted); }
.dot--ok { background: var(--ok); box-shadow: 0 0 9px rgba(52, 211, 153, .8); }
.dot--warn { background: var(--warn); }
.dot--crit { background: var(--crit); }

.shell { margin-left: 248px; min-height: 100vh; display: flex; flex-direction: column; }
.shell--guest { margin-left: 0; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px;
  padding: 14px 26px; background: rgba(6, 10, 17, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__title h1 { font-size: 17px; }
.eyebrow { font: 700 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 5px; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 4px 10px;
  font: 600 11px/1.3 var(--mono); letter-spacing: .02em; border: 1px solid var(--line-strong);
  color: var(--text-2); background: rgba(148, 163, 184, .06); white-space: nowrap;
}
.badge--safe { color: var(--ok); border-color: rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .07); }
.badge--accent { color: var(--accent); border-color: rgba(34, 211, 238, .35); background: var(--accent-soft); }
.badge--warn { color: var(--warn); border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); }
.badge--muted { color: var(--muted); }
.userbox { display: flex; align-items: center; gap: 9px; }
.userbox__meta { display: flex; flex-direction: column; line-height: 1.2; }
.userbox__meta strong { font-size: 12.5px; }
.userbox__meta .muted { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; }
.avatar {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, .8), rgba(34, 211, 238, .6));
  color: #04101a; font: 800 12px/1 var(--mono);
}
.iconbtn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--line); background: transparent; color: var(--text-2); cursor: pointer;
}
.iconbtn:hover { border-color: var(--line-strong); color: var(--text); background: rgba(148, 163, 184, .06); }

.content { padding: 24px 26px 36px; flex: 1; width: 100%; max-width: 1420px; }
.content--guest { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.foot { padding: 14px 26px 22px; color: var(--muted); font-size: 11.5px; border-top: 1px solid var(--line); }

/* ---------- page primitives ---------- */
.page-head { display: flex; gap: 18px; align-items: flex-end; margin-bottom: 18px; flex-wrap: wrap; }
.page-head__text { flex: 1; min-width: 260px; }
.page-head h2 { margin-bottom: 5px; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.stack { display: grid; gap: 14px; }
.card {
  background: linear-gradient(180deg, rgba(16, 26, 45, .92), rgba(13, 21, 36, .92));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.card__head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.card__head h3 { flex: 1; }
.card__body { padding: 16px; }
.card__foot { padding: 11px 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }
.card--flush .card__body { padding: 0; }

.stat { padding: 15px 16px; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent 70%); opacity: .5; }
.stat__label { color: var(--muted); font: 600 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.stat__value { font-size: 27px; font-weight: 750; letter-spacing: -.03em; margin-top: 6px; }
.stat__hint { color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.stat--accent .stat__value { color: var(--accent); }
.stat--ok .stat__value { color: var(--ok); }
.stat--warn .stat__value { color: var(--warn); }
.stat--crit .stat__value { color: var(--crit); }

/* ---------- buttons / forms ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  border-radius: 9px; border: 1px solid var(--line-strong); background: var(--panel-3);
  color: var(--text); font: 600 12.5px/1 inherit; padding: 9px 14px; cursor: pointer;
  transition: .14s ease; white-space: nowrap;
}
.btn:hover { border-color: rgba(34, 211, 238, .5); color: #eafcff; text-decoration: none; }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #0ea5e9); color: #04131a;
  border-color: transparent; font-weight: 750;
}
.btn--primary:hover { color: #04131a; filter: brightness(1.08); }
.btn--ghost { background: transparent; }
.btn--danger { color: var(--crit); border-color: rgba(251, 113, 133, .4); background: rgba(251, 113, 133, .08); }
.btn--ok { color: var(--ok); border-color: rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .08); }
.btn--sm { padding: 6px 10px; font-size: 11.5px; border-radius: 7px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn .ico { width: 15px; height: 15px; }

.form { display: grid; gap: 12px; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 600 11px/1.4 var(--mono); letter-spacing: .06em; color: var(--text-2); text-transform: uppercase; }
.field .hint { color: var(--muted); font-size: 11px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="url"], input[type="datetime-local"], input[type="search"], select, textarea {
  width: 100%; background: rgba(4, 9, 16, .75); border: 1px solid var(--line-strong);
  color: var(--text); border-radius: 9px; padding: 9px 11px; font: 13px/1.5 inherit; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: rgba(34, 211, 238, .6); box-shadow: 0 0 0 3px rgba(34, 211, 238, .12); }
textarea { min-height: 86px; resize: vertical; }
select { appearance: none; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--text-2); }
.check input { margin-top: 2px; accent-color: var(--accent); }
fieldset { border: 1px dashed var(--line-strong); border-radius: 10px; padding: 12px 14px; margin: 0; }
legend { font: 700 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 6px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
  text-align: left; padding: 10px 14px; font: 650 10.5px/1.3 var(--mono); letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 11px 14px; border-bottom: 1px solid rgba(148, 163, 184, .08); vertical-align: middle; }
table.data tbody tr:hover { background: rgba(148, 163, 184, .045); }
table.data tr:last-child td { border-bottom: 0; }
.cell-title { font-weight: 600; color: var(--text); }
.cell-sub { color: var(--muted); font-size: 11.5px; margin-top: 2px; }

/* ---------- badges / severity ---------- */
.sev {
  display: inline-flex; align-items: center; gap: 6px; font: 700 10.5px/1 var(--mono);
  letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px;
  border: 1px solid var(--line-strong); color: var(--text-2); background: rgba(148, 163, 184, .06);
  white-space: nowrap;
}
.sev::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
.sev--critical { color: #fecdd3; background: rgba(251, 113, 133, .16); border-color: rgba(251, 113, 133, .45); }
.sev--high { color: #ffedd5; background: rgba(251, 146, 60, .15); border-color: rgba(251, 146, 60, .42); }
.sev--medium { color: #fef9c3; background: rgba(250, 204, 21, .13); border-color: rgba(250, 204, 21, .4); }
.sev--low { color: #e0f2fe; background: rgba(56, 189, 248, .13); border-color: rgba(56, 189, 248, .38); }
.sev--info { color: #e2e8f0; background: rgba(148, 163, 184, .13); border-color: rgba(148, 163, 184, .35); }
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px;
  background: rgba(148, 163, 184, .1); border: 1px solid var(--line); color: var(--text-2);
  font: 600 10.5px/1.3 var(--mono); letter-spacing: .03em; white-space: nowrap;
}
.tag--ok { color: var(--ok); border-color: rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .07); }
.tag--warn { color: var(--warn); border-color: rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .07); }
.tag--accent { color: var(--accent); border-color: rgba(34, 211, 238, .3); background: var(--accent-soft); }
.status { font: 650 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.status--done, .status--active, .status--approved, .status--confirmed, .status--ok { color: var(--ok); }
.status--running, .status--queued, .status--pending, .status--draft { color: var(--warn); }
.status--failed, .status--rejected, .status--closed { color: var(--crit); }
.status--cancelled, .status--skipped { color: var(--muted); }

/* ---------- lists / misc ---------- */
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--muted); font: 600 11px/1.6 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.kv dd { margin: 0; color: var(--text); }
.empty { padding: 30px 18px; text-align: center; color: var(--muted); }
.empty strong { color: var(--text-2); display: block; margin-bottom: 4px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid rgba(148, 163, 184, .09); display: flex; gap: 10px; align-items: flex-start; }
.list li:last-child { border-bottom: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 20px; border-left: 1px solid var(--line); margin-left: 5px; }
.timeline li:last-child { padding-bottom: 2px; }
.timeline li::before {
  content: ""; position: absolute; left: -4.5px; top: 4px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--panel-3); border: 1px solid var(--line-strong);
}
.timeline li.is-ok::before { background: var(--ok); border-color: var(--ok); }
.timeline li.is-warn::before { background: var(--warn); border-color: var(--warn); }
.flash { border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px; border: 1px solid; }
.flash--ok { color: #bbf7d0; background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .35); }
.flash--err { color: #fecdd3; background: rgba(251, 113, 133, .1); border-color: rgba(251, 113, 133, .35); }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 8px; }
.toast {
  background: rgba(16, 26, 45, .98); border: 1px solid var(--line-strong); border-left: 3px solid var(--accent);
  border-radius: 9px; padding: 10px 14px; font-size: 12.5px; box-shadow: var(--shadow); max-width: 340px;
  animation: slide-in .18s ease-out;
}
.toast--err { border-left-color: var(--crit); }
.toast--ok { border-left-color: var(--ok); }
@keyframes slide-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.spinner {
  width: 14px; height: 14px; border: 2px solid rgba(148, 163, 184, .3); border-top-color: var(--accent);
  border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- console ---------- */
.console {
  background: #03070d; border: 1px solid rgba(34, 211, 238, .18); border-radius: 10px;
  font: 12px/1.65 var(--mono); color: #cbe7f5; max-height: 420px; overflow-y: auto;
  padding: 12px 14px; white-space: pre-wrap; word-break: break-word;
}
.console__line { display: flex; gap: 10px; }
.console__ts { color: #45637a; flex: 0 0 auto; }
.console__tag { color: var(--accent); flex: 0 0 auto; font-weight: 700; }
.console__msg { flex: 1; }
.console__line--err .console__msg { color: #fda4af; }
.console__line--ok .console__msg { color: #86efac; }
.console__line--warn .console__msg { color: #fde68a; }
.console__line--dim .console__msg { color: #7f97ab; }
.console--tall { max-height: 560px; }

/* ---------- progress ---------- */
.progress { height: 7px; border-radius: 99px; background: rgba(148, 163, 184, .12); overflow: hidden; }
.progress__bar { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .35s ease; }
.progress__bar--ok { background: linear-gradient(90deg, #34d399, #22d3ee); }
.progress__bar--warn { background: linear-gradient(90deg, #fbbf24, #fb923c); }

/* ---------- severity bars / chart ---------- */
.sevbar { display: grid; gap: 9px; }
.sevbar__row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 38px; gap: 10px; align-items: center; }
.sevbar__label { font: 650 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sevbar__track { height: 8px; border-radius: 99px; background: rgba(148, 163, 184, .1); overflow: hidden; }
.sevbar__fill { height: 100%; border-radius: 99px; }
.sevbar__fill--critical { background: var(--crit); }
.sevbar__fill--high { background: var(--high); }
.sevbar__fill--medium { background: var(--med); }
.sevbar__fill--low { background: var(--low); }
.sevbar__fill--info { background: var(--info); }
.sevbar__num { font: 650 12px/1 var(--mono); color: var(--text-2); text-align: right; }

/* ---------- login ---------- */
.auth { width: min(420px, 100%); }
.auth__logo { display: flex; justify-content: center; margin-bottom: 18px; }
.auth__title { text-align: center; margin-bottom: 4px; }
.auth__sub { text-align: center; color: var(--muted); font-size: 12.5px; margin-bottom: 22px; }
.auth__card { padding: 26px; }
.auth__foot { text-align: center; color: var(--muted); font-size: 11.5px; margin-top: 18px; line-height: 1.7; }
.auth__demo {
  margin-top: 14px; border: 1px dashed rgba(251, 191, 36, .4); border-radius: 9px;
  background: rgba(251, 191, 36, .06); padding: 10px 12px; font-size: 11.5px; color: #fde68a;
}
.auth__demo code { background: rgba(0, 0, 0, .3); color: #fff7d6; }

/* ---------- misc components ---------- */
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.meter { display: flex; gap: 10px; align-items: center; }
.meter__num { font: 700 20px/1 var(--mono); }
.scan-stages { list-style: none; margin: 0; padding: 0; }
.scan-stages li {
  display: flex; align-items: center; gap: 10px; padding: 9px 4px;
  border-bottom: 1px solid rgba(148, 163, 184, .08); font-size: 12.5px;
}
.scan-stages li:last-child { border-bottom: 0; }
.scan-stages .st-name { flex: 1; text-transform: capitalize; }
.integrity {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px;
  border: 1px solid rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .07); color: #bbf7d0;
  font-size: 12.5px;
}
.integrity--bad { border-color: rgba(251, 113, 133, .4); background: rgba(251, 113, 133, .08); color: #fecdd3; }
.codeblock {
  background: #03070d; border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px;
  font: 12px/1.6 var(--mono); color: #b9dff0; overflow-x: auto; white-space: pre-wrap; word-break: break-word;
}
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.tabs a {
  padding: 8px 12px; border-radius: 8px 8px 0 0; color: var(--muted); font: 600 12px/1.4 inherit;
  border: 1px solid transparent; border-bottom: 0;
}
.tabs a:hover { color: var(--text); text-decoration: none; background: rgba(148, 163, 184, .05); }
.tabs a.is-active { color: var(--accent); background: rgba(34, 211, 238, .07); border-color: var(--line); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tool {
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; background: rgba(10, 18, 31, .6);
}
.tool__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tool__name { font: 650 12.5px/1.3 var(--mono); flex: 1; }
.tool__meta { color: var(--muted); font-size: 11.5px; }
.graph-wrap { position: relative; height: 420px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #050a12; }
.graph-wrap canvas { width: 100%; height: 100%; display: block; }
.graph-legend { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 11.5px; padding: 10px 2px 0; }
.graph-legend span { display: inline-flex; align-items: center; gap: 6px; }
.graph-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .only-mobile { display: inline-grid; }
  .sidebar { transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow); }
  body.nav-open .sidebar { transform: none; }
  .shell { margin-left: 0; }
  .topbar { padding: 12px 16px; }
  .content { padding: 18px 16px 30px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .userbox__meta { display: none; }
  .topbar .badge--safe { display: none; }
}
@media (max-width: 680px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
  .page-head { align-items: flex-start; }
  h1 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
