/* Kasiva Enterprise Design Tokens
 * Purpose: one source of truth for palette, spacing, radii, elevation and responsive UI.
 */
:root{
  --bg:#f7f9fb;
  --s1:#ffffff;
  --s2:#f0f4f7;
  --s3:#e8eef3;
  --line:#dbe3ea;
  --text:#17212b;
  --muted:#64748b;
  --primary:#1479e8;
  --primary-strong:#0b5fc0;
  --accent:#1479e8;
  --accent2:#2563eb;
  --pos:#2e7d32;
  --neg:#c62828;
  --warn:#b8860b;
  --info:#2563eb;
  --focus:#93c5fd;
  --shadow-sm:0 1px 2px rgba(15,23,42,.06);
  --shadow:0 12px 30px rgba(15,23,42,.08);
  --shadow-lg:0 20px 55px rgba(15,23,42,.12);
  --r:16px;
  --r-sm:11px;
  --r-lg:22px;
  --safe-b:env(safe-area-inset-bottom,0px);
  --safe-t:env(safe-area-inset-top,0px);
  --content:1320px;
  color-scheme:light;
}
:root[data-theme=dark]{
  --bg:#0f172a;
  --s1:#1e293b;
  --s2:#172235;
  --s3:#253449;
  --line:#334155;
  --text:#e8eef5;
  --muted:#94a3b8;
  --primary:#4f87aa;
  --primary-strong:#76a9c7;
  --accent:#4f87aa;
  --accent2:#60a5fa;
  --shadow-sm:0 1px 2px rgba(0,0,0,.25);
  --shadow:0 14px 34px rgba(0,0,0,.25);
  --shadow-lg:0 22px 60px rgba(0,0,0,.32);
  color-scheme:dark;
}

/* Light theme presets: white-first, friendly fintech palettes. */
:root[data-theme="dana"]{--bg:#f7faff;--s1:#fff;--s2:#f2f7fd;--s3:#e8f1fb;--line:#dce7f4;--text:#172b4d;--muted:#6b7a90;--primary:#1479e8;--primary-strong:#0b5fc0;--accent:#1479e8;--accent2:#38a3ff;--pos:#16a36a;--neg:#e5484d;--warn:#b7791f;--info:#1479e8;color-scheme:light}
:root[data-theme="mint"]{--bg:#f5fbf9;--s1:#fff;--s2:#edf8f5;--s3:#e1f2ed;--line:#d7e9e3;--text:#183b35;--muted:#66817b;--primary:#0f9d7a;--primary-strong:#08785e;--accent:#0f9d7a;--accent2:#28c79c;--pos:#159c68;--neg:#df4f57;--warn:#a66a12;--info:#287fe7;color-scheme:light}
:root[data-theme="lavender"]{--bg:#f9f8ff;--s1:#fff;--s2:#f3f1fc;--s3:#eae6f7;--line:#e1dcef;--text:#292447;--muted:#746e8d;--primary:#6657d9;--primary-strong:#5144b9;--accent:#6657d9;--accent2:#8b7ff2;--pos:#16855c;--neg:#d94b58;--warn:#a86c16;--info:#4f7fe8;color-scheme:light}
:root[data-theme="sunrise"]{--bg:#fffaf5;--s1:#fff;--s2:#fff4e9;--s3:#ffead7;--line:#f0dfcf;--text:#3b2b22;--muted:#826e62;--primary:#f07b35;--primary-strong:#d95e1d;--accent:#f07b35;--accent2:#ffab45;--pos:#18845b;--neg:#d94a4f;--warn:#a76513;--info:#3e7ed8;color-scheme:light}
:root[data-theme="ocean"]{--bg:#f3faff;--s1:#fff;--s2:#eaf7fd;--s3:#def0f9;--line:#d5e8f2;--text:#14354a;--muted:#668193;--primary:#087ea4;--primary-strong:#05627f;--accent:#087ea4;--accent2:#28b5d6;--pos:#16865e;--neg:#d64b52;--warn:#a66b17;--info:#2877df;color-scheme:light}
:root[data-theme="midnight"]{--bg:#101827;--s1:#182337;--s2:#202d42;--s3:#293951;--line:#33445d;--text:#edf4ff;--muted:#9aabc0;--primary:#5aa8ff;--primary-strong:#86c0ff;--accent:#5aa8ff;--accent2:#7dd3fc;--pos:#4ade80;--neg:#fb7185;--warn:#fbbf24;--info:#60a5fa;color-scheme:dark}

@media(prefers-color-scheme:dark){
  :root[data-theme=auto]{
    --bg:#0f172a;--s1:#1e293b;--s2:#172235;--s3:#253449;--line:#334155;
    --text:#e8eef5;--muted:#94a3b8;--primary:#4f87aa;--primary-strong:#76a9c7;
    --accent:#4f87aa;--accent2:#60a5fa;--shadow-sm:0 1px 2px rgba(0,0,0,.25);
    --shadow:0 14px 34px rgba(0,0,0,.25);--shadow-lg:0 22px 60px rgba(0,0,0,.32);color-scheme:dark;
  }
}

@font-face{font-family:"Inter";src:url("../fonts/Inter-Regular.otf") format("opentype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Inter";src:url("../fonts/Inter-Medium.otf") format("opentype");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Inter";src:url("../fonts/Inter-SemiBold.otf") format("opentype");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Inter";src:url("../fonts/Inter-Bold.otf") format("opentype");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Inter";src:url("../fonts/Inter-ExtraBold.otf") format("opentype");font-weight:800;font-style:normal;font-display:swap}
@font-face{font-family:"Inter";src:url("../fonts/Inter-Black.otf") format("opentype");font-weight:900;font-style:normal;font-display:swap}
@font-face{font-family:"InterDisplay";src:url("../fonts/InterDisplay-Regular.otf") format("opentype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"InterDisplay";src:url("../fonts/InterDisplay-Bold.otf") format("opentype");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"InterDisplay";src:url("../fonts/InterDisplay-ExtraBold.otf") format("opentype");font-weight:800;font-style:normal;font-display:swap}
@font-face{font-family:"Cabin";src:url("../fonts/Cabin-Regular.otf") format("opentype");font-weight:400;font-style:normal;font-display:swap}
