/* ── Reset & Base ───────────────────────────────────────────────── */
*{box-sizing:border-box;margin:0;padding:0}
/* ── eLens design tokens — light (default/system) + dark ───────────
   Semantic names, not a numbered ramp: swapping [data-theme] swaps
   every surface/text/border/status color in one place. ────────── */
:root, html[data-theme="light"]{
  --bg:#f5f6f8;--surface:#ffffff;--surface-2:#f1f3f5;
  --border:#e2e6ea;--border-strong:#c3cad1;
  --text:#1a1f29;--text-muted:#5a6472;--text-faint:#8a93a1;
  --sidebar-bg:#ffffff;--sidebar-text:#1a1f29;--sidebar-text-muted:#5a6472;
  --sidebar-active-bg:#eaf1fd;--sidebar-border:#e2e6ea;
  --primary:#1a73e8;--primary-hover:#1558b0;--primary-foreground:#ffffff;--primary-bg:#e8f0fe;
  --success:#1e8e3e;--success-bg:#e6f4ea;--success-text:#1e8e3e;--success-foreground:#ffffff;
  --warning:#e8a317;--warning-bg:#fef3e2;--warning-text:#92610a;
  --danger:#d93025;--danger-bg:#fce8e6;--danger-text:#c5221f;--danger-foreground:#ffffff;
  --info:#1a73e8;--info-bg:#e8f0fe;--info-text:#1558b0;
  --purple:#7c4dff;--purple-bg:#f1ebff;--purple-text:#6938d6;
  --overlay:rgba(15,23,42,.45);
  --table-stripe:#f8f9fa;--track-bg:#e2e6ea;
  --focus-ring:#1a73e8;
  --shadow-sm:0 1px 2px rgba(16,24,40,.06);--shadow-md:0 4px 16px rgba(16,24,40,.12);
  --radius-sm:8px;--radius-md:12px;--radius-lg:16px;
  --sidebar-w:220px;--topbar-h:58px;
  --font-sans:'Inter',system-ui,sans-serif;--font-mono:'JetBrains Mono','Consolas',monospace;
}
html[data-theme="dark"]{
  --bg:#0b0d10;--surface:#15181c;--surface-2:#1b1f24;
  --border:#232830;--border-strong:#343b42;
  --text:#eef1f4;--text-muted:#9aa3ab;--text-faint:#6b7580;
  --sidebar-bg:#0a0c0e;--sidebar-text:#eef1f4;--sidebar-text-muted:#8b939b;
  --sidebar-active-bg:rgba(26,115,232,.18);--sidebar-border:rgba(255,255,255,.08);
  --primary:#4c9aff;--primary-hover:#1a73e8;--primary-foreground:#071225;--primary-bg:rgba(76,154,255,.15);
  --success:#3ddc84;--success-bg:rgba(34,197,94,.15);--success-text:#6ee7a0;--success-foreground:#08240f;
  --warning:#F5B642;--warning-bg:rgba(245,182,66,.15);--warning-text:#f5c97a;
  --danger:#f87171;--danger-bg:rgba(248,113,113,.15);--danger-text:#fca5a5;--danger-foreground:#3d0505;
  --info:#7fdcdc;--info-bg:rgba(45,180,180,.15);--info-text:#7fdcdc;
  --purple:#c4b5fd;--purple-bg:rgba(196,181,253,.18);--purple-text:#d8ccff;
  --overlay:rgba(0,0,0,.6);
  --table-stripe:rgba(255,255,255,.03);--track-bg:rgba(255,255,255,.08);
  --focus-ring:#4c9aff;
  --shadow-sm:0 1px 2px rgba(0,0,0,.4);--shadow-md:0 8px 30px rgba(0,0,0,.55);
  --radius-sm:8px;--radius-md:12px;--radius-lg:16px;
  --sidebar-w:220px;--topbar-h:58px;
  --font-sans:'Inter',system-ui,sans-serif;--font-mono:'JetBrains Mono','Consolas',monospace;
}
body{font-family:var(--font-sans);background:var(--bg);color:var(--text);height:100vh;display:flex;flex-direction:column;overflow:hidden}
a{color:inherit;text-decoration:none}
button{cursor:pointer;border:none;background:none;font-family:inherit}
select,input,textarea{font-family:inherit}
.btn:focus-visible,.form-input:focus-visible,.form-select:focus-visible,.form-textarea:focus-visible,.sb-item:focus-visible,a:focus-visible,button:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
/* Avoid flashing the login/landing screens while the auth check is in flight */
html.booting body{visibility:hidden}
