/* base.css — tokens (dark + light), reset, elements, chrome, controls, modal,
 * toasts, color picker. Studio-specific layout lives in studio.css, the admin
 * and auth views in admin.css. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --canvas: #0f1419;
  --canvas-2: #0b0f14;
  --surface: #151b22;
  --surface-2: #1b222b;
  --surface-3: #232c36;
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.12);
  --border-3: rgba(255, 255, 255, 0.22);

  --text: #d8dee4;
  --text-strong: #f5f7fa;
  --text-mute: #94a3b8;
  --text-faint: #64748b;

  --accent: #22d3ee;
  --accent-soft: #67e8f9;
  --accent-fill: #22d3ee;
  --accent-fill-hover: #67e8f9;
  --accent-fill-text: #052029;
  --accent-bg: rgba(34, 211, 238, 0.10);
  --accent-bg-2: rgba(34, 211, 238, 0.22);
  --accent-ring: rgba(34, 211, 238, 0.35);

  --ok: #34d399;   --ok-bg: rgba(52, 211, 153, 0.12);   --ok-border: rgba(52, 211, 153, 0.35);
  --warn: #fbbf24; --warn-bg: rgba(251, 191, 36, 0.12); --warn-border: rgba(251, 191, 36, 0.35);
  --err: #fb7185;  --err-bg: rgba(251, 113, 133, 0.12); --err-border: rgba(251, 113, 133, 0.35);

  --stage-dot: rgba(255, 255, 255, 0.07);
  --checker-a: #2a323c;
  --checker-b: #1b222b;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 14px 36px rgba(0, 0, 0, 0.45);
  --shadow-qr: 0 18px 44px rgba(0, 0, 0, 0.45);

  --radius: 14px;
  --radius-sm: 8px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --titlebar-h: 54px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --canvas: #eef1f5;
  --canvas-2: #e5e9ef;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --surface-3: #e8ecf1;
  --border: rgba(15, 20, 25, 0.08);
  --border-2: rgba(15, 20, 25, 0.14);
  --border-3: rgba(15, 20, 25, 0.26);
  --text: #2b3440;
  --text-strong: #0f1419;
  --text-mute: #5b6473;
  --text-faint: #7e8896;
  --accent: #0e7490;
  --accent-soft: #0891b2;
  --accent-bg: rgba(8, 145, 178, 0.10);
  --accent-bg-2: rgba(8, 145, 178, 0.20);
  --accent-ring: rgba(8, 145, 178, 0.30);
  --ok: #059669;   --ok-bg: rgba(5, 150, 105, 0.10);    --ok-border: rgba(5, 150, 105, 0.35);
  --warn: #b45309; --warn-bg: rgba(217, 119, 6, 0.12);  --warn-border: rgba(217, 119, 6, 0.4);
  --err: #e11d48;  --err-bg: rgba(225, 29, 72, 0.08);   --err-border: rgba(225, 29, 72, 0.35);
  --stage-dot: rgba(15, 20, 25, 0.10);
  --checker-a: #d9dee5;
  --checker-b: #f3f5f8;
  --shadow-1: 0 1px 2px rgba(15, 20, 25, 0.06);
  --shadow-2: 0 14px 36px rgba(15, 20, 25, 0.16);
  --shadow-qr: 0 16px 40px rgba(15, 20, 25, 0.18);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --canvas: #eef1f5;
    --canvas-2: #e5e9ef;
    --surface: #ffffff;
    --surface-2: #f3f5f8;
    --surface-3: #e8ecf1;
    --border: rgba(15, 20, 25, 0.08);
    --border-2: rgba(15, 20, 25, 0.14);
    --border-3: rgba(15, 20, 25, 0.26);
    --text: #2b3440;
    --text-strong: #0f1419;
    --text-mute: #5b6473;
    --text-faint: #7e8896;
    --accent: #0e7490;
    --accent-soft: #0891b2;
    --accent-bg: rgba(8, 145, 178, 0.10);
    --accent-bg-2: rgba(8, 145, 178, 0.20);
    --accent-ring: rgba(8, 145, 178, 0.30);
    --ok: #059669;   --ok-bg: rgba(5, 150, 105, 0.10);    --ok-border: rgba(5, 150, 105, 0.35);
    --warn: #b45309; --warn-bg: rgba(217, 119, 6, 0.12);  --warn-border: rgba(217, 119, 6, 0.4);
    --err: #e11d48;  --err-bg: rgba(225, 29, 72, 0.08);   --err-border: rgba(225, 29, 72, 0.35);
    --stage-dot: rgba(15, 20, 25, 0.10);
    --checker-a: #d9dee5;
    --checker-b: #f3f5f8;
    --shadow-1: 0 1px 2px rgba(15, 20, 25, 0.06);
    --shadow-2: 0 14px 36px rgba(15, 20, 25, 0.16);
    --shadow-qr: 0 16px 40px rgba(15, 20, 25, 0.18);
  }
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.has-modal { overflow: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; color: var(--text-strong); letter-spacing: -0.01em; }
svg.icn { flex-shrink: 0; vertical-align: -3px; }
.mono { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hidden, [hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Type helpers ---------- */
.micro-label, .field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
}
.field-label { margin-bottom: 6px; }
.hint { font-size: 12px; color: var(--text-mute); line-height: 1.45; }
.hint.warn { color: var(--warn); }
.hint.err { color: var(--err); }
.row-spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.cluster { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); flex-shrink: 0; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.err { background: var(--err); } .dot.accent { background: var(--accent); }
.dot.pulse { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.9s linear infinite; }

