/* ==========================================================================
   Elevate — Design tokens
   One refined accent, subtle neutrals, soft layered elevation.
   ========================================================================== */

:root {
  /* ---- Accent (default: Elevate Violet) ---- */
  --accent: #5b5bd6;
  --accent-hover: #4c4cc4;
  --accent-active: #4141ac;
  --accent-ink: #3b3ba0;
  --accent-soft: #eeeefc;
  --accent-soft-2: #e2e2f9;
  --accent-line: #d3d3f2;
  --accent-on: #ffffff;
  --accent-ring: rgba(91, 91, 214, 0.32);
  --accent-glow: rgba(91, 91, 214, 0.18);

  /* ---- Neutrals (light) ---- */
  --bg: #fbfbfc;
  --bg-deep: #f3f3f6;
  --surface: #ffffff;
  --surface-2: #f6f6f8;
  --surface-3: #eeeff2;
  --surface-inset: #fafafb;
  --border: #e8e9ee;
  --border-strong: #d9dae1;
  --text: #14161a;
  --text-2: #565d6d;
  --text-3: #878e9e;
  --text-inverse: #ffffff;

  /* ---- Semantic ---- */
  --success: #17926a;
  --success-soft: #e6f6ef;
  --warning: #b46b00;
  --warning-soft: #fdf2e2;
  --danger: #cf3b45;
  --danger-soft: #fdecec;
  --info: #2f6fd0;
  --info-soft: #ebf2fd;

  /* ---- Priority ---- */
  --p-urgent: #d93b3b;
  --p-high: #e07f16;
  --p-medium: #2f6fd0;
  --p-low: #7a8296;
  --p-none: #b3b8c4;

  /* ---- Radii ---- */
  --r-xs: 6px;
  --r-sm: 9px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 26px;
  --r-full: 999px;

  /* ---- Spacing ---- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 56px;
  --s-10: 72px;

  /* ---- Elevation (soft, low-contrast, layered) ---- */
  --shadow-xs: 0 1px 1px rgba(16, 18, 25, 0.04), 0 1px 2px rgba(16, 18, 25, 0.04);
  --shadow-sm: 0 1px 2px rgba(16, 18, 25, 0.04), 0 2px 6px rgba(16, 18, 25, 0.05);
  --shadow-md: 0 2px 4px rgba(16, 18, 25, 0.04), 0 8px 20px rgba(16, 18, 25, 0.07);
  --shadow-lg: 0 4px 10px rgba(16, 18, 25, 0.05), 0 18px 40px rgba(16, 18, 25, 0.1);
  --shadow-xl: 0 10px 24px rgba(16, 18, 25, 0.08), 0 32px 64px rgba(16, 18, 25, 0.14);
  --shadow-pop: 0 8px 30px rgba(16, 18, 25, 0.14);

  /* ---- Type ----
     Plus Jakarta Sans carries the interface; Fraunces (an optical-sizing serif)
     is reserved for the display surfaces — greeting, titles, headline numbers. */
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --tracking-display: -0.018em;
  --fs-3xs: 10.5px;
  --fs-2xs: 11.5px;
  --fs-xs: 12.5px;
  --fs-sm: 13.5px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-xl: 21px;
  --fs-2xl: 26px;
  --fs-3xl: 32px;
  --fs-4xl: 40px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 120ms;
  --t: 190ms;
  --t-slow: 320ms;

  /* ---- Layout ---- */
  --sidebar-w: 258px;
  --sidebar-w-collapsed: 72px;
  --topbar-h: 62px;
  --bottomnav-h: 62px;
  --content-max: 1240px;
  --z-nav: 30;
  --z-sticky: 40;
  --z-overlay: 60;
  --z-modal: 70;
  --z-toast: 90;
  /* The pointer glow sits above content but under every overlay, so dialogs
     are never tinted by it. */
  --z-cursor: 50;
}

