/* Shared design tokens for every page. Dark is the default; theme.js sets data-theme="light" | "dark" on <html>
   (saved choice, otherwise the device setting) before the page paints. */
:root{
  color-scheme:dark;
  --ink:#0B0D10; --panel:#14171C; --panel-2:#1B1F26; --line:#272C34; --line-strong:#3a4150;
  --text:#E7EAEE; --text-soft:#C7CDD6; --text-strong:#FFFFFF; --muted:#8A93A1;
  --accent:#34C759; --accent-dim:#2E7D64; --on-accent:#08120D;
  --warn:#E0A93E; --info:#5FA8E0;
  --danger:#E0654F; --danger-hover:#EB7E69; --on-danger:#2B0D08; --danger-text:#F2A493;
  --accent-tint:rgba(79,209,165,0.12); --warn-tint:rgba(224,169,62,0.14); --info-tint:rgba(95,168,224,0.14);
  --danger-tint:rgba(224,101,79,0.12); --muted-tint:rgba(138,147,161,0.16);
  --accent-border:rgba(79,209,165,0.4); --danger-border:rgba(224,101,79,0.4);
  --btn-bg:#F1F3F5; --btn-text:#08120D; --btn-bg-hover:#DEE0E1;
  --popup-bg:#0B0D10; --tooltip-bg:rgba(20,23,28,0.97);
  --hover-bg:#20242c; --hover-bg-2:#262b34; --row-hover:rgba(255,255,255,0.02); --scroll-thumb-hover:#3a4150;
  --shadow-md:rgba(0,0,0,0.45); --shadow-lg:rgba(0,0,0,0.5); --shadow-xl:rgba(0,0,0,0.55);
  --overlay:rgba(6,8,11,0.55); --glass-bg:rgba(27,31,38,0.62); --glass-border:rgba(255,255,255,0.14); --glass-hi:rgba(255,255,255,0.06);
  --glass-input:rgba(255,255,255,0.06); --glass-input-border:rgba(255,255,255,0.16); --glass-input-focus:rgba(255,255,255,0.09);
  --switch-off:#3a3f48;
  --control-h:38px; /* one height for buttons, dropdowns and text fields */
  --mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
:root[data-theme="light"]{
  color-scheme:light;
  --ink:#F2F4F7; --panel:#FFFFFF; --panel-2:#F4F6F9; --line:#E1E5EB; --line-strong:#C5CBD5;
  --text:#14181F; --text-soft:#3B4452; --text-strong:#000000; --muted:#5F6B7B;
  --accent:#1C8F3E; --accent-dim:#2E7D64; --on-accent:#FFFFFF;
  --warn:#9A6700; --info:#1D63B8;
  --danger:#C9372C; --danger-hover:#B02D23; --on-danger:#FFFFFF; --danger-text:#A32A20;
  --accent-tint:rgba(28,143,62,0.12); --warn-tint:rgba(154,103,0,0.14); --info-tint:rgba(29,99,184,0.12);
  --danger-tint:rgba(201,55,44,0.10); --muted-tint:rgba(95,107,123,0.14);
  --accent-border:rgba(28,143,62,0.4); --danger-border:rgba(201,55,44,0.4);
  --btn-bg:#14181F; --btn-text:#FFFFFF; --btn-bg-hover:#2C323C;
  --popup-bg:#FFFFFF; --tooltip-bg:rgba(255,255,255,0.98);
  --hover-bg:#EEF1F5; --hover-bg-2:#E9EDF2; --row-hover:rgba(0,0,0,0.025); --scroll-thumb-hover:#B5BCC8;
  --shadow-md:rgba(30,40,60,0.12); --shadow-lg:rgba(30,40,60,0.16); --shadow-xl:rgba(30,40,60,0.2);
  --overlay:rgba(20,26,36,0.35); --glass-bg:rgba(255,255,255,0.82); --glass-border:rgba(0,0,0,0.08); --glass-hi:rgba(255,255,255,0.7);
  --glass-input:rgba(0,0,0,0.04); --glass-input-border:rgba(0,0,0,0.14); --glass-input-focus:rgba(0,0,0,0.06);
  --switch-off:#D5D9E0;
}
