/* VOKANUSA Admin — dashboard styles (no build step) */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --line: #eceef2;
  --line-strong: #e1e4ea;
  --text: #111827;
  --text-2: #4b5563;
  --text-3: #8a93a3;
  --brand: #059669;
  --brand-600: #047857;
  --brand-50: #ecfdf5;
  --brand-100: #d1fae5;
  --good: #0ca30c;
  --good-text: #067a3c;
  --good-bg: #ecfdf3;
  --warn: #f59e0b;
  --warn-text: #a15c00;
  --warn-bg: #fff7e6;
  --bad: #d03b3b;
  --bad-text: #b42318;
  --bad-bg: #fef1f1;
  --muted-bg: #f1f2f5;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .03);
  --sidebar-w: 256px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
input, select { font: inherit; color: inherit; }
.num, td, .kpi-value, .big-value { font-variant-numeric: tabular-nums; }

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

/* ---------- Shell ---------- */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 22px 16px 16px;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; }
.brand img { border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 16px; font-weight: 800; letter-spacing: .02em; }
.brand-text span { font-size: 12px; color: var(--text-3); font-weight: 600; }
.sidebar .sidebar-close { margin-left: auto; display: none; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label {
  margin: 18px 12px 6px; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
}
.nav-label:first-child { margin-top: 0; }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  height: 42px; padding: 0 12px; border-radius: 11px;
  color: var(--text-2); font-weight: 600;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.is-active { background: var(--brand-50); color: var(--brand-600); }
.nav-item.is-active::before {
  content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--brand);
}
.nav-item.is-disabled { color: var(--text-3); cursor: default; }
.nav-item.is-disabled:hover { background: none; color: var(--text-3); }
.nav-count, .soon {
  margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}
.nav-count { background: var(--muted-bg); color: var(--text-2); }
.nav-item.is-active .nav-count { background: var(--brand-100); color: var(--brand-600); }
.soon { background: var(--muted-bg); color: var(--text-3); font-weight: 600; }

.side-card {
  margin-top: auto;
  background: linear-gradient(160deg, var(--brand-50), #f6fbf9 70%);
  border: 1px solid #dff3ea;
  border-radius: 14px; padding: 16px;
}
.side-card-icon {
  width: 34px; height: 34px; border-radius: 10px; background: #fff;
  display: grid; place-items: center; color: var(--brand); margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.side-card strong { display: block; font-size: 14px; }
.side-card p { margin: 4px 0 10px; color: var(--text-2); font-size: 12.5px; }

.side-user {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 8px 0; margin-top: 14px; border-top: 1px solid var(--line);
}
.side-user strong { display: block; font-size: 13px; }
.side-user span { font-size: 12px; color: var(--text-3); }

.scrim { display: none; }

.main-wrap {
  flex: 1; min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex; flex-direction: column;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  height: 68px; padding: 0 28px;
  background: rgba(245, 246, 248, .86);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .menu-btn { display: none; }
.search {
  flex: 1; min-width: 0; max-width: 460px;
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; color: var(--text-3);
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(5,150,105,.12); }
.search input { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.live-chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; color: var(--text-2); white-space: nowrap;
}
.live-chip b { color: var(--text); }
.live-chip i, .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--good);
  box-shadow: 0 0 0 0 rgba(12,163,12,.45); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(12,163,12,.45); }
  70% { box-shadow: 0 0 0 7px rgba(12,163,12,0); }
  100% { box-shadow: 0 0 0 0 rgba(12,163,12,0); }
}
@media (prefers-reduced-motion: reduce) { .live-chip i, .pulse { animation: none; } }

.icon-btn {
  position: relative;
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; color: var(--text-2);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn .dot {
  position: absolute; top: 9px; right: 10px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--bad); border: 1.5px solid #fff;
}