/* ---- Accent presets (Settings → Appearance → Custom themes) ---- */
[data-accent="indigo"] { --accent:#4a5ad8; --accent-hover:#3d4cc4; --accent-active:#3341aa; --accent-ink:#2f3b9c; --accent-soft:#eceffd; --accent-soft-2:#dfe4fb; --accent-line:#ccd4f7; --accent-ring:rgba(74,90,216,.32); --accent-glow:rgba(74,90,216,.18); }
[data-accent="teal"]   { --accent:#0f8a83; --accent-hover:#0c736d; --accent-active:#095d58; --accent-ink:#0a5a55; --accent-soft:#e6f5f3; --accent-soft-2:#d6eeeb; --accent-line:#bfe3df; --accent-ring:rgba(15,138,131,.30); --accent-glow:rgba(15,138,131,.18); }
[data-accent="emerald"]{ --accent:#159a63; --accent-hover:#108354; --accent-active:#0c6b45; --accent-ink:#0c6544; --accent-soft:#e7f7ef; --accent-soft-2:#d7f1e5; --accent-line:#c0e8d5; --accent-ring:rgba(21,154,99,.30); --accent-glow:rgba(21,154,99,.18); }
[data-accent="amber"]  { --accent:#c07409; --accent-hover:#a56307; --accent-active:#885205; --accent-ink:#7d4b06; --accent-soft:#fdf3e3; --accent-soft-2:#fae9cf; --accent-line:#f4dcb4; --accent-ring:rgba(192,116,9,.30); --accent-glow:rgba(192,116,9,.18); }
[data-accent="rose"]   { --accent:#c8437c; --accent-hover:#ae376a; --accent-active:#942d59; --accent-ink:#883054; --accent-soft:#fdeef4; --accent-soft-2:#fbe0eb; --accent-line:#f6cddd; --accent-ring:rgba(200,67,124,.30); --accent-glow:rgba(200,67,124,.18); }
[data-accent="graphite"]{ --accent:#4d5461; --accent-hover:#3e4450; --accent-active:#313640; --accent-ink:#2f343d; --accent-soft:#eff1f4; --accent-soft-2:#e4e7ec; --accent-line:#d5d9e0; --accent-ring:rgba(77,84,97,.28); --accent-glow:rgba(77,84,97,.16); }

/* ---- Dark theme: intentionally designed, not inverted ---- */
[data-theme="dark"] {
  --bg: #0b0c0f;
  --bg-deep: #08090b;
  --surface: #131519;
  --surface-2: #191c21;
  --surface-3: #21242b;
  --surface-inset: #0f1116;
  --border: #262a32;
  --border-strong: #333844;
  --text: #eceef3;
  --text-2: #a3a9b7;
  --text-3: #757b8a;
  --text-inverse: #0b0c0f;

  --accent-soft: #1e1f3a;
  --accent-soft-2: #262850;
  --accent-line: #34366b;
  --accent-ink: #b9b9f2;
  --accent-on: #ffffff;
  --accent-ring: rgba(124, 124, 240, 0.38);
  --accent-glow: rgba(110, 110, 235, 0.22);

  --success: #3fbe8d; --success-soft: #12271f;
  --warning: #e0a33f; --warning-soft: #2a2113;
  --danger: #ef6b74;  --danger-soft: #2c1518;
  --info: #6ba2f0;    --info-soft: #131f30;

  --p-urgent: #ef6b74; --p-high: #e39a41; --p-medium: #6ba2f0; --p-low: #98a0b0; --p-none: #5b6272;

  --shadow-xs: 0 1px 1px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.35), 0 10px 24px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.42), 0 22px 48px rgba(0, 0, 0, 0.46);
  --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.5), 0 36px 72px rgba(0, 0, 0, 0.5);
  --shadow-pop: 0 10px 34px rgba(0, 0, 0, 0.55);
}

[data-accent="indigo"][data-theme="dark"]   { --accent:#7c88ef; --accent-hover:#8f99f3; --accent-soft:#1c2040; --accent-soft-2:#242a56; --accent-line:#323a72; --accent-ink:#c6cdfa; }
[data-accent="teal"][data-theme="dark"]     { --accent:#3fb3ab; --accent-hover:#54c2ba; --accent-soft:#112b2a; --accent-soft-2:#163a38; --accent-line:#20514e; --accent-ink:#a8e5e1; }
[data-accent="emerald"][data-theme="dark"]  { --accent:#3dbd85; --accent-hover:#54cb96; --accent-soft:#112a20; --accent-soft-2:#16382a; --accent-line:#205139; --accent-ink:#a9e8ca; }
[data-accent="amber"][data-theme="dark"]    { --accent:#dfa33f; --accent-hover:#e9b25a; --accent-soft:#2a2111; --accent-soft-2:#3a2d16; --accent-line:#55411f; --accent-ink:#f4d9a3; }
[data-accent="rose"][data-theme="dark"]     { --accent:#e57aa9; --accent-hover:#ec8fb8; --accent-soft:#2c1622; --accent-soft-2:#3b1d2d; --accent-line:#572a41; --accent-ink:#f7c4da; }
[data-accent="graphite"][data-theme="dark"] { --accent:#8e97a8; --accent-hover:#a1a9b8; --accent-soft:#232830; --accent-soft-2:#2b313b; --accent-line:#3a414d; --accent-ink:#dfe3ea; --accent-on:#0b0c0f; }

