/* threefold's look (docs/review.md, "The look, decided late on 23 Nov 2026"): a white page, Mobbin's greys and type scale,
   Geist for all text, no accent colour. The logo's word is in Fraunces (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 */
  --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 */
  --line-soft: rgb(64 64 64 / 0.07); /* the hairline between a dense list's rows (lighter than --line) */
  --scrim: rgb(20 20 20 / 0.72); /* dark glass over a picture */
  --on-scrim: #ffffff; /* text on the scrim: white in both themes, as the scrim is dark in both */
  --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 */
  --check-todo: color-mix(in oklch, var(--ink) 14%, transparent); /* a check not passed yet: the Localised bar's grey and the progress ring's track (#509: work to do, not an error, so no red) */
  --band-top: #ededed; /* the app bar's band at its top (Apptonic's bar): a soft grey that lightens down */
  --band-foot: #f6f6f6; /* the band at the tabs' foot, where the white folder tab joins the page */
  --store-ios-top: #1ac8fc; /* the App Store badge on an app icon: the store's own blue, top to bottom */
  --store-ios-foot: #1a82fb;
  --star: #f5a623; /* the gold star beside a rating (the rows' rating, as stores draw it) */
  --sh-search: 0 1px 2px rgb(20 20 20 / 0.04), 0 8px 24px -10px rgb(20 20 20 / 0.16); /* the bar's white search pill */
  --rise: oklch(0.55 0.15 150); /* a rank that climbed: the library's Rank over time (green up, red down) */
  --fall: var(--error); /* a rank that fell */
  --mood-1: #c62d22; --mood-2: #cc5b0a; --mood-3: #a06b00; --mood-4: oklch(0.55 0.15 145); --mood-5: oklch(0.58 0.19 162); /* the feedback faces' own tones when chosen (angry red, sad orange, neutral amber, happy green, delighted brighter green): the one place a rating takes colour (web/AGENTS.md "Selection", exception) */
  --accent: var(--ink); /* 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 */
  /* the one shimmer of every skeleton: a slow pass, slow in and slow out, then a rest (snuug's GlintBand curve) */
  --skel-run: skel 2.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  --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 (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 */
  --side-on: var(--card); /* the sidebar's chosen row and its Search field: a white pill on the grey */
  --ws-av-l: 0.58; /* a workspace's avatar: its own hue (lib/sidebar.js) at this lightness and chroma */
  --ws-av-c: 0.15;
  --face-ink: #000000; /* a Facehash face's eyes and initial (lib/faces.js): black on its colour, in both themes, as the package draws them */
  --face-glow: rgb(255 255 255 / 0.15); /* the soft light in the middle of a Facehash face */
  --tip: var(--ink); /* a tooltip's ground: dark on the light page */
  --on-tip: var(--paper); /* a tooltip's words */
  --tip-sub: color-mix(in oklch, var(--on-tip) 68%, transparent); /* a tooltip's quieter words: a second line, a crossed check */
  --tip-line: color-mix(in oklch, var(--on-tip) 16%, transparent); /* a hairline inside a tooltip */
  --tip-mark: oklch(0.79 0.105 265.2); /* the blue ticks and rings on a dark tooltip (the dark ramp's --link) */
  --tip-fail: #f2716a; /* a failed check's cross on a dark tooltip: the dark ramp's red, so the one thing to fix stands out */
  --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 */
  --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). */
  --map-strength: 4; /* how strong every line of the map is (a number: 1 is faint) */
  --map-lit: 2; /* how much stronger again the chosen country is drawn (a number) */
  --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-tiny: 11px; /* the folded rail's words under its icons (#509, round 2), and nothing else */
  --a-tiny-lh: 14px;
  --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 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) */
  --side-open: 256px; /* the signed-in sidebar open (#509, round 3); its content is always this wide */
  --side-rail: 56px; /* the sidebar folded to its icons: their middle is 28 px from the window's edge */
  --search-h: 56px; /* the app bar's search field (44 below 900 px) */
  --rail-w: 232px;
  --flow-w: 1216px; /* a centred flow: a project's Prepare, its steps' column and the call card beside it, with the side padding (#557) */
  --row: 44px; /* a table row */
  --row-dense: 36px;
  --empty-rows-h: 216px; /* an empty state's faded skeleton: about three rows of a list (lib/fragments.js emptyFrom) */
  --ctl: 32px; /* the app's control */
  --ctl-sm: 28px;
  --ctl-lg: 36px;
  --sel-inset: 2px; /* selection (#509): a segmented track's padding and the gap between its parts, so a track is --ctl tall */
  --sel-gap: 6px; /* selection: an icon or a count to its word, inside a segment or a chip */
  --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-side: 10px; /* the sidebar's rows, its avatar and the rail's squares: a little rounder than a menu item */
  --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 */
  --ease-face: cubic-bezier(0.4, 0, 0.2, 1); /* a Facehash face turning flat under the pointer, as the package does */
  --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) */

  /* results: a project's Results cards (#557; the owner, 30 Nov 2026: white cards on the white page, Linear's manner) */
  --res-card: #ffffff; /* the card's ground */
  --res-raised: #f4f4f4; /* a row, a pill or a tile inside it */
  --res-ink: #141414; /* words and figures */
  --res-muted: #6d6d6d; /* small words, axis labels: 5.17:1 on white */
  --res-line: rgb(64 64 64 / 0.1); /* hairlines, guide lines and the card's ring */
  --res-series: oklch(0.52 0.24 266); /* the one line, its dots and bars: threefold blue, a little lighter */
  --res-area: color-mix(in oklch, var(--res-series) 14%, transparent); /* under the line, at its top */
  --res-up: oklch(0.55 0.15 150); /* a figure that moved the good way (--rise) */
  --res-up-fill: color-mix(in oklch, var(--res-up) 12%, transparent);
  --res-skel: var(--fill); /* a grey block on a card while it loads */
  --res-bar: 10px; /* a bar's thickness on a result card: the owner, 1 Dec 2026, about 10 px with round ends (issue 625) */
  --res-scrim: rgb(20 20 20 / 0.18); /* behind an action's ticket */

  /* 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 */
  --brand-google: #4285f4; /* Google's blue, for its G on a white tile */
}
/* 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;
  --band-top: #191918; --band-foot: #1f1e1d; --sh-search: 0 0 0 1px var(--line), 0 8px 24px -10px rgb(0 0 0 / 0.6);
  --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); --line-soft: rgb(222 220 209 / 0.07);
  --backdrop: rgb(0 0 0 / 0.6); --error: #f2716a; --rise: oklch(0.75 0.15 150); --skel-light: #2a2927;
  --mood-1: #f2716a; --mood-2: #f59a52; --mood-3: #e8b73a; --mood-4: oklch(0.78 0.16 145); --mood-5: oklch(0.8 0.19 162);
  --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; --side-on: var(--paper-3);
  --tip-mark: oklch(0.45 0.292 265.2); /* the tooltip's ground is light here, so its marks are the full blue */
  --tip-fail: var(--error);
  --res-card: #1f1e1d; --res-raised: #262624; --res-ink: #faf9f5; --res-muted: #c2c0b6; --res-line: rgb(222 220 209 / 0.12); --res-skel: rgb(222 220 209 / 0.06); --res-series: oklch(0.7 0.15 268); --res-up: oklch(0.78 0.15 150);
  --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. */
* { 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; }
img:not([src]) { visibility: hidden; } /* a skeleton's picture has no address yet: its box keeps its place, with no alt words and no broken mark */
/* 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; scrollbar-gutter: stable; } /* the page never shifts sideways when a switch makes it scroll or stop */
/* 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; }

/* ===== kit =====
   One rule set for each part of web/lib/fragments.js and the classes every view shares. */
/* 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 */
/* Four 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-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-text, .iconbtn, .chip, .copy-btn, .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-text, .iconbtn, .chip, .copy-btn, .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); }
.ghost.danger, .btn-text.danger { color: var(--error); }
.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-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-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-text, .iconbtn) { cursor: progress; pointer-events: none; }
/* A press on anything not yet usable (aria-disabled="true"): one short horizontal shake, then the hint (lib/fragments.js wireShake). `translate` so it never fights a transform. */
@keyframes nope { 20% { translate: -4px 0; } 45% { translate: 4px 0; } 70% { translate: -2px 0; } 90% { translate: 1px 0; } }
@media (prefers-reduced-motion: no-preference) { .is-nope { animation: nope 300ms ease-out; } }
/* The hint's words turn error red while it shakes: in 120 ms, held 400 ms, back over 300 ms (820 ms). Colour only, so reduced motion keeps it. The box does not change. */
@keyframes nope-words { 14.6%, 63.4% { color: var(--tip-fail); } }
.hint > b.is-nope { animation: nope-words 820ms ease-out; }
:is(.btn, .ghost, .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 */
.busy-hold { display: contents; }
.busy-hold > * { color: transparent; }
:is(.btn, .ghost, .btn-text, .iconbtn):has(> .busy-mark) { position: relative; 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-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-text, .iconbtn, .chip, .copy-btn):not(.dialog-close) { position: relative; }
  :is(.ghost.sm, .btn.sm, .btn-text, .iconbtn, .chip, .copy-btn):not(.dialog-close)::after { content: ""; position: absolute; inset: min(-6px, calc((100% - 44px) / 2)) -4px; }
}
.chip { position: relative; display: inline-flex; align-items: center; gap: var(--sel-gap); min-height: var(--ctl); padding: 0 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.sm { min-height: var(--ctl-sm); padding: 0 var(--s3); font-size: var(--a-small); line-height: var(--a-small-lh); } /* the one small size, for a dense card (the library's filter cards) */
.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, .pal-list .group { padding: var(--s2) var(--s3) var(--s1); }
/* a search result: one row of the Brand table's family: a 32 px icon, the name in bold ink over its
   developer, then where it charts and its rating at the right; 56 px tall, a hover and a focus fill, no underline */
.result { display: flex; align-items: center; gap: var(--s3); min-height: 56px; padding: var(--s2) var(--s3); border-radius: var(--r-md-in); color: var(--ink); cursor: pointer; text-decoration: none; outline: none; }
.result:is(:hover, :focus-visible) { background: var(--fill); }
.result:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); }
.result-ic { flex: none; width: 32px; height: 32px; border-radius: var(--r-icon); box-shadow: var(--sh-ring); }
.result-ic.is-none { background: var(--fill-2); }
.result-text { display: grid; flex: 1; min-width: 0; }
.result-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--a-body); line-height: var(--a-body-lh); font-weight: var(--w-bold); }
.result-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--muted); }
.result-text small:empty { display: none; }
.result.is-skel { cursor: default; }
.result.is-skel .result-ic { box-shadow: none; }
.result-text > .result-sk-b { height: var(--a-body-lh); } .result-text > .result-sk-small { height: var(--a-small-lh); }
.group > .result-sk-label { width: 96px; }
.result-end { display: flex; flex: none; align-items: center; gap: var(--s3); font-size: var(--a-small); line-height: var(--a-small-lh); color: var(--muted); font-variant-numeric: tabular-nums; }
.result-rank { display: inline-flex; align-items: center; gap: var(--s1); }
.result-rate b { color: var(--ink); font-size: var(--a-body); }
@media (max-width: 599px) { .result-rank:not(:first-child), .result-rate { display: none; } }
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); }
/* The kit's fields (lib/fragments.js field(), textArea()): the label above, Mobbin's pill field under it. Here, not in
   projects.css, since the report page's "Email to a colleague" (lib/report-viewer.js) draws one where that sheet is not loaded. */
