/* The panel's design values, in one place (the build brief, section 7). Every other file names these values; none
   writes one. The light theme is on :root; the dark theme on [data-theme="dark"], which js/boot.js sets before the
   first paint from the person's choice or, without one, from the system. The chrome (side menu, top bar, the summary
   card) is graphite in both themes; lime, the graphite tones and the on-dark tones do not change with the theme.

   Breakpoints cannot be named here: a custom property does not work inside a media query. The panel uses three,
   written as they are in its @media rules: 1279px (the agent column turns into an overlay below 1280), 1023px (the
   menu folds below 1024) and 767px (the phone layout below 768). */

:root {
  color-scheme: light;

  /* colors (7.2) */
  --bg: #f5f5f2;
  --surface: #ffffff;
  --soft: #ecece6;
  --line: #e4e4df;
  --line-strong: #8c8c86;
  --ink: #0b0b0c;
  --ink-2: #5c5c57;
  --on-ink: #ffffff;
  --graphite: #0a0a0a;
  --graphite-2: #161616;
  --graphite-line: #2e2e2b;
  --on-dark: #ffffff;
  --on-dark-2: #b4b4ad;
  --lime: #d4ff3f;
  --on-lime: #0b0b0c;
  --negative: #9a4a16;
  --negative-on-dark: #f2a77a;
  --positive: #2f6b2f;
  --heat-1: #1c1d17;
  --heat-2: #2d321b;
  --heat-3: #444e20;
  --heat-4: #667827;
  --heat-5: #8ca62f;
  --heat-6: #aed037;
  --heat-7: var(--lime);

  /* veils, washes and patterns made from the colors above */
  --veil-strong: 0.12;           /* hover over a filled button: a veil of its text color */
  --veil: 0.06;                  /* hover over a secondary button */
  --veil-mid: 0.08;              /* hover behind an icon button, over a button on graphite or a lime one */
  --veil-quiet: 0.05;            /* hover over a quiet button */
  --opacity-key: 0.72;           /* a key hint inside a button */
  --opacity-hint: 0.55;          /* a sort arrow at rest */
  --opacity-done: 0.6;           /* a step that was skipped */
  --pulse-low: 0.35;             /* the low point of a working pulse */
  --backdrop: color-mix(in srgb, var(--graphite) 45%, transparent);
  --shimmer: color-mix(in srgb, var(--on-dark) 55%, transparent);
  --shimmer-hero: color-mix(in srgb, var(--on-dark) 5%, transparent);
  --shimmer-band: linear-gradient(90deg, transparent, var(--shimmer), transparent);
  --shimmer-band-hero: linear-gradient(90deg, transparent, var(--shimmer-hero), transparent);
  --shimmer-w: 40%;              /* the band's width, as a share of the block */
  --shimmer-from: -120%;         /* where the band starts and ends its pass, as a share of its own width */
  --shimmer-to: 320%;
  --hatch-gap: 6px;
  --hatch: repeating-linear-gradient(-45deg, var(--line-strong) 0 var(--hairline), transparent var(--hairline) var(--hatch-gap));

  /* type (7.3): one family, three weights; each style as a font shorthand and its tracking */
  --font-sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --type-display: var(--weight-semibold) 42px/1.05 var(--font-sans);
  --track-display: -0.03em;
  --type-heading: var(--weight-semibold) 28px/1.15 var(--font-sans);
  --track-heading: -0.025em;
  --type-lead: var(--weight-medium) 28px/1.2 var(--font-sans);
  --track-lead: -0.02em;
  --type-title: var(--weight-semibold) 20px/1.5 var(--font-sans);
  --track-title: -0.01em;
  --type-wordmark: var(--weight-semibold) 22px/1.5 var(--font-sans);
  --track-wordmark: -0.035em;
  --type-body: var(--weight-regular) 16px/1.5 var(--font-sans);
  --type-body-s: var(--weight-regular) 14px/1.5 var(--font-sans);
  --type-label: var(--weight-semibold) 14px/1.5 var(--font-sans);
  --type-label-quiet: var(--weight-medium) 14px/1.5 var(--font-sans);
  --type-label-s: var(--weight-semibold) 12px/1.5 var(--font-sans);    /* a small button's label */
  --track-label: -0.005em;
  --type-caption: var(--weight-regular) 12px/1.5 var(--font-sans);
  --type-badge: var(--weight-medium) 12px/1.5 var(--font-sans);
  --type-eyebrow: var(--weight-medium) 12px/1.5 var(--font-sans);
  --track-eyebrow: 0.06em;
  --type-code: var(--weight-regular) 12px/1.5 var(--font-mono);
  --type-unit: var(--weight-medium) 20px/1.5 var(--font-sans);    /* a unit beside a large figure, in ink-2 */
  --clamp-lines: 2;              /* a table cell holds at most two lines (7.17) */

  /* spacing (7.4): 8 px steps */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s8: 64px;
  --s-quarter: 2px;              /* between menu links, inside a chip */
  --s-half: 4px;                 /* inside a badge row, between a figure and its unit */
  --s-three-quarter: 6px;        /* between a tooltip and its control */
  --s-snug: 10px;                /* inside a note */
  --s-tight: 12px;               /* a cell's inner padding, a small button's side padding */
  --s-cell: 14px;                /* a table cell's sides, a menu link's sides */

  /* shape (7.5) */
  --r: 10px;
  --r-s: 8px;
  --r-xs: 4px;                   /* 14 to 16 px marks 8 px corners would make round: swatches, the knob, a bracket */
  --round: 50%;
  --hairline: 1px;

  /* layout (7.4) */
  --top-h: 64px;
  --side-open: 248px;
  --side-closed: 72px;
  --side-shift: 176px;
  --chat-w: 400px;
  --content-max: 1180px;
  --text-max: 760px;
  --measure: 60ch;               /* an empty state's sentence */

  /* sizes of the parts (the design system's part notes) */
  --control-h: 40px;
  --control-h-s: 32px;
  --badge-h: 24px;
  --badge-pad: 10px;
  --icon: 20px;
  --icon-s: 16px;
  --icon-stroke: 1.6;
  --marker: 3px;                 /* the current page's lime bar in the menu */
  --track-h: 28px;               /* the quiet rail under a result bar */
  --credit-h: 8px;               /* the email tool's credit: a thin solid bar on its own thin rail, the same scale */
  --whisker: 2px;
  --whisker-cap: 12px;
  --curve-inset: 12px;           /* a result curve's days: half a range cap and half a day's label inside the plot */
  --mini-track-w: 88px;
  --mini-track-h: 6px;
  --cell-h: 40px;
  --cell-gap: 4px;
  --stat-min-h: 176px;
  --spark-w: 88px;
  --spark-h: 28px;
  --palette-w: 560px;
  --palette-input-h: 56px;
  --row-h: 40px;
  --head-h: 48px;
  --tile: 40px;
  --name-min: 220px;             /* a table's first column */
  --name-min-phone: 200px;       /* the same on a phone, where the table scrolls in its own box */
  --how-h: 28px;                 /* the "How was this calculated?" button */
  --how-w: 360px;                /* its box */
  --spark-ring: 2px;             /* the ring around a sparkline's last point */
  --fact-min: 200px;             /* a fact of the next-test card */
  --skel-hero: 280px;            /* the skeleton blocks, the size of what they stand for */
  --skel-tall: 240px;
  --skel-table: 420px;
  --skel-chart: 360px;
  --skel-line: 12px;
  --skel-short: 60%;
  --skel-word: 32%;              /* a heading or title still to come */
  --skel-ask: 412px;             /* a page's own blocks while it loads, measured on the page with the demo sample */
  --skel-ask-mid: 474px;         /* at 1440, below 1280 (measured at 1024) and on a phone (390): see the loading test; */
  --skel-ask-narrow: 696.2px;    /* measured again with the founder's approved sentences (1 December 2026, PD-034) */
  --skel-waiting: 73px;
  --skel-waiting-narrow: 114px;
  --skel-face: 294px;
  --skel-face-mid: 468px;
  --skel-face-narrow: 560.4px;
  --skel-runs: 220px;            /* Today's titled cards: the tests running, what needs attention */
  --skel-runs-narrow: 308px;
  --skel-alerts: 139px;
  --skel-alerts-mid: 160px;
  --skel-alerts-narrow: 229px;
  --skel-result: 266px;          /* a campaign's result card and its table of days */
  --skel-result-mid: 430.6px;
  --skel-result-narrow: 468.2px;
  --skel-curve: 482px;           /* the picture of its days with its label and button, at every size (PD-033) */
  --skel-days: 604px;
  --skel-days-narrow: 882px;     /* on a phone each day reads down (PD-031, PD-033) */
  --skel-ltv-curve: 504px;       /* LTV over time: the curve's card, its answer on one line (1440 and 1280, the MVP) */
  --skel-ltv-days: 478px;        /* its eight days with the foot */
  /* the MVP's other pages while they load, each block at the Demo Brand sample's height at 1440 (7.19) */
  --skel-second: 541px;
  --skel-cohorts: 948px;
  --skel-drivers-note: 46px;
  --skel-drivers-products: 1412px;
  --skel-drivers-discount: 420px;
  --skel-drivers-channel: 497px;
  --skel-campaigns: 2396px;
  --skel-flows: 306px;
  --skel-tests-next: 344px;
  --skel-tests-more: 160px;
  --skel-method-checks: 1001px;
  --skel-method-bridge: 389px;
  --skel-method-credit: 279px;
  --skel-pair: 326px;            /* the campaign page's checks and facts cards, and its next step */
  --skel-pair-mid: 371px;
  --skel-pair-narrow: 713px;
  --skel-next: 165px;
  --skel-next-narrow: 186px;
  --skel-approve: 599px;         /* the approval box and its folded steps' line (PD-035) */
  --skel-approve-mid: 599px;
  --skel-approve-narrow: 854.2px;
  --skel-fold: 29px;
  --skel-conn-klaviyo: 241px;    /* Connections: Klaviyo beside the stop, the orders file, what Megovia set up and */
  --skel-conn-klaviyo-mid: 230px;  /* what is hard to undo, measured on the page with the demo sample at 1440, */
  --skel-conn-klaviyo-narrow: 356px;  /* at 1024 and on a phone (390) */
  --skel-conn-stop: 241px;
  --skel-conn-stop-mid: 220px;
  --skel-conn-stop-narrow: 241px;
  --skel-conn-orders: 328px;
  --skel-conn-orders-mid: 431px;
  --skel-conn-orders-narrow: 515px;
  --skel-conn-set-up: 390px;
  --skel-conn-set-up-mid: 453px;
  --skel-conn-set-up-narrow: 603px;
  --skel-conn-hard: 181px;
  --skel-conn-hard-mid: 204px;
  --skel-conn-hard-narrow: 358px;
  --skel-conn-klaviyo-read: 238px;  /* pilot Megovia's Connections: Klaviyo alone in its row and what is hard to */
  --skel-conn-klaviyo-read-mid: 238px;  /* undo with one row, measured on the page with the pilot sample */
  --skel-conn-klaviyo-read-narrow: 343px;
  --skel-conn-hard-read: 92px;
  --skel-conn-hard-read-mid: 134px;
  --skel-conn-hard-read-narrow: 232px;
  --skel-users-people: 363.2px;  /* Users: the people and the invitations, measured on the page with the demo */
  --skel-users-people-mid: 387.2px;  /* sample at 1440, 1024 and 390 */
  --skel-users-people-narrow: 809.2px;
  --skel-users-invited: 106px;
  --skel-users-invited-mid: 106px;
  --skel-users-invited-narrow: 181px;
  --skel-data-kept: 363px;       /* Data: the list with its setting, and what is hard to undo, measured on the page */
  --skel-data-kept-mid: 411px;   /* with the demo sample at 1440, 1024 and 390 */
  --skel-data-kept-narrow: 744px;
  --skel-data-hard: 316px;
  --skel-data-hard-mid: 400px;
  --skel-data-hard-narrow: 694px;
  --skel-conn-simulated: 115px;        /* the Demo Brand's one card on Connections and on Data (P-038), measured on */
  --skel-conn-simulated-narrow: 176px; /* the page with its sample at 1440 and 1024 (the same) and at 390 */
  --skel-data-simulated: 115px;
  --skel-data-simulated-narrow: 179px;
  --skel-notify-note: 46px;      /* Notifications: the note on what an email holds, the emails one can turn off and */
  --skel-notify-note-mid: 66px;  /* the ones always on, measured on the page with the demo sample */
  --skel-notify-note-narrow: 87px;
  --skel-notify-choose: 117px;
  --skel-notify-choose-mid: 117px;
  --skel-notify-choose-narrow: 159px;
  --skel-notify-always: 271px;
  --skel-notify-always-mid: 292px;
  --skel-notify-always-narrow: 480px;
  --skel-security-second: 257px;  /* Security: the second step's card and the recent sign-ins, measured on the page */
  --skel-security-second-mid: 257px;  /* with the demo sample */
  --skel-security-second-narrow: 320px;
  --skel-security-signins: 236px;
  --skel-security-signins-mid: 236px;
  --skel-security-signins-narrow: 376px;
  --facts-name: 112px;           /* a card's facts: the names' column, one width on every card of a page */
  --col-half: 50%;               /* a table's column shares, so that its columns keep their places from state to */
  --col-quarter: 25%;            /* state */
  --col-users-1: 30%;            /* Users' two lists: the same shares, so that their columns share their lines */
  --col-users-2: 15%;
  --col-users-3: 22%;
  --col-users-4: 18%;
  --name-min-users: 180px;       /* Users' names column below 1280: room for the role, the times and the opener */
  --col-data-1: 34%;             /* Data's list: what each kind is, then how long (its share) and when (the rest) */
  --col-data-2: 28%;
  --notify-name: 200px;          /* Notifications: the always-on emails' names column, one width for every row */
  --full-vw: 100vw;              /* the screen's width, for a box that must stay inside it */
  --turn-closed: -90deg;         /* a chevron pointing at what a closed row hides */
  --chart-tip-w: 280px;          /* a chart's tooltip */
  --cell-min: 56px;              /* a heat map cell */
  --cell-ring: 2px;              /* the ring around a hovered cell */
  --legend-step: 14px;           /* a step of the heat map's scale */
  --legend-swatch: 16px;         /* a legend's swatch */
  --legend-line: 24px;           /* a line's sample in a key */
  --plot-h: 240px;               /* a chart's plot area */
  --axis-w: 48px;                /* room for the y axis's labels */
  --axis-h: 28px;                /* room for the x axis's labels */
  --line-w: 2px;                 /* the main line of a curve */
  --dash: 6 4;                   /* a dashed line */
  --dots: 1 4;                   /* a dotted line */
  --curve-label-w: 120px;        /* room for the labels at the lines' ends */
  --meaning-name-w: 168px;       /* a term's column beside its sentence (Data and method) */
  --curve-dot: 8px;              /* a curve's day alone between days without a value */
  --hbar-h: 12px;                /* a horizontal bar */
  --shell-h: 100dvh;             /* the panel fills the screen (a frame may set its own height) */
  --menu-inset: 26px;            /* the menu's wordmark and foot line up with its icons (12 + 14) */
  --menu-max: 85%;               /* the menu over the page on a phone leaves the page in sight */
  --rail-link: 48px;             /* a link's hover and marker on the folded menu */
  --count-min: 22px;             /* the count of what waits on a page */
  --search-w: 280px;             /* the top bar's search button */
  --top-title-max: 40%;          /* the page's name and the brand in the top bar */
  --ping-from: 0.7;              /* the working agent's ring, from */
  --ping-scale: 2.6;             /* and how far it spreads */
  --palette-top: 12vh;           /* the palette's distance from the top of the screen */
  --palette-list-max: 336px;     /* its list scrolls past this */
  --chat-input-min: 52px;        /* the agent's question box */
  --chat-input-max: 160px;
  --send-room: 56px;             /* room for the send button inside it */
  --bubble-max: 88%;             /* a question's bubble */
  --agent-mark: 22px;            /* the agent's mark: the wordmark's "m" on a graphite tile */
  --auth-w: 440px;               /* the screens before the panel: one column (6.10) */
  --auth-w-wide: 720px;          /* setting up the authenticator: its steps with the QR code beside them */
  --qr: 184px;                   /* the authenticator's QR code: 45 modules of about 4 px, quiet zone included */
  --step-mark: 18px;             /* a working step's mark */
  --mark-ring: 1.5px;
  --step-check: 12px;            /* the check inside a done step */
  --progress-h: 6px;             /* a progress bar, the slider's track */
  --thumb: 20px;                 /* the slider's handle */
  --thumb-half: 10px;            /* its ticks start and end at the handle's centre */
  --thumb-lift: -7px;            /* centres the handle on the track: (6 - 20) / 2 */
  --calendar-date: 96px;         /* the calendar's date column */
  --upload-bar: 320px;           /* the upload's progress bar */
  --record-key: 160px;           /* the names in a record's detail */
  --dot: 4px;                    /* a busy button's dots */
  --busy-half: 14px;             /* half the dots' room beside a label: the label's gap (8) and three dots with their gaps (20) */
  --status-dot: 8px;             /* a status dot (round corners only here) */
  --kbd-h: 20px;                 /* a key hint */
  --switch-w: 36px;
  --switch-h: 20px;
  --knob: 14px;
  --knob-gap: 2px;               /* the knob's distance from the switch's edge */
  --knob-travel: 16px;           /* switch-w less two borders, two gaps and the knob */
  --code-w: 200px;               /* the approval code's input */
  --track-code: 0.25em;          /* the approval code's letter spacing */
  --check: 18px;                 /* a checkbox or a radio */
  --choice-min: 240px;           /* an option of a two-option choice */

  /* focus (7.12) */
  --focus-w: 2px;
  --focus-offset: 3px;
  --focus-w-chrome: 3px;
  --focus-offset-chrome: 2px;

  /* motion (7.8): only transform and opacity move */
  --dur-fast: 120ms;
  --dur: 220ms;
  --dur-slow: 420ms;
  --dur-grow: 700ms;
  --dur-shimmer: 1.4s;
  --dur-pulse: 1s;
  --dur-ping: 1.6s;              /* the working agent's ring */
  --stagger-card: 40ms;
  --stagger-bar: 120ms;
  --stagger-sentence: 90ms;
  --stagger-dot: 160ms;
  --stagger-cell: 40ms;          /* heat map cells along the diagonal, at most 40 ms apart */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --land: 0ms;                   /* when the block around a chart has landed; a page's entrance sets it (content.css) */
  --rise: 8px;                   /* a card comes down this far as it appears */
  --rise-s: 6px;                 /* a chat message rises this far */
  --lift: -1px;                  /* a card's hover */
  --press: 0.98;                 /* a pressed button */

  /* layers */
  --z-under: -1;                 /* a hover wash behind a cell's content */
  --z-main: 1;
  --z-chat: 4;
  --z-top: 5;
  --z-side: 6;
  --z-backdrop: 8;
  --z-overlay: 9;
  --z-pop: 20;
  --z-palette: 30;
  --z-skip: 50;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141413;
  --surface: #1c1c1a;
  --soft: #262624;
  --line: #2c2c29;
  --line-strong: #7a7a73;
  --ink: #f2f2ee;
  --ink-2: #a9a9a2;
  --on-ink: #0b0b0c;
  --negative: #f2a77a;
  --positive: #8ccb8c;
  --shimmer: color-mix(in srgb, var(--on-dark) 6%, transparent);
}
