/* threefold's look, locked by Jyoutir on 23 Nov 2026 (docs/review.md, "The look, decided late on 23 Nov 2026"):
   a white page, Mobbin's greys and type scale (measured from mobbin.com), Geist for all text, no accent colour.
   The logo's word is in Fraunces (John, 24 Nov 2026, docs/review.md and docs/brand/). */
/* Fraunces (SIL OFL 1.1, web/fonts/FRAUNCES-OFL.txt), for the logo's word only: weight 500 at optical size 22, cut down
   to the seven letters of "threefold" (1.9 KB; how to rebuild it is in docs/brand/README.md). */
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-wordmark-500.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
/* Geist (SIL OFL 1.1, web/fonts/GEIST-OFL.txt), self-hosted: the same variable font Google Fonts serves. */
@font-face { font-family: "Geist"; src: url("/fonts/geist-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* BUG-213: Geist's stand-in until the file lands. Geist is 2% to 10% wider than the system fonts, so a heading broke
   onto more lines when it arrived and moved the page (88 px on /resources/ at 390 wide). These faces are the local
   Arial, scaled per weight to Geist's measured advance width and given Geist's ascent and descent (1.01 and 0.29 em,
   no line gap; measured in Chromium, 24 Nov 2026), so the same words break on the same lines before and after. A device
   without Arial skips them and takes the next family in --font, as before. Each face covers only the characters Geist's
   two files cover (their unicode-range): any other character (an arrow, Cyrillic, Japanese) still takes the system font,
   as it did before these faces. Remove when Geist is no longer a web font. */
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 400; size-adjust: 102%; ascent-override: 99%; descent-override: 28.4%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 500; size-adjust: 104.3%; ascent-override: 96.8%; descent-override: 27.8%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 550; size-adjust: 98.7%; ascent-override: 102.3%; descent-override: 29.4%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 700; size-adjust: 99.5%; ascent-override: 101.5%; descent-override: 29.1%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* The same for the logo's font: the local Georgia at Fraunces's width for "threefold" (4.38 em against 4.03), so the word
   keeps its width when Fraunces lands. A device without Georgia takes the next family in --font-mark. */
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia"); font-weight: 400 700; size-adjust: 108.8%; ascent-override: 97.8%; descent-override: 25.5%; line-gap-override: 0%; unicode-range: U+0020-007E; }
/* ===== tokens =====
   Every colour, shadow, spacing step, radius, font size, font weight and motion curve that web/styles.css and
   web/projects.css use has one name here. Use a token, never a literal (web/AGENTS.md, "Design system").
   The values are the redesign's tokens.css (23 Nov 2026). docs/review/ui-kit.html shows each one (npm run generate:kit).
   Format, read by scripts/generate/ui-kit.mjs: one token per line, and a group starts with a one-line comment. */
:root {
  /* colour: Mobbin's greys on white. Solid values for what sits on white, see-through values for what may sit on a grey or a picture. No accent colour */
  --paper: #ffffff; /* the page */
  --paper-2: #f4f4f4; /* tiles, wells, bands */
  --paper-3: #f0f0f0; /* the quiet pill, the bar's lower edge */
  --ink: #141414; /* text, the black pill, the footer */
  --ink-hover: #262626; /* the black pill under the pointer */
  --muted: #6d6d6d; /* text that must be read: the lede, body, and every small label. 5.17:1 on white, 4.70:1 on --paper-2, 4.54:1 on --paper-3 (was #707070, 4.48 on --fill and 4.33 on --paper-3) */
  --quiet: var(--muted); /* small labels, off tabs, captions: text under 14 px takes the text grey, so it passes 4.5:1 on white and on every grey ground (BUG-202) */
  --quiet-mark: #878787; /* grey that is not text: bar fills, dots, chevrons. 3.6:1 on white, enough for a mark, not for words */
  --rail: #e8e8e8; /* section lines on white */
  --card: #ffffff; /* cards, menus, dialogs, fields */
  --ground: #ffffff; /* the signed-in app's ground */
  --on-ink: #ffffff; /* text on ink */
  --fill: rgb(64 64 64 / 0.06); /* = --paper-2 on white: wells and quiet fills */
  --fill-2: rgb(64 64 64 / 0.08); /* = --paper-3 on white: hover, chips, the quiet pill */
  --line: rgb(64 64 64 / 0.12); /* = --rail on white: hairlines and rings */
  --line-2: rgb(64 64 64 / 0.2); /* a ring under the pointer, a field's edge */
  --scrim: rgb(20 20 20 / 0.72); /* dark glass over a picture */
  --backdrop: rgb(20 20 20 / 0.2); /* behind a dialog (kit.css .dialog::backdrop) */
  --error: #b3261e; /* a wrong field or a failed state. The only red, never decoration */
  --accent: var(--ink); /* retired 23 Nov 2026 (no accent colour). Kept so old rules resolve */
  --foot: var(--ink);
  --foot-text: #adadad; /* grey text on ink */
  --foot-fill: #2b2b2b; /* white 8 % on ink: badges, a panel on a dark tile */
  --foot-mark: #262626; /* white 6 % on ink: the faint wordmark */
  --skel-light: color-mix(in oklch, var(--paper-2) 40%, var(--paper)); /* the light that crosses a skeleton */
  --medal-1: #faedc4; /* the rank medals' metal: the only colour the kit draws, because it carries a rank */
  --medal-1b: #efd690;
  --medal-1-ink: #7a5c12;
  --medal-2: #f2f2f2;
  --medal-2b: #dcdcdc;
  --medal-2-ink: #555555;
  --medal-3: #f6e0d0;
  --medal-3b: #e7c0a4;
  --medal-3-ink: #7d4a2a;

  /* role: where the one accent may colour (web/AGENTS.md, "The accent"). Threefold blue #0e1bf3, decided by Jyoutir 24 Nov 2026 (docs/brand/README.md) */
  --primary: oklch(0.45 0.292 265.2); /* the one primary action's fill (.btn): #0e1bf3 */
  --primary-hover: oklch(0.415 0.265 265.2);
  --primary-press: oklch(0.38 0.235 265.2);
  --on-primary: #ffffff; /* text on the primary fill */
  --link: var(--primary); /* a link in running text */
  --focus: var(--primary); /* the focus ring and a focused field's edge */
  --selected: var(--primary); /* the chosen tab's words, the current nav item */
  --selected-line: var(--primary); /* a thin line under the chosen tab */
  --on: var(--primary); /* a toggle when on, a progress bar, the "current" mark */
  --wash: oklch(0.965 0.016 265.2); /* a selected row */
  --focus-halo: color-mix(in oklch, var(--focus) 22%, transparent); /* the soft ring round a focused field */
  --select: color-mix(in oklch, var(--primary) 20%, transparent); /* selected text */
  --danger: var(--error); /* the fill of the one destructive confirm in a dialog */
  --on-danger: #ffffff; /* text on the danger fill */
  --tip: var(--ink); /* a tooltip's ground: dark on the light page */
  --on-tip: var(--paper); /* a tooltip's words */
  --data: var(--ink); /* a filled data mark: a bar, a segment, a line (its own role, so a future theme can soften wide bars) */
  --toast: var(--ink); /* the toast's ground */
  --on-toast: var(--on-ink); /* the toast's words */
  --toast-ok: oklch(0.79 0.105 265.2); /* a confirmation's tick on the dark toast: the light blue that reads on ink */
  --toast-bad: #f2716a; /* a failure's cross on the dark toast */
  --foot-ink: var(--on-ink); /* text on the footer */
  --map-ink: #0e1bf3; /* the landing map's lines, threefold blue, mixed into --map-ground (a hex value: web/views/landing/map.js reads it). Before 24 Nov 2026: #082087, with --map-strength 1 and --map-lit 1 below: those three values bring the first map back */
  --map-strength: 4; /* how strong every line of the map is (a number: 1 is the first map's faint lines). Before 24 Nov 2026: 1 */
  --map-lit: 2; /* how much stronger again the chosen country is drawn (a number). Before 24 Nov 2026: 1 */
  --map-ground: var(--paper);

  /* picture: small drawings the kit paints with CSS (masks take their shape, not their colour) */
  --knob: #ffffff; /* the toggle's knob */
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2 5 8.6 9.6 3.6'/%3E%3C/svg%3E"); /* a checkbox's tick (a mask) */
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); /* a status's tick: current, connected, approved (a mask) */
  --i-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); /* a status's clock: out of date (a mask) */
  --i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E"); /* a status's triangle: needs attention, changes asked (a mask) */
  --i-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m15 9-6 6'/%3E%3Cpath d='m9 9 6 6'/%3E%3C/svg%3E"); /* a status's cross in a circle: failed (a mask) */

  /* type: Geist for everything, Fraunces for the logo's word only, the system monospace for code */
  --font: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ch: 0.663em; /* the width of Geist's zero at weight 400. A column measured in it (not in ch) keeps its width while the stand-in font shows: Arial's zero is 15% narrower (BUG-213) */
  --ch-bold: 0.683em; /* the same at weight 600, for a heading's own width */
  --font-mark: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --font-code: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --w-regular: 400;
  --w-medium: 500;
  --w-ui: 550; /* pills and bar links */
  --w-bold: 600; /* headings */
  --tr-display: -0.035em;
  --tr-head: -0.035em;
  --tr-label: -0.02em;
  --tr-lede: -0.01em;
  --tr-ui: -0.01em;
  --t-hero: 80px; /* the first screen's headline. Steps down below 1200 px */
  --lh-hero: 1;
  --t-cta: 60px; /* the closing ask, a page title */
  --lh-cta: 1;
  --t-h: 44px; /* a section heading */
  --lh-h: 48px;
  --t-card: 24px; /* a card's title */
  --lh-card: 30px;
  --t-label: 20px; /* a tile's label */
  --t-mark: 22px; /* the logo's word */
  --tr-mark: -0.01em; /* the logo's word */
  --lh-label: 26px;
  --t-lede: 20px; /* the sentence under a headline */
  --lh-lede: 1.3;
  --t-body: 16px;
  --lh-body: 22px;
  --lh-prose: 24px; /* long running text in a 66ch column (.prose); body elsewhere is 16/22 */
  --t-ui: 16px; /* pills and bar links */
  --lh-ui: 22px;
  --t-small: 14px;
  --lh-small: 20px;
  --a-title: 24px; /* the signed-in app's scale: a page title */
  --a-title-lh: 30px;
  --a-section: 16px; /* a section title, weight 600 */
  --a-section-lh: 22px;
  --a-body: 14px; /* rows, cells, controls */
  --a-body-lh: 20px;
  --a-small: 12px; /* table heads, captions, badges */
  --a-small-lh: 16px;
  --a-num: 32px; /* one figure in a stat cell */
  --a-num-lh: 36px;
  --a-find: 28px; /* the figure of a finding card */
  --a-find-lh: 32px;
  --t-code: 13px; /* code in a block */
  --t-xs: 12px;
  --lh-xs: 16px;
  --t-sm: 14px;
  --lh-sm: 20px;
  --t-md: 16px;
  --lh-md: 22px;
  --t-lg: 20px;
  --lh-lg: 26px;
  --t-xl: 24px;
  --t-num: clamp(96px, 12vw, 160px); /* the big number */

  /* space: a 4 px base with Mobbin's rhythm on top */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 40px;
  --s8: 64px;
  --s9: 80px;
  --s10: 120px;
  --s11: 160px;
  --s12: 200px;
  --gap: 20px; /* between tiles, wells, columns */
  --gutter: 20px; /* the page's side padding */
  --section: 160px; /* above and below a section: 160, 120, 80 */
  --content: 80px; /* a section heading to its content: 80, 64, 40 */
  --hero-top: 200px;
  --hero-bottom: 80px;
  --hero-gap: 40px;
  --cta-row: 64px;
  --site-head-gap: var(--hero-gap); /* the rhythm as law (scratch KIT.md 2b). Site: a heading to its grey lines or lede */
  --site-body-gap: 20px; /* site: a heading to a small grey line */
  --site-card-pad: 24px; /* site: inside a tile, card or well */
  --site-grid-gap: 20px; /* site: between tiles, wells, columns */
  --app-pad: 32px; /* app: the page's side padding (16 below 900 px) */
  --app-head-top: 32px; /* app: the bar or the page tabs to the page title (24 below 900 px) */
  --app-head-gap: 24px; /* app: the page head to its content */
  --app-section-gap: 40px; /* app: one section to the next (32 below 900 px) */
  --app-title-gap: 12px; /* app: a section title to its body */
  --app-card-pad: 16px; /* app: inside a card, stat cell or well */
  --app-grid-gap: 16px; /* app: between cards and wells */

  /* layout: the column and the app's frame of reference */
  --measure: calc(66 * var(--ch));
  --col: calc(100vw - 2 * var(--gutter)); /* 12 of 16 columns from 1440 px, 14 from 1200 */
  --edge: calc((100vw - var(--col)) / 2); /* window edge to column */
  --rail-x: max(12px, calc(var(--edge) - 32px)); /* the site rails, 32 px outside the column */
  --max: var(--col);
  --appbar-h: 56px; /* the site's copies of the app bar; on a signed-in page the bar is --search-h and its padding (shell block) */
  --search-h: 56px; /* the app bar's search field (44 below 900 px) */
  --rail-w: 232px;
  --row: 44px; /* a table row */
  --row-dense: 36px;
  --ctl: 32px; /* the app's control */
  --ctl-sm: 28px;
  --ctl-lg: 36px;
  --pill-h: 44px; /* the black and the quiet pill */
  --field-h: 44px;

  /* radius: measured where Mobbin shows them. An inner corner is the outer less the padding */
  --r-xs: 6px; /* badges, code in a line */
  --r-sm: 8px; /* menu items */
  --r-md: 16px; /* cards, menus, screenshots, code */
  --r-page: 20px; /* the app's panel */
  --r-lg: 24px; /* tiles, dialogs */
  --r-xl: 32px; /* wells */
  --r-frame: 32px; /* the product frame: square below 768 px */
  --r-pill: 9999px; /* pills, fields, chips, toasts, round flags */
  --r-icon: 30%; /* app icons and square flags */
  --r-field: 10px; /* a rectangular field (.input), a textarea */
  --r-check: 4px; /* a checkbox */
  --r-ctl: 12px; /* a control on the app bar's grey band: the area switcher, Saved, the account */
  --r-lg-in: calc(var(--r-lg) - var(--s2)); /* 16: inside a 24 px box with 8 px padding */
  --r-md-in: calc(var(--r-md) - var(--s2)); /* 8: inside a 16 px menu with 8 px padding */
  --r-xl-in: calc(var(--r-xl) - var(--s4)); /* 16: inside a 32 px well with 16 px padding */

  /* shadow: Mobbin is nearly flat. Tiles and wells have none, only what floats */
  --sh-ring: 0 0 0 1px var(--line);
  --sh-1: 0 1px 2px rgb(20 20 20 / 0.04), 0 8px 24px rgb(20 20 20 / 0.06); /* a floating card */
  --sh-2: 0 0 0 1px var(--line), 0 12px 32px -8px rgb(20 20 20 / 0.14); /* a menu, a popover, the toast */
  --sh-3: 0 0 0 1px var(--line), 0 24px 64px -16px rgb(20 20 20 / 0.24); /* a dialog */
  --sh-menu: var(--sh-2), 0 2px 6px -2px rgb(20 20 20 / 0.08); /* the menu's list: the popover shadow and a close one, so it sits on its pill */
  --sh-float: 0 24px 60px -14px rgb(0 0 0 / 0.3), 0 0 0 1px rgb(0 0 0 / 0.06); /* a finding card over a frame */
  --sh-lift: 0 0 0 1px var(--line), 0 1px 2px rgb(20 20 20 / 0.08); /* the one chosen look: a segment, a chip, a step */
  --sh-flag: 0 0 0 1px rgb(0 0 0 / 0.14); /* every flag's hairline ring, so a flag on white (Japan) is not a bare red dot */
  --sh-lift-flag: 0 0 0 2px var(--card), 0 4px 10px rgb(20 20 20 / 0.22); /* a chosen round flag */

  /* motion: one set of curves and times. With reduced motion, nothing moves (web/lib/motion.js) */
  --ease: cubic-bezier(0.33, 1, 0.68, 1); /* most UI */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* things that arrive */
  --ease-in: cubic-bezier(0.5, 0, 0.75, 0); /* things that leave */
  --ease-hover: cubic-bezier(0, 0, 0.2, 1); /* hover and press */
  --ease-shine: cubic-bezier(0.45, 0, 0.55, 1); /* the band of light across a changed headline */
  --d1: 150ms; /* hover, press */
  --d2: 300ms; /* open, close, a landing */
  --d3: 440ms; /* a picture or a word changes */
  --d4: 500ms; /* a reveal */
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1); /* a press settling, a knob, a sliding indicator: a 3 % overshoot */
  --d-press: 80ms; /* a press going down */
  --d-out: 120ms; /* something that leaves: a menu, a tooltip */
  --d-in: 200ms; /* a menu, a popover or a dialog that arrives; it leaves faster (--d-out, --d1) */
  --d-toast: 400ms; /* a toast sliding up */
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1); /* a small reward springing in (the tick of a whole-control confirmation): about 10 % over */
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1); /* a bottom sheet */
  --ease-move: cubic-bezier(0.77, 0, 0.175, 1); /* something that moves from one place to another on screen: the "On this page" mark (microinteractions.md, "Curves by job") */
  --d-spin: 700ms; /* one turn of the working mark (thinkur's "processing") */
  --spin-floor: 0.14; /* the working mark's dimmest pixel on white, so its grid holds its shape (higher on grey and on a fill) */

  /* brand: other companies' own colours, for their marks only. Not part of the look */
  --brand-appstore-to: #1d6ff2;
  --brand-googleplay: #01875f;
  --brand-claude: #d97757;
  --brand-stripe: #0a2540; /* Stripe's slate */
  --brand-black: #000000; /* Vercel's and X's own black */
  --brand-revenuecat: #f2545b; /* simple-icons 16.38.1 */
  --brand-gsc: #458cf5; /* Google Search Console, simple-icons 16.38.1 */
  --brand-shopify: #7ab55c; /* simple-icons 16.38.1 */
}
/* The type and rhythm step down at 1200 and 768 px, as Mobbin's do (tokens.css). */
@media (min-width: 768px) { :root { --t-hero: 60px; --t-cta: 44px; --lh-cta: 48px; --hero-top: 160px; --hero-bottom: 64px; --hero-gap: 32px; --section: 120px; --content: 64px; } }
@media (min-width: 1200px) { :root { --t-hero: 80px; --t-cta: 60px; --lh-cta: 1; --hero-top: 200px; --hero-bottom: 80px; --hero-gap: 40px; --section: 160px; --content: 80px; --col: calc((100vw - 340px) * 0.875 + 260px); } }
@media (min-width: 1440px) { :root { --col: calc((min(100vw, 1728px) - 340px) * 0.75 + 220px); } }
@media (max-width: 767px) { :root { --t-hero: min(44px, calc((100vw - 40px) / 9.5)); --t-h: 32px; --lh-h: 36px; --t-cta: 32px; --lh-cta: 36px; --t-card: 20px; --lh-card: 26px; --hero-top: 128px; --hero-bottom: 40px; --hero-gap: 24px; --cta-row: 40px; --section: 80px; --content: 40px; --r-frame: 0px; } }
@media (max-width: 899px) { :root { --rail-x: 8px; --app-pad: 16px; --app-head-top: 24px; --app-section-gap: 32px; --search-h: var(--field-h); } }

