@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800;900&display=swap");

/* HitMint Candy skin, generated from tokens.json by candy/build.mjs. Do not edit: change the tokens. */
:root {
  --c-canvas: #f6f5fb;
  --c-surface: #ffffff;
  --c-sunken: #f0eff7;
  --c-raised: #ffffff;
  --c-hover: #e9e7f3;
  --c-hole-shade: rgba(0,0,0,0.05);
  --c-edge: #e3e1ee;
  --c-edge-strong: #cfcce1;
  --c-ink: #241f3d;
  --c-ink-2: #47425f;
  --c-ink-3: #645f7d;
  --c-ink-4: #a7a3bd;
  --c-on-candy: #1d1830;
  --c-mint: #34d399;
  --c-mint-lip: #1faa77;
  --c-mint-soft: #dcf7ea;
  --c-mint-ink: #0b7a4f;
  --c-sky: #5cc0ff;
  --c-sky-lip: #2f97dd;
  --c-sky-soft: #e1f2ff;
  --c-sky-ink: #16659f;
  --c-grape: #a78bfa;
  --c-grape-lip: #7f62e0;
  --c-grape-soft: #eee8ff;
  --c-grape-ink: #5a3dc4;
  --c-berry: #ff7eb6;
  --c-berry-lip: #e2558f;
  --c-berry-soft: #ffe6f0;
  --c-berry-ink: #ad2862;
  --c-tangerine: #ff9f45;
  --c-tangerine-lip: #e07a1f;
  --c-tangerine-soft: #ffeedc;
  --c-tangerine-ink: #9c4a00;
  --c-sun: #ffd23f;
  --c-sun-lip: #dcaa10;
  --c-sun-soft: #fff5cf;
  --c-sun-ink: #835c00;
  --c-coral: #ff6b6b;
  --c-coral-lip: #e04848;
  --c-coral-soft: #ffe5e3;
  --c-coral-ink: #b2222b;
  --c-brand: var(--c-mint);
  --c-brand-lip: var(--c-mint-lip);
  --c-brand-soft: var(--c-mint-soft);
  --c-brand-ink: var(--c-mint-ink);
  --c-good: var(--c-mint);
  --c-warn: var(--c-sun);
  --c-bad: var(--c-coral);
  --c-stage-understand: var(--c-sky);
  --c-stage-validate: var(--c-grape);
  --c-stage-strategy: var(--c-berry);
  --c-stage-studio: var(--c-tangerine);
  --c-stage-launch: var(--c-mint);
  --c-focus: var(--c-sky-ink);
  --c-float: 0 18px 40px -18px rgba(36,31,61,0.28);
  --c-space-1: 4px;
  --c-space-2: 8px;
  --c-space-3: 12px;
  --c-space-4: 16px;
  --c-space-5: 20px;
  --c-space-6: 24px;
  --c-space-8: 32px;
  --c-space-12: 48px;
  --c-radius-xs: 8px;
  --c-radius-sm: 10px;
  --c-radius-md: 12px;
  --c-radius-lg: 14px;
  --c-radius-xl: 16px;
  --c-radius-2xl: 20px;
  --c-radius-3xl: 32px;
  --c-radius-full: 999px;
  --c-ring: 2px;
  --c-lip-xs: 2px;
  --c-lip-sm: 3px;
  --c-lip-md: 4px;
  --c-lip-lg: 6px;
  --c-font-display: Rubik, system-ui, -apple-system, "Segoe UI", sans-serif;
  --c-font-text: Rubik, system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
  --c-canvas: #151419;
  --c-surface: #1f1e25;
  --c-sunken: #27252f;
  --c-raised: #32303b;
  --c-hover: #2d2b36;
  --c-hole-shade: rgba(0,0,0,0.3);
  --c-edge: #33313d;
  --c-edge-strong: #464351;
  --c-ink: #f5f4f9;
  --c-ink-2: #d1ced9;
  --c-ink-3: #a4a0b0;
  --c-ink-4: #706c7f;
  --c-on-candy: #1d1830;
  --c-mint: #34d399;
  --c-mint-lip: #1faa77;
  --c-mint-soft: #123a2c;
  --c-mint-ink: #74e8bb;
  --c-sky: #5cc0ff;
  --c-sky-lip: #2f97dd;
  --c-sky-soft: #132f4b;
  --c-sky-ink: #93d4ff;
  --c-grape: #a78bfa;
  --c-grape-lip: #7f62e0;
  --c-grape-soft: #2a2452;
  --c-grape-ink: #c7b8ff;
  --c-berry: #ff7eb6;
  --c-berry-lip: #e2558f;
  --c-berry-soft: #3f1b33;
  --c-berry-ink: #ffaccf;
  --c-tangerine: #ff9f45;
  --c-tangerine-lip: #e07a1f;
  --c-tangerine-soft: #3d2816;
  --c-tangerine-ink: #ffc185;
  --c-sun: #ffd23f;
  --c-sun-lip: #dcaa10;
  --c-sun-soft: #3a3212;
  --c-sun-ink: #ffe17d;
  --c-coral: #ff6b6b;
  --c-coral-lip: #e04848;
  --c-coral-soft: #3f1c22;
  --c-coral-ink: #ff9e9e;
  --c-brand: var(--c-mint);
  --c-brand-lip: var(--c-mint-lip);
  --c-brand-soft: var(--c-mint-soft);
  --c-brand-ink: var(--c-mint-ink);
  --c-good: var(--c-mint);
  --c-warn: var(--c-sun);
  --c-bad: var(--c-coral);
  --c-stage-understand: var(--c-sky);
  --c-stage-validate: var(--c-grape);
  --c-stage-strategy: var(--c-berry);
  --c-stage-studio: var(--c-tangerine);
  --c-stage-launch: var(--c-mint);
  --c-focus: var(--c-sky-ink);
  --c-float: 0 18px 40px -16px rgba(0,0,0,0.6);
  color-scheme: dark;
}
}
:root[data-theme="dark"] {
  --c-canvas: #151419;
  --c-surface: #1f1e25;
  --c-sunken: #27252f;
  --c-raised: #32303b;
  --c-hover: #2d2b36;
  --c-hole-shade: rgba(0,0,0,0.3);
  --c-edge: #33313d;
  --c-edge-strong: #464351;
  --c-ink: #f5f4f9;
  --c-ink-2: #d1ced9;
  --c-ink-3: #a4a0b0;
  --c-ink-4: #706c7f;
  --c-on-candy: #1d1830;
  --c-mint: #34d399;
  --c-mint-lip: #1faa77;
  --c-mint-soft: #123a2c;
  --c-mint-ink: #74e8bb;
  --c-sky: #5cc0ff;
  --c-sky-lip: #2f97dd;
  --c-sky-soft: #132f4b;
  --c-sky-ink: #93d4ff;
  --c-grape: #a78bfa;
  --c-grape-lip: #7f62e0;
  --c-grape-soft: #2a2452;
  --c-grape-ink: #c7b8ff;
  --c-berry: #ff7eb6;
  --c-berry-lip: #e2558f;
  --c-berry-soft: #3f1b33;
  --c-berry-ink: #ffaccf;
  --c-tangerine: #ff9f45;
  --c-tangerine-lip: #e07a1f;
  --c-tangerine-soft: #3d2816;
  --c-tangerine-ink: #ffc185;
  --c-sun: #ffd23f;
  --c-sun-lip: #dcaa10;
  --c-sun-soft: #3a3212;
  --c-sun-ink: #ffe17d;
  --c-coral: #ff6b6b;
  --c-coral-lip: #e04848;
  --c-coral-soft: #3f1c22;
  --c-coral-ink: #ff9e9e;
  --c-brand: var(--c-mint);
  --c-brand-lip: var(--c-mint-lip);
  --c-brand-soft: var(--c-mint-soft);
  --c-brand-ink: var(--c-mint-ink);
  --c-good: var(--c-mint);
  --c-warn: var(--c-sun);
  --c-bad: var(--c-coral);
  --c-stage-understand: var(--c-sky);
  --c-stage-validate: var(--c-grape);
  --c-stage-strategy: var(--c-berry);
  --c-stage-studio: var(--c-tangerine);
  --c-stage-launch: var(--c-mint);
  --c-focus: var(--c-sky-ink);
  --c-float: 0 18px 40px -16px rgba(0,0,0,0.6);
  color-scheme: dark;
}
/* ===================================================================================
   Candy skin: carries the HitMint Candy design system onto the tool and the landing.
   The tokens above this line are generated from the system's tokens.json (--c-*).
   Everything below only maps them; never write a colour or a size here.
   Unlayered on purpose: it wins over Tailwind's layered utilities without !important.
   =================================================================================== */