.project-field { display: grid; gap: var(--s1); min-width: 0; font-weight: var(--w-medium); font-size: var(--a-body); line-height: var(--a-body-lh); }
.project-field :is(input, select, textarea) { width: 100%; border: 1px solid var(--line-2); background-color: var(--card); color: var(--ink); border-radius: var(--r-pill); padding: var(--s2) var(--s4); outline: none; font: inherit; font-weight: var(--w-regular); transition: border-color var(--d1) var(--ease-hover); }
.project-field textarea { min-height: 105px; resize: vertical; line-height: var(--a-body-lh); border-radius: var(--r-md); padding: var(--s3) var(--s4); }
/* 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); }
/* 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; }

/* 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; }

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; }
/* the 404, the app's and the site's (views/not-found.js; issue 509): a small kawaii globe, lost, over the title and two
   ways on, in the middle of the page. The sea and the land are the one accent, faint; the globe wobbles and the "?"
   bobs only with motion on */
.lost { display: grid; justify-items: center; gap: var(--s3); padding: var(--s8) var(--s4); text-align: center; }
.lost h1 { margin: var(--s2) 0 0; font-size: var(--a-title); line-height: var(--a-title-lh); font-weight: var(--w-bold); letter-spacing: var(--tr-label); }
.lost p { margin: 0; color: var(--muted); font-size: var(--a-body); line-height: var(--a-body-lh); }
.lost-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin-top: var(--s3); }
.lost-globe { overflow: visible; }
.lost-sea { fill: color-mix(in oklab, var(--primary) 7%, var(--card)); }
.lost-land { fill: color-mix(in oklab, var(--primary) 24%, var(--card)); }
.lost-rim { fill: none; stroke: color-mix(in oklab, var(--primary) 30%, var(--card)); stroke-width: 1.5; }
.lost-eye { fill: var(--ink); }
.lost-glint { fill: var(--card); }
.lost-cheek { fill: var(--primary); opacity: 0.16; }
.lost-ball { transform-box: fill-box; transform-origin: 50% 90%; }
.lost-q { fill: var(--primary); font-size: 26px; font-weight: var(--w-bold); text-anchor: middle; transform-box: fill-box; transform-origin: 50% 90%; }
@media (prefers-reduced-motion: no-preference) {
  .lost-ball { animation: lost-wobble 3.6s ease-in-out infinite; }
  .lost-q { animation: lost-bob 1.8s ease-in-out infinite alternate; }
}
@keyframes lost-wobble { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }
@keyframes lost-bob { from { translate: 0 0; rotate: 8deg; } to { translate: 0 -4px; rotate: -6deg; } }
.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; }
/* #509: the one light divider between a page's filter rows and its content (library tabs, Endpoints). 16 px above and below, in the page's own markup so its skeleton shows it too. */
.filter-rule { flex: none; width: 100%; height: 0; margin: var(--s4) 0; border: 0; border-top: 1px solid var(--line-soft); }

@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 .label { margin-top: -6px; }
.badge .ic { margin-right: -2px; }
.ghost .brand { box-shadow: none; }

/* the shared parts: one rule set for each part that lib/fragments.js adds. 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; }
/* A country select (fragments.js countrySelect): the round flag sits over the select's left padding, so the field keeps its size and the name moves right by the flag and a gap. [name] outranks the form-specific select paddings. */
.flag-select { position: relative; display: block; min-width: 0; }
.flag-select > .flag { position: absolute; inset-inline-start: var(--s4); top: 50%; translate: 0 -50%; pointer-events: none; }
.flag-select > select.flag-input[name] { padding-inline-start: calc(var(--s4) + 20px + var(--s2)); }
.ag-select.flag-select > select.flag-input[name] { padding-inline-start: calc(20px + var(--s2)); } /* .ag-select's own padding already holds the s4 */

/* 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 quiet grey track --ctl tall, its parts --ctl-sm; the chosen part is the selection look
   ("Selection" below the chip: threefold blue, white words, one glint) */
.seg { display: inline-flex; gap: var(--sel-inset); padding: var(--sel-inset); border-radius: var(--r-pill); background: var(--fill); vertical-align: middle; max-width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.seg > button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--sel-gap); 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; -webkit-tap-highlight-color: transparent; transition: background-color var(--d1) var(--ease), color var(--d1) var(--ease), scale var(--d2) var(--ease-spring); }
.seg > button:not([aria-pressed="true"], [aria-selected="true"]):hover { color: var(--ink); }
.seg > button:active:not(:disabled) { scale: 0.96; transition-duration: var(--d1), var(--d1), var(--d-press); }
.seg > button:focus-visible { outline-offset: 0; }
.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.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: calc(var(--ctl-sm) - 2 * var(--sel-inset)); padding: 0 var(--s2); font-size: var(--a-small); line-height: var(--a-small-lh); } /* the one small size: a --ctl-sm track, for a dense row */
/* 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); }

/* 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"] { 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; outline-offset: -2px; }
.menu-item:hover, .menu-item:focus-visible { background: var(--fill); }
.menu-item:active { background: var(--fill-2); }
@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); }
.menu-title { padding: var(--s1) var(--s2); color: var(--quiet); font-size: var(--a-small); line-height: var(--a-small-lh); }

/* 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:not(.flagset-names) > 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) */
.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[aria-selected="true"] 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-scrim); 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: var(--skel-run); }
.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-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; } 75%, to { background-position: 0 0; } } /* a 1.8 s pass, a 0.6 s rest */
@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 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 > 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 a chat tool call is done its mark resolves (every pixel
   lights) and turns into the tick (web/parts.css .chat-call.is-done) */
.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.spin-quiet { color: var(--quiet); }
:is(.ghost, .chip, .findstrip, .nextbox, .code-well, .chat, .shotwell, .vidwell, .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; }

/* 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); }
/* reduced motion: the skeletons, the toast, a flag under the pointer and the swap hold still */
@media (prefers-reduced-motion: reduce) {
  .skel, .skel-text::before, .is-landed, .toast, .toast.is-leaving { animation: none; }
  .flagset > button:is(:hover, :active) { scale: 1; }
  .swap { transition: none; }
}

/* the parts, one per job. 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 (.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(--band-h, var(--appbar-h)); align-self: start; max-height: calc(100dvh - var(--band-h, 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-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); }

/* 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 */
/* the progress ring (lib/fragments.js progressRing): how far along, blue on a grey track, grown in once */
.vprog { flex: none; display: inline-block; vertical-align: middle; }
.vprog circle { fill: none; stroke-width: 3.4; stroke-linecap: round; }
.vprog .vp-track { stroke: var(--check-todo); }
.vprog .vp-fill { stroke: var(--primary); stroke-dasharray: var(--p) 100; }
@media (prefers-reduced-motion: no-preference) { .vprog .vp-fill { animation: vp-grow 400ms var(--ease) both; } }
@keyframes vp-grow { from { stroke-dasharray: 0 100; } }
.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); }

/* Selection (#509; web/AGENTS.md "Selection"): the one chosen look of every pick-one or pick-some control. The
   chosen part is the chosen surface (threefold blue with depth, "chosen and hover" at the end of this file) with white
   words, icon and count; it glints once when a pointer picks it (wireChoice(), glint()). The rest stay quiet grey.
   The segmented control's sliding fill (.choice-ink) carries it once wired; until then, and in a group with no fill,
   the chosen button does. More holding the chosen tab is chosen too.
   The chosen word is a thin stroke heavier, not a heavier weight, so its width and its neighbours stay put. */
.seg > .choice-ink, .seg:not(.has-ink) > :is([aria-pressed="true"], [aria-selected="true"]), .chip[aria-pressed="true"], .flagset.flagset-names > button[aria-pressed="true"], .tabs-more > .menu-btn.is-on { border-radius: var(--r-pill); background: var(--chosen-surface); box-shadow: var(--chosen-depth); color: var(--on-primary); -webkit-text-stroke: 0.35px currentColor; }
.seg > :is([aria-pressed="true"], [aria-selected="true"]) { color: var(--on-primary); -webkit-text-stroke: 0.35px currentColor; }
/* a count inside a chip or a segment: the word's size, regular, figures that line up; lighter on the chosen blue */
:is(.chip, .seg > button) small { font-size: inherit; font-weight: var(--w-regular); color: var(--muted); font-variant-numeric: tabular-nums; -webkit-text-stroke: 0; }
:is(.chip[aria-pressed="true"], .seg > [aria-pressed="true"], .seg > [aria-selected="true"]) small { color: inherit; opacity: 0.8; }
:is(.chip[aria-pressed="true"], .seg > [aria-pressed="true"], .seg > [aria-selected="true"]) :is(svg, .pt-fill) { color: var(--on-primary); } /* every icon on the blue is white, a filled tab icon (pageTabIcon) and one a view tints (the feedback faces) too */
.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 { position: relative; 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; }
.flagset.flagset-names > button:not([aria-pressed="true"]):hover { color: var(--ink); }
/* 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); }
/* nothing here yet, drawn from the view's skeleton (#509; lib/fragments.js emptyFrom, emptyIn). The box that holds the
   words keeps its first other child, the skeleton the view painted: still, lighter, cut to about three rows and fading
   out downwards. Its other children leave. When the skeleton was on screen (.is-fading) the fade runs from no fade. */
