:root {
  --cx-ground:        #f5f2ef;
  --cx-panel:         #ffffff;
  --cx-panel-sunken:  #fbf9f7;
  --cx-line:          #e6e1dc;
  --cx-line-2:        #f0ece8;
  --cx-line-strong:   #d6cfc7;
  --cx-well:          #edeae8;
  --cx-line-field:    #949087;
  --cx-menu-hover:    #efebe7;
  --cx-hatch:         rgb(28 27 26 / .06);
  --cx-ink:    #1c1b1a;
  --cx-ink-2:  #5d5952;
  --cx-ink-3:  #736e66;
  --cx-ink-on-accent: #ffffff;
  --cx-ink-on-vivid:  #ffffff;
  --cx-accent:        #1c1b1a;
  --cx-accent-hover:  #3a3733;
  --cx-accent-bright: #b8b2a9;
  --cx-accent-wash:   #f6f4f1;
  --cx-accent-quiet:  #35312d;
  --cx-canon:      #35786f;  --cx-canon-wash: #e9f2f0;
  --cx-working:    #656d7a;  --cx-working-wash:#eef0f2;
  --cx-ok:         #2d794d;  --cx-ok-wash:    #e7f0e9;
  --cx-warn:       #84672c;  --cx-warn-wash:  #f9f3e4;
  --cx-error:      #a64c41;  --cx-error-wash: #fbefed;
  --cx-info:       #3b6ea5;  --cx-info-wash:  #e8eef6;
  --cx-ai:      var(--cx-accent-wash);
  --cx-ai-line: color-mix(in oklab, var(--cx-accent-bright) 35%, var(--cx-accent-wash));
  --cx-ai-ink:  var(--cx-accent-quiet);
  --cx-obj-orange: #f24c00;  --cx-obj-orange-deep: #eb3100;
  --cx-series-1: var(--cx-ink);
  --cx-series-2: #f34f0b;
  --cx-ink-on-series: #1c1b1a;
  --cx-font:         Figtree, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --cx-font-display: var(--cx-font);
  --cx-font-figure:  var(--cx-font);
  --cx-font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --cx-display: 60px;
  --cx-h1:      25px;
  --cx-h2:      18px;
  --cx-h3:      14.5px;
  --cx-body:    13.5px;
  --cx-sm:      12px;
  --cx-xs:      10.5px;
  --cx-figure:  20px;
  --cx-micro:   11px;
  --cx-w-regular: 400;
  --cx-w-medium:  500;
  --cx-w-semi:    600;
  --cx-w-bold:    700;
  --cx-w-heading: 700;
  --cx-lh-display: 1.02;
  --cx-lh-tight:   1.25;
  --cx-lh-snug:    1.4;
  --cx-lh-normal:  1.55;
  --cx-tr-display: -.035em;
  --cx-tr-heading: -.015em;
  --cx-tr-normal:  0;
  --cx-tr-wide:    .09em;
  --cx-s1: 4px;   --cx-s2: 8px;   --cx-s3: 12px;  --cx-s4: 16px;
  --cx-s5: 24px;  --cx-s6: 32px;  --cx-s7: 48px;  --cx-s8: 64px;
  --cx-s-6: 6px;  --cx-s-10: 10px;
  --cx-radius-sm:    6px;
  --cx-radius-md:    9px;
  --cx-radius-lg:    12px;
  --cx-radius-panel: 16px;
  --cx-radius-modal: 18px;
  --cx-radius-well:  22px;
  --cx-radius-pill:  999px;
  --cx-row-comfortable: 44px;
  --cx-row-compact:     32px;
  --cx-row: var(--cx-row-comfortable);
  --cx-shadow-none:    none;
  --cx-shadow-hover:   0 4px 14px rgb(28 27 26 / .07);
  --cx-shadow-popover: 0 4px 14px rgb(28 27 26 / .09), 0 1px 2px rgb(28 27 26 / .05);
  --cx-shadow-modal:   0 24px 60px rgb(28 27 26 / .22);
  --cx-shadow-card:    0 .5px .5px rgb(28 27 26 / .10), 0 0 0 .5px rgb(28 27 26 / .04);
  --cx-focus-ring: 0 0 0 1px var(--cx-panel), 0 0 0 3px var(--cx-accent);
  --cx-focus-outline: 2px solid var(--cx-accent);
  --cx-focus-offset:  2px;
  --cx-scrim: rgb(28 27 26 / .28);
  --cx-scrim-blur: 3px;
  --cx-chrome-top: 0px;
  --cx-motion-w: 96px;
  --cx-motion-w-lg: calc(var(--cx-motion-w) * 2);
  --cx-motion-face: var(--cx-accent);
  --cx-motion-shade: #000;
  --cx-motion-lift: #fff;
  --cx-motion-accent: var(--cx-obj-orange);
  --cx-bar-v: 0;
  --cx-bar-t: -1;
  --cx-swatch-paper: var(--cx-ground);
  --cx-swatch-lead: var(--cx-series-2);
  --cx-k: var(--cx-chart-1);
  --cx-plot-rows: 3;
  --cx-sq-cols: 26;
  --cx-sq-rows: 5;
  --cx-dock-left: 0px;
  --cx-dock-right: 0px;
  --cx-day: 14px;
  --cx-sched-label: 176px;
  --cx-sched-lane: 30px;
  --cx-at: 0;  --cx-len: 1;  --cx-lane: 0;  --cx-lanes: 1;  --cx-days: 1;
  --cx-chart-radius:    4px;
  --cx-chart-tip:       8px;
  --cx-chart-outline:     0px;
  --cx-chart-outline-ink: #1c1b1a;
  --cx-chart-stroke:    2px;
  --cx-chart-hair:      1px;
  --cx-chart-ring:      2px;
  --cx-swatch-step: 50;
  --cx-dur-fast: 120ms;
  --cx-dur:      140ms;
  --cx-dur-slow: 240ms;
  --cx-dur-move: 360ms;
  --cx-hover-grace:  800ms;
  --cx-hover-intent: 300ms;
  --cx-ease:        cubic-bezier(.2, 0, 0, 1);
  --cx-ease-in-out: cubic-bezier(.4, 0, .2, 1);
}
[data-theme="dark"] {
  --cx-ground:        #141312;
  --cx-panel:         #1e1d1c;
  --cx-panel-sunken:  #191817;
  --cx-line:          #302e2c;
  --cx-line-2:        #262423;
  --cx-line-strong:   #423f3c;
  --cx-well:          #0f0e0d;
  --cx-line-field:    #77726b;
  --cx-menu-hover:    #34312e;
  --cx-hatch:         rgb(242 240 236 / .05);
  --cx-ink:    #f2f0ec;
  --cx-ink-2:  #a8a29a;
  --cx-ink-3:  #8a847b;
  --cx-ink-on-accent: #1c1b1a;
  --cx-accent:        #f2f0ec;
  --cx-accent-hover:  #ffffff;
  --cx-accent-bright: #6b655d;
  --cx-accent-wash:   #2a2826;
  --cx-accent-quiet:  #e8e4de;
  --cx-canon:      #4fa89c;  --cx-canon-wash:  #1c2f2d;
  --cx-working:    #98a0ad;  --cx-working-wash:#24262a;
  --cx-ok:         #56b07a;  --cx-ok-wash:     #1a2b21;
  --cx-warn:       #c9a35a;  --cx-warn-wash:   #31291e;
  --cx-error:      #d58a81;  --cx-error-wash:  #312220;
  --cx-info:       #7aa8db;  --cx-info-wash:   #1c2733;
  --cx-ai-line: color-mix(in oklab, var(--cx-accent-bright) 12%, var(--cx-accent-wash));
  --cx-series-2: #f34f0b;
  --cx-shadow-hover:   0 4px 14px rgb(0 0 0 / .45);
  --cx-shadow-popover: 0 4px 14px rgb(0 0 0 / .5), 0 1px 2px rgb(0 0 0 / .4);
  --cx-shadow-modal:   0 24px 60px rgb(0 0 0 / .65);
  --cx-shadow-card:    0 .5px .5px rgb(0 0 0 / .5), 0 0 0 .5px rgb(255 255 255 / .06);
  --cx-scrim: rgb(0 0 0 / .5);
}
[data-density="compact"] { --cx-row: var(--cx-row-compact); }
@media (prefers-reduced-motion: reduce) {
  :root { --cx-dur-fast: 0ms; --cx-dur: 0ms; --cx-dur-slow: 0ms; --cx-dur-move: 0ms; }
}
[data-palette="olive"] {
  --cx-ground:          #f3f3ee;
  --cx-panel-sunken:    #fafaf6;
  --cx-well:            #ebebe7;
  --cx-line:            #e3e2da;
  --cx-line-2:          #eeede7;
  --cx-line-strong:     #d3d1c4;
  --cx-line-field:      #939185;
  --cx-menu-hover:      #edece6;
  --cx-accent-wash:     #f5f4f0;
  --cx-ink:             #1b1b1a;
  --cx-ink-2:           #5b5a50;
  --cx-ink-3:           #716f64;
  --cx-accent:          #1b1b1a;
  --cx-accent-hover:    #393832;
  --cx-accent-quiet:    #33322c;
  --cx-series-2:        #8a8f4c;
  --cx-ink-on-series:   #1b1b1a;
}
[data-palette="olive"]:where([data-theme="dark"]),
[data-theme="dark"] [data-palette="olive"]:not([data-theme]) {
  --cx-ground:          #131312;
  --cx-panel-sunken:    #181817;
  --cx-well:            #0e0e0d;
  --cx-line:            #2f2f2b;
  --cx-line-2:          #252522;
  --cx-line-strong:     #40403b;
  --cx-line-field:      #757369;
  --cx-menu-hover:      #32322d;
  --cx-accent-wash:     #292925;
  --cx-ink:             #f1f0eb;
  --cx-ink-2:           #a5a398;
  --cx-ink-3:           #878579;
  --cx-accent:          #f1f0eb;
  --cx-accent-hover:    #ffffff;
  --cx-accent-quiet:    #e6e5dc;
  --cx-series-2:        #6a6e2b;
  --cx-ink-on-series:   #f1f0eb;
}
[data-palette="petrol"] {
  --cx-ground:          #f1f3f3;
  --cx-panel-sunken:    #f9fafa;
  --cx-well:            #eaebeb;
  --cx-line:            #e0e2e3;
  --cx-line-2:          #ebedee;
  --cx-line-strong:     #cdd1d2;
  --cx-line-field:      #8d9192;
  --cx-menu-hover:      #eaeced;
  --cx-accent-wash:     #f3f5f5;
  --cx-ink:             #1b1b1b;
  --cx-ink-2:           #575a5b;
  --cx-ink-3:           #6c6f70;
  --cx-accent:          #1b1b1b;
  --cx-accent-hover:    #363838;
  --cx-accent-quiet:    #303233;
  --cx-series-2:        #0d5c6e;
  --cx-ink-on-series:   #ffffff;
}
[data-palette="petrol"]:where([data-theme="dark"]),
[data-theme="dark"] [data-palette="petrol"]:not([data-theme]) {
  --cx-ground:          #131313;
  --cx-panel-sunken:    #181818;
  --cx-well:            #0e0e0e;
  --cx-line:            #2e2f2f;
  --cx-line-2:          #242525;
  --cx-line-strong:     #3e4040;
  --cx-line-field:      #707374;
  --cx-menu-hover:      #303232;
  --cx-accent-wash:     #282929;
  --cx-ink:             #eff1f1;
  --cx-ink-2:           #a0a4a5;
  --cx-ink-3:           #818687;
  --cx-accent:          #eff1f1;
  --cx-accent-hover:    #ffffff;
  --cx-accent-quiet:    #e2e5e6;
  --cx-series-2:        #2d7386;
  --cx-ink-on-series:   #eff1f1;
}
[data-palette="slate"] {
  --cx-ground:          #f2f3f4;
  --cx-panel-sunken:    #f9f9fa;
  --cx-well:            #eaebec;
  --cx-line:            #e0e2e4;
  --cx-line-2:          #ebedee;
  --cx-line-strong:     #ced1d3;
  --cx-line-field:      #8e9193;
  --cx-menu-hover:      #eaeced;
  --cx-accent-wash:     #f3f4f5;
  --cx-ink:             #1b1b1c;
  --cx-ink-2:           #585a5c;
  --cx-ink-3:           #6c6f71;
  --cx-accent:          #1b1b1c;
  --cx-accent-hover:    #363839;
  --cx-accent-quiet:    #303233;
  --cx-series-2:        #30506c;
  --cx-ink-on-series:   #ffffff;
}
[data-palette="slate"]:where([data-theme="dark"]),
[data-theme="dark"] [data-palette="slate"]:not([data-theme]) {
  --cx-ground:          #131314;
  --cx-panel-sunken:    #181819;
  --cx-well:            #0e0e0f;
  --cx-line:            #2e2e2f;
  --cx-line-2:          #242525;
  --cx-line-strong:     #3f4041;
  --cx-line-field:      #717375;
  --cx-menu-hover:      #313233;
  --cx-accent-wash:     #282829;
  --cx-ink:             #eff0f1;
  --cx-ink-2:           #a1a3a6;
  --cx-ink-3:           #828588;
  --cx-accent:          #eff0f1;
  --cx-accent-hover:    #ffffff;
  --cx-accent-quiet:    #e3e5e7;
  --cx-series-2:        #4b6d8a;
  --cx-ink-on-series:   #eff0f1;
}
:root, [data-theme], [data-palette] {
  --cx-series-1: var(--cx-ink);
  --cx-focus-outline: 2px solid var(--cx-accent);
  --cx-ai-ink: var(--cx-accent-quiet);
  --cx-ai: var(--cx-accent-wash);
  --cx-motion-face: var(--cx-accent);
  --cx-chart-1: var(--cx-series-2);
  --cx-chart-2: var(--cx-ink-3);
  --cx-chart-3: color-mix(in oklab, var(--cx-ink) 40%, var(--cx-panel));
  --cx-chart-quiet: color-mix(in oklab, var(--cx-ink) 26%, var(--cx-panel));
  --cx-heat-ink: var(--cx-chart-1);
  --cx-heat-1: 10%; --cx-heat-2: 20%; --cx-heat-3: 32%;
}
[data-theme="dark"], [data-theme="dark"] [data-palette] { --cx-heat-1: 20%; --cx-heat-2: 36%; --cx-heat-3: 54%; }