/* ===== dark theme (off by default) =====
   BUG-190: the switch is the address (web/nav.js): ?theme=dark. Remove the switch when the owner decides on dark.
   Jyoutir has not decided yet (24 Nov 2026). Claude's warm greys (ground #141413, raised #1f1e1d, text #faf9f5, grey
   text #c2c0b6 and #9c9a92) and the blue's dark ramp (fill #3462e1). Values and contrast: web/AGENTS.md, "Dark theme". */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141413; --paper-2: #1f1e1d; --paper-3: #262624; --ground: #141413; --card: #1f1e1d; --rail: #2c2c2a;
  --ink: #faf9f5; --ink-hover: #e8e6dc; --muted: #c2c0b6; --quiet: #9c9a92; --quiet-mark: #9c9a92; --on-ink: #141413;
  --fill: rgb(222 220 209 / 0.06); --fill-2: rgb(222 220 209 / 0.1); --line: rgb(222 220 209 / 0.12); --line-2: rgb(222 220 209 / 0.2);
  --backdrop: rgb(0 0 0 / 0.6); --error: #f2716a; --skel-light: #2a2927;
  --foot: #0c0c0b; --foot-ink: #faf9f5; --foot-text: #9c9a92; --foot-fill: #262624; --foot-mark: #1a1a18;
  --medal-1: #3b3220; --medal-1b: #5c4b22; --medal-1-ink: #f0d68a; --medal-2: #2c2c2a; --medal-2b: #42413d; --medal-2-ink: #dedcd1; --medal-3: #3b2a20; --medal-3b: #5a3d2a; --medal-3-ink: #f0c4a4;
  --sh-1: 0 0 0 1px var(--line); --sh-2: 0 0 0 1px var(--line), 0 12px 32px -8px rgb(0 0 0 / 0.5); --sh-3: 0 0 0 1px var(--line), 0 24px 64px -16px rgb(0 0 0 / 0.7);
  --sh-float: 0 0 0 1px var(--line), 0 24px 60px -14px rgb(0 0 0 / 0.6); --sh-lift: 0 0 0 1px var(--line-2); --sh-flag: 0 0 0 1px rgb(255 255 255 / 0.16); --sh-lift-flag: 0 0 0 2px var(--card), 0 4px 10px rgb(0 0 0 / 0.5);
  --brand-black: #faf9f5; --brand-stripe: #ffffff; --map-ground: #141413;
  --primary: oklch(0.54 0.2 265.2); --primary-hover: oklch(0.57 0.19 265.2); --primary-press: oklch(0.5 0.2 265.2); --link: oklch(0.79 0.105 265.2); --focus: var(--link); --selected: var(--link); --on: var(--link); --wash: oklch(0.28 0.06 265.2); --map-ink: #c5d8ff; --map-strength: 1; --map-lit: 1;
}

/* ===== base =====
   The page itself: box sizing, the body, links, images, form fonts, focus and selection. Owner: the coordinator (stage 0). */
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--t-body); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; }
img { display: block; }
/* the browser's bold is 700 (900 inside a 600 parent), and the scale stops at 600 (--w-bold). One rule for every b and strong; a class that sets its own weight still wins */
:where(b, strong) { font-weight: var(--w-bold); }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:where(a, button, input, select, summary, label) { touch-action: manipulation; } /* no double-tap wait on a control */
:root { color-scheme: light; }
html { scrollbar-color: var(--line-2) transparent; }
/* one focus ring: 2 px of the accent, 2 px out. Fields draw their own (an accent edge and a soft halo) */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--select); }
input, textarea, [contenteditable] { caret-color: var(--focus); }
/* inner scroll areas: a thin bar (the page's own bar is the system's) */
:where(.menu, .results, .table-scroll, .panel-side, .dialog, .seg) { scrollbar-width: thin; }
@media print {
  body { background: var(--paper); }
}

/* ===== kit =====
   One rule set for each part of web/lib/fragments.js and the classes every view shares. Owner: the coordinator (stage 0).
   A builder who needs a change here asks the coordinator for a small pull request (PORT-PLAN §3.3). */
/* type */
.eyebrow { text-align: center; font-size: var(--t-small); line-height: var(--lh-small); font-weight: var(--w-medium); color: var(--quiet); margin: var(--s7) 0 var(--s3); }
h1.hero { text-align: center; font-size: var(--t-hero); line-height: var(--lh-hero); letter-spacing: var(--tr-display); font-weight: var(--w-bold); margin: var(--s2) auto var(--gap); max-width: 900px; text-wrap: balance; }
h1.hero.sm { font-size: var(--t-h); line-height: var(--lh-h); }
.lede { text-align: center; color: var(--muted); font-size: var(--t-lede); line-height: var(--lh-lede); letter-spacing: var(--tr-lede); max-width: 640px; margin: 0 auto var(--s6); text-wrap: balance; }
.lede b { color: var(--ink); font-weight: var(--w-medium); }
h2 { font-size: var(--t-card); line-height: var(--lh-card); letter-spacing: var(--tr-head); font-weight: var(--w-bold); margin: var(--s8) 0 var(--s2); }
h2.center, p.center { text-align: center; }
h3 { font-size: var(--a-section); line-height: var(--a-section-lh); letter-spacing: var(--tr-ui); font-weight: var(--w-bold); margin: 0 0 var(--s1); }
.sub { color: var(--muted); font-size: var(--t-body); line-height: var(--lh-body); margin: 0 0 var(--s5); }
.label { font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); font-weight: var(--w-medium); }

/* surfaces */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s5); }
.card.inset { background: var(--paper-2); border-color: transparent; border-radius: var(--r-md-in); }
.grid { display: grid; gap: var(--s4); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.row { display: flex; align-items: center; gap: var(--s3); }

/* buttons */
/* Five kinds, one press. .btn: the one primary action of a view (the accent pill; Mobbin's has no arrow, so the arrow
   disc that site pages and button() still write is hidden). .ghost: every other action (a grey pill). .btn-line: white
   with a hairline, for a control on grey. .btn-text: words only. .iconbtn: one icon in a 32 px circle. .danger turns the
   words red (.ghost) or, on the last step of a dialog only, the fill (.btn). Every one: hover one step darker; a press
   goes down to 0.97 in 80 ms and settles back with a small spring; focus is the one accent ring; disabled is flat grey;
   working (busy()) shows the spinner in place of the icon, keeps the label and the width, and takes no click. */
:where(.btn, .ghost, .btn-line, .btn-text, .iconbtn, .chip, .copy-btn, .appbar-pill, .avatar, .dialog-close) { touch-action: manipulation; transition: background-color var(--d1) var(--ease-hover), color var(--d1) var(--ease-hover), box-shadow var(--d1) var(--ease-hover), scale var(--d2) var(--ease-spring); -webkit-tap-highlight-color: transparent; }
:where(.btn, .ghost, .btn-line, .btn-text, .iconbtn, .chip, .copy-btn, .appbar-pill, .avatar, .dialog-close):active:not(:disabled, [aria-disabled="true"], [aria-busy="true"]) { scale: 0.97; transition-duration: var(--d1), var(--d1), var(--d1), var(--d-press); transition-timing-function: var(--ease-hover); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--pill-h); padding: var(--s2) var(--gap); border-radius: var(--r-pill); background: var(--primary); color: var(--on-primary); border: 0; text-decoration: none; font-size: var(--t-ui); line-height: var(--lh-ui); font-weight: var(--w-ui); letter-spacing: var(--tr-ui); cursor: pointer; }
.btn:hover { background: var(--primary-hover); }
.btn:active { background: var(--primary-press); }
.btn .arrow { display: none; }
.btn.sm { min-height: var(--ctl); padding: var(--s1) var(--s3); font-size: var(--a-body); line-height: var(--a-body-lh); font-weight: var(--w-medium); }
.btn.danger { background: var(--danger); color: var(--on-danger); }
.btn.danger:hover { background: color-mix(in oklch, var(--danger), var(--ink) 12%); }
.ghost { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--ctl-lg); padding: var(--s2) var(--s4); border-radius: var(--r-pill); background: var(--fill-2); border: 0; color: var(--ink); text-decoration: none; font-size: var(--a-body); line-height: var(--a-body-lh); font-weight: var(--w-medium); cursor: pointer; }
.ghost:hover, .ghost:active { background: var(--line); }
:is(.ghost, .btn-line, .btn-text).is-done > .ic, :is(.ghost, .btn-line, .btn-text).is-done > .turn-box > .ic { color: var(--on); } /* busy(…, { done }): the accent tick */
.ghost.danger, .btn-text.danger { color: var(--error); }
.btn-line { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--ctl); padding: 0 var(--s3); border: 0; border-radius: var(--r-pill); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-size: var(--a-body); line-height: var(--a-body-lh); font-weight: var(--w-medium); cursor: pointer; white-space: nowrap; }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--line-2); background: color-mix(in oklch, var(--card), var(--ink) 2%); }
.btn-text { display: inline-flex; align-items: center; gap: var(--s1); min-height: var(--ctl); padding: 0 var(--s2); margin-inline: calc(-1 * var(--s2)); border: 0; border-radius: var(--r-pill); background: none; color: var(--muted); text-decoration: none; font-size: var(--a-body); line-height: var(--a-body-lh); font-weight: var(--w-medium); cursor: pointer; white-space: nowrap; }
.btn-text:hover, .btn-text:active { background: var(--fill); color: var(--ink); }
.iconbtn { display: inline-grid; place-items: center; flex: none; width: var(--ctl); height: var(--ctl); padding: 0; border: 0; border-radius: var(--r-pill); background: none; color: var(--muted); cursor: pointer; }
.iconbtn:hover, .iconbtn:active { background: var(--fill-2); color: var(--ink); }
.iconbtn[aria-pressed="true"], .iconbtn[aria-expanded="true"] { background: var(--fill-2); color: var(--ink); }
.iconbtn.lg { width: var(--ctl-lg); height: var(--ctl-lg); }
:is(.btn, .ghost, .btn-line, .btn-text, .iconbtn, .chip):is(:disabled, [aria-disabled="true"]) { cursor: not-allowed; }
.btn:is(:disabled, [aria-disabled="true"]):not([aria-busy="true"]) { background: var(--fill-2); color: var(--quiet); }
:is(.ghost, .btn-line, .btn-text, .iconbtn, .chip):is(:disabled, [aria-disabled="true"]):not([aria-busy="true"]) { color: var(--quiet); background-color: var(--fill); box-shadow: none; }
:is(.btn-text, .iconbtn):is(:disabled, [aria-disabled="true"]) { background: none; }
[aria-busy="true"]:is(.btn, .ghost, .btn-line, .btn-text, .iconbtn) { cursor: progress; pointer-events: none; }
:is(.btn, .ghost, .btn-line, .btn-text) > .spin { margin-left: -2px; }
/* busy() on a button with no icon: the words stay (clear) so the width holds, and the mark sits on their middle */
:is(.btn, .ghost, .btn-line, .btn-text, .iconbtn):has(> .busy-mark) { position: relative; }
.busy-hold { display: contents; }
.busy-hold > *, :is(.btn, .ghost, .btn-line, .btn-text, .iconbtn):has(> .busy-mark) { color: transparent; }
.busy-mark { position: absolute; inset: 0; display: grid; place-items: center; color: var(--busy-ink, currentColor); }
.btn .busy-mark { --busy-ink: var(--on-primary); }
:is(.ghost, .btn-line, .btn-text, .iconbtn) .busy-mark { --busy-ink: var(--ink); }
/* a touch screen: every small control answers a 44 px target, drawn as an invisible ring round it */
@media (pointer: coarse) {
  :is(.ghost.sm, .btn.sm, .btn-line, .btn-text, .iconbtn, .chip, .copy-btn):not(.dialog-close) { position: relative; }
  :is(.ghost.sm, .btn.sm, .btn-line, .btn-text, .iconbtn, .chip, .copy-btn):not(.dialog-close)::after { content: ""; position: absolute; inset: min(-6px, calc((100% - 44px) / 2)) -4px; }
}
.chip { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--ctl); padding: var(--s1) var(--s3); border-radius: var(--r-pill); border: 0; background: var(--fill-2); color: var(--muted); font-size: var(--a-body); line-height: var(--a-body-lh); font-weight: var(--w-medium); cursor: pointer; white-space: nowrap; }
.chip:hover { background: var(--line); color: var(--ink); }
.chip.static { cursor: default; }
.chip.static:hover { background: var(--fill-2); color: var(--muted); }
.chips { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); }

/* status */
/* A badge is a word on its tint, never a dot (docs/research/redesign/component-craft.md, "The dots"): neutral grey; ok in
   ink; warn a ring; bad red words on a red wash; accent ("live", "free") the accent on its wash. .dot stays for the
   status page's own sheet and old markup; no kit part draws one. */
   
.badge { display: inline-flex; align-items: center; gap: var(--s1); min-height: 20px; padding: 0 var(--s2); border-radius: var(--r-pill); background: var(--fill-2); color: var(--muted); font-size: var(--a-small); line-height: var(--a-small-lh); font-weight: var(--w-medium); white-space: nowrap; }
.badge.muted { color: var(--quiet); }
.badge.sm { min-height: 18px; }
.badge.ok { color: var(--ink); } .badge.warn { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); } .badge.bad { background: color-mix(in oklch, var(--error) 10%, transparent); color: var(--error); }
.badge.accent { background: var(--wash); color: var(--selected); }
.badge > .ic { margin-left: -2px; stroke-width: 2.25; }

/* form */
.results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 5; background: var(--card); border: 0; border-radius: var(--r-md); padding: var(--s2); box-shadow: var(--sh-2); max-height: 420px; overflow: auto; }
.results .group { padding: var(--s2) var(--s3) var(--s1); }
.result { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s3); border-radius: var(--r-md-in); cursor: pointer; text-decoration: none; }
.result:hover { background: var(--fill); }
select, .num { padding: var(--s2) var(--s3); border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--card); font-size: var(--a-body); line-height: var(--a-body-lh); font-weight: var(--w-medium); }
.input { padding: var(--s2) var(--s3); border: 1px solid var(--line-2); border-radius: var(--r-field); background: var(--card); }
/* every field: a hairline at rest, darker under the pointer, the accent edge and a soft halo when focused, red when
   wrong (aria-invalid), a grey ground when off. A select keeps the browser's own chevron: several screens draw their own */
:is(.input, select, .num, .project-field :is(input, select, textarea)) { transition: border-color var(--d1) var(--ease-hover), box-shadow var(--d1) var(--ease-hover); }
:is(.input, select, .num, .project-field :is(input, select, textarea)):hover:not(:focus, :disabled) { border-color: color-mix(in oklch, var(--ink) 30%, transparent); }
:is(.input, select, .num, .project-field :is(input, select, textarea)):focus-visible, :is(.input, .project-field :is(input, textarea)):focus { border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-halo); outline: none; }
:is(.input, select, .num, .project-field :is(input, select, textarea))[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px color-mix(in oklch, var(--error) 18%, transparent); }
:is(.input, select, .num, .project-field :is(input, select, textarea)):disabled { background: var(--fill); color: var(--quiet); cursor: not-allowed; }
:is(.input, .project-field :is(input, textarea))::placeholder { color: var(--quiet); }
.field-error { margin: var(--s1) 0 0; font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--error); }
/* the checkbox: 16 px, 4 px corners, the accent with a white tick when on (the tick draws in); a dash when mixed */
input[type="checkbox"]:not([role="switch"], .switch), input[type="radio"] { appearance: none; flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; margin: 0; border-radius: var(--r-check); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); vertical-align: -0.2em; cursor: pointer; transition: background-color var(--d1) var(--ease-hover), box-shadow var(--d1) var(--ease-hover); }
input[type="radio"] { border-radius: var(--r-pill); }
input[type="checkbox"]:not([role="switch"], .switch):hover, input[type="radio"]:hover { box-shadow: inset 0 0 0 1.5px color-mix(in oklch, var(--ink) 40%, transparent); }
input[type="checkbox"]:not([role="switch"], .switch)::before { content: ""; width: 10px; height: 10px; background: var(--on-primary); -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; clip-path: inset(0 100% 0 0); transition: clip-path var(--d1) var(--ease-out); }
input[type="checkbox"]:not([role="switch"], .switch):is(:checked, :indeterminate), input[type="radio"]:checked { background: var(--primary); box-shadow: none; }
input[type="checkbox"]:not([role="switch"], .switch):checked::before { clip-path: inset(0); transition-duration: var(--d2); }
input[type="checkbox"]:not([role="switch"], .switch):indeterminate::before { -webkit-mask: none; mask: none; height: 2px; border-radius: 1px; clip-path: inset(0); }
input[type="radio"]::before { content: ""; width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--on-primary); opacity: 0; scale: 0.5; transition: scale var(--d1) var(--ease-spring), opacity var(--d-press) var(--ease-hover); }
input[type="radio"]:checked::before { opacity: 1; scale: 1; }
:is(input[type="checkbox"], input[type="radio"]):disabled { background: var(--fill); box-shadow: inset 0 0 0 1.5px var(--line); cursor: not-allowed; }
/* the toggle (role="switch" or .switch): 32 by 20, the knob slides with a small spring, the accent when on */
:is(input[role="switch"], input.switch) { appearance: none; flex: none; position: relative; width: 32px; height: 20px; margin: 0; border-radius: var(--r-pill); background: var(--line-2); cursor: pointer; transition: background-color var(--d1) var(--ease-hover); }
:is(input[role="switch"], input.switch)::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: var(--r-pill); background: var(--knob); box-shadow: 0 1px 2px rgb(20 20 20 / 0.18), 0 0 0 0.5px rgb(20 20 20 / 0.06); transform-origin: 0 50%; transition: translate var(--d2) var(--ease-spring), scale var(--d1) var(--ease-hover); }
:is(input[role="switch"], input.switch):active:not(:disabled)::after { scale: 1.19 1; }
:is(input[role="switch"], input.switch):checked { background: var(--primary); }
:is(input[role="switch"], input.switch):checked::after { translate: 12px 0; transform-origin: 100% 50%; }
:is(input[role="switch"], input.switch):disabled { opacity: 0.45; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { :is(input[role="switch"], input.switch)::after, input[type="checkbox"]::before, input[type="radio"]::before { transition: none; } }
.field-label { font-weight: var(--w-bold); font-size: var(--a-body); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); overflow: hidden; max-width: 820px; margin: 0 auto; }
.stat { padding: var(--s5) var(--gap); text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .n { font-size: var(--a-num); font-weight: var(--w-bold); letter-spacing: -0.04em; }
.stat .label { margin-top: var(--s1); }

/* apps */
.icon { width: 44px; height: 44px; border-radius: var(--r-icon); border: 1px solid var(--fill); flex: none; background: var(--fill); }
.icon.lg { width: 84px; height: 84px; }
.icon.sm { width: 32px; height: 32px; }
 /* the selected look: a soft wash, never a side stripe */

/* pillars */
/* code, shared by the account and agent groups */
.code { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); background: var(--paper-2); border-radius: var(--r-md); padding: var(--s3) var(--s4); font-family: var(--font-code); font-size: var(--a-small); line-height: var(--a-body-lh); overflow-x: auto; }
.code code { white-space: pre; }

