/* ── Token Verdict Theme System ── */
:root {
  --bg: #ffffff;
  --surface: #f4f4f5;
  --surface2: #e4e4e7;
  --border: #d4d4d8;
  --accent: #2a4db3;
  --accent-hover: #1e3d9a;
  --text: #1a1a2e;
  --muted: #71717a;
  --green: #16a34a;
  --red: #dc2626;
  --orange: #ea580c;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
}
[data-theme="dark"] {
  --bg: #0f1729;
  --surface: #182240;
  --surface2: #1e2d52;
  --border: #2a3f6e;
  --accent: #5b78d0;
  --accent-hover: #7b94e4;
  --text: #e8eaf0;
  --muted: #8892b0;
  --green: #22c55e;
  --red: #ef4444;
  --orange: #f97316;
  --shadow: 0 1px 3px rgba(0,0,0,.4);
}

/* ── Apple-style Toggle Switch ── */
.theme-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.theme-switch span {
  transition: color .2s;
}
.theme-switch .active-label {
  color: var(--text);
}
.switch-track {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: background .2s, border-color .2s;
  flex-shrink: 0;
}
.switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform .25s cubic-bezier(.4,.0,.2,1), background .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
[data-theme="dark"] .switch-knob {
  transform: translateX(20px);
}