/* ---------- Buttons ---------- */
.btn, button.btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px;
  font: inherit; font-size: 13px; font-weight: 500; line-height: 1;
  color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.06s ease;
}
.btn:hover { background: var(--surface-3); border-color: var(--border-3); color: var(--text-strong); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--accent-fill); color: var(--accent-fill-text); border-color: transparent; font-weight: 600; }
.btn.primary:hover { background: var(--accent-fill-hover); color: var(--accent-fill-text); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-mute); }
.btn.ghost:hover { background: var(--surface-3); color: var(--text-strong); }
.btn.danger { color: var(--err); border-color: var(--err-border); background: transparent; }
.btn.danger:hover { background: var(--err-bg); color: var(--err); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12px; gap: 6px; }
.btn.lg { height: 42px; padding: 0 18px; font-size: 14px; }
.btn.icon { width: 36px; padding: 0; }
.btn.icon.sm { width: 30px; }
.btn.block { width: 100%; }
.btn .kbd { margin-left: 6px; }
.kbd { font-family: var(--font-mono); font-size: 10px; padding: 1px 5px; border: 1px solid var(--border-2); border-radius: 4px; color: var(--text-faint); }

/* ---------- Inputs ---------- */
input, select, textarea {
  font: inherit; color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 0 12px; height: 38px; width: 100%;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
textarea { height: auto; min-height: 76px; padding: 9px 12px; resize: vertical; line-height: 1.45; }
select { padding-right: 32px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
input.invalid { border-color: var(--err); }
input.mono, textarea.mono { font-family: var(--font-mono); font-size: 13px; }
::placeholder { color: var(--text-faint); opacity: 1; }
input[type="checkbox"] { width: 16px; height: 16px; padding: 0; accent-color: var(--accent); }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="file"] { display: none; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.field-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .field-grid { grid-template-columns: 1fr; } }
.input-shell { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--radius-sm); padding: 0 12px; height: 42px; }
.input-shell:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.input-shell input { flex: 1; min-width: 0; border: none; background: transparent; height: 100%; padding: 0; box-shadow: none !important; }
.input-shell .prefix { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); white-space: nowrap; }
.input-shell svg.icn { color: var(--text-faint); }
.checkbox-row { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); cursor: pointer; height: 38px; }
.checkbox-row input { width: 16px; }

/* Range */
input[type="range"] { -webkit-appearance: none; appearance: none; height: 22px; padding: 0; background: transparent; border: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--surface-3); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--surface-3); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--accent-fill); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border-3); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--accent-fill); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border-3); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--accent-ring); }
.slider { display: flex; flex-direction: column; gap: 2px; }
.slider .slider-val { font-size: 12px; color: var(--text); }