.mock-banner {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 18px 28px 0; padding: 10px 14px;
  background: var(--warn-bg); border: 1px solid #fde7b5; border-radius: 12px;
  color: #7a4a00; font-size: 13px;
}
.mock-banner .i { color: var(--warn-text); margin-top: 1px; }
.mock-banner.is-live { background: var(--brand-50); border-color: #c8eedd; color: #065f46; }
.mock-banner.is-live .i { color: var(--brand); }
.icon-btn[hidden], .mock-banner[hidden] { display: none; }

.main { padding: 22px 28px 40px; outline: none; }

/* ---------- Page header ---------- */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.page-head h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.page-head p { margin: 4px 0 0; color: var(--text-2); }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px;
  color: var(--text-2); font-weight: 600; font-size: 13px;
}
.back-link:hover { color: var(--brand-600); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px; border-radius: 11px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: #cfd4dc; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-outline-brand { color: var(--brand-600); border-color: #a7e3cb; background: #fff; }
.btn-outline-brand:hover { background: var(--brand-50); border-color: var(--brand); }

.select {
  position: relative; display: inline-flex; align-items: center;
}
.select select {
  appearance: none; -webkit-appearance: none;
  height: 40px; padding: 0 36px 0 38px; border-radius: 11px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-weight: 600; cursor: pointer;
}
.select select:focus { outline: 2px solid rgba(5,150,105,.25); border-color: var(--brand); }
.select > .i:first-child { position: absolute; left: 12px; color: var(--text-3); pointer-events: none; }
.select > .i:last-child { position: absolute; right: 10px; width: 16px; color: var(--text-3); pointer-events: none; }
.select.no-icon select { padding-left: 14px; }

.seg {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--muted-bg); border-radius: 11px;
}
.seg button {
  border: 0; background: transparent; cursor: pointer;
  height: 32px; padding: 0 12px; border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap;
}
.seg button:hover { color: var(--text); }
.seg button.is-on { background: var(--surface); color: var(--text); box-shadow: var(--shadow), 0 0 0 1px var(--line); }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.grid-kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-1-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; min-width: 0;
}
.card-flush { padding: 0; overflow: hidden; }
.card-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.card-flush .card-head { padding: 20px 20px 0; }
.card-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; margin: 0; }
.card-title .i { color: var(--text-2); }
.card-sub { color: var(--text-3); font-size: 12.5px; margin: 2px 0 0; }
.card-head .spacer { flex: 1; }
.see-all {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
  font-size: 13px; font-weight: 600; color: var(--text-2);
}
.see-all:hover { color: var(--brand-600); }
.see-all .i { width: 16px; height: 16px; }

/* KPI */
.kpi { display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 16px; }
.kpi-top { display: flex; align-items: center; gap: 10px; }
.kpi-icon {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; flex: none;
  background: var(--tile-bg, var(--brand-50)); color: var(--tile-fg, var(--brand));
}
.kpi-label { color: var(--text-2); font-weight: 600; font-size: 13.5px; }
.kpi-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.kpi-value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.kpi-foot { margin-top: 6px; font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kpi .spark { flex: none; }

.delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; }
.delta .i { width: 13px; height: 13px; stroke-width: 2.4; }
.delta.up { color: var(--good-text); }
.delta.down { color: var(--bad-text); }
.delta.flat { color: var(--text-3); }