/* ---------- 1. The tool's tokens (Tailwind theme variables) ---------- */
:root:not(#candy) {
  --bg: var(--c-canvas);
  --surface: var(--c-surface);
  --surface-2: var(--c-sunken);
  --muted: var(--c-sunken);
  --hover: var(--c-hover);
  --line: var(--c-edge);
  --line-soft: var(--c-sunken);
  --edge: var(--c-edge);
  --raised: var(--c-raised);
  --ink: var(--c-ink);
  --ink-2: var(--c-ink-2);
  --ink-3: var(--c-ink-3);
  --ink-4: var(--c-ink-4);
  --accent: var(--c-brand-ink);
  --accent-ink: var(--c-brand-ink);
  --accent-soft: var(--c-brand-soft);
  --accent-solid: var(--c-brand);
  --good: var(--c-mint-ink);
  --good-soft: var(--c-mint-soft);
  --bad: var(--c-coral-ink);
  --bad-dot: var(--c-coral);
  --bad-soft: var(--c-coral-soft);
  --warn: var(--c-sun-ink);
  --warn-dot: var(--c-sun);
  --warn-soft: var(--c-sun-soft);
  --inverse: var(--c-ink);
  --inverse-ink: var(--c-surface);
  --lift: var(--c-ink);
  --on-solid: var(--c-on-candy);
  --sky: var(--c-sky-soft);
  --sky-ink: var(--c-sky-ink);
  --rose: var(--c-berry-soft);
  --rose-ink: var(--c-berry-ink);
  --mint: var(--c-mint);
  --mint-hover: var(--c-mint);
  --on-mint: var(--c-on-candy);
  /* shadows become outline + solid lip; only menus and dialogs keep a soft float */
  --sh-xs: none; /* small things sit inside outlined things: flat, no outline and no lip */
  --sh-sm: 0 0 0 var(--c-ring) var(--c-edge), 0 var(--c-lip-md) 0 0 var(--c-edge);
  --sh-md: 0 0 0 var(--c-ring) var(--c-edge), 0 var(--c-lip-md) 0 0 var(--c-edge), var(--c-float);
  --sh-lg: 0 0 0 var(--c-ring) var(--c-edge), 0 var(--c-lip-lg) 0 0 var(--c-edge), var(--c-float);
  /* Tailwind's named radii, on the candy scale */
  --radius-sm: var(--c-radius-xs);
  --radius-md: var(--c-radius-sm);
  --radius-lg: var(--c-radius-md);
  --radius-xl: var(--c-radius-lg);
  --radius-2xl: var(--c-radius-xl);
  --radius-3xl: var(--c-radius-2xl);
  --radius-4xl: var(--c-radius-3xl);
  /* type: one rounded text face, a softer display face; weights one step bolder */
  --font-geist-sans: var(--c-font-text);
  --font-geist-mono: var(--c-font-text);
  --display-family: var(--c-font-display);
  --font-weight-medium: 500;
  --font-weight-semibold: 500;
  --font-weight-bold: 600;

  /* ---------- 2. The landing's tokens ---------- */
  --paper: var(--c-canvas);
  --paper-2: var(--c-sunken);
  --card: var(--c-surface);
  --mint-ink: var(--c-mint-ink);
  --mint-soft: var(--c-mint-soft);
  --aqua: var(--c-sky);
  --lime: var(--c-sun-soft);
  --red: var(--c-coral-ink);
  --red-soft: var(--c-coral-soft);
  --amber: var(--c-sun-ink);
  --amber-soft: var(--c-sun-soft);
  --glass: var(--c-surface);
  --solid: var(--c-ink);
  --final: var(--c-ink);
  --shadow-sm: 0 0 0 var(--c-ring) var(--c-edge), 0 var(--c-lip-xs) 0 0 var(--c-edge);
  --shadow: 0 0 0 var(--c-ring) var(--c-edge), 0 var(--c-lip-md) 0 0 var(--c-edge);
  --shadow-lg: 0 0 0 var(--c-ring) var(--c-edge), 0 var(--c-lip-lg) 0 0 var(--c-edge), var(--c-float);
  --r-btn: var(--c-radius-xl);
  --r-card: var(--c-radius-2xl);
  --r-sm: var(--c-radius-sm);
  --sans: var(--c-font-text);
  --mono: var(--c-font-text);
}

/* Stage hues: anything inside a stage's link or page picks its hue up as --hue. */
:root { --hue: var(--c-brand); --hue-lip: var(--c-brand-lip); --hue-soft: var(--c-brand-soft); --hue-ink: var(--c-brand-ink); }
[data-lab-route$="/understand"], [data-candy-stage="understand"] { --hue: var(--c-stage-understand); --hue-lip: var(--c-sky-lip); --hue-soft: var(--c-sky-soft); --hue-ink: var(--c-sky-ink); }
[data-lab-route$="/validate"], [data-candy-stage="validate"] { --hue: var(--c-stage-validate); --hue-lip: var(--c-grape-lip); --hue-soft: var(--c-grape-soft); --hue-ink: var(--c-grape-ink); }
[data-lab-route$="/strategy"], [data-candy-stage="strategy"] { --hue: var(--c-stage-strategy); --hue-lip: var(--c-berry-lip); --hue-soft: var(--c-berry-soft); --hue-ink: var(--c-berry-ink); }
[data-lab-route$="/studio"], [data-candy-stage="studio"] { --hue: var(--c-stage-studio); --hue-lip: var(--c-tangerine-lip); --hue-soft: var(--c-tangerine-soft); --hue-ink: var(--c-tangerine-ink); }
[data-lab-route$="/launch"], [data-candy-stage="launch"] { --hue: var(--c-stage-launch); --hue-lip: var(--c-mint-lip); --hue-soft: var(--c-mint-soft); --hue-ink: var(--c-mint-ink); }

/* ---------- 3. Base ---------- */
body { font-family: var(--c-font-text); font-size: 14.5px; font-weight: 400; }
h1, h2, .font-display { font-family: var(--c-font-display); font-weight: 600; letter-spacing: -0.01em; }
.font-mono { font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: 0.04em; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
svg.lucide { stroke-width: 2.1; }

/* ---------- 4. Buttons (tool .flood/.press, landing .btn) ----------
   Hover: a touch brighter. Press: it sinks by its lip. No flood circle. */
.btn::after { display: none !important; }
.flood.press, .btn {
  transition: transform 0.1s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.1s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s, filter 0.2s, color 0.2s;
}

/* Hover flood: a circle grows from where the pointer comes in (lab-frame.js sets --fx/--fy/--fs).
   The main button rests a paler green and floods to full brand; quiet buttons flood with the hover grey. */
.flood { --flood: var(--c-hover); }
.flood.press.bg-inverse { --flood: var(--c-brand); }
.flood.press.bg-bad-soft { --flood: color-mix(in srgb, var(--c-coral) 30%, var(--c-coral-soft)); }
/* main: brand fill, ink label, brand lip */
.flood.press.bg-inverse, .btn-primary, .btn-brand {
  background: var(--c-brand); color: var(--c-on-candy);
  box-shadow: 0 0 0 var(--c-ring) var(--c-brand-lip), 0 var(--c-lip-md) 0 0 var(--c-brand-lip);
  font-weight: 600;
}
.flood.press.bg-inverse { background: color-mix(in srgb, var(--c-brand) 45%, white); }
.flood.press.bg-inverse:hover, .btn-primary:hover, .btn-brand:hover { color: var(--c-on-candy); }
/* secondary: white with an outline and a grey lip */
.flood.press.bg-muted, .btn-soft, .btn-glass {
  background: var(--c-surface); color: var(--c-ink);
  box-shadow: 0 0 0 var(--c-ring) var(--c-edge), 0 var(--c-lip-md) 0 0 var(--c-edge);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.flood.press.bg-bad-soft { background: var(--c-coral-soft); color: var(--c-coral-ink); box-shadow: 0 0 0 var(--c-ring) var(--c-coral-lip), 0 var(--c-lip-md) 0 0 var(--c-coral-lip); }
.flood.press.h-8 { --press: var(--c-lip-sm); }
.flood.press.bg-inverse.h-8 { box-shadow: 0 0 0 var(--c-ring) var(--c-brand-lip), 0 var(--c-lip-sm) 0 0 var(--c-brand-lip); }
.flood.press.bg-bad-soft.h-8 { box-shadow: 0 0 0 var(--c-ring) var(--c-coral-lip), 0 var(--c-lip-sm) 0 0 var(--c-coral-lip); }
.flood.press.bg-muted.h-8 { box-shadow: 0 0 0 var(--c-ring) var(--c-edge), 0 var(--c-lip-sm) 0 0 var(--c-edge); }
.flood.press:is(.bg-inverse, .bg-muted, .bg-bad-soft):active, .btn:is(.btn-primary, .btn-brand, .btn-soft, .btn-glass):active {
  transform: translateY(var(--c-lip-md));
  box-shadow: 0 0 0 var(--c-ring) var(--c-brand-lip);
}
.flood.press.bg-bad-soft:active { box-shadow: 0 0 0 var(--c-ring) var(--c-coral-lip); }
.flood.press.bg-muted:active, .btn:is(.btn-soft, .btn-glass):active { box-shadow: 0 0 0 var(--c-ring) var(--c-edge); }
.flood.press.h-8:active { transform: translateY(var(--c-lip-sm)); }
.press:active { transform: translateY(1px); }

/* ---------- 5. Picks: option cards, segmented switches, chips ---------- */
button[role="radio"].rounded-2xl, button[role="checkbox"].rounded-2xl {
  border-color: transparent !important;
  background: var(--c-surface);
  box-shadow: 0 0 0 var(--c-ring) var(--c-edge), 0 var(--c-lip-md) 0 0 var(--c-edge);
  transition: transform 0.1s, box-shadow 0.15s, background-color 0.2s;
}
button[role="radio"].rounded-2xl:hover, button[role="checkbox"].rounded-2xl:hover { background: var(--c-surface); box-shadow: 0 0 0 var(--c-ring) var(--c-edge-strong), 0 var(--c-lip-md) 0 0 var(--c-edge-strong); transform: none; }
button[aria-checked="true"].rounded-2xl {
  background: color-mix(in srgb, var(--c-brand-soft) 55%, var(--c-surface)) !important;
  box-shadow: 0 0 0 var(--c-ring) var(--c-brand-lip), 0 var(--c-lip-md) 0 0 var(--c-brand-lip) !important;
}
button[role="radio"].rounded-2xl:active, button[role="checkbox"].rounded-2xl:active { transform: translateY(var(--c-lip-xs)); }
.glow::before { display: none; }
/* segmented track: a sunken track, the picked segment raised on a small lip */
[role="radiogroup"].bg-muted { background: var(--c-sunken); box-shadow: none; }
/* multi-pick chips */
[role="group"] > button[role="checkbox"].rounded-xl { background: var(--c-sunken); box-shadow: none; }
[role="group"] > button[role="checkbox"][aria-checked="true"].rounded-xl { background: var(--c-brand-soft); color: var(--c-brand-ink); box-shadow: none; }

/* ---------- 6. Fields ---------- */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), textarea, select {
  font-family: var(--c-font-text); font-weight: 500;
}
input.bg-muted, textarea.bg-muted, select.bg-muted, .focus-within\:bg-surface.bg-muted {
  background: var(--c-sunken);
  box-shadow: none;
}
input.bg-muted:focus, textarea.bg-muted:focus, .focus-within\:bg-surface.bg-muted:focus-within {
  background: var(--c-sunken);
  box-shadow: inset 0 0 0 var(--c-ring) var(--c-brand);
}
/* A field made of a grey wrapper around a bare textarea (the chat box): the wrapper shows focus. */
.bg-muted:has(> textarea.bg-transparent:focus, > input.bg-transparent:not([type="checkbox"]):not([type="radio"]):focus) { background: var(--c-sunken) !important; box-shadow: inset 0 0 0 var(--c-ring) var(--c-brand) !important; }
/* Text fields never draw the square focus outline: the field itself shows focus, on its own radius. */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus-visible, textarea:focus-visible, select:focus-visible,
.focus-within\:bg-surface.bg-muted :is(input, textarea):focus-visible { outline: none; }
input[type="checkbox"], input[type="radio"] { box-shadow: inset 0 0 0 var(--c-ring) var(--c-edge-strong); }

/* Range slider: no native chrome. A flat pill track (brand up to the value), a white knob outlined and lipped in brand-lip. */
input[type="range"] { -webkit-appearance: none; appearance: none; height: 24px; background: transparent; box-shadow: none; cursor: pointer; --v: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: var(--c-radius-full); background: linear-gradient(to right, var(--c-brand) var(--v), var(--c-edge) var(--v)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: var(--c-radius-full); background: var(--c-edge); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: var(--c-radius-full); background: var(--c-brand); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: var(--c-surface); box-shadow: 0 0 0 var(--c-ring) var(--c-brand-lip), 0 var(--c-lip-xs) 0 0 var(--c-brand-lip); transition: transform 0.15s cubic-bezier(0.34, 1.3, 0.64, 1); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--c-surface); box-shadow: 0 0 0 var(--c-ring) var(--c-brand-lip), 0 var(--c-lip-xs) 0 0 var(--c-brand-lip); }
input[type="range"]:active::-webkit-slider-thumb { transform: translateY(var(--c-lip-xs)); box-shadow: 0 0 0 var(--c-ring) var(--c-brand-lip); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 var(--c-ring) var(--c-brand-lip), 0 var(--c-lip-xs) 0 0 var(--c-brand-lip), 0 0 0 6px var(--c-sky-soft); }

/* ---------- 7. Stages: every stage name, everywhere, wears its hue ----------
   candy.js tags short labels that name a stage, the stage bar's thumb and the page. */
[data-candy-stage]:not(body):not(li[data-vt]) { color: var(--hue-ink) !important; }
[data-candy-stage]:not(body):not(li[data-vt])::before {
  content: ""; display: inline-block; flex: none; width: 0.66em; height: 0.66em; margin-right: 0.42em; border-radius: 0.2em;
  background: var(--hue); vertical-align: 0.02em;
}
/* the current stage: the thumb under it takes the stage's soft tint, outline and lip */
/* tracks stand, picks sink: the track is stroked and lipped in its lip colour, the pick inside is pressed in */
.bg-muted:has(> .bg-raised.shadow-xs, > li[data-vt="stage-thumb"]) { box-shadow: 0 0 0 var(--c-ring) var(--c-edge-strong), 0 var(--c-lip-sm) 0 0 var(--c-edge-strong); margin-bottom: var(--c-lip-sm); }
[role="radiogroup"].bg-muted, nav[aria-label="Idea stages"] ol.bg-muted { padding: 6px; }
nav[aria-label="Idea stages"] ol > li[data-vt="stage-thumb"] { top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px - (var(--n) - 1) * 4px) / var(--n)) !important; }
.bg-muted > .bg-raised.shadow-xs { background: var(--c-raised); box-shadow: inset 0 0 0 1px var(--c-hole-shade); }
/* the current step chip under the stage bar is a pick too: it sinks */
a[aria-label*=" step "][title].bg-surface.shadow-xs, a[aria-current="page"].bg-surface.shadow-xs { background: var(--c-raised); box-shadow: inset 0 0 0 1px var(--c-hole-shade); }
nav[aria-label="Idea stages"] ol > li[data-vt="stage-thumb"].bg-raised { background: var(--hue-soft); box-shadow: none; border-radius: var(--c-radius-sm); }
/* an empty tick inside an option card: just its outline, flat */
.size-\[18px\].bg-surface.shadow-xs { box-shadow: inset 0 0 0 var(--c-ring) var(--c-edge-strong); }
/* radius follows padding on cards: padding = radius, so nothing inside meets the corner */
.rounded-\[22px\] { border-radius: var(--c-radius-2xl); }
.rounded-\[22px\]:is(.p-3, .p-4, .p-5):not([class*="__dock"] *) { padding: var(--c-space-5); }
nav[aria-label="Idea stages"] ol.bg-muted { background: var(--c-sunken); box-shadow: none; }
/* on a stage's pages, eyebrows speak in that stage's colour */
body[data-candy-stage] main .font-mono.uppercase { color: var(--hue-ink); }