/* checklist */
 

input[type="range"] { width: 100%; accent-color: var(--primary); }

.empty, .loading, .error { text-align: center; color: var(--muted); padding: var(--s8) var(--s5); font-size: var(--t-small); line-height: var(--lh-small); }
.empty.compact, .loading.compact { padding: var(--s4); }
.error { color: var(--error); }
.error.inline { padding: 0; }
.muted { color: var(--muted); }
.small { font-size: var(--t-small); line-height: var(--lh-small); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--gap) 0; }

@media (max-width: 900px) {
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  h2 { font-size: var(--t-xl); margin-top: var(--s7); }
}
@media print {
  .card { break-inside: avoid; }
}
.ic { flex: none; vertical-align: -0.15em; }

.brand { display: inline-grid; place-items: center; border-radius: var(--r-icon); color: var(--on-ink); flex: none; box-shadow: var(--sh-ring); }
.brand svg { width: 58%; height: 58%; }
.brand-claude { background: var(--brand-claude); }
.brand-openai { background: var(--ink); }

.tile-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-icon); background: var(--fill-2); color: var(--ink); flex: none; }
.tile-ic.sm { width: 30px; height: 30px; }
.tile-ic.big { width: 56px; height: 56px; }
.pill-ok, .pill-soon { display: inline-flex; align-items: center; gap: var(--s1); font-size: var(--a-small); line-height: var(--a-small-lh); font-weight: var(--w-medium); padding: var(--s1) var(--s2); border-radius: var(--r-pill); vertical-align: middle; letter-spacing: 0; }
.pill-ok { background: var(--wash); color: var(--selected); } /* "live", "free": the word on the accent's wash, no dot */
.pill-soon { background: var(--fill); color: var(--quiet); }


/* tiles (tile() in lib/fragments.js) */
.tile { display: flex; flex-direction: column; gap: var(--s3); overflow: hidden; min-height: 0; }
.tile-head { display: flex; justify-content: space-between; align-items: center; }
.tile-n { font-size: var(--t-card); line-height: var(--lh-card); font-weight: var(--w-bold); letter-spacing: var(--tr-head); display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.tile .label { margin-top: -6px; }
.badge .ic { margin-right: -2px; }
.ghost .brand { box-shadow: none; }

/* the redesign's shared parts:
   One rule set for each part that lib/fragments.js adds on 24 Nov 2026, from the redesign's mock-up kit
   (scratch/kit.css). The kit page shows each one (npm run generate:kit). */
.vh { position: absolute !important; left: 0; top: 0; margin: -1px; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* flags: local SVG files, round or square */
.flag { display: inline-block; flex: none; vertical-align: middle; border-radius: var(--r-pill); object-fit: cover; background: var(--fill); box-shadow: var(--sh-flag); }
:where(img[src^="/brand/flags/"]) { box-shadow: var(--sh-flag); } /* a flag a view draws without .flag; its own ring still wins */
.flag.flag-sq { border-radius: var(--r-icon); }
.flag-none { display: inline-grid; place-items: center; font-size: var(--a-small); font-weight: var(--w-medium); color: var(--quiet); white-space: nowrap; overflow: hidden; }

/* word tabs: grey words, the chosen one in the accent with a 2 px line under it. Tab buttons wired with wireChoice()
   get one line that slides to the new choice (.choice-ink); link tabs draw the line on the current one */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s5); font-size: var(--t-body); line-height: var(--lh-body); font-weight: var(--w-medium); }
.tabs > a, .tabs > button { padding: var(--s2) 0; border: 0; background: none; color: var(--quiet); text-decoration: none; cursor: pointer; transition: color var(--d1) var(--ease); }
.tabs > :hover { color: var(--muted); }
.tabs > [aria-selected="true"], .tabs > [aria-current="page"] { color: var(--selected); box-shadow: inset 0 -2px 0 var(--selected-line); }
.tabs.tabs-sm { justify-content: flex-start; gap: var(--s4); font-size: var(--a-body); line-height: var(--a-body-lh); }

/* the segmented control: one grey pill, the chosen part white */
.seg { display: inline-flex; gap: calc(var(--s1) / 2); padding: calc(var(--s1) / 2); border-radius: var(--r-pill); background: var(--fill-2); vertical-align: middle; max-width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.seg > button { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--ctl-sm); padding: 0 var(--s3); border: 0; border-radius: var(--r-pill); background: none; color: var(--muted); font-size: var(--a-body); line-height: var(--a-body-lh); font-weight: var(--w-medium); white-space: nowrap; cursor: pointer; transition: background-color var(--d1) var(--ease), color var(--d1) var(--ease); }
.seg > button:hover { color: var(--ink); }
.seg > button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--sh-ring), 0 1px 2px var(--fill-2); }
.seg > button:disabled { opacity: 0.4; cursor: default; }
/* the sliding indicator (wireChoice): the tab line, or the segmented control's white part, moves to the new choice */
.has-ink { position: relative; }
.choice-ink { position: absolute; left: 0; top: 0; z-index: 0; width: var(--w, 0); height: var(--h, 0); translate: var(--x, 0) var(--y, 0); transform-origin: 0 50%; pointer-events: none; } /* wireChoice moves it with one transform animation: a 12 % stretch in mid-travel, no overshoot (the pill would be cut at the control's edge) */
.tabs > .choice-ink { height: 2px; translate: var(--x, 0) calc(var(--y, 0) + var(--h, 0) - 2px); border-radius: 1px; background: var(--selected-line); }
.tabs.has-ink > [aria-selected="true"] { box-shadow: none; }
.seg > .choice-ink { border-radius: var(--r-pill); background: var(--card); box-shadow: var(--sh-ring), 0 1px 2px var(--fill-2); }
.seg.has-ink > button { position: relative; z-index: 1; }
.seg.has-ink > button[aria-pressed="true"] { background: none; box-shadow: none; }
.seg.seg-sm > button { min-height: 24px; padding: 0 var(--s2); font-size: var(--a-small); line-height: var(--a-small-lh); }
/* A row of tabs kept on one line (wireMoreTabs): the tabs that do not fit are in the last pill, "More", a menu. The
   row never wraps, scrolls or clips; the pill takes the chosen look when the chosen tab is inside it. */
[data-fit] { flex-wrap: nowrap; }
[data-fit="done"] { overflow: visible; }
[data-fit] > button, [data-fit] > [role="tablist"] > button, .tabs-more { flex: none; }
[data-fit] button[hidden], .tabs-more[hidden], .tabs-more .menu-item[hidden] { display: none; }
.tabs-more > .menu-btn { min-height: var(--ctl-sm); padding: 0 var(--s3); background: none; color: var(--muted); white-space: nowrap; }
.tabs-more > .menu-btn:hover { background: none; color: var(--ink); }
.tabs-more > .menu-btn[aria-expanded="true"] { background: var(--line); color: var(--ink); }
.tabs-more > .menu-btn.is-on { background: var(--card); color: var(--ink); box-shadow: var(--sh-ring), 0 1px 2px var(--fill-2); }

/* the menu: a quiet pill that opens a white list. The list sits 6 px under its pill, at least as wide as the pill, and
   wireMenu() keeps it inside the window (it sets left, data-side="top" and the origin --ox --oy at the pill's middle).
   It grows from the pill (from 0.96 with a fade, --d-in) and leaves towards it faster (--d-out): transitions, so a
   second click in mid-flight turns it round from where it is. No animation when the keyboard opened it (data-instant).
   Corners are concentric: 12 px outside = 8 px rows + 4 px padding. Rows are 32 px (44 px under a finger) */
.menuwrap { position: relative; display: inline-block; }
.menu-btn .ic { margin-right: -2px; color: var(--quiet); }
.menu-btn { position: relative; }
.menu-btn[aria-expanded="true"]:where(.ghost:not(.pick)) { background: var(--line); }
.menu-btn.pick[aria-expanded="true"], .appbar-pill[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--line-2); }
.menu-btn > .ic:last-child:not(:only-child) { transition: rotate var(--d-in) var(--ease-out); }
.menu-btn[aria-expanded="true"] > .ic:last-child:not(:only-child) { rotate: 180deg; }
.menu { position: absolute; z-index: 40; left: 0; top: calc(100% + 6px); display: grid; width: max-content; min-width: max(100%, 184px); max-width: min(320px, calc(100vw - 2 * var(--s2))); max-height: min(420px, 60dvh); overflow: auto; overscroll-behavior: contain; padding: var(--s1); border-radius: calc(var(--r-sm) + var(--s1)); background: var(--card); box-shadow: var(--sh-menu); opacity: 0; scale: 0.96; transform-origin: var(--ox, 0) var(--oy, 0); pointer-events: none; transition: opacity var(--d-out) var(--ease-hover), scale var(--d-out) var(--ease-hover); }
.menu[hidden] { display: none; }
.menu[data-open] { opacity: 1; scale: 1; pointer-events: auto; transition-duration: var(--d-in); transition-timing-function: var(--ease-out); }
.menu[data-side="top"] { top: auto; bottom: calc(100% + 6px); }
.menu[data-instant], .menu-btn:has(+ .menu[data-instant]) > .ic { transition: none; }
@media (prefers-reduced-motion: reduce) { .menu { scale: 1; } .menu-btn > .ic:last-child { transition: none; } }
.menu.menu-end { left: auto; right: 0; }
/* a row: the wash is at once under the pointer (a fade would trail behind it); a press is one step darker */
.menu-item { display: grid; align-content: center; gap: calc(var(--s1) / 2); width: 100%; min-height: var(--ctl); padding: var(--s1) var(--s2); border: 0; border-radius: var(--r-sm); background: none; color: var(--ink); font-size: var(--a-body); line-height: var(--a-body-lh); text-align: left; text-decoration: none; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.menu-item:hover, .menu-item:focus-visible { background: var(--fill); }
.menu-item:active { background: var(--fill-2); }
.menu-item:focus-visible { outline-offset: -2px; }
@media (pointer: coarse) { .menu-item { min-height: 44px; } }
/* the pill's label after a pick (wireMenu): the old one fades out on top with a little blur while the new one comes in */
.pick-ghost { position: absolute; left: 0; top: 0; bottom: 0; display: inline-flex; align-items: center; gap: inherit; padding-left: inherit; white-space: nowrap; pointer-events: none; animation: pick-out var(--d-out) var(--ease-hover) forwards; }
.menu-btn.is-swapping { overflow: hidden; }
.menu-btn.is-swapping > :not(.pick-ghost, .ic:last-child) { animation: pick-in var(--d-in) var(--ease-out) backwards; }
@keyframes pick-out { to { opacity: 0; filter: blur(2px); } }
@keyframes pick-in { from { opacity: 0; filter: blur(2px); } }
@media (prefers-reduced-motion: reduce) { .pick-ghost { display: none; } .menu-btn.is-swapping > :not(.pick-ghost, .ic:last-child) { animation: none; } }
.menu-item small { font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); }
.menu-item[aria-current="page"] { font-weight: var(--w-medium); }
.menu-item[aria-disabled="true"] { color: var(--quiet); cursor: default; }
.menu-item[aria-disabled="true"]:is(:hover, :active) { background: none; }
.menu-sep { height: 1px; margin: var(--s1) var(--s2); background: var(--line); }

/* the flag picker: round flags, a ring 3 px out around each chosen one */
.flagset { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.flagset > button { display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--r-pill); background: none; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: scale var(--d2) var(--ease-spring), box-shadow var(--d2) var(--ease); }
@media (hover: hover) and (pointer: fine) { .flagset > button:hover { scale: 1.08; } } /* a real pointer only: a finger leaves a false hover behind */
.flagset > button:active:not(:disabled) { scale: 1.04; transition-duration: var(--d-press); }
.flagset > button[aria-pressed="true"] { scale: 1.12; box-shadow: var(--sh-lift-flag), 0 0 0 4px var(--on); } /* the lift and a thin accent ring: on a row of round flags the lift alone was hard to see (never an ink ring, scratch KIT.md 4c) */
.flagset > button:focus-visible { outline: 2px solid var(--focus); }
.flagset > button:disabled { opacity: 0.3; scale: 1; cursor: default; }

/* the country rail: the left column's list of countries */
.crail { display: grid; gap: calc(var(--s1) / 2); min-width: 0; }
.crail h3 { margin: 0 0 var(--s1); font-size: var(--a-small); line-height: var(--a-small-lh); font-weight: var(--w-medium); color: var(--quiet); }
.crail-row { display: flex; align-items: center; gap: var(--s2); width: 100%; min-height: var(--ctl); padding: var(--s1) var(--s2); border: 0; border-radius: var(--r-sm); background: none; color: var(--muted); font-size: var(--a-body); line-height: var(--a-body-lh); text-align: left; text-decoration: none; cursor: pointer; transition: background-color var(--d1) var(--ease), color var(--d1) var(--ease); }
.crail-row:hover { background: var(--fill); color: var(--ink); }
.crail-row:active:not([aria-pressed="true"], [aria-current="page"]) { background: var(--fill-2); }
.crail-row[aria-pressed="true"], .crail-row[aria-current="page"] { background: var(--wash); color: var(--ink); font-weight: var(--w-medium); }
.crail-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crail-n { color: var(--quiet); font-size: var(--a-small); line-height: var(--a-small-lh); font-variant-numeric: tabular-nums; }

/* the table of app rows */
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--a-body); line-height: var(--a-body-lh); }
.table th { position: sticky; top: 0; z-index: 1; background: var(--paper); text-align: left; font-size: var(--a-small); line-height: var(--a-small-lh); font-weight: var(--w-medium); color: var(--quiet); padding: var(--s4) var(--s4) var(--s2) 0; white-space: nowrap; box-shadow: inset 0 -1px 0 var(--line); }
:is(.card, .setcard, .dialog, .smcell, .finding) .table th { background: var(--card); } /* the head's ground is the ground it sits on */
.table td { height: var(--row); padding: var(--s1) var(--s4) var(--s1) 0; vertical-align: middle; white-space: nowrap; border-top: 1px solid var(--line); }
.table tbody tr:first-child td { border-top: 0; }
.table .rank { width: 32px; color: var(--quiet); text-align: center; font-variant-numeric: tabular-nums; }
.table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.table tbody tr { transition: background-color var(--d1) var(--ease); }
.table tbody tr:hover td { background: var(--fill); }
/* a selected row: the accent's wash across the row, never a side stripe. A row that needs attention says so in its
   status cell (stateMark("attention", …)) with one action that fixes it; the row itself is not tinted */
.table tbody tr:is([aria-selected="true"], .is-selected) td { background: var(--wash); }
.table tbody tr.is-off :is(td:not(:last-child)) { opacity: 0.5; }
.approw { display: flex; align-items: center; gap: var(--s3); min-width: 0; text-decoration: none; }
.approw-text { display: block; flex: 1; min-width: 0; }
.approw-text b { display: block; font-size: var(--a-body); line-height: var(--a-body-lh); font-weight: var(--w-medium); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.approw-text small { display: block; margin-top: calc(var(--s1) / 2); font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the wells: grey, no shadow; the screenshot well 32 px corners, the video and ad wells 24 */
.shotwell { position: relative; display: grid; place-items: start center; padding: var(--s6) var(--s6) 0; border-radius: var(--r-xl); background: var(--paper-2); overflow: hidden; aspect-ratio: 4 / 5; min-width: 0; text-decoration: none; }
.shotwell > .icon { position: absolute; left: var(--s4); top: var(--s4); z-index: 1; }
.well-shot { position: relative; display: block; width: 100%; aspect-ratio: 9 / 19.5; border-radius: var(--r-md) var(--r-md) 0 0; overflow: hidden; background: var(--fill); }
.well-shot img { width: 100%; height: 100%; object-fit: cover; }
.shotwell.shotwell-web { aspect-ratio: 16 / 10; }
.shotwell.shotwell-web .well-shot { aspect-ratio: 16 / 10; border-radius: var(--r-sm) var(--r-sm) 0 0; }
.vidwell { display: block; min-width: 0; padding: var(--s2) var(--s2) var(--s4); border-radius: var(--r-lg); background: var(--paper-2); text-decoration: none; transition: background-color var(--d1) var(--ease); }
a.vidwell:hover { background: var(--paper-3); }
.vid { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-lg-in); overflow: hidden; background: var(--fill); }
.vid > img:not(.flag) { width: 100%; height: 100%; object-fit: cover; }
.vid-src { position: absolute; left: var(--s2); top: var(--s2); display: inline-flex; align-items: center; height: 24px; padding: 0 var(--s2); border-radius: var(--r-xs); background: var(--scrim); color: var(--on-ink); font-size: var(--a-small); line-height: var(--a-small-lh); font-weight: var(--w-medium); }
.vidwell-text { display: block; padding: var(--s3) var(--s2) 0; min-width: 0; }
.vidwell-text > b { display: block; font-size: var(--t-sm); line-height: var(--lh-sm); font-weight: var(--w-medium); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.figs { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); margin-top: calc(var(--s1) / 2); font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--muted); font-variant-numeric: tabular-nums; }
.figs b { color: var(--ink); font-weight: var(--w-medium); }