:has(> .empty-say) > :not(.empty-say) { max-height: var(--empty-rows-h); overflow: clip; opacity: 0.8; mask-image: linear-gradient(#000 0 55%, transparent); mask-size: 100% 200%; mask-position: 0 100%; pointer-events: none; }
:has(> .empty-say) > :not(.empty-say) ~ :not(.empty-say) { display: none; }
:has(> .empty-say) > :not(.empty-say) .skel, :has(> .empty-say) > :not(.empty-say) .skel-text::before { animation: none; }
:has(> .empty-say.is-fading) > :not(.empty-say) { animation: empty-fade var(--d4) var(--ease-out) both; }
@keyframes empty-fade { from { mask-position: 0 0; opacity: 1; } }
.empty-say { position: relative; display: grid; justify-items: center; gap: var(--s1); margin-top: var(--s2); padding: 0 var(--s5) var(--s7); text-align: center; color: var(--muted); }
.empty-say > b { font-size: var(--a-section); line-height: var(--a-section-lh); font-weight: var(--w-bold); text-wrap: balance; }
.empty-say > p { max-width: calc(44 * var(--ch)); margin: 0; font-size: var(--a-body); line-height: var(--a-body-lh); text-wrap: balance; }
.empty-say > :is(.btn, .ghost) { margin-top: var(--s4); }
.empty-say.is-panel { display: block; margin: 0; padding: var(--s3) 0 0; font-size: var(--a-body); line-height: var(--a-body-lh); }
.empty-say.is-fading { animation: land var(--d2) var(--ease-out) both; }

/* 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-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, .adcard, .findstrip, .nextbox, .skel-on-grey) .skel, :is(.shotwell, .vidwell, .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. 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, .band, .side, .deck, .footer { display: none !important; }
  body[data-shell="app"] .sheet { padding-left: 0; }
}

/* 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; }
/* The flow box stays 92 + 1 tall (BUG-475 retired): the short form is drawn, not laid out, so the page under the bar
   never moves. The paper and the hairline are ::before, 24 px shorter once stuck; .sitebar-in gives its 24 px back as a
   bottom margin (both ease together, so their sum holds). The empty 24 px takes no click. */
.sitebar::before { content: ""; position: absolute; inset: 0 0 auto; height: 93px; border-bottom: 1px solid transparent; box-sizing: border-box; pointer-events: none; transition: height var(--d2) var(--ease), background-color var(--d2) var(--ease), border-color var(--d2) var(--ease); }
.sitebar.is-stuck::before { height: 69px; background: var(--paper); border-bottom-color: var(--paper-3); }
.sitebar.is-stuck { pointer-events: none; }
.sitebar-in { position: relative; pointer-events: auto; 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), margin-bottom var(--d2) var(--ease); }
.sitebar.is-stuck .sitebar-in { height: 68px; margin-bottom: 24px; }
.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::before, .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: 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::before { height: 65px; }
  .sitebar.is-stuck::before { height: 57px; }
  .sitebar.is-stuck .sitebar-in { height: 56px; margin-bottom: 8px; }
  .sitebar-links { display: none; }
}

/* the app bar (signed in): one grey band, as the owner's reference of 24 Nov 2026 (docs/review.md), right of the sidebar
   (below). A large white search in the middle (45 % of the bar), the logo at the right (Jyoutir, 27 Nov 2026: where
   Saved and the account were; the sidebar holds those now), and on a phone the sidebar's menu button at the left. 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, like the deck, sticks under the bar
   (#509, the owner: "make sure the top bar is always visible") */
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); }
body[data-shell="app"] .sitebar, body[data-shell="app"] .footer { display: none; }
/* the band: one layer (index.html .band) under the bar and the tab row, which are clear over it. It runs from
   --band-top under the bar to --band-foot at the tabs' foot, with the line art (--band-art, lib/band-art.js) on top, as
   tall as the bar, the deck's country row and the tabs (--band-h, set by body[data-tabs] below). It reaches a tab row's
   depth on every page, so the white page's top corners show the same ground. It is fixed to the window, like the
   sidebar: the frame is one picture that never moves, and the tabs and the white page scroll over it (Jyoutir, 27 Nov
   2026: "the background seems to be built in 2 pieces"; the band scrolled away under the bar's own copy). The bar
   paints the same picture at the same place, as it stays on top of the page that scrolls under it; so do the white
   page's two top corners that hang from the bar's foot (below), and the rows that stick under it (the deck, a view's tabs) */
body[data-shell="app"] { --band-mid: color-mix(in oklch, var(--band-top), var(--band-foot) 60%); --band-h: var(--appbar-h); --band-ground: max(var(--band-h), calc(var(--appbar-h) + var(--pill-h))); --deck-h: 0px; --lib-country-h: 0px; }
@media (max-width: 1279px) { body[data-shell="app"] { --lib-country-h: 60px; } } /* the deck's country row is its own line only under 1280 px */
body[data-shell="app"][data-tabs="view"] { --band-h: calc(var(--appbar-h) + var(--pill-h)); }
body[data-shell="app"][data-tabs="deck"] { --deck-h: calc(var(--lib-country-h) + var(--pill-h)); --band-h: calc(var(--appbar-h) + var(--deck-h)); }
.band { display: none; position: fixed; inset: 0 0 auto; z-index: -1; height: var(--band-ground); }
body[data-shell="app"] .band { display: block; }
body[data-shell="app"] :is(.band, .appbar, .deck, :where(#view > .page-tabs)), body[data-shell="app"] :is(.appbar, .deck, :where(#view > .page-tabs))::before, body[data-shell="app"] :is(.appbar, .deck, :where(#view > .page-tabs))::after { background: var(--band-art, none) no-repeat 0 0 / var(--band-w, 100%) var(--band-h), linear-gradient(var(--band-top), var(--band-mid) var(--appbar-h), var(--band-foot)) no-repeat 0 0 / 100% var(--band-ground); }
/* the rows that stick under the bar: the deck and a view's own tab row (wordTabs({ page: true }), the first thing in the
   view). Each paints the band's picture where it stands on the window (fixed), as the bar does: at rest it is the band
   itself, and the page scrolls under it. In place from the first paint, so nothing moves (#509) */
body[data-shell="app"] :is(.deck, #view > .page-tabs) { position: sticky; top: var(--appbar-h); z-index: 20; background-attachment: fixed; }
/* the bar starts right of the sidebar, and its copy of the art stays where the band's is: drawn for the whole window. This rule must beat the shared one above: that one's :is() held `#view > .page-tabs`, an id, so it won on specificity and the bar's art was stretched to the bar's width (BUG-489, #509) */
body[data-shell="app"] .appbar { display: grid; background-position: calc(-1 * var(--side-w)) 0, 0 0; background-size: var(--band-w, calc(100% + var(--side-w))) var(--band-h), 100% var(--band-ground); }
/* the white page keeps its round top corners while it scrolls under the bar: two concave corners of the frame hang from
   the bar's foot at the page's two edges, the frame's own picture where it stands (fixed), cut to the page's radius; and
   from the foot of the row that sticks under the bar (the deck, a view's tabs), where they reach past the band's picture
   onto the frame's foot colour. Over the frame (no scroll, the tabs' band) they cannot be seen. No corners under 900 px,
   where the page is square */
@media (min-width: 900px) {
  body[data-shell="app"] :is(.appbar, .deck, #view > .page-tabs)::before { content: ""; position: absolute; top: 100%; left: 0; width: var(--r-page); height: var(--r-page); background-color: var(--band-foot); background-attachment: fixed; pointer-events: none; mask: radial-gradient(circle at 100% 100%, transparent calc(var(--r-page) - 0.5px), #000 calc(var(--r-page) + 0.5px)); }
  body[data-shell="app"] :is(.appbar, .deck, #view > .page-tabs)::after { content: ""; position: absolute; top: 100%; right: 0; width: var(--r-page); height: var(--r-page); background-color: var(--band-foot); background-attachment: fixed; pointer-events: none; mask: radial-gradient(circle at 0 100%, transparent calc(var(--r-page) - 0.5px), #000 calc(var(--r-page) + 0.5px)); }
}
body[data-shell="app"] .sheet { padding-left: var(--side-w); border-radius: 0; overflow: visible; background: var(--band-foot); }
/* the deck (index.html #deck): the library's country control and tabs, shared by #/library and #/app/<id> and made once
   per page (views/library/filters.js mountDeck), so a move between the two keeps them. Its height is held before they
   land; it sticks under the bar (above) */
.deck { display: none; height: var(--deck-h); overflow-x: clip; } /* clip: the last tab's folder feet run past the window's edge on a phone, as main clipped them */
body[data-shell="app"][data-tabs="deck"] .deck { display: block; }
/* 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) - var(--deck-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 its own 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) { background: none; border-radius: 0; }
.page-tabs + .panel { border-radius: var(--r-page) var(--r-page) 0 0; }
/* before such a view's module arrives (web/app.js marks body[data-tabs="view"]), the row's place is held: no jump when it lands */
body[data-shell="app"][data-tabs="view"] #view:empty { padding: var(--pill-h) 0 0; background: none; border-radius: 0; }
body[data-shell="app"][data-tabs="view"] #view:empty::before { content: ""; display: block; height: calc(100dvh - var(--band-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(--s3); min-height: 40px; } /* the avatar's height (.barme), so a bar without it (a guest) does not move its logo */
.appbar-end .logo .mark { width: 18px; height: 31px; } /* the bar's mark and the person's 40 px face read at the search field's scale (the owner, 28 Nov 2026: "make this logo and face bigger") */
/* a guest on the library (body[data-guest], web/app.js): one black "Sign in" beside the logo, there from the bar's first paint */
/* the person's round avatar (lib/faces.js avatar(), #509): their Facehash face (.fh) or their picture; --av-s is its size.
   Empty (a skeleton, a signed-out person) it is grey. avatarStack(): Figma's overlap, a ring in the page's own colour
   (--av-ring). */
.av { display: grid; flex: none; place-items: center; width: var(--av-s, 36px); height: var(--av-s, 36px); border-radius: var(--r-pill); overflow: hidden; background: var(--paper-3); color: var(--ink); line-height: 1; }
.av.av-quiet { background: var(--fill-2); color: var(--muted); font-size: calc(var(--av-s, 36px) * 0.36); font-weight: var(--w-bold); }
.av.skel { background: linear-gradient(90deg, var(--paper-2) 30%, var(--skel-light) 50%, var(--paper-2) 70%) 0 0 / 300% 100%; }
.av > img { width: 100%; height: 100%; object-fit: cover; }
.avstack { display: inline-flex; padding-left: calc(var(--av-over, 8px)); }
.avstack > .av { margin-left: calc(-1 * var(--av-over, 8px)); box-shadow: 0 0 0 2px var(--av-ring, var(--paper)); }
/* the Facehash face (lib/faces.js facehash(), a port of facehash.dev's React component, whose inline styles these are):
   the colour with a soft light in its middle, the eyes and the initial turned in 3D by the face's own --fh-x and --fh-y,
   and flat while the pointer is on it (Facehash's "interactive"); still with reduced motion */
.fh { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; overflow: hidden; container-type: size; perspective: 300px; transform-style: preserve-3d; background: radial-gradient(ellipse 100% 100% at 50% 50%, var(--face-glow) 0%, transparent 60%), var(--fh-bg); color: var(--face-ink); font-weight: var(--w-regular); }
.fh-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotateX(var(--fh-x)) rotateY(var(--fh-y)) translateZ(12px); transform-style: preserve-3d; transition: transform var(--d2) var(--ease-face); }
.fh:hover > .fh-face { transform: rotateX(0deg) rotateY(0deg) translateZ(12px); }
.fh-face > svg { width: 60%; height: auto; max-width: 90%; max-height: 40%; }
.fh-i { margin-top: 8%; font-size: 26cqw; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .fh-face { transition: none; } }
/* the bar's own avatar (site/build.mjs appBarHtml, #509 round 5): the person's face, left of the logo, opening their
   menu (personMenuHtml, under the bar's right end); none for a guest, and none under 600 px, where the search needs the
   room and the sidebar's drawer has the person at its foot (as the team's stack before it) */
.barme { display: inline-flex; margin-right: var(--s1); padding: 0; border: 0; border-radius: var(--r-pill); background: none; cursor: pointer; }
body[data-guest] .barme { display: none; }
@media (max-width: 599px) { .barme { display: none; } }
.btn.appbar-signin { display: none; background: var(--ink); color: var(--paper); }
body[data-guest] .btn.appbar-signin { display: inline-flex; }
/* the round avatar (the site's copies of the bar, web/views/landing/frame.js) and the key hint */
.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); }
/* the bar search: one calm white field, as wide as the tabs under it. The magnifier and the words sit in its middle at
   rest, focused and while typing; its words are the tabs' size. Focused: one thin blue edge, no halo.
   "/" 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-lg); background: var(--card); box-shadow: var(--sh-search); color: var(--muted); cursor: text; transition: box-shadow var(--d1) var(--ease-hover); }
.barsearch:hover { box-shadow: var(--sh-search), inset 0 0 0 1px var(--line); }
.barsearch:focus-within { box-shadow: var(--sh-search), inset 0 0 0 1.5px var(--focus); }
.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-section); line-height: var(--a-section-lh); text-overflow: ellipsis; } /* a narrow bar cuts the placeholder with "…", not mid-word (#551) */
.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) {
  /* centred at rest, focused and while typing: the words never jump to the left */
  .barsearch { justify-content: center; }
  .barsearch input { flex: 0 1 auto; field-sizing: content; min-width: 2px; }
}
.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; cursor: auto; }
/* 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); font-size: var(--a-body); line-height: var(--a-body-lh); font-weight: var(--w-medium); }
.tabs.page-tabs[hidden], .tabs.page-tabs > [hidden] { display: none; } /* the deck's row on an app threefold never read, and Creators on an app's page */
.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)); }
/* The library's tabs (web/views/library/pillars.js), which an app's page shares (the deck): Brand,
   Videos, Creators, Paid ads (one app: Brand, Videos, Paid ads). One strip: as wide as the search box and
   centred under it (the box is 45 % of the bar's width, so 27.5 % of it is left on each side), the tabs in equal slots,
   each icon and word centred in its slot. The chosen tab is unmistakable: the white folder shape, the icon filled in
   threefold blue, the word in bold ink; the others are muted, darken under the pointer and show a focus ring. On a pick
   the icon does one small move of its own (0.85, 1.06, 1 in 300 ms, and a tiny gesture per icon); reduced motion:
   colour only. Phone: icons only, the chosen tab shows its word */