/* Switch */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; padding: 4px 0; }
.switch-text { display: flex; flex-direction: column; gap: 1px; }
.switch-label { font-size: 13px; color: var(--text); }
.switch { position: relative; width: 38px; height: 22px; border-radius: 11px; background: var(--surface-3); border: 1px solid var(--border-2); padding: 0; cursor: pointer; flex-shrink: 0; transition: background 0.15s ease; }
.switch-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-mute); transition: transform 0.15s ease, background 0.15s ease; }
.switch[aria-checked="true"] { background: var(--accent-fill); border-color: transparent; }
.switch[aria-checked="true"] .switch-knob { transform: translateX(16px); background: var(--accent-fill-text); }

/* Tiles (radiogroup) */
.tiles { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 6px; }
.tile {
  -webkit-appearance: none; appearance: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 52px; padding: 8px 6px;
  font: inherit; color: var(--text-mute);
  background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 10px;
  cursor: pointer; transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.tile:hover { background: var(--surface-3); color: var(--text-strong); }
.tile[aria-checked="true"] { border-color: var(--accent); background: var(--accent-bg); color: var(--text-strong); box-shadow: inset 0 0 0 1px var(--accent); }
.tile-art { display: flex; align-items: center; justify-content: center; color: currentColor; }
.tile-art svg { display: block; }
.tile-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.1; text-align: center; }
.tiles-lg .tile { min-height: 64px; }
.tiles-sm .tile { min-height: 36px; padding: 6px; border-radius: 8px; }

/* Segmented */
.tiles.segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 10px; }
.tiles.segmented .tile { flex: 1 1 auto; flex-direction: row; min-height: 30px; padding: 0 12px; background: transparent; border-color: transparent; border-radius: 7px; box-shadow: none; }
.tiles.segmented .tile[aria-checked="true"] { background: var(--surface); color: var(--text-strong); box-shadow: var(--shadow-1); border-color: var(--border-2); }
.tiles.segmented .tile-label { font-size: 11px; letter-spacing: 0.05em; }
.tiles.segmented-sm .tile { min-height: 26px; padding: 0 9px; }