/* skeletons in the shape of what lands; land() fades the real content in. Still with reduced motion */
.skel, .skel-text::before { background: linear-gradient(90deg, var(--paper-2) 30%, var(--skel-light) 50%, var(--paper-2) 70%) 0 0 / 300% 100%; animation: skel 1.4s linear infinite; }
.skel { display: block; border-radius: var(--r-xs); }
.skel-text { display: block; height: var(--lh-sm); padding-block: var(--s1); }
.skel-text::before { content: ""; display: block; height: 100%; border-radius: var(--r-pill); }
.skel-text.skel-text-xs { height: var(--lh-xs); padding-block: var(--s1); margin-top: calc(var(--s1) / 2); }
.skel-text.skel-text-lg { height: var(--lh-lg); padding-block: var(--s1); }
.skel-w0 { width: 62%; } .skel-w1 { width: 48%; } .skel-w2 { width: 74%; } .skel-w3 { width: 56%; } .skel-w4 { width: 40%; } .skel-w5 { width: 68%; } .skel-w6 { width: 52%; } .skel-w7 { width: 44%; }
.skel-icon { width: 32px; height: 32px; flex: none; border-radius: var(--r-icon); }
.skel-corner { position: absolute; left: var(--s4); top: var(--s4); }
.skel-fill { position: absolute; inset: 0; border-radius: 0; }
.skel-rank { width: 16px; height: 12px; margin-inline: auto; }
.skel-num-cell { width: 36px; margin-left: auto; }
.skel-number { width: 2.2ch; height: 1lh; border-radius: var(--r-md); }
.is-skel { pointer-events: none; }
.is-landed { animation: land var(--d1) var(--ease) both; } /* seen on every load and filter change: opacity only, 150 ms */
@keyframes skel { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes land { from { opacity: 0; } }

/* the copy button */
.copy-btn { display: inline-flex; align-items: center; gap: var(--s1); min-height: var(--ctl); padding: 0 var(--s3); border: 0; border-radius: var(--r-pill); background: none; color: var(--muted); font-size: var(--a-small); line-height: var(--a-small-lh); font-weight: var(--w-medium); white-space: nowrap; cursor: pointer; }
.copy-btn:hover { background: var(--fill); color: var(--ink); }
.copy-btn:active { background: var(--fill-2); }
/* the whole control confirms (flood() in lib/fragments.js; the owner's beean chip): the accent floods it from the
   point of the press (a clip-path circle, --d2), a white tick and the word spring in from 0.8 (350 ms, --ease-pop),
   it holds 1.5 s and fades back in 300 ms. A layer over the control's own content, so the width never changes. On the
   blue or red button the layer is the button's own fill. A keyboard press and reduced motion get a fade (.is-plain) */
:where([data-flood]) { position: relative; }
.flood { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; border-radius: inherit; background: var(--primary); color: var(--on-primary); font-weight: var(--w-medium); white-space: nowrap; pointer-events: none; clip-path: circle(6px at var(--fx, 50%) var(--fy, 50%)); transition: clip-path var(--d2) var(--ease-out), opacity var(--d2) var(--ease); }
.btn > .flood { background: inherit; }
.flood.is-on { clip-path: circle(var(--fr, 150%) at var(--fx, 50%) var(--fy, 50%)); }
.flood.is-off { opacity: 0; }
.flood.is-off > .flood-in { opacity: 0; filter: blur(2px); transition: opacity var(--d-press) var(--ease-hover), filter var(--d-press) var(--ease-hover); } /* the words go first, so the settle never shows two labels at once */
.flood-in { display: inline-flex; align-items: center; gap: var(--s1); opacity: 0; scale: 0.8; filter: blur(4px); transition: scale 350ms var(--ease-pop) 40ms, opacity var(--d1) var(--ease-hover) 40ms, filter var(--d-in) var(--ease-out) 40ms; }
.flood-in > .ic { stroke-width: 2.75; }
.flood.is-on > .flood-in { opacity: 1; scale: 1; filter: none; }
.flood.is-plain { clip-path: none; opacity: 0; transition: opacity var(--d1) var(--ease); }
.flood.is-plain.is-on { opacity: 1; }
.flood.is-plain.is-off { opacity: 0; }
.flood.is-plain > .flood-in { scale: 1; filter: none; transition: none; opacity: 1; }
/* a word or an icon that turns into the next (Copy → Copied, Save → Saved): out with a blur, in with a blur (rule 7) */
.turn-box { display: inline-flex; align-items: center; gap: inherit; min-width: 0; }
.turn { display: inline-flex; align-items: center; transition: opacity var(--d-out) var(--ease-in), filter var(--d-out) var(--ease-in), scale var(--d-out) var(--ease-in); }
.turn.is-out { opacity: 0; filter: blur(3px); scale: 0.85; }
.turn.is-in { transition-duration: 200ms; transition-timing-function: var(--ease-out); }

/* the toast: a dark pill at the bottom, three at most */
.toasts { position: fixed; left: 50%; bottom: var(--s5); translate: -50% 0; z-index: 60; display: grid; gap: var(--s2); justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: var(--s4); min-height: var(--pill-h); padding: var(--s2) var(--s2) var(--s2) var(--s5); border-radius: var(--r-pill); background: var(--toast); color: var(--on-toast); font-size: var(--a-body); box-shadow: var(--sh-2); pointer-events: auto; animation: toast-in var(--d-toast) var(--ease-out) both; }
.toast:not(:has(button)) { padding-right: var(--s5); }
.toast:has(> .ic:first-child) { padding-left: var(--s4); gap: var(--s2); }
.toast > .ic:first-child { flex: none; }
.toast.is-done > .ic:first-child { color: var(--toast-ok); }
.toast.is-error > .ic:first-child { color: var(--toast-bad); }
.toast > span { margin-right: var(--s2); }
.toast button { min-height: var(--ctl); padding: 0 var(--s4); border: 0; border-radius: var(--r-pill); background: var(--on-toast); color: var(--toast); font-weight: var(--w-medium); cursor: pointer; transition: scale var(--d2) var(--ease-spring); }
.toast button:active { scale: 0.97; transition-duration: var(--d-press); }
.toast.is-leaving { animation: toast-out var(--d1) var(--ease-in) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(0.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

/* the working mark (spinner() in lib/fragments.js): thinkur's pixel loop on a 3 by 3 grid. Each edge pixel's light is a
   Gaussian of its distance from the head as the head goes round once per --d-spin; it never goes below --spin-floor, so
   the grid keeps its shape. The floor follows the ground: higher on a grey pill and on a filled button, where a light
   pixel must read as a paler blue or grey, not vanish. When work is done the mark resolves (.is-resolving: every pixel
   lights) and turns into the tick (busy(), the chat's tool call) */
.spin { display: inline-block; flex: none; vertical-align: middle; overflow: visible; color: inherit; }
.spin rect { fill: currentColor; opacity: var(--spin-floor); transition: opacity 160ms var(--ease-out); }
.spin .spin-px { opacity: calc(var(--spin-floor) + (1 - var(--spin-floor)) * var(--lit, 0)); animation: spin-px var(--d-spin) linear infinite; }
.spin.is-resolving rect { animation: none; opacity: 1; }
.spin.spin-accent { color: var(--on); }
.spin.spin-quiet { color: var(--quiet); }
:is(.ghost, .chip, .findstrip, .nextbox, .code-well, .chat, .shotwell, .vidwell, .adwell, .adcard, .ladder, .skel-on-grey) .spin { --spin-floor: 0.2; }
:is(.btn, .toast, .chat-send) .spin { --spin-floor: 0.34; }
@keyframes spin-px {
  0%, 100% { opacity: 1; }
  5%, 95% { opacity: calc(var(--spin-floor) + (1 - var(--spin-floor)) * 0.933); }
  10%, 90% { opacity: calc(var(--spin-floor) + (1 - var(--spin-floor)) * 0.758); }
  15%, 85% { opacity: calc(var(--spin-floor) + (1 - var(--spin-floor)) * 0.536); }
  20%, 80% { opacity: calc(var(--spin-floor) + (1 - var(--spin-floor)) * 0.330); }
  25%, 75% { opacity: calc(var(--spin-floor) + (1 - var(--spin-floor)) * 0.177); }
  30%, 70% { opacity: calc(var(--spin-floor) + (1 - var(--spin-floor)) * 0.083); }
  35%, 65% { opacity: calc(var(--spin-floor) + (1 - var(--spin-floor)) * 0.034); }
  40%, 60% { opacity: calc(var(--spin-floor) + (1 - var(--spin-floor)) * 0.012); }
  45%, 55% { opacity: var(--spin-floor); }
}
@media (prefers-reduced-motion: reduce) { .spin .spin-px { animation: none; } .spin rect { transition: none; } }

/* the meter's glyph (meterGlyph): filled against empty reads down a column before the words are read */
.mglyph { flex: none; overflow: visible; color: inherit; vertical-align: -0.15em; } /* the words' colour: one weight of meaning, never lighter by accident */
.mglyph .mg-fill { fill: currentColor; }
.mglyph .mg-tick { fill: none; stroke: var(--paper); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mglyph .mg-ring { fill: none; stroke: currentColor; stroke-width: 1.5; }
.mglyph .mg-dash { stroke-dasharray: 2.2 2.1; }

/* the meter: the glyph, then the level in words; the words carry the weight of the level */

@media (prefers-reduced-motion: reduce) {
  .skel, .skel-text::before, .is-landed, .toast, .toast.is-leaving { animation: none; }
  .flagset > button:is(:hover, :active) { scale: 1; }
}

/* motion helpers (web/lib/motion.js): the swap. Still with reduced motion */
.tnum { font-variant-numeric: tabular-nums; }
.swap { display: inline-block; transition: opacity 120ms var(--ease-in), filter 120ms var(--ease-in), scale 120ms var(--ease-in); }
.swap.is-out { opacity: 0; filter: blur(4px); scale: 0.8; }
.swap.is-in { transition-duration: 200ms; transition-timing-function: var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .swap { transition: none; }
}

/* the redesign's parts, one per job (scratch KIT.md 4c; S0-C, 24 Nov 2026). web/AGENTS.md "Building a screen" has the
   table of job, part and helper. Where the mock-up's name is already a live screen's class (.stats, .code, .empty), the new
   rules apply only to the new markup (BUG-110), so today's screens do not change. The rarer parts' rules are in
   web/parts.css (web/lib/parts.js loads it) and the charts' in web/charts.css */

/* the app page: .panel (a filter rail and the page) or .panel-solo (the page alone); the page head names the page */
#view:has(> .panel) { max-width: none; padding: 0; min-height: 0; }
.panel { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: calc(100dvh - var(--appbar-h)); background: var(--ground); }
.panel.panel-solo { grid-template-columns: minmax(0, 1fr); }
.panel-side { position: sticky; top: var(--appbar-h); align-self: start; max-height: calc(100dvh - var(--appbar-h)); overflow: auto; padding: var(--s4) var(--s4) var(--s6); border-right: 1px solid var(--line); }
.panel-main { min-width: 0; padding: 0 var(--app-pad) var(--s8); }
.apphead { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: var(--s3) var(--s5); padding-block: var(--app-head-top) var(--app-head-gap); }
.apphead > div:first-child { min-width: 0; }
.apptitle { margin: 0; font-size: var(--a-title); line-height: var(--a-title-lh); font-weight: var(--w-bold); letter-spacing: var(--tr-label); text-wrap: balance; }
.appsub { margin: calc(var(--s1) / 2) 0 0; font-size: var(--a-body); line-height: var(--a-body-lh); color: var(--muted); text-wrap: pretty; }
.apphead-end { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.appsection { margin: var(--app-section-gap) 0 var(--app-title-gap); font-size: var(--a-section); line-height: var(--a-section-lh); font-weight: var(--w-bold); letter-spacing: var(--tr-ui); }
@media (max-width: 899px) {
  .panel { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .panel-side { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); padding: var(--s2) var(--s4); overflow-x: auto; }
  .panel-side .crail { display: flex; gap: var(--s1); } /* the rail is one row that scrolls sideways */
  .panel-side .crail > h3 { display: none; }
  .panel-side .crail-row { width: auto; flex: none; }
  .panel-side .crail-name { overflow: visible; }
  .hide-sm { display: none; }
}

/* the quiet pill at the app's control size */
.ghost.sm { min-height: var(--ctl); padding: 0 var(--s3); }
/* the official "Sign in with Google" button (lib/marks.js googleSignIn): Google's own file in a bare button */
.gsi-btn { display: inline-flex; padding: 0; border: 0; border-radius: var(--r-pill); background: none; cursor: pointer; }
.gsi-btn > img { display: block; }

/* the finding strip: what the page found, one grey line under its head */
.findstrip { display: flex; align-items: center; gap: var(--s3); min-height: 48px; padding: var(--s2) var(--s4) var(--s2) var(--s3); border-radius: var(--r-md); background: var(--paper-2); font-size: var(--a-body); line-height: var(--a-body-lh); color: var(--muted); min-width: 0; }
.findstrip > p { flex: 1; min-width: 0; margin: 0; }
.findstrip b { color: var(--ink); font-weight: var(--w-bold); font-variant-numeric: tabular-nums; }
.findstrip span { color: var(--quiet); }

/* a highlight inside the app: one real figure, a small picture, a few words */
.finding { display: grid; gap: var(--s2); min-width: 0; padding: var(--s4); border-radius: var(--r-md); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.finding-top { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.finding-num { font-size: var(--a-find); line-height: var(--a-find-lh); font-weight: var(--w-bold); letter-spacing: var(--tr-head); font-variant-numeric: tabular-nums; white-space: nowrap; }
.finding-say { margin: 0; font-size: var(--a-body); line-height: var(--a-body-lh); font-weight: var(--w-medium); text-wrap: pretty; }
.finding-k { display: flex; align-items: center; gap: var(--s1); margin: 0; font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); }

/* three or four figures in one card, each with its comparison (BUG-110: the site pages' old .stats keep their look) */
.stats:has(> .stat > b, > .stat.is-skel) { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); max-width: none; margin: 0; border: 0; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); background: var(--card); }
.stats:has(> .stat > b, > .stat.is-skel) > .stat { display: grid; align-content: start; gap: var(--s1); padding: var(--app-card-pad); text-align: left; min-width: 0; border: 0; }
.stats:has(> .stat > b, > .stat.is-skel) > .stat + .stat { box-shadow: inset 1px 0 0 var(--line); }
.stat > small { font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); }
.stat > b { font-size: var(--a-num); line-height: var(--a-num-lh); font-weight: var(--w-bold); letter-spacing: var(--tr-head); font-variant-numeric: tabular-nums; }
.stat > span { font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--muted); }
@media (max-width: 599px) {
  .stats:has(> .stat > b, > .stat.is-skel) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats:has(> .stat > b, > .stat.is-skel) > .stat:nth-child(odd) { box-shadow: inset 0 1px 0 var(--line); }
  .stats:has(> .stat > b, > .stat.is-skel) > .stat:nth-child(even) { box-shadow: inset 1px 1px 0 var(--line); }
  .stats:has(> .stat > b, > .stat.is-skel) > .stat:nth-child(-n + 2) { box-shadow: none; }
  .stats:has(> .stat > b, > .stat.is-skel) > .stat:nth-child(2) { box-shadow: inset 1px 0 0 var(--line); }
}

/* a track, bar rows and the usage meter */
.track { height: 8px; border-radius: var(--r-pill); background: var(--fill-2); overflow: hidden; }
.track > i { display: block; height: 100%; min-width: var(--s1); border-radius: inherit; background: var(--data); } /* data bars are ink */
.track.track-thin { height: 6px; }
.track.is-off > i { background: var(--quiet-mark); }
.bars { display: grid; gap: var(--s2); }
.barrow { display: grid; grid-template-columns: 104px minmax(0, 1fr) 40px; gap: var(--s3); align-items: center; font-size: var(--a-body); line-height: var(--a-body-lh); color: var(--muted); font-variant-numeric: tabular-nums; }
.barrow > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barrow > :last-child { text-align: right; color: var(--ink); }
.usage small { display: flex; justify-content: space-between; gap: var(--s3); font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); font-variant-numeric: tabular-nums; }
.usage small b { color: var(--ink); font-weight: var(--w-medium); }
.usage .track { height: 6px; margin-top: var(--s2); }
.usage .track > i { background: var(--on); } /* the accent: progress of something in flight (an allowance used) */

/* the table manner: the top three get a medal; the meter always says its level in words */
.medal { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-pill); font-size: var(--a-small); line-height: var(--a-small-lh); font-weight: var(--w-bold); font-variant-numeric: tabular-nums; color: var(--medal-1-ink); background: linear-gradient(180deg in oklch, var(--medal-1), var(--medal-1b)); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--medal-1-ink) 18%, transparent); }
.medal.is-2 { color: var(--medal-2-ink); background: linear-gradient(180deg in oklch, var(--medal-2), var(--medal-2b)); box-shadow: inset 0 0 0 1px var(--line); }
.medal.is-3 { color: var(--medal-3-ink); background: linear-gradient(180deg in oklch, var(--medal-3), var(--medal-3b)); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--medal-3-ink) 16%, transparent); }
.table.table-dense td { height: var(--row-dense); padding-block: var(--s1); }
.lmeter { display: inline-flex; align-items: center; gap: calc(var(--s1) * 1.5); font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--muted); white-space: nowrap; }
.lmeter[data-level="3"] { color: var(--ink); font-weight: var(--w-medium); }
.lmeter[data-level="0"] { color: var(--quiet); }
/* in running text the meter takes the sentence's size and sits on its line: the glyph, then the words */
:is(p, li) .lmeter[data-level] { display: inline; font-size: inherit; line-height: inherit; white-space: normal; color: inherit; }
:is(p, li) .lmeter > .mglyph { margin-right: 0.3em; vertical-align: -0.08em; width: 0.8em; height: 0.8em; } /* the cap height, sitting on the line */
.dots10 { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; } /* ten short bars, not ten dots: a gauge */
.dots10 > i { width: 4px; height: 12px; border-radius: 1px; background: var(--line); }
.dots10 > i.on { background: var(--ink); }

