/* Ondra design language - tokens (implementation source of truth)
   Independent reconstruction of the Ondra marketing / sales dashboard template
   (demo.codeandchill.store/ondra, (c) 2026 Hasib / OVERSHOOT). Values are measured from a local
   export's stylesheets and runtime; every name below is ours.
   Labels: [O] observed (measured in CSS/JS or visible)  [E] estimated  [P] proposed.

   Scope: everything lives on .od so styles never leak onto the host page.
     <div class="od">                         light (default, as in the source)
     <div class="od" data-od-theme="dark">    dark
   "System" is a JS choice that writes light or dark; there is no prefers-color-scheme auto-switch
   in CSS because the source defaults to light.

   Breakpoints (media queries cannot read custom properties; use these numbers) [O]:
     1280 sidebar may collapse to a 76px rail by choice (is-rail) | 761-1279 rail is forced
     1279 overview 12-col stacks | 999 clock hides, 2-col KPI | 760 PHONE SHELL (bottom tab bar)
     380 tab labels 10.5px | (height<=640 and width>=761) compact sidebar | pointer:coarse -> 44px targets */

.od {
  color-scheme: light;

  /* ===== 1. Ground and surfaces ===== */
  --od-bg: #eef0ec;                 /* [O] sage-grey page ground */
  --od-surface: #fbfcfa;            /* [O] card, stat tile, input, chip */
  --od-surface-2: #f3f5f1;          /* [O] sunken: wells, table head, kanban column, fact tiles */
  --od-raised: #ffffff;             /* [O] lifted: popover, dialog, drawer, selected KPI tile, seg thumb */
  --od-well: #14261f0e;             /* [O] troughs, tracks, hover wash, count chips */
  --od-line: #14261f14;             /* [O] hairlines */
  --od-line-2: #14261f29;           /* [O] control borders, dashed row rules */
  --od-rim: inset 0 0 0 1px #14261f13;                                   /* [O] 1px inset edge (a box-shadow value) */
  --od-shadow: 0 1px 2px #14261f0a, 0 10px 28px -20px #14261f4d;         /* [O] card */
  --od-shadow-pop: 0 26px 60px -20px #14261f57, 0 2px 6px #14261f14;     /* [O] overlays */
  --od-shadow-item: 0 1px 2px #14261f0d;                                 /* [O] kanban card */
  --od-shadow-hover: 0 8px 18px -10px #14261f4d;                         /* [O] kanban card hover, selected KPI */
  --od-shadow-kpi: 0 1px 2px #14261f0f, 0 8px 18px -10px #14261f4d;      /* [O] selected KPI tile / bar */
  --od-shadow-thumb: 0 2px 8px #0f182a24;                                /* [O] segmented thumb */
  --od-shadow-side: 0 30px 60px -32px #0a1e1699, inset 0 0 0 1px #ffffff0f, inset 0 1px #ffffff0f; /* [O] floating sidebar */
  --od-shadow-ink: 0 24px 50px -28px #12291f99;                          /* [O] ink card */
  --od-shadow-lift: 0 26px 50px -18px #0a161173, 0 2px 6px #0a16111f;    /* [O] dragged ghost */
  --od-shadow-knob: 0 1px 3px #0003;                                     /* [O] switch knob */
  --od-shadow-brand: 0 6px 14px -6px #f0643ab3, inset 0 1px #ffffff40;   /* [O] brand mark */
  --od-shadow-btn: 0 12px 24px -14px color-mix(in srgb, var(--od-primary) 90%, transparent); /* [O] primary button's soft ember glow */
  --od-shadow-tabbar: 0 -1px 0 var(--od-line), 0 -12px 30px -18px #0a161140; /* [O] phone tab bar */
  --od-side-ring: #ffffff29;        /* [O] rail button ring */
  --od-side-ring-2: #ffffff2e;      /* [O] avatar halo on pine */
  --od-side-sep: #ffffff1f;         /* [O] rail section separator */
  --od-orb-a: #f0643a80;            /* [O] sign-in orb (ember) */
  --od-orb-b: #4fc79c61;            /* [O] sign-in orb (green) */
  /* theme preview swatches: fixed light and dark chips for the Appearance picker; they must not follow the active theme [P] */
  --od-pvl-bg: #eef0ec; --od-pvl-card: #fbfcfa; --od-pvl-line: #14261f14; --od-pvl-side: #12291f;
  --od-pvd-bg: #0e1312; --od-pvd-card: #1a2220; --od-pvd-line: #ffffff0f; --od-pvd-side: #0a1411;
  --od-thumb: var(--od-raised);     /* [O] sliding thumb behind the selected segment */
  --od-kpi-bar: var(--od-raised);   /* [O] sliding bar behind the selected KPI tile */
  --od-scrim: #0a161152;            /* [O] */
  --od-backdrop: #0a16114d;         /* [O] dialog backdrop */
  --od-backdrop-blur: 5px;          /* [O] the ONLY backdrop blur in the system */

  /* ===== 2. Ink ===== */
  --od-text: #15201c;               /* [O] green-black ink */
  --od-muted: #4f5c56;              /* [O] secondary labels, axes, subtitles */
  --od-faint: #5f6c66;              /* [O] hints, placeholder, neutral dot (a bit lighter than muted) */
  --od-primary: #c4461d;            /* [O] ember-orange: primary button, links, focus, selected, count chip on tabs */
  --od-on-primary: #ffffff;         /* [O] */
  --od-primary-soft: #c4461d1a;     /* [O] 10% ember wash: icon chips, soft button, focus halo */
  --od-link: var(--od-primary);     /* [O] */
  --od-selection: color-mix(in srgb, var(--od-ember) 26%, transparent); /* [O] ::selection */

  /* ===== 3. Deep pine: the floating sidebar and every "ink" surface ===== */
  --od-side: oklch(25% 0.035 165);  /* [O] sidebar base, ink card, toast, ink button */
  --od-side-2: oklch(29% 0.04 165); /* [O] sidebar gradient top, active nav fill */
  --od-on-side: #e7efe9;            /* [O] text on any pine surface */
  --od-side-dim: #e7efe99e;         /* [O] secondary text on pine */
  --od-side-label: #e7efe973;       /* [O] section eyebrows (MARKETING / WORKSPACE) */
  --od-side-hover: #ffffff12;       /* [O] hover wash */
  --od-side-line: #ffffff12;        /* [O] hairline under the brand block */
  --od-side-well: #ffffff0d;        /* [O] rail button, pace card fill */
  --od-side-well-2: #ffffff14;      /* [O] count chips, pace card hover */
  --od-side-tree: #ffffff1a;        /* [O] sub-nav tree line and ticks, bar track */
  --od-side-pill-from: #ffffff1c;   /* [O] sliding nav pill gradient start */
  --od-side-pill-to: #ffffff0f;     /* [O] sliding nav pill gradient end */
  --od-side-accent: oklch(80% 0.1 45); /* [O] peach: active icon, "ahead of pace", current child dot */
  --od-side-ico: #ffb497;           /* [O] peach icon on ink card and toast */
  --od-side-ico-bg: #f0643a33;      /* [O] icon chip on the ink card */
  --od-live: #f0643a;               /* [O] brighter ember: notification dot, count bubble, nav indicator, Undo */
  --od-on-live: #ffffff;            /* [O] */
  --od-live-glow: #f0643ab3;        /* [O] nav indicator glow, brand mark shadow */
  --od-live-halo: #f0643a38;        /* [O] 3px halo around the live dot */
  --od-brand-from: oklch(70% 0.16 45); /* [O] brand mark gradient start (145deg to --od-live) */
  --od-pace-from: oklch(62% 0.15 40);  /* [O] pace bar gradient start (90deg to --od-live) */
  --od-side-bg: linear-gradient(180deg, var(--od-side-2), var(--od-side) 220px); /* [O] sidebar fill */

  /* ===== 4. Nine category tones (fills, strokes, dots; text only through the recipe) ===== */
  --od-ember: oklch(64% 0.16 42);   /* [O] primary series, the brand's chart line */
  --od-steel: oklch(60% 0.12 250);  /* [O] blue */
  --od-gold: oklch(74% 0.14 78);    /* [O] amber */
  --od-sea: oklch(61% 0.1 192);     /* [O] teal */
  --od-moss: oklch(63% 0.13 138);   /* [O] green */
  --od-rose: oklch(62% 0.15 10);    /* [O] pink-red */
  --od-slate: oklch(58% 0.035 240); /* [O] grey-blue */
  --od-pine: oklch(53% 0.09 165);   /* [O] deep green (the clock dot, "won") */
  --od-clay: oklch(60% 0.08 55);    /* [O] muted brown */
  --od-tint: var(--od-soft);        /* [O] pill / chip tint strength */
  --od-tone-mix: 52%;               /* [O] text recipe: color-mix(tone 52%, text) */
  --od-on-tone: #ffffff;            /* [O] glyph on a solid tone fill (dark #10201a) */
  /* channel -> tone map [O] */
  --od-ch-search: var(--od-gold);   --od-ch-organic: var(--od-moss); --od-ch-email: var(--od-sea);
  --od-ch-social: var(--od-steel);  --od-ch-referral: var(--od-slate); --od-ch-creators: var(--od-rose);
  /* avatar pastels (initials in --od-av-ink) [O] */
  --od-av-ink: #15201c;
  --od-av-base: #dfe5e1;
  --od-av-ember: #f8cdb9; --od-av-pine: #bfe3d3; --od-av-gold: #f5e0a6; --od-av-moss: #d6e8b4; --od-av-steel: #c6dcef;
  --od-av-clay: #f0d6c4;  --od-av-rose: #f7c8cf; --od-av-slate: #d8ddda; --od-av-sea: #bde7e5;
  --od-av-filter: none;             /* [O] dark: saturate(.9) brightness(.92) */
  /* rotation for auto-assignment [E order] */
  --od-cat-1: var(--od-ember); --od-cat-2: var(--od-steel); --od-cat-3: var(--od-gold); --od-cat-4: var(--od-sea);
  --od-cat-5: var(--od-moss);  --od-cat-6: var(--od-rose);  --od-cat-7: var(--od-slate); --od-cat-8: var(--od-pine); --od-cat-9: var(--od-clay);

  /* ===== 5. Status ===== */
  --od-good: oklch(47% 0.12 150);   /* [O] */
  --od-warn: oklch(52% 0.11 70);    /* [O] text; its fill/dot is --od-gold */
  --od-bad: oklch(52% 0.18 25);     /* [O] text; its fill/dot is --od-rose */
  --od-info: oklch(50% 0.12 250);   /* [O] text; its fill/dot is --od-steel */
  --od-soft: 14%;                   /* [O] status tint strength (dark 20%) */
  --od-on-danger: #ffffff;          /* [O] (dark #2a0703) */
  --od-knob: #ffffff;               /* [O] switch knob */
  /* status -> pill: Live good, Scheduled info, Paused warn, Draft / Ended faint [O] */

  /* ===== 6. Charts ===== */
  --od-chart-grid: var(--od-line);  /* [O] dashed 3 4 */
  --od-chart-grid-dash: 3 4;        /* [O] */
  --od-chart-prev-dash: 5 6;        /* [O] previous-period line */
  --od-chart-stroke: 2.5px;         /* [O] line width, round caps */
  --od-chart-prev-stroke: 2px;      /* [O] */
  --od-chart-area: 0.22;            /* [O] area gradient top opacity -> 0 */
  --od-chart-axis: var(--od-muted); /* [O] 12px / 600 */
  --od-series-1: var(--od-ember); --od-series-2: var(--od-steel); --od-series-3: var(--od-gold); --od-series-4: var(--od-sea);
  --od-series-5: var(--od-moss);  --od-series-6: var(--od-rose);  --od-series-prev: var(--od-faint);

  /* ===== 7. Focus ===== */
  --od-focus: var(--od-primary);    /* [O] 2px outline, offset 2 (charts 4) */
  --od-focus-width: 2px; --od-focus-offset: 2px;
  --od-focus-halo: 0 0 0 3px var(--od-primary-soft); /* [O] fields: border -> primary + halo */

  /* ===== 8. Type: Urbanist only ===== */
  --od-font: "Urbanist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; /* [O] variable 400..700 */
  --od-fw-body: 500; --od-fw-ui: 600; --od-fw-strong: 700;  /* [O] body / the working weight / badges, brand, hero figures */
  --od-fs-2xs: 11px;                /* [O] kbd, count chips, axis micro, column totals */
  --od-fs-xs: 12px;                 /* [O] captions, meta */
  --od-fs-sm: 12.5px;               /* [O] most used: labels, chips, pills' parents, card subs */
  --od-fs-md: 13.5px;               /* [O] buttons, cells, menu items, lead */
  --od-fs-base: 14px;               /* [O] body, nav */
  --od-fs-lg: 15px;                 /* [O] card titles */
  --od-fs-xl: 17px;                 /* [O] finder input, fact values */
  --od-fs-2xl: 20px;                /* [O] dialog title, mobile brand */
  --od-fs-3xl: 22px;                /* [O] stat / KPI value, drawer title */
  --od-fs-4xl: 26px;                /* [O] gauge centre, sign-in title, phone page title */
  --od-fs-display: 34px;            /* [O] (largest fixed size) */
  --od-fs-title: clamp(28px, 2.6vw, 38px); /* [O] page title */
  --od-fs-brand: 21px;              /* [O] */
  --od-fs-input-touch: 16px;        /* [O] inputs on phones and coarse pointers */
  --od-lh-body: 1.45; --od-lh-title: 1.04; --od-lh-num: 1.1;
  --od-track-title: -0.025em;       /* [O] page title, gauge figure */
  --od-track-head: -0.02em;         /* [O] brand, dialog title, pace figure */
  --od-track-tight: -0.01em;        /* [O] stat value */
  --od-track-eyebrow: 0.1em;        /* [O] sidebar section labels (uppercase) */
  --od-track-group: 0.08em;         /* [O] finder groups, "Biggest drop" */
  --od-track-stamp: 0.12em;         /* [O] stamp */
  --od-measure: 64ch;               /* [O] lead */

  /* ===== 9. Space and layout ===== */
  --od-gap: 16px;                   /* [O] card-to-card (12 on phone) */
  --od-gutter: clamp(16px, 1.8vw, 30px); /* [O] */
  --od-side-w: 248px;               /* [O] sidebar (76 rail) */
  --od-side-inset: 12px;            /* [O] sidebar floats 12px from the viewport */
  --od-tabbar: 64px;                /* [O] phone tab bar */
  --od-pad-card: 20px;              /* [O] (16 phone) */
  --od-pad-stat: 16px 18px;         /* [O] */
  --od-pad-sheet: 22px;             /* [O] modal form (drawer 24) */
  --od-app-max: 1840px;             /* [P] reference app only; the source is fluid */

  /* ===== 10. Sizes ===== */
  --od-h-btn: 44px; --od-h-btn-sm: 38px; --od-h-btn-xs: 32px; /* [O] */
  --od-h-field: 42px; --od-h-field-form: 44px;                /* [O] */
  --od-h-top: 44px;                 /* [O] top-bar controls */
  --od-h-tab: 44px;                 /* [O] sub-tab (48 coarse) */
  --od-h-chip: 34px;                /* [O] */
  --od-h-nav: 42px; --od-h-sub: 34px;  /* [O] nav row, child row (rail 48, compact 38/30) */
  --od-ibtn: 38px; --od-ibtn-sm: 32px; --od-ibtn-lg: 46px;    /* [O] */
  --od-tap: 44px;                   /* [O] pointer:coarse minimum */
  --od-av-xs: 24px; --od-av-sm: 32px; --od-av-md: 40px; --od-av-lg: 54px; --od-av-xl: 96px; /* [O] */
  --od-ico: 18px;                   /* [O] (nav 20, buttons 17, small 14-16) */
  --od-ico-stroke: 1.7px;           /* [O] outline icons, round caps/joins */
  --od-dot: 8px;                    /* [O] (pill dot 6, legend swatch 9) */

  /* ===== 11. Radii: 20 / 14 / 12, and 999 only for chips ===== */
  --od-r-card: 20px;                /* [O] cards, stat tiles, kanban columns */
  --od-r-tile: 14px;                /* [O] nested tiles, kanban cards, notes, finder bar, top-bar controls */
  --od-r-ctl: 12px;                 /* [O] buttons, inputs, ibtn */
  --od-r-side: 24px;                /* [O] the floating sidebar */
  --od-r-sheet: 26px;               /* [O] modal, drawer, bottom sheet top corners */
  --od-r-pop: 18px;                 /* [O] popover, KPI group, sunken panels */
  --od-r-seg: 13px;                 /* [O] segmented control (thumb 10) */
  --od-r-item: 12px;                /* [O] menu rows, nav rows, nav pill */
  --od-r-sm: 10px;                  /* [O] small buttons, bars, tooltips, icon tiles */
  --od-r-pillbox: 8px;              /* [O] status pill, count chip (NOT a capsule) */
  --od-r-trend: 7px;                /* [O] delta chip */
  --od-r-pill: 999px;               /* [O] filter chips, count badges, switch, meter */
  --od-r-round: 50%;                /* [O] avatars, dots, score rings */

  /* ===== 12. Borders ===== */
  --od-bw: 1px; --od-bw-dash: 1.5px;/* [O] dashed = empty / lost zone / row rule */
  --od-bw-stamp: 2.5px;             /* [O] */
  --od-z-side: 30; --od-z-scrim: 55; --od-z-pop: 80; --od-z-lift: 90; --od-z-toast: 95; --od-z-tip: 96; --od-z-skip: 100; /* [O] */

  /* ===== 13. Motion ===== */
  --od-ease: cubic-bezier(0.2, 0.8, 0.2, 1);  /* [O] the CSS transition curve (switch knob, chevrons, tab icon) */
  /* GSAP named eases sampled into linear() [O names; generated from the public formulas;
     GSAP power2 = cubic, power3 = quartic, power4 = quintic] */
  --od-ease-p2-in: linear(0, 0.0001, 0.001, 0.0034, 0.008, 0.0156, 0.027, 0.0429, 0.064, 0.0911, 0.125, 0.1664, 0.216, 0.2746, 0.343, 0.4219, 0.512, 0.6141, 0.729, 0.8574, 1);
  --od-ease-p2-out: linear(0, 0.1426, 0.271, 0.3859, 0.488, 0.5781, 0.657, 0.7254, 0.784, 0.8336, 0.875, 0.9089, 0.936, 0.9571, 0.973, 0.9844, 0.992, 0.9966, 0.999, 0.9999, 1);
  --od-ease-p2-inout: linear(0, 0.0005, 0.004, 0.0135, 0.032, 0.0625, 0.108, 0.1715, 0.256, 0.3645, 0.5, 0.6355, 0.744, 0.8285, 0.892, 0.9375, 0.968, 0.9865, 0.996, 0.9995, 1);
  --od-ease-p3-in: linear(0, 0, 0.0001, 0.0005, 0.0016, 0.0039, 0.0081, 0.015, 0.0256, 0.041, 0.0625, 0.0915, 0.1296, 0.1785, 0.2401, 0.3164, 0.4096, 0.522, 0.6561, 0.8145, 1);
  --od-ease-p3-out: linear(0, 0.1855, 0.3439, 0.478, 0.5904, 0.6836, 0.7599, 0.8215, 0.8704, 0.9085, 0.9375, 0.959, 0.9744, 0.985, 0.9919, 0.9961, 0.9984, 0.9995, 0.9999, 1, 1);
  --od-ease-p3-inout: linear(0, 0.0001, 0.0008, 0.004, 0.0128, 0.0312, 0.0648, 0.12, 0.2048, 0.3281, 0.5, 0.672, 0.7952, 0.88, 0.9352, 0.9688, 0.9872, 0.996, 0.9992, 1, 1);
  --od-ease-p4-out: linear(0, 0.2262, 0.4095, 0.5563, 0.6723, 0.7627, 0.8319, 0.884, 0.9222, 0.9497, 0.9688, 0.9815, 0.9898, 0.9947, 0.9976, 0.999, 0.9997, 0.9999, 1, 1, 1);
  --od-ease-sine-inout: linear(0, 0.0062, 0.0245, 0.0545, 0.0955, 0.1464, 0.2061, 0.273, 0.3455, 0.4218, 0.5, 0.5782, 0.6545, 0.727, 0.7939, 0.8536, 0.9045, 0.9455, 0.9755, 0.9938, 1);
  --od-ease-back-1-4: linear(0, 0.1064, 0.2058, 0.2984, 0.3844, 0.4641, 0.5376, 0.6052, 0.6672, 0.7237, 0.775, 0.8213, 0.8628, 0.8998, 0.9324, 0.9609, 0.9856, 1.0066, 1.0242, 1.0386, 1.05, 1.0587, 1.0648, 1.0686, 1.0704, 1.0703, 1.0686, 1.0655, 1.0612, 1.056, 1.05, 1.0435, 1.0368, 1.03, 1.0234, 1.0172, 1.0116, 1.0069, 1.0032, 1.0008, 1);
  --od-ease-back-1-5: linear(0, 0.1088, 0.2103, 0.3048, 0.3925, 0.4736, 0.5484, 0.6171, 0.68, 0.7372, 0.7891, 0.8357, 0.8775, 0.9146, 0.9472, 0.9756, 1, 1.0207, 1.0378, 1.0517, 1.0625, 1.0705, 1.0759, 1.079, 1.08, 1.0791, 1.0766, 1.0726, 1.0675, 1.0614, 1.0547, 1.0475, 1.04, 1.0325, 1.0253, 1.0186, 1.0125, 1.0074, 1.0034, 1.0009, 1);
  --od-ease-back-1-6: linear(0, 0.1112, 0.2148, 0.3112, 0.4006, 0.4832, 0.5593, 0.6291, 0.6928, 0.7507, 0.8031, 0.8502, 0.8922, 0.9294, 0.962, 0.9902, 1.0144, 1.0347, 1.0514, 1.0648, 1.075, 1.0824, 1.0871, 1.0894, 1.0896, 1.0879, 1.0845, 1.0797, 1.0738, 1.0669, 1.0594, 1.0514, 1.0432, 1.0351, 1.0272, 1.0199, 1.0134, 1.0079, 1.0037, 1.001, 1);
  --od-ease-back-1-8: linear(0, 0.1159, 0.2239, 0.3241, 0.4168, 0.5023, 0.581, 0.6529, 0.7184, 0.7778, 0.8313, 0.8791, 0.9216, 0.959, 0.9916, 1.0195, 1.0432, 1.0628, 1.0787, 1.091, 1.1, 1.106, 1.1094, 1.1102, 1.1088, 1.1055, 1.1004, 1.094, 1.0864, 1.0779, 1.0688, 1.0592, 1.0496, 1.0401, 1.0311, 1.0227, 1.0152, 1.0089, 1.0042, 1.0011, 1);
  --od-ease-back-2: linear(0, 0.1207, 0.2329, 0.3369, 0.433, 0.5215, 0.6026, 0.6767, 0.744, 0.8048, 0.8594, 0.908, 0.951, 0.9886, 1.0211, 1.0488, 1.072, 1.0909, 1.1059, 1.1171, 1.125, 1.1297, 1.1316, 1.131, 1.128, 1.123, 1.1164, 1.1083, 1.099, 1.0889, 1.0781, 1.0671, 1.056, 1.0452, 1.0349, 1.0254, 1.017, 1.01, 1.0046, 1.0012, 1);
  --od-ease-back-2-2: linear(0, 0.1254, 0.2419, 0.3497, 0.4492, 0.5406, 0.6243, 0.7005, 0.7696, 0.8318, 0.8875, 0.9369, 0.9804, 1.0182, 1.0507, 1.0781, 1.1008, 1.119, 1.1331, 1.1433, 1.15, 1.1534, 1.1539, 1.1517, 1.1472, 1.1406, 1.1323, 1.1225, 1.1116, 1.0998, 1.0875, 1.0749, 1.0624, 1.0502, 1.0387, 1.0281, 1.0188, 1.011, 1.0051, 1.0013, 1);
  --od-ease-back-2-4: linear(0, 0.1302, 0.2509, 0.3626, 0.4654, 0.5598, 0.646, 0.7243, 0.7952, 0.8589, 0.9156, 0.9658, 1.0098, 1.0478, 1.0803, 1.1074, 1.1296, 1.1471, 1.1603, 1.1695, 1.175, 1.1771, 1.1762, 1.1725, 1.1664, 1.1582, 1.1482, 1.1368, 1.1242, 1.1108, 1.0969, 1.0828, 1.0688, 1.0553, 1.0425, 1.0309, 1.0206, 1.0121, 1.0056, 1.0014, 1);
  --od-ease-back-3: linear(0, 0.1444, 0.278, 0.4011, 0.514, 0.6172, 0.711, 0.7958, 0.872, 0.9399, 1, 1.0526, 1.098, 1.1367, 1.169, 1.1953, 1.216, 1.2314, 1.242, 1.2481, 1.25, 1.2482, 1.243, 1.2348, 1.224, 1.2109, 1.196, 1.1796, 1.162, 1.1437, 1.125, 1.1063, 1.088, 1.0704, 1.054, 1.0391, 1.026, 1.0152, 1.007, 1.0018, 1);
  --od-ease-elastic-1-45: linear(0, 0.1708, 0.3741, 0.5832, 0.7777, 0.9436, 1.073, 1.1633, 1.2162, 1.2361, 1.2296, 1.2039, 1.1661, 1.1227, 1.0791, 1.0392, 1.0058, 0.9802, 0.9628, 0.9532, 0.9502, 0.9525, 0.9586, 0.9668, 0.9761, 0.9851, 0.9933, 1, 1.005, 1.0083, 1.0101, 1.0104, 1.0098, 1.0084, 1.0066, 1.0046, 1.0028, 1.0011, 0.9998, 0.9988, 0.9981, 0.9978, 0.9978, 0.998, 0.9983, 0.9987, 0.9991, 0.9995, 1);
  --od-ease-elastic-1-4: linear(0, 0.1804, 0.4057, 0.6398, 0.8547, 1.0318, 1.1609, 1.2399, 1.2728, 1.2674, 1.2339, 1.1832, 1.125, 1.0677, 1.0173, 0.9776, 0.9504, 0.9354, 0.9313, 0.9358, 0.9462, 0.9599, 0.9746, 0.9884, 1, 1.0087, 1.0143, 1.0168, 1.0169, 1.0151, 1.0121, 1.0086, 1.0049, 1.0017, 0.999, 0.9972, 0.9961, 0.9957, 0.9959, 0.9965, 0.9973, 0.9982, 0.9991, 0.9999, 1.0005, 1.0008, 1.001, 1.0011, 1);
  --od-ease-elastic-1-5: linear(0, 0.164, 0.3512, 0.5415, 0.7194, 0.8743, 1, 1.0942, 1.1575, 1.1928, 1.2044, 1.1973, 1.1768, 1.1478, 1.1147, 1.0811, 1.0496, 1.0222, 1, 0.9833, 0.9722, 0.9659, 0.9639, 0.9651, 0.9688, 0.9739, 0.9797, 0.9857, 0.9912, 0.9961, 1, 1.0029, 1.0049, 1.006, 1.0064, 1.0062, 1.0055, 1.0046, 1.0036, 1.0025, 1.0016, 1.0007, 1, 0.9995, 0.9991, 0.9989, 0.9989, 0.9989, 1);
  --od-ease-elastic-1-3: linear(0, 0.2156, 0.5185, 0.8322, 1.0975, 1.2786, 1.3641, 1.3625, 1.296, 1.1928, 1.0807, 0.9822, 0.9116, 0.8747, 0.8696, 0.8893, 0.924, 0.9637, 1, 1.0272, 1.0427, 1.0466, 1.0411, 1.0296, 1.0156, 1.0024, 0.992, 0.9857, 0.9835, 0.9849, 0.9886, 0.9935, 0.9983, 1.0022, 1.0047, 1.0058, 1.0055, 1.0043, 1.0027, 1.0009, 0.9995, 0.9985, 0.998, 0.998, 0.9984, 0.9989, 0.9996, 1.0001, 1);
  /* role aliases: use these in components */
  --od-ease-enter: var(--od-ease-p3-out);      /* [O] dominant: every entrance */
  --od-ease-travel: var(--od-ease-p3-inout);   /* [O] between two resting places */
  --od-ease-exit: var(--od-ease-p2-in);        /* [O] exits */
  --od-ease-arrive: var(--od-ease-back-1-5);   /* [O] modal, drawer */
  --od-ease-pop: var(--od-ease-back-1-8);      /* [O] popover, toast */
  --od-ease-snap: var(--od-ease-back-3);       /* [O] icon / chip pop */
  --od-ease-stamp: var(--od-ease-back-2-2);    /* [O] stamp */
  --od-ease-title: var(--od-ease-p4-out);      /* [O] title character rise */
  --od-ease-draw: var(--od-ease-p2-inout);     /* [O] line draw */
  --od-ease-land: var(--od-ease-elastic-1-45); /* [O] landings, nav squash recovery */
  /* durations [O] */
  --od-dur-micro: 150ms;            /* chart tooltip, hover */
  --od-dur-exit: 160ms;             /* popover close */
  --od-dur-tip: 200ms;              /* rail tooltip */
  --od-dur-ui: 250ms;               /* colour / background transitions */
  --od-dur-swap: 300ms;             /* switch knob, backdrop fade */
  --od-dur-pop: 320ms;              /* popover open */
  --od-dur-lead: 360ms;             /* stretch indicator: leading edge */
  --od-dur-chev: 350ms;             /* nav chevron / rail icon */
  --od-dur-finder: 380ms;           /* finder open */
  --od-dur-cross: 450ms;            /* stretch indicator: cross-axis edges; dialog / toast open */
  --od-dur-rise: 550ms;             /* row rise, indicator trailing edge, nav pill travel, rail shift */
  --od-dur-ring: 600ms;             /* ring / gauge fill, list reflow, theme icon */
  --od-dur-title: 850ms;            /* title character rise */
  --od-dur-card: 900ms;             /* card landing */
  --od-dur-count: 1200ms;           /* count-up (1300 on enter) */
  --od-dur-draw: 1500ms;            /* line chart draw */
  --od-dur-toast: 2600ms;           /* [E] toast hold */
  --od-stagger-char: 22ms;          /* title characters */
  --od-stagger-row: 45ms;           /* rows, chips (callers 25-60) */
  --od-stagger-card: 70ms;          /* cards */
  --od-stagger-bar: 35ms;           /* chart bars (rank rows 60) */
  --od-rise-card: 34px;             /* card rise distance (scale .985 -> 1) */
  --od-rise-row: 12px;              /* row rise distance */
  --od-rise-head: 8px;              /* crumb / lead; head items 14 */
  --od-lift-scale: 1.04;            /* drag lift */
  --od-tilt-max: 9deg;              /* drag velocity tilt clamp */
  --od-magnet-x: 0.24; --od-magnet-y: 0.3; /* magnetic follow factors (fine pointers) */
}

