@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

/* ─── Design Tokens ─────────────────────────────────────────────────────── */
:root {
  --bg: #f0f4f8;
  --bg-accent: #e6eef0;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --text-muted: #475569;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --brand-soft: #ccfbf1;
  --brand-grad: linear-gradient(135deg, #14b8a6, #0f766e);
  --alert: #b45309;
  --danger: #b91c1c;
  --ok: #166534;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 24px 56px rgba(15, 23, 42, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 160ms ease;
}

[data-theme="dark"] {
  --bg: #0d1117;
  --bg-accent: #0f172a;
  --panel: rgba(17, 24, 39, 0.88);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --brand: #2dd4bf;
  --brand-strong: #5eead4;
  --brand-soft: rgba(15, 118, 110, 0.3);
  --brand-grad: linear-gradient(135deg, #2dd4bf, #0f766e);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.5);
}

/* ─── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background:
    radial-gradient(circle at 15% 8%, #d0f5ee, transparent 32%),
    radial-gradient(circle at 88% 12%, #ffe9d3, transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg-accent));
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at 15% 8%, rgba(20, 184, 166, 0.07), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(251, 146, 60, 0.05), transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg-accent));
}

h1, h2, h3 {
  margin: 0;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  letter-spacing: -0.02em;
}

/* ─── Scrollbar ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, 0.3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, 0.5); }

/* ─── Focus States ───────────────────────────────────────────────────────── */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Background Decoration ─────────────────────────────────────────────── */
.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(60px);
  z-index: -2;
  pointer-events: none;
}
.orb-one {
  width: 320px; height: 320px;
  background: #14b8a6;
  left: -100px; top: -100px;
  opacity: 0.35;
}
.orb-two {
  width: 360px; height: 360px;
  background: #fb923c;
  right: -120px; top: 80px;
  opacity: 0.28;
}
[data-theme="dark"] .orb-one { opacity: 0.12; }
[data-theme="dark"] .orb-two { opacity: 0.08; }

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: -3;
  pointer-events: none;
}
[data-theme="dark"] .grid-overlay {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

/* ─── App Shell ──────────────────────────────────────────────────────────── */
.app-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

/* ─── Topbar ─────────────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.topbar-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.brand-icon {
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 4px;
  opacity: 0.9;
}

.eyebrow {
  margin: 0 0 2px;
  text-transform: uppercase;
  color: var(--brand-strong);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
}

h1 {
  font-size: clamp(20px, 3vw, 28px);
  color: var(--text);
}

.subtitle {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 520px;
}

.status-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.status-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fef3c7;
  color: #854d0e;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.01em;
  border: 1px solid rgba(133, 77, 14, 0.18);
  white-space: nowrap;
}
.status-pill.ok { background: #dcfce7; color: #166534; border-color: rgba(22, 101, 52, 0.18); }
.status-pill.error { background: #fee2e2; color: #991b1b; border-color: rgba(153, 27, 27, 0.18); }
[data-theme="dark"] .status-pill { background: rgba(254, 243, 199, 0.12); color: #fbbf24; border-color: rgba(251, 191, 36, 0.2); }
[data-theme="dark"] .status-pill.ok { background: rgba(220, 252, 231, 0.1); color: #4ade80; border-color: rgba(74, 222, 128, 0.2); }
[data-theme="dark"] .status-pill.error { background: rgba(254, 226, 226, 0.1); color: #f87171; border-color: rgba(248, 113, 113, 0.2); }

/* ─── Theme Toggle ───────────────────────────────────────────────────────── */
[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }

/* ─── Tabs ───────────────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tab {
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: "IBM Plex Sans", sans-serif;
}
.tab:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 118, 110, 0.3);
  box-shadow: var(--shadow-sm);
}
.tab.active {
  background: var(--brand-grad);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}
[data-theme="dark"] .tab {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: rgba(45, 212, 191, 0.3);
}
[data-theme="dark"] .tab.active {
  color: white;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.35);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Layout Grids ───────────────────────────────────────────────────────── */
.panel-grid { display: grid; gap: 16px; }
.panel-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ─── Panel ──────────────────────────────────────────────────────────────── */
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
  transition: box-shadow var(--transition);
}
[data-theme="dark"] .panel {
  border-color: rgba(255, 255, 255, 0.07);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-header h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* Stacked panel header (multiple rows, used in Findings) */
.panel-header.stacked {
  flex-direction: column;
  align-items: stretch;
}
.panel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.panel-header-row:not(:last-child) {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--panel-border);
  margin-bottom: 2px;
}
.panel-header-row h2 {
  font-size: 15px;
  font-weight: 700;
}