/* one chosen look: a chip with aria-pressed lifts to white */
.chip[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--sh-lift); }
.chip > .flag { margin-left: calc(-1 * var(--s1)); }
/* pick one country: round flags, the chosen one lifts; with names when the person must choose */
.flagset.flagset-names { gap: var(--s2); }
.flagset.flagset-names > button { display: inline-flex; gap: var(--s2); min-height: var(--ctl); padding: 0 var(--s3) 0 var(--s1); background: var(--fill-2); color: var(--muted); font-size: var(--a-body); font-weight: var(--w-medium); }
.flagset.flagset-names > button:is(:hover, :active) { scale: 1; color: var(--ink); }
.flagset.flagset-names > button[aria-pressed="true"] { scale: 1; background: var(--card); color: var(--ink); box-shadow: var(--sh-lift); }
/* a choice pill and its menu of options (the route sentence is two of them) */
.menu-btn.pick { min-height: var(--ctl); padding: 0 var(--s3) 0 var(--s2); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.menu-btn.pick:hover { background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); }
.menu-btn.pick.is-text { padding-left: var(--s4); }
.menu-item[role="menuitemradio"] { grid-template-columns: minmax(0, 1fr) 14px; align-items: center; }
.menu-item[role="menuitemradio"] > small { grid-column: 1; }
.menu-item[role="menuitemradio"] > .ic { grid-row: 1; grid-column: 2; visibility: hidden; }
.menu-item[aria-checked="true"] { font-weight: var(--w-medium); }
.menu-item[aria-checked="true"] > .ic { visibility: visible; color: var(--on); }
.menu-item > span:first-child { display: inline-flex; align-items: center; gap: var(--s2); min-width: 0; }

/* nothing to show, or something went wrong: about 150 px, a title, one line, one way out, in plain words with no mark.
   No figure in an error (BUG-110: empty() keeps the old text-only look; the new markup has .is-state) */
.empty.is-state { display: grid; justify-items: center; gap: var(--s1); padding: var(--s7) var(--s5); color: var(--ink); }
.empty.is-state > b { font-size: var(--a-section); line-height: var(--a-section-lh); font-weight: var(--w-bold); text-wrap: balance; }
.empty.is-state > p { max-width: calc(40 * var(--ch)); margin: 0; font-size: var(--a-body); line-height: var(--a-body-lh); color: var(--muted); text-wrap: balance; }
.empty.is-state > .ghost { margin-top: var(--s4); }

/* skeletons of the parts above, the same size as what lands */
.skel-page { display: grid; gap: calc(var(--s1) / 2); padding-block: var(--app-head-top) var(--app-head-gap); }
.skel-text.skel-text-cap { height: var(--a-small-lh); }
.skel-text.skel-text-h { height: var(--a-section-lh); }
.skel-text.skel-text-title { height: var(--a-title-lh); width: 36%; }
.skel-text.skel-text-num { height: var(--a-num-lh); width: 40%; }
.skel-text.skel-text-find { height: var(--a-find-lh); width: 30%; }
.skel-flag { width: 24px; height: 24px; flex: none; border-radius: var(--r-pill); }
.skel-pill { width: 72px; height: var(--ctl); flex: none; border-radius: var(--r-pill); }
.skel-bar { height: 100%; border-radius: inherit; }
/* on a grey part the blocks are white, so a skeleton never vanishes grey on grey */
:is(.shotwell, .vidwell, .adwell, .adcard, .findstrip, .nextbox, .skel-on-grey) .skel, :is(.shotwell, .vidwell, .adwell, .adcard, .findstrip, .nextbox, .skel-on-grey) .skel-text::before { background-image: linear-gradient(90deg, var(--paper) 30%, var(--paper-2) 50%, var(--paper) 70%); }

/* ===== shell =====
   The site bar, the app bar, the footer and the page frame around #view: web/index.html and site/build.mjs headerHtml,
   footerHtml and appBarHtml. Owner: the coordinator (stage 0). The router sets body[data-shell] from the route
   (web/app.js): "app" shows the app bar and hides the site bar and the footer; anything else is a site page. */
main { max-width: 1180px; margin: 0 auto; padding: var(--s5) var(--s6) var(--s9); min-height: 70vh; }
/* The view takes focus from script only (the saved-key notice hands it back, lib/key-notice.js): no ring around the page. */
main:focus { outline: none; }
/* The saved-key notice (web/app.js, lib/key-notice.js) sits above the view, in the site's column. Empty, it takes no room. */
#key-notice:not(:empty) { max-width: 1180px; margin: 0 auto; padding: var(--s4) var(--s6) 0; }
.keynote { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s3); padding: var(--s3) var(--s4); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); font-size: var(--t-small); line-height: var(--lh-small); }
.keynote p { margin: 0; }
.keynote-acts { display: flex; gap: var(--s2); }
@media (max-width: 640px) {
  main { padding: var(--s4) var(--s4) var(--s8); }
}
@media print {
  .sitebar, .appbar, .footer { display: none !important; }
}

/* the logo: three thin bars (an SVG, no font) and, in the footer only, the word in Fraunces 500. The site bar and the
   app bar show the bars alone (John, 24 Nov 2026: "in the website though it shouldn't say threefold"). It is the logo
   of the old clothing app's website with the bar ends a little rounder. The bars follow the word's size, so they are
   in em: 0.89 em tall (19.6 px at the 22 px size), 0.9 em from the word, and centred on the word's line. */
.logo { display: inline-flex; align-items: center; gap: 0.9em; min-width: 0; color: var(--ink); text-decoration: none; font-family: var(--font-mark); font-size: var(--t-mark); line-height: 1; font-weight: var(--w-medium); letter-spacing: var(--tr-mark); white-space: nowrap; }
.logo .mark { width: 0.515em; height: 0.89em; flex: none; fill: currentColor; }

/* the white page: its lower corners lift off the dark footer, which waits behind it while it fits the window
   (web/nav.js adds .is-reveal). The ground is white, so nothing shows at the corners on an app page */
.sheet { position: relative; z-index: 1; background: var(--paper); border-radius: 0 0 var(--r-xl) var(--r-xl); overflow: clip; }
@media (max-width: 767px) { .sheet { border-radius: 0 0 var(--r-lg) var(--r-lg); } }

/* the site bar (signed out), Mobbin's: 92 tall at the top, 68 with a hairline once the page moves; three links beside
   the logo, "Sign in" at the right, and the black pill only while no other black pill is in view (web/nav.js) */
.sitebar { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid transparent; transition: background-color var(--d2) var(--ease), border-color var(--d2) var(--ease); }
.sitebar.is-stuck { background: var(--paper); border-bottom-color: var(--paper-3); }
.sitebar-in { display: flex; align-items: center; height: 92px; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); transition: height var(--d2) var(--ease); }
.sitebar.is-stuck .sitebar-in { height: 68px; }
.sitebar-links { display: flex; gap: var(--s5); margin-left: var(--s6); }
.sitebar-links a, .sitebar-signin { display: inline-flex; align-items: center; height: var(--pill-h); color: var(--ink); text-decoration: none; font-size: var(--t-ui); line-height: var(--lh-ui); font-weight: var(--w-ui); letter-spacing: var(--tr-ui); white-space: nowrap; transition: opacity var(--d1) var(--ease-hover); }
.sitebar-links a:hover, .sitebar-signin:hover { opacity: 0.8; }
/* signed in (web/lib/api.js whoami() marks the body): the bar offers no "Sign in", in the bar or its menu */
body[data-signed-in] .sitebar-signin, body[data-signed-in] .nav-menu a[href$="#/signin"] { display: none; }
.sitebar-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; text-decoration-color: var(--selected); }
.sitebar-end { display: flex; align-items: center; gap: var(--s5); margin-left: auto; }
.sitebar-late { max-width: 220px; padding-inline: var(--s4); overflow: hidden; white-space: nowrap; transition: opacity var(--d1) var(--ease), max-width var(--d2) var(--ease), margin var(--d2) var(--ease), padding var(--d2) var(--ease), visibility 0s; }
.sitebar:not(.is-past) .sitebar-late { max-width: 0; padding-inline: 0; margin-left: calc(-1 * var(--s5)); opacity: 0; visibility: hidden; pointer-events: none; transition-delay: 0s, 0s, 0s, 0s, var(--d2); }
/* reduced motion: the bar changes height and its pill joins at once, with no slide */
@media (prefers-reduced-motion: reduce) {
  .sitebar, .sitebar-in, .sitebar-late { transition: none; }
}
/* the phone menu: a <details>, so it opens without JavaScript (web/nav.js adds aria-expanded and Escape) */
.nav-menu { display: none; position: relative; }
.nav-menu > summary { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill); color: var(--ink); cursor: pointer; user-select: none; transition: background-color var(--d1) var(--ease-hover); }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary:hover, .nav-menu[open] > summary { background: var(--fill); }
.nav-menu > nav { position: absolute; right: 0; top: calc(100% + var(--s2)); z-index: 40; display: grid; min-width: 220px; padding: var(--s2); border-radius: var(--r-md); background: var(--card); box-shadow: var(--sh-2); }
.nav-menu > nav a { display: flex; align-items: center; min-height: var(--pill-h); padding: 0 var(--s3); border-radius: var(--r-md-in); color: var(--ink); text-decoration: none; font-size: var(--t-ui); line-height: var(--lh-ui); font-weight: var(--w-ui); }
.nav-menu > nav a:hover { background: var(--fill); }
.nav-menu > nav a:focus-visible { outline-offset: -2px; }
/* below 768 px, as the locked design (scratch m/landing.html at 390): the three links go, "Sign in" stays, and there is no
   menu; once the black pill joins, "Sign in" moves left to make room. The bar is 64 tall, 56 once the page moves */
@media (max-width: 767px) {
  .sitebar-in { height: 64px; }
  .sitebar.is-stuck .sitebar-in { height: 56px; }
  .sitebar-links { display: none; }
}

/* the app bar (signed in): one grey band, as the owner's reference of 24 Nov 2026 (docs/review.md). The logo and the area
   switcher, a large white search in the middle (45 % of the bar), Saved and the account as white controls. No line under
   it: the white page starts below with rounded top corners. The bar stays at the top while the page scrolls; a view with
   tabs draws them at the band's foot (.page-tabs below), and that row scrolls with the page */
body[data-shell="app"] { --appbar-h: calc(var(--search-h) + 2 * var(--s3)); }
.appbar { display: none; position: sticky; top: 0; z-index: 30; grid-template-columns: minmax(0, 1fr) minmax(0, 45%) minmax(0, 1fr); align-items: center; gap: var(--s4); height: var(--appbar-h); padding-inline: var(--app-pad); background: var(--paper-2); }
body[data-shell="app"] .appbar { display: grid; }
body[data-shell="app"] .sitebar, body[data-shell="app"] .footer { display: none; }
body[data-shell="app"] .sheet { border-radius: 0; overflow: visible; background: var(--paper-2); }
/* the white page: the full width, the site's 1180 px column inside it (the same content box as before) */
body[data-shell="app"] main { max-width: none; min-height: calc(100dvh - var(--appbar-h)); padding-inline: max(var(--s6), calc((100% - 1180px) / 2 + var(--s6))); background: var(--paper); border-radius: var(--r-page) var(--r-page) 0 0; overflow: clip; } /* clip: a view's own white frame (.panel) takes the corners too; clip is no scroll box, so sticky parts still stick */
/* a view with tabs: the row sits on the band, and the page under it (.panel) is the white page */
body[data-shell="app"] #view:has(> .page-tabs, > .lib > .page-tabs) { background: none; border-radius: 0; }
.page-tabs + .panel { border-radius: var(--r-page) var(--r-page) 0 0; }
/* before a tabbed view's module arrives (web/app.js marks body[data-tabs]), the row's place is held: no jump when it lands */
body[data-shell="app"][data-tabs] #view:empty { padding: var(--pill-h) 0 0; background: none; border-radius: 0; }
body[data-shell="app"][data-tabs] #view:empty::before { content: ""; display: block; height: calc(100dvh - var(--appbar-h) - var(--pill-h)); background: var(--paper); border-radius: var(--r-page) var(--r-page) 0 0; }
.appbar-start { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.appbar-end { display: flex; justify-content: flex-end; align-items: center; gap: var(--s2); }
.appbar-pill { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-width: var(--pill-h); min-height: var(--pill-h); padding: 0 var(--s3); border: 0; border-radius: var(--r-ctl); background: var(--card); color: var(--ink); font-size: var(--a-body); line-height: var(--a-body-lh); font-weight: var(--w-medium); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--d1) var(--ease-hover), box-shadow var(--d1) var(--ease-hover); }
.appbar-pill:hover { box-shadow: inset 0 0 0 1px var(--line); }
.appbar-pill .ic { color: var(--quiet); }
/* the area switcher is quiet on the band: words and a chevron, a grey fill under the pointer and while open */
.appbar-area > .appbar-pill { background: none; }
.appbar-area > .appbar-pill:hover, .appbar-area > .appbar-pill[aria-expanded="true"] { background: var(--fill-2); box-shadow: none; }
/* Saved: the bookmark and the count (the library writes it, web/views/library/mine.js); its name stays in aria-label */
.appbar-saved .ic { color: var(--ink); }
.appbar-saved .appbar-label { display: none; }
/* the round avatar and the key hint, kept for the site's copies of the bar (web/views/landing/frame.js) and the account */
.avatar { display: grid; place-items: center; width: var(--ctl); height: var(--ctl); padding: 0; border: 0; border-radius: var(--r-pill); background: var(--card); box-shadow: var(--sh-ring); color: var(--ink); cursor: pointer; }
.avatar:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 var(--s1); border-radius: var(--r-xs); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: var(--a-small); line-height: 1; font-weight: var(--w-medium); }
.appbar .avatar { width: var(--pill-h); height: var(--pill-h); border-radius: var(--r-ctl); box-shadow: none; transition: box-shadow var(--d1) var(--ease-hover); }
.appbar .avatar:hover, .appbar .avatar[aria-expanded="true"], .appbar-saved[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--line); }
/* the bar search: one white field. Empty and at rest, the magnifier and the words sit in its middle; focused or holding
   words, they sit at the left, with no motion. "/" and Cmd-K focus it, and web/lib/search.js loads on the first focus */
.barsearch { position: relative; display: flex; align-items: center; gap: var(--s2); width: 100%; height: var(--search-h); padding: 0 var(--s4); border-radius: var(--r-md); background: var(--card); color: var(--muted); transition: box-shadow var(--d1) var(--ease-hover); }
.barsearch:hover { box-shadow: inset 0 0 0 1px var(--line); }
.barsearch:focus-within { box-shadow: inset 0 0 0 1px var(--focus), 0 0 0 3px var(--focus-halo); }
.barsearch > .ic { flex: none; }
.barsearch input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; outline: none; box-shadow: none; color: var(--ink); font-size: var(--a-body); line-height: var(--a-body-lh); }
.barsearch input::placeholder { color: var(--quiet); }
.barsearch input::-webkit-search-cancel-button { display: none; }
/* the middle needs the field as wide as its words (field-sizing); a browser without it keeps them at the left */
@supports (field-sizing: content) {
  .barsearch:not(:focus-within):has(input:placeholder-shown) { justify-content: center; }
  .barsearch:not(:focus-within):has(input:placeholder-shown) input { flex: 0 1 auto; field-sizing: content; }
}
.barsearch .kbd { position: absolute; right: var(--s4); top: 50%; translate: 0 -50%; background: var(--paper-2); box-shadow: none; }
.barsearch:focus-within .kbd, .barsearch:has(input:not(:placeholder-shown)) .kbd { display: none; }
.barsearch .results { z-index: 45; }
/* the tabs at the band's foot (wordTabs({ page: true })): the row starts under the search's left edge (the bar's grid:
   the padding, then 27.5 % of the rest, the half of 55 %). Each tab is an icon and a word, grey; the chosen one is a white
   folder tab: rounded top corners, and at its feet two concave corners where it joins the white page below. The shape
   is the sliding indicator (.choice-ink, lib/fragments.js slider()) on a row of tab buttons, or the current link itself */
.tabs.page-tabs { position: relative; z-index: 2; flex-wrap: nowrap; justify-content: flex-start; gap: var(--s1); height: var(--pill-h); padding: 0 var(--app-pad) 0 calc(var(--app-pad) + (100% - 2 * var(--app-pad)) * 0.275); background: var(--paper-2); font-size: var(--a-body); line-height: var(--a-body-lh); font-weight: var(--w-medium); }
.tabs.page-tabs > :is(a, button) { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: var(--s2); height: 100%; padding: 0 var(--s5); border-radius: var(--r-md) var(--r-md) 0 0; color: var(--muted); white-space: nowrap; box-shadow: none; }
.tabs.page-tabs > :is(a, button):hover, .tabs.page-tabs > :is([aria-selected="true"], [aria-current="page"]) { color: var(--ink); }
.tabs.page-tabs > :is(a, button):focus-visible { outline-offset: -2px; }
.tabs.page-tabs > :is(a, button) > .ic { flex: none; }
.tabs.page-tabs > .choice-ink { top: auto; bottom: 0; height: var(--h, 0); translate: var(--x, 0) 0; }
.tabs.page-tabs > :is(.choice-ink, [aria-current="page"]), .tabs.page-tabs:not(.has-ink) > [aria-selected="true"] { border-radius: var(--r-md) var(--r-md) 0 0; background: var(--paper); box-shadow: 0 1px 0 var(--paper); } /* BUG-315: the shadow runs 1 px into the page: no seam at any zoom */
.tabs.page-tabs > :is(.choice-ink, [aria-current="page"])::before, .tabs.page-tabs > :is(.choice-ink, [aria-current="page"])::after,
.tabs.page-tabs:not(.has-ink) > [aria-selected="true"]::before, .tabs.page-tabs:not(.has-ink) > [aria-selected="true"]::after { content: ""; position: absolute; bottom: -1px; width: calc(var(--r-md) + 1px); height: calc(var(--r-md) + 1px); pointer-events: none; transition: opacity var(--d1) var(--ease); }
.tabs.page-tabs > :is(.choice-ink, [aria-current="page"])::before, .tabs.page-tabs:not(.has-ink) > [aria-selected="true"]::before { right: calc(100% - 1px); background: radial-gradient(circle at 0 0, transparent calc(var(--r-md) - 0.5px), var(--paper) calc(var(--r-md) + 0.5px)); }
.tabs.page-tabs > :is(.choice-ink, [aria-current="page"])::after, .tabs.page-tabs:not(.has-ink) > [aria-selected="true"]::after { left: calc(100% - 1px); background: radial-gradient(circle at 100% 0, transparent calc(var(--r-md) - 0.5px), var(--paper) calc(var(--r-md) + 0.5px)); }
.tabs.page-tabs > .choice-ink.is-moving::before, .tabs.page-tabs > .choice-ink.is-moving::after { opacity: 0; transition: none; }
/* the account menu: who is signed in, then (on narrow screens) the areas, then the account pages */
.menu-who { display: grid; padding: var(--s2) var(--s3) var(--s3); margin-bottom: var(--s1); border-bottom: 1px solid var(--line); min-width: 0; }
.menu-who b { font-size: var(--a-body); line-height: var(--a-body-lh); font-weight: var(--w-medium); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-who small { font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); }
.appbar .menu-item[hidden] { display: none; }
.menu-areas { display: none; padding-bottom: var(--s1); margin-bottom: var(--s1); border-bottom: 1px solid var(--line); }
/* narrower: the area switcher moves into the account menu, then the "/" hint goes. Below 900 px the search fills the
   middle and the tabs start at the page's padding; the page's corners are square. Every control stays reachable at
   390 px, 44 px high */