.pt { --pt-ic: 20px; }
.tabs.page-tabs.pt { justify-content: center; gap: 0; padding-inline: calc(var(--app-pad) + (100% - 2 * var(--app-pad)) * 0.275); font-size: var(--a-section); line-height: var(--a-section-lh); } /* 16 px words beside the 18 px icons below */
.tabs.page-tabs.pt > button { flex: 1 1 0; justify-content: center; gap: var(--s2); min-width: 0; padding-inline: var(--s3); font-weight: var(--w-medium); cursor: pointer; transition: color 280ms ease; }
.tabs.page-tabs.pt > [aria-selected="true"] { font-weight: var(--w-bold); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .tabs.page-tabs.pt > button[aria-selected="false"]:hover { color: var(--ink); } }
.tabs.page-tabs.pt > button:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; border-radius: var(--r-md) var(--r-md) 0 0; }
@media (hover: hover) and (pointer: fine) { .page-tabs > button[aria-selected="false"]:hover .pt-out { color: var(--ink); } }
/* a tab that cannot be chosen yet (Projects' Actions and Results before a project is open, lib/fragments.js bandTabs):
   the same slot, quieter, with the shared tooltip on hover */
.tabs.page-tabs.pt > .pt-off { position: relative; z-index: 1; display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; gap: var(--s2); min-width: 0; height: 100%; padding-inline: var(--s3); color: var(--quiet-mark); font-weight: var(--w-medium); cursor: not-allowed; }
.tabs.page-tabs.pt > .pt-off .pt-out { color: var(--quiet-mark); }
@media (max-width: 599px) { .pt > .pt-off > .pt-name { display: none; } }
/* the hairline before Creators: on the boundary between two equal slots, so it moves no slot and crosses no word; it
   hides while either of its two tabs is the chosen white shape, whose edge it would otherwise cut */