/* ===== Dark theme: a token swap plus a short list of re-tints [O] ===== */
.od[data-od-theme="dark"] {
  color-scheme: dark;
  --od-bg: #0e1312;
  --od-surface: #151c1a;
  --od-surface-2: #1a2220;
  --od-raised: #1e2724;
  --od-well: #ffffff0e;
  --od-line: #ffffff13;
  --od-line-2: #ffffff26;
  --od-rim: inset 0 0 0 1px #ffffff11;
  --od-shadow: 0 1px 0 #ffffff08 inset, 0 18px 40px -26px #000000d9;
  --od-shadow-pop: 0 26px 60px -18px #000000c7, 0 0 0 1px #ffffff14;
  --od-shadow-item: none;
  --od-shadow-hover: none;
  --od-shadow-kpi: inset 0 0 0 1px #ffffff14;
  --od-shadow-thumb: none;
  --od-shadow-side: inset 0 0 0 1px #ffffff12;
  --od-shadow-ink: none;
  --od-shadow-tabbar: 0 -1px 0 var(--od-line);
  --od-thumb: #ffffff24;
  --od-kpi-bar: #ffffff14;
  --od-scrim: #0009;
  --od-backdrop: #0009;

  --od-text: #e8eeea;
  --od-muted: #a8b4ae;
  --od-faint: #8a9690;
  --od-primary: #ff8a5e;            /* [O] primary lifts to a light ember */
  --od-on-primary: #2a0d02;
  --od-primary-soft: #ff8a5e24;

  --od-side: oklch(18% 0.02 165);
  --od-side-2: oklch(21% 0.025 165);
  --od-on-side: #e3ece6;
  --od-side-dim: #e3ece694;
  --od-side-hover: #ffffff0f;
  --od-ember: oklch(74% 0.14 44);   --od-steel: oklch(73% 0.11 250); --od-gold: oklch(82% 0.13 80);
  --od-sea: oklch(75% 0.09 192);    --od-moss: oklch(77% 0.12 138);  --od-rose: oklch(74% 0.12 12);
  --od-slate: oklch(72% 0.035 240); --od-pine: oklch(74% 0.09 165);  --od-clay: oklch(75% 0.07 55);
  --od-on-tone: #10201a;
  --od-av-filter: saturate(0.9) brightness(0.92);

  --od-good: oklch(80% 0.13 150);
  --od-warn: oklch(84% 0.12 82);
  --od-bad: oklch(76% 0.14 24);
  --od-info: oklch(79% 0.09 250);
  --od-soft: 20%;
  --od-on-danger: #2a0703;
}