@media (max-width: 1023px) { .appbar-area { display: none; } .menu-areas { display: grid; } }
@media (max-width: 899px) {
  .appbar { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s3); }
  .barsearch .kbd { display: none; }
  .tabs.page-tabs { padding-left: var(--app-pad); gap: 0; }
  .tabs.page-tabs > :is(a, button) { padding-inline: var(--s3); }
  body[data-shell="app"] main, body[data-shell="app"][data-tabs] #view:empty::before, .page-tabs + .panel { border-radius: 0; }
}
@media (max-width: 639px) { body[data-shell="app"] main { padding-inline: var(--s4); } }
@media (max-width: 599px) {
  .barsearch { padding-inline: var(--s3); }
  .barsearch .results { position: fixed; left: var(--s4); right: var(--s4); top: calc(var(--appbar-h) + var(--s1)); }
}

/* the footer, Mobbin's (scratch m/close.html): ink, three columns of white links, a grey base row, then the huge faint
   wordmark cut by the window's foot. It scrolls in as a plain block until web/nav.js finds that it fits the window */
.footer { position: relative; z-index: 0; overflow: clip; margin-top: calc(-1 * var(--r-xl)); padding-top: calc(var(--s11) + var(--r-xl)); background: var(--foot); color: var(--foot-ink); }
.footer.is-reveal { position: sticky; bottom: 0; }
.footer :focus-visible { outline-color: var(--foot-ink); }
.footer-grid { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s10); max-width: 1728px; margin-inline: auto; padding-inline: var(--gutter); }
.footer-logo { grid-column: 3 / span 4; align-self: start; color: var(--foot-ink); }
.footer-col { grid-row: 1; display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.footer-col:nth-of-type(1) { grid-column: 9 / span 2; }
.footer-col:nth-of-type(2) { grid-column: 11 / span 2; }
.footer-col:nth-of-type(3) { grid-column: 13 / span 2; }
.footer-col p { margin: 0; font-size: var(--t-small); line-height: var(--lh-small); color: var(--foot-text); }
.footer-col ul { display: grid; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.footer-col a { display: inline-flex; align-items: center; gap: var(--s2); width: fit-content; color: var(--foot-ink); text-decoration: none; font-size: var(--t-body); line-height: var(--lh-body); white-space: nowrap; transition: opacity var(--d1) var(--ease-hover); }
.footer-col a:hover { opacity: 0.7; }
.footer-new { display: inline-flex; padding: 0 var(--s2); border-radius: var(--r-pill); background: var(--foot-fill); color: var(--foot-ink); font-size: var(--a-small); line-height: var(--a-small-lh); font-weight: var(--w-bold); }
.footer-base { grid-row: 2; margin: 0; font-size: var(--t-small); line-height: var(--lh-small); color: var(--foot-text); }
.footer-copy { grid-column: 3 / span 6; }
.footer-end { grid-column: 9 / span 8; display: flex; flex-wrap: wrap; align-items: center; align-self: start; gap: var(--s3) var(--s6); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--gap); }
.footer-end a { color: inherit; text-decoration: none; white-space: nowrap; transition: color var(--d1) var(--ease-hover); }
.footer-end a:hover { color: var(--foot-ink); }
.footer-rule { width: 1px; height: 20px; flex: none; background: var(--foot-fill); }
.footer .footer-end code { padding: 0; background: none; font: inherit; font-family: var(--font-code); color: var(--foot-ink); white-space: nowrap; } /* beats site.css's .site code chip */
.footer-stage { position: relative; padding-top: var(--s12); aspect-ratio: 249 / 20; box-sizing: content-box; }
.footer-mark { position: absolute; left: 0; right: 0; bottom: 0; color: var(--foot-mark); translate: 0 48%; }
.footer-mark svg { display: block; width: 100%; height: auto; overflow: visible; }
@media (min-width: 768px) and (max-width: 1199px) {
  .footer-logo, .footer-copy { grid-column-start: 2; }
  .footer-col:nth-of-type(1) { grid-column: 7 / span 3; }
  .footer-col:nth-of-type(2) { grid-column: 10 / span 3; }
  .footer-col:nth-of-type(3) { grid-column: 13 / span 3; }
  .footer-end { grid-column: 7 / span 10; }
}
@media (max-width: 767px) {
  .footer { margin-top: calc(-1 * var(--r-lg)); padding-top: calc(var(--s9) + var(--r-lg)); }
  .footer-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: var(--s7); }
  .footer-logo { grid-column: 1 / -1; }
  .footer-col:nth-of-type(1) { grid-column: 1 / span 3; grid-row: 2; }
  .footer-col:nth-of-type(2) { grid-column: 4 / span 3; grid-row: 2 / span 2; }
  .footer-col:nth-of-type(3) { grid-column: 1 / span 3; grid-row: 3; }
  .footer-end { grid-column: 1 / -1; grid-row: 4; flex-direction: column; align-items: flex-start; gap: var(--gap); }
  .footer-rule { display: none; }
  .footer-copy { grid-column: 1 / -1; grid-row: 5; }
  .footer-stage { padding-top: var(--s10); }
}

/* ===== landing =====
   #/ (web/views/home.js and its parts in web/views/landing/) and the shared look of the site pages' sections. Owner:
   builder 1 (P1, P2). The landing is the owner's locked design (docs/review.md, "The landing page, locked on 23 Nov
   2026"), ported value for value: each part keeps the mock-up's class prefix (mh- first screen, mp- the product in use,
   ms- one search, gp- the big percentage, ml- one library, ma- for your agent, mc- the closing ask and the footer
   extra); lp- is the page's own glue. Sizes with no token stay literal where one element uses them. */
/* the site pages' sections (site/pages/*.html) */
.section { margin-top: var(--s6); }
.tile.dark { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.tile.dark .tile-ic { background: var(--ink-hover); color: var(--on-ink); }
.tile.dark .muted { color: var(--foot-text); }
.finale { position: relative; margin: var(--s9) calc(50% - 50vw) -80px; padding: var(--s9) var(--s6) var(--s12); overflow: hidden; }
.finale::before { content: ""; position: absolute; z-index: 0; pointer-events: none; opacity: 0.07; background: url("/brand/logo-icon-transparent.svg") no-repeat center / contain; width: 700px; height: 700px; left: -300px; top: -80px; }
.finale > * { position: relative; }

/* the page: full width under the site bar, which lies over the first screen (Mobbin's 0-high bar) */
#view:has(> .lp) { max-width: none; padding: 0; min-height: 0; }
/* BUG-108: the page pulls itself up under the site bar (92 tall and a 1 px edge; 64 and 1 below 768), which the shell keeps
   in the flow; the design's bar is 0 high and lies over the first screen. Remove when the bar lies over #/ by itself */
.lp { position: relative; isolation: isolate; overflow: clip; margin-top: -93px; background: var(--paper); }
@media (max-width: 767px) { .lp { margin-top: -65px; } }
.lp :where(h1, h2, h3, p) { margin: 0; }
.lp img { max-width: 100%; }
.lp a:not(.btn, .lp-pill):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.lp-col { width: var(--col); max-width: calc(100% - 2 * var(--gutter)); margin-inline: auto; }
.lp-sec { position: relative; padding-block: var(--section); }
.lp-below { content-visibility: auto; contain-intrinsic-size: auto 1000px; }
/* Snuug's rails: two hairlines 32 px outside the column, a hairline across between two sections */
.lp-rails { position: relative; border-bottom: 1px solid var(--rail); }
.lp-rails::before { content: ""; position: absolute; inset: 0 var(--rail-x); z-index: 0; border-inline: 1px solid var(--rail); pointer-events: none; }
.lp-rails .lp-sec + .lp-sec { border-top: 1px solid var(--rail); }
/* type */
.lp-h { font-size: var(--t-h); line-height: var(--lh-h); letter-spacing: var(--tr-head); font-weight: var(--w-bold); color: var(--ink); text-wrap: balance; }
.lp-h > em { font-style: normal; color: var(--muted); }
.lp-h > .lp-line { display: block; }
.lp-p { margin-top: var(--s7); font-size: var(--t-h); line-height: var(--lh-h); letter-spacing: var(--tr-head); font-weight: var(--w-bold); color: var(--muted); text-wrap: pretty; }
.lp-lede { font-size: var(--t-lede); line-height: var(--lh-lede); font-weight: var(--w-regular); letter-spacing: var(--tr-lede); color: var(--muted); text-wrap: balance; }
.lp-content { margin-top: var(--content); }
/* the pills: 44 tall, 16 px from the sides. The black one is the kit's .btn (web/nav.js counts it); the grey one ends in
   Mobbin's arrow */
.lp-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }
.lp-pill { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); height: var(--pill-h); min-height: 0; padding: 0 var(--s4); border-radius: var(--r-pill); font-size: var(--t-ui); line-height: var(--lh-ui); font-weight: var(--w-ui); letter-spacing: var(--tr-ui); text-decoration: none; white-space: nowrap; }
.lp-pill-quiet { background: var(--paper-3); color: var(--ink); transition: background-color var(--d1) var(--ease-hover); }
.lp-pill-quiet:hover { background: var(--rail); }
.lp-pill svg { width: 20px; height: 20px; flex: none; }
.lp-pill:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* the product frame: a grey slab rail to rail, 32 px corners; the app page inside on the column's edge, 40 px down */
.lp-frame { position: relative; width: calc(var(--col) + 64px); max-width: 100%; margin-inline: auto; padding: var(--s7) var(--s6) 0; border-radius: var(--r-frame); background: var(--paper-2); }
.lp-frame-page { position: relative; overflow: hidden; border-radius: var(--r-page) var(--r-page) 0 0; background: var(--paper); box-shadow: 0 8px 24px rgb(0 0 0 / 0.04); }
@media (max-width: 1199px) { .lp-frame { width: var(--col); padding-inline: var(--s7); } }
@media (max-width: 767px) { .lp-frame { width: 100%; padding: var(--s5) var(--gap) 0; } }
/* a frozen copy of the product: drawn at a fixed width with the kit's classes and scaled to its frame (web/views/home.js
   fit()). A picture, not the product: inert, no pointer, no scroll */
.lp-shot { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; user-select: none; overflow: hidden; background: var(--paper); }
/* a part that could not load its data: the skeleton stands still, a calm grey */
.lp-quiet .skel, .lp-quiet .skel-text::before { animation: none; background: var(--paper-2); }

/* --- the first screen (mh-) --- */
.lp { --mh-hero-h: min(960px, calc(100svh - 124px)); }
@media (max-width: 767px) { .lp { --mh-hero-h: min(720px, calc(100svh - 80px)); } }
/* the map: from the top of the page to a little under the frame's top edge, behind everything, faded at its foot */
.mh-bg { position: absolute; left: 0; right: 0; top: 0; z-index: 1; pointer-events: none; -webkit-mask-image: linear-gradient(#000 calc(100% - 220px), transparent); mask-image: linear-gradient(#000 calc(100% - 220px), transparent); }
.mh-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mh-atlas { position: absolute; inset: 0; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.mh-hero { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: var(--mh-hero-h); padding: var(--hero-top) var(--gutter) var(--hero-bottom); }
.mh-h1 { display: grid; justify-items: center; color: var(--ink); font-size: min(var(--t-hero), calc((100vw - 40px) / 9.7)); line-height: var(--lh-hero); font-weight: var(--w-bold); letter-spacing: var(--tr-display); --icon-size: 0.85em; --icon-drop: 0.075em; --icon-gap: 0.2em; --slot-closed: 0.194em; --slot-open: calc(var(--icon-size) + 2 * var(--icon-gap)); }
/* the three headlines share one grid cell, so the block keeps the height of three lines and nothing below it moves */
.mh-hl, .mh-shine { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; }
.mh-hl { visibility: hidden; }
.mh-hl.on, .mh-hl.out { visibility: visible; }
.mh-line { display: block; margin: -24px; padding: 24px; white-space: nowrap; }
.mh-lede { max-width: 520px; margin-top: var(--hero-gap); }
.mh-pills { margin-top: var(--cta-row); }
.mh-note { margin-top: var(--gap); font-size: var(--t-small); line-height: var(--lh-small); color: var(--muted); }
.mh-w { display: inline-block; }
/* a slot (Mobbin's): 0 high, so the line keeps the text's height; the tile hangs from the baseline */
.mh-slot { position: relative; display: inline-block; height: 0; width: var(--slot-open); }
.mh-slot-in { position: absolute; left: 50%; bottom: calc(-1 * var(--icon-drop)); width: var(--icon-size); height: var(--icon-size); transform: translateX(-50%); }
.mh-layer { position: absolute; inset: 0; display: block; border-radius: 30%; overflow: hidden; }
.mh-layer::after { content: ""; position: absolute; inset: 0; border-radius: 30%; box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.1); pointer-events: none; }
.mh-layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 30%; box-shadow: none; background: none; }
.mh-layer--flag::after { box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.1); }
.mh-layer.is-in { animation: mh-in 440ms ease-out both; }
.mh-layer.is-out { animation: mh-out 220ms ease-out both; }
@keyframes mh-in { 0% { opacity: 0; transform: scale(0.72); filter: blur(7px); } 45% { opacity: 1; transform: scale(1.02); filter: blur(0); } 68% { transform: scale(0.995); } 85% { transform: scale(1.001); } 100% { opacity: 1; transform: scale(1); filter: blur(0); } }
@keyframes mh-out { to { opacity: 0; transform: scale(0.78); filter: blur(7px); } }
/* a word that changes inside a shown headline: the old blurs out, the new blurs in, the box eases to its width */
.mh-word { position: relative; display: inline-block; white-space: nowrap; vertical-align: top; transition: width 440ms var(--ease-out); }
.mh-word > span { display: inline-block; }
.mh-word > .is-in { position: absolute; left: 0; top: 0; animation: mh-win 440ms ease-out both; }
.mh-word > .is-out { animation: mh-wout 200ms ease-out both; }
@keyframes mh-win { 0% { opacity: 0; filter: blur(7px); } 45% { opacity: 1; filter: blur(0); } 100% { opacity: 1; filter: blur(0); } }
@keyframes mh-wout { to { opacity: 0; filter: blur(7px); } }
/* the morph between headlines (Snuug's): tiles leave with the words and arrive with Mobbin's pop */
.mh-hl.out .mh-w { animation: mh-w-out 0.38s var(--ease-in) both; animation-delay: calc(var(--i) * 18ms); }
.mh-hl.in .mh-w:not(.mh-slot) { animation: mh-w-in 0.76s var(--ease-out) both; animation-delay: calc(var(--i) * 42ms); }
.mh-hl.in .mh-slot .mh-slot-in { animation: mh-pop 440ms ease-out both; animation-delay: calc(var(--i) * 42ms + 160ms); }
@keyframes mh-w-out { to { opacity: 0; filter: blur(6px); transform: translateY(-0.14em); } }
@keyframes mh-w-in { from { opacity: 0; filter: blur(8px); transform: translateY(0.2em); } }
/* the band of light: a light copy of the new headline seen through a moving mask; the words hold still, the band moves */
.mh-shine { justify-self: stretch; pointer-events: none; visibility: hidden; margin-inline: -100%; padding-inline: 100%; color: var(--quiet); -webkit-mask-image: linear-gradient(100deg, transparent 40%, #000 50%, transparent 60%); mask-image: linear-gradient(100deg, transparent 40%, #000 50%, transparent 60%); }
.mh-shine > div { align-self: stretch; display: flex; flex-direction: column; align-items: center; }
.mh-shine .mh-slot-in { display: none; }
.mh-shine.go { visibility: visible; animation: mh-shimmer 1.61s var(--ease-shine) 0.1s both; }
.mh-shine.go > div { animation: mh-shimmer-hold 1.61s var(--ease-shine) 0.1s both; }
@keyframes mh-shimmer { from { translate: -33.333% 0; } to { translate: 33.333% 0; } }
@keyframes mh-shimmer-hold { from { translate: 100% 0; } to { translate: -100% 0; } }
/* the product frame rising from the foot of the first screen, with small cards over its edges */
.mh-show { position: relative; z-index: 3; }
.mh-show .lp-frame-page { aspect-ratio: 1400 / 860; }
/* a floating card (apptonic.ai's): white, 16 px corners, a faint ring and a soft shadow, small type */
.mh-card { position: absolute; z-index: 4; background: var(--card); border-radius: var(--r-md); padding: 12px 14px 14px; text-align: left; box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.08), 0 12px 32px rgb(0 0 0 / 0.07), 0 2px 6px rgb(0 0 0 / 0.04); }
.mh-card-k { display: flex; align-items: center; gap: 6px; font-size: var(--a-small); line-height: var(--a-small-lh); font-weight: var(--w-medium); color: var(--quiet); white-space: nowrap; }
.mh-card-k .flag { width: 16px; height: 16px; box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.12); }
.mh-card-t { margin-top: 2px; font-size: var(--t-small); line-height: var(--lh-small); font-weight: var(--w-bold); letter-spacing: var(--tr-ui); color: var(--ink); white-space: nowrap; }
.mh-card-row { display: flex; gap: 10px; margin-top: 10px; }
.mh-card-row.is-pct { gap: var(--gap); align-items: end; }
.mh-card-row.is-pct .mh-card-k { margin-top: var(--s1); }
.mh-rank { display: grid; justify-items: center; gap: var(--s1); font-size: 11px; line-height: 14px; font-weight: var(--w-medium); color: var(--quiet); }
.mh-rank img, .mh-rank .skel { width: 40px; height: 40px; border-radius: 30%; outline: 0.5px solid rgb(0 0 0 / 0.1); outline-offset: -0.5px; }
.mh-card-app { display: flex; align-items: center; gap: 10px; }
.mh-card-app > img, .mh-card-app > .skel { width: 36px; height: 36px; flex: none; border-radius: 30%; box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.1); }
.mh-big { font-size: 30px; line-height: 32px; font-weight: var(--w-bold); letter-spacing: var(--tr-display); color: var(--ink); }
.mh-big.is-quiet { color: var(--quiet); }
.mh-card--a { left: -28px; top: -44px; }
.mh-card--b { right: -28px; top: -30px; min-width: 236px; }
.mh-card--c { left: -28px; top: 300px; }
.mh-kw-box { display: grid; margin-top: 10px; }
.mh-kw { grid-area: 1 / 1; }
.mh-kw.is-in { animation: mh-win 440ms ease-out both; }
.mh-kw.is-out { animation: mh-wout 200ms ease-out both; }
.mh-kw-l { margin-top: var(--s2); font-size: 11px; line-height: 14px; font-weight: var(--w-medium); color: var(--quiet); }
.mh-chips { display: flex; gap: var(--s1); margin-top: var(--s1); flex-wrap: nowrap; }
.mh-chips span { padding: 2px var(--s2); border-radius: var(--r-pill); background: var(--paper-3); font-size: var(--a-small); line-height: 18px; font-weight: var(--w-medium); color: var(--ink); white-space: nowrap; }
@media (max-width: 1199px) { .mh-card--a { left: 16px; } .mh-card--b { right: 16px; } .mh-card--c { left: 16px; } }
@media (max-width: 767px) { .mh-card--b, .mh-card--c { display: none; } .mh-card--a { left: 12px; top: -36px; transform: scale(0.86); transform-origin: 0 0; } }
/* the entrance (Mobbin's), played once when the first screen first shows */
.lp:not(.is-in) .mh-line, .lp:not(.is-in) .mh-rise, .lp:not(.is-in) .mh-show .lp-frame { opacity: 0; }
.lp:not(.is-in) .mh-slot { width: var(--slot-closed); }
.lp:not(.is-in) .mh-slot-in { opacity: 0; }
.lp.is-in:not(.is-done) .mh-line { animation: mh-title 0.5s ease backwards; }
.lp.is-in:not(.is-done) .mh-line:nth-child(2) { animation-delay: 60ms; }
.lp.is-in:not(.is-done) .mh-line:nth-child(3) { animation-delay: 120ms; }
.lp.is-in .mh-rise { animation: mh-support 0.5s 0.18s ease both; }
.lp.is-in:not(.is-done) .mh-slot { animation: mh-open 260ms var(--d, 1400ms) var(--ease-out) both; }
.lp.is-in:not(.is-done) .mh-slot-in { animation: mh-pop 440ms calc(var(--d, 1400ms) + 90ms) ease-out both; }
.lp.is-in .mh-show .lp-frame { animation: mh-surface 0.8s 1.35s ease both; }
.lp.is-in .mh-show .lp-frame-page { animation: mh-surface 0.8s 0.7s ease both; }
.lp.is-in .mh-card { animation: mh-surface 0.8s var(--cd, 1.9s) ease both; }
.lp.is-in .mh-bg { animation: mh-fade 1.6s 0.2s ease both; }
@keyframes mh-title { 0% { opacity: 0.15; filter: blur(8px); transform: translateY(0.25em); } }
@keyframes mh-support { 0% { opacity: 0; filter: blur(8px); transform: translateY(12px); } }
@keyframes mh-surface { 0% { opacity: 0; filter: blur(8px); transform: translateY(40px); } }
@keyframes mh-fade { 0% { opacity: 0; } }
@keyframes mh-open { 0% { width: var(--slot-closed); } 100% { width: var(--slot-open); } }
@keyframes mh-pop { 0% { opacity: 0; transform: translateX(-50%) scale(0.72); filter: blur(7px); } 45% { opacity: 1; transform: translateX(-50%) scale(1.02); filter: blur(0); } 68% { transform: translateX(-50%) scale(0.995); } 85% { transform: translateX(-50%) scale(1.001); } 100% { opacity: 1; transform: translateX(-50%) scale(1); filter: blur(0); } }
/* no data for the tiles (the showcase failed): the slots stay closed, so the words sit close and read as one line */
.lp.is-bare .mh-slot { width: var(--slot-closed) !important; }
.lp.is-bare .mh-slot-in { display: none; }
/* still: the entrance is over, the slots open, nothing moves */
.lp.is-still .mh-x, .lp.is-still .mh-x * { animation: none !important; transition: none !important; }
.lp.is-still .mh-line, .lp.is-still .mh-rise, .lp.is-still .mh-show .lp-frame, .lp.is-still .mh-slot-in { opacity: 1; }
.lp.is-still .mh-slot { width: var(--slot-open); }
@media (prefers-reduced-motion: reduce) {
  .lp .mh-x, .lp .mh-x * { animation: none !important; transition: none !important; }
  .lp .mh-line, .lp .mh-rise, .lp .mh-show .lp-frame, .lp .mh-slot-in { opacity: 1; }
  .lp:not(.is-bare) .mh-slot { width: var(--slot-open); }
}