/* ---------- 8. Landing details ---------- */
.badge, .chip, .tag { font-weight: 600; }
.chip { background: var(--c-surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
.run, .pane-card, .how-card, .quote { box-shadow: 0 0 0 var(--c-ring) var(--c-edge), 0 var(--c-lip-lg) 0 0 var(--c-edge); backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--c-surface); }
.stage-tab { background: var(--c-sunken); }

/* ---------- 9. Lip space: a lip is part of the thing, so layout makes room for it ----------
   Lipped items keep their lip clear below them; tracks pad their bottom by the lip of what they hold. */
.flood.press:is(.bg-inverse, .bg-muted, .bg-bad-soft), .btn:is(.btn-primary, .btn-brand, .btn-soft, .btn-glass) { margin-bottom: var(--c-lip-md); }
.flood.press:is(.bg-inverse, .bg-muted, .bg-bad-soft).h-8 { margin-bottom: var(--c-lip-sm); }
[role="radiogroup"].grid, [role="group"].grid { row-gap: calc(10px + var(--c-lip-md)); column-gap: 12px; }
[role="group"].flex-wrap { row-gap: calc(8px + var(--c-lip-xs)); }
.focus-within\:bg-surface.bg-muted { padding-bottom: calc(6px + var(--c-lip-xs)); }

/* ---------- 10. Calm: one stroke deep, notes as icons ----------
   A stroked thing never holds another stroked thing. Tracks stand on the canvas; inside a card only the
   main action keeps its stroke and lip, everything else is a flat fill. */
/* a. Tabs that switch a card's content leave it: the track stands above, full width; the content is the card. */
section.rounded-\[22px\]:has(> div.relative.grid.rounded-2xl.bg-muted) {
  background: transparent; box-shadow: none; padding: 0; overflow: visible; gap: calc(var(--c-space-3) + var(--c-lip-sm));
}
section.rounded-\[22px\]:has(> div.relative.grid.rounded-2xl.bg-muted) > header { padding: 0 4px; }
section.rounded-\[22px\]:has(> div.relative.grid.rounded-2xl.bg-muted) > div:not(.relative):not(.hidden),
section.rounded-\[22px\]:has(> div.relative.grid.rounded-2xl.bg-muted) > div.hidden {
  background: var(--c-surface); border-radius: var(--c-radius-2xl); padding: var(--c-space-5);
  box-shadow: 0 0 0 var(--c-ring) var(--c-edge), 0 var(--c-lip-md) 0 0 var(--c-edge); margin-bottom: var(--c-lip-md);
}
/* b. The ideas filter (lifted out of the list card by candy.js): full width, segments share it evenly. */
[data-candy-lifted] { padding: 0; }
nav[aria-label="Filter"].bg-muted { width: 100%; padding: 6px; }
nav[aria-label="Filter"].bg-muted > a { flex: 1 0 auto; justify-content: center; }
section.rise-in.overflow-hidden.rounded-\[22px\]:has(> ul) { overflow: visible; }
section.rise-in.rounded-\[22px\] > ul > li:last-child > a { border-radius: 0 0 var(--c-radius-2xl) var(--c-radius-2xl); }
/* c. Inside a card, tracks and wells are flat: no stroke, no lip. The pick stays white. */
:is(.rounded-\[22px\], [class*="__dock"]) .bg-muted:not(.flood) { box-shadow: none; margin-bottom: 0; }
:is(.rounded-\[22px\], [class*="__dock"]) [role="radiogroup"] > .bg-raised,
.bg-muted > .bg-surface.shadow-sm { background: var(--c-raised); box-shadow: inset 0 0 0 1px var(--c-hole-shade); }
/* ...except the content tabs lifted in (a), which stand on the canvas again */
section.rounded-\[22px\]:has(> div.relative.grid.rounded-2xl.bg-muted) > div.relative.grid.rounded-2xl.bg-muted {
  box-shadow: 0 0 0 var(--c-ring) var(--c-edge-strong), 0 var(--c-lip-sm) 0 0 var(--c-edge-strong); margin-bottom: 0;
}
/* d. Inside a card only the main action stands: secondary and quiet buttons are flat fills. */
:is(.rounded-\[22px\], [class*="__dock"]) .flood.press.bg-muted {
  background: var(--c-sunken); box-shadow: none; margin-bottom: 0;
}

:is(.rounded-\[22px\], [class*="__dock"]) .flood.press.bg-bad-soft { box-shadow: none; margin-bottom: 0; }
:is(.rounded-\[22px\], [class*="__dock"]) .flood.press:is(.bg-muted, .bg-bad-soft):active { transform: translateY(1px); box-shadow: none; }
/* d2. Icon-only buttons inside a card or field (send, small row actions) are flat: no stroke, no lip.
   The send arrow keeps a plain brand fill so it still reads as the way out of the field. */
:is(.rounded-\[22px\], [class*="__dock"], .bg-muted) .flood.press[class*="size-"] { box-shadow: none !important; margin-bottom: 0; }
:is(.rounded-\[22px\], [class*="__dock"], .bg-muted) .flood.press.bg-inverse[class*="size-"] { background: var(--c-brand); color: var(--c-on-candy); }
:is(.rounded-\[22px\], [class*="__dock"], .bg-muted) .flood.press[class*="size-"]:active { transform: translateY(1px); }
/* e. A split work area (dock + canvas) is one card; a ring-width edge line divides it. */
[class*="board-module"][class*="__frame"] {
  border-radius: var(--c-radius-2xl);
  box-shadow: 0 0 0 var(--c-ring) var(--c-edge), 0 var(--c-lip-md) 0 0 var(--c-edge);
}
[class*="board-module"][class*="__dock"] { box-shadow: none; border-right: var(--c-ring) solid var(--c-edge); }
[class*="__dock"] .rounded-\[22px\] { box-shadow: none; }
/* f. Notes are icons; their words wait in a tooltip. One floating layer, ink on light, surface on dark. */
[data-candy-gone] { display: none !important; }
li a [data-candy-stage] > .text-ink-4 { display: none; } /* the stage's trailing dot: nothing follows it any more */
[data-candy-note] { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin: -3px 0; border-radius: var(--c-radius-full); outline-offset: 1px; }
[data-candy-note="warn"] { color: var(--c-sun-ink); }
[data-candy-note]:hover, [data-candy-note]:focus-visible { background: var(--c-sun-soft); }
li a > span:has(> [data-candy-stage]):has(> [data-candy-note]) { flex-direction: row; align-items: center; gap: 6px; }
[data-candy-tip] { position: relative; }
[data-candy-meta] { align-self: flex-start; width: fit-content; display: inline-flex; align-items: center; gap: 5px; cursor: default; border-radius: 4px; }
[data-candy-meta] svg { color: var(--c-ink-4); }
[data-candy-meta]:hover svg, [data-candy-meta]:focus-visible svg { color: var(--c-ink-2); }
[data-candy-iconly] { overflow: visible; width: 32px; padding: 0 !important; gap: 0 !important; }
/* a lifted content-tab section keeps a clear gap below the card above it */
section.rounded-\[22px\]:has(> div.relative.grid.rounded-2xl.bg-muted) { margin-top: var(--c-space-2); }
[data-candy-tip]::after {
  content: attr(data-candy-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 60;
  width: max-content; max-width: 240px; padding: 6px 10px; border-radius: var(--c-radius-sm);
  background: var(--c-ink); color: var(--c-surface); box-shadow: var(--c-float);
  font: 500 12.5px/1.4 var(--c-font-text); letter-spacing: 0; text-transform: none; text-align: left; white-space: normal;
  opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity 0.15s, transform 0.15s;
}
[data-candy-tip]:hover::after, [data-candy-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); transition-delay: 0.12s; }
/* a tip starts where its anchor starts (meta lines) or ends where it ends (row actions), so it never leaves the card */
[data-candy-meta]::after { left: 0; transform: translate(0, 4px); }
[data-candy-iconly]::after { left: auto; right: 0; transform: translate(0, 4px); }
[data-candy-meta]:is(:hover, :focus-visible)::after, [data-candy-iconly]:is(:hover, :focus-visible)::after { transform: translate(0, 0); }

/* ---------- 11. Colour over monochrome, and room to work ---------- */
/* a. The page filter is the one dark pick on the canvas: ink fill, light label. Each filter wears its state's hue. */
nav[aria-label="Filter"].bg-muted > a[aria-current="page"] { background: var(--c-ink); color: var(--c-surface); box-shadow: none; }
nav[aria-label="Filter"].bg-muted > a[aria-current="page"] .font-mono { color: var(--c-surface); opacity: 0.7; }
nav[aria-label="Filter"] > a:is([data-lab-route$="filter=running"], [data-lab-route$="filter=green"], [data-lab-route$="filter=red"], [data-lab-route$="filter=production"])::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot);
}
nav[aria-label="Filter"] > a[data-lab-route$="filter=running"] { --dot: var(--c-grape); --num: var(--c-grape-ink); }
nav[aria-label="Filter"] > a[data-lab-route$="filter=green"] { --dot: var(--c-mint); --num: var(--c-mint-ink); }
nav[aria-label="Filter"] > a[data-lab-route$="filter=red"] { --dot: var(--c-coral); --num: var(--c-coral-ink); }
nav[aria-label="Filter"] > a[data-lab-route$="filter=production"] { --dot: var(--c-sky); --num: var(--c-sky-ink); }
nav[aria-label="Filter"] > a[data-lab-route$="filter=waiting"] { --num: var(--c-sun-ink); }
nav[aria-label="Filter"] > a:not([aria-current="page"]) .font-mono { color: var(--num, var(--c-ink-3)); }
/* b. Money is green. */
[data-candy-money="tag"] { display: inline-flex; align-items: center; justify-self: end; width: fit-content; height: 22px; padding: 0 8px; border-radius: var(--c-radius-xs); background: var(--c-mint-soft); color: var(--c-mint-ink) !important; font-weight: 600; }
[data-candy-money="pill"] { background: var(--c-mint-soft); color: var(--c-mint-ink); }
[data-candy-money="big"], [data-candy-money="ink"] { color: var(--c-mint-ink); }
[data-candy-money="ink"] { font-weight: 600; }
[data-candy-money="pill"] * { color: inherit; }
li a [data-candy-money="tag"] { margin-left: auto; }
/* c. Each idea's initial tile, in its stage's hue (flat, like every tile inside a card). */
[data-candy-avatar-cell] { display: grid !important; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; align-items: center; }
[data-candy-avatar-cell] > :not([data-candy-avatar]) { grid-column: 2; }
[data-candy-avatar] { grid-row: 1 / span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--c-radius-md); font: 600 15px/1 var(--c-font-display); background: var(--av-soft); color: var(--av-ink); }
[data-candy-avatar="understand"] { --av-soft: var(--c-sky-soft); --av-ink: var(--c-sky-ink); }
[data-candy-avatar="validate"] { --av-soft: var(--c-grape-soft); --av-ink: var(--c-grape-ink); }
[data-candy-avatar="strategy"] { --av-soft: var(--c-berry-soft); --av-ink: var(--c-berry-ink); }
[data-candy-avatar="studio"] { --av-soft: var(--c-tangerine-soft); --av-ink: var(--c-tangerine-ink); }
[data-candy-avatar="launch"] { --av-soft: var(--c-mint-soft); --av-ink: var(--c-mint-ink); }
/* d. The sidebar's current page: a flat brand tint, no outline or lip (a lip ran into the hover of the row below). */
span.pointer-events-none.absolute.inset-x-0.top-0.rounded-xl.bg-surface.shadow-sm { background: var(--c-brand-soft); box-shadow: none; }
a[aria-current="page"].lg\:h-\[38px\] { color: var(--c-brand-ink); }
@media (max-width: 1023px) { a[aria-current="page"].lg\:h-\[38px\] { background: var(--c-brand-soft); box-shadow: none; } }
/* e. Menus float clearly above whatever lies under them. */
nav[aria-label="Idea stages"] .shadow-md { box-shadow: 0 0 0 var(--c-ring) var(--c-edge-strong), 0 var(--c-lip-lg) 0 0 var(--c-edge-strong), var(--c-float); }
/* e2. Every picked card, chip or name (the app marks them border-accent + bg-accent-soft): no thin dark line;
   it is stroked and lipped in brand-lip like a picked option, on a light green fill. */