.select-row { display: flex; flex-direction: column; gap: 6px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.card-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-body { padding: 18px; }
.card-title { font-size: 15px; font-weight: 600; color: var(--text-strong); }

/* ---------- Chrome ---------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.titlebar {
  position: sticky; top: 0; z-index: 40;
  height: var(--titlebar-h);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .titlebar { background: var(--surface); } }
.titlebar-inner { max-width: 1320px; margin: 0 auto; padding: 0 20px; height: 100%; display: flex; align-items: center; gap: 16px; }
.lights { display: flex; gap: 6px; }
.lights span { width: 9px; height: 9px; border-radius: 50%; }
.lights span:nth-child(1) { background: #fb7185; } .lights span:nth-child(2) { background: #fbbf24; } .lights span:nth-child(3) { background: #34d399; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--text-mute); white-space: nowrap; }
.brand b { color: var(--text-strong); font-weight: 600; }
.brand .sep { color: var(--text-faint); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav-link {
  -webkit-appearance: none; appearance: none; font: inherit;
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  font-size: 13px; font-weight: 500; color: var(--text-mute); background: transparent; border: none; border-radius: 8px; cursor: pointer;
}
.nav-link:hover { color: var(--text-strong); background: var(--surface-3); }
.nav-link[aria-current="page"] { color: var(--accent); background: var(--accent-bg); }
.titlebar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.user-chip { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); max-width: 220px; }
.user-chip .email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .titlebar-inner { padding: 0 12px; gap: 8px; }
  .brand .sep, .brand .brand-sub { display: none; }
  .user-chip { display: none; }
  .nav { margin-left: 0; }
  .nav-link { padding: 0 8px; font-size: 12px; }
  .nav-link .icn { display: none; }
  .titlebar-right .btn.sm .label { display: none; }
  .titlebar-right .btn.sm { width: 36px; padding: 0; }
}
@media (max-width: 400px) { .lights { display: none; } }
body { overflow-x: hidden; }

.view-root { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* ---------- Toasts ---------- */
.toast-stack { position: fixed; bottom: 20px; right: 20px; z-index: 90; display: flex; flex-direction: column; gap: 8px; pointer-events: none; max-width: min(360px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13px; color: var(--text-strong); background: var(--surface); border: 1px solid var(--border-2); border-left: 3px solid var(--ok); border-radius: 10px; box-shadow: var(--shadow-2); pointer-events: auto; animation: toast-in 0.2s ease; }
.toast.err { border-left-color: var(--err); }
.toast.warn { border-left-color: var(--warn); }
.toast.info { border-left-color: var(--accent); }
.toast.fade-out { opacity: 0; transition: opacity 0.35s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .toast-stack { right: 12px; left: 12px; bottom: 84px; max-width: none; } }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(5, 8, 12, 0.62); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade-in 0.15s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border: 1px solid var(--border-2); border-radius: 16px; box-shadow: var(--shadow-2); outline: none; animation: toast-in 0.18s ease; }
.modal.modal-sm { max-width: 400px; }
.modal.modal-lg { max-width: 720px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; }
.modal-head h2 { font-size: 16px; }
.modal-body { padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.modal-text { font-size: 14px; color: var(--text); line-height: 1.55; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 18px 18px; }
@media (max-width: 640px) { .modal-overlay { align-items: flex-end; padding: 0; } .modal { border-radius: 16px 16px 0 0; max-height: 92vh; } }

/* ---------- Color picker ---------- */
.cp-trigger { -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 10px; min-width: 128px; font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--radius-sm); cursor: pointer; }
.cp-trigger:hover { border-color: var(--border-3); }
.cp-trigger[aria-expanded="true"] { border-color: var(--accent); }
.cp-chip { width: 20px; height: 20px; border-radius: 5px; border: 1px solid var(--border-3); flex-shrink: 0; }
.cp-chip.auto { background: linear-gradient(135deg, transparent 45%, var(--text-faint) 45%, var(--text-faint) 55%, transparent 55%) !important; }
.cp-hex { font-size: 12px; color: var(--text); }
.cp-popover { position: absolute; z-index: 85; width: 252px; padding: 12px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; box-shadow: var(--shadow-2); }
.cp-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.cp-native { width: 40px; height: 36px; padding: 2px; border: 1px solid var(--border-2); border-radius: 7px; background: var(--surface-2); cursor: pointer; }
.cp-native::-webkit-color-swatch-wrapper { padding: 0; }
.cp-native::-webkit-color-swatch { border: none; border-radius: 4px; }
.cp-input { flex: 1; height: 36px; }
.cp-auto { -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; gap: 6px; width: 100%; height: 30px; margin-bottom: 10px; padding: 0 10px; font: inherit; font-size: 12px; color: var(--text-mute); background: transparent; border: 1px dashed var(--border-3); border-radius: 7px; cursor: pointer; }
.cp-auto:hover { color: var(--text-strong); border-color: var(--accent); }
.cp-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin: 10px 0 6px; }
.cp-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.cp-swatch { aspect-ratio: 1; width: 100%; padding: 0; border: 1px solid var(--border-3); border-radius: 6px; cursor: pointer; transition: transform 0.08s ease; }
.cp-swatch:hover { transform: scale(1.1); }
.cp-swatch.selected { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--text-mute); font-size: 13px; }
.empty .big { font-size: 22px; color: var(--text-strong); margin-bottom: 6px; font-weight: 600; }

/* ---------- Status pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; font-family: var(--font-mono); font-size: 11px; border-radius: 999px; background: var(--surface-3); color: var(--text-mute); border: 1px solid var(--border-2); white-space: nowrap; }
.pill.ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-border); }
.pill.warn { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-border); }
.pill.err { color: var(--err); background: var(--err-bg); border-color: var(--err-border); }
.pill.accent { color: var(--accent); background: var(--accent-bg); border-color: var(--accent-bg-2); }
