/* LoadForg — design tokens + base */
:root {
  /* Defaults (overridden by TWEAK_DEFAULTS via JS) */
  --accent-h: 192;
  --accent-c: 0.16;
  --accent-l: 0.72;

  --accent: oklch(var(--accent-l) var(--accent-c) var(--accent-h));
  --accent-dim: oklch(calc(var(--accent-l) - 0.08) calc(var(--accent-c) - 0.02) var(--accent-h));
  --accent-soft: oklch(var(--accent-l) var(--accent-c) var(--accent-h) / 0.12);
  --accent-softer: oklch(var(--accent-l) var(--accent-c) var(--accent-h) / 0.06);

  /* Signal palette */
  --ok:   oklch(0.78 0.16 150);
  --ok-soft: oklch(0.78 0.16 150 / 0.12);
  --warn: oklch(0.82 0.15 78);
  --warn-soft: oklch(0.82 0.15 78 / 0.12);
  --err:  oklch(0.70 0.19 22);
  --err-soft: oklch(0.70 0.19 22 / 0.12);
  --info: oklch(0.78 0.14 255);

  /* Density */
  --row-h: 44px;
  --gap: 20px;
  --pad: 20px;

  --ff-sans: 'Inter Tight', -apple-system, sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ff-serif: 'Instrument Serif', Georgia, serif;
}

/* Dark theme (default) */
html[data-theme="dark"] {
  --bg-0: oklch(0.16 0.01 255);      /* app bg */
  --bg-1: oklch(0.19 0.012 255);     /* panel */
  --bg-2: oklch(0.22 0.014 255);     /* elevated */
  --bg-3: oklch(0.26 0.015 255);     /* hover */
  --line: oklch(0.30 0.012 255 / 0.6);
  --line-soft: oklch(0.30 0.012 255 / 0.3);
  --fg-0: oklch(0.97 0.005 255);     /* primary text */
  --fg-1: oklch(0.78 0.01 255);      /* secondary */
  --fg-2: oklch(0.58 0.01 255);      /* tertiary */
  --fg-3: oklch(0.42 0.01 255);      /* quaternary */
  --shadow: 0 1px 0 oklch(1 0 0 / 0.04) inset, 0 10px 30px -10px oklch(0 0 0 / 0.6);
}

html[data-theme="light"] {
  --bg-0: oklch(0.985 0.003 255);
  --bg-1: oklch(1 0 0);
  --bg-2: oklch(0.97 0.004 255);
  --bg-3: oklch(0.94 0.006 255);
  --line: oklch(0.88 0.004 255);
  --line-soft: oklch(0.92 0.004 255);
  --fg-0: oklch(0.18 0.008 255);
  --fg-1: oklch(0.38 0.01 255);
  --fg-2: oklch(0.55 0.01 255);
  --fg-3: oklch(0.72 0.008 255);
  --shadow: 0 1px 0 oklch(1 0 0) inset, 0 8px 24px -12px oklch(0 0 0 / 0.08);
}

html[data-density="compact"] {
  --row-h: 36px;
  --gap: 14px;
  --pad: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff-sans);
  background: var(--bg-0);
  color: var(--fg-0);
  font-size: 14px;
  line-height: 1.45;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

button { font-family: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Scrollbar */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; border: 2px solid var(--bg-0); }
*::-webkit-scrollbar-thumb:hover { background: var(--fg-3); }

/* Utilities */
.mono { font-family: var(--ff-mono); font-feature-settings: 'ss01','zero'; }
.serif { font-family: var(--ff-serif); font-style: italic; }
.tabular { font-variant-numeric: tabular-nums; }

/* App shell */
.app {
  display: grid;
  grid-template-columns: 232px 1fr;
  grid-template-rows: 56px 1fr;
  grid-template-areas:
    "side top"
    "side main";
  height: 100vh;
  min-height: 700px;
}
html[data-density="compact"] .app { grid-template-columns: 212px 1fr; }