.border-accent.bg-accent-soft, [class*="has-[:checked]:border-accent"]:has(:checked) {
  border-color: transparent !important; background: color-mix(in srgb, var(--c-brand-soft) 55%, var(--c-surface)) !important;
  box-shadow: 0 0 0 var(--c-ring) var(--c-brand-lip), 0 var(--c-lip-md) 0 0 var(--c-brand-lip) !important;
}
.border-accent.bg-accent-soft:is(.h-7, .h-8, .h-9) { box-shadow: 0 0 0 var(--c-ring) var(--c-brand-lip), 0 var(--c-lip-sm) 0 0 var(--c-brand-lip) !important; }
/* e3. The idea header (stage bar and its menus) stacks above the page: it carries a view-transition name, which
   makes it its own stacking layer, so without this the sticky side column painted over the stage menus. */
header:has(> nav[aria-label="Idea stages"]) { position: relative; z-index: 40; }
/* e4. A row's own switch (Competitor / Adjacent / Not a competitor) says only its answer, as a small tag in that
   answer's hue. Hovering or focusing the row opens the full switch over the row's end, like a small menu. */
li.glow div[role="radiogroup"][aria-label$=" relation"] { display: flex; width: auto; padding: 0; background: transparent; box-shadow: none; }
li.glow div[role="radiogroup"][aria-label$=" relation"] > span[aria-hidden] { display: none; }
li.glow div[role="radiogroup"][aria-label$=" relation"] > button[aria-checked="false"] { display: none; }
li.glow div[role="radiogroup"][aria-label$=" relation"] > button[aria-checked="true"] { height: 24px; padding: 0 9px; border-radius: var(--c-radius-xs); background: var(--tag-soft, var(--c-mint-soft)); color: var(--tag-ink, var(--c-mint-ink)); overflow: visible; }
li.glow div[role="radiogroup"][aria-label$=" relation"] > button[data-candy-kind="Adjacent"] { --tag-soft: var(--c-sky-soft); --tag-ink: var(--c-sky-ink); }
li.glow div[role="radiogroup"][aria-label$=" relation"] > button[data-candy-kind="Not a competitor"] { --tag-soft: var(--c-sunken); --tag-ink: var(--c-ink-3); }

/* f. The lab's split-handle layout picker never shows; dragging the line still works. */
[role="menu"][aria-label="Layouts"] { display: none !important; }
/* g. The work area grows with the window and sits close to the sidebar. */
@media (min-width: 1024px) {
  main.grow { padding-left: var(--c-space-4); padding-right: var(--c-space-8); }
  /* every page container (1080, 1160, 1200, ...): whatever cap the page set, the work area fills the window up to 1760 */
  main.grow > .mx-auto[class*="max-w-["], main.grow > * > .mx-auto[class*="max-w-["], main.grow > * > * > .mx-auto[class*="max-w-["] { max-width: 1760px; }
}