/* The frame's and the other parts' rules are in web/landing.css, loaded by web/views/home.js on #/ only. */

/* ===== library and one app =====
   #/library and #/app/<id> (web/views/library.js, web/views/library/*.js, web/views/app.js). Owner: builder 2 (P3, P4).
   Empty: both screens' rules are in web/library.css, which each view loads with its data (no other route pays for them). */

/* ===== compare and brief =====
   #/compare and #/brief/<id> (web/views/compare.js, web/views/brief.js). Owner: builder 3 (P5). Only what their first
   paint needs: the heads, the hero and the skeletons drawn before the data (about 1.8 KB brotli). The rest is in
   web/compare.css, which the two views load beside their data, so no other route pays for it and no view waits a
   round trip for its sheet before it paints. */
.cmp-pickers { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.cmp-word { color: var(--quiet); font-size: var(--a-body); line-height: var(--a-body-lh); padding-inline: var(--s1); }
.cmp-pickers .menu-item .flag, .brf-route .menu-item .flag { flex: none; }
.cmp-body { padding-bottom: var(--s9); }
.cmp-hero { display: grid; grid-template-columns: auto minmax(0, 560px); justify-content: start; align-items: end; gap: var(--s5) var(--s8); }
/* BUG-160: the big number paints with the skeleton, before /parts.css (where the kit's .bignum now lives, BUG-113) could load:
   the kit's values, scoped here. Remove when .bignum is back in styles.css or compare loads parts.css first. */
.cmp-hero .bignum { font-size: var(--t-num); line-height: 0.88; font-weight: var(--w-bold); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; color: var(--ink); }
.cmp-say { margin: 0; padding-bottom: var(--s2); font-size: var(--a-title); line-height: var(--a-title-lh); font-weight: var(--w-bold); letter-spacing: var(--tr-label); text-wrap: balance; }
.cmp-say em { display: block; margin-top: var(--s2); font-style: normal; color: var(--muted); }
.cmp-nb { white-space: nowrap; }
.cmp-nb .flag { width: 0.85em; height: 0.85em; margin: 0 0.2em; vertical-align: -0.075em; }
.cmp-mosaic { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s8); }
.cmp-mosaic .skel { aspect-ratio: 1; border-radius: var(--r-icon); }
/* the mosaic: not crossed in full colour; in both faded with a ring, so it reads as present, not as a failed picture */
.cmp-cell { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r-icon); overflow: hidden; background: var(--fill); box-shadow: var(--sh-ring); color: var(--muted); text-decoration: none; transition: scale var(--d1) var(--ease); }
.cmp-cell img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cmp-cell > span { display: grid; place-items: center; height: 100%; padding: var(--s1); overflow: hidden; font-size: var(--a-small); line-height: var(--a-small-lh); text-align: center; }
.cmp-cell.is-both { background: var(--card); box-shadow: 0 0 0 1px var(--line-2); }
.cmp-cell.is-both img { opacity: 0.35; transition: opacity var(--d1) var(--ease); }
.cmp-cell:focus-visible { scale: 1.08; z-index: 1; }
@media (hover: hover) and (pointer: fine) { .cmp-cell:hover { scale: 1.08; z-index: 1; } }
.cmp-cell:hover img, .cmp-cell:focus-visible img { opacity: 1; }
.cmp-key { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin: var(--s4) 0 0; font-size: var(--a-body); line-height: var(--a-body-lh); color: var(--muted); }
.cmp-key b { color: var(--ink); font-weight: var(--w-bold); font-variant-numeric: tabular-nums; }
.cmp-key .skel-text { width: 160px; height: var(--a-body-lh); }
.cmp-say > .cmp-skel-say:nth-child(3) { display: none; }
.cmp-skel-num { width: 1.92em; height: 0.88em; border-radius: var(--r-lg); }
.cmp-skel-say { height: var(--lh-card); }
.cmp-ways, .brf-ways { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin-top: var(--s4); }
@media (max-width: 899px) {
  .cmp-hero { grid-template-columns: minmax(0, 1fr); }
  .cmp-mosaic { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: var(--s1); margin-top: var(--s6); }
}
@media (max-width: 599px) {
  .cmp-pick-name { display: none; }
  .cmp-say > .cmp-skel-say:nth-child(3) { display: block; }
  .cmp-key { flex-direction: column; gap: var(--s1); }
}
#view > .page-tabs#brf-tabs { position: sticky; top: var(--appbar-h); z-index: 20; }
.brf-head { align-items: center; }
.brf-id { display: flex; align-items: center; gap: var(--s4); flex: 1 1 420px; min-width: 0; }
.brf-id > div { min-width: 0; flex: 1; }
.brf-app-ic { flex: none; width: 52px; height: 52px; border-radius: var(--r-icon); background: var(--fill); box-shadow: var(--sh-ring); }
.brf .apptitle span { color: var(--muted); }
.brf-route { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); margin-top: var(--s1); font-size: var(--a-body); line-height: var(--a-body-lh); color: var(--muted); }
.brf-route .menu-btn.pick { min-height: var(--ctl-sm); padding-inline: var(--s1) var(--s2); }
.brf-nb { display: inline-flex; align-items: center; gap: var(--s2); white-space: nowrap; }
.brf-act { flex: none; }
.brf-act .btn.is-quiet { background: var(--fill-2); color: var(--ink); }
.brf-act .btn.is-quiet:hover { background: var(--line); }
.brf-skel-route { height: var(--ctl-sm); margin-top: var(--s1); }
.brf-skel-pill { width: 132px; }
.brf-act .skel-pill { height: var(--ctl); }
.brf-act .skel-pill:first-child { width: 88px; }
.brf-skel-phone { display: none !important; }
.brf-skel-h { display: inline-block; width: 44%; height: var(--a-section-lh); padding-block: var(--s1); vertical-align: top; }
.brf-sec { scroll-margin-top: calc(var(--appbar-h) + var(--s9)); }
.brf-doc > .brf-sec:first-child > .appsection { margin-top: 0; }
.brf-sec > .appsection span, .brf-sub span { color: var(--muted); font-weight: var(--w-regular); }
.brf-sec > .appsection { max-width: calc(80 * var(--ch-bold)); text-wrap: pretty; }
.brf-sub { margin: var(--app-section-gap) 0 var(--app-title-gap); font-size: var(--a-body); line-height: var(--a-body-lh); font-weight: var(--w-bold); }
.brf-line { margin: var(--s5) 0 0; font-size: var(--a-body); line-height: var(--a-body-lh); color: var(--muted); }
.brf-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--app-grid-gap); align-items: start; }
.brf-page { display: grid; gap: var(--s4); align-content: start; min-width: 0; padding: var(--s5); border-radius: var(--r-xl); background: var(--paper-2); }
.brf-page-head { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.brf-page-head > div { flex: 1; min-width: 0; }
.brf-page-ic { flex: none; width: 40px; height: 40px; border-radius: var(--r-icon); background: var(--fill); box-shadow: var(--sh-ring); }
.brf-page-head b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--a-body); line-height: var(--a-body-lh); font-weight: var(--w-bold); }
.brf-page-head small { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s1); font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); font-variant-numeric: tabular-nums; }
.brf-page-head small > span + span::before { content: "·"; margin-right: var(--s1); }
.brf-where { display: inline-flex; align-items: center; gap: var(--s1); white-space: nowrap; }
.brf-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.brf-shot { position: relative; display: block; aspect-ratio: 9 / 13; overflow: hidden; border-radius: var(--r-md-in); background: var(--fill); }
.brf-shots.is-land { grid-template-columns: minmax(0, 1fr); }
.brf-shots.is-land .brf-shot { aspect-ratio: 16 / 9; }
.brf-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.brf-none { margin: 0; font-size: var(--a-body); line-height: var(--a-body-lh); color: var(--muted); }
.brf-page-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: var(--ctl); }
.brf-page-foot > span { font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); }
.brf-page-foot .ghost { margin-right: calc(-1 * var(--s2)); background: none; }
.brf-page-foot .ghost:hover { background: var(--fill-2); }
.brf-text { margin-top: calc(-1 * var(--s2)); border-top: 1px solid var(--line); }
.brf-text-skel { display: block; margin-top: calc(-1 * var(--s2)); padding-block: var(--s4) var(--s3); border-top: 1px solid var(--line); }
.brf-page .empty { padding-block: var(--s8); }
.brf-rivals { max-width: 640px; }
.brf-rival { display: flex; align-items: center; gap: var(--s3); min-height: 56px; padding-block: var(--s2); box-shadow: inset 0 -1px 0 var(--line); color: inherit; text-decoration: none; }
.brf-rival:hover b { text-decoration: underline; text-underline-offset: 2px; }
.brf-rival-ic { flex: none; width: 36px; height: 36px; border-radius: var(--r-icon); background: var(--fill); box-shadow: var(--sh-ring); }
.brf-rival-main { flex: 1; min-width: 0; }
.brf-rival-main b, .brf-rival-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brf-rival-main b { font-size: var(--a-body); line-height: var(--a-body-lh); font-weight: var(--w-medium); }
.brf-rival-main small { font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); }
.brf-n { flex: none; width: 28px; font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); font-variant-numeric: tabular-nums; }
.brf-rival.is-you b { font-weight: var(--w-bold); }
.brf-rival.is-you .brf-n { color: var(--selected); font-weight: var(--w-bold); } /* your app among the rivals: "You" in the accent */
.brf-vrow { display: grid; grid-auto-flow: column; grid-auto-columns: 248px; gap: var(--app-grid-gap); overflow-x: auto; scrollbar-width: none; padding-bottom: var(--s1); }
.brf-vrow::-webkit-scrollbar { display: none; }
.brf-vrow .figs { margin-top: var(--s2); flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
.brf-skel-bell { height: var(--pill-h); }
.brf-skel-seg { height: 28px; }
.brf-act .menu-btn { min-height: var(--ctl); padding-block: 0; }
.brf-act .menuwrap { display: flex; }
.brf-state { margin-top: var(--s2); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 899px) {
  .brf-head { flex-direction: column; align-items: stretch; }
  .brf-id { flex-basis: auto; align-items: flex-start; gap: var(--s3); }
  .brf-app-ic { width: 44px; height: 44px; }
  .brf-skel-phone { display: block !important; }
  .brf-skel-route + .brf-skel-route { height: var(--a-body-lh); margin-top: var(--s1); }
  .brf-pair { grid-template-columns: minmax(0, 1fr); }
  .brf-page { padding: var(--s4); }
  .brf-shots { gap: var(--s2); }
  .brf-vrow { grid-auto-columns: 228px; margin-inline: calc(-1 * var(--app-pad)); padding-inline: var(--app-pad); scroll-padding-inline: var(--app-pad); }
}

/* ===== account group =====
   #/signin, #/start, #/account, #/billing and #/connections, and the chat apps' sign-in and consent pages. Their rules are in
   web/account.css, which the router loads with those views and modules/platform/oauth-pages.mjs links, so no other route
   pays for them before its first paint (BUG-112). Owner: builder 4 (P6, P7). */

/* ===== agent group =====
   #/agent, #/playground and #/discover (web/views/agent.js, playground.js, discover.js, agent-area.js); #/cost
   (web/views/cost.js, builder 1) keeps .slider here. Owner: builder 3 (P8). The status page has its own sheet. */
.slider { display: grid; gap: var(--s2); }
.slider .row { justify-content: space-between; }


/* the rail of the endpoint list and the playground: groups or endpoints, the chosen one on grey */
.ag-rail { display: grid; gap: calc(var(--s1) / 2); }
.ag-rail-h { margin: var(--s4) var(--s2) var(--s1); font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); }
.ag-opt { display: flex; align-items: center; gap: var(--s2); width: 100%; min-height: var(--ctl); padding: var(--s1) var(--s2); border: 0; border-radius: var(--r-sm); background: none; color: var(--ink); font: inherit; font-size: var(--a-body); line-height: var(--a-body-lh); text-align: left; text-decoration: none; cursor: pointer; }
.ag-opt:hover { background: var(--fill); }
.ag-opt[aria-pressed="true"], .ag-opt.is-on { background: var(--fill-2); font-weight: var(--w-medium); }
.ag-opt > span:first-of-type { flex: 1; min-width: 0; display: grid; }
.ag-opt small, .ag-opt code { font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); font-variant-numeric: tabular-nums; font-weight: var(--w-regular); }
.ag-opt code { font-family: var(--font-code); }
.ag-opt svg { flex: none; color: var(--muted); }
.ag-find { display: flex; align-items: center; gap: var(--s2); height: var(--ctl-lg); padding: 0 var(--s2) 0 var(--s3); border-radius: var(--r-pill); background: var(--paper-2); color: var(--quiet); }
.ag-find:focus-within { box-shadow: inset 0 0 0 1px var(--focus), 0 0 0 3px var(--focus-halo); }
.ag-find input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; box-shadow: none; padding: 0; color: var(--ink); font-size: var(--a-body); line-height: var(--a-body-lh); }
.ag-find input::placeholder { color: var(--quiet); }
.ag-route { display: flex; gap: var(--s2); min-width: 0; overflow: hidden; font: var(--w-regular) var(--a-small) / var(--a-small-lh) var(--font-code); letter-spacing: 0; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.ag-route b { flex: none; color: var(--ink); font-weight: var(--w-bold); }

/* the endpoint list: search, filter, then one row per endpoint that opens in place */
.ag-bar { position: sticky; top: var(--appbar-h); z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-inline: calc(-1 * var(--app-pad)); padding: var(--s3) var(--app-pad); background: var(--paper); }
.ag-bar .ag-find { flex: 1 1 280px; }
.ag-heads { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 16px; gap: var(--s5); width: 100%; font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); }
.ag-count { font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); font-variant-numeric: tabular-nums; }
.ag-count:empty { display: none; } /* an empty count is a flex item too: its gap pushed the filter 12 px in from the page's right edge */
.ag-list { padding-bottom: var(--s10); }
.ag-sec { margin: var(--s6) 0 0; font-size: var(--a-section); line-height: var(--a-section-lh); font-weight: var(--w-bold); }
.ag-group { display: flex; gap: var(--s2); margin: var(--s5) 0 0; padding-bottom: var(--s2); font-size: var(--a-small); line-height: var(--a-small-lh); font-weight: var(--w-medium); color: var(--muted); }
.ag-group span { color: var(--quiet); font-weight: var(--w-regular); font-variant-numeric: tabular-nums; }
.ag-ep { border-top: 1px solid var(--line); }
.ag-rows > .ag-ep:last-child { border-bottom: 1px solid var(--line); }
.ag-sum { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 16px; align-items: center; gap: var(--s5); min-height: var(--row); padding-block: var(--s2); list-style: none; cursor: pointer; }
.ag-sum::-webkit-details-marker { display: none; }
.ag-name { display: grid; gap: calc(var(--s1) / 2); min-width: 0; }
.ag-name b { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); font-size: var(--a-body); line-height: var(--a-body-lh); font-weight: var(--w-medium); }
.ag-name code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: var(--w-regular) var(--a-small) / var(--a-small-lh) var(--font-code); letter-spacing: 0; color: var(--quiet); }
.ag-sum:hover .ag-name b, .ag-ep[open] .ag-name b { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.ag-chev { display: grid; color: var(--quiet); transition: rotate var(--d2) var(--ease); }
.ag-ep[open] .ag-chev { rotate: 90deg; color: var(--ink); }
.ag-hit { color: var(--ink); font-weight: var(--w-bold); }
.ag-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s5); padding: var(--s2) 0 var(--s6); }
.ag-body-main, .ag-body-side { display: grid; align-content: start; gap: var(--s4); min-width: 0; }
.ag-body-side { position: sticky; top: calc(var(--appbar-h) + var(--s10)); }
.ag-task { margin: 0; max-width: calc(66 * var(--ch)); font-size: var(--a-body); line-height: var(--a-body-lh); text-wrap: pretty; }
.ag-facts { margin: 0; font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--muted); }
.ag-inputs { border-top: 1px solid var(--line); }
.ag-in { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr); gap: var(--s1) var(--s4); padding-block: var(--s3); border-bottom: 1px solid var(--line); font-size: var(--a-body); line-height: var(--a-body-lh); }
.ag-in b { display: block; font-weight: var(--w-medium); }
.ag-in code { display: block; font: var(--w-regular) var(--a-small) / var(--a-small-lh) var(--font-code); letter-spacing: 0; color: var(--quiet); }
.ag-in > div:last-child { display: grid; gap: var(--s2); color: var(--muted); }
.ag-req { margin-left: var(--s2); font-size: var(--a-small); line-height: var(--a-small-lh); font-weight: var(--w-regular); color: var(--quiet); }
.ag-chips { display: flex; flex-wrap: wrap; gap: var(--s1); }
.ag-try { display: flex; flex-wrap: wrap; gap: var(--s2); }
.ag-skel .ag-ep { pointer-events: none; }
.ag-skel .ag-name b, .ag-skel .ag-name code, .ag-skel .ag-route { display: block; width: 100%; }
.ag-skel .ag-route .skel-text { width: 40%; }
.ag-skel-group { width: 96px; }
.ag-skel .ag-sec .skel-text { height: var(--a-section-lh); }