.side {
  grid-area: side;
  background: var(--bg-1);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.top {
  grid-area: top;
  background: var(--bg-0);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
}
.main {
  grid-area: main;
  overflow: auto;
  background: var(--bg-0);
}

/* Sidebar */
.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 20px 22px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.brand .wordmark { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand .tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--fg-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  margin-left: auto;
}
.nav-section {
  padding: 14px 12px 6px;
  font-family: var(--ff-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-3);
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  margin: 1px 8px;
  border-radius: 6px;
  color: var(--fg-1);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--bg-2); color: var(--fg-0); }
.nav-item.active { background: var(--bg-2); color: var(--fg-0); }
.nav-item.active::before {
  content: ''; position: absolute; left: -8px; top: 8px; bottom: 8px;
  width: 2px; background: var(--accent); border-radius: 2px;
}
.nav-item .ico { width: 16px; height: 16px; color: var(--fg-2); }
.nav-item.active .ico { color: var(--accent); }
.nav-item .count {
  margin-left: auto;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--fg-2);
  background: var(--bg-2);
  padding: 1px 6px;
  border-radius: 10px;
}
.nav-item.active .count { background: var(--accent-soft); color: var(--accent); }

.side-foot {
  margin-top: auto;
  padding: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), oklch(0.6 0.18 320));
  display: grid; place-items: center;
  color: var(--bg-0); font-weight: 700; font-size: 11px;
  flex-shrink: 0;
}
.side-foot .who { font-size: 12px; line-height: 1.2; min-width: 0; }
.side-foot .who .name { font-weight: 600; color: var(--fg-0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .who .org { color: var(--fg-2); font-size: 11px; }
.side-foot .settings { margin-left: auto; color: var(--fg-2); width: 16px; height: 16px; }
.side-foot .settings:hover { color: var(--fg-0); }

/* Topbar */
.crumbs { display: flex; align-items: center; gap: 10px; color: var(--fg-2); font-size: 13px; }
.crumbs .sep { color: var(--fg-3); }
.crumbs .curr { color: var(--fg-0); font-weight: 500; }

.top .spacer { flex: 1; }

.env-switch {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  color: var(--fg-1);
  cursor: pointer;
  background: var(--bg-1);
}
.env-switch:hover { background: var(--bg-2); color: var(--fg-0); }
.env-switch .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-soft);
}

.top .icon-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 6px;
  color: var(--fg-1);
  position: relative;
}
.top .icon-btn:hover { background: var(--bg-2); color: var(--fg-0); }
.top .icon-btn .badge {
  position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--err);
}
.top .search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  height: 32px;
  width: 300px;
  color: var(--fg-2);
  font-size: 12px;
}
.top .search input {
  background: none; border: 0; outline: 0;
  flex: 1;
  font-size: 12px;
}
.top .search .kbd {
  font-family: var(--ff-mono); font-size: 10px;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--fg-3);
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--bg-1);
  color: var(--fg-0);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--bg-2); }
.btn.primary {
  background: var(--accent);
  color: oklch(0.15 0.01 255);
  border-color: var(--accent);
  font-weight: 600;
}
.btn.primary:hover { background: var(--accent-dim); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--fg-1); }
.btn.ghost:hover { background: var(--bg-2); color: var(--fg-0); }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.btn.danger-ghost { color: var(--err); }
.btn.danger-ghost:hover { background: var(--err-soft); }

/* Page */
.page { padding: 28px 32px 60px; max-width: 1400px; }
html[data-density="compact"] .page { padding: 20px 24px 40px; }