.pt > .pt-apart::before { content: ""; position: absolute; left: 0; top: 30%; bottom: 30%; width: 1px; background: var(--line-2); pointer-events: none; transition: opacity var(--d1) ease; }
.pt > [aria-selected="true"] + .pt-apart::before, .pt > .pt-apart[aria-selected="true"]::before { opacity: 0; }
.page-tabs { --pt-ic: 18px; } /* the icons are slightly bigger than the 16 px word */
.pt-ic { display: grid; flex: none; width: var(--pt-ic); height: var(--pt-ic); }
.pt-ic > .ic { grid-area: 1 / 1; width: var(--pt-ic); height: var(--pt-ic); transition: opacity 200ms ease, scale 200ms var(--ease-out), color 150ms ease; }
.pt-out { color: var(--muted); stroke-width: 1.75; }
.pt-fill { color: var(--selected); opacity: 0; scale: 0.7; }
.page-tabs > :is([aria-selected="true"], [aria-current="page"]) .pt-out { opacity: 0; scale: 0.7; }
.page-tabs > :is([aria-selected="true"], [aria-current="page"]) .pt-fill { opacity: 1; scale: 1; }
.page-tabs > .is-picked .pt-ic { animation: pt-pick 300ms var(--ease-out); }
.page-tabs > .is-picked[data-choice="paid"] .pt-ic { animation-name: pt-pick-tilt; }
.page-tabs > .is-picked[data-choice="organic"] .pt-ic { animation-name: pt-pick-nudge; }
.page-tabs > .is-picked[data-choice="creators"] .pt-ic { animation-name: pt-pick-hop; }
@keyframes pt-pick { 0% { scale: 0.85; } 60% { scale: 1.06; } 100% { scale: 1; } }
@keyframes pt-pick-tilt { 0% { scale: 0.85; rotate: 0deg; } 55% { scale: 1.06; rotate: -10deg; } 100% { scale: 1; rotate: 0deg; } }
@keyframes pt-pick-nudge { 0% { scale: 0.85; translate: 0 0; } 55% { scale: 1.06; translate: 2px 0; } 100% { scale: 1; translate: 0 0; } }
@keyframes pt-pick-hop { 0% { scale: 0.85; translate: 0 0; } 55% { scale: 1.06; translate: 0 -2px; } 100% { scale: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .pt-ic > .ic { transition: opacity 150ms ease; scale: 1; }
  .page-tabs > .is-picked .pt-ic { animation: none; }
}
@media (max-width: 899px) { .tabs.page-tabs.pt { padding-inline: var(--app-pad); } }
@media (max-width: 599px) {
  .pt > button[data-choice]:not([aria-selected="true"]) > .pt-name { display: none; }
}
/* below 900 px the "/" hint goes, 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: 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 sidebar (index.html .side, site/build.mjs sidebarHtml, lib/sidebar.js; #509, round 3, 28 Nov 2026: datavendor's,
   "make it like this UI … with our own twist in colours and curves"): the band's grey running down the left edge, so
   the band and the sidebar read as one frame and the white page sits in their corner. One panel at two widths
   (body[data-side]): open, every label beside its icon (--side-open); folded, the rail (--side-rail), the same panel cut
   at its icons. Its content never changes width: only --side-now moves (200 ms), so the labels are cut by the moving
   edge and every icon keeps its x. On the rail the icons grow 1.5 times round their own middles, and the rows that
   exist only wide (an app's countries) close to no height in the same 200 ms, so the rail is one tight column of icons
   (the owner, 28 Nov 2026: "they collapse in a little so it's nice and clean"; this replaced "every icon keeps its y").
   A row's pill shrinks to a rounded square round its icon (each pill is ::before, as wide as the panel allows). The page
   takes the panel's width as its left padding (--side-w, 0 on a phone, where the panel is a drawer) */
@property --side-now { syntax: "<length>"; inherits: true; initial-value: 256px; } /* = --side-open: a registered length can move (200 ms) */
.side, .side-scrim, .side-toggle { display: none; }
body[data-shell="app"] .side { position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; display: block; width: var(--side-now); overflow: clip; /* clip, not hidden: a focus or a find never scrolls the content sideways */
  interpolate-size: allow-keywords; /* a group's content eases between 0 and its own height (.side-sec::details-content) */
  background: linear-gradient(var(--band-top), var(--band-mid) var(--appbar-h), var(--band-foot) var(--band-ground)) no-repeat, var(--band-foot); }
.side-in { display: flex; flex-direction: column; width: var(--side-open); height: 100%; padding: var(--s2); }
.side [hidden], .side-tip[hidden] { display: none; }
/* a row: an 18 px icon at x 19 to 37 (the rail's middle is 28; #509, 28 Nov 2026: the owner found 16 px small), its
   words from x 48, then its count or ring */
:is(.side-row, .side-cap) { position: relative; z-index: 0; display: flex; align-items: center; gap: 11px; flex: none; width: 100%; min-width: 0; height: var(--side-row, 34px); padding: 0 var(--s3) 0 11px; border: 0; background: none; color: var(--ink); transition: height 200ms var(--ease-out); font: inherit; font-size: var(--a-body); line-height: var(--a-body-lh); font-weight: var(--w-medium); text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer; outline: none; }
:is(.side-row, .side-cap)::before { content: ""; position: absolute; inset: 0 auto 0 0; z-index: -1; width: calc(var(--side-now) - 2 * var(--s2)); border-radius: var(--r-side); transition: background-color var(--d1) var(--ease-hover), box-shadow var(--d1) var(--ease-hover); }
:is(.side-row, .side-cap):hover::before { background: var(--fill-2); }
:is(.side-row, .side-cap):focus-visible::before { outline: 2px solid var(--focus); outline-offset: -2px; }
.side-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
:is(.side-row, .side-cap) > .ic { flex: none; color: var(--muted); stroke-width: 1.75; transition: color var(--d1) var(--ease-hover), scale 200ms var(--ease-out), stroke-width 200ms var(--ease-out), width 200ms var(--ease-out), margin-right 200ms var(--ease-out), opacity 200ms var(--ease-out); }
:is(.side-row, .side-cap):hover > .ic { color: var(--ink); }
.side-row > :is(.side-n, .vprog) { flex: none; margin-left: auto; }
.side-row > .flag { flex: none; margin-left: auto; }
/* The sidebar's rings stand still (#551: a ring that grew on each draw read as a loading spinner). */
.side .vprog .vp-fill { animation: none; }
/* the page in view: a white pill that lifts off the grey, its icon filled in threefold blue (our twist on datavendor's fill) */
.side-row[aria-current="page"]::before, body[data-side="folded"] .side-app:has([aria-current="page"]) > summary::before, .side-app:not([open]):has([aria-current="page"]) > summary::before { background: var(--side-on); box-shadow: var(--sh-lift); }
.side-row[aria-current="page"] > .ic { color: var(--selected); }
.side .ic-on, .side-row[aria-current="page"] > .ic-off { display: none; }
.side-row[aria-current="page"] > .ic-on { display: block; }
/* a project's Results before a project is open (web/app.js markSide): there, quieter; the hint says why */
.side-row[aria-disabled], .side-row[aria-disabled] > .ic { color: var(--quiet-mark); cursor: default; }
.side-row:is([aria-disabled], .side-none, .side-app-skel):hover::before { background: none; }
.side-none, .side-app-skel { color: var(--quiet); cursor: default; }
.side-app-skel > .skel-text { height: var(--a-body-lh); }
/* the one count in the sidebar (lib/fragments.js sideCount): what waits for the person on Actions, a blue badge
   (web/AGENTS.md, "Counts and rings"); on the rail a blue dot on the icon. Empty (none, or not read yet): not shown */
.side-n { min-width: 16px; height: 16px; padding: 0 var(--s1); border-radius: var(--r-pill); background: var(--primary); color: var(--on-primary); font-size: var(--a-small); line-height: 16px; font-weight: var(--w-bold); font-variant-numeric: tabular-nums; text-align: center; }
.side-n:empty { display: none; }
/* the workspace: its avatar in its colour (a hue from its name, lib/sidebar.js), its name over the person's role and plan */
.side-ws { height: 48px; gap: 10px; padding-left: 2px; }
.side-ws-av { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: var(--r-side); background: oklch(var(--ws-av-l) var(--ws-av-c) var(--ws-h, 264)); color: var(--on-primary); font-size: var(--a-section); line-height: 1; font-weight: var(--w-bold); }
.side-ws-av.skel { background: var(--paper-3); }
.side-two { display: grid; min-width: 0; }
.side-two > :is(b, small) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-two > b { font-weight: var(--w-medium); }
.side-two > small { color: var(--muted); font-size: var(--a-small); line-height: var(--a-small-lh); }
.side-two > small:empty { display: none; }
.side-two .skel-text { height: var(--a-body-lh); }
.side-row > .ic:last-child:not(:first-child) { margin-left: auto; color: var(--quiet-mark); } /* the workspace's chevrons, the person's ⋯ */
/* Search (lib/palette.js): a field with the magnifier, the word and its key cap; on the rail a square round the magnifier */
.side-find { margin-top: var(--s2); color: var(--muted); }
.side-find::before, .side-find:hover::before { background: var(--side-on); box-shadow: var(--sh-ring); }
.side-find:hover { color: var(--ink); }
.side-find > .kbd { margin-left: auto; background: var(--paper-2); box-shadow: none; }
/* the list between the top and the foot. Taller than the window, its last rows fade into the foot, so it says there is
   more; the fade shrinks as it scrolls and is gone at its end. The scroll drives the fade (a scroll timeline): a list
   that fits has no scroll, so no fade and no bottom padding for one (#509, round 3: every row in a 900 px window; the
   budget is in web/AGENTS.md, "The frames"). A browser with no scroll timeline (Firefox, Nov 2026) shows no fade */
@property --side-fade { syntax: "<length>"; inherits: false; initial-value: 0px; }
@keyframes side-more { from { --side-fade: var(--s6); } to { --side-fade: 0px; } }
.side-nav { flex: 1 1 auto; min-height: 0; margin: 0 calc(-1 * var(--s2)); padding: var(--s1) var(--s2) 0; overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: none; mask: linear-gradient(#000 calc(100% - var(--side-fade)), transparent); animation-name: side-more; animation-timing-function: linear; animation-fill-mode: both; animation-timeline: scroll(self); } /* longhands: the shorthand's 0 s duration would end the scroll's animation at its start */
/* the groups (Library, Projects, Developers; #509, the owner, 28 Nov 2026: "a mix of C and A" of the heading drafts):
   each group sits in a faint rounded panel (C) under a quiet label (A): the group's icon, small and quiet (14 px drawn),
   small grey uppercase words in the rows' words' column, and a chevron at the right, down while the group is open and
   right while it is closed (150 ms). The open list expands every group, the rail only the group of the page in view
   (lib/format.js expandSide); a click on a label folds or opens its group for the visit. A group's height eases open
   and shut in the width's 200 ms (::details-content), so nothing jumps. On the rail the panel is a tinted strip as wide
   as the rail's icons, with the group's icon at its top, as large as the rows' icons, and the panel's rows inside */
.side-tree, .side-app { display: grid; gap: 2px; }
.side-sec { display: grid; gap: 2px; width: calc(var(--side-now) - 2 * var(--s2)); padding-block: 4px; border-radius: var(--r-md); background: var(--fill); }
.side-sec + .side-sec { margin-top: var(--s2); }
.side-sec::details-content { display: grid; gap: 2px; height: 0; overflow: clip; transition: height 200ms var(--ease-out), content-visibility 200ms allow-discrete; }
.side-sec[open]::details-content { height: auto; }
.side-sec :is(.side-row, .side-cap)::before { left: 4px; width: calc(var(--side-now) - 2 * var(--s2) - 8px); }
.side-sec .side-chips > div { padding-right: 4px; } /* the countries' pills end where the rows' pills end */
.side-cap { height: 28px; list-style: none; }
.side-cap > span { font-size: var(--a-tiny); line-height: var(--a-tiny-lh); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.side-cap > .ic:first-child { scale: 0.78; color: var(--quiet-mark); } /* 14 px of the rows' 18, round the icons' column's middle */
.side-cap::-webkit-details-marker, .side-app > summary::-webkit-details-marker { display: none; }
.side-app > summary { list-style: none; }
.side-cap > .ic:last-child { margin-left: auto; color: var(--quiet-mark); transition: opacity var(--d1) var(--ease-hover), rotate var(--d1) var(--ease-out); }
.side-sec:not([open]) > .side-cap > .ic:last-child { rotate: -90deg; }
.side-sec:not([open]):has([aria-current="page"]) > .side-cap > span { color: var(--selected); } /* a closed group holds the page in view */
/* a hairline inside a group (before Tracked apps) starts at the words' column, so it never reads as a group's divide;
   the rail has no words, so it has no such hairline */
.side-rule { width: calc(var(--side-now) - 2 * var(--s4) - 2 * var(--s4)); height: 1px; margin: 2px 0 2px calc(2 * var(--s3) + 16px); border: 0; background: var(--line); transition: opacity 160ms ease 40ms; }
/* Apps: each app (a picture, its name, its ring); the open one's countries as chips right of the icons' column */
.side-pic { flex: none; width: 18px; height: 18px; border-radius: var(--r-icon); background: var(--fill-2); box-shadow: var(--sh-ring); transition: scale 200ms var(--ease-out); }
/* the open app's countries: a row that exists only wide. It closes to no height on the rail (a grid row from 1fr to 0fr
   moves with the width, 200 ms), so the rail's icons sit close */
.side-chips { display: grid; grid-template-rows: 1fr; transition: opacity 160ms ease 40ms, grid-template-rows 200ms var(--ease-out); }
.side-chips > div { display: grid; gap: 2px; min-height: 0; overflow: hidden; padding: 2px 0 var(--s1) var(--s6); transition: padding 200ms var(--ease-out); }
/* a country: its own row under the app (the owner, 28 Nov 2026), the home flag, an arrow, the target's flag and name, the ring at the right; "Add country" is the last */
.side-chip { display: flex; align-items: center; gap: var(--s2); height: 32px; padding: 0 var(--s3) 0 var(--s2); border: 0; border-radius: var(--r-side); background: none; color: var(--muted); font: inherit; font-size: var(--a-body); line-height: var(--a-body-lh); font-weight: var(--w-medium); text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--d1) var(--ease-hover), color var(--d1) var(--ease-hover); }
.side-chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.side-chip > .side-of { flex: none; margin-left: auto; }
.side-of { color: var(--muted); font-size: var(--a-small); line-height: var(--a-small-lh); font-weight: var(--w-regular); font-variant-numeric: tabular-nums; }
.side-row > .flag + .side-of { margin-left: var(--s1); }
/* the agent's work waits for the person's review (#557): a small dot before the count */
.side-due { display: inline-block; width: 6px; height: 6px; margin-right: var(--s1); border-radius: 50%; background: var(--on); vertical-align: 1px; }
.side-chip > .side-to { flex: none; margin-inline: -4px; color: var(--quiet-mark); } /* home → target: a small arrow between the two flags */
.side-chip:hover { background: var(--fill-2); color: var(--ink); }
.side-chip[aria-current="page"] { background: var(--side-on); box-shadow: var(--sh-lift); color: var(--ink); }
.side-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
/* an app's row is a link (web/lib/sidebar.js): the link covers the row but its chevron, which folds the app */
.side-app-a { position: absolute; inset: 0 var(--s7) 0 0; z-index: 1; border-radius: var(--r-side); }
.side-app-a:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.side-app > summary > .ic:last-child { margin-left: var(--s1); color: var(--quiet-mark); transition: rotate var(--d1) var(--ease-hover); }
.side-row > .vprog + .ic:last-child:not(:first-child) { margin-left: var(--s1); } /* after a ring the chevron sits next to it */
.side-app:not([open]) > summary > .ic:last-child { rotate: -90deg; }
/* the foot: Feedback, Help, and who is signed in with their menu */
.side-foot { display: grid; flex: none; gap: 2px; padding-top: var(--s2); }
.side-me { height: 48px; gap: 10px; padding-left: var(--s1); }
/* the two menus: popovers in the top layer, so the panel's edge never cuts them, the width of the open list, under the
   workspace and over the person; they fade in and out (150 ms). Each item's icon is at its right, as datavendor's */
.side-menu { position: fixed; inset: 60px auto auto var(--s2); width: calc(var(--side-open) - 2 * var(--s2)); margin: 0; padding: var(--s1); border: 0; border-radius: var(--r-md); background: var(--card); color: var(--ink); box-shadow: var(--sh-menu); opacity: 0; translate: 0 -4px; transition: opacity var(--d1) ease, translate var(--d1) var(--ease-out), display var(--d1) allow-discrete, overlay var(--d1) allow-discrete; }
.side-menu.is-up { inset: auto auto 60px var(--s2); translate: 0 4px; }
.side-menu.is-bar { inset: calc(var(--appbar-h) - var(--s2)) var(--app-pad) auto auto; }
/* who the person's menu is for: their name over their email, above a hairline */
.side-menu-who { display: grid; margin: 0 0 var(--s1); padding: var(--s1) var(--s2) var(--s2); border-bottom: 1px solid var(--line); }
.side-menu-who > b { font-weight: var(--w-medium); }
.side-menu-who > :is(b, small) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-menu-who > small { color: var(--muted); font-size: var(--a-small); line-height: var(--a-small-lh); }
.side-menu-who > small:empty { display: none; }
.side-menu:popover-open { display: grid; gap: 2px; opacity: 1; translate: none; }
@starting-style { .side-menu:popover-open { opacity: 0; translate: 0 -4px; } .side-menu.is-up:popover-open { translate: 0 4px; } }
.side-menu > .side-rule, .side-wss > .side-rule { width: auto; margin: var(--s1) var(--s2); }
.side-wss { display: grid; gap: 2px; }
.side-menu-cap { margin: var(--s1) var(--s2); color: var(--muted); font-size: var(--a-tiny); line-height: var(--a-tiny-lh); font-weight: var(--w-medium); letter-spacing: 0.06em; text-transform: uppercase; }
.side-item { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 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); font-weight: var(--w-medium); text-align: left; text-decoration: none; cursor: pointer; transition: background-color var(--d1) var(--ease-hover); }
.side-item:is(:hover, :focus-visible) { background: var(--fill-2); outline: none; }
.side-item > .ic { order: 1; flex: none; margin-left: auto; color: var(--muted); }
.side-ws-item { height: 48px; }
.side-ws-item > .side-ws-av { width: 32px; height: 32px; font-size: var(--a-body); }
.side-ws-item > .ic { color: var(--ink); }
/* the app bar's panel button (#509, round 3): at the bar's left, beside the sidebar's edge; on a phone a white pill */
body[data-shell="app"] .side-toggle { display: grid; flex: none; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--r-side); background: none; color: var(--muted); cursor: pointer; transition: background-color var(--d1) var(--ease-hover), color var(--d1) var(--ease-hover); }
.side-toggle:hover { background: var(--fill-2); color: var(--ink); }
.side-toggle > .ic { stroke-width: 1.75; }
.side-toggle > .on-phone { display: none; } /* a phone's menu icon; from 900 px the panel icon (datavendor's) */
/* the rail's tooltip (lib/sidebar.js showTip, datavendor's): a white bubble right of the rail, a small arrow to the icon */
.side-tip { position: fixed; left: calc(var(--side-rail) + var(--s2)); z-index: 95; display: grid; padding: 6px 10px; border-radius: var(--r-sm); background: var(--card); color: var(--ink); box-shadow: var(--sh-2); font-size: var(--a-body); line-height: var(--a-body-lh); font-weight: var(--w-medium); white-space: nowrap; translate: 0 -50%; pointer-events: none; }
.side-tip > small { color: var(--muted); font-size: var(--a-small); line-height: var(--a-small-lh); font-weight: var(--w-regular); }
.side-tip::before { content: ""; position: absolute; left: -4px; top: 50%; width: 8px; height: 8px; background: inherit; box-shadow: -1px 1px 0 var(--line); translate: 0 -50%; rotate: 45deg; }
/* the words fade as the edge passes them, so the rail at rest shows only its icons; they come back as it opens */
:is(.side-row > :not(.ic, .side-pic, .av, .side-ws-av), .side-cap > :not(:first-child)) { transition: opacity 160ms ease 40ms; }
@media (min-width: 900px) {
  body[data-shell="app"] { --side-w: var(--side-now); transition: --side-now 200ms var(--ease-out); }
  body[data-shell="app"][data-side="folded"] { --side-now: var(--side-rail); }
  /* the rail's rows are taller and its groups further apart (the owner, 28 Nov 2026: "it shouldn't be this cramped"); they ease in the width's 200 ms */
  body[data-shell="app"][data-side="folded"] .side { --side-row: 44px; }
  body[data-shell="app"][data-side="folded"] .side-cap { height: var(--side-row); }
  body[data-shell="app"][data-side="folded"] .side-cap > .ic:first-child { color: var(--muted); }
  body[data-shell="app"][data-side="folded"] :is(.side-row > :not(.ic, .side-pic, .av, .side-ws-av), .side-cap > :not(:first-child)) { opacity: 0; transition: opacity 100ms ease; }
  /* the rail: each icon 1.5 times as large round its middle (x 28; 27 px), its lines as thin as before; a wide-only row closes */
  body[data-shell="app"][data-side="folded"] :is(.side-row, .side-cap) > :is(.ic:not(:last-child), .side-pic) { scale: 1.5; stroke-width: 1.2; }
  body[data-shell="app"][data-side="folded"] .side-chips { grid-template-rows: 0fr; opacity: 0; transition: opacity 100ms ease, grid-template-rows 200ms var(--ease-out); }
  body[data-shell="app"][data-side="folded"] .side-chips > div { padding-block: 0; }
  body[data-shell="app"][data-side="folded"] .side-nav .side-rule { opacity: 0; transition: opacity 100ms ease; }
  body[data-shell="app"][data-side="folded"] .side-row:has(> .side-n:not(:empty))::after { content: ""; position: absolute; top: 2px; left: 36px; width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--primary); box-shadow: 0 0 0 2px var(--band-foot); }
  /* the rail names each icon in its own tooltip: the page's dark hint stays away from it */
  body[data-side="folded"]:has(.side :is(:hover, :focus-visible)) > .hint { display: none; }
}
@media (max-width: 899px) {
  body[data-shell="app"] { --side-w: 0px; }
  /* the phone: the panel is a drawer from the bar's panel button, over a scrim */
  body[data-shell="app"] .side { z-index: 70; box-shadow: var(--sh-3); translate: -100% 0; visibility: hidden; transition: translate 300ms var(--ease-sheet), visibility 0s linear 300ms; }
  body[data-shell="app"][data-side-over="drawer"] .side { translate: none; visibility: visible; transition: translate 400ms var(--ease-sheet), visibility 0s; }
  .side-in { padding-bottom: calc(var(--s2) + env(safe-area-inset-bottom, 0px)); }
  body[data-shell="app"] .side-scrim { position: fixed; inset: 0; z-index: 69; display: block; background: var(--backdrop); opacity: 0; pointer-events: none; transition: opacity var(--d2) ease; }
  body[data-shell="app"][data-side-over="drawer"] .side-scrim { opacity: 1; pointer-events: auto; }
  body[data-shell="app"] .side-toggle { width: var(--pill-h); height: var(--pill-h); border-radius: var(--r-ctl); background: var(--card); color: var(--ink); }
  .side-toggle > .on-phone { display: block; stroke-width: 2; }
  .side-toggle > .on-desk { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-shell="app"], body[data-shell="app"] :is(.side, .side-scrim), body[data-shell="app"][data-side-over] :is(.side, .side-scrim), .side-menu { transition: none; }
  body[data-shell="app"] :is(.side-row > :not(.ic, .side-pic, .av, .side-ws-av), .side-cap > *, .side-row > .ic, .side-pic, .side-chips, .side-chips > div), .side-sec::details-content { transition: none; }
}

