/* Heks Design - the tokens: four themes of colour, then the scale every sheet takes its numbers from.
   Data colours (cat-*, ramp-*) tell apart what a chart or a picture holds and never mean anything about the interface:
   on the dark themes they stand at the plan tones' lightness, on the light themes they are the theme's own pastels,
   their lines and edges drawn data-deep towards ink and data-edge wide so a pastel still parts from the ground. */
:root, [data-theme="dark"]{
  --ground: #06101a;
  --raised: #0c1925;
  --well: #0b1724;
  --glass: rgba(160,210,255,.07);
  --glass-strong: rgba(160,210,255,.11);
  --glass-edge: rgba(160,210,255,.14);
  --float: rgba(10,24,38,.92);
  --sink: rgba(0,0,0,.22);
  --field: rgba(0,0,0,.22);
  --field-edge: rgba(0,0,0,0);
  --field-in: rgba(0,0,0,.22);
  --field-in-edge: transparent;
  --track: rgba(255,255,255,.10);
  --hairline: rgba(255,255,255,.06);
  --line: #16273a;
  --ink: #ebf3f7;
  --ink-quiet: #a1b4c3;
  --ink-faint: #7c8f9d;
  --accent: #50a8ff;
  --accent-lit: #7cbcff;
  --accent-tint: rgba(80,168,255,.16);
  --accent-edge: rgba(80,168,255,.45);
  --on-act: #f2f8ff;
  --focus: rgba(235,243,247,.70);
  --prog-start: #49c9d9;
  --kept: #26e085;
  --kept-tint: rgba(38,224,133,.16);
  --kept-edge: rgba(38,224,133,.55);
  --accent-2: #f5c451;
  --accent-2-tint: rgba(245,196,81,.16);
  --accent-2-edge: rgba(245,196,81,.45);
  --refused: #ff8f8f;
  --pending: #f0a35e;
  --together: #9fb3c8;
  --agent: oklch(.78 .13 200);
  --agent-tint: oklch(.78 .13 200 / .18);
  --agent-edge: oklch(.78 .13 200 / .5);
  --aurora-sea: rgba(20,184,166,.34);
  --aurora-sky: rgba(59,130,246,.30);
  --aurora-warm: rgba(245,170,60,.42);
  --scrim: rgba(4,11,18,.82);
  --lift: rgba(235,243,247,.06);
  --tone-h65: oklch(var(--tone-l) var(--tone-c) 65);
  --tone-l: .76;
  --tone-c: .13;
  --tone-l2: .62;
  --cat-l: var(--tone-l);
  --cat-c: var(--tone-c);
  --cat-l2: var(--tone-l2);
  --data-deep: 0%;
  --data-edge: 0px;
  --ramp-1: oklch(.36 .05 255);
  --ramp-2: oklch(.50 .08 225);
  --ramp-3: oklch(.64 .10 185);
  --ramp-4: oklch(.78 .12 130);
  --ramp-5: oklch(.91 .13 100);
  --shade: color-mix(in srgb, var(--ink) 14%, transparent);
  color-scheme: dark;
  --glow: 0 0 18px -4px rgba(80,168,255,.65);
  --glow-2: 0 0 18px -4px rgba(245,196,81,.55);
  --lift-float: 0 14px 40px rgba(0,0,0,.50);
  --shadow-sheet: 0 -24px 60px rgba(0,0,0,.55);
}
[data-theme="light"]{
  --ground: #eef3f8;
  --raised: #f9fbfe;
  --well: #f4f7fb;
  --glass: rgba(255,255,255,.62);
  --glass-strong: rgba(255,255,255,.80);
  --glass-edge: rgba(255,255,255,.95);
  --float: rgba(249,251,254,.90);
  --sink: rgba(14,27,40,.05);
  --field: rgba(255,255,255,.92);
  --field-edge: rgba(14,27,40,.10);
  --field-in: rgba(255,255,255,.92);
  --field-in-edge: rgba(14,27,40,.10);
  --track: rgba(14,27,40,.10);
  --hairline: rgba(14,27,40,.07);
  --line: #d4dfe9;
  --ink: #0e1b28;
  --ink-quiet: #3e5265;
  --ink-faint: #53677a;
  --accent: #1863c6;
  --accent-lit: #3a85e6;
  --accent-tint: rgba(24,99,198,.10);
  --accent-edge: rgba(24,99,198,.40);
  --on-act: #0b3a78;
  --focus: rgba(14,27,40,.70);
  --prog-start: #138fa6;
  --kept: #087246;
  --kept-tint: rgba(8,114,70,.10);
  --kept-edge: rgba(8,114,70,.45);
  --accent-2: #8a5d00;
  --accent-2-tint: rgba(138,93,0,.10);
  --accent-2-edge: rgba(138,93,0,.45);
  --refused: #b3392f;
  --pending: #9c4f17;
  --together: #4f6379;
  --agent: oklch(.52 .1 200);
  --agent-tint: oklch(.52 .1 200 / .18);
  --agent-edge: oklch(.52 .1 200 / .5);
  --aurora-sea: rgba(45,212,191,.22);
  --aurora-sky: rgba(96,165,250,.22);
  --aurora-warm: rgba(245,170,60,.30);
  --scrim: rgba(14,27,40,.55);
  --lift: rgba(255,255,255,.55);
  --tone-h65: oklch(var(--tone-l) var(--tone-c) 65);
  --tone-l: .55;
  --tone-c: .14;
  --tone-l2: .70;
  --cat-l: .80;
  --cat-c: .095;
  --cat-l2: .71;
  --data-deep: 30%;
  --data-edge: 1px;
  --ramp-1: oklch(.95 .025 235);
  --ramp-2: oklch(.87 .06 212);
  --ramp-3: oklch(.79 .09 182);
  --ramp-4: oklch(.71 .11 142);
  --ramp-5: oklch(.63 .12 100);
  --shade: rgba(14,27,40,.06);
  color-scheme: light;
  --glow: 0 2px 10px -2px rgba(24,99,198,.40);
  --glow-2: 0 2px 10px -2px rgba(138,93,0,.35);
  --lift-float: 0 8px 24px rgba(14,27,40,.07);
  --shadow-sheet: 0 -8px 32px rgba(14,27,40,.09);
}
[data-theme="black"]{
  --ground: #000000;
  --raised: #0c1925;
  --well: #0b1724;
  --glass: rgba(160,210,255,.09);
  --glass-strong: rgba(160,210,255,.11);
  --glass-edge: rgba(160,210,255,.17);
  --float: rgba(8,14,20,.94);
  --sink: rgba(0,0,0,.22);
  --field: rgba(0,0,0,.22);
  --field-edge: rgba(0,0,0,0);
  --field-in: rgba(0,0,0,.22);
  --field-in-edge: transparent;
  --track: rgba(255,255,255,.10);
  --hairline: rgba(255,255,255,.06);
  --line: #16273a;
  --ink: #ebf3f7;
  --ink-quiet: #a1b4c3;
  --ink-faint: #7c8f9d;
  --accent: #50a8ff;
  --accent-lit: #7cbcff;
  --accent-tint: rgba(80,168,255,.16);
  --accent-edge: rgba(80,168,255,.45);
  --on-act: #f2f8ff;
  --focus: rgba(235,243,247,.70);
  --prog-start: #49c9d9;
  --kept: #26e085;
  --kept-tint: rgba(38,224,133,.16);
  --kept-edge: rgba(38,224,133,.55);
  --accent-2: #f5c451;
  --accent-2-tint: rgba(245,196,81,.16);
  --accent-2-edge: rgba(245,196,81,.45);
  --refused: #ff8f8f;
  --pending: #f0a35e;
  --together: #9fb3c8;
  --agent: oklch(.78 .13 200);
  --agent-tint: oklch(.78 .13 200 / .18);
  --agent-edge: oklch(.78 .13 200 / .5);
  --aurora-sea: rgba(20,184,166,.34);
  --aurora-sky: rgba(59,130,246,.30);
  --aurora-warm: rgba(245,170,60,.42);
  --scrim: rgba(4,11,18,.82);
  --lift: rgba(235,243,247,.06);
  --tone-h65: oklch(var(--tone-l) var(--tone-c) 65);
  --tone-l: .76;
  --tone-c: .13;
  --tone-l2: .62;
  --cat-l: var(--tone-l);
  --cat-c: var(--tone-c);
  --cat-l2: var(--tone-l2);
  --data-deep: 0%;
  --data-edge: 0px;
  --ramp-1: oklch(.36 .05 255);
  --ramp-2: oklch(.50 .08 225);
  --ramp-3: oklch(.64 .10 185);
  --ramp-4: oklch(.78 .12 130);
  --ramp-5: oklch(.91 .13 100);
  --shade: color-mix(in srgb, var(--ink) 14%, transparent);
  color-scheme: dark;
  --glow: 0 0 18px -4px rgba(80,168,255,.65);
  --glow-2: 0 0 18px -4px rgba(245,196,81,.55);
  --lift-float: 0 14px 40px rgba(0,0,0,.50);
  --shadow-sheet: 0 -24px 60px rgba(0,0,0,.55);
}
[data-theme="white"]{
  --ground: #ffffff;
  --raised: #f9fbfe;
  --well: #f4f7fb;
  --glass: rgba(14,27,40,.035);
  --glass-strong: rgba(255,255,255,.80);
  --glass-edge: rgba(14,27,40,.11);
  --float: rgba(255,255,255,.94);
  --sink: rgba(14,27,40,.045);
  --field: rgba(14,27,40,.045);
  --field-edge: rgba(14,27,40,.11);
  --field-in: rgba(14,27,40,.045);
  --field-in-edge: rgba(14,27,40,.11);
  --track: rgba(14,27,40,.10);
  --hairline: rgba(14,27,40,.07);
  --line: #d4dfe9;
  --ink: #0e1b28;
  --ink-quiet: #3e5265;
  --ink-faint: #53677a;
  --accent: #1863c6;
  --accent-lit: #3a85e6;
  --accent-tint: rgba(24,99,198,.10);
  --accent-edge: rgba(24,99,198,.40);
  --on-act: #0b3a78;
  --focus: rgba(14,27,40,.70);
  --prog-start: #138fa6;
  --kept: #087246;
  --kept-tint: rgba(8,114,70,.10);
  --kept-edge: rgba(8,114,70,.45);
  --accent-2: #8a5d00;
  --accent-2-tint: rgba(138,93,0,.10);
  --accent-2-edge: rgba(138,93,0,.45);
  --refused: #b3392f;
  --pending: #9c4f17;
  --together: #4f6379;
  --agent: oklch(.52 .1 200);
  --agent-tint: oklch(.52 .1 200 / .18);
  --agent-edge: oklch(.52 .1 200 / .5);
  --aurora-sea: rgba(45,212,191,.22);
  --aurora-sky: rgba(96,165,250,.22);
  --aurora-warm: rgba(245,170,60,.30);
  --scrim: rgba(14,27,40,.55);
  --lift: rgba(14,27,40,.03);
  --tone-h65: oklch(var(--tone-l) var(--tone-c) 65);
  --tone-l: .55;
  --tone-c: .14;
  --tone-l2: .70;
  --cat-l: .77;
  --cat-c: .095;
  --cat-l2: .68;
  --data-deep: 30%;
  --data-edge: 1px;
  --ramp-1: oklch(.95 .025 235);
  --ramp-2: oklch(.87 .06 212);
  --ramp-3: oklch(.79 .09 182);
  --ramp-4: oklch(.71 .11 142);
  --ramp-5: oklch(.63 .12 100);
  --shade: rgba(14,27,40,.06);
  color-scheme: light;
  --glow: 0 2px 10px -2px rgba(24,99,198,.40);
  --glow-2: 0 2px 10px -2px rgba(138,93,0,.35);
  --lift-float: 0 8px 24px rgba(14,27,40,.07);
  --shadow-sheet: 0 -8px 32px rgba(14,27,40,.09);
}
:root{
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 36px;
  --gap-within: 2px;
  --gap-line: 6px;
  --gap-row: 8px;
  --gap-head: 12px;
  --gap-block: 16px;
  --pad-row: 14px;
  --pad-card: 12px;
  --pad-head: 18px;
  --pad-pane: 24px;
  --r-mark: 4px;
  --r-inner: 12px;
  --r-card: 16px;
  --r-cell: 12px;
  --r-group: 22px;
  --r-sheet: 30px;
  --r-pill: 999px;
  --tap: 44px;
  --tap-tight: 32px;
  --tap-fine: 36px;
  --bar: 64px;
  --bar-at: 18px;
  --drawer: 56px;
  --node: 40px;
  --set-row: 52px;
  --path-in: 46px;
  --day-h: 66px;
  --ribbon-gap: 32px;
  --key: 50px;
  --column: 600px;
  --rail: 72px;
  --rail-wide: 220px;
  --pane-list: 440px;
  --rest-card: 400px;
  --frame: 1440px;
  /* data colours: sixteen categories - the eight plan hues at the theme's cat-l, then a step deeper at cat-l2 */
  --cat-1: oklch(var(--cat-l) var(--cat-c) 245);
  --cat-2: oklch(var(--cat-l) var(--cat-c) 20);
  --cat-3: oklch(var(--cat-l) var(--cat-c) 155);
  --cat-4: oklch(var(--cat-l) var(--cat-c) 290);
  --cat-5: oklch(var(--cat-l) var(--cat-c) 65);
  --cat-6: oklch(var(--cat-l) var(--cat-c) 200);
  --cat-7: oklch(var(--cat-l) var(--cat-c) 335);
  --cat-8: oklch(var(--cat-l) var(--cat-c) 110);
  --cat-9: oklch(var(--cat-l2) var(--cat-c) 245);
  --cat-10: oklch(var(--cat-l2) var(--cat-c) 20);
  --cat-11: oklch(var(--cat-l2) var(--cat-c) 155);
  --cat-12: oklch(var(--cat-l2) var(--cat-c) 290);
  --cat-13: oklch(var(--cat-l2) var(--cat-c) 65);
  --cat-14: oklch(var(--cat-l2) var(--cat-c) 200);
  --cat-15: oklch(var(--cat-l2) var(--cat-c) 335);
  --cat-16: oklch(var(--cat-l2) var(--cat-c) 110);
  /* a page that scrolls with the window: its measure, its distance from the window's edge, the space between its parts */
  --page: 1200px;
  --page-edge: var(--pad-card);
  --gap-part: calc(var(--s6) + var(--s4));
  /* a workspace: a panel of settings, a panel that shows a picture, a strip along the stage's foot; the item opened
     beside a wide list */
  --panel: 360px;
  --panel-wide: 520px;
  --strip: 720px;
  --pane-item: 480px;
  /* the demos' pictures, the same in every theme: a device's own black, the white of a touch on glass */
  --device: #000;
  --touch: rgba(255,255,255,.8);
  --mk-s: 14px;
  --mk: 18px;
  --mk-l: 21px;
  --ring: 1.5px;
  --press: 1px;
  --edge: 3px;
  --blur: 24px;
  --o-off: .5;
  --o-aside: .55;
  --z-sticky: 10;
  --z-pop: 15;
  --z-sheet: 20;
  --z-tip: 30;
  --m-tap: 90ms;
  --m-state: 160ms;
  --m-layer: 240ms;
  --m-spring: 400ms;
  --m-dawn: 1000ms;
  --m-glide: 640ms;
  --ease-out: cubic-bezier(.16,.84,.44,1);
  --ease-in: cubic-bezier(.6,0,.84,.4);
  --ease-move: cubic-bezier(.4,0,.2,1);
  /* the family's one spring: damped at 0.8 of critical, 1.5% past its mark, settled over m-spring */
  --ease-spring: linear(0, 0.057, 0.188, 0.344, 0.498, 0.635, 0.749, 0.837, 0.903, 0.949, 0.98, 0.999, 1.009, 1.014, 1.015, 1.014, 1.012, 1.01, 1.008, 1.005, 1.004, 1.002, 1.001, 1.001, 1);
  --font-sans: 'Figtree', system-ui, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}
