/* ═══════════════════════════════════════════════════════════
   KKL TECHNOLOGY — console demo
   ═══════════════════════════════════════════════════════════ */

.console-body {
  background: #f5f7fb;
  color: var(--ink);
  overflow-x: hidden;
}

/* ─── layout ─────────────────────────────────────────────── */
.console-layout { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 200;
  width: 248px;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 16px;
  background: #0a0f1e;
  color: #94a3b8;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.35s var(--ease);
}

.console-brand { padding: 3px 8px 20px; }
.console-brand .brand-text strong { color: #fff; }
.console-brand .brand-text span { color: #64748b; }
.console-brand .brand-mark { width: 32px; height: 32px; box-shadow: 0 8px 20px -8px rgba(99, 102, 241, 0.9); }

.workspace-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
}
.workspace-switch:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); }
.ws-avatar {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.ws-copy { flex: 1; min-width: 0; }
.ws-copy strong { display: block; font-size: 11px; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-copy small { display: block; font-size: 8.5px; color: #64748b; }
.workspace-switch svg { width: 13px; height: 13px; color: #64748b; }

.side-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 22px; flex: 1; overflow-y: auto; }
.side-label {
  padding: 0 10px;
  margin: 4px 0 8px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #475569;
}
.side-label-gap { margin-top: 22px; }
.side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12px;
  color: #94a3b8;
  transition: background 0.2s, color 0.2s;
}
.side-link svg { width: 15px; height: 15px; color: #64748b; flex-shrink: 0; transition: color 0.2s; }
.side-link:hover { background: rgba(255, 255, 255, 0.04); color: #e2e8f0; }
.side-link:hover svg { color: #94a3b8; }
.side-link.active { background: rgba(99, 102, 241, 0.14); color: #fff; }
.side-link.active svg { color: #a5b4fc; }
.side-link.active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 16px;
  border-radius: 0 2px 2px 0;
  background: #6366f1;
}
.side-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 8px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  padding: 1px 5px;
}
.status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 7px rgba(52, 211, 153, 0.8);
  display: inline-block;
  flex-shrink: 0;
}
.side-link .status-dot { margin-left: auto; }

.side-bottom { margin-top: 14px; padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.side-usage { padding: 0 2px; }
.side-usage-top { display: flex; justify-content: space-between; font-size: 9.5px; color: #94a3b8; }
.side-usage-top b { color: #e2e8f0; font-weight: 500; }
.side-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); margin: 7px 0 5px; overflow: hidden; }
.side-bar i { display: block; width: 68%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #6366f1, #a78bfa); }
.side-usage small { font-size: 8px; color: #475569; }
.side-upgrade { width: 100%; margin: 12px 0 14px; }
.side-user { display: flex; align-items: center; gap: 8px; }
.user-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.user-copy { flex: 1; min-width: 0; }
.user-copy strong { display: block; font-size: 10px; color: #e2e8f0; font-weight: 500; line-height: 1.3; }
.user-copy small { display: block; font-size: 8px; color: #64748b; }
.signout { color: #64748b; display: grid; place-items: center; }
.signout svg { width: 14px; height: 14px; }
.signout:hover { color: #e2e8f0; }

/* ─── main ───────────────────────────────────────────────── */
.console-main {
  margin-left: 248px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.console-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 62px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #e8edf5;
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.crumbs strong { color: var(--ink); font-weight: 500; }
.crumbs i { font-style: normal; color: #cbd5e1; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 8.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  padding: 4px 8px;
  border-radius: 5px;
}
.demo-badge i { width: 4px; height: 4px; border-radius: 50%; background: #10b981; }
.topbar-link { font-size: 11px; color: var(--muted); }
.topbar-link:hover { color: var(--indigo-600); }
.topbar-icon {
  position: relative;
  width: 30px; height: 30px;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
}
.topbar-icon svg { width: 14px; height: 14px; }
.topbar-icon:hover { color: var(--ink); border-color: #d8e0ec; }
.notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #ef4444;
  border: 1px solid #fff;
}
.topbar-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.mobile-side-toggle {
  display: none;
  width: 30px; height: 30px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mobile-side-toggle svg { width: 15px; height: 15px; }

.console-content {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 30px 36px;
  flex: 1;
}

.demo-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid #dfe5ff;
  border-radius: 9px;
  background: #f5f6ff;
  font-size: 10.5px;
  color: #4f46e5;
  margin-bottom: 22px;
}
.demo-banner-icon { width: 16px; height: 16px; color: #6366f1; flex-shrink: 0; }
.demo-banner a { margin-left: auto; font-weight: 600; color: #4338ca; white-space: nowrap; }
.demo-banner a span { display: inline-block; transition: transform 0.2s; }
.demo-banner a:hover span { transform: translateX(3px); }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.page-eyebrow {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.page-head h1 {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.page-head p { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: 11px;
  color: var(--slate-600);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.date-pill svg { width: 12px; height: 12px; color: var(--muted); }
.date-pill:hover { border-color: #cbd5e1; }
.page-actions .btn { height: 36px; padding: 0 14px; font-size: 11.5px; }
.plus { font-size: 15px; line-height: 1; margin-top: -1px; }

/* ─── kpi ────────────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}
.kpi {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 12px;
  padding: 15px 16px 13px;
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}
.kpi:hover { border-color: #d8e0ec; box-shadow: 0 12px 26px -18px rgba(15, 23, 42, 0.3); transform: translateY(-1px); }
.kpi-head { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; color: var(--muted); }
.kpi-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  font-style: normal;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.01em;
}
.kpi-tag.up { color: #059669; background: #ecfdf5; }
.kpi-tag.down { color: #0284c7; background: #f0f9ff; }
.kpi-value {
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.15;
  margin: 8px 0 6px;
}
.kpi-value span { font-size: 15px; color: var(--muted-2); font-weight: 500; letter-spacing: -0.02em; }
.kpi-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 8.5px; color: var(--muted-2); }
.kpi-spark { width: 76px; height: 24px; flex-shrink: 0; opacity: 0.8; }

/* ─── panels ─────────────────────────────────────────────── */
.panel-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 13px;
  margin-top: 13px;
}
.panel {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 12px;
  padding: 18px;
  min-width: 0;
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.panel-head h2 { font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: -0.02em; }
.panel-head p { font-size: 9.5px; color: var(--muted-2); margin-top: 3px; }
.panel-tag {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid #e8edf5;
  border-radius: 4px;
  padding: 3px 6px;
}
.chart-tabs { display: flex; gap: 1px; padding: 2px; border-radius: 6px; background: #f1f5f9; }
.chart-tab {
  border: 0;
  background: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  color: var(--muted);
  cursor: pointer;
}
.chart-tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }
.chart-stat { display: flex; align-items: baseline; gap: 7px; margin-top: 16px; }
.chart-stat strong { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.chart-stat > span { font-size: 9px; color: var(--muted-2); }
.chart-stat .kpi-tag { margin-left: 2px; }

.chart-wrap { position: relative; margin-top: 16px; padding-left: 28px; }
.chart-y {
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 7px;
  color: #b0bac9;
}
.chart { width: 100%; height: 188px; display: block; overflow: visible; }
.chart-x {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 7px;
  color: #b0bac9;
}

/* model bars */
.model-bars { display: flex; flex-direction: column; gap: 13px; margin-top: 20px; }
.model-row-top { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: var(--slate-600); margin-bottom: 5px; }
.model-name { display: inline-flex; align-items: center; gap: 6px; }
.model-name i { width: 6px; height: 6px; border-radius: 2px; background: var(--mc); }
.model-row-top b { font-family: var(--font-mono); font-size: 8.5px; color: var(--muted); font-weight: 500; }
.model-bar { height: 5px; border-radius: 5px; background: #f1f5f9; overflow: hidden; }
.model-bar i { display: block; height: 100%; border-radius: 5px; background: var(--mc); opacity: 0.85; }
.models-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid #eef2f7;
  font-size: 8.5px;
  color: var(--muted-2);
}
.models-foot span { display: inline-flex; align-items: center; gap: 5px; }
.models-foot a { color: var(--indigo-600); font-weight: 500; }
.models-foot a span { transition: transform 0.2s; }
.models-foot a:hover span { transform: translateX(2px); }

/* ─── tables ─────────────────────────────────────────────── */
.table-panel { margin-top: 13px; padding-bottom: 6px; }
.table-scroll { overflow-x: auto; margin: 12px -18px 0; scrollbar-width: thin; }
.table-scroll::-webkit-scrollbar { height: 4px; }
.table-scroll::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 11.5px; white-space: nowrap; }
.data-table th {
  text-align: left;
  padding: 8px 14px;
  border-bottom: 1px solid #eef2f7;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b0bac9;
}
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #f3f6fa;
  color: var(--slate-600);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #fbfcff; }
.key-name { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.key-avatar {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 600;
  color: #fff;
}
.ka-prod { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.ka-stg { background: linear-gradient(135deg, #06b6d4, #0284c7); }
.ka-old { background: #cbd5e1; color: #64748b; }
.mono { font-family: var(--font-mono); font-size: 9.5px; color: var(--muted); }
.td-muted { color: var(--muted-2); font-size: 9px; }
.copy-mini {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  border: 0;
  background: none;
  color: #b0bac9;
  cursor: pointer;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 2px;
}
.copy-mini svg { width: 11px; height: 11px; }
.copy-mini:hover { color: var(--indigo-600); background: #f1f5f9; }
.pill-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  padding: 2px 7px;
  border-radius: 999px;
}
.pill-status i { width: 4px; height: 4px; border-radius: 50%; }
.pill-status.active { color: #059669; background: #ecfdf5; }
.pill-status.active i { background: #10b981; }
.pill-status.revoked { color: #94a3b8; background: #f1f5f9; }
.pill-status.revoked i { background: #cbd5e1; }
.row-menu {
  border: 0;
  background: none;
  color: #b0bac9;
  letter-spacing: 1px;
  cursor: pointer;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 4px;
}
.row-menu:hover { background: #f1f5f9; color: var(--slate-600); }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  color: #059669;
  background: #ecfdf5;
  border-radius: 999px;
  padding: 3px 7px;
}
.live-pill i { width: 4px; height: 4px; border-radius: 50%; background: #10b981; animation: livePulse 2s infinite; }
@keyframes livePulse { 50% { opacity: 0.35; } }
.data-table.compact td { padding: 9px 12px; font-size: 9.5px; }
.data-table.compact th { padding: 7px 12px; }
.code-200 { font-family: var(--font-mono); font-size: 8.5px; color: #059669; background: #ecfdf5; border-radius: 3px; padding: 2px 5px; }

/* ─── quickstart ─────────────────────────────────────────── */
.panel-grid-bottom { grid-template-columns: 1.2fr 1fr; }
.quickstart-panel { background: #0b1020; border-color: #1e293b; color: #e2e8f0; }
.quickstart-panel .panel-head h2 { color: #f1f5f9; }
.quickstart-panel .panel-head p { color: #64748b; }
.quickstart-panel .copy-code {
  width: auto;
  padding: 4px 7px;
  display: inline-flex;
  gap: 4px;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 8px;
  margin-left: 0;
}
.quickstart-panel .copy-code:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.quick-code {
  margin: 16px 0 14px;
  padding: 12px;
  border-radius: 8px;
  background: #070b18;
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow-x: auto;
}
.quick-code code { font-family: var(--font-mono); font-size: 8.5px; line-height: 1.9; color: #cbd5e1; white-space: pre; }
.quick-link { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 500; color: #a5b4fc; }
.quick-link span { transition: transform 0.2s; }
.quick-link:hover span { transform: translateX(3px); }

/* ─── footer ─────────────────────────────────────────────── */
.console-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid #e8edf5;
  font-size: 8.5px;
  color: var(--muted-2);
}
.console-foot span:last-child { display: inline-flex; align-items: center; gap: 5px; color: #059669; }

/* ─── modal ──────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(7, 11, 24, 0.55); backdrop-filter: blur(4px); }
.modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 40px 100px -30px rgba(2, 6, 23, 0.6);
  animation: modalIn 0.35s var(--ease) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.modal-head h2 { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.025em; }
.modal-head p { font-size: 10.5px; color: var(--muted); margin-top: 4px; line-height: 1.55; }
.modal-close {
  width: 28px; height: 28px;
  border: 1px solid #e8edf5;
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  flex-shrink: 0;
}
.modal-close:hover { color: var(--ink); }
.field { display: block; margin-bottom: 13px; }
.field > span { display: block; font-size: 9.5px; font-weight: 500; color: var(--slate-600); margin-bottom: 5px; }
.field input, .field select {
  width: 100%;
  height: 38px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 11px;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.field input:focus, .field select:focus { border-color: var(--indigo-500); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.modal-actions .btn { height: 36px; padding: 0 15px; font-size: 11px; }

/* ─── responsive ─────────────────────────────────────────── */
@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .panel-grid { grid-template-columns: 1fr; }
  .panel-grid-bottom { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .console-body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(7, 11, 24, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .console-body.sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  .console-main { margin-left: 0; }
  .mobile-side-toggle { display: inline-flex; }
  .crumbs { gap: 7px; }
}

@media (max-width: 720px) {
  .console-topbar { padding: 0 18px; height: 58px; }
  .console-content { padding: 18px 18px 30px; }
  .demo-badge, .topbar-link { display: none; }
  .page-head { flex-direction: column; align-items: stretch; }
  .page-actions { justify-content: space-between; }
  .page-actions .btn { flex: 1; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .kpi { padding: 13px; }
  .kpi-value { font-size: 25px; }
  .kpi-spark { display: none; }
  .demo-banner { align-items: flex-start; flex-wrap: wrap; font-size: 9.5px; }
  .demo-banner a { margin-left: 25px; }
  .panel { padding: 15px; }
  .table-scroll { margin: 10px -15px 0; }
  .chart-wrap { padding-left: 23px; }
  .chart { height: 160px; }
  .console-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 460px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .page-head h1 { font-size: 23px; }
  .date-pill { flex: 1; justify-content: space-between; }
}