/* Quick search (lib/palette.js, #509): one field over the pages, projects, countries and apps, Linear's and Raycast's
   command menu; the focus stays in the field and the chosen row is washed (aria-selected) */
.pal { width: min(640px, calc(100% - 2 * var(--s4))); max-height: min(560px, 76dvh); margin: 12vh auto auto; padding: 0; border: 0; border-radius: var(--r-lg); background: var(--card); color: var(--ink); box-shadow: var(--sh-3); overflow: hidden; }
.pal[open] { display: flex; flex-direction: column; }
.pal::backdrop { background: var(--backdrop); }
.pal-field { display: flex; flex: none; align-items: center; gap: var(--s3); height: 56px; padding: 0 var(--s4); border-bottom: 1px solid var(--line); color: var(--quiet-mark); }
.pal-field > input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--ink); font: inherit; font-size: var(--a-body); outline: 0; }
.pal-list { flex: 1 1 auto; min-height: 0; padding: var(--s2); overflow: hidden auto; overscroll-behavior: contain; scroll-padding: var(--s2); }
.pal-list .result { min-height: 40px; padding: var(--s1) var(--s3); }
.pal-list .result:has(> img.result-ic, > .result-ic) { min-height: 56px; }
.pal-list .result[aria-selected] { background: var(--fill); }
.pal-pic { display: grid; flex: none; place-items: center; width: 24px; height: 24px; color: var(--muted); }
.pal-none { margin: 0; padding: var(--s6) var(--s4); color: var(--muted); text-align: center; }
@media (max-width: 599px) { .pal { max-height: calc(100dvh - 2 * var(--s4)); margin-top: var(--s4); } .pal-field > .kbd { display: none; } }