@media (min-width:900px){ :root{ --page-edge: var(--pad-pane); --gap-part: calc(var(--s6) * 2); } }
@font-face{font-family:'Figtree';src:url('fonts/figtree-300-900.woff2') format('woff2');font-weight:300 900;font-style:normal;font-display:swap}
.t-page{font-family:var(--font-sans);font-size:24px;line-height:1.15;font-weight:700;letter-spacing:-.01em}
.t-section{font-family:var(--font-sans);font-size:18px;line-height:1.25;font-weight:600}
.t-name{font-family:var(--font-sans);font-size:15px;line-height:1.25;font-weight:600}
.t-body{font-family:var(--font-sans);font-size:14px;line-height:1.45;font-weight:400}
.t-detail{font-family:var(--font-sans);font-size:13px;line-height:1.35;font-weight:400}
.t-label{font-family:var(--font-sans);font-size:11px;line-height:1.25;font-weight:600;letter-spacing:.06em}
.t-display{font-family:var(--font-sans);font-size:clamp(40px,5.6vw,72px);line-height:1.02;font-weight:700;letter-spacing:-.035em;text-wrap:balance}
.t-headline{font-family:var(--font-sans);font-size:clamp(28px,3.2vw,40px);line-height:1.05;font-weight:700;letter-spacing:-.025em;text-wrap:balance}
.t-lead{font-family:var(--font-sans);font-size:clamp(17px,1.6vw,19px);line-height:1.5;font-weight:400;text-wrap:pretty}
.t-prose{font-family:var(--font-sans);font-size:16px;line-height:1.6;font-weight:400;text-wrap:pretty}
.t-code{font-family:var(--font-mono);font-size:13px;line-height:1.5;font-weight:400;font-variant-ligatures:none}