/* the playground: inputs at the left, the answer at the right */
.ag-pg-rail { display: grid; gap: var(--s2); }
.ag-rail-none { margin: var(--s3) var(--s2); font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); }
.ag-every { justify-self: start; margin-top: var(--s4); }
.ag-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin: calc(-1 * var(--s3)) 0 var(--app-head-gap); }
.ag-pick-phone { display: none; }
.ag-pg-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: start; gap: var(--s7); padding-bottom: var(--s10); }
.ag-form { display: grid; gap: var(--s4); }
.ag-field { display: grid; gap: var(--s1); }
.ag-label { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); font-size: var(--a-body); line-height: var(--a-body-lh); }
.ag-label b { font-weight: var(--w-medium); }
.ag-label small, .ag-hint { font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); }
.ag-field input, .ag-select { display: flex; align-items: center; gap: var(--s2); width: 100%; height: var(--field-h); padding: 0 var(--s4); border: 0; border-radius: var(--r-pill); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: inherit; font-size: var(--a-body); line-height: var(--a-body-lh); }
.ag-select select { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; box-shadow: none; padding: 0; color: inherit; font: inherit; line-height: var(--a-body-lh); }
.ag-field input:focus, .ag-select:focus-within { outline: none; box-shadow: inset 0 0 0 1px var(--focus), 0 0 0 3px var(--focus-halo); }
.ag-field.is-bad input, .ag-field.is-bad .ag-select { box-shadow: inset 0 0 0 1px var(--error), 0 0 0 3px color-mix(in oklch, var(--error) 18%, transparent); }
.ag-err { font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--error); }
.ag-more > summary { padding-block: var(--s2); cursor: pointer; font-size: var(--a-body); line-height: var(--a-body-lh); color: var(--muted); }
.ag-more[open] > summary { margin-bottom: var(--s3); }
.ag-more { display: grid; gap: var(--s4); }
.ag-none { margin: 0; font-size: var(--a-body); line-height: var(--a-body-lh); color: var(--muted); }
.ag-run { display: flex; align-items: center; gap: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
/* Run keeps its label and its width while it runs; the spinner turns inside the pill, so nothing beside it moves */
.ag-run-btn { position: relative; min-width: 104px; }
.ag-run .ghost { min-height: var(--pill-h); }
.ag-spin { position: absolute; right: var(--s3); top: 50%; display: grid; width: 14px; height: 14px; margin-top: -7px; opacity: 0; transition: opacity var(--d1) var(--ease-hover); }
.ag-run-btn.is-busy .ag-spin { opacity: 1; } /* the kit's working mark (spinner()) */
.ag-run-btn:not(.is-busy) .spin-px { animation-play-state: paused; }
.ag-answer { display: grid; gap: var(--s4); min-width: 0; }
.ag-answer-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s3); }
.ag-answer-head h2 { margin: 0; font-size: var(--a-section); line-height: var(--a-section-lh); font-weight: var(--w-bold); }
.ag-answer-head .seg { margin-left: auto; }
.ag-mark { display: inline-flex; align-items: center; gap: var(--s2); }
.ag-mark small { font-size: var(--a-small); color: var(--quiet); font-variant-numeric: tabular-nums; }
.ag-answer-body { min-width: 0; }
.ag-langs { margin-bottom: var(--s3); }
.ag-note { margin: var(--s3) 0 0; font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); }
.ag-answer-body .code > pre { max-height: 560px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ag-pic { display: grid; gap: var(--s3); padding: var(--s3); border-radius: var(--r-lg); background: var(--paper-2); }
.ag-card { display: grid; gap: var(--s4); min-width: 0; padding: var(--app-card-pad); border-radius: var(--r-lg-in); background: var(--card); }
.ag-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.ag-col { display: grid; align-content: start; gap: var(--s1); min-width: 0; }
.ag-col > small { font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--muted); }
.ag-num { font-size: var(--a-num); line-height: var(--a-num-lh); font-weight: var(--w-bold); letter-spacing: var(--tr-head); font-variant-numeric: tabular-nums; }
.ag-rows { display: grid; }
.ag-pic .ag-rows { margin-top: var(--s2); }
.ag-row { display: flex; align-items: center; gap: var(--s3); min-width: 0; min-height: 48px; padding-block: var(--s2); color: inherit; text-decoration: none; }
.ag-row + .ag-row { box-shadow: inset 0 1px 0 var(--line); }
.ag-row > span { flex: 1; min-width: 0; display: grid; }
.ag-row b, .ag-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-row b { font-size: var(--a-body); line-height: var(--a-body-lh); font-weight: var(--w-medium); }
.ag-row small { font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); }
.ag-ic { flex: none; width: 32px; height: 32px; border-radius: var(--r-icon); background: var(--fill); box-shadow: var(--sh-ring); }
.ag-skel-field { height: var(--field-h); border-radius: var(--r-pill); }
.ag-skel-route { width: 160px; }
.ag-skel-ah { width: 120px; height: var(--ctl-sm); }
.ag-skel-num { width: 96px; height: 52px; }
.ag-skel-more { height: 36px; padding-block: var(--s2); }
.ag-skel-run { width: 104px; height: var(--pill-h); }
.ag-skel-phone { display: none !important; }
.ag-skel-bar { height: 28px; border-radius: var(--r-xs); }
.ag-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ag-stats > div { display: grid; gap: var(--s1); }
.ag-stats small { font-size: var(--a-small); color: var(--quiet); }
.ag-stats b { font-size: var(--a-find); line-height: var(--a-find-lh); font-weight: var(--w-bold); font-variant-numeric: tabular-nums; }

/* connect: one card of three steps, and what an agent sees beside it */
.ag-first { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: var(--app-grid-gap); }
.ag-setup { display: grid; align-content: start; gap: var(--s5); padding: var(--app-card-pad); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); }
.ag-steps { display: grid; gap: var(--s6); }
.ag-step { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s4); }
.ag-step h2 { margin: 0 0 var(--s3); font-size: var(--a-section); line-height: var(--a-section-lh); font-weight: var(--w-bold); }
.ag-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-2); font-size: var(--a-small); font-weight: var(--w-bold); color: var(--muted); }
/* One line of agents at every width: wireMoreTabs() moves the ones that do not fit into the last pill, so nothing scrolls. */
.ag-clients { max-width: 100%; min-height: calc(var(--ctl-sm) + var(--s1)); }
.ag-clients .seg { flex-wrap: nowrap; }
.ag-clients .seg > button { flex: none; }
/* A host's mark before its name (lib/host-marks.js). The box holds its 16 px before the marks module arrives. */
.hostmark { display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; }
.hostmark svg { width: 16px; height: 16px; }
.hostmark-claude { color: var(--brand-claude); }
.hostmark-opencode svg { width: 14px; height: 14px; }
.ag-code { display: grid; gap: var(--s2); }
.ag-code-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); }
.ag-oauth { font-size: var(--a-small); color: var(--muted); }
.ag-keynote { margin: 0; font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--muted); }
.ag-code .code > pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.ag-copyrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); margin-top: var(--s4); }
.ag-copyrow p { flex: 1 1 200px; margin: 0; font-size: var(--a-body); line-height: var(--a-body-lh); color: var(--muted); }
.ag-asks { margin: 0; padding: 0; list-style: none; }
.ag-asks li { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: var(--row); font-size: var(--a-body); line-height: var(--a-body-lh); }
.ag-asks li + li { box-shadow: inset 0 1px 0 var(--line); }
.ag-foot { display: flex; flex-wrap: wrap; gap: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--line); }
.ag-tile { min-height: 100%; }
.ag-tile-head b { font-weight: var(--w-bold); }
.ag-tile-head small { font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); }
.ag-tile-try { margin-left: auto; font-size: var(--a-body); color: var(--muted); text-decoration: none; }
.ag-tile-try:hover { color: var(--ink); }
.ag-brand { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-icon); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.ag-brand svg { width: 16px; height: 16px; }
.ag-brand.is-claude { color: var(--brand-claude); }
.ag-tile-body { display: flex; flex: 1; flex-direction: column; gap: var(--s3); min-width: 0; }
.ag-glyph { flex: none; color: var(--muted); }
.ag-answer-pic { display: grid; padding: var(--s1) var(--app-card-pad); border-radius: var(--r-md); background: var(--card); }
.ag-arow { display: flex; align-items: center; gap: var(--s3); min-height: 44px; }
.ag-arow + .ag-arow { box-shadow: inset 0 1px 0 var(--line); }
.ag-arow > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.ag-arow b, .ag-arow small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-arow b { font-weight: var(--w-medium); }
.ag-arow small { font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); }
.ag-rank { width: 28px; font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); font-variant-numeric: tabular-nums; }
.ag-checks { display: grid; margin: 0; padding: var(--s1) var(--app-card-pad); border-radius: var(--r-md); background: var(--card); list-style: none; }
.ag-checks li { display: flex; align-items: center; gap: var(--s3); min-height: 40px; }
.ag-checks li + li { box-shadow: inset 0 1px 0 var(--line); }
.ag-checks li > span:first-child { width: 16px; text-align: center; font-weight: var(--w-bold); }
.ag-checks li.is-no { color: var(--muted); }
.ag-skel-call { display: block; flex: none; height: 40px; border-radius: var(--r-sm); }
.ag-skel-status { width: 140px; }
.ag-skel-pic { display: block; flex: none; height: 220px; border-radius: var(--r-md); }
.ag-skel-pic.is-5x44 { height: 228px; }
.ag-skel-pic.is-5x40 { height: 208px; }
/* an exchange a visitor has not run yet: the size of the answer's picture and its status line, so the tile keeps its height */
.ag-more-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin: var(--app-section-gap) 0 var(--app-head-gap); }
.ag-more-head h2 { margin: 0; font-size: var(--a-title); line-height: var(--a-title-lh); font-weight: var(--w-bold); letter-spacing: var(--tr-label); }
.ag-more-head .ghost { flex: none; white-space: nowrap; }
.ag-more-head p { margin: calc(var(--s1) / 2) 0 0; font-size: var(--a-body); line-height: var(--a-body-lh); color: var(--muted); }
.ag-tools { display: grid; align-content: start; gap: 0; padding: var(--app-card-pad); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); }
.ag-tools h3 { margin: 0 0 var(--s2); font-size: var(--a-section); line-height: var(--a-section-lh); font-weight: var(--w-bold); }
.ag-tool { display: flex; align-items: center; gap: var(--s3); padding-block: var(--s3); color: inherit; text-decoration: none; }
.ag-tool + .ag-tool { box-shadow: inset 0 1px 0 var(--line); }
.ag-tool code { flex: none; width: 88px; font: var(--w-bold) var(--a-small) / var(--a-small-lh) var(--font-code); }
.ag-tool > span:nth-of-type(1) { flex: 1; min-width: 0; display: grid; }
.ag-tool b { font-weight: var(--w-medium); }
.ag-tool small { font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--quiet); }
.ag-tool-go { flex: none; font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--muted); }
.ag-tool:hover .ag-tool-go { color: var(--ink); }
.ag-tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: var(--app-grid-gap); padding-bottom: var(--s10); }

@media (max-width: 1099px) {
  .ag-pg-grid, .ag-first, .ag-tiles { grid-template-columns: minmax(0, 1fr); }
  .ag-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) {
  /* phones: the rail is the kit's sideways strip; the playground's rail becomes one list of every endpoint */
  .ag-rail { display: flex; gap: var(--s1); }
  .ag-rail-h, .ag-opt small { display: none; }
  .ag-opt { width: auto; flex: none; white-space: nowrap; }
  .ag-pg-rail { display: none; }
  .panel:has(.ag-pg-rail) > .panel-side { display: none; }
  .ag-pick-phone { display: block; margin-bottom: var(--s4); }
  .ag-skel-phone { display: block !important; }
  .ag-skel-ref { margin-top: var(--s3); }
  .ag-skel-pick { height: var(--field-h); margin-bottom: var(--s4); border-radius: var(--r-pill); }
  .ag-pick-phone select { width: 100%; height: var(--field-h); padding: 0 var(--s4); border-radius: var(--r-pill); border: 0; box-shadow: inset 0 0 0 1px var(--line); background: var(--card); font: inherit; }
  .ag-sum { grid-template-columns: minmax(0, 1fr) 16px; gap: var(--s1) var(--s3); }
  .ag-sum .ag-route { grid-column: 1; grid-row: 2; }
  .ag-sum .ag-chev { grid-column: 2; grid-row: 1 / span 2; }
  .ag-body { grid-template-columns: minmax(0, 1fr); }
  .ag-body-side { position: static; }
  .ag-in { grid-template-columns: minmax(0, 1fr); }
  .ag-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-bar { top: var(--appbar-h); }
  .ag-heads { display: none; }
}

/* ===== projects =====
   The project proposals and dialogs of #/projects/<id>; the rest of the workspace is in web/projects.css. Owner: builder 5 (P9). */
/* Persisted project proposals: keep authority, machine evidence and execution distinct. */
.project-review-binding { padding: var(--s3); margin: var(--s3) 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); font-size: var(--t-sm); line-height: 1.65; overflow-wrap: anywhere; }
.project-review-binding p { margin: var(--s1) 0 0; }
.project-proposal { margin: var(--s3) 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.project-proposal > summary { padding: var(--s3) var(--s3); font-size: var(--t-sm); font-weight: var(--w-bold); cursor: pointer; background: var(--paper); }
.project-proposal pre { padding: var(--s3); margin: 0; max-height: 320px; }
.project-field textarea[name="payload"] { min-height: 220px; font-family: monospace; font-size: var(--t-sm); tab-size: 2; }

/* ===== helpers =====
   One property from one token, for the place where a shared class needs another gap, margin or alignment.
   They come last, so they win over a class above with the same weight (.stack, .sub, .row). When two views
   need the same group of helpers on the same piece, make a kit component (web/lib/fragments.js). */
.flush { margin: 0; }
.grow { flex: 1; }
.right { text-align: right; }
.push-right { margin-left: auto; }
.tiny { font-size: var(--t-xs); }