.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.page-head h1 {
  font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
  margin: 0; line-height: 1.1;
}
.page-head h1 .accent-num {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.page-head .sub {
  color: var(--fg-2); font-size: 13px; margin-top: 4px;
}
.page-head .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* Cards / panels */
.panel {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.panel-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 12px;
}
.panel-head h3 {
  margin: 0; font-size: 13px; font-weight: 600;
  letter-spacing: -0.005em;
}
.panel-head .meta {
  margin-left: auto; font-size: 11px; color: var(--fg-2);
  font-family: var(--ff-mono);
}
.panel-body { padding: 18px; }

/* KPI */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-bottom: var(--gap);
}
.kpi {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.kpi .label {
  font-family: var(--ff-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-2);
  display: flex; align-items: center; gap: 8px;
}
.kpi .val {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-top: 10px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kpi .val .unit { font-size: 14px; color: var(--fg-2); font-weight: 500; margin-left: 4px; }
.kpi .delta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-family: var(--ff-mono);
  margin-top: 10px;
  color: var(--fg-2);
}
.kpi .delta .pill {
  padding: 2px 6px; border-radius: 3px;
  background: var(--ok-soft); color: var(--ok);
}
.kpi .delta .pill.down { background: var(--err-soft); color: var(--err); }
.kpi .delta .pill.flat { background: var(--bg-2); color: var(--fg-2); }
.kpi .spark { position: absolute; right: 14px; bottom: 14px; opacity: 0.9; }

/* Dash grid */
.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap);
  margin-bottom: var(--gap);
}
.dash-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gap);
}

/* Chart svg bits */
.chart-grid-line { stroke: var(--line-soft); }
.chart-axis-text {
  font-family: var(--ff-mono);
  font-size: 10px;
  fill: var(--fg-3);
}
.chart-legend {
  display: flex; gap: 16px; align-items: center;
  font-size: 11px; color: var(--fg-2);
}
.chart-legend .swatch { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

/* Tag / chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-family: var(--ff-mono);
  border-radius: 4px;
  background: var(--bg-2);
  color: var(--fg-1);
  border: 1px solid var(--line-soft);
}
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.err { background: var(--err-soft); color: var(--err); border-color: transparent; }
.chip.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

.dot-sm { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }

/* Segmented */
.seg {
  display: inline-flex;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}
.seg button {
  padding: 4px 10px;
  font-size: 12px;
  color: var(--fg-2);
  border-radius: 4px;
  font-weight: 500;
}
.seg button.active { background: var(--bg-3); color: var(--fg-0); }
.seg button:hover:not(.active) { color: var(--fg-0); }

/* Table */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left;
  font-family: var(--ff-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  font-weight: 500;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.tbl td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--fg-1);
}
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: var(--bg-2); }
.tbl td.num { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; color: var(--fg-0); }
.tbl td .name { color: var(--fg-0); font-weight: 500; }
.tbl .status { display: inline-flex; align-items: center; gap: 6px; }

/* Heatmap */
.heatmap {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 2px;
}
.heatmap .cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--bg-2);
}

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 11px;
  font-family: var(--ff-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-2);
}
.field .hint { font-size: 11px; color: var(--fg-3); }
.input, .select, .textarea {
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--fg-0);
  outline: 0;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input.mono { font-family: var(--ff-mono); font-size: 12px; }

.slider-wrap { display: flex; align-items: center; gap: 12px; }
.slider-wrap input[type=range] { flex: 1; accent-color: var(--accent); }
.slider-wrap .val { font-family: var(--ff-mono); font-size: 13px; color: var(--fg-0); width: 64px; text-align: right; }

/* Tweaks panel */
.tweaks {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 280px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 100;
  font-size: 13px;
  overflow: hidden;
}
.tweaks .head {
  padding: 12px 14px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.tweaks .head h4 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-1); }
.tweaks .head .close { margin-left: auto; color: var(--fg-2); }
.tweaks .row {
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.tweaks .row:last-child { border-bottom: 0; }
.tweaks .row .label { font-size: 12px; color: var(--fg-1); flex: 1; }
.swatches { display: flex; gap: 6px; }
.swatches .s {
  width: 20px; height: 20px; border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .1s;
}
.swatches .s.on { border-color: var(--fg-0); transform: scale(1.08); }

/* Scenario builder */
.scenario-step {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 28px 90px 1fr 80px 30px;
  gap: 12px;
  align-items: center;
}
.scenario-step + .scenario-step { margin-top: 8px; }
.scenario-step .num {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  background: var(--bg-2);
  border-radius: 4px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--fg-2);
}
.scenario-step .method {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 3px;
  text-align: center;
}
.scenario-step .method.GET { background: var(--ok-soft); color: var(--ok); }
.scenario-step .method.POST { background: var(--accent-soft); color: var(--accent); }
.scenario-step .method.PUT { background: var(--warn-soft); color: var(--warn); }
.scenario-step .method.DELETE { background: var(--err-soft); color: var(--err); }
.scenario-step .path { font-family: var(--ff-mono); font-size: 12px; color: var(--fg-0); }
.scenario-step .weight { font-family: var(--ff-mono); font-size: 11px; color: var(--fg-2); text-align: right; }
.scenario-step .drag { color: var(--fg-3); cursor: grab; }