/* ---------- 12. The landing follows the same rules ---------- */
/* a. Never heavy: nothing above 700. */
.hero h1, .type b, .disk-copy h3, .final h2 { font-weight: 700; }
.sec-head h2, .how-head h2 { font-weight: 600; }
/* b. Colour separates: the how-it-works wheel wears the stage it is on. */
.disk-ring { transition: background-color 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.disk:has(.node[data-i="0"].on) .disk-ring { background: var(--c-stage-understand); }
.disk:has(.node[data-i="1"].on) .disk-ring { background: var(--c-stage-validate); }
.disk:has(.node[data-i="2"].on) .disk-ring { background: var(--c-stage-strategy); }
.disk:has(.node[data-i="3"].on) .disk-ring { background: var(--c-stage-studio); }
.disk:has(.node[data-i="4"].on) .disk-ring { background: var(--c-stage-launch); }
.disk .node .nb { color: var(--c-on-candy) !important; font-weight: 700; }
.disk .node:not(.on) .nb { opacity: 0.4; }
.hero h1 { letter-spacing: -0.03em; }
/* c. One stroke deep: the product windows (.run, .how-vis) hold flat panels, never stroked cards. */
.run :is(.card, .brief, .push, .ad, .icon-col), :is(.how-vis, .vm-shell) :is(.pane-card, .vc-box) { box-shadow: none !important; border-color: transparent !important; }
:is(.how-vis, .vm-shell) :is(.pane-card, .vc-box) { background: var(--c-sunken); }
/* the studio board's brief dock: one edge line against the canvas, no shadow */
.brief-card { box-shadow: none !important; border-right: var(--c-ring) solid var(--c-edge); }
/* d. Inside a window only the main action stands; quiet buttons are flat. */
:is(.run, .how-vis) .btn:is(.btn-soft, .btn-glass) { box-shadow: none !important; margin-bottom: 0; }
/* e. The picked stage tab in the hero window is plain white. */
.stage-tab.now { background: var(--c-raised); box-shadow: inset 0 0 0 1px var(--c-hole-shade); }
/* f. Hover flood, as in the tool: the main button rests pale and floods to full brand from the pointer. */
.btn-primary, .btn-brand { --flood: var(--c-brand); background: color-mix(in srgb, var(--c-brand) 45%, white); }
.btn-soft, .btn-glass { --flood: var(--c-hover); }
/* g. Fields show focus on their own radius, in brand. */
/* The demo field: one ring on the whole field (input and button together), never a second ring on the input. */
.final .field:focus-within { background: rgb(255 255 255 / 0.14); box-shadow: inset 0 0 0 var(--c-ring) var(--c-brand); }
.final input:focus, .final input:focus-visible { box-shadow: none !important; outline: none; }
/* Hover lights the whole field on its own radius; the input inside never draws its own square stroke. */
/* (the id outranks section 17's field-hover rule, whose :not() chain is heavier than any class selector here) */
#accessForm .field input:hover { box-shadow: none !important; }
.final .field:hover:not(:focus-within) { background: rgb(255 255 255 / 0.14); box-shadow: inset 0 0 0 var(--c-ring) rgb(255 255 255 / 0.28); }

@media (prefers-reduced-motion: reduce) {
  .flood.press, .btn { transition: none; }
}

/* ---------- 13. Fields, chips and glides ---------- */
/* A field that is its own box shows focus on itself, never on the panel around it, and never as a halo. */
:is(input, textarea)[class*="focus:shadow-[0_0_0_2px_var(--accent)"]:focus { box-shadow: inset 0 0 0 var(--c-ring) var(--c-brand) !important; }
/* No native resize grip: a text box grows with what you type. */
textarea { resize: none !important; field-sizing: content; }
textarea:not(.bg-transparent) { min-height: calc(3lh + 20px); max-height: 50vh; }
/* The chat box: one line tall, level with the send button, growing upward as you write. */
form:has(> textarea[aria-label="Message"]) { align-items: flex-end; padding-top: 6px; padding-bottom: 6px; }
form > textarea[aria-label="Message"] { min-height: 32px; max-height: 160px; padding-block: 6px; line-height: 20px; }
/* Chip rows with lipped picks: room for the ring and the lip. */
.flex-wrap:has(> [class*="has-[:checked]:border-accent"]:is(.h-7, .h-8, .h-9), > .border-accent.bg-accent-soft:is(.h-7, .h-8, .h-9)) { column-gap: var(--c-space-2); row-gap: calc(var(--c-space-2) + var(--c-lip-sm)); }
[class*="has-[:checked]:border-accent"]:has(:checked):is(.h-7, .h-8, .h-9) { box-shadow: 0 0 0 var(--c-ring) var(--c-brand-lip), 0 var(--c-lip-sm) 0 0 var(--c-brand-lip) !important; }
/* Track glide: the pick slides from the tab you left. */
nav[data-candy-gliding] { position: relative; }
nav[data-candy-gliding] > a { position: relative; z-index: 1; }
[data-candy-ghost] { position: absolute; z-index: 0; pointer-events: none; }
::view-transition-old(candy-track) { display: none; }
::view-transition-new(candy-track) { animation: none; }
/* Icon tiles: no "open large" corner button; the tile is enough. */
button[title="Open large"][aria-label^="Open "] { display: none !important; }
/* A card of hover rows (the verdict's Fit, Criteria, Risks): the rows bring their own 12px padding,
   so the card pads 8 and the text still sits 20 in from every edge, the same on all four sides. */
section.rounded-\[22px\]:has(> div.relative.grid.rounded-2xl.bg-muted) > div:has(details.group.rounded-2xl) { padding: var(--c-space-2); }
section.rounded-\[22px\]:has(> div.relative.grid.rounded-2xl.bg-muted) > div:has(details.group.rounded-2xl) details.group.rounded-2xl { border-radius: calc(var(--c-radius-2xl) - var(--c-space-2)); }
section.rounded-\[22px\]:has(> div.relative.grid.rounded-2xl.bg-muted) > div:has(details.group.rounded-2xl) details.group.rounded-2xl > summary { padding: var(--c-space-3); }
/* White chips on a grey panel (the idea samples): resting white is see-through, hover floods to solid white,
   never to grey. */
.flood.press.bg-surface.shadow-xs:not([aria-pressed="true"]) {
  --flood: var(--c-surface);
  background: color-mix(in srgb, var(--c-surface) 50%, transparent); box-shadow: none; color: var(--c-ink-2);
}
.flood.press.bg-surface.shadow-xs:not([aria-pressed="true"]):hover { color: var(--c-ink); }
/* Focus never repaints a field to its card's colour: a field keeps its own fill and gains the green ring. */
:is(input, textarea).bg-muted:focus { background: var(--c-sunken) !important; }
/* Cards of uneven height never stand in two ragged columns: they stack, one under the other. */
div.grid.items-start[class*="grid-cols-2"]:has(> section[class~="rounded-[22px]"]) { grid-template-columns: minmax(0, 1fr) !important; }
/* Stacked key-value cards share one label column, so the answers line up from card to card. */
@media (min-width: 640px) { dl.grid[class*="grid-cols-[auto_minmax(0,1fr)]"] { grid-template-columns: minmax(168px, max-content) minmax(0, 1fr); } }

/* ---------- 14. Tab picks that read at a glance ---------- */
/* The stage bar: the current stage is a solid pick in its own hue (sky, grape, berry, tangerine, mint) with white words,
   no stroke and no lip; it changes colour as it slides. */
nav[aria-label="Idea stages"] ol > li[data-vt="stage-thumb"].bg-raised {
  background: var(--hue); box-shadow: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.12s linear;
}
nav[aria-label="Idea stages"] ol > li > a[aria-current="step"],
nav[aria-label="Idea stages"] ol > li > a[aria-current="step"] :is(span, [data-candy-stage]) { color: #fff !important; }
nav[aria-label="Idea stages"] ol > li > a[aria-current="step"] .font-mono { opacity: 0.85; }
nav[aria-label="Idea stages"] ol > li > a[aria-current="step"] span[aria-hidden="true"].flex.h-1 > span { background: rgb(255 255 255 / 0.45) !important; }
nav[aria-label="Idea stages"] ol > li > a[aria-current="step"] span[aria-hidden="true"].flex.h-1 > span:is(.bg-mint, .bg-good, .bg-accent) { background: #fff !important; }
nav[aria-label="Idea stages"] ol > li > a[aria-current="step"]::before { display: none !important; }
nav[aria-label="Idea stages"] ol > li > a[aria-current="step"]:hover { background: transparent; }
/* Every other track: the pick is near-black ink with white words, like the ideas filter. */
section[class~="rounded-[22px]"] > div.relative.grid.rounded-2xl.bg-muted > span[aria-hidden="true"]:first-child { background: var(--c-ink) !important; box-shadow: none !important; }
section[class~="rounded-[22px]"] > div.relative.grid.rounded-2xl.bg-muted > label:has(:checked) { color: var(--c-surface); }
section[class~="rounded-[22px]"] > div.relative.grid.rounded-2xl.bg-muted > label:has(:checked) .font-mono { color: var(--c-surface); opacity: 0.7; }
nav:is([aria-label="Integration types"], [aria-label="What to add"], [aria-label="Sections"]).bg-muted > a[aria-current="page"] { background: var(--c-ink); color: var(--c-surface); box-shadow: none; }
nav:is([aria-label="Integration types"], [aria-label="What to add"], [aria-label="Sections"]).bg-muted > a[aria-current="page"] .font-mono { color: var(--c-surface); opacity: 0.75; }
/* Every page keeps room for the scrollbar, so bars never shift sideways between a short page and a long one. */
html { scrollbar-gutter: stable; }

/* ---------- 15. Landing, current product look ---------- */
/* How it works: the card's stroke and lip turn with the wheel, in the current stage's hue. */
.how-card { transition: box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1); box-shadow: 0 0 0 var(--c-ring) var(--c-edge); }
/* the how card is flat: its stroke follows the stage, no lip or shadow under it */
.how-card:has(.node[data-i="0"].on) { box-shadow: 0 0 0 var(--c-ring) var(--c-stage-understand); }
.how-card:has(.node[data-i="1"].on) { box-shadow: 0 0 0 var(--c-ring) var(--c-stage-validate); }
.how-card:has(.node[data-i="2"].on) { box-shadow: 0 0 0 var(--c-ring) var(--c-stage-strategy); }
.how-card:has(.node[data-i="3"].on) { box-shadow: 0 0 0 var(--c-ring) var(--c-stage-studio); }
.how-card:has(.node[data-i="4"].on) { box-shadow: 0 0 0 var(--c-ring) var(--c-stage-launch); }
/* The hero window's stage rail is the product's stage bar: a stroked track, stage-coloured marks and words,
   and the current stage as a flat solid pick in its hue with white words. */
.run .rail { padding: 5px; gap: 3px; border-radius: 14px; background: var(--c-sunken); box-shadow: 0 0 0 var(--c-ring) var(--c-edge-strong), 0 var(--c-lip-sm) 0 0 var(--c-edge-strong); margin-bottom: var(--c-lip-sm); }
.run .stage-tab { --h: var(--c-brand); --hi: var(--c-ink); background: transparent; box-shadow: none; border-radius: 9px; color: var(--hi); padding-bottom: 12px; transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s; }
.run .stage-tab[data-step="0"] { --h: var(--c-stage-understand); --hi: var(--c-sky-ink); }
.run .stage-tab[data-step="1"] { --h: var(--c-stage-validate); --hi: var(--c-grape-ink); }
.run .stage-tab[data-step="2"] { --h: var(--c-stage-strategy); --hi: var(--c-berry-ink); }
.run .stage-tab[data-step="3"] { --h: var(--c-stage-studio); --hi: var(--c-tangerine-ink); }
.run .stage-tab[data-step="4"] { --h: var(--c-stage-launch); --hi: var(--c-mint-ink); }
.run .stage-tab:hover { background: var(--c-hover); color: var(--hi); }
.run .stage-tab .st { width: 8px; height: 8px; border-radius: 2px; background: var(--h); }
.run .stage-tab .st svg { display: none; }
.run .stage-tab.now .st { background: #fff; }
.run .stage-tab.now .st::after { inset: -3px; border-color: #fff; border-right-color: transparent; border-radius: 50%; }
.run .stage-tab::before { content: ""; position: absolute; left: 9px; right: 9px; bottom: 5px; height: 3px; border-radius: 99px; background: var(--c-edge); }
.run .stage-tab .fill { bottom: 5px; height: 3px; background: var(--c-mint); }
.run .stage-tab.done .fill { transform: none !important; }
.run .stage-tab.now, .run .stage-tab.now:hover { background: var(--h); color: #fff; box-shadow: none; }
.run .stage-tab.now::before { background: rgb(255 255 255 / 0.35); }
.run .stage-tab.now .fill { background: #fff; }
/* The hero window's sidebar marks its current page the way the product does: a flat brand tint. */
.run .side span.on { background: var(--c-brand-soft); color: var(--c-brand-ink); box-shadow: none; }
.run .stage-tab.now .st { width: 10px; height: 10px; background: none; }
.run .stage-tab.now .st::after { inset: 0; border-width: 2px; border-color: #fff; border-right-color: transparent; border-radius: 50%; }
/* The hero's in-window actions (Run) are the product's main button: pale green, stroked and lipped in brand-lip. */
.run .go { background: color-mix(in srgb, var(--c-brand) 45%, white); color: var(--c-on-candy); box-shadow: 0 0 0 var(--c-ring) var(--c-brand-lip), 0 var(--c-lip-sm) 0 0 var(--c-brand-lip); margin-bottom: var(--c-lip-sm); }
.run .go.mint { background: var(--c-brand); color: var(--c-on-candy); }

/* ---------- 16. The ideas home ---------- */
[data-hue="sun"] { --h: var(--c-sun); --h-soft: var(--c-sun-soft); --h-ink: var(--c-sun-ink); --h-lip: var(--c-sun-lip); }
[data-hue="grape"] { --h: var(--c-grape); --h-soft: var(--c-grape-soft); --h-ink: var(--c-grape-ink); --h-lip: var(--c-grape-lip); }
[data-hue="mint"] { --h: var(--c-mint); --h-soft: var(--c-mint-soft); --h-ink: var(--c-mint-ink); --h-lip: var(--c-mint-lip); }
[data-hue="sky"] { --h: var(--c-sky); --h-soft: var(--c-sky-soft); --h-ink: var(--c-sky-ink); --h-lip: var(--c-sky-lip); }
[data-cd-stage="understand"] { --hue: var(--c-stage-understand); --hue-soft: var(--c-sky-soft); --hue-ink: var(--c-sky-ink); }
[data-cd-stage="validate"] { --hue: var(--c-stage-validate); --hue-soft: var(--c-grape-soft); --hue-ink: var(--c-grape-ink); }
[data-cd-stage="strategy"] { --hue: var(--c-stage-strategy); --hue-soft: var(--c-berry-soft); --hue-ink: var(--c-berry-ink); }
[data-cd-stage="studio"] { --hue: var(--c-stage-studio); --hue-soft: var(--c-tangerine-soft); --hue-ink: var(--c-tangerine-ink); }
[data-cd-stage="launch"] { --hue: var(--c-stage-launch); --hue-soft: var(--c-mint-soft); --hue-ink: var(--c-mint-ink); }
.cd-tiles, .cd-inbox, .cd-grid { font-family: var(--c-font-text); }
.cd-tiles a, .cd-inbox a, .cd-grid a { text-decoration: none; color: inherit; }
/* State tiles: cards that stand; the one you are filtering by turns to its hue all round. */
.cd-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--c-space-3); margin-bottom: var(--c-lip-md); }
.cd-tile { display: flex; flex-direction: column; align-items: flex-start; gap: var(--c-space-1); padding: var(--c-space-5); border-radius: var(--c-radius-2xl); background: var(--c-surface);
  box-shadow: 0 0 0 var(--c-ring) var(--c-edge), 0 var(--c-lip-md) 0 0 var(--c-edge); transition: transform 0.15s cubic-bezier(0.22,1,0.36,1), box-shadow 0.15s, background-color 0.2s; }
.cd-tile:hover { box-shadow: 0 0 0 var(--c-ring) var(--c-edge-strong), 0 var(--c-lip-md) 0 0 var(--c-edge-strong); }
.cd-tile:active { transform: translateY(var(--c-lip-md)); box-shadow: 0 0 0 var(--c-ring) var(--c-edge-strong), 0 0 0 0 var(--c-edge-strong); }
.cd-tile[aria-current="page"] { background: var(--h-soft); box-shadow: 0 0 0 var(--c-ring) var(--h-lip), 0 var(--c-lip-md) 0 0 var(--h-lip); }
.cd-tile-ic { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: var(--c-space-3); border-radius: var(--c-radius-md); background: var(--h); color: var(--c-on-candy); }
.cd-tile-n { font: 600 34px/1 var(--c-font-display); letter-spacing: -0.02em; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.cd-tile-l { font-size: 13.5px; font-weight: 600; color: var(--h-ink); }
/* The inbox: what is waiting on you, one row each. */
.cd-inbox { padding: var(--c-space-2); border-radius: var(--c-radius-2xl); background: var(--c-surface); box-shadow: 0 0 0 var(--c-ring) var(--c-edge), 0 var(--c-lip-md) 0 0 var(--c-edge); margin-bottom: var(--c-lip-md); }
.cd-inbox-head { display: flex; align-items: center; gap: var(--c-space-3); padding: var(--c-space-3); }
.cd-inbox-head h2 { margin: 0; font: 600 15px/1.2 var(--c-font-display); color: var(--c-ink); }
.cd-inbox-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--c-radius-sm); background: var(--c-sun-soft); color: var(--c-sun-ink); }
.cd-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--c-radius-xs); background: var(--c-sun-soft); color: var(--c-sun-ink); font: 600 12px/1 var(--c-font-text); }
.cd-inbox-row { display: grid; grid-template-columns: 8px minmax(0, max-content) minmax(0, 1fr) auto auto; align-items: center; column-gap: var(--c-space-3); padding: var(--c-space-3); border-radius: calc(var(--c-radius-2xl) - var(--c-space-2)); transition: background-color 0.15s; }
.cd-inbox-row:hover { background: var(--c-hover); }
.cd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-sun); }
.cd-inbox-row b { font-weight: 600; font-size: 14px; color: var(--c-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-inbox-what { font-size: 13.5px; color: var(--c-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-stage-word { font-size: 12px; font-weight: 600; color: var(--hue-ink); }
.cd-review { display: inline-flex; align-items: center; gap: 2px; font-size: 13.5px; font-weight: 600; color: var(--c-brand-ink); }
.cd-review svg { transition: transform 0.2s cubic-bezier(0.22,1,0.36,1); }
.cd-inbox-row:hover .cd-review svg { transform: translateX(2px); }
/* The grid: each idea a card that stands, its stage's hue at the top, its verdict and spend at the foot. */
.cd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: calc(var(--c-space-3) + var(--c-lip-md)) var(--c-space-3); padding-bottom: var(--c-lip-md); }
.cd-idea, .cd-new { display: flex; flex-direction: column; gap: var(--c-space-2); min-width: 0; padding: var(--c-space-5); border-radius: var(--c-radius-2xl); background: var(--c-surface);
  box-shadow: 0 0 0 var(--c-ring) var(--c-edge), 0 var(--c-lip-md) 0 0 var(--c-edge); transition: transform 0.15s cubic-bezier(0.22,1,0.36,1), box-shadow 0.15s; }
.cd-idea:hover { box-shadow: 0 0 0 var(--c-ring) var(--c-edge-strong), 0 var(--c-lip-md) 0 0 var(--c-edge-strong); }
.cd-idea:active { transform: translateY(var(--c-lip-md)); box-shadow: 0 0 0 var(--c-ring) var(--c-edge-strong); }
.cd-idea-top { display: flex; align-items: center; justify-content: space-between; gap: var(--c-space-2); margin-bottom: var(--c-space-1); }
.cd-stage { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: var(--c-radius-xs); background: var(--hue-soft); color: var(--hue-ink); font-size: 12px; font-weight: 600; }
.cd-stage i { width: 7px; height: 7px; border-radius: 2px; background: var(--hue); }
.cd-when { font-size: 12px; font-weight: 500; color: var(--c-ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cd-idea-name { font: 600 17px/1.25 var(--c-font-display); color: var(--c-ink); letter-spacing: -0.01em; }
.cd-idea-desc { font-size: 13.5px; line-height: 1.45; color: var(--c-ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cd-idea-note { display: flex; align-items: flex-start; gap: 6px; padding: var(--c-space-2) var(--c-space-3); border-radius: var(--c-radius-md); background: var(--c-sunken); color: var(--c-ink-2); font-size: 13px; line-height: 1.4; }
.cd-idea-note[data-tone="warn"] { background: var(--c-sun-soft); color: var(--c-sun-ink); }
.cd-idea-note svg { flex: none; margin-top: 1px; }
.cd-idea-foot { display: flex; align-items: center; gap: var(--c-space-2); margin-top: auto; padding-top: var(--c-space-3); border-top: var(--c-ring) dashed var(--c-edge); }
.cd-verdict { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: var(--c-radius-xs); background: var(--c-sunken); color: var(--c-ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.cd-verdict i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-ink-4); }
.cd-verdict[data-tone="good"] { background: var(--c-mint-soft); color: var(--c-mint-ink); }
.cd-verdict[data-tone="good"] i { background: var(--c-mint); }
.cd-verdict[data-tone="warn"] { background: var(--c-sun-soft); color: var(--c-sun-ink); }
.cd-verdict[data-tone="warn"] i { background: var(--c-sun); }
.cd-verdict[data-tone="bad"] { background: var(--c-coral-soft); color: var(--c-coral-ink); }
.cd-verdict[data-tone="bad"] i { background: var(--c-coral); }
.cd-prio { font-size: 12px; font-weight: 600; color: var(--c-ink-3); }
.cd-grid .cd-money { margin-left: auto; }
.cd-new { align-items: center; justify-content: center; text-align: center; min-height: 220px; background: transparent; box-shadow: none; border: var(--c-ring) dashed var(--c-edge-strong); color: var(--c-ink-2); transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.cd-new:hover { background: var(--c-brand-soft); border-color: var(--c-brand-lip); color: var(--c-brand-ink); }
.cd-new:active { transform: translateY(1px); }
.cd-new-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--c-radius-lg); background: var(--c-sunken); color: inherit; transition: background-color 0.2s; }
.cd-new:hover .cd-new-ic { background: var(--c-surface); }
.cd-new b { font: 600 15px/1.2 var(--c-font-display); }
.cd-new span:last-child { font-size: 13px; color: var(--c-ink-3); }
.cd-empty { grid-column: 1 / -1; margin: 0; padding: var(--c-space-8) var(--c-space-5); border-radius: var(--c-radius-2xl); background: var(--c-sunken); color: var(--c-ink-3); text-align: center; font-size: 14px; }
@media (max-width: 1100px) { .cd-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .cd-tile { padding: var(--c-space-4); border-radius: var(--c-radius-xl); }
  .cd-tile-n { font-size: 28px; }
  .cd-inbox-row { grid-template-columns: 8px minmax(0, 1fr) auto; row-gap: 2px; }
  .cd-inbox-what { grid-column: 2 / -1; grid-row: 2; white-space: normal; }
  .cd-stage-word { display: none; }
  .cd-grid { grid-template-columns: minmax(0, 1fr); }
}
.cd-idea-note.cd-short { align-self: flex-start; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--c-radius-xs); font-size: 12px; font-weight: 600; }
.cd-idea-note.cd-short svg { margin-top: 0; }
.cd-idea-note.cd-short { position: relative; cursor: default; }
.cd-idea-note.cd-short::after { left: 0; transform: translate(0, 4px); }
.cd-idea-note.cd-short:hover::after { transform: translate(0, 0); }
/* Illustrated icons (duo set): no tile behind them; they carry their own colour, lip and shine. */
.cd-tile-ic { width: 48px; height: 48px; margin-bottom: var(--c-space-2); background: none; border-radius: 0; }
.cd-tile-ic .cd-duo { width: 48px; height: 48px; }
.cd-inbox-ic { width: 32px; height: 32px; background: none; }
.cd-inbox-ic .cd-duo { width: 32px; height: 32px; }
[data-candy-duo] { display: inline-grid; place-items: center; line-height: 0; }
[data-candy-duo] .cd-duo { width: 32px; height: 32px; }
[data-candy-duo].text-2xl .cd-duo { width: 40px; height: 40px; }

/* The relation tag opens a small menu under itself (candy.js); the row never gets covered. */
li.glow div[role="radiogroup"][aria-label$=" relation"] > button[aria-checked="true"] { display: inline-flex; align-items: center; gap: 4px; padding-right: 6px; cursor: pointer; }
li.glow div[role="radiogroup"][aria-label$=" relation"] > button[aria-checked="true"]::after { content: ""; width: 12px; height: 12px; background: currentColor; opacity: 0.7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
li.glow div[role="radiogroup"][aria-label$=" relation"] > button[aria-checked="true"]:hover { filter: brightness(0.97); }
.cd-relmenu { position: fixed; z-index: 200; display: flex; flex-direction: column; gap: 2px; min-width: 188px; padding: 6px; border-radius: var(--c-radius-lg); background: var(--c-surface);
  box-shadow: 0 0 0 var(--c-ring) var(--c-edge-strong), 0 var(--c-lip-sm) 0 0 var(--c-edge-strong), var(--c-float); animation: cd-pop 0.16s cubic-bezier(0.22, 1, 0.36, 1); font-family: var(--c-font-text); }
@keyframes cd-pop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.cd-relmenu button { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 10px; border: 0; border-radius: calc(var(--c-radius-lg) - 6px); background: transparent; color: var(--c-ink-2); font: 600 13px/1 var(--c-font-text); text-align: left; cursor: pointer; }
.cd-relmenu button:hover, .cd-relmenu button:focus-visible { background: var(--c-hover); color: var(--c-ink); outline: none; }
.cd-relmenu button i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-mint); }
.cd-relmenu button[data-candy-kind="Adjacent"] i { background: var(--c-sky); }
.cd-relmenu button[data-candy-kind="Not a competitor"] i { background: var(--c-ink-4); }
.cd-relmenu button[aria-checked="true"] { background: var(--c-mint-soft); color: var(--c-mint-ink); }
.cd-relmenu button[aria-checked="true"][data-candy-kind="Adjacent"] { background: var(--c-sky-soft); color: var(--c-sky-ink); }
.cd-relmenu button[aria-checked="true"][data-candy-kind="Not a competitor"] { background: var(--c-sunken); color: var(--c-ink-2); }
.cd-relmenu button[aria-checked="true"]::after { content: ""; margin-left: auto; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Live onboarding: its webp illustrations give way to the duo icon. */
[data-candy-duo] > img[src*="/onboarding/"] { display: none !important; }
[data-candy-duo].size-10 .cd-duo, [data-candy-duo].size-12 .cd-duo { width: 100%; height: 100%; }
/* Landing launch rows: a finished row fills with a flat candy gradient (brand to a lighter brand), not a dark fluid. */
.channel .ch-ov { background: linear-gradient(100deg, var(--c-mint) 0%, color-mix(in srgb, var(--c-mint) 62%, white) 100%) !important; animation: none !important; }
.channel .ch-ov canvas { display: none !important; }
.channel .ch-ov .what b, .channel .ch-ov .ch-field { color: var(--c-on-candy) !important; }
.channel .ch-ov .what span, .channel .ch-ov .ch-count { color: color-mix(in srgb, var(--c-on-candy) 72%, transparent) !important; }
.channel .ch-ov .badge { background: rgb(255 255 255 / 0.55) !important; color: var(--c-on-candy) !important; backdrop-filter: none !important; }
.channel.done { box-shadow: 0 0 0 var(--c-ring) var(--c-mint-lip), 0 var(--c-lip-md) 0 0 var(--c-mint-lip) !important; }
/* The push-all bar is the one ink bar: its words take the surface colour, so it reads in both themes. */
.push-all { color: var(--c-surface); }
.push-all .t span { color: color-mix(in srgb, var(--c-surface) 65%, transparent); }

/* ---------- 17. Canvas ground ---------- */
/* The app's canvas carries the landing's fluid colour, washed right out: big soft clouds of mint, sky and grape
   that drift very slowly behind everything, so the page feels alive without any colour shouting. Not on the landing. */
body:not(:has(.hero)) { isolation: isolate; }
body:not(:has(.hero))::before { content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 30vmax at 14% 18%, color-mix(in srgb, var(--c-edge-strong) 40%, transparent), transparent 70%),
    radial-gradient(34vmax 28vmax at 86% 14%, color-mix(in srgb, var(--c-edge) 50%, transparent), transparent 70%),
    radial-gradient(40vmax 32vmax at 78% 82%, color-mix(in srgb, var(--c-edge-strong) 30%, transparent), transparent 70%),
    radial-gradient(30vmax 26vmax at 22% 88%, color-mix(in srgb, var(--c-edge) 40%, transparent), transparent 70%);
  filter: blur(24px) saturate(0.85); animation: cd-drift 48s ease-in-out infinite alternate; }
@keyframes cd-drift { 0% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(3vmax, -2vmax, 0) rotate(6deg); } 100% { transform: translate3d(-2vmax, 2vmax, 0) rotate(-4deg); } }
:root[data-theme="dark"] body:not(:has(.hero))::before { opacity: 0.8; filter: blur(30px) saturate(0.75); }
@media (prefers-reduced-motion: reduce) { body:not(:has(.hero))::before { animation: none; } }
/* In dark, the push-all bar is a dark card too (it never turns into a light slab). */
:root[data-theme="dark"] .push-all { background: var(--c-raised); color: var(--c-ink); box-shadow: 0 0 0 var(--c-ring) var(--c-edge-strong), 0 var(--c-lip-md) 0 0 var(--c-edge-strong); }
:root[data-theme="dark"] .push-all b { color: var(--c-ink); }
:root[data-theme="dark"] .push-all .t span { color: var(--c-ink-3); }
.push-all .btn, :root[data-theme="dark"] .push-all .btn { color: var(--c-on-candy); }
/* The fluid canvas (candy.js) replaces the CSS clouds where WebGL2 is available. */
#candy-fluid { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }
.candy-fluid-on body::before { display: none !important; }

[data-hue="coral"] { --h: var(--c-coral); --h-soft: var(--c-coral-soft); --h-ink: var(--c-coral-ink); --h-lip: var(--c-coral-lip); }
/* The home's tiles are its filter: the filter track does not repeat them there. */
body[data-candy-home] [data-candy-lifted]:has(> nav[aria-label="Filter"]) { display: none !important; }
/* The live onboarding's side panel scrolls without showing a scrollbar. */
html[data-lab-live] aside, html[data-lab-live] aside * { scrollbar-width: none; }
html[data-lab-live] aside::-webkit-scrollbar, html[data-lab-live] aside *::-webkit-scrollbar { display: none; }
/* A field shows hover with a clear stroke on its own radius, so it never melts into the panel behind it.
   Its fill stays as it is; focus then turns the stroke into the brand ring. */
:is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not(.sr-only):not(.bg-transparent), textarea:not(.bg-transparent), select):hover:not(:focus):not(:disabled) {
  box-shadow: inset 0 0 0 var(--c-ring) var(--c-edge-strong) !important;
}
.bg-muted:has(> textarea.bg-transparent, > input.bg-transparent:not([type="checkbox"]):not([type="radio"])):hover:not(:focus-within),
.focus-within\:bg-surface.bg-muted:hover:not(:focus-within) { box-shadow: inset 0 0 0 var(--c-ring) var(--c-edge-strong) !important; }

/* ---------- 18. Brand: Engine wears sky ---------- */
/* The app is Engine, so its brand colour (main buttons, the current page, picks, focus, the flood) is the Engine leaf's sky.
   Greens that mean something stay green: done, approved, money, the Launch stage. The landing (and its /demo page, .dm) is HitMint and keeps mint. */
html:root:not(:has(.hero, .dm)) { --c-brand: var(--c-sky); --c-brand-lip: var(--c-sky-lip); --c-brand-soft: var(--c-sky-soft); --c-brand-ink: var(--c-sky-ink); }
[data-candy-mark] { display: block; flex: none; }

/* ---------- 19. Checkboxes and radios ---------- */
/* No native chrome: a soft rounded box with a clear stroke; checked it fills with the brand on its lip and shows a white tick. */
input:is([type="checkbox"], [type="radio"]):not(.sr-only) {
  -webkit-appearance: none; appearance: none; flex: none; display: inline-grid; place-content: center; margin: 0;
  width: 20px; height: 20px; border-radius: 7px; background: var(--c-surface); cursor: pointer;
  box-shadow: inset 0 0 0 var(--c-ring) var(--c-edge-strong); transition: background-color 0.15s, box-shadow 0.15s;
}
input[type="radio"]:not(.sr-only) { border-radius: 50%; }
input:is([type="checkbox"], [type="radio"]):not(.sr-only):hover { box-shadow: inset 0 0 0 var(--c-ring) var(--c-brand-lip); }
input:is([type="checkbox"], [type="radio"]):not(.sr-only):checked {
  background: var(--c-brand); box-shadow: inset 0 0 0 var(--c-ring) var(--c-brand-lip), 0 2px 0 0 var(--c-brand-lip);
}
input[type="checkbox"]:not(.sr-only):checked::before {
  content: ""; width: 12px; height: 12px; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
input[type="radio"]:not(.sr-only):checked::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
input:is([type="checkbox"], [type="radio"]):not(.sr-only):focus-visible { outline: none; box-shadow: inset 0 0 0 var(--c-ring) var(--c-brand-lip), 0 0 0 3px color-mix(in srgb, var(--c-brand) 35%, transparent); }
input:is([type="checkbox"], [type="radio"]):not(.sr-only):disabled { opacity: 0.45; cursor: default; }
input:is([type="checkbox"], [type="radio"]):not(.sr-only)::after { content: none !important; display: none !important; }
/* How it works: the card's fluid turns to the current stage's hue along with the wheel
   (the fluid is drawn in greens; a hue turn carries it to sky, grape, berry, tangerine, back to mint). */
#howFluid { transition: filter 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.how-card:has(.node[data-i="0"].on) #howFluid { filter: hue-rotate(48deg) saturate(1.1); }
.how-card:has(.node[data-i="1"].on) #howFluid { filter: hue-rotate(100deg) saturate(1.05); }
.how-card:has(.node[data-i="2"].on) #howFluid { filter: hue-rotate(178deg) saturate(1.1); }
.how-card:has(.node[data-i="3"].on) #howFluid { filter: hue-rotate(234deg) saturate(1.15); }
.how-card:has(.node[data-i="4"].on) #howFluid { filter: none; }

/* ---------- 20. Track picks in the primary colour ---------- */
/* Every tab bar's pick wears the place's brand colour (sky in Engine, mint on the landing) with white words on it;
   the stage bar keeps its stage hue. */
html:root .bg-muted > .bg-raised.shadow-xs:not([data-vt="stage-thumb"]),
html:root [role="radiogroup"]:not([aria-label$=" relation"]) > .bg-raised,
html:root section[class~="rounded-[22px]"] > div.relative.grid.rounded-2xl.bg-muted > span[aria-hidden="true"]:first-child {
  background: var(--c-brand) !important; box-shadow: none !important;
}
html:root section[class~="rounded-[22px]"] > div.relative.grid.rounded-2xl.bg-muted > label:has(:checked),
html:root section[class~="rounded-[22px]"] > div.relative.grid.rounded-2xl.bg-muted > label:has(:checked) .font-mono { color: #ffffff !important; opacity: 1; }
html:root nav:is([aria-label="Filter"], [aria-label="Integration types"], [aria-label="What to add"], [aria-label="Sections"]).bg-muted > a[aria-current="page"],
html:root a[aria-current="page"].bg-surface.shadow-xs, html:root a[aria-label*=" step "][title].bg-surface.shadow-xs,
html:root [role="tablist"] > [aria-selected="true"].bg-surface {
  background: var(--c-brand) !important; color: #ffffff !important; box-shadow: none !important;
}
html:root nav:is([aria-label="Filter"], [aria-label="Integration types"], [aria-label="What to add"], [aria-label="Sections"]).bg-muted > a[aria-current="page"] :is(.font-mono, span),
html:root a[aria-current="page"].bg-surface.shadow-xs *, html:root [role="tablist"] > [aria-selected="true"].bg-surface * { color: #ffffff !important; }
html:root a[aria-current="page"].bg-surface.shadow-xs .font-mono { opacity: 0.85; }
/* the onboarding's own fluid backdrop turns to Engine's sky */
.bg-bg > canvas.size-full { filter: hue-rotate(48deg) saturate(1.05); }
/* Option bars made of buttons (radio groups, multi-select chips in a track): the picked one wears the brand too. */
html:root [role="radiogroup"]:not([aria-label$=" relation"]) > button[role="radio"][aria-checked="true"]:is(.h-7, .h-8, .h-9, .h-10),
html:root [role="group"] > button[role="checkbox"][aria-checked="true"]:is(.h-7, .h-8, .h-9, .h-10) {
  background: var(--c-brand) !important; color: #ffffff !important; box-shadow: none !important; border-color: transparent !important;
}
html:root [role="radiogroup"]:not([aria-label$=" relation"]) > button[role="radio"][aria-checked="true"]:is(.h-7, .h-8, .h-9, .h-10) *, html:root [role="group"] > button[role="checkbox"][aria-checked="true"]:is(.h-7, .h-8, .h-9, .h-10) * { color: #ffffff !important; }
/* Landing quiet buttons: light grey at rest, the hover flood fills them white. */
.btn-soft, .btn-glass { --flood: var(--c-surface) !important; background: var(--c-sunken) !important; }
.btn-soft:hover, .btn-glass:hover { color: var(--c-ink); }
.cd-duo-img { display: block; object-fit: contain; }
[data-candy-duo] .cd-duo-img { width: 38px !important; height: 38px !important; margin: -3px; }

/* ---------- 21. Hover and toggle fixes ---------- */
/* The flood fills the button to its very edge: no 1px transparent border left showing the resting colour. */
.flood.press, .btn { border-width: 0 !important; }
/* Icon-only buttons (their tooltip needs overflow visible): no flood circle, a plain hover fill on their own radius. */
[data-candy-iconly].flood::before { display: none !important; }
[data-candy-iconly].flood:hover { background: var(--c-hover) !important; color: var(--c-ink) !important; }
/* Toggle buttons in a bar (the studio canvas toolbar and the like): the pressed one is a flat brand fill, no stroke, no lip. */
html:root .flood.press[aria-pressed="true"] { background: var(--c-brand) !important; color: #ffffff !important; box-shadow: none !important; margin-bottom: 0 !important; }
html:root .flood.press[aria-pressed="true"] * { color: inherit !important; }

/* The stage bar keeps meaning in its own colours: done is green (not the brand), the current stage its own hue. */
nav[aria-label="Idea stages"] ol > li:not([data-vt]) a:not([aria-current="step"]) .text-accent { color: var(--c-mint-ink) !important; }
nav[aria-label="Idea stages"] ol > li:not([data-vt]) a:not([aria-current="step"]) span[aria-hidden="true"].flex.h-1 > .bg-accent { background: var(--c-mint) !important; }
nav[aria-label="Idea stages"] ol > li[data-vt="stage-thumb"].bg-raised { background: var(--hue) !important; box-shadow: none !important; }

/* Multi-select chips (a checkbox inside a label): picked is a flat brand fill with white words, no stroke, no lip. */
html:root [class*="has-[:checked]:border-accent"]:has(:checked) { background: var(--c-brand) !important; color: #ffffff !important; box-shadow: none !important; border-color: transparent !important; }
html:root [class*="has-[:checked]:border-accent"]:has(:checked) * { color: #ffffff !important; }
html:root .border-accent.bg-accent-soft:is(.h-7, .h-8, .h-9) { background: var(--c-brand) !important; color: #ffffff !important; box-shadow: none !important; border-color: transparent !important; }
html:root .border-accent.bg-accent-soft:is(.h-7, .h-8, .h-9) * { color: #ffffff !important; }

/* ---------- 22. Landing app mocks wear Engine sky ----------
   The landing is HitMint (mint), but the hero run, the how-it-works panels, the validation mock and the
   launch push all show the Engine app, so their selected rail item and primary buttons use Engine sky. */
.run, .how-panel, .approve, .push-all, #channels { --c-brand: var(--c-sky); --c-brand-lip: var(--c-sky-lip); --c-brand-soft: var(--c-sky-soft); --c-brand-ink: var(--c-sky-ink); }
.run .caret, .vm-chat .caret, .how-panel .caret { background: var(--c-sky); }

/* ---------- 23. Idea cards: a colour header, like the design system's swatch cards ----------
   The header wears the colour of the stage the idea is in (Understand sky, Validate grape, Strategy berry,
   Studio tangerine, Launch mint), softened so dark type reads on it. A darker line under it, then a band
   in the same stage's -soft colour naming the stage, one short paragraph and the verdict. No note box:
   what the idea waits on sits in a tooltip. */
.cd-idea[data-cd-stage] { --st-fill: color-mix(in srgb, var(--hue) 66%, white); }
.cd-grid .cd-idea { padding: 0; gap: 0; overflow: hidden; }
.cd-idea-head { display: flex; align-items: center; gap: var(--c-space-4); min-height: 92px; padding: var(--c-space-4) var(--c-space-5) calc(var(--c-space-4) + var(--c-lip-sm)); background: var(--st-fill); color: #221f2e; box-shadow: inset 0 calc(-1 * var(--c-lip-sm)) 0 color-mix(in srgb, var(--st-fill) 82%, black); }
.cd-idea-head .cd-idea-name { color: inherit; font: 700 20px/1.2 var(--c-font-display); letter-spacing: -0.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cd-idea-head .cd-when { color: inherit; opacity: 0.62; font-weight: 600; }
/* the app icon on the left; time and name stacked beside it */
.cd-head-tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cd-app-ic { flex: none; display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; border-radius: 14px; box-shadow: 0 6px 14px -8px rgb(0 0 0 / 0.45); }
.cd-app-ic img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* no icon yet: the App Store icon template, drawn as quiet keylines */
.cd-app-ic-none { background: rgb(255 255 255 / 0.5); color: rgb(34 31 46 / 0.4); box-shadow: inset 0 0 0 1.5px rgb(34 31 46 / 0.14); }
.cd-app-ic-none svg { width: 100%; height: 100%; }
/* the band under it wears the stage's own colour */
.cd-idea-band { display: flex; align-items: center; justify-content: space-between; gap: var(--c-space-2); height: 40px; padding: 0 var(--c-space-5); background: var(--hue-soft); color: var(--hue-ink); font-size: 13px; font-weight: 700; }
.cd-band-st { display: inline-flex; align-items: center; gap: 7px; }
.cd-band-st svg { stroke-width: 2.2; }
.cd-wait, .cd-next { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: var(--c-radius-xs); font-size: 12px; font-weight: 700; white-space: nowrap; cursor: default; }
.cd-wait { background: var(--c-sun); color: #3a2a06; }
.cd-next { background: var(--c-surface); color: var(--hue-ink); }
.cd-wait[data-candy-tip]::after, .cd-next[data-candy-tip]::after { left: auto; right: 0; transform: translate(0, 4px); }
.cd-wait[data-candy-tip]:hover::after, .cd-next[data-candy-tip]:hover::after { transform: none; }
.cd-idea-body { flex: 1; display: flex; flex-direction: column; gap: var(--c-space-4); padding: var(--c-space-4) var(--c-space-5) var(--c-space-5); }
.cd-idea-body .cd-idea-foot { margin-top: auto; padding-top: 0; border-top: 0; }

/* images do not lift into a drag ghost (canvases pan when you drag over them) */
img { -webkit-user-drag: none; user-drag: none; }

/* Boards pan on press-and-drag: nothing on them gets selected (fields still do). */
section[aria-label$="board"] { -webkit-user-select: none; user-select: none; }
section[aria-label$="board"] :is(input, textarea, [contenteditable="true"]) { -webkit-user-select: text; user-select: text; }

/* The Engine extension wears its own pink leaf; where it is offered as a way to connect, its tile is pink-soft. */
[data-candy-ext-tile] { background: color-mix(in srgb, #FF7EB6 18%, var(--c-surface)) !important; }

/* Colour swatches carry a hairline ring in every theme, so white (or the ground's own colour) still reads as a chip. */
[data-candy-swatch] { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-ink) 16%, transparent) !important; }

/* A picked control (pressed, current, checked) never floods on hover: it is already chosen, and a pale flood
   would swallow its white words. */
html:root .flood:is([aria-pressed="true"], [aria-current="page"], [aria-current="step"], [aria-checked="true"], [aria-selected="true"])::before { display: none !important; }