/* the footer, Mobbin's: 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.
   The landing is the owner's locked design (docs/review.md, "The landing page, locked on 23 Nov 2026"): 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; }
.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: var(--r-check); }
.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; }
/* 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); }

/* 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 */
#view:has(> .page-head) { margin-top: -93px; padding-top: calc(93px + var(--s5)); } /* the script-free first paint, already pulled up: .lp's margin then collapses into it and nothing moves */
.lp { position: relative; isolation: isolate; overflow: clip; margin-top: -93px; background: var(--paper); --mh-hero-h: min(960px, calc(100svh - 124px)); }
@media (max-width: 767px) { #view:has(> .page-head) { margin-top: -65px; padding-top: calc(65px + var(--s4)); } .lp { margin-top: -65px; --mh-hero-h: min(720px, calc(100svh - 80px)); } }
/* --- the first screen (mh-) --- */
/* 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: var(--r-icon); overflow: hidden; }
.mh-layer::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-icon); 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: var(--r-icon); 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-app { display: flex; align-items: center; gap: 10px; }
.mh-card-app > img, .mh-card-app > .skel { width: 36px; height: 36px; flex: none; border-radius: var(--r-icon); box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.1); }
.mh-card--b { right: -28px; top: var(--s4); min-width: 236px; } /* inside the frame's top edge: 30 px above it, it ran under the site bar's "Check my app" once the page scrolled (#509, 29 Nov 2026) */
.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--b { right: 16px; } }
@media (max-width: 767px) { .mh-card--b { display: none; } }
/* 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).
   Both screens' rules are in web/library.css, which each view loads with its data (no other route pays for them); a
   guest's Sign in is in the shell block above, because the bar paints before library.css is in. */

/* ===== compare and brief =====
   #/compare and #/brief/<id> (web/views/compare.js, web/views/brief.js). 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); }
@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); }
}
/* the brief's tab row sticks under the bar as every view's does (shell block, #view > .page-tabs) */
.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-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). */

/* ===== agent group =====
   #/agent, #/playground and #/discover (web/views/agent.js, playground.js, discover.js, agent-area.js); #/cost
   (web/views/cost.js) keeps .slider here. 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 > span:first-of-type > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* a long name or id ends in an ellipsis and never widens the pill */
.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 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(--band-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-bar .filter-rule { margin-block: calc(var(--s4) - var(--s3)); } /* the bar's own 12 px gap is part of the 16 px */
.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-sec:first-child { margin-top: calc(var(--app-section-gap) - var(--s3)); } /* the list's first heading: one section gap under the column heads (the bar's own padding is --s3) */
.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(--band-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; grid-template-columns: minmax(0, 1fr); gap: var(--s2); } /* one column that may shrink: the search field's own width made it 15 px wider than the rail, so the rows ran past the rail's padding to its edge */
.ag-rail .empty-say.is-panel { margin: 0 var(--s2); font-size: var(--a-small); line-height: var(--a-small-lh); }
.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-find:focus-within, .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: a roomy centred column under the centred band tabs (owner, 28 Nov 2026: "no need to cramp it all"). The
   head, one card of three steps, the large way into the Playground, then the tools. 1000 px: seven agent tiles fit in
   one row at 1280 px and up, and a line of the code box stays readable. Rhythm as Linear's agent integrations and
   Wrangle's centred integrations page (Mobbin, 28 Nov 2026) */
.ag-connect { max-width: 1000px; margin-inline: auto; padding-bottom: var(--s10); }
.ag-connect > .apphead { flex-direction: column; align-items: center; text-align: center; padding-block: var(--s6) var(--s5); }
.ag-connect > .apphead .apptitle { font-size: var(--t-h); line-height: var(--lh-h); letter-spacing: var(--tr-head); }
.ag-connect > .apphead .appsub { margin-top: var(--s3); font-size: var(--t-lede); line-height: var(--lh-lede); letter-spacing: var(--tr-lede); }
.ag-setup { display: grid; align-content: start; gap: var(--s7); padding: var(--s7); border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px var(--line); }
.ag-steps { display: grid; gap: var(--s6); }
.ag-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s5); }
.ag-step h2 { display: flex; align-items: center; min-height: 32px; margin: 0 0 var(--s4); font-size: var(--t-label); line-height: var(--lh-label); font-weight: var(--w-bold); letter-spacing: var(--tr-label); }
.ag-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-2); font-size: var(--a-body); font-weight: var(--w-bold); color: var(--muted); }
/* step 1: each agent a large tile, its mark over its name; the chosen one is lifted on white with the one accent ring.
   The grid follows its own width: 7 across, 4 (then 3) on a narrow screen, 2 short tiles on a phone */
.ag-clients { container: ag-clients / inline-size; }
.ag-tiles { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: var(--s2); } /* ten hosts (web/lib/agent-setup.js) in one row (Jyoutir, 29 Nov 2026: "fit it all into 1 thing") */
@container ag-clients (min-width: 800px) { .ag-tiles .ag-tile { min-height: 76px; padding: var(--s2) var(--s1); font-size: var(--a-small); line-height: var(--a-small-lh); } } /* small enough for ten in a row */
.ag-tile { position: relative; display: grid; justify-items: center; align-content: center; gap: var(--s2); min-height: 84px; padding: var(--s3) var(--s2); border: 0; border-radius: var(--r-md); background: var(--paper-2); color: var(--muted); font: inherit; font-size: var(--a-body); line-height: var(--a-body-lh); font-weight: var(--w-medium); text-align: center; text-wrap: balance; cursor: pointer; transition: background-color var(--d1) var(--ease), color var(--d1) var(--ease), box-shadow var(--d2) var(--ease), translate var(--d2) var(--ease); }
.ag-tile:hover { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.ag-tile[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 2px var(--selected), var(--sh-1); translate: 0 -2px; }
.ag-tile .hostmark, .ag-tile .hostmark svg { width: 26px; height: 26px; } /* the box holds its 26 px before the marks arrive */
@container ag-clients (max-width: 799px) { .ag-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@container ag-clients (max-width: 559px) { .ag-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@container ag-clients (max-width: 419px) {
  .ag-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
  .ag-tile { grid-auto-flow: column; justify-content: start; gap: var(--s2); min-height: 56px; padding: var(--s2) var(--s3); text-align: left; }
  .ag-tile .hostmark, .ag-tile .hostmark svg { width: 24px; height: 24px; }
}
/* 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; }
/* step 2: the code to copy, large; the copy pill and the one-click install beside it */
.ag-code { display: grid; gap: var(--s3); }
.ag-code-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s3); font-size: var(--a-body); line-height: var(--a-body-lh); color: var(--quiet); }
.ag-oauth { font-size: var(--a-small); color: var(--muted); }
.ag-keynote { margin: 0; font-size: var(--a-body); line-height: var(--a-body-lh); color: var(--muted); }
.ag-code .code { border-radius: var(--r-lg-in); }
.ag-code .code > pre { padding: var(--s5) var(--s6); font-size: var(--t-small); line-height: var(--lh-prose); white-space: pre-wrap; overflow-wrap: anywhere; }
.ag-copyrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin-top: var(--s5); }
.ag-copyrow > :is(.btn, .ghost) { min-height: calc(var(--pill-h) + var(--s2)); padding-inline: var(--s6); font-size: var(--t-ui); line-height: var(--lh-ui); }
.ag-copyrow p { flex: 1 1 240px; margin: 0; font-size: var(--t-small); line-height: var(--lh-small); color: var(--muted); text-wrap: pretty; }
/* step 3: the example questions, one large row each in a hairline box */
.ag-asks { margin: 0; padding: 0; list-style: none; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }
.ag-asks li { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: calc(var(--row) + var(--s4)); padding: var(--s3) var(--s3) var(--s3) var(--s5); font-size: var(--t-body); line-height: var(--lh-body); }
.ag-asks li + li { box-shadow: inset 0 1px 0 var(--line); }
/* A prompt recipe in one line (#509): its name, then the prompt cut with an ellipsis; the row opens its /recipes/ page. */
.ag-ask { display: flex; align-items: baseline; gap: var(--s3); min-width: 0; color: inherit; text-decoration: none; }
.ag-ask b { flex: none; font-weight: 500; }
.ag-ask span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--quiet); }
.ag-ask:hover b { text-decoration: underline; }
.ag-asks li > .skel-text { flex: none; }
.ag-ask-none { color: var(--quiet); }
.ag-recmore { display: inline-flex; align-items: center; gap: var(--s1); margin-top: var(--s3); font-size: var(--t-small); color: var(--link); text-decoration: none; }
.ag-recmore:hover { text-decoration: underline; }
.ag-foot { display: flex; flex-wrap: wrap; gap: var(--s2); padding-top: var(--s6); border-top: 1px solid var(--line); }
/* the Playground's way in: the quiet pill, full width and tall, so it reads as the second action, not the first */
.ag-play { display: flex; width: 100%; min-height: calc(var(--pill-h) + var(--s4)); margin-top: var(--s5); font-size: var(--t-ui); line-height: var(--lh-ui); }
/* what your agent can do: one row per tool, as the coming list below it draws its rows (web/features.css .coming-list).
   Both lists take the column's larger rows here: .ag-connect scopes the coming list's sizes to this page */