/* Live animation for running state */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 var(--accent-soft); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse-ring 1.4s infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* Progress */
.progress {
  height: 6px; background: var(--bg-2); border-radius: 3px; overflow: hidden;
  position: relative;
}
.progress .fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width .3s;
}

/* Log */
.log {
  font-family: var(--ff-mono);
  font-size: 11px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  height: 200px;
  overflow: auto;
  line-height: 1.6;
}
.log .line { display: grid; grid-template-columns: 68px 50px 1fr; gap: 8px; }
.log .time { color: var(--fg-3); }
.log .lvl.info { color: var(--info); }
.log .lvl.ok   { color: var(--ok); }
.log .lvl.warn { color: var(--warn); }
.log .lvl.err  { color: var(--err); }
.log .msg { color: var(--fg-1); }

/* Brand page */
.brand-hero {
  padding: 60px 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(800px 400px at 80% 0%, var(--accent-soft), transparent 60%),
    var(--bg-1);
}
.brand-hero .kicker {
  font-family: var(--ff-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}
.brand-hero h1 {
  font-family: var(--ff-sans);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 12px 0 0;
  line-height: 0.98;
  max-width: 900px;
}
.brand-hero h1 em {
  font-family: var(--ff-serif);
  font-weight: 400;
  color: var(--accent);
}
.brand-hero p {
  color: var(--fg-1); font-size: 16px; margin-top: 20px; max-width: 560px;
}

.logo-cell {
  aspect-ratio: 1.4 / 1;
  display: grid; place-items: center;
  border-radius: 8px;
  position: relative;
}
.logo-cell .tag {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--ff-mono); font-size: 10px; color: var(--fg-3);
}

.swatch-card {
  border-radius: 8px;
  padding: 14px;
  height: 120px;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--line-soft);
}
.swatch-card .name { font-weight: 600; font-size: 13px; }
.swatch-card .code { font-family: var(--ff-mono); font-size: 11px; opacity: 0.7; }

/* Misc */
.divider { height: 1px; background: var(--line-soft); margin: 18px 0; }

.cap {
  font-family: var(--ff-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
}

.percentile-bar {
  display: grid;
  grid-template-columns: 60px 1fr 70px;
  gap: 14px; align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
}
.percentile-bar:last-child { border-bottom: 0; }
.percentile-bar .lbl { font-family: var(--ff-mono); font-size: 11px; color: var(--fg-2); }
.percentile-bar .track { height: 6px; background: var(--bg-2); border-radius: 3px; overflow: hidden; }
.percentile-bar .fill { height: 100%; background: var(--accent); border-radius: 3px; }
.percentile-bar .val { text-align: right; font-family: var(--ff-mono); font-size: 12px; color: var(--fg-0); }

.status-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.status-row:last-child { border-bottom: 0; }
.status-row .name { font-size: 13px; color: var(--fg-0); flex: 1; }
.status-row .meta { font-size: 11px; color: var(--fg-2); font-family: var(--ff-mono); }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--fg-2);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.tabs button:hover { color: var(--fg-0); }
.tabs button.active { color: var(--fg-0); border-bottom-color: var(--accent); }

/* Error breakdown bar */
.error-bar {
  display: flex; height: 12px; border-radius: 3px; overflow: hidden;
  background: var(--bg-2);
}
.error-bar div { height: 100%; }

.glass {
  background: oklch(0.19 0.012 255 / 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