/* ─── Metric Cards ───────────────────────────────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.metric-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: default;
}
.metric-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
[data-theme="dark"] .metric-card {
  border-color: rgba(255, 255, 255, 0.07);
  border-top-color: var(--brand);
}

.metric-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.metric-value {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  color: var(--brand-strong);
  line-height: 1;
  letter-spacing: -0.03em;
}
[data-theme="dark"] .metric-value { color: var(--brand-strong); }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: "IBM Plex Sans", sans-serif;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn:active { transform: translateY(0); }

.btn.primary {
  background: var(--brand-grad);
  color: white;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(15, 118, 110, 0.25);
}
.btn.primary:hover { box-shadow: 0 6px 18px rgba(15, 118, 110, 0.35); }

.btn.ghost {
  background: rgba(255, 255, 255, 0.68);
}
[data-theme="dark"] .btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
[data-theme="dark"] .btn:hover { background: rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .btn.ghost { background: rgba(255, 255, 255, 0.05); }

.btn.warn { background: #fff7ed; border-color: rgba(180, 83, 9, 0.22); color: var(--alert); }
.btn.danger { background: #fef2f2; border-color: rgba(185, 28, 28, 0.22); color: var(--danger); }
.btn.success { background: #ecfdf5; border-color: rgba(22, 101, 52, 0.22); color: var(--ok); }
[data-theme="dark"] .btn.danger { background: rgba(254, 242, 242, 0.08); border-color: rgba(248, 113, 113, 0.25); color: #f87171; }

.btn.icon-btn {
  padding: 8px 10px;
  border-radius: 10px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ─── Forms ──────────────────────────────────────────────────────────────── */
.stack-form { display: grid; gap: 12px; }

label, legend {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}

input, select, textarea {
  width: 100%;
  margin-top: 5px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(100, 116, 139, 0.28);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-size: 14px;
  font-family: "IBM Plex Sans", sans-serif;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
  outline: none;
}
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(148, 163, 184, 0.18);
  color: var(--text);
}
[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

/* prevent iOS font-size zoom */
@media (max-width: 640px) {
  input, select, textarea { font-size: 16px; }
}

fieldset {
  border: 1px solid rgba(100, 116, 139, 0.22);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 0;
}
[data-theme="dark"] fieldset { border-color: rgba(148, 163, 184, 0.15); }

/* ─── Chips ──────────────────────────────────────────────────────────────── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid rgba(100, 116, 139, 0.22);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
}
.chip:hover {
  border-color: rgba(15, 118, 110, 0.4);
  color: var(--brand-strong);
  background: var(--brand-soft);
}
.chip input { width: auto; margin: 0; }
.tg-account-chip { cursor: pointer; font-weight: 500; }
.tg-account-chip.active {
  background: rgba(15, 118, 110, 0.12);
  border-color: var(--brand-strong);
  color: var(--brand-strong);
  font-weight: 700;
}
[data-theme="dark"] .tg-account-chip.active {
  background: rgba(45, 212, 191, 0.15);
  border-color: rgba(45, 212, 191, 0.5);
  color: #2dd4bf;
}
[data-theme="dark"] .chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
}
[data-theme="dark"] .chip:hover {
  background: rgba(45, 212, 191, 0.1);
  border-color: rgba(45, 212, 191, 0.3);
  color: var(--brand-strong);
}

/* ─── Inline Controls ────────────────────────────────────────────────────── */
.inline-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.inline-controls input,
.inline-controls select {
  width: auto;
  margin-top: 0;
  min-width: 100px;
}

/* ─── Tables ─────────────────────────────────────────────────────────────── */
.table-wrap {
  overflow: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
}
[data-theme="dark"] .table-wrap { border-color: rgba(255, 255, 255, 0.07); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead {
  background: rgba(15, 23, 42, 0.03);
  position: sticky;
  top: 0;
}
[data-theme="dark"] thead { background: rgba(255, 255, 255, 0.03); }

th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--panel-border);
  white-space: nowrap;
}
[data-theme="dark"] th { border-bottom-color: rgba(255, 255, 255, 0.07); }