.ag-tools, .ag-connect .coming-sec { margin-top: var(--s8); }
.ag-connect :is(.ag-tools, .coming-sec) > .appsection { margin: 0 0 var(--s4); font-size: var(--t-label); line-height: var(--lh-label); letter-spacing: var(--tr-label); }
.ag-connect :is(.ag-tool-list, .coming-list) { border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ag-tool { display: flex; align-items: center; gap: var(--s4); min-height: var(--s9); padding: var(--s4) var(--s5); color: inherit; text-decoration: none; }
.ag-tool + .ag-tool { border-top: 1px solid var(--line); }
.ag-tool > span:first-child { flex: 1; min-width: 0; display: grid; gap: calc(var(--s1) / 2); }
.ag-tool b { display: flex; align-items: baseline; gap: var(--s2); font-size: var(--t-body); line-height: var(--lh-body); font-weight: var(--w-medium); }
.ag-tool code { font: var(--w-regular) var(--a-body) / var(--a-body-lh) var(--font-code); letter-spacing: 0; color: var(--quiet); }
.ag-tool small { font-size: var(--a-body); line-height: var(--a-body-lh); color: var(--quiet); }
.ag-tool-go { flex: none; font-size: var(--a-body); line-height: var(--a-body-lh); font-weight: var(--w-medium); color: var(--link); }
.ag-tool:hover .ag-tool-go { text-decoration: underline; text-underline-offset: 2px; }
.ag-connect .coming-list > .coming-item { min-height: var(--s9); padding: var(--s4) var(--s5); }
.ag-connect .coming-item .coming-name { font-size: var(--t-body); line-height: var(--lh-body); }
.ag-connect .coming-item :is(.coming-say, .coming-state, .coming-try) { font-size: var(--a-body); line-height: var(--a-body-lh); }
/* a phone: the head and the card step down, the step number column narrows */
@media (max-width: 899px) {
  .ag-connect > .apphead { padding-block: var(--s6) var(--s5); }
  .ag-connect > .apphead .apptitle { font-size: var(--a-num); line-height: var(--a-num-lh); }
  .ag-connect > .apphead .appsub { font-size: var(--t-body); line-height: var(--lh-body); }
  .ag-setup { gap: var(--s6); padding: var(--s4); border-radius: var(--r-lg); }
  .ag-steps { gap: var(--s7); }
  /* the number sits beside its heading, and the step's body takes the card's full width under both */
  .ag-step { grid-template-columns: 28px minmax(0, 1fr); gap: var(--s4) var(--s3); }
  .ag-step > div { display: contents; }
  .ag-step > div > :not(h2) { grid-column: 1 / -1; }
  .ag-n { width: 28px; height: 28px; }
  .ag-step h2 { min-height: 28px; margin: 0; }
  .ag-code .code > pre { padding: var(--s4); font-size: var(--t-code); line-height: var(--lh-small); }
  .ag-asks li { padding-left: var(--s4); }
  .ag-tool, .ag-connect .coming-list > .coming-item { padding: var(--s4); }
}

@media (max-width: 1099px) {
  .ag-pg-grid { 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; }
  /* the endpoint menu is the title: the title's type, no field; the h1 under it stays for screen readers only */
  .ag-pick-phone { display: block; margin-top: var(--app-head-top); }
  .ag-pg > .apphead, .ag-pg .skel-page { padding-top: 0; }
  .ag-pg > .apphead .apptitle, .ag-pg .skel-page > .skel-text-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ag-skel-phone { display: block !important; }
  .ag-skel-ref { margin-top: var(--s3); }
  .ag-skel-pick { width: 60%; height: var(--a-title-lh); margin-top: var(--app-head-top); border-radius: var(--r-xs); }
  .ag-pick-phone select { field-sizing: content; max-width: 100%; height: var(--a-title-lh); padding: 0; border: 0; background: none; color: var(--ink); font: var(--w-bold) var(--a-title) / var(--a-title-lh) var(--font); letter-spacing: var(--tr-label); cursor: pointer; }
  .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-heads { display: none; }
}

/* ===== projects =====
   The project proposals and dialogs of #/projects/<id>; the rest of the workspace is in web/projects.css. */
/* 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); }

/* ---------- chosen and hover: the feel of snuug. One block; other files use its classes and tokens.
   - The chosen surface (--chosen-surface, --chosen-depth): threefold blue with depth, as snuug's gradient cards
     (snuug apps/webapp/styles/gradient.css: a light radial high on one side, a deeper tone low on the other, over a
     linear field) and a top highlight and soft coloured shadow under it.
   - The glint (.is-glint, glint() in lib/fragments.js): one bright lap round the edge when something becomes chosen,
     and a small pop. snuug's RimGlint comet (apps/webapp/styles/screens/goals.css: a conic gradient under a 1.5 px ring
     mask, 0.85 s on cubic-bezier(.45, 0, .55, 1), fading over 0.95 s; the rank's pop on cubic-bezier(.3, 1.6, .5, 1)).
     Here the conic gradient's angle turns (a registered property) on the element's own ::after, so no extra element.
     --glint is its colour: white on blue, threefold blue on a white pill.
   - The hover wash (--hover-wash): a soft threefold blue gradient mixed into the grey, for tiles, chips and rows.
   - Reduced motion: no glint, no pop. */
@property --glint-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
:root {
  --chosen-surface: radial-gradient(120% 150% at 15% -20%, color-mix(in oklch, var(--primary) 55%, white) 0%, transparent 55%),
    radial-gradient(100% 120% at 100% 130%, color-mix(in oklch, var(--primary) 72%, black) 0%, transparent 62%),
    linear-gradient(160deg, color-mix(in oklch, var(--primary) 88%, white), var(--primary) 60%);
  --chosen-depth: inset 0 1px 0 rgb(255 255 255 / 0.26), inset 0 -1px 0 rgb(0 0 40 / 0.16), 0 6px 16px -8px color-mix(in oklch, var(--primary) 75%, transparent);
  --hover-wash: linear-gradient(120deg, color-mix(in oklch, var(--primary) 13%, var(--paper-2)), color-mix(in oklch, var(--primary) 5%, var(--paper-2)) 55%, var(--paper-2));
  --hover-wash-row: linear-gradient(90deg, color-mix(in oklch, var(--primary) 7%, var(--paper)), color-mix(in oklch, var(--primary) 2%, var(--paper)) 60%, var(--paper));
  --glint: #ffffff;
}
.is-glint::after { content: ""; position: absolute; inset: 0; z-index: 2; padding: 1.5px; border-radius: inherit; pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--glint-a), transparent 0deg 160deg, color-mix(in oklch, var(--glint) 45%, transparent) 280deg, var(--glint) 329deg, transparent 338deg 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: glint-lap 850ms cubic-bezier(0.45, 0, 0.55, 1), glint-fade 950ms ease-out; }
.is-glint { animation: glint-pop 340ms cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes glint-lap { from { --glint-a: 0deg; } to { --glint-a: 360deg; } }
@keyframes glint-fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes glint-pop { 40% { scale: 1.04; } }
@media (hover: hover) and (pointer: fine) {
  :is(.one-tile[aria-selected="false"], .chip:not([aria-pressed="true"], .static)):hover { background: var(--hover-wash); color: var(--ink); }
  .seg > button:not([aria-selected="true"], [aria-pressed="true"]):hover { background: var(--hover-wash); }
  .lib-table tbody tr:hover { background: var(--hover-wash-row); }
}
@media (prefers-reduced-motion: reduce) { .is-glint, .is-glint::after { animation: none; } .is-glint::after { content: none; } }

/* ---------- the one hover look (#509, the owner on 27 Nov 2026) ----------
   Every hover in the signed-in app is this one surface, class .tip: the ink ground, the paper words, the made-for
   card's type and spacing. It is on the [data-hint] tooltip (.hint, lib/fragments.js wireHints) and the charts' tip
   (.charttip, lib/charts.js tooltips); the made-for checklist (.mfor-card, lib/made-for.js) is named here until it
   carries the class too. Inside it: --tip-sub, --tip-line, --tip-mark */
.tip, .mfor-card { padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--tip); color: var(--on-tip); font-size: var(--a-body); line-height: var(--a-body-lh); font-weight: var(--w-medium); box-shadow: var(--sh-2); pointer-events: none; }
/* the hint: a small arrow, centred over what it names; a second line is quieter */
.hint { position: fixed; z-index: 95; display: grid; gap: var(--s1); max-width: min(360px, calc(100vw - 16px)); text-align: center; }
.hint[hidden] { display: none; }
.hint > small { font-size: inherit; font-weight: var(--w-regular); color: var(--tip-sub); }
.hint > small[hidden] { display: none; }
.hint::after { content: ""; position: absolute; left: calc(var(--ax, 50%) - 5px); top: 100%; border: 5px solid transparent; border-top-color: var(--tip); }
.hint.is-below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--tip); }