/* Main chart */
.chart-summary { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: -4px 0 6px; }
.big-value { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.chart-summary .muted { color: var(--text-3); font-size: 13px; }
.chart-box { position: relative; width: 100%; }
.chart-box svg { display: block; width: 100%; overflow: visible; }
.axis-text { fill: var(--text-3); font-size: 11.5px; font-family: var(--font); }
.grid-line { stroke: var(--line); stroke-width: 1; }
.grid-line.base { stroke: var(--line-strong); }
.series-line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.crosshair { stroke: #c6ccd6; stroke-width: 1; stroke-dasharray: 3 3; }
.hover-dot { fill: var(--brand); stroke: #fff; stroke-width: 2.5; }
.bar { fill: var(--brand); }
.bar.is-dim { fill: #a7e3cb; }
.bar.is-zero { fill: var(--line-strong); }

.tooltip {
  position: fixed; z-index: 100; pointer-events: none;
  min-width: 120px; padding: 9px 12px;
  background: #111827; color: #fff; border-radius: 10px;
  font-size: 12.5px; line-height: 1.4;
  box-shadow: 0 8px 24px rgba(16,24,40,.18);
}
.tooltip .tt-title { color: #c7cdd8; font-size: 11.5px; margin-bottom: 3px; }
.tooltip .tt-row { display: flex; justify-content: space-between; gap: 16px; }
.tooltip .tt-row b { font-variant-numeric: tabular-nums; }

/* Lists */
.list { display: flex; flex-direction: column; }
.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-top: 1px solid var(--line);
}
.list-row:first-child { border-top: 0; padding-top: 2px; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .meta { color: var(--text-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.list-row:hover .title { color: var(--brand-600); }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--av, #059669) 14%, #fff);
  color: color-mix(in srgb, var(--av, #059669) 85%, #000);
  font-weight: 700; font-size: 12.5px; letter-spacing: .02em;
}
.avatar.lg { width: 64px; height: 64px; font-size: 21px; }
.avatar-wrap { position: relative; flex: none; }
.avatar-wrap .pulse { position: absolute; right: 0; bottom: 1px; border: 2px solid #fff; width: 11px; height: 11px; }

.tile {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--tile-bg, var(--brand-50)); color: var(--tile-fg, var(--brand));
}
.tile .i { width: 17px; height: 17px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.is-good { background: var(--good-bg); color: var(--good-text); }
.status-pill.is-warning { background: var(--warn-bg); color: var(--warn-text); }
.status-pill.is-bad { background: var(--bad-bg); color: var(--bad-text); }
.status-pill.is-muted { background: var(--muted-bg); color: var(--text-2); }
.status-pill.is-new { background: #eef4ff; color: #2f5bd3; }

.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 7px; background: var(--muted-bg); color: var(--text-2);
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}

/* Progress bar */
.pbar { display: flex; align-items: center; gap: 10px; min-width: 120px; }
.pbar-track { flex: 1; height: 6px; border-radius: 999px; background: var(--muted-bg); overflow: hidden; }
.pbar-fill { height: 100%; border-radius: 999px; background: var(--brand); }
.pbar span { font-size: 12.5px; font-weight: 600; color: var(--text-2); min-width: 34px; text-align: right; }

/* Horizontal bar list */
.hbars { display: flex; flex-direction: column; gap: 14px; }
.hbar { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 12px; align-items: center; }
.hbar-main { min-width: 0; }
.hbar-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.hbar-label b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-label span { color: var(--text-2); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hbar-track { height: 8px; border-radius: 999px; background: var(--muted-bg); overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 999px; background: var(--brand); }

/* Distribution (vertical bars) */
.dist { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 8px; }
.dist-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.dist-bar { width: 100%; max-width: 46px; border-radius: 4px 4px 0 0; background: var(--brand); min-height: 2px; }
.dist-col b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.dist-col span { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.dist-axis { border-top: 1px solid var(--line-strong); margin-top: 0; }

/* Heatmap */
.heat { display: grid; grid-template-columns: 30px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; }
.heat-cell { aspect-ratio: 1; border-radius: 3px; background: var(--muted-bg); }
.heat-day { font-size: 11px; color: var(--text-3); }
.heat-hour { font-size: 10.5px; color: var(--text-3); text-align: left; white-space: nowrap; }
.heat-legend { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 11.5px; color: var(--text-3); }
.heat-legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--text-3);
  padding: 10px 14px; background: var(--surface-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
th.r, td.r { text-align: right; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--text); }
th .sort-ind { display: inline-block; width: 10px; margin-left: 3px; color: var(--brand); }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover td { background: #fafbfc; }
.user-cell { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.user-cell .avatar { width: 32px; height: 32px; font-size: 11.5px; }
.user-cell b { display: block; font-weight: 600; }
.user-cell span { display: block; font-size: 12px; color: var(--text-3); }
.rank { width: 24px; color: var(--text-3); font-weight: 700; }
.rank.top { color: var(--brand-600); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 16px 20px; }
.toolbar .search { max-width: 320px; height: 40px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip em { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.chip:hover { color: var(--text); }
.chip.is-on { background: var(--brand-50); border-color: #a7e3cb; color: var(--brand-600); }
.chip.is-on em { color: var(--brand-600); }

.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px;
}
.pager-btns { display: flex; gap: 6px; }
.pager .icon-btn { width: 34px; height: 34px; border-radius: 9px; }
.pager .icon-btn[disabled] { opacity: .45; cursor: default; }

.mini-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; margin-bottom: 18px; }
.mini { padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.mini b { display: block; font-size: 22px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.mini span { color: var(--text-2); font-size: 12.5px; font-weight: 600; }

/* Activity feed */
.feed-row { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.feed-row:first-child { border-top: 0; padding-top: 2px; }
.feed-row .grow { flex: 1; min-width: 0; }
.feed-text { font-size: 13.5px; color: var(--text-2); }
.feed-text b, .feed-text a { color: var(--text); font-weight: 600; }
.feed-text a:hover { color: var(--brand-600); }
.feed-time { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.feed-day { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; padding: 18px 0 6px; }
.feed-day:first-child { padding-top: 0; }

/* User detail */
.profile { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.profile h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.profile .meta-line { display: flex; gap: 8px 16px; flex-wrap: wrap; color: var(--text-2); font-size: 13px; margin-top: 6px; }
.profile .meta-line span { display: inline-flex; align-items: center; gap: 6px; }
.profile .meta-line .i { width: 15px; height: 15px; color: var(--text-3); }
.profile-right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.empty { padding: 28px; text-align: center; color: var(--text-3); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .grid-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .grid-2-1 { grid-template-columns: minmax(0, 1fr); }
  .mini-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: none; }
  body.nav-open .sidebar { transform: none; box-shadow: 0 12px 40px rgba(16,24,40,.2); }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(17,24,39,.35); }
  .sidebar .sidebar-close { display: grid; }
  .main-wrap { margin-left: 0; }
  .topbar .menu-btn { display: grid; }
  .topbar { padding: 0 16px; }
  .mock-banner { margin: 14px 16px 0; }
  .main { padding: 18px 16px 32px; }
  .grid-1-1, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-3 > :last-child { grid-column: auto; }
}
@media (max-width: 640px) {
  .live-chip { display: none; }
  .topbar { gap: 8px; }
  .topbar-right { gap: 8px; }
  .grid { gap: 14px; margin-bottom: 14px; }
  .grid-kpi { grid-template-columns: minmax(0, 1fr); }
  .mini-stats { gap: 12px; }
  .card { padding: 16px; }
  .card.card-flush { padding: 0; }
  .card-flush .card-head { padding: 16px 16px 0; }
  th:first-child, td:first-child { padding-left: 16px; }
  th:last-child, td:last-child { padding-right: 16px; }
  .toolbar { padding: 14px 16px; }
  .toolbar .search { max-width: none; flex-basis: 100%; }
  .pager { padding: 12px 16px; }
  .page-head h1 { font-size: 22px; }
  .big-value { font-size: 28px; }
  .kpi-value { font-size: 26px; }
  .heat { grid-template-columns: 26px repeat(24, minmax(0, 1fr)); gap: 2px; }
  .page-actions { width: 100%; }
  .card-head .seg { width: 100%; }
  .card-head .seg button { flex: 1; padding: 0 6px; }
  .page-actions .btn, .page-actions .select, .page-actions .select select { flex: 1; }
}