td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(100, 116, 139, 0.1);
  vertical-align: middle;
}
[data-theme="dark"] td { border-bottom-color: rgba(255, 255, 255, 0.05); }

tbody tr:hover { background: rgba(15, 118, 110, 0.04); }
[data-theme="dark"] tbody tr:hover { background: rgba(45, 212, 191, 0.05); }
tbody tr:last-child td { border-bottom: none; }

/* ─── Badges ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #e2e8f0;
  color: #334155;
  text-transform: uppercase;
}
.badge.new { background: #dbeafe; color: #1e40af; }
.badge.approved { background: #dcfce7; color: #166534; }
.badge.declined { background: #ffedd5; color: #9a3412; }
.badge.ignored { background: #f3e8ff; color: #7e22ce; }

[data-theme="dark"] .badge { background: rgba(226, 232, 240, 0.1); color: #94a3b8; }
[data-theme="dark"] .badge.new { background: rgba(219, 234, 254, 0.12); color: #60a5fa; }
[data-theme="dark"] .badge.approved { background: rgba(220, 252, 231, 0.1); color: #4ade80; }
[data-theme="dark"] .badge.declined { background: rgba(255, 237, 213, 0.1); color: #fb923c; }
[data-theme="dark"] .badge.ignored { background: rgba(243, 232, 255, 0.1); color: #c084fc; }

/* ─── Findings Grid ──────────────────────────────────────────────────────── */
.findings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.finding-card {
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.finding-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(15, 118, 110, 0.25);
}
[data-theme="dark"] .finding-card {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .finding-card:hover { border-color: rgba(45, 212, 191, 0.2); }

.finding-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.finding-meta {
  margin: 6px 0 8px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.profile-link {
  color: var(--brand-strong);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  word-break: break-all;
}
.profile-link:hover { text-decoration: underline; }

/* ─── Finding card avatar ────────────────────────────────────────────────── */
.finding-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 6px 0 10px;
}

.avatar-col {
  flex-shrink: 0;
  width: 72px;
}

.avatar-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(100, 116, 139, 0.2);
  background: var(--surface-raised);
  display: none;
  transition: opacity 0.25s;
  opacity: 0;
}
.avatar-thumb.visible {
  display: block;
  opacity: 1;
}
.avatar-thumb.broken { display: none; }

.avatar-no-photo {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 1px dashed rgba(100, 116, 139, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--text-muted);
  background: var(--surface-raised);
  user-select: none;
}

.finding-meta-col {
  flex: 1;
  min-width: 0;
}
.finding-meta-col p { margin: 4px 0; }

/* ─── Audit List ─────────────────────────────────────────────────────────── */
.audit-list { display: grid; gap: 8px; }

.audit-item {
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  transition: background var(--transition);
}
[data-theme="dark"] .audit-item {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.07);
}

/* ─── Event List ─────────────────────────────────────────────────────────── */
.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.event-list li {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(100, 116, 139, 0.16);
  background: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.5;
}
[data-theme="dark"] .event-list li {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.07);
}

/* ─── Hint Text ──────────────────────────────────────────────────────────── */
.hint { color: var(--text-muted); font-size: 13px; line-height: 1.5; margin: 0; }

/* ─── Toast ──────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 400px;
  z-index: 100;
  background: #0f172a;
  color: white;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  line-height: 1.4;
}
.toast.error { background: #7f1d1d; }
.toast.success { background: #14532d; }
.toast.hidden { display: none; }

/* ─── Animations ─────────────────────────────────────────────────────────── */
.reveal { animation: fade-up 360ms ease both; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-grid.two-col { grid-template-columns: 1fr; }
  .findings-grid { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .app-shell { padding: 16px 12px 32px; }
  h1 { font-size: 22px; }
  .panel { padding: 14px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric-value { font-size: 28px; }
  .tabs { gap: 5px; }
  .tab { padding: 8px 12px; font-size: 13px; }
}
