/* OPSINTEL v0.1 — design system (plain CSS, no framework).
   Dark navy + teal accent. Mobile-first responsive. */

:root {
  --navy-950: #0a1628;
  --navy-900: #0f2038;
  --navy-800: #16304f;
  --navy-700: #1e4066;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-100: #ccfbf1;
  --teal-50: #f0fdfa;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --amber-bg: #fef3c7;
  --amber-ink: #92400e;
  --amber-border: #f59e0b;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --success: #16a34a;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.18);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.25; color: var(--ink); }
p { margin: 0 0 0.75em; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-muted); padding: 0.1em 0.35em; border-radius: 4px; }

/* ---------- layout ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; flex: 0 0 240px;
  background: var(--navy-950); color: #e2e8f0;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.brand { padding: 20px 18px 14px; font-size: 20px; font-weight: 800; letter-spacing: 0.04em; color: #fff; }
.brand span { color: var(--teal-500); }
.brand-sub { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8; margin-top: 2px; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; flex: 1; overflow-y: auto; }
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px; color: #cbd5e1;
  font-size: 14px; font-weight: 500;
}
.nav-link:hover { background: var(--navy-800); color: #fff; text-decoration: none; }
.nav-link.active { background: var(--navy-800); color: #fff; box-shadow: inset 3px 0 0 var(--teal-500); }
.nav-link .nav-badge {
  margin-left: auto; background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700; min-width: 20px; height: 20px;
  border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px;
}
.sidebar-foot { padding: 14px 18px; font-size: 12px; color: #64748b; border-top: 1px solid var(--navy-800); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 12px 24px; display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 20;
}
.topbar-title { font-size: 17px; font-weight: 700; margin: 0; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.topbar-user { text-align: right; line-height: 1.3; }
.topbar-user strong { display: block; color: var(--ink); }
.topbar-user span { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.hamburger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 18px; cursor: pointer; color: var(--ink); }

.content { padding: 24px; max-width: 1200px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; margin: 0; }
.page-head p { color: var(--muted); margin: 4px 0 0; }
.page-head .spacer { flex: 1; }

/* ---------- demo banner ---------- */
.demo-banner {
  background: var(--amber-bg); color: var(--amber-ink);
  border-bottom: 2px solid var(--amber-border);
  padding: 9px 24px; font-weight: 700; font-size: 13px;
  letter-spacing: 0.02em; text-align: center;
}

/* ---------- cards / stats ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 20px; margin-bottom: 20px;
}
.card h2 { font-size: 17px; }
.card h3 { font-size: 15px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; flex: 1; }
.grid { display: grid; gap: 16px; }
.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)); }
.stat-card { padding: 16px 18px; }
.stat-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.stat-value { font-size: 30px; font-weight: 800; color: var(--navy-900); line-height: 1.2; margin-top: 4px; }
.stat-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-muted); }
.row-link { cursor: pointer; }
.row-link:hover td { background: var(--teal-50); }

/* ---------- badges ---------- */
.badge {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  background: #e2e8f0; color: var(--ink-2);
}
.badge-severity-info { background: #dbeafe; color: #1d4ed8; }
.badge-severity-low { background: #dcfce7; color: #15803d; }
.badge-severity-medium { background: #fef9c3; color: #a16207; }
.badge-severity-high { background: #ffedd5; color: #c2410c; }
.badge-severity-critical { background: #fee2e2; color: #b91c1c; }
.badge-class-reported { background: #e0e7ff; color: #3730a3; }
.badge-class-verified { background: #dcfce7; color: #166534; }
.badge-class-inferred { background: #f3e8ff; color: #6b21a8; }
.badge-status-open { background: #dbeafe; color: #1d4ed8; }
.badge-status-acknowledged { background: #fef9c3; color: #a16207; }
.badge-status-resolved, .badge-status-done { background: #dcfce7; color: #166534; }
.badge-status-dismissed { background: #e2e8f0; color: #475569; }
.badge-status-unread { background: #fee2e2; color: #b91c1c; }
.badge-status-read { background: #e2e8f0; color: #475569; }
.badge-status-active, .badge-status-planning { background: #dbeafe; color: #1d4ed8; }
.badge-status-completed { background: #dcfce7; color: #166534; }
.badge-status-on-hold { background: #fef9c3; color: #a16207; }
.badge-status-at-risk, .badge-status-overdue { background: #fee2e2; color: #b91c1c; }
.badge-status-on-leave { background: #ffedd5; color: #c2410c; }
.badge-status-offboarded { background: #e2e8f0; color: #475569; }
.badge-type { background: var(--teal-100); color: var(--teal-600); }

/* ---------- buttons / forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  padding: 9px 16px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; background: var(--surface); color: var(--ink);
  transition: background 0.15s, border-color 0.15s;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--teal-600); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--teal-500); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-muted); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 14px;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--teal-500); outline-offset: 0; border-color: var(--teal-500);
}
.field textarea { min-height: 90px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filters .field { margin-bottom: 0; min-width: 160px; }
.filters input, .filters select { padding: 8px 10px; }

/* ---------- progress / alerts / lists ---------- */
.progress { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--teal-500); border-radius: 999px; transition: width 0.3s; }
.progress.warn > div { background: #f59e0b; }
.progress.bad > div { background: var(--danger); }
.alert-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.alert-item:last-child { border-bottom: none; }
.alert-item.unread { background: var(--teal-50); margin: 0 -12px; padding: 12px; border-radius: 8px; }
.alert-title { font-weight: 600; }
.alert-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.list-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: none; }
.list-row .grow { flex: 1; min-width: 0; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; }

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10, 22, 40, 0.55);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; z-index: 50; overflow-y: auto;
}
.modal {
  background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px; padding: 22px 24px;
}
.modal h2 { font-size: 18px; margin-bottom: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* ---------- misc ---------- */
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty h3 { color: var(--ink-2); margin-bottom: 6px; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid var(--line); border-top-color: var(--teal-600); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { text-align: center; padding: 48px 0; color: var(--muted); }
.error-box { background: var(--danger-bg); border: 1px solid #fecaca; color: #991b1b; border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.info-box { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.success-box { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 13px; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }

/* auth pages */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--navy-950); }
.auth-card { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); width: 100%; max-width: 460px; padding: 32px; }
.auth-card .brand { color: var(--navy-900); padding: 0 0 4px; font-size: 26px; }
.auth-card h1 { font-size: 20px; margin: 8px 0 4px; }
.auth-card .sub { color: var(--muted); margin-bottom: 20px; }

/* markdown rendering (tiny renderer output) */
.md h2 { font-size: 17px; margin-top: 18px; }
.md h3 { font-size: 15px; margin-top: 14px; }
.md ul { margin: 4px 0 12px; padding-left: 22px; }
.md li { margin-bottom: 4px; }
.md p { margin-bottom: 10px; }

/* ---------- SPEC v2: level switcher, scope, confidence, uncertainty, graph ---------- */

/* Level switcher (segmented control) */
.level-switcher {
  display: inline-flex; gap: 2px;
  background: var(--surface-muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px; margin-bottom: 8px;
}
.level-btn {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  padding: 7px 16px; border: none; border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.level-btn:hover { color: var(--ink); }
.level-btn.active { background: var(--navy-900); color: #fff; }

/* Scope badges */
.badge-scope-employee { background: #dbeafe; color: #1d4ed8; }
.badge-scope-department { background: #fef9c3; color: #a16207; }
.badge-scope-organization { background: #f3e8ff; color: #6b21a8; }

/* AI-inferred findings are visually distinct (purple + amber border) */
.badge-class-inferred {
  background: #f3e8ff; color: #6b21a8;
  border: 1px solid #c084fc; font-weight: 700;
}

/* Confidence bar */
.confidence { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.confidence-bar {
  display: inline-block; width: 72px; height: 8px;
  background: var(--line); border-radius: 999px; overflow: hidden;
}
.confidence-fill { display: block; height: 100%; border-radius: 999px; }
.confidence-high { background: var(--success); }
.confidence-mid { background: #f59e0b; }
.confidence-low { background: var(--danger); }
.confidence-label { font-size: 12px; font-weight: 600; color: var(--ink-2); }

/* Uncertainty callout */
.uncertainty-note {
  background: #fffbeb; border: 1px solid #fcd34d; border-left: 4px solid var(--amber-border);
  border-radius: 8px; padding: 10px 12px; margin: 8px 0; font-size: 13px; color: var(--amber-ink);
}
.uncertainty-note strong { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }

/* Prediction card */
.prediction-card {
  background: var(--teal-50); border: 1px solid var(--teal-100);
  border-radius: 8px; padding: 12px 14px; margin: 12px 0;
}
.prediction-card h3 { margin-bottom: 4px; color: var(--teal-600); }

/* Feedback form */
.feedback-form {
  border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px;
}
.feedback-form h3 { margin-bottom: 4px; }

/* Graph view */
.graph-result { margin-top: 16px; }
.graph-result h3 { margin-bottom: 10px; }

/* ---------- Activity Timeline (v0.2) ---------- */
.tl-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}
.tl-layout .card { margin-bottom: 0; }
.tl-summary { position: sticky; top: 76px; }
.tl-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.tl-row:last-child { border-bottom: none; }
.tl-hour {
  flex: 0 0 74px;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-2);
  padding-top: 1px;
  white-space: nowrap;
}
.tl-main { flex: 1; min-width: 0; }
.tl-status-line { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.tl-status-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  flex: 0 0 10px;
}
.tl-status-label { font-weight: 600; font-size: 13px; }
.tl-duration { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tl-bar {
  height: 10px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.tl-bar > div { height: 100%; border-radius: 999px; }
.tl-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-2);
}
.tl-app { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tl-app-dot { width: 8px; height: 8px; flex-basis: 8px; }
.tl-thumb { flex: 0 0 96px; }
.tl-thumb img {
  display: block;
  width: 96px; height: 60px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.tl-thumb-empty {
  width: 96px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: 4px;
}
.tl-score-ring { display: flex; justify-content: center; margin: 8px 0 4px; }
.tl-score-value { font-size: 28px; font-weight: 800; fill: var(--ink); }
.tl-score-max { font-size: 12px; fill: var(--muted); }
.tl-totals { margin: 0 0 16px; }
.tl-totals > div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.tl-totals > div:last-child { border-bottom: none; }
.tl-totals dt { color: var(--muted); font-weight: 600; }
.tl-totals dd { margin: 0; font-weight: 700; }
.tl-top-apps, .tl-contributions {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.tl-top-apps li {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.tl-top-apps li:last-child { border-bottom: none; }
.tl-top-app-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-top-app-time { font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.tl-contributions li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.tl-contributions li:last-child { border-bottom: none; }
.tl-contrib-title { font-weight: 600; font-size: 14px; }
.tl-summary h3 { margin-top: 18px; }
.tl-summary h3:first-of-type { margin-top: 0; }

/* ---------- Attendance & Presence (v0.3) ---------- */
.att-subnav {
  display: flex; flex-wrap: wrap; gap: 4px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 6px;
  margin-bottom: 20px; box-shadow: var(--shadow);
}
.att-subnav a {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding: 7px 12px; border-radius: 7px; white-space: nowrap;
}
.att-subnav a:hover { background: var(--surface-muted); color: var(--ink); text-decoration: none; }
.att-subnav a.active { background: var(--navy-900); color: #fff; }
.att-kpi-grid { margin-bottom: 20px; }
.att-dot {
  display: inline-block; width: 9px; height: 9px;
  border-radius: 50%; margin-right: 6px; vertical-align: 1px;
}
.att-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.att-action-btn { width: 100%; padding: 12px 16px; font-size: 15px; }
.att-action-lunch { background: #fff7ed; border-color: #fdba74; color: #9a3412; }
.att-action-lunch:hover:not(:disabled) { background: #ffedd5; }
.att-action-resume { background: #f0fdf4; border-color: #86efac; color: #166534; }
.att-action-resume:hover:not(:disabled) { background: #dcfce7; }
.att-action-hint { margin: -4px 0 0; }
.att-gps-warning { color: #991b1b; font-weight: 600; }
.att-verify { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
.att-verify h3 { margin-bottom: 10px; }
.att-counter { font-size: 15px; margin: 12px 0 0; }
.att-counter strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.att-summary { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.att-summary h3 { margin-bottom: 8px; }
.att-feed { list-style: none; margin: 0; padding: 0; }
.att-feed li {
  display: flex; align-items: baseline; gap: 4px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.att-feed li:last-child { border-bottom: none; }
.att-feed-main { flex: 1; min-width: 0; }
.att-feed-time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.att-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.att-tabs button {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.att-tabs button:hover { background: var(--surface-muted); color: var(--ink); }
.att-tabs button.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.att-office-card { margin-bottom: 0; }
.att-legend { list-style: none; margin: 0 0 12px; padding: 0; }
.att-legend li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.att-legend li:last-child { border-bottom: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tl-layout { grid-template-columns: 1fr; }
  .tl-summary { position: static; }
  .tl-row { flex-wrap: wrap; }
  .tl-thumb { flex-basis: 100%; }
  .tl-thumb img, .tl-thumb-empty { width: 100%; height: 90px; }
  .sidebar {
    position: fixed; z-index: 40; left: 0; top: 0; bottom: 0;
    transform: translateX(-100%); transition: transform 0.2s ease;
    height: 100dvh;
  }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .sidebar-backdrop {
    position: fixed; inset: 0; background: rgba(10, 22, 40, 0.5); z-index: 30;
  }
  .hamburger { display: inline-block; }
  .content { padding: 16px; }
  .topbar { padding: 10px 14px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dd { margin-bottom: 8px; }
  .topbar-user span { display: none; }
  .stat-value { font-size: 26px; }
}
