/* Greyfeathers Design System v2 — import this one file */
/* ── tokens.css ── */
/* ============================================================================
   Greyfeathers Design System v2.0 — tokens
   ----------------------------------------------------------------------------
   Two layers:
   1. BRAND CONSTANTS (this file) — identical in every Greyfeathers app: the Ink
      neutrals, status colours, type, spacing, radius, elevation, glass, motion,
      focus geometry and logo. This is what makes any GF app recognisable.
   2. APP HUE (themes.css, generated) — the one thing an app may change: its
      action colour. Set <html data-gf-theme="iris|orchid|lagoon|pine|graphite">;
      Sapphire is the default. Dark mode = <html class="dark">.
   Components only ever read semantic tokens (--gf-primary, --gf-surface …),
   never ramp steps and never a raw hex.
   ============================================================================ */

:root {
  color-scheme: light;

  /* ── Ink: the bespoke cool neutral ramp (brand constant) ── */
  --gf-ink-0: #FFFFFF;   --gf-ink-50: #F5F7FA;  --gf-ink-100: #EEF1F5; --gf-ink-200: #E3E7EE;
  --gf-ink-300: #C9D0DB; --gf-ink-400: #8B95A5; --gf-ink-500: #5B6676; --gf-ink-600: #3F4A5A;
  --gf-ink-700: #2B3444; --gf-ink-800: #1A1F2A; --gf-ink-900: #12161E; --gf-ink-950: #0B0E14;
  --gf-ink-1000: #0B1220;

  /* ── Blue: fixed ramp for the INFO status (does not follow the app hue) ── */
  --gf-blue-50: #EEF3FF; --gf-blue-100: #DCE6FF; --gf-blue-200: #B9CDFF; --gf-blue-300: #8FAEFF;
  --gf-blue-400: #5C86FA; --gf-blue-500: #3B6CF0; --gf-blue-600: #2563EB; --gf-blue-700: #1D4FCC;
  --gf-blue-800: #1A41A6; --gf-blue-900: #173782; --gf-blue-950: #0F214F;

  /* ── Surfaces ── */
  --gf-canvas: var(--gf-ink-50);
  --gf-surface: var(--gf-ink-0);
  --gf-surface-raised: var(--gf-ink-0);
  --gf-surface-sunken: var(--gf-ink-100);
  --gf-hover: #F1F3F7;
  --gf-pressed: #E8ECF2;
  --gf-border: var(--gf-ink-200);
  --gf-border-strong: var(--gf-ink-300);
  /* The boundary that identifies a form control (input, select, checkbox box, switch track): ≥ 3:1 on surface, canvas and sunken (WCAG 1.4.11) */
  --gf-border-control: #7D8797;
  --gf-hairline: #EDF0F4;
  --gf-line: rgba(11, 18, 32, 0.08);
  --gf-lit-edge: inset 0 0 0 0 transparent;
  --gf-glass: rgba(255, 255, 255, 0.72);
  --gf-glass-strong: rgba(255, 255, 255, 0.86);
  --gf-scrim: rgba(11, 18, 32, 0.42);

  /* ── Text ── */
  --gf-text-strong: var(--gf-ink-1000);
  --gf-text: var(--gf-ink-700);
  --gf-text-secondary: #4E596A;
  --gf-text-muted: #636E80;          /* ≥ 4.5:1 on surface & canvas — captions, meta, placeholders */
  --gf-text-disabled: var(--gf-ink-300);
  --gf-text-inverted: #FFFFFF;
  --gf-selection: color-mix(in srgb, var(--gf-primary) 18%, transparent);

  /* ── Status (brand constant: the same in every app) · solid · text · tint · subtle · border ── */
  --gf-success: #15A35A; --gf-success-text: #0F7A43; --gf-success-tint: #DDF7E8; --gf-success-subtle: #F0FBF5; --gf-success-border: #B6EBCD;
  --gf-rating: #C27803; /* star fill: the warning gold deepened to 3.5 : 1 on white — a star is a graphic that carries the value (WCAG 1.4.11) */
  --gf-warning: #E5960B; --gf-warning-text: #8F5400; --gf-warning-tint: #FEF3D6; --gf-warning-subtle: #FFFAEB; --gf-warning-border: #F8DFA0;
  --gf-danger: #DC3B3B;  --gf-danger-text: #B02A2A;  --gf-danger-tint: #FDE5E5;  --gf-danger-subtle: #FEF3F3;  --gf-danger-border: #F7C2C2;
  --gf-info: var(--gf-blue-600); --gf-info-text: var(--gf-blue-700); --gf-info-tint: var(--gf-blue-100); --gf-info-subtle: var(--gf-blue-50); --gf-info-border: var(--gf-blue-200);
  --gf-neutral: #6B7686; --gf-neutral-text: #4B5563; --gf-neutral-tint: var(--gf-ink-100); --gf-neutral-subtle: var(--gf-ink-50); --gf-neutral-border: var(--gf-ink-200);
  --gf-accent: #7C4DFF;  --gf-accent-text: #6236D6;  --gf-accent-tint: #EDE8FF;  --gf-accent-subtle: #F5F2FF;  --gf-accent-border: #D4C7FF;
  --gf-on-status: #FFFFFF;
  /* Solid danger fill under WHITE text (CounterBadge, solid danger Badge): 5.5:1 with #FFF.
     --gf-danger is too light for 12 px white text (4.4:1 here, 2.8:1 in dark). */
  --gf-danger-solid: #C53030;

  /* ── Focus (geometry is brand; colour follows the app hue) ── */
  --gf-focus-ring: color-mix(in srgb, var(--gf-focus-border) 24%, transparent);
  /* Focus: a two-tone ring — a 2 px surface gap, then 2 px of --gf-focus-border — reaches 3:1 on any surface (WCAG 1.4.11).
     Fields keep the soft halo: their border turns --gf-focus-border, which carries the contrast. */
  --gf-focus: 0 0 0 2px var(--gf-surface), 0 0 0 4px var(--gf-focus-border);
  --gf-focus-halo: 0 0 0 3px var(--gf-focus-ring);

  /* ── Logo ── */
  --gf-logo: #101010;
  --gf-logo-accent: #034F46;

  /* ── Charts (categorical, in order; series 1 follows the app hue) ── */
  --gf-chart-1: var(--gf-primary); --gf-chart-2: #7C4DFF; --gf-chart-3: #13924F; --gf-chart-4: #B7791F;
  --gf-chart-5: #DC3B3B; --gf-chart-6: #0B8BD0; --gf-chart-7: #EC4899; --gf-chart-8: #6B7686;
  --gf-chart-grid: #EDF0F4; --gf-chart-axis: #636E80;

  /* ── Type ── */
  --gf-font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gf-font-serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --gf-font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  /* The editorial serif: display headlines, ledes and pull quotes in marketing and consumer surfaces — never UI.
     Newsreader has an optical-size axis (6–72), so one family is sturdy in a 19 px lede and fine-cut in an 88 px headline. */
  --gf-font-editorial: 'Newsreader', 'Noto Serif', Georgia, 'Times New Roman', serif;
  /* role: size / line-height / weight / tracking. Tracking is optical: it tightens as the size grows (−0.035em at 88 px …
     0 at 14 px) and opens for small uppercase (+0.08em). A role keeps its tracking on phones, where it is read closer. */
  /* The display family: the sans everywhere, unless an expression hands display — and only display — to the editorial serif.
     The tracking factor scales every display tracking token: 1 for the sans, 0.5 for the serif (its display cut is already tight). */
  --gf-display-font: var(--gf-font-sans); --gf-display-track: 1;
  --gf-display-size: 44px; --gf-display-lh: 50px; --gf-display-w: 800; --gf-display-tr: -0.025em;
  --gf-h1-size: 32px; --gf-h1-lh: 38px; --gf-h1-w: 700; --gf-h1-tr: -0.02em;
  --gf-h2-size: 24px; --gf-h2-lh: 30px; --gf-h2-w: 700; --gf-h2-tr: -0.015em;
  --gf-h3-size: 20px; --gf-h3-lh: 28px; --gf-h3-w: 600; --gf-h3-tr: -0.01em;
  --gf-title-size: 16px; --gf-title-lh: 22px; --gf-title-w: 600; --gf-title-tr: -0.005em;
  --gf-body-lg-size: 16px; --gf-body-lg-lh: 26px;
  --gf-body-size: 14px; --gf-body-lh: 21px;
  --gf-body-sm-size: 13px; --gf-body-sm-lh: 19px;
  --gf-label-size: 13px; --gf-label-lh: 18px; --gf-label-w: 500;
  --gf-caption-size: 12px; --gf-caption-lh: 16px;
  --gf-overline-size: 11px; --gf-overline-lh: 16px; --gf-overline-tr: 0.08em;
  --gf-kpi-size: 30px; --gf-kpi-lh: 34px;
  /* Editorial display tier — marketing and consumer heroes only, never inside a work screen.
     Leading tightens with size too: display +6 px, xl and 2xl +4 px. Tablets and phones step down (blocks below). */
  --gf-display-2xl-size: 88px; --gf-display-2xl-lh: 92px; --gf-display-2xl-w: 700; --gf-display-2xl-tr: -0.035em;
  --gf-display-xl-size: 64px; --gf-display-xl-lh: 68px; --gf-display-xl-w: 700; --gf-display-xl-tr: -0.03em;
  /* Editorial text in the serif: the lede under a headline, and pull quotes (md and lg) */
  --gf-display-lede-size: 22px; --gf-display-lede-lh: 32px; --gf-display-lede-w: 400; --gf-display-lede-tr: -0.005em;
  --gf-display-quote-size: 28px; --gf-display-quote-lh: 36px; --gf-display-quote-w: 400; --gf-display-quote-tr: -0.01em;
  --gf-display-quote-lg-size: 36px; --gf-display-quote-lg-lh: 44px; --gf-display-quote-lg-w: 400; --gf-display-quote-lg-tr: -0.0125em;
  /* Card and empty-state titles, as a token so an expression can scale them (SectionTitle uses the --gf-title-* style) */
  --gf-card-title-size: 15px; --gf-card-title-lh: 20px;
  --gf-input-size: 14px;

  /* ── Spacing: 4px grid ── */
  --gf-space-0-5: 2px; --gf-space-1: 4px; --gf-space-1-5: 6px; --gf-space-2: 8px; --gf-space-2-5: 10px;
  --gf-space-3: 12px; --gf-space-4: 16px; --gf-space-5: 20px; --gf-space-6: 24px; --gf-space-8: 32px;
  --gf-space-10: 40px; --gf-space-12: 48px; --gf-space-16: 64px; --gf-space-20: 80px; --gf-space-24: 96px;

  /* ── Radius: one per role ── */
  --gf-radius-xs: 6px; --gf-radius-sm: 8px; --gf-radius-control: 10px; --gf-radius-tile: 12px;
  --gf-radius-card: 14px; --gf-radius-modal: 18px; --gf-radius-lg: 22px; --gf-radius-sheet: 28px; --gf-radius-pill: 999px;

  /* ── Elevation: navy-tinted, never black ── */
  --gf-shadow-0: none;
  --gf-shadow-card: 0 1px 2px rgba(11, 18, 32, 0.04), 0 1px 3px rgba(11, 18, 32, 0.06);
  --gf-shadow-hover: 0 8px 22px rgba(11, 18, 32, 0.09), 0 2px 6px rgba(11, 18, 32, 0.04);
  --gf-shadow-dropdown: 0 10px 28px rgba(11, 18, 32, 0.11), 0 2px 8px rgba(11, 18, 32, 0.05);
  --gf-shadow-modal: 0 24px 60px rgba(11, 18, 32, 0.16), 0 6px 16px rgba(11, 18, 32, 0.06);
  --gf-shadow-glow: 0 6px 18px color-mix(in srgb, var(--gf-primary) 28%, transparent);
  --gf-shadow-glow-lg: 0 10px 26px color-mix(in srgb, var(--gf-primary) 36%, transparent);
  --gf-blur-glass: blur(20px) saturate(170%);

  /* ── Motion: durations, curves (springs live in springs.css) ── */
  --gf-dur-instant: 100ms;   /* press feedback */
  --gf-dur-fast: 150ms;      /* hover, exits, small fades */
  --gf-dur-base: 200ms;      /* most state changes */
  --gf-dur-moderate: 280ms;  /* overlays in, drawers */
  --gf-dur-slow: 400ms;      /* page / hero transitions */
  --gf-ease: cubic-bezier(0.2, 0, 0, 1);            /* standard: state changes */
  --gf-ease-out: cubic-bezier(0.16, 1, 0.3, 1);     /* entrances: fast start, soft landing */
  --gf-ease-in: cubic-bezier(0.4, 0, 1, 1);         /* exits: leave quickly */
  --gf-ease-emphasized: cubic-bezier(0.05, 0.7, 0.1, 1);

  /* ── Z-index ── */
  --gf-z-sticky: 20; --gf-z-nav: 30; --gf-z-dropdown: 40; --gf-z-drawer: 50; --gf-z-modal: 60;
  --gf-z-palette: 65; --gf-z-toast: 70; --gf-z-tooltip: 80;

  /* ── Controls (density-aware) ── */
  --gf-control-sm: 32px; --gf-control-md: 40px; --gf-control-lg: 48px;
  --gf-row-h: 52px; --gf-cell-py: 12px; --gf-cell-px: 16px;
  --gf-hit: 44px; /* minimum touch target */

  /* ── Layout ── */
  --gf-sidebar: 264px; --gf-rail: 80px; --gf-topbar: 56px; --gf-bottom-nav: 64px;
  --gf-content-max: 1280px; --gf-reading-max: 720px;
  /* The reading measure, calibrated in em rather than ch: a ch is the width of the zero, which in Plus Jakarta Sans is
     0.73em, so 68ch ran 103 characters a line. 32em sets 66 characters of the sans and 65 of Noto Serif at any size;
     the narrow measure (≈ 50 of the sans, 56 of the editorial serif) is for ledes, captions and pull quotes. */
  --gf-measure: 32em; --gf-measure-narrow: 24em;
  --gf-gutter: 24px; --gf-section-gap: 24px; --gf-card-pad: 20px;
  --gf-safe-top: env(safe-area-inset-top, 0px); --gf-safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Density ── */
[data-gf-density="compact"] { --gf-control-sm: 28px; --gf-control-md: 34px; --gf-control-lg: 40px; --gf-row-h: 40px; --gf-cell-py: 8px; --gf-cell-px: 12px; --gf-card-pad: 16px; }
[data-gf-density="comfortable"] { --gf-control-sm: 36px; --gf-control-md: 44px; --gf-control-lg: 52px; --gf-row-h: 60px; --gf-cell-py: 16px; --gf-cell-px: 20px; --gf-card-pad: 24px; }

/* ── Window classes: tokens that change with the screen (mobile-first overrides) ── */
/* compact < 600 — phones */
@media (max-width: 599.98px) {
  :root {
    --gf-gutter: 16px; --gf-section-gap: 20px; --gf-card-pad: 16px;
    --gf-display-size: 34px; --gf-display-lh: 40px;
    --gf-h1-size: 28px; --gf-h1-lh: 34px;
    --gf-h2-size: 22px; --gf-h2-lh: 28px;
    --gf-h3-size: 19px; --gf-h3-lh: 26px;
    --gf-body-size: 15px; --gf-body-lh: 22px;   /* small screens read further away relative to x-height */
    --gf-body-sm-size: 14px; --gf-body-sm-lh: 20px;
    --gf-label-size: 14px; --gf-label-lh: 20px;
    --gf-input-size: 16px;                        /* iOS Safari zooms inputs under 16px */
    --gf-kpi-size: 26px; --gf-kpi-lh: 30px;
    --gf-display-2xl-size: 48px; --gf-display-2xl-lh: 52px;
    --gf-display-xl-size: 40px; --gf-display-xl-lh: 44px;
    --gf-display-lede-size: 19px; --gf-display-lede-lh: 28px;
    --gf-display-quote-size: 22px; --gf-display-quote-lh: 30px;
    --gf-display-quote-lg-size: 26px; --gf-display-quote-lg-lh: 34px;
    --gf-control-md: 44px; --gf-control-sm: 36px; --gf-control-lg: 50px;  /* touch-first */
    --gf-row-h: 56px;
  }
}
/* medium 600–1023 — tablets: only the editorial display tier steps down (an 88 px word can be wider than a 600 px column) */
@media (min-width: 600px) and (max-width: 1023.98px) {
  :root {
    --gf-display-2xl-size: 64px; --gf-display-2xl-lh: 68px;
    --gf-display-xl-size: 52px; --gf-display-xl-lh: 56px;
  }
}
/* large ≥ 1440 — wide desktops */
@media (min-width: 1440px) { :root { --gf-gutter: 32px; --gf-content-max: 1360px; } }

/* ============================ DARK ============================ */
.dark {
  color-scheme: dark;
  --gf-canvas: var(--gf-ink-950);
  --gf-surface: var(--gf-ink-900);
  --gf-surface-raised: var(--gf-ink-800);
  --gf-surface-sunken: #0E1117;
  --gf-hover: #1C222D;
  --gf-pressed: #232A36;
  --gf-border: #232A36;
  --gf-border-strong: #313A4A;
  --gf-border-control: #667186;   /* 3.7:1 on surface, 3.9:1 on canvas, 3.4:1 on raised */
  --gf-hairline: #1C222C;
  --gf-line: rgba(255, 255, 255, 0.07);
  --gf-lit-edge: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  --gf-glass: rgba(18, 22, 30, 0.72);
  --gf-glass-strong: rgba(18, 22, 30, 0.88);
  --gf-scrim: rgba(0, 0, 0, 0.6);

  --gf-text-strong: #F2F4F8;
  --gf-text: #C7CDD8;
  --gf-text-secondary: #929CAC;
  --gf-text-muted: #838D9E;
  --gf-text-disabled: #3A4352;
  --gf-text-inverted: var(--gf-ink-1000);

  --gf-success: #2ED27A; --gf-success-text: #5EE39A; --gf-success-tint: rgba(46, 210, 122, 0.14); --gf-success-subtle: rgba(46, 210, 122, 0.08); --gf-success-border: rgba(46, 210, 122, 0.3);
  --gf-rating: #F5B428;
  --gf-warning: #F5B428; --gf-warning-text: #FBCB5C; --gf-warning-tint: rgba(245, 180, 40, 0.14); --gf-warning-subtle: rgba(245, 180, 40, 0.08); --gf-warning-border: rgba(245, 180, 40, 0.3);
  --gf-danger: #FF6B6B;  --gf-danger-text: #FF9B9B;  --gf-danger-tint: rgba(255, 107, 107, 0.14);  --gf-danger-subtle: rgba(255, 107, 107, 0.08);  --gf-danger-border: rgba(255, 107, 107, 0.3);
  --gf-info: #5C86FA;    --gf-info-text: #A8C0FF;    --gf-info-tint: rgba(92, 134, 250, 0.16);    --gf-info-subtle: rgba(92, 134, 250, 0.08);    --gf-info-border: rgba(92, 134, 250, 0.3);
  --gf-neutral: #8E98A8; --gf-neutral-text: #C7CDD8; --gf-neutral-tint: var(--gf-ink-800); --gf-neutral-subtle: var(--gf-ink-900); --gf-neutral-border: #2A3240;
  --gf-accent: #A78BFA;  --gf-accent-text: #C4B5FD;  --gf-accent-tint: rgba(167, 139, 250, 0.14);  --gf-accent-subtle: rgba(167, 139, 250, 0.08);  --gf-accent-border: rgba(167, 139, 250, 0.3);
  --gf-on-status: var(--gf-ink-1000);
  --gf-danger-solid: #D33636;  /* white text 4.8:1; 3.8:1 against the dark surface */

  --gf-focus-ring: color-mix(in srgb, var(--gf-focus-border) 40%, transparent);
  --gf-logo: #FFFFFF;
  --gf-logo-accent: #8FBDB4;

  --gf-chart-2: #A78BFA; --gf-chart-3: #2ED27A; --gf-chart-4: #F5B428;
  --gf-chart-5: #FF6B6B; --gf-chart-6: #38BDF8; --gf-chart-7: #F472B6; --gf-chart-8: #8E98A8;
  --gf-chart-grid: #1C222C; --gf-chart-axis: #838D9E;

  --gf-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.45);
  --gf-shadow-hover: 0 8px 22px rgba(0, 0, 0, 0.5);
  --gf-shadow-dropdown: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --gf-shadow-modal: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --gf-shadow-glow: 0 6px 20px color-mix(in srgb, var(--gf-primary) 40%, transparent);
  --gf-shadow-glow-lg: 0 10px 30px color-mix(in srgb, var(--gf-primary) 50%, transparent);
}

/* ── themes.css ── */
/* GENERATED by scripts/build-themes.mjs — do not edit by hand. Run: npm run themes
   One app hue per product. Lightness per step is fixed for every theme, so contrast
   structure (and the brand) stays identical while the hue changes. */

/* Sapphire — hue 262° · Default · LMS, admin tools */
:root, [data-gf-theme="sapphire"] {
  --gf-hue-50: #EEF3FF;
  --gf-hue-100: #DCE6FF;
  --gf-hue-200: #B9CDFF;
  --gf-hue-300: #8FAEFF;
  --gf-hue-400: #5C86FA;
  --gf-hue-500: #3B6CF0;
  --gf-hue-600: #2563EB;
  --gf-hue-700: #1D4FCC;
  --gf-hue-800: #1A41A6;
  --gf-hue-900: #173782;
  --gf-hue-950: #0F214F;
  --gf-primary: #2563EB;
  --gf-primary-hover: #1D4FCC;
  --gf-primary-active: #1A41A6;
  --gf-primary-text: #1D4FCC;
  --gf-on-primary: #FFFFFF;
  --gf-focus-border: #2563EB;
  --gf-link: #1D4FCC;
  --gf-primary-tint: #DCE6FF;
  --gf-primary-subtle: #EEF3FF;
}
.dark, .dark[data-gf-theme="sapphire"], .dark [data-gf-theme="sapphire"] {
  --gf-hue-50: #EEF3FF;
  --gf-hue-100: #DCE6FF;
  --gf-hue-200: #B9CDFF;
  --gf-hue-300: #8FAEFF;
  --gf-hue-400: #5C86FA;
  --gf-hue-500: #3B6CF0;
  --gf-hue-600: #2563EB;
  --gf-hue-700: #1D4FCC;
  --gf-hue-800: #1A41A6;
  --gf-hue-900: #173782;
  --gf-hue-950: #0F214F;
  --gf-primary: #2563EB;
  --gf-primary-hover: #2F6EEB;
  --gf-primary-active: #1D4FCC;
  --gf-primary-text: #6298FF;
  --gf-on-primary: #FFFFFF;
  --gf-focus-border: #5C86FA;
  --gf-link: #6298FF;
  --gf-primary-tint: color-mix(in srgb, #5C86FA 18%, transparent);
  --gf-primary-subtle: color-mix(in srgb, #5C86FA 10%, transparent);
}

/* Iris — hue 288° · Creative, learning products */
[data-gf-theme="iris"] {
  --gf-hue-50: #F6F6FF;
  --gf-hue-100: #EBEBFE;
  --gf-hue-200: #D6D4FE;
  --gf-hue-300: #BAB3FE;
  --gf-hue-400: #9887FC;
  --gf-hue-500: #8168ED;
  --gf-hue-600: #6D4ED8;
  --gf-hue-700: #5B3EB9;
  --gf-hue-800: #4B329A;
  --gf-hue-900: #3A287A;
  --gf-hue-950: #241750;
  --gf-primary: #6D4ED8;
  --gf-primary-hover: #5B3EB9;
  --gf-primary-active: #4B329A;
  --gf-primary-text: #6D4ED8;
  --gf-on-primary: #FFFFFF;
  --gf-focus-border: #6D4ED8;
  --gf-link: #6D4ED8;
  --gf-primary-tint: #EBEBFE;
  --gf-primary-subtle: #F6F6FF;
}
.dark[data-gf-theme="iris"], .dark [data-gf-theme="iris"] {
  --gf-hue-50: #F6F6FF;
  --gf-hue-100: #EBEBFE;
  --gf-hue-200: #D6D4FE;
  --gf-hue-300: #BAB3FE;
  --gf-hue-400: #9887FC;
  --gf-hue-500: #8168ED;
  --gf-hue-600: #6D4ED8;
  --gf-hue-700: #5B3EB9;
  --gf-hue-800: #4B329A;
  --gf-hue-900: #3A287A;
  --gf-hue-950: #241750;
  --gf-primary: #6D4ED8;
  --gf-primary-hover: #775AE4;
  --gf-primary-active: #5B3EB9;
  --gf-primary-text: #9886FE;
  --gf-on-primary: #FFFFFF;
  --gf-focus-border: #9887FC;
  --gf-link: #9886FE;
  --gf-primary-tint: color-mix(in srgb, #9887FC 18%, transparent);
  --gf-primary-subtle: color-mix(in srgb, #9887FC 10%, transparent);
}

/* Orchid — hue 335° · Community, people products */
[data-gf-theme="orchid"] {
  --gf-hue-50: #FFF3FB;
  --gf-hue-100: #FEE4F7;
  --gf-hue-200: #F8C8EC;
  --gf-hue-300: #EBA1DB;
  --gf-hue-400: #D671C2;
  --gf-hue-500: #C250AE;
  --gf-hue-600: #AB3398;
  --gf-hue-700: #912581;
  --gf-hue-800: #781D6A;
  --gf-hue-900: #5F1854;
  --gf-hue-950: #3E0B36;
  --gf-primary: #AB3398;
  --gf-primary-hover: #912581;
  --gf-primary-active: #781D6A;
  --gf-primary-text: #AB3398;
  --gf-on-primary: #FFFFFF;
  --gf-focus-border: #AB3398;
  --gf-link: #AB3398;
  --gf-primary-tint: #FEE4F7;
  --gf-primary-subtle: #FFF3FB;
}
.dark[data-gf-theme="orchid"], .dark [data-gf-theme="orchid"] {
  --gf-hue-50: #FFF3FB;
  --gf-hue-100: #FEE4F7;
  --gf-hue-200: #F8C8EC;
  --gf-hue-300: #EBA1DB;
  --gf-hue-400: #D671C2;
  --gf-hue-500: #C250AE;
  --gf-hue-600: #AB3398;
  --gf-hue-700: #912581;
  --gf-hue-800: #781D6A;
  --gf-hue-900: #5F1854;
  --gf-hue-950: #3E0B36;
  --gf-primary: #AB3398;
  --gf-primary-hover: #B63FA3;
  --gf-primary-active: #912581;
  --gf-primary-text: #D96DC5;
  --gf-on-primary: #FFFFFF;
  --gf-focus-border: #D671C2;
  --gf-link: #D96DC5;
  --gf-primary-tint: color-mix(in srgb, #D671C2 18%, transparent);
  --gf-primary-subtle: color-mix(in srgb, #D671C2 10%, transparent);
}

/* Lagoon — hue 218° · Files, storage, logistics */
[data-gf-theme="lagoon"] {
  --gf-hue-50: #EEF9FD;
  --gf-hue-100: #DBF2F9;
  --gf-hue-200: #B5E2EF;
  --gf-hue-300: #82CADF;
  --gf-hue-400: #35ABC8;
  --gf-hue-500: #0592AE;
  --gf-hue-600: #017A92;
  --gf-hue-700: #03667A;
  --gf-hue-800: #055364;
  --gf-hue-900: #024250;
  --gf-hue-950: #002933;
  --gf-primary: #017A92;
  --gf-primary-hover: #03667A;
  --gf-primary-active: #055364;
  --gf-primary-text: #03667A;
  --gf-on-primary: #FFFFFF;
  --gf-focus-border: #017A92;
  --gf-link: #03667A;
  --gf-primary-tint: #DBF2F9;
  --gf-primary-subtle: #EEF9FD;
}
.dark[data-gf-theme="lagoon"], .dark [data-gf-theme="lagoon"] {
  --gf-hue-50: #EEF9FD;
  --gf-hue-100: #DBF2F9;
  --gf-hue-200: #B5E2EF;
  --gf-hue-300: #82CADF;
  --gf-hue-400: #35ABC8;
  --gf-hue-500: #0592AE;
  --gf-hue-600: #017A92;
  --gf-hue-700: #03667A;
  --gf-hue-800: #055364;
  --gf-hue-900: #024250;
  --gf-hue-950: #002933;
  --gf-primary: #017A92;
  --gf-primary-hover: #098099;
  --gf-primary-active: #03667A;
  --gf-primary-text: #23ACCB;
  --gf-on-primary: #FFFFFF;
  --gf-focus-border: #35ABC8;
  --gf-link: #23ACCB;
  --gf-primary-tint: color-mix(in srgb, #35ABC8 18%, transparent);
  --gf-primary-subtle: color-mix(in srgb, #35ABC8 10%, transparent);
}

/* Pine — hue 178° · Finance, health — the logo green */
[data-gf-theme="pine"] {
  --gf-hue-50: #EFF9F7;
  --gf-hue-100: #DEF2ED;
  --gf-hue-200: #BDE3D9;
  --gf-hue-300: #8FCCBE;
  --gf-hue-400: #53AE9B;
  --gf-hue-500: #1E9883;
  --gf-hue-600: #027F6D;
  --gf-hue-700: #056A5B;
  --gf-hue-800: #04574A;
  --gf-hue-900: #04453A;
  --gf-hue-950: #012B24;
  --gf-primary: #027F6D;
  --gf-primary-hover: #056A5B;
  --gf-primary-active: #04574A;
  --gf-primary-text: #056A5B;
  --gf-on-primary: #FFFFFF;
  --gf-focus-border: #027F6D;
  --gf-link: #056A5B;
  --gf-primary-tint: #DEF2ED;
  --gf-primary-subtle: #EFF9F7;
}
.dark[data-gf-theme="pine"], .dark [data-gf-theme="pine"] {
  --gf-hue-50: #EFF9F7;
  --gf-hue-100: #DEF2ED;
  --gf-hue-200: #BDE3D9;
  --gf-hue-300: #8FCCBE;
  --gf-hue-400: #53AE9B;
  --gf-hue-500: #1E9883;
  --gf-hue-600: #027F6D;
  --gf-hue-700: #056A5B;
  --gf-hue-800: #04574A;
  --gf-hue-900: #04453A;
  --gf-hue-950: #012B24;
  --gf-primary: #027F6D;
  --gf-primary-hover: #068472;
  --gf-primary-active: #056A5B;
  --gf-primary-text: #4AAF9B;
  --gf-on-primary: #FFFFFF;
  --gf-focus-border: #53AE9B;
  --gf-link: #4AAF9B;
  --gf-primary-tint: color-mix(in srgb, #53AE9B 18%, transparent);
  --gf-primary-subtle: color-mix(in srgb, #53AE9B 10%, transparent);
}

/* Graphite — hue 260° · Monochrome, editorial */
[data-gf-theme="graphite"] {
  --gf-hue-50: #F6F7F8;
  --gf-hue-100: #EBEDF0;
  --gf-hue-200: #D6D9DF;
  --gf-hue-300: #B9BEC6;
  --gf-hue-400: #959CA7;
  --gf-hue-500: #7C8490;
  --gf-hue-600: #666E7A;
  --gf-hue-700: #545B66;
  --gf-hue-800: #454B54;
  --gf-hue-900: #363B42;
  --gf-hue-950: #212429;
  --gf-primary: #363B42;
  --gf-primary-hover: #454B54;
  --gf-primary-active: #212429;
  --gf-primary-text: #454B54;
  --gf-on-primary: #FFFFFF;
  --gf-focus-border: #666E7A;
  --gf-link: #454B54;
  --gf-primary-tint: #EBEDF0;
  --gf-primary-subtle: #F6F7F8;
}
.dark[data-gf-theme="graphite"], .dark [data-gf-theme="graphite"] {
  --gf-hue-50: #F6F7F8;
  --gf-hue-100: #EBEDF0;
  --gf-hue-200: #D6D9DF;
  --gf-hue-300: #B9BEC6;
  --gf-hue-400: #959CA7;
  --gf-hue-500: #7C8490;
  --gf-hue-600: #666E7A;
  --gf-hue-700: #545B66;
  --gf-hue-800: #454B54;
  --gf-hue-900: #363B42;
  --gf-hue-950: #212429;
  --gf-primary: #F6F7F8;
  --gf-primary-hover: #EBEDF0;
  --gf-primary-active: #D6D9DF;
  --gf-primary-text: #EBEDF0;
  --gf-on-primary: #0B1220;
  --gf-focus-border: #D6D9DF;
  --gf-link: #EBEDF0;
  --gf-primary-tint: color-mix(in srgb, #959CA7 18%, transparent);
  --gf-primary-subtle: color-mix(in srgb, #B9BEC6 10%, transparent);
}

/* Ochre — hue 52° · Warm and earthy — food, wellness, craft and editorial consumer brands */
[data-gf-theme="ochre"] {
  --gf-hue-50: #FEF5F0;
  --gf-hue-100: #FBE9DF;
  --gf-hue-200: #F3D1BE;
  --gf-hue-300: #E4B193;
  --gf-hue-400: #CD895F;
  --gf-hue-500: #B96D3C;
  --gf-hue-600: #A25620;
  --gf-hue-700: #8A4613;
  --gf-hue-800: #72390E;
  --gf-hue-900: #5A2D0C;
  --gf-hue-950: #3A1A04;
  --gf-primary: #A25620;
  --gf-primary-hover: #8A4613;
  --gf-primary-active: #72390E;
  --gf-primary-text: #8A4613;
  --gf-on-primary: #FFFFFF;
  --gf-focus-border: #A25620;
  --gf-link: #8A4613;
  --gf-primary-tint: #FBE9DF;
  --gf-primary-subtle: #FEF5F0;
}
.dark[data-gf-theme="ochre"], .dark [data-gf-theme="ochre"] {
  --gf-hue-50: #FEF5F0;
  --gf-hue-100: #FBE9DF;
  --gf-hue-200: #F3D1BE;
  --gf-hue-300: #E4B193;
  --gf-hue-400: #CD895F;
  --gf-hue-500: #B96D3C;
  --gf-hue-600: #A25620;
  --gf-hue-700: #8A4613;
  --gf-hue-800: #72390E;
  --gf-hue-900: #5A2D0C;
  --gf-hue-950: #3A1A04;
  --gf-primary: #A25620;
  --gf-primary-hover: #AE602C;
  --gf-primary-active: #8A4613;
  --gf-primary-text: #D0875A;
  --gf-on-primary: #FFFFFF;
  --gf-focus-border: #CD895F;
  --gf-link: #D0875A;
  --gf-primary-tint: color-mix(in srgb, #CD895F 18%, transparent);
  --gf-primary-subtle: color-mix(in srgb, #CD895F 10%, transparent);
}


/* ── springs.css ── */
/* GENERATED by scripts/build-themes.mjs — spring physics sampled into CSS linear().
   Apple-style springs: response (s) + damping ratio. Duration = time to settle. */
:root {
  /* snappy: response 0.3s, damping 0.86 — Toggles, segmented pills, tabs, small repositions */
  --gf-spring-snappy: linear(0, 0.0231, 0.0655, 0.1342, 0.2142, 0.2847, 0.3698, 0.4522, 0.5171, 0.5894, 0.6443, 0.7035, 0.7556, 0.7936, 0.8332, 0.8669, 0.8907, 0.9149, 0.9347, 0.9484, 0.9619, 0.9727, 0.9798, 0.9866, 0.9911, 0.9952, 0.9982, 1, 1.0016, 1.0026, 1.0031, 1.0035, 1.0036, 1.0035, 1.0034, 1.0031, 1.0029, 1.0026, 1.0023, 1.0021, 1.0018, 1.0016, 1.0013, 1.0011, 1.0009, 1.0008, 1.0006, 1.0005, 1);
  --gf-spring-snappy-dur: 452ms;
  /* smooth: response 0.42s, damping 1 — Panels, drawers, layout moves — no overshoot */
  --gf-spring-smooth: linear(0, 0.0199, 0.0658, 0.1359, 0.2067, 0.2802, 0.353, 0.4229, 0.4887, 0.5566, 0.6113, 0.6606, 0.7047, 0.7438, 0.7784, 0.8122, 0.8383, 0.861, 0.8808, 0.8979, 0.9126, 0.9268, 0.9375, 0.9467, 0.9546, 0.9614, 0.9672, 0.9727, 0.9768, 0.9803, 0.9833, 0.9858, 0.988, 0.9901, 0.9916, 0.9929, 0.994, 0.9949, 0.9957, 0.9964, 0.997, 0.9975, 0.9979, 0.9982, 0.9985, 0.9987, 0.9989, 0.9991, 1);
  --gf-spring-smooth-dur: 653ms;
  /* bouncy: response 0.45s, damping 0.72 — Only after a gesture with momentum: flick, throw, drop */
  --gf-spring-bouncy: linear(0, 0.0222, 0.076, 0.151, 0.2386, 0.3217, 0.4163, 0.5083, 0.5947, 0.6739, 0.7446, 0.8064, 0.8593, 0.8991, 0.9363, 0.966, 0.9893, 1.0067, 1.0194, 1.0279, 1.0331, 1.0355, 1.0362, 1.0354, 1.0334, 1.0307, 1.0275, 1.0241, 1.0207, 1.0177, 1.0146, 1.0117, 1.0092, 1.0069, 1.005, 1.0034, 1.0021, 1.0012, 1.0004, 0.9997, 0.9993, 0.999, 0.9988, 0.9987, 0.9987, 0.9987, 0.9988, 0.9989, 1);
  --gf-spring-bouncy-dur: 710ms;
  /* sheet: response 0.34s, damping 0.86 — Bottom sheets, popovers opening from a trigger */
  --gf-spring-sheet: linear(0, 0.0182, 0.0695, 0.1302, 0.1999, 0.2867, 0.3618, 0.435, 0.5047, 0.5801, 0.6389, 0.6922, 0.7471, 0.7884, 0.8244, 0.8604, 0.8866, 0.9088, 0.9304, 0.9457, 0.9583, 0.9701, 0.9782, 0.9847, 0.9899, 0.9945, 0.9974, 0.9996, 1.0014, 1.0025, 1.0031, 1.0036, 1.0037, 1.0037, 1.0036, 1.0034, 1.0031, 1.0028, 1.0025, 1.0023, 1.002, 1.0017, 1.0015, 1.0013, 1.001, 1.0009, 1.0007, 1.0006, 1);
  --gf-spring-sheet-dur: 505ms;
}

/* ── base.css ── */
/* Greyfeathers v2 — base: reset, text hierarchy, focus, utilities */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--gf-canvas);
  color: var(--gf-text);
  font-family: var(--gf-font-sans);
  font-size: var(--gf-body-size);
  line-height: var(--gf-body-lh);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* OpenType: the Plus Jakarta Sans that Google Fonts serves keeps kern, liga, calt (after a figure, x is drawn × and a hyphen −),
     tnum / pnum and frac; it drops the stylistic sets, case and cpsp. So no font-feature-settings here — the old
     'cv11', 'ss01' did nothing — and numerals are switched per use with font-variant-numeric (.gf-tnum, .gf-frac). */
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--gf-selection); }
img, svg, video { display: block; max-width: 100%; }
svg { flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
a { color: var(--gf-link); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, pre { margin: 0; }
h1, h2, h3, h4 { color: var(--gf-text-strong); text-wrap: balance; }
p { text-wrap: pretty; }
/* The rag: headings balance, running text avoids a lone word on its last line. Longhands only, so a nowrap set by
   white-space (truncation, chips, nav) is never switched back to wrapping. */
h5, h6 { text-wrap-style: balance; }
li, dd, figcaption, blockquote { text-wrap-style: pretty; }
/* Opening quotes and brackets hang outside the text edge where the browser supports it (Safari) */
blockquote, .gf-prose { hanging-punctuation: first last; }
/* Data is set literally: no ligatures in IDs, codes and keys */
code, kbd, samp, pre { font-variant-ligatures: none; }
ul, ol { margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--gf-hairline); margin: 0; }
[hidden] { display: none !important; }

/* ── Focus: always visible for keyboard, never for mouse ── */
:focus { outline: none; }
/* The ring is a box-shadow; the transparent outline is what Windows forced-colours mode paints instead (it removes shadows). */
:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--gf-focus); }
/* WCAG 2.4.11: focus scrolled into view stays clear of the sticky top bar, and of the bottom nav on phones. */
html { scroll-padding-top: calc(var(--gf-topbar) + 8px); }
@media (max-width: 599.98px) { html { scroll-padding-bottom: calc(var(--gf-bottom-nav) + var(--gf-safe-bottom) + 8px); } }
.gf-focus-inset:focus-visible { box-shadow: inset 0 0 0 2px var(--gf-focus-border); }
/* Components that paint their own box-shadow (filled/outlined buttons, clickable cards, badges, the FAB) would override the
   box-shadow ring above and lose all focus indication (WCAG 2.4.7). They get an outline ring, which no shadow can hide. */
.gf-btn:not([data-variant="ghost"]):not([data-variant="link"]):focus-visible, .gf-card:focus-visible, .gf-badge:focus-visible, .gf-fab:focus-visible { outline: 2px solid var(--gf-focus-border); outline-offset: 2px; }

/* ── Text hierarchy: one family, hierarchy from size · weight · leading · tracking ── */
/* Editorial display tier (marketing and consumer heroes): 2xl 88 · xl 64, stepping down on tablets and phones */
.gf-display-2xl { font-family: var(--gf-display-font); font-size: var(--gf-display-2xl-size); line-height: var(--gf-display-2xl-lh); font-weight: var(--gf-display-2xl-w); letter-spacing: calc(var(--gf-display-2xl-tr) * var(--gf-display-track)); color: var(--gf-text-strong); }
.gf-display-xl { font-family: var(--gf-display-font); font-size: var(--gf-display-xl-size); line-height: var(--gf-display-xl-lh); font-weight: var(--gf-display-xl-w); letter-spacing: calc(var(--gf-display-xl-tr) * var(--gf-display-track)); color: var(--gf-text-strong); }
.gf-display { font-family: var(--gf-display-font); font-size: var(--gf-display-size); line-height: var(--gf-display-lh); font-weight: var(--gf-display-w); letter-spacing: calc(var(--gf-display-tr) * var(--gf-display-track)); color: var(--gf-text-strong); }
.gf-h1 { font-size: var(--gf-h1-size); line-height: var(--gf-h1-lh); font-weight: var(--gf-h1-w); letter-spacing: var(--gf-h1-tr); color: var(--gf-text-strong); }
.gf-h2 { font-size: var(--gf-h2-size); line-height: var(--gf-h2-lh); font-weight: var(--gf-h2-w); letter-spacing: var(--gf-h2-tr); color: var(--gf-text-strong); }
.gf-h3 { font-size: var(--gf-h3-size); line-height: var(--gf-h3-lh); font-weight: var(--gf-h3-w); letter-spacing: var(--gf-h3-tr); color: var(--gf-text-strong); }
.gf-title { font-size: var(--gf-title-size); line-height: var(--gf-title-lh); font-weight: var(--gf-title-w); letter-spacing: var(--gf-title-tr); color: var(--gf-text-strong); }
.gf-body-lg { font-size: var(--gf-body-lg-size); line-height: var(--gf-body-lg-lh); }
.gf-body { font-size: var(--gf-body-size); line-height: var(--gf-body-lh); }
.gf-body-sm { font-size: var(--gf-body-sm-size); line-height: var(--gf-body-sm-lh); }
.gf-label { font-size: var(--gf-label-size); line-height: var(--gf-label-lh); font-weight: var(--gf-label-w); color: var(--gf-text-strong); }
.gf-caption { font-size: var(--gf-caption-size); line-height: var(--gf-caption-lh); font-weight: 500; color: var(--gf-text-muted); }
.gf-overline, .gf-eyebrow { font-size: var(--gf-overline-size); line-height: var(--gf-overline-lh); font-weight: 600; letter-spacing: var(--gf-overline-tr); text-transform: uppercase; color: var(--gf-text-muted); }
/* Eyebrows label, they don't headline: lining tabular figures (“Step 2 of 5” never jitters) and no ligatures inside the tracking.
   The large eyebrow sits over an editorial headline: 12 px with more air, since caps at that size crowd sooner. */
.gf-eyebrow { font-variant-numeric: tabular-nums; font-variant-ligatures: none; }
.gf-eyebrow.gf-eyebrow-lg { font-size: var(--gf-caption-size); line-height: var(--gf-caption-lh); letter-spacing: 0.12em; }
.gf-kpi { font-size: var(--gf-kpi-size); line-height: var(--gf-kpi-lh); font-weight: 800; letter-spacing: -0.015em; color: var(--gf-text-strong); font-variant-numeric: tabular-nums; }
.gf-prose { font-family: var(--gf-font-serif); font-size: 16px; line-height: 1.7; max-width: var(--gf-measure); color: var(--gf-text); }
.gf-prose p + p { margin-top: 1em; }

/* ── Editorial: the serif voice for heroes, ledes and pull quotes (marketing and consumer; never UI) ──
   The serif takes half the sans tracking: its display optical size is already cut tight. Weight drops as size grows. */
.gf-editorial-display { font-family: var(--gf-font-editorial); font-optical-sizing: auto; font-size: var(--gf-display-xl-size); line-height: var(--gf-display-xl-lh); font-weight: 400; letter-spacing: calc(var(--gf-display-xl-tr) * 0.5); color: var(--gf-text-strong); }
.gf-editorial-display[data-size="2xl"] { font-size: var(--gf-display-2xl-size); line-height: var(--gf-display-2xl-lh); letter-spacing: calc(var(--gf-display-2xl-tr) * 0.5); }
.gf-editorial-display[data-size="lg"] { font-size: var(--gf-display-size); line-height: var(--gf-display-lh); font-weight: 500; letter-spacing: -0.0125em; }
.gf-editorial-lede { font-family: var(--gf-font-editorial); font-optical-sizing: auto; font-size: var(--gf-display-lede-size); line-height: var(--gf-display-lede-lh); font-weight: var(--gf-display-lede-w); letter-spacing: var(--gf-display-lede-tr); color: var(--gf-text-secondary); max-width: var(--gf-measure-narrow); hanging-punctuation: first last; }
/* Headlines balance and never overflow: a word longer than the column breaks rather than pushing the page sideways */
:is(.gf-display-2xl, .gf-display-xl, .gf-display, .gf-h1, .gf-h2, .gf-h3, .gf-editorial-display) { text-wrap-style: balance; overflow-wrap: break-word; }
:is(.gf-body-lg, .gf-body, .gf-body-sm, .gf-caption, .gf-prose, .gf-editorial-lede) { text-wrap-style: pretty; }
/* The measure as a utility, and opt-in hyphenation for narrow columns (captions, cards, phone prose) — never headings or names */
.gf-measure { max-width: var(--gf-measure); }
.gf-measure-narrow { max-width: var(--gf-measure-narrow); }
.gf-hyphens { hyphens: auto; hyphenate-limit-chars: 7 3 3; }

.gf-mono { font-family: var(--gf-font-mono); font-size: 0.92em; font-variant-ligatures: none; }
/* Numerals: tabular where figures align or change in place (tables, KPIs, prices in lists, timers, counters);
   proportional in prose and headlines (the default); real fractions only where a fraction is meant */
.gf-tnum { font-variant-numeric: tabular-nums; }
.gf-pnum { font-variant-numeric: proportional-nums; }
.gf-frac { font-variant-numeric: diagonal-fractions; }
.gf-strong { color: var(--gf-text-strong); }
.gf-secondary { color: var(--gf-text-secondary); }
.gf-muted { color: var(--gf-text-muted); }
.gf-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.gf-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gf-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Surfaces ── */
.gf-surface { background: var(--gf-surface); box-shadow: var(--gf-shadow-card), var(--gf-lit-edge); }
.gf-glass { background: var(--gf-glass); -webkit-backdrop-filter: var(--gf-blur-glass); backdrop-filter: var(--gf-blur-glass); }
@media (prefers-reduced-transparency: reduce) {
  .gf-glass { background: var(--gf-surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ── Layout primitives ── */
.gf-stack { display: flex; flex-direction: column; gap: var(--gap, var(--gf-space-4)); }
.gf-inline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, var(--gf-space-2)); }
.gf-row { display: flex; align-items: center; gap: var(--gap, var(--gf-space-3)); min-width: 0; }
.gf-spacer { flex: 1 1 auto; }
.gf-grid { display: grid; gap: var(--gap, var(--gf-space-4)); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 280px)), 1fr)); }
.gf-page { width: 100%; max-width: var(--gf-content-max); margin-inline: auto; padding: var(--gf-gutter); }
.gf-visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gf-scroll { overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--gf-border-strong) transparent; }
.gf-scroll-x { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.gf-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.gf-scroll::-webkit-scrollbar-thumb { background: var(--gf-border-strong); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }

/* Window-class visibility helpers (compact < 600 ≤ medium < 1024 ≤ expanded < 1440 ≤ large) */
@media (max-width: 599.98px) { .gf-hide-compact { display: none !important; } }
@media (min-width: 600px) { .gf-only-compact { display: none !important; } }
@media (max-width: 1023.98px) { .gf-only-expanded-up { display: none !important; } }
@media (min-width: 1024px) { .gf-hide-expanded-up { display: none !important; } }

/* ── motion.css ── */
/* Greyfeathers v2 — motion
   Fluid, Apple-style. Four layers:
   1. Direct manipulation  — respond on pointer-DOWN (press), track the finger 1:1, hand the release velocity on.
   2. State transitions    — 150–280 ms, transform + opacity only, exits faster than entrances.
   3. Springs               — anything that moves in space settles on a spring
                              (CSS: --gf-spring-* linear() curves; JS: motion/springs.ts). Springs are interruptible:
                              CSS transitions reverse from where they are, JS springs restart from the on-screen value.
   4. Pages                 — push and pop on phones, a short cross-fade with a rise on larger screens, and shared
                              elements that morph from one page into the next (motion/transitions.ts drives the
                              View Transitions API; the router passes the direction).
   Every animation has a reduced-motion equivalent at the bottom of this file. */

:root {
  /* Press: a small pressable dips to this the moment it is pressed and springs back on release (physics.css applies
     it to every component). Large surfaces — cards, rows, tiles — never scale: they take the press tint. */
  --gf-press-scale: 0.97;
  --gf-press-tint: color-mix(in srgb, var(--gf-text-strong) 6%, transparent);
  /* Pages: the rise of a cross-fade · how far the old page drifts back under a push (share of the width) · how much it
     dims · the shade along the edge of the page on top · which way is "forward" (−1 for right-to-left) */
  --gf-page-rise: 6px;
  --gf-page-drift: 0.3;
  --gf-page-dim: 0.88;
  --gf-page-shade: rgba(11, 18, 32, 0.16);
  --gf-page-dir: 1;
  /* Stagger: one step per item, never more than six steps */
  --gf-stagger: 40ms;
}
:root:dir(rtl) { --gf-page-dir: -1; }

/* ── The Lift: the brand signature. Clickable cards rise 2 px under a hovering pointer (never on touch). ──
   A card is a large surface: pressed, it settles back onto the page and takes the press tint (physics.css) — it never shrinks. */
.gf-lift {
  transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy),
              box-shadow var(--gf-dur-base) var(--gf-ease),
              border-color var(--gf-dur-base) var(--gf-ease),
              background-color var(--gf-dur-fast) var(--gf-ease);
}
@media (hover: hover) {
  .gf-lift:hover { transform: translateY(-2px); box-shadow: var(--gf-shadow-hover), var(--gf-lit-edge); }
}
.gf-lift:active { transform: none; transition-duration: var(--gf-dur-instant); }

/* ── Press: pointer-down feedback ──
   .gf-press — a small pressable (a button, chip, icon, slot): scales to --gf-press-scale in 100 ms, springs back on the
               snappy spring when released. A release mid-press reverses from where it is (a CSS transition, not a keyframe).
   .gf-press-surface — a large pressable (a row, a tile): the press tint over its background, no scale. */
.gf-press { transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy), background-color var(--gf-dur-fast) var(--gf-ease), opacity var(--gf-dur-fast) var(--gf-ease); }
.gf-press:active:not(:disabled):not([aria-disabled="true"]) { transform: scale(var(--gf-press-scale)); transition-duration: var(--gf-dur-instant); }
.gf-press-surface:active:not(:disabled):not([aria-disabled="true"]) { background-image: linear-gradient(var(--gf-press-tint), var(--gf-press-tint)); }

/* ── Entrances (use data-gf-enter on any element) ── */
@keyframes gf-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes gf-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes gf-rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes gf-zoom-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes gf-zoom-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(0.97); } }
@keyframes gf-materialize { from { opacity: 0; transform: scale(0.97); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes gf-slide-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes gf-slide-down-out { from { transform: none; } to { transform: translateY(100%); } }
@keyframes gf-slide-in-right { from { transform: translateX(100%); } to { transform: none; } }
@keyframes gf-slide-out-right { from { transform: none; } to { transform: translateX(100%); } }
@keyframes gf-slide-in-left { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes gf-pop { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
@keyframes gf-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes gf-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes gf-pulse { 50% { opacity: 0.55; } }
@keyframes gf-ping { 0% { transform: scale(1); opacity: 0.6; } 80%, 100% { transform: scale(2.4); opacity: 0; } }
@keyframes gf-spin { to { transform: rotate(360deg); } }
@keyframes gf-indeterminate { 0% { transform: translateX(-100%) scaleX(0.4); } 50% { transform: translateX(30%) scaleX(0.6); } 100% { transform: translateX(110%) scaleX(0.4); } }
@keyframes gf-draw { from { stroke-dashoffset: var(--gf-dash, 24); } to { stroke-dashoffset: 0; } }

[data-gf-enter="fade"] { animation: gf-fade-in var(--gf-dur-moderate) var(--gf-ease-out) both; }
/* Stagger with --i (0, 1, 2…): 40 ms a step, capped at six steps, so a long list never keeps people waiting */
[data-gf-enter="rise"] { animation: gf-rise-in var(--gf-dur-slow) var(--gf-ease-out) both; animation-delay: calc(min(var(--i, 0), 5) * var(--gf-stagger)); }
[data-gf-enter="zoom"] { animation: gf-zoom-in var(--gf-spring-sheet-dur) var(--gf-spring-sheet) both; }
[data-gf-enter="materialize"] { animation: gf-materialize var(--gf-dur-slow) var(--gf-ease-out) both; }

.gf-shake { animation: gf-shake 360ms var(--gf-ease) 1; }
.gf-pop { animation: gf-pop 320ms var(--gf-spring-bouncy) 1; }

/* ── Pages: the View Transitions API (motion/transitions.ts) — progressive enhancement ──
   While a page changes, the router sets <html data-gf-nav="forward | back | peer">, and data-gf-nav-morph when a shared
   element travels between the two pages. Shared elements and the persistent bars move as groups on the smooth spring;
   the pictures inside them cross-fade on fixed curves. Pointers pass through the overlay: the page is never locked, and
   the first touch completes the transition (transitions.ts). The page you arrive on does not replay its own entrance. */
::view-transition { pointer-events: none; }
::view-transition-group(*) { animation-duration: var(--gf-spring-smooth-dur); animation-timing-function: var(--gf-spring-smooth); }
::view-transition-old(*), ::view-transition-new(*) { animation-duration: var(--gf-dur-moderate); animation-timing-function: var(--gf-ease); }
/* Something that leaves with nothing to become: out faster than anything comes in */
::view-transition-old(*):only-child { animation-duration: var(--gf-dur-fast); animation-timing-function: var(--gf-ease-in); }
/* Shared pictures (a card's media → a page's hero) are cropped, never stretched, while they change shape. They take the
   corners of where they are going, so any change of corner happens as the move begins, never as it lands: square on the
   way into a phone's edge-to-edge hero, rounded on the way back to a card (and on larger screens). */
::view-transition-group(*.gf-media) { overflow: clip; border-radius: var(--gf-radius-card); }
@media (max-width: 599.98px) { :root:not([data-gf-nav="back"])::view-transition-group(*.gf-media) { border-radius: 0; } }
::view-transition-old(*.gf-media), ::view-transition-new(*.gf-media) { width: 100%; height: 100%; object-fit: cover; }
/* The bars that stay put on tablets and desktops: a glass bar's backdrop is not part of its picture, so it sits on the page colour */
::view-transition-group(*.gf-chrome) { background: var(--gf-canvas); }
/* An opened ListingCard: only the picture travels; its flag and save heart step aside for the length of the change */
.gf-listing-media[data-gf-vt-active] > .gf-listing-flag, .gf-listing-media[data-gf-vt-active] > .gf-listing-save { visibility: hidden; }

@keyframes gf-page-rise { from { opacity: 0; transform: translateY(var(--gf-page-rise)); } }
@keyframes gf-page-push-in { from { transform: translateX(calc(100% * var(--gf-page-dir))); } }
@keyframes gf-page-push-out { to { transform: translateX(calc(-100% * var(--gf-page-drift) * var(--gf-page-dir))); opacity: var(--gf-page-dim); } }
@keyframes gf-page-pop-in { from { transform: translateX(calc(-100% * var(--gf-page-drift) * var(--gf-page-dir))); opacity: var(--gf-page-dim); } }
@keyframes gf-page-pop-out { to { transform: translateX(calc(100% * var(--gf-page-dir))); } }
/* Named things that leave with their page (they are drawn apart from the page's own picture) */
@keyframes gf-page-push-away { to { transform: translateX(calc(-100vw * var(--gf-page-drift) * var(--gf-page-dir))); opacity: 0; } }
@keyframes gf-page-pop-away { to { transform: translateX(calc(100vw * var(--gf-page-dir))); } }

/* A shared element is travelling (every window class): the old page steps back quickly and the new one gathers around
   the element as it lands — a short dip to the page colour rather than two pages ghosting through each other. */
:root[data-gf-nav-morph]::view-transition-old(root) { animation: gf-fade-out var(--gf-dur-fast) var(--gf-ease-in) both; mix-blend-mode: normal; }
:root[data-gf-nav-morph]::view-transition-new(root) { animation: gf-fade-in var(--gf-dur-moderate) var(--gf-ease-out) 60ms both; mix-blend-mode: normal; }

/* Phones: a navigation stack. Push — the new page slides in from the trailing edge over the old one, which drifts back
   a third and dims. Pop — the reverse: the top page slides back out, the one beneath comes forward. Both pages ride the
   same smooth (critically damped) spring. A switch from the navigation bar is a peer, not a level deeper: it cross-fades. */
@media (max-width: 599.98px) {
  :root[data-gf-nav="forward"]:not([data-gf-nav-morph])::view-transition-image-pair(root),
  :root[data-gf-nav="back"]:not([data-gf-nav-morph])::view-transition-image-pair(root) { background: #000; }
  :root[data-gf-nav="forward"]:not([data-gf-nav-morph])::view-transition-old(root) { animation: gf-page-push-out var(--gf-spring-smooth-dur) var(--gf-spring-smooth) both; mix-blend-mode: normal; }
  :root[data-gf-nav="forward"]:not([data-gf-nav-morph])::view-transition-new(root) { animation: gf-page-push-in var(--gf-spring-smooth-dur) var(--gf-spring-smooth) both; mix-blend-mode: normal; box-shadow: calc(-10px * var(--gf-page-dir)) 0 28px var(--gf-page-shade); }
  :root[data-gf-nav="back"]:not([data-gf-nav-morph])::view-transition-old(root) { animation: gf-page-pop-out var(--gf-spring-smooth-dur) var(--gf-spring-smooth) both; mix-blend-mode: normal; z-index: 1; box-shadow: calc(-10px * var(--gf-page-dir)) 0 28px var(--gf-page-shade); }
  :root[data-gf-nav="back"]:not([data-gf-nav-morph])::view-transition-new(root) { animation: gf-page-pop-in var(--gf-spring-smooth-dur) var(--gf-spring-smooth) both; mix-blend-mode: normal; }
  :root[data-gf-nav="forward"]:not([data-gf-nav-morph])::view-transition-old(*):only-child { animation: gf-page-push-away var(--gf-dur-moderate) var(--gf-ease-in) both; }
  :root[data-gf-nav="back"]:not([data-gf-nav-morph])::view-transition-old(*):only-child { animation: gf-page-pop-away var(--gf-spring-smooth-dur) var(--gf-spring-smooth) both; }
  :root[data-gf-nav="peer"]::view-transition-old(root) { animation: gf-fade-out var(--gf-dur-fast) var(--gf-ease-in) both; }
  :root[data-gf-nav="peer"]::view-transition-new(root) { animation: gf-fade-in var(--gf-dur-base) var(--gf-ease-out) both; }
}
/* Tablets and desktops: the bars stay put; the content cross-fades — out fast, in with a 6 px rise — whatever the direction */
@media (min-width: 600px) {
  :root[data-gf-nav]:not([data-gf-nav-morph])::view-transition-old(root) { animation: gf-fade-out var(--gf-dur-fast) var(--gf-ease-in) both; }
  :root[data-gf-nav]:not([data-gf-nav-morph])::view-transition-new(root) { animation: gf-page-rise var(--gf-dur-moderate) var(--gf-ease-out) both; }
}

/* Theme cross-fade (opt-in class set for ~300ms while switching light/dark) */
.gf-theme-transition, .gf-theme-transition *, .gf-theme-transition *::before, .gf-theme-transition *::after {
  transition: background-color 280ms var(--gf-ease), border-color 280ms var(--gf-ease), color 200ms var(--gf-ease), fill 200ms var(--gf-ease), box-shadow 280ms var(--gf-ease) !important;
}

/* ── Reduced motion: a gentler equivalent, never "no feedback" ── */
@media (prefers-reduced-motion: reduce) {
  /* Presses keep their tint and colour change; nothing scales */
  :root { --gf-press-scale: 1; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  [data-gf-enter], .gf-shake, .gf-pop { animation: gf-fade-in 160ms linear both !important; }
  /* Indeterminate progress: no sweep — a lighter fill across the whole track pulses its opacity slowly, so "still
     working" stays visible without movement (never a static 40 % segment that reads as a stalled value). */
  .gf-progress[data-indeterminate] > span { width: 100% !important; transform: none !important; background: color-mix(in srgb, var(--tone, var(--gf-primary)) 55%, transparent) !important; animation: gf-pulse 2s ease-in-out infinite !important; }
  .gf-lift:hover, .gf-lift:active, .gf-press:active { transform: none !important; }
  /* Transitions that move or scale (not just fade) are removed too: drag-over scale, heatmap hover, chart bars, donut sweeps */
  .gf-dropzone, .gf-heatmap *, .gf-chart .bar, .gf-donut circle, .gf-fab { transition-property: opacity, background-color, border-color, color, box-shadow !important; }
  .gf-dropzone[data-drag], .gf-heatmap *:hover { transform: none !important; }
  /* Page changes happen at once (the router skips the transition). Should one run anyway, it only cross-fades. */
  ::view-transition-group(*) { animation: none !important; }
  ::view-transition-image-pair(*) { background: none !important; }
  ::view-transition-old(*) { animation: gf-fade-out 120ms linear both !important; }
  ::view-transition-new(*) { animation: gf-fade-in 120ms linear both !important; }
}

/* ── controls.css ── */
/* Greyfeathers v2 — controls: buttons, inputs, selection
   Rules that apply to every control:
   · height from --gf-control-*, radius --gf-radius-control, label 14/500
   · hit area ≥ 44px on touch (padding the hit box, not the visual) — see .gf-hit
   · :focus-visible ring, never removed
   · press feedback on pointer-down (scale .97, 100ms), settle on a spring
   · disabled = opacity .5 + not-allowed, no hover, no lift */

/* ───────────── Buttons ───────────── */
.gf-btn {
  --h: var(--gf-control-md);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); min-width: var(--h); padding: 0 16px;
  border-radius: var(--gf-radius-control);
  border: 1px solid transparent;
  font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: -0.005em; white-space: nowrap;
  color: var(--gf-text-strong); background: transparent;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy),
              background-color var(--gf-dur-fast) var(--gf-ease), border-color var(--gf-dur-fast) var(--gf-ease),
              color var(--gf-dur-fast) var(--gf-ease), box-shadow var(--gf-dur-base) var(--gf-ease), opacity var(--gf-dur-fast) var(--gf-ease);
}
.gf-btn svg { width: 16px; height: 16px; }
.gf-btn:active:not(:disabled) { transform: scale(0.97); transition-duration: var(--gf-dur-instant); }
.gf-btn:disabled, .gf-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; box-shadow: none !important; transform: none !important; }
.gf-btn[data-size="sm"] { --h: var(--gf-control-sm); padding: 0 12px; font-size: 13px; border-radius: var(--gf-radius-sm); }
.gf-btn[data-size="sm"] svg { width: 14px; height: 14px; }
.gf-btn[data-size="lg"] { --h: var(--gf-control-lg); padding: 0 22px; font-size: 15px; border-radius: var(--gf-radius-tile); }
.gf-btn[data-size="lg"] svg { width: 18px; height: 18px; }
.gf-btn[data-icon] { padding: 0; width: var(--h); }
.gf-btn[data-icon] svg { width: 18px; height: 18px; }
.gf-btn[data-block] { display: flex; width: 100%; }
.gf-btn[data-pill] { border-radius: var(--gf-radius-pill); }

.gf-btn[data-variant="primary"] {
  background: var(--gf-primary); color: var(--gf-on-primary); border-color: transparent;
  box-shadow: var(--gf-shadow-glow), inset 0 1px 0 rgba(255,255,255,0.14);
}
@media (hover: hover) {
  .gf-btn[data-variant="primary"]:hover:not(:disabled) { background: var(--gf-primary-hover); box-shadow: var(--gf-shadow-glow-lg), inset 0 1px 0 rgba(255,255,255,0.14); transform: translateY(-1px); }
}
.gf-btn[data-variant="primary"]:active:not(:disabled) { background: var(--gf-primary-active); box-shadow: var(--gf-shadow-glow); transform: translateY(0) scale(0.97); }

.gf-btn[data-variant="secondary"] { background: var(--gf-surface); border-color: var(--gf-border); box-shadow: var(--gf-shadow-card); }
@media (hover: hover) { .gf-btn[data-variant="secondary"]:hover:not(:disabled) { background: var(--gf-hover); border-color: var(--gf-border-strong); } }
.gf-btn[data-variant="secondary"]:active:not(:disabled) { background: var(--gf-pressed); }

.gf-btn[data-variant="ghost"] { color: var(--gf-text); }
@media (hover: hover) { .gf-btn[data-variant="ghost"]:hover:not(:disabled) { background: var(--gf-hover); color: var(--gf-text-strong); } }
.gf-btn[data-variant="ghost"]:active:not(:disabled) { background: var(--gf-pressed); }

.gf-btn[data-variant="outline"] { color: var(--gf-primary-text); border-color: color-mix(in srgb, var(--gf-primary) 45%, var(--gf-border)); }
@media (hover: hover) { .gf-btn[data-variant="outline"]:hover:not(:disabled) { background: var(--gf-primary-subtle); border-color: var(--gf-primary); } }
.gf-btn[data-variant="outline"]:active:not(:disabled) { background: var(--gf-primary-tint); }

.gf-btn[data-variant="tonal"] { color: var(--gf-primary-text); background: var(--gf-primary-tint); }
@media (hover: hover) { .gf-btn[data-variant="tonal"]:hover:not(:disabled) { background: color-mix(in srgb, var(--gf-primary) 24%, var(--gf-surface)); } }

.gf-btn[data-variant="destructive"] { background: var(--gf-danger-text); color: #fff; }
.dark .gf-btn[data-variant="destructive"] { background: var(--gf-danger); color: var(--gf-ink-1000); }
@media (hover: hover) { .gf-btn[data-variant="destructive"]:hover:not(:disabled) { filter: brightness(1.08); } }
.gf-btn[data-variant="destructive-ghost"] { color: var(--gf-danger-text); }
@media (hover: hover) { .gf-btn[data-variant="destructive-ghost"]:hover:not(:disabled) { background: var(--gf-danger-subtle); } }

.gf-btn[data-variant="link"] { height: auto; min-width: 0; padding: 0; color: var(--gf-link); font-weight: 500; border-radius: 4px; }
@media (hover: hover) { .gf-btn[data-variant="link"]:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 3px; } }
/* A link button is only as tall as its text (about 15 px). On phones a transparent ::after pads the
   target to 44 × 44 around it without moving anything; the visual layout is unchanged. */
@media (max-width: 599.98px) { .gf-btn[data-variant="link"]::after { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, var(--gf-hit)); height: max(100%, var(--gf-hit)); transform: translate(-50%, -50%); } }

/* loading: spinner replaces the leading icon; width stays stable */
.gf-btn[data-loading="true"] { pointer-events: none; }
.gf-btn[data-loading="true"] > :not(.gf-btn-spinner) { opacity: 0; }
.gf-btn-spinner { position: absolute; inset: 0; display: grid; place-items: center; }

/* Button group */
.gf-btn-group { display: inline-flex; isolation: isolate; }
.gf-btn-group > .gf-btn { border-radius: 0; margin-left: -1px; }
.gf-btn-group > .gf-btn:first-child { border-radius: var(--gf-radius-control) 0 0 var(--gf-radius-control); margin-left: 0; }
.gf-btn-group > .gf-btn:last-child { border-radius: 0 var(--gf-radius-control) var(--gf-radius-control) 0; }
.gf-btn-group > .gf-btn[aria-pressed="true"] { background: var(--gf-primary-tint); color: var(--gf-primary-text); border-color: color-mix(in srgb, var(--gf-primary) 40%, var(--gf-border)); z-index: 1; }

/* FAB — compact screens only */
.gf-fab {
  position: fixed; right: 16px; bottom: calc(var(--gf-bottom-nav) + 16px + var(--gf-safe-bottom)); z-index: var(--gf-z-nav);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; min-width: 56px; padding: 0 20px; border-radius: 18px;
  background: var(--gf-primary); color: var(--gf-on-primary); font-weight: 600; font-size: 15px;
  box-shadow: var(--gf-shadow-glow-lg), 0 4px 12px rgba(11,18,32,0.14);
  transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy), translate var(--gf-spring-smooth-dur) var(--gf-spring-smooth), box-shadow var(--gf-dur-base) var(--gf-ease), opacity var(--gf-dur-base) var(--gf-ease), width var(--gf-dur-base) var(--gf-ease);
}
/* Phones: a toast slides in above the bottom nav, so the FAB moves up out of its way (Material snackbar behaviour). */
@media (max-width: 599.98px) { body:has(.gf-toaster .gf-toast) .gf-fab { translate: 0 -76px; } }
.gf-fab svg { width: 22px; height: 22px; }
.gf-fab:active { transform: scale(0.94); }
.gf-fab[data-collapsed="true"] { padding: 0; width: 56px; }
.gf-fab[data-collapsed="true"] span { display: none; }

/* ───────────── Fields ───────────── */
.gf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gf-field-label { display: flex; align-items: baseline; gap: 6px; font-size: var(--gf-label-size); line-height: var(--gf-label-lh); font-weight: 500; color: var(--gf-text-strong); }
.gf-field-label .req { color: var(--gf-danger-text); font-weight: 600; }
.gf-field-label .opt { color: var(--gf-text-muted); font-weight: 400; font-size: 12px; }
.gf-field-hint { font-size: 12px; line-height: 16px; color: var(--gf-text-muted); }
.gf-field-msg { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 500; animation: gf-rise-in 200ms var(--gf-ease-out) both; }
.gf-field-msg svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.gf-field-msg[data-tone="danger"] { color: var(--gf-danger-text); }
.gf-field-msg[data-tone="success"] { color: var(--gf-success-text); }
.gf-field-msg[data-tone="info"] { color: var(--gf-text-secondary); }
.gf-field[data-invalid="true"] .gf-input-wrap, .gf-field[data-invalid="true"] .gf-input, .gf-field[data-invalid="true"] .gf-select, .gf-field[data-invalid="true"] .gf-textarea, .gf-field[data-invalid="true"] .gf-number { border-color: var(--gf-danger); }
.gf-field[data-invalid="true"] .gf-input-wrap:focus-within, .gf-field[data-invalid="true"] .gf-input:focus-visible, .gf-field[data-invalid="true"] .gf-select:focus-visible, .gf-field[data-invalid="true"] .gf-textarea:focus-visible, .gf-field[data-invalid="true"] .gf-number:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--gf-danger) 24%, transparent); }
.gf-field[data-invalid="true"].gf-shake .gf-input-wrap { animation: gf-shake 360ms var(--gf-ease); }

/* Error summary — after a failed submit, at the top of the form: lists every problem and takes focus (GOV.UK) */
.gf-error-summary { padding: 14px 16px; border-radius: var(--gf-radius-tile); border: 1px solid var(--gf-danger-border); border-left: 4px solid var(--gf-danger); background: var(--gf-danger-subtle); color: var(--gf-text); outline: none; }
.gf-error-summary:focus-visible { box-shadow: var(--gf-focus); }
.gf-error-summary-title { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 22px; font-weight: 600; letter-spacing: -0.005em; color: var(--gf-danger-text); }
.gf-error-summary-title svg { width: 18px; height: 18px; flex: none; }
.gf-error-summary-list { list-style: none; display: flex; flex-direction: column; gap: 2px; margin-top: 6px; padding-left: 26px; }
.gf-error-summary-link { display: inline-flex; align-items: center; min-height: 24px; text-align: left; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--gf-danger-text); text-decoration: underline; text-underline-offset: 3px; border-radius: 4px; }
@media (hover: hover) { .gf-error-summary-link:hover { text-decoration-thickness: 2px; } }

/* Input base — the field wrapper carries the border; inner input is transparent.
   The rest border is --gf-border-control: the boundary that identifies a field is ≥ 3:1 against its background (WCAG 1.4.11). */
.gf-input-wrap, .gf-input, .gf-select, .gf-textarea {
  --h: var(--gf-control-md);
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: var(--h);
  padding: 0 12px; border-radius: var(--gf-radius-control);
  background: var(--gf-surface); border: 1px solid var(--gf-border-control);
  color: var(--gf-text-strong); font-size: var(--gf-input-size); line-height: 1.3;
  transition: border-color var(--gf-dur-fast) var(--gf-ease), box-shadow var(--gf-dur-base) var(--gf-ease), background-color var(--gf-dur-fast) var(--gf-ease);
}
.gf-input-wrap[data-size="sm"], .gf-input[data-size="sm"], .gf-select[data-size="sm"] { --h: var(--gf-control-sm); padding: 0 10px; font-size: 13px; border-radius: var(--gf-radius-sm); }
.gf-input-wrap[data-size="lg"], .gf-input[data-size="lg"], .gf-select[data-size="lg"] { --h: var(--gf-control-lg); padding: 0 14px; font-size: 15px; border-radius: var(--gf-radius-tile); }
/* Phones: every size types at 16 px (--gf-input-size) — iOS Safari zooms into any field under 16 px */
@media (max-width: 599.98px) {
  .gf-input-wrap[data-size="sm"], .gf-input[data-size="sm"], .gf-select[data-size="sm"],
  .gf-input-wrap[data-size="lg"], .gf-input[data-size="lg"], .gf-select[data-size="lg"] { font-size: var(--gf-input-size); }
}
@media (hover: hover) { .gf-input-wrap:hover, .gf-input:hover, .gf-select:hover, .gf-textarea:hover { border-color: var(--gf-text-muted); } }
.gf-input-wrap:focus-within, .gf-input:focus-visible, .gf-select:focus-visible, .gf-textarea:focus-visible { border-color: var(--gf-focus-border); box-shadow: var(--gf-focus-halo); outline: 2px solid transparent; outline-offset: 1px; }
/* The native field fills the wrapper's full height (stretch), so the whole field — not just the text line — is the target */
.gf-input-wrap > input, .gf-input-wrap > textarea { flex: 1 1 auto; align-self: stretch; min-width: 0; height: auto; padding: 0; border: 0; background: transparent; color: inherit; font-size: inherit; outline: none; }
/* One ring only: the wrapper draws it (:focus-within), so the inner field drops the global :focus-visible ring */
.gf-input-wrap > input:focus-visible, .gf-input-wrap > textarea:focus-visible, .gf-number input:focus-visible { box-shadow: none; outline: none; }
.gf-input-wrap > input { text-overflow: ellipsis; } /* a placeholder or value too long for the field ends in “…”, not mid-letter */
.gf-input-wrap > svg { width: 16px; height: 16px; color: var(--gf-text-muted); flex: none; transition: color var(--gf-dur-fast) var(--gf-ease); }
.gf-input-wrap:focus-within > svg:first-child { color: var(--gf-primary); }
.gf-input-wrap input::placeholder, .gf-input::placeholder, .gf-textarea::placeholder { color: var(--gf-text-muted); opacity: 1; }
.gf-input-wrap[data-disabled="true"], .gf-input:disabled, .gf-select:disabled, .gf-textarea:disabled { opacity: 0.55; background: var(--gf-surface-sunken); cursor: not-allowed; }
.gf-input-wrap[data-readonly="true"], .gf-input:read-only:not([type="checkbox"]) { background: var(--gf-surface-sunken); color: var(--gf-text-secondary); }
/* Read-only: no editing ring, but focus stays visible as a hue border (WCAG 2.4.7) */
.gf-input-wrap[data-readonly="true"]:focus-within { box-shadow: none; border-color: var(--gf-focus-border); }
.gf-input-addon { display: flex; align-items: center; align-self: stretch; margin: 0 -12px 0 0; padding: 0 12px; background: var(--gf-surface-sunken); border-left: 1px solid var(--gf-border); color: var(--gf-text-secondary); font-size: 13px; border-radius: 0 var(--gf-radius-control) var(--gf-radius-control) 0; white-space: nowrap; }
.gf-input-addon[data-side="start"] { margin: 0 0 0 -12px; border-left: 0; border-right: 1px solid var(--gf-border); border-radius: var(--gf-radius-control) 0 0 var(--gf-radius-control); }
.gf-input-clear { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; color: var(--gf-text-muted); margin-right: -4px; transition: background-color var(--gf-dur-fast) var(--gf-ease), color var(--gf-dur-fast) var(--gf-ease), transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
.gf-input-clear:hover { background: var(--gf-hover); color: var(--gf-text-strong); }
.gf-input-clear:active { transform: scale(0.85); }
.gf-input-clear svg { width: 14px; height: 14px; }
/* type="search" fields: hide the browser's own clear button — the system's × (.gf-input-clear) replaces it */
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.gf-textarea { min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; field-sizing: content; max-height: 320px; }
.gf-textarea-count { align-self: flex-end; font-size: 12px; color: var(--gf-text-muted); font-variant-numeric: tabular-nums; }
.gf-textarea-count[data-over="true"] { color: var(--gf-danger-text); font-weight: 600; }

/* Native select */
.gf-select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23636E80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; }
.dark .gf-select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23838D9E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); }
.gf-select:invalid, .gf-select[data-placeholder="true"] { color: var(--gf-text-muted); }

/* Kbd hint inside search */
.gf-kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--gf-surface-sunken); border: 1px solid var(--gf-border); border-bottom-width: 2px; font-family: var(--gf-font-mono); font-size: 11px; font-weight: 600; color: var(--gf-text-secondary); line-height: 1; }

/* OTP */
.gf-otp { display: flex; gap: 8px; }
.gf-otp input { width: 44px; height: 52px; text-align: center; font-family: var(--gf-font-mono); font-size: 20px; font-weight: 600; border-radius: var(--gf-radius-control); border: 1px solid var(--gf-border-control); background: var(--gf-surface); color: var(--gf-text-strong); transition: border-color var(--gf-dur-fast), box-shadow var(--gf-dur-base), transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); caret-color: var(--gf-primary); }
.gf-otp input:focus-visible { border-color: var(--gf-focus-border); box-shadow: var(--gf-focus-halo); transform: translateY(-2px); }
.gf-otp input[data-filled="true"]:not(:focus-visible) { border-color: var(--gf-text-muted); }

/* Number input */
.gf-number { --h: var(--gf-control-md); display: inline-flex; align-items: stretch; height: var(--h); border: 1px solid var(--gf-border-control); border-radius: var(--gf-radius-control); background: var(--gf-surface); transition: border-color var(--gf-dur-fast), box-shadow var(--gf-dur-base); }
@media (hover: hover) { .gf-number:hover:where(:not([data-disabled])) { border-color: var(--gf-text-muted); } }
.gf-number:focus-within { border-color: var(--gf-focus-border); box-shadow: var(--gf-focus-halo); outline: 2px solid transparent; outline-offset: 1px; }
.gf-number input { width: 72px; border: 0; background: transparent; text-align: right; padding: 0 10px; font-size: var(--gf-input-size); font-variant-numeric: tabular-nums; color: var(--gf-text-strong); outline: none; -moz-appearance: textfield; }
.gf-number[data-disabled="true"] { opacity: 0.55; background: var(--gf-surface-sunken); cursor: not-allowed; }
.gf-number input::-webkit-inner-spin-button, .gf-number input::-webkit-outer-spin-button { -webkit-appearance: none; }
.gf-number .steps { display: flex; flex-direction: column; border-left: 1px solid var(--gf-border); width: 28px; }
.gf-number .steps button { position: relative; flex: 1; display: grid; place-items: center; color: var(--gf-text-secondary); transition: background-color var(--gf-dur-fast); }
.gf-number .steps button:first-child { border-bottom: 1px solid var(--gf-border); border-top-right-radius: calc(var(--gf-radius-control) - 1px); }
.gf-number .steps button:last-child { border-bottom-right-radius: calc(var(--gf-radius-control) - 1px); }
/* Each stepper draws 18–21 px tall, but its pointer target is ≥ 24 px (WCAG 2.5.8): + grows upward and − downward,
   past the field's edge, so the two targets never overlap and the look doesn't change. */
.gf-number .steps button::before { content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: 0; }
.gf-number .steps button:first-child::before { top: min(0px, calc(100% - 24px)); }
.gf-number .steps button:last-child::before { bottom: min(0px, calc(100% - 24px)); }
.gf-number .steps button:hover:not(:disabled) { background: var(--gf-hover); color: var(--gf-text-strong); }
.gf-number .steps button:active:not(:disabled) { background: var(--gf-pressed); }
.gf-number .steps button:disabled { color: var(--gf-text-disabled); }
.gf-number .steps svg { width: 12px; height: 12px; }

/* Tag input */
.gf-taginput { flex-wrap: wrap; height: auto; min-height: var(--h); padding: 4px 8px; gap: 4px; }
.gf-taginput input { flex: 1 1 80px; min-width: 80px; height: 30px; }

/* Strength meter */
.gf-strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.gf-strength span { height: 4px; border-radius: 2px; background: var(--gf-border); transition: background-color var(--gf-dur-moderate) var(--gf-ease); }
.gf-strength[data-level="1"] span:nth-child(-n+1) { background: var(--gf-danger); }
.gf-strength[data-level="2"] span:nth-child(-n+2) { background: var(--gf-warning); }
.gf-strength[data-level="3"] span:nth-child(-n+3) { background: var(--gf-warning); }
.gf-strength[data-level="4"] span { background: var(--gf-success); }

/* ───────────── Selection controls ───────────── */
/* Checkbox — the check DRAWS in (stroke-dashoffset), the box pops on a spring */
.gf-check { position: relative; display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; min-height: 24px; }
.gf-check input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
/* A box-only checkbox or radio (row selection, select-all) is still at least a 24 × 24 target, box centred. */
label.gf-check:not([aria-hidden]):not(:has(> .text)) { min-width: 24px; justify-content: center; align-items: center; }
label.gf-check:not([aria-hidden]):not(:has(> .text)) .box { margin-top: 0; }
.gf-check .box { position: relative; flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; border: 1.5px solid var(--gf-border-control); background: var(--gf-surface); color: var(--gf-on-primary);
  transition: background-color var(--gf-dur-fast) var(--gf-ease), border-color var(--gf-dur-fast) var(--gf-ease), transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy), box-shadow var(--gf-dur-base); }
.gf-check .box svg { width: 14px; height: 14px; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 220ms var(--gf-ease-out) 40ms; }
.gf-check input:checked + .box, .gf-check input:indeterminate + .box { background: var(--gf-primary); border-color: var(--gf-primary); }
.gf-check input:checked + .box svg { stroke-dashoffset: 0; }
/* Visual-only checked box, for rows that aren't checkboxes themselves (MultiSelect options are role="option") */
.gf-check[data-checked="true"] .box { background: var(--gf-primary); border-color: var(--gf-primary); }
.gf-check[data-checked="true"] .box svg { stroke-dashoffset: 0; }
.gf-check input:indeterminate + .box svg.check { display: none; }
.gf-check input:not(:indeterminate) + .box svg.dash { display: none; }
.gf-check input:indeterminate + .box svg.dash { stroke-dashoffset: 0; }
.gf-check:active .box { transform: scale(0.88); }
.gf-check input:checked:not(:active) + .box { animation: gf-pop 320ms var(--gf-spring-bouncy); }
.gf-check input:focus-visible + .box { box-shadow: var(--gf-focus); border-color: var(--gf-focus-border); }
@media (hover: hover) { .gf-check:hover input:not(:checked):not(:disabled) + .box { border-color: var(--gf-primary); } }
.gf-check input:disabled + .box { opacity: 0.5; }
.gf-check input:disabled ~ .text { opacity: 0.6; }
.gf-check[data-invalid="true"] .box { border-color: var(--gf-danger); }
.gf-check .text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 24px; color: var(--gf-text-strong); user-select: none; }
.gf-check .text small { font-size: 12px; line-height: 16px; color: var(--gf-text-muted); font-weight: 400; }

/* Radio */
.gf-radio .box { border-radius: 50%; }
.gf-radio .box::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gf-on-primary); transform: scale(0); transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
.gf-radio input:checked + .box::after { transform: scale(1); }

/* Choice card (RadioCard / CheckboxCard) */
.gf-choice-card { position: relative; display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--gf-radius-tile); border: 1px solid var(--gf-border); background: var(--gf-surface); cursor: pointer; transition: border-color var(--gf-dur-fast), background-color var(--gf-dur-fast), box-shadow var(--gf-dur-base), transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
@media (hover: hover) { .gf-choice-card:hover { border-color: var(--gf-border-strong); box-shadow: var(--gf-shadow-card); } }
.gf-choice-card:active { transform: scale(0.99); }
.gf-choice-card:has(input:checked) { border-color: var(--gf-primary); background: var(--gf-primary-subtle); box-shadow: 0 0 0 1px var(--gf-primary); }
.gf-choice-card:has(input:focus-visible) { box-shadow: var(--gf-focus); }
.gf-choice-card .gf-check { align-self: flex-start; }
.gf-choice-card .body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gf-choice-card .body b { font-weight: 600; font-size: 14px; color: var(--gf-text-strong); }
.gf-choice-card .body span { font-size: 13px; color: var(--gf-text-secondary); }

/* Switch — iOS-style: the thumb STRETCHES while pressed, then springs across */
.gf-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 24px; cursor: pointer; -webkit-tap-highlight-color: transparent; } /* the label is the target: ≥ 24 px even with the sm track (44 on phones) */
.gf-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.gf-switch .track { --w: 44px; --h: 26px; --pad: 3px; --thumb: calc(var(--h) - var(--pad) * 2);
  position: relative; flex: none; width: var(--w); height: var(--h); border-radius: var(--gf-radius-pill); background: var(--gf-border-control); /* off: the track itself is the ≥ 3:1 boundary; the thumb stays white */
  transition: background-color var(--gf-dur-base) var(--gf-ease), box-shadow var(--gf-dur-base); }
.gf-switch .track::after { content: ''; position: absolute; top: var(--pad); left: var(--pad); width: var(--thumb); height: var(--thumb); border-radius: var(--gf-radius-pill); background: #fff;
  box-shadow: 0 1px 2px rgba(11,18,32,0.2), 0 2px 6px rgba(11,18,32,0.12);
  transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy), width var(--gf-dur-fast) var(--gf-ease-out); }
.gf-switch[data-size="sm"] .track { --w: 34px; --h: 20px; --pad: 2px; }
.gf-switch input:checked + .track { background: var(--gf-primary); }
.gf-switch input:checked + .track::after { transform: translateX(calc(var(--w) - var(--h))); }
.gf-switch:active .track::after { width: calc(var(--thumb) + 6px); }
.gf-switch input:checked:active + .track::after { transform: translateX(calc(var(--w) - var(--h) - 6px)); }
.gf-switch input:focus-visible + .track { box-shadow: var(--gf-focus); }
.gf-switch input:disabled + .track { opacity: 0.5; }
.gf-switch input:disabled ~ .text { opacity: 0.6; }
.gf-switch:has(input:disabled), .gf-switch input:disabled { cursor: not-allowed; }
.gf-switch .text { font-size: 14px; color: var(--gf-text-strong); user-select: none; }
.gf-switch .text small { display: block; font-size: 12px; color: var(--gf-text-muted); }

/* Segmented — a sliding indicator (positioned by JS) on a spring */
.gf-segmented { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 4px; max-width: 100%; border-radius: var(--gf-radius-control); background: var(--gf-surface-sunken); isolation: isolate; }
.gf-segmented[data-block] { display: grid; width: 100%; }
.gf-segmented .ind { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: calc(var(--gf-radius-control) - 4px); background: var(--gf-surface); box-shadow: var(--gf-shadow-card); z-index: 0;
  transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy), width var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
.dark .gf-segmented .ind { background: var(--gf-surface-raised); box-shadow: var(--gf-shadow-card), var(--gf-lit-edge); }
.gf-segmented button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: calc(var(--gf-radius-control) - 4px); font-size: 13px; font-weight: 500; color: var(--gf-text-secondary); white-space: nowrap; transition: color var(--gf-dur-fast), transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); -webkit-tap-highlight-color: transparent; }
.gf-segmented button svg { width: 15px; height: 15px; flex: none; }
/* Segments shrink to fit (min-width 0): a label that doesn't fit truncates — in a block control it wraps to two lines first.
   The full text stays in the DOM (the accessible name) and shows as a tooltip on hover. */
.gf-segmented button { min-width: 0; }
.gf-segmented .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gf-segmented[data-block] button { padding: 0 8px; }
.gf-segmented[data-block] .lbl { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.gf-segmented button[aria-pressed="true"], .gf-segmented button[aria-selected="true"] { color: var(--gf-text-strong); font-weight: 600; }
.gf-segmented button:active { transform: scale(0.95); }
.gf-segmented[data-size="lg"] button { height: 36px; font-size: 14px; padding: 0 16px; }
.gf-segmented[data-size="lg"] { border-radius: var(--gf-radius-tile); }
.gf-segmented[data-size="lg"] .ind, .gf-segmented[data-size="lg"] button { border-radius: calc(var(--gf-radius-tile) - 4px); }
/* Phones: every segmented control is 44 px tall (36 px options in the 4 px track), whatever its size prop; the track
   inset counts toward each option's target, so the whole 44 px height is tappable. */
@media (max-width: 599.98px) {
  .gf-segmented button { height: 36px; font-size: 14px; }
  .gf-segmented { border-radius: var(--gf-radius-tile); }
  .gf-segmented .ind, .gf-segmented button { border-radius: calc(var(--gf-radius-tile) - 4px); }
  .gf-segmented button::after { content: ''; position: absolute; inset: -4px -1px; }
}

/* Chip (selectable filter chip) */
.gf-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--gf-radius-pill); border: 1px solid var(--gf-border); background: var(--gf-surface); font-size: 13px; font-weight: 500; color: var(--gf-text); cursor: pointer; white-space: nowrap; user-select: none;
  transition: background-color var(--gf-dur-fast), border-color var(--gf-dur-fast), color var(--gf-dur-fast), transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); -webkit-tap-highlight-color: transparent; }
.gf-chip svg { width: 14px; height: 14px; }
.gf-chip .chk { width: 0; overflow: hidden; margin-left: -6px; transition: width var(--gf-dur-base) var(--gf-ease-out), margin var(--gf-dur-base) var(--gf-ease-out); }
@media (hover: hover) { button.gf-chip:hover:not(:disabled), .gf-chip:has(> button.gf-chip-main:hover:not(:disabled)) { background: var(--gf-hover); border-color: var(--gf-border-strong); } }
button.gf-chip:active:not(:disabled), .gf-chip:has(> button.gf-chip-main:active:not(:disabled)) { transform: scale(0.95); }
.gf-chip[aria-pressed="true"], .gf-chip[data-selected="true"] { background: var(--gf-primary-tint); border-color: color-mix(in srgb, var(--gf-primary) 40%, var(--gf-border)); color: var(--gf-primary-text); }
.gf-chip[aria-pressed="true"] .chk, .gf-chip[data-selected="true"] .chk { width: 14px; margin-left: 0; }
.gf-chip:disabled, .gf-chip[data-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
/* Removable chip: a span holding the label (or a toggle button) and a separate remove button */
.gf-chip[data-removable] { cursor: default; }
.gf-chip-main { display: inline-flex; align-items: center; gap: 6px; height: 100%; color: inherit; font: inherit; border-radius: inherit; }
button.gf-chip-main { cursor: pointer; }
button.gf-chip-main:focus-visible { box-shadow: none; }
.gf-chip:has(> .gf-chip-main:focus-visible) { box-shadow: var(--gf-focus); }
.gf-chip[data-size="sm"] { height: 26px; padding: 0 10px; font-size: 12px; }
.gf-chip .x { position: relative; display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; margin-right: -6px; border-radius: 50%; color: var(--gf-text-muted); cursor: pointer; }
.gf-chip .x::before { content: ''; position: absolute; inset: -3px; border-radius: 50%; } /* 24 × 24 target around the 18 px circle */
.gf-chip .x:hover:not(:disabled) { background: var(--gf-pressed); color: var(--gf-text-strong); }
.gf-chip .x:disabled { cursor: not-allowed; }

/* Slider — range input with a filled run (JS sets --p) */
.gf-slider { --p: 50%; position: relative; display: flex; align-items: center; height: 28px; width: 100%; }
.gf-slider input { appearance: none; -webkit-appearance: none; width: 100%; height: 4px; margin: 0; border-radius: 2px; outline: none; cursor: pointer;
  background: linear-gradient(to right, var(--gf-primary) var(--p), var(--gf-border) var(--p)); }
.gf-slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1px solid var(--gf-border-control); box-shadow: 0 1px 3px rgba(11,18,32,0.2); transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy), box-shadow var(--gf-dur-base); cursor: grab; }
.gf-slider input::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1px solid var(--gf-border-control); box-shadow: 0 1px 3px rgba(11,18,32,0.2); cursor: grab; }
.gf-slider input:active::-webkit-slider-thumb { transform: scale(1.25); cursor: grabbing; box-shadow: 0 0 0 6px var(--gf-focus-ring), 0 1px 3px rgba(11,18,32,0.2); }
.gf-slider input:focus-visible::-webkit-slider-thumb { box-shadow: var(--gf-focus), 0 1px 3px rgba(11,18,32,0.2); }
.gf-slider .bubble { position: absolute; left: var(--p); top: -22px; transform: translateX(-50%) translateY(6px); padding: 2px 8px; border-radius: 6px; background: var(--gf-text-strong); color: var(--gf-text-inverted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: 0; pointer-events: none; transition: opacity var(--gf-dur-fast), transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
.gf-slider:active .bubble, .gf-slider:focus-within .bubble { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Hit-area helper: pads the touch target to 44px without growing the visual */
.gf-hit { position: relative; }
.gf-hit::before { content: ''; position: absolute; inset: 50% auto auto 50%; width: max(100%, var(--gf-hit)); height: max(100%, var(--gf-hit)); transform: translate(-50%, -50%); }

/* ── display.css ── */
/* Greyfeathers v2 — display: badges, identity, surfaces, feedback, data, states */

/* ───────────── Badges & indicators ───────────── */
.gf-badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--gf-radius-xs); font-size: 12px; font-weight: 600; letter-spacing: 0.01em; line-height: 1; white-space: nowrap;
  background: var(--tone-tint, var(--gf-neutral-tint)); color: var(--tone-text, var(--gf-neutral-text)); }
.gf-badge svg { width: 12px; height: 12px; }
.gf-badge[data-size="sm"] { height: 18px; padding: 0 6px; font-size: 11px; }
.gf-badge[data-variant="solid"] { background: var(--tone-text, var(--gf-neutral-text)); color: #fff; }
/* Danger shares the danger counter's fill, --gf-danger-solid (white text 5.5:1). Dark mode, below, uses ink text on the tone. */
.gf-badge[data-variant="solid"][data-tone="danger"] { background: var(--gf-danger-solid); }
.dark .gf-badge[data-variant="solid"] { background: var(--tone, var(--gf-neutral)); color: var(--gf-ink-1000); }
.gf-badge[data-variant="outline"] { background: transparent; box-shadow: inset 0 0 0 1px var(--tone-border, var(--gf-border)); }
.gf-badge[data-pill] { border-radius: var(--gf-radius-pill); }

/* Tones: set the --tone-* triplet once and every tone-aware component reads it */
[data-tone="success"] { --tone: var(--gf-success); --tone-text: var(--gf-success-text); --tone-tint: var(--gf-success-tint); --tone-subtle: var(--gf-success-subtle); --tone-border: var(--gf-success-border); }
[data-tone="warning"] { --tone: var(--gf-warning); --tone-text: var(--gf-warning-text); --tone-tint: var(--gf-warning-tint); --tone-subtle: var(--gf-warning-subtle); --tone-border: var(--gf-warning-border); }
[data-tone="danger"]  { --tone: var(--gf-danger);  --tone-text: var(--gf-danger-text);  --tone-tint: var(--gf-danger-tint);  --tone-subtle: var(--gf-danger-subtle);  --tone-border: var(--gf-danger-border); }
[data-tone="info"]    { --tone: var(--gf-info);    --tone-text: var(--gf-info-text);    --tone-tint: var(--gf-info-tint);    --tone-subtle: var(--gf-info-subtle);    --tone-border: var(--gf-info-border); }
[data-tone="neutral"] { --tone: var(--gf-neutral); --tone-text: var(--gf-neutral-text); --tone-tint: var(--gf-neutral-tint); --tone-subtle: var(--gf-neutral-subtle); --tone-border: var(--gf-neutral-border); }
[data-tone="accent"]  { --tone: var(--gf-accent);  --tone-text: var(--gf-accent-text);  --tone-tint: var(--gf-accent-tint);  --tone-subtle: var(--gf-accent-subtle);  --tone-border: var(--gf-accent-border); }
[data-tone="primary"] { --tone: var(--gf-primary); --tone-text: var(--gf-primary-text); --tone-tint: var(--gf-primary-tint); --tone-subtle: var(--gf-primary-subtle); --tone-border: color-mix(in srgb, var(--gf-primary) 35%, transparent); }

/* StatusBadge: pill + 6px dot — shape AND colour, so it survives greyscale */
.gf-status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: var(--gf-radius-pill); font-size: 12px; font-weight: 600; white-space: nowrap;
  background: var(--tone-tint); color: var(--tone-text); box-shadow: inset 0 0 0 1px var(--tone-border); }
.gf-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--tone); flex: none; }
.gf-status[data-live="true"]::before { box-shadow: 0 0 0 0 var(--tone); animation: gf-status-ping 1.8s var(--gf-ease-out) infinite; }
@keyframes gf-status-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tone) 55%, transparent); } 100% { box-shadow: 0 0 0 6px transparent; } }

.gf-counter { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: var(--gf-radius-pill); background: var(--gf-primary); color: var(--gf-on-primary); font-size: 11px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.gf-counter[data-tone="danger"] { background: var(--gf-danger-solid); color: #fff; }  /* ≥ 4.5:1 light and dark */
.gf-counter[data-float] { position: absolute; top: -4px; right: -4px; box-shadow: 0 0 0 2px var(--gf-surface); }
.gf-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tone, var(--gf-neutral)); position: relative; }
.gf-dot[data-pulse]::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: gf-ping 1.6s var(--gf-ease-out) infinite; }

.gf-tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--gf-radius-pill); background: var(--gf-surface-sunken); color: var(--gf-text); font-size: 13px; font-weight: 500; white-space: nowrap; }
.gf-tag .x { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: -4px; border-radius: 50%; color: var(--gf-text-muted); transition: background-color var(--gf-dur-fast), color var(--gf-dur-fast); }
.gf-tag .x:hover { background: var(--gf-border); color: var(--gf-text-strong); }
.gf-tag .x svg { width: 12px; height: 12px; }
.gf-tag .x::before { content: ''; position: absolute; inset: -3px; border-radius: 50%; } /* 24 × 24 target around the 18 px circle (44 on phones) */
/* Phones: the × stays an 18 px circle, but a transparent ::after makes it a 44 × 44 target.
   Not on AttachmentChip, where the file name beside the × is a button of its own. */
@media (max-width: 599.98px) { .gf-tag:not(.gf-attach) .x::after { content: ''; position: absolute; left: 50%; top: 50%; width: var(--gf-hit); height: var(--gf-hit); transform: translate(-50%, -50%); } }
.gf-code { font-family: var(--gf-font-mono); font-size: 12px; padding: 2px 6px; border-radius: 5px; background: var(--gf-surface-sunken); color: var(--gf-text-strong); }

/* ───────────── Identity ───────────── */
.gf-avatar { --s: 36px; position: relative; display: inline-grid; place-items: center; width: var(--s); height: var(--s); border-radius: 50%; flex: none; overflow: visible;
  background: var(--av-bg, var(--gf-primary)); color: #fff; font-weight: 700; font-size: calc(var(--s) * 0.36); letter-spacing: 0.01em; user-select: none; box-shadow: 0 0 0 2px var(--gf-surface); }
.gf-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.gf-avatar[data-size="xs"] { --s: 24px; } .gf-avatar[data-size="sm"] { --s: 28px; } .gf-avatar[data-size="md"] { --s: 36px; } .gf-avatar[data-size="lg"] { --s: 44px; } .gf-avatar[data-size="xl"] { --s: 56px; } .gf-avatar[data-size="2xl"] { --s: 72px; }
.gf-avatar[data-shape="square"] { border-radius: 28%; }
.gf-avatar[data-shape="square"] img { border-radius: 28%; }
.gf-avatar .presence { position: absolute; right: -1px; bottom: -1px; width: 28%; height: 28%; min-width: 10px; min-height: 10px; border-radius: 50%; background: var(--tone, var(--gf-success)); box-shadow: 0 0 0 2px var(--gf-surface); }
.gf-avatar[data-hue="0"] { --av-bg: #2563EB; } .gf-avatar[data-hue="1"] { --av-bg: #7C4DFF; } .gf-avatar[data-hue="2"] { --av-bg: #0F7A43; }
.gf-avatar[data-hue="3"] { --av-bg: #B4560B; } .gf-avatar[data-hue="4"] { --av-bg: #C0266B; } .gf-avatar[data-hue="5"] { --av-bg: #0B7285; }
.gf-avatar-group { display: inline-flex; padding-left: 8px; }
.gf-avatar-group .gf-avatar { margin-left: -8px; transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
@media (hover: hover) { .gf-avatar-group .gf-avatar:hover { transform: translateY(-3px); z-index: 1; } }
.gf-avatar-group .more { background: var(--gf-surface-sunken); color: var(--gf-text-secondary); font-size: 12px; }

.gf-tile { display: inline-grid; place-items: center; flex: none; width: var(--s, 44px); height: var(--s, 44px); border-radius: var(--gf-radius-tile); background: var(--tone-tint, var(--gf-primary-tint)); color: var(--tone, var(--gf-primary)); }
.gf-tile svg { width: calc(var(--s, 44px) * 0.45); height: calc(var(--s, 44px) * 0.45); }
.gf-tile[data-size="sm"] { --s: 36px; border-radius: var(--gf-radius-control); } .gf-tile[data-size="lg"] { --s: 52px; border-radius: var(--gf-radius-card); } .gf-tile[data-size="xl"] { --s: 64px; border-radius: var(--gf-radius-modal); }
.gf-tile[data-variant="solid"] { background: var(--tone, var(--gf-primary)); color: #fff; }
/* Icons are non-text content: 3:1 or more (WCAG 1.4.11). The bright status fills can't carry white icons, so — as with
   solid badges — light mode uses the darker -text shade behind white, and dark mode puts an ink icon on the bright tone. */
.gf-tile[data-variant="solid"]:is([data-tone="success"], [data-tone="warning"], [data-tone="danger"]) { background: var(--tone-text); }
.dark .gf-tile[data-variant="solid"]:not([data-tone="primary"]) { background: var(--tone, var(--gf-primary)); color: var(--gf-ink-1000); }

.gf-logo { color: var(--gf-logo); display: inline-flex; align-items: center; gap: 10px; }
.gf-logo svg { height: var(--s, 28px); width: auto; }
.gf-logo[data-tail="accent"] { --gf-logo-tail: var(--gf-logo-accent); }
.gf-logo .word { font-weight: 700; font-size: calc(var(--s, 28px) * 0.56); letter-spacing: -0.02em; color: var(--gf-text-strong); }

/* ───────────── Surfaces ───────────── */
.gf-card { position: relative; display: flex; flex-direction: column; background: var(--gf-surface); border: 1px solid var(--gf-border); border-radius: var(--gf-radius-card); box-shadow: var(--gf-shadow-card), var(--gf-lit-edge); min-width: 0; }
.gf-card[data-variant="outlined"] { box-shadow: var(--gf-lit-edge); }
.gf-card[data-variant="elevated"] { border-color: transparent; box-shadow: var(--gf-shadow-dropdown), var(--gf-lit-edge); }
.gf-card[data-variant="sunken"] { background: var(--gf-surface-sunken); border-color: transparent; box-shadow: none; }
.gf-card[data-variant="ghost"] { background: transparent; border-color: transparent; box-shadow: none; }
.gf-card[data-interactive] { cursor: pointer; }
button.gf-card { text-align: start; }  /* as="button": undo the browser's centred button text */
@media (hover: hover) { .gf-card[data-interactive]:hover { border-color: var(--gf-border-strong); } }
.gf-card[data-selected="true"] { border-color: var(--gf-primary); box-shadow: 0 0 0 1px var(--gf-primary), var(--gf-shadow-card); }
.gf-card-header { display: flex; align-items: flex-start; gap: 12px; padding: var(--gf-card-pad) var(--gf-card-pad) 0; }
.gf-card-header[data-divided] { padding-bottom: 16px; border-bottom: 1px solid var(--gf-hairline); }
.gf-card-header .titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.gf-card-header .gf-card-title { font-size: var(--gf-card-title-size); line-height: var(--gf-card-title-lh); font-weight: 600; }
.gf-card-header .titles p { font-size: 13px; line-height: 18px; color: var(--gf-text-secondary); }
.gf-card-header .actions { display: flex; gap: 6px; flex: none; margin: -6px -6px 0 0; }
.gf-card-body { padding: var(--gf-card-pad); flex: 1; min-width: 0; }
.gf-card-header + .gf-card-body { padding-top: 16px; }
.gf-card-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px var(--gf-card-pad); border-top: 1px solid var(--gf-hairline); border-radius: 0 0 var(--gf-radius-card) var(--gf-radius-card); }
.gf-card-footer[data-sunken] { background: var(--gf-surface-sunken); }
.gf-card[data-pad="none"] > .gf-card-body { padding: 0; }
.gf-card[data-pad="dense"] { --gf-card-pad: 16px; }
.gf-card[data-pad="roomy"] { --gf-card-pad: 24px; }

/* StatCard */
.gf-stat { padding: var(--gf-card-pad); border-radius: var(--gf-radius-modal); gap: 10px; }
.gf-stat .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gf-stat .label { font-size: 13px; font-weight: 500; color: var(--gf-text-secondary); }
.gf-stat .value { font-size: var(--gf-kpi-size); line-height: var(--gf-kpi-lh); font-weight: 800; letter-spacing: -0.015em; color: var(--gf-text-strong); font-variant-numeric: tabular-nums; }
/* The foot stays on one line, so cards in a row keep one height: the sparkline gives up width first (96 → 56 px),
   then the caption ellipsises; in a foot under 180 px (4-up cards at 1024) the sparkline goes and the words stay. */
.gf-stat .foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gf-text-muted); container-type: inline-size; }
.gf-stat .foot > .gf-delta { flex: none; white-space: nowrap; }
.gf-stat .foot > .cap { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gf-delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--tone-text, var(--gf-text-secondary)); }
.gf-delta svg { width: 12px; height: 12px; }
.gf-stat .spark { margin-left: auto; height: 40px; flex: 1 1 0; min-width: 56px; max-width: 96px; color: var(--gf-primary); }
@container (max-width: 179.98px) { .gf-stat .spark { display: none; } }
.gf-stat .spark svg { overflow: visible; }
.gf-spark-box { display: block; width: 100%; height: 100%; min-width: 24px; }
.gf-spark-box svg { display: block; max-width: 100%; overflow: visible; }

/* Metric row */
/* Each cell draws a hairline on its left and top as 1 px shadows; the row clips the ones on its outer
   edges, so separators sit only between cells and between wrapped lines, never after the last cell. */
.gf-metrics { display: flex; flex-wrap: wrap; overflow: hidden; }
.gf-metrics > div { flex: 1 1 140px; padding: 12px 16px; box-shadow: -1px 0 0 var(--gf-hairline), 0 -1px 0 var(--gf-hairline); }
.gf-metrics .k { font-size: 12px; color: var(--gf-text-muted); font-weight: 500; }
.gf-metrics .v { font-size: 18px; font-weight: 700; color: var(--gf-text-strong); font-variant-numeric: tabular-nums; margin-top: 2px; }

/* ───────────── Feedback ───────────── */
.gf-banner { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--gf-radius-tile); background: var(--tone-subtle); border: 1px solid var(--tone-border); color: var(--gf-text); }
.gf-banner > svg { width: 20px; height: 20px; flex: none; color: var(--tone); margin-top: 1px; }
.gf-banner .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 19px; }
.gf-banner .body b { font-size: 14px; font-weight: 600; color: var(--tone-text); }
.gf-banner .acts { display: flex; gap: 6px; align-items: center; flex: none; margin: -4px -4px -4px 0; }
.gf-banner[data-variant="callout"] { border: 0; border-left: 3px solid var(--tone); border-radius: 0 var(--gf-radius-sm) var(--gf-radius-sm) 0; }
.gf-banner[data-variant="inline"] { padding: 8px 12px; border-radius: var(--gf-radius-sm); }
.gf-banner .dismiss { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--gf-text-muted); }
.gf-banner .dismiss:hover { background: color-mix(in srgb, var(--tone) 12%, transparent); color: var(--tone-text); }
.gf-banner .dismiss svg { width: 16px; height: 16px; }
/* Phones: the 28 px × gets a 44 × 44 hit area (the visual stays 28); the wider gap keeps it off the action button */
@media (max-width: 599.98px) {
  .gf-banner .acts { gap: 10px; }
  .gf-banner .dismiss { position: relative; }
  .gf-banner .dismiss::before { content: ''; position: absolute; left: 50%; top: 50%; width: var(--gf-hit); height: var(--gf-hit); transform: translate(-50%, -50%); }
}

.gf-progress { position: relative; width: 100%; height: 6px; border-radius: var(--gf-radius-pill); background: var(--gf-surface-sunken); overflow: hidden; }
.gf-progress[data-size="sm"] { height: 4px; } .gf-progress[data-size="lg"] { height: 8px; }
.gf-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--tone, var(--gf-primary)); width: var(--v, 0%); transition: width var(--gf-dur-slow) var(--gf-ease-out); }
.gf-progress[data-indeterminate] > span { width: 40%; animation: gf-indeterminate 1.4s var(--gf-ease) infinite; transform-origin: left; }
.gf-progress-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--gf-text-secondary); margin-bottom: 6px; }
.gf-progress-row b { color: var(--gf-text-strong); font-weight: 600; font-variant-numeric: tabular-nums; }
.gf-stepped { display: grid; grid-auto-flow: column; gap: 4px; height: 6px; }
.gf-stepped span { border-radius: 3px; background: var(--gf-surface-sunken); transition: background-color var(--gf-dur-base); }
.gf-stepped span[data-done="true"] { background: var(--gf-primary); }
.gf-ring { --s: 40px; --v: 0; width: var(--s); height: var(--s); position: relative; display: inline-grid; place-items: center; color: var(--gf-text-strong); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gf-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.gf-ring circle { fill: none; stroke-width: 3; }
.gf-ring .track { stroke: var(--gf-surface-sunken); }
.gf-ring .bar { stroke: var(--tone, var(--gf-primary)); stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: calc(100 - var(--v)); transition: stroke-dashoffset var(--gf-dur-slow) var(--gf-ease-out); }
.gf-spinner { width: var(--s, 20px); height: var(--s, 20px); animation: gf-spin 0.8s linear infinite; color: var(--tone, currentColor); }
.gf-meter { width: 72px; height: 6px; border-radius: 3px; background: var(--gf-surface-sunken); overflow: hidden; display: inline-block; vertical-align: middle; }
.gf-meter span { display: block; height: 100%; background: var(--gf-primary); width: var(--v, 0%); border-radius: inherit; }
.gf-meter[data-full="true"] span { background: var(--gf-success); }

/* Skeleton — the same size as the content it replaces; shimmer sweeps once per 1.6 s */
.gf-skeleton { position: relative; overflow: hidden; border-radius: var(--gf-radius-xs); background: var(--gf-surface-sunken); min-height: 12px; }
.gf-skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--gf-surface) 55%, transparent) 50%, transparent 100%); background-size: 200% 100%; animation: gf-shimmer 1.6s var(--gf-ease) infinite; }
.gf-skeleton[data-shape="circle"] { border-radius: 50%; }
.gf-skeleton[data-shape="text"] { height: 12px; border-radius: 4px; }
.gf-skeleton[data-shape="title"] { height: 18px; width: 50%; border-radius: 5px; }

/* ───────────── Data ───────────── */
.gf-table-card { overflow: hidden; }
.gf-table-wrap { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
/* maxHeight: the wrap scrolls both ways and the sticky header pins to its top. (The wrap is the header's scroll
   container either way, so a header never sticks to the page.) It is a focusable region so the keyboard can scroll it. */
.gf-table-wrap[data-scroll] { overflow: auto; overscroll-behavior: contain; }
.gf-table-wrap[data-scroll]:focus-visible { box-shadow: inset 0 0 0 2px var(--gf-focus-border); }
.gf-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.gf-table th { position: sticky; top: 0; z-index: 1; padding: 12px var(--gf-cell-px); text-align: left; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gf-text-secondary); background: var(--gf-surface-sunken); border-bottom: 1px solid var(--gf-border); white-space: nowrap; user-select: none; }
.gf-table th[data-sortable] { cursor: pointer; }
.gf-table th[data-sortable]:hover { color: var(--gf-text-strong); }
.gf-table th .sort { display: inline-flex; margin-left: 4px; vertical-align: -3px; color: var(--gf-text-muted); transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy), color var(--gf-dur-fast); }
.gf-table th .sort svg { width: 14px; height: 14px; }
.gf-table th[aria-sort="ascending"] .sort, .gf-table th[aria-sort="descending"] .sort { color: var(--gf-primary); }
/* Sortable header: a button that fills the cell (its ::after covers the th). Unsorted shows a muted ↕; sorted shows
   a distinct ↑ (ascending) or ↓ (descending) in the hue — the icon changes, it is never a rotated ↕. */
.gf-table th .gf-th-sort { display: inline-flex; align-items: center; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; border-radius: 4px; }
.gf-table th .gf-th-sort::after { content: ''; position: absolute; inset: 0; }
.gf-table th .gf-th-sort:focus-visible { box-shadow: none; }
.gf-table th:has(> .gf-th-sort:focus-visible) { box-shadow: inset 0 0 0 2px var(--gf-focus-border); }
.gf-table th[aria-sort] { color: var(--gf-text-strong); }
.gf-table:not([data-sticky]) th { position: relative; }
.gf-table td { padding: var(--gf-cell-py) var(--gf-cell-px); border-bottom: 1px solid var(--gf-hairline); color: var(--gf-text); vertical-align: middle; height: var(--gf-row-h); }
.gf-table td { white-space: nowrap; }
.gf-table td.wrap { white-space: normal; }
.gf-table tbody tr { transition: background-color var(--gf-dur-fast) var(--gf-ease); }
@media (hover: hover) { .gf-table tbody tr:hover { background: var(--gf-hover); } }
.gf-table tbody tr[aria-selected="true"] { background: var(--gf-primary-subtle); }
.gf-table tbody tr[data-clickable] { cursor: pointer; }
.gf-table tbody tr:last-child td { border-bottom: 0; }
.gf-table .num, .gf-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.gf-table .sel { width: 48px; text-align: center; padding-left: 12px; padding-right: 12px; }
.gf-table .sel .gf-check { vertical-align: middle; min-height: 24px; margin-block: -2px; } /* a 24 × 24 target that lays out at the box's 20 px, so rows keep their height (44 on phones) */
.gf-table .sel .gf-check .box { margin-top: 0; }
.gf-table .row-actions { display: inline-flex; gap: 2px; opacity: 0; transition: opacity var(--gf-dur-fast); }
.gf-table tr:hover .row-actions, .gf-table tr:focus-within .row-actions { opacity: 1; }
@media (hover: none) { .gf-table .row-actions { opacity: 1; } }
.gf-table tfoot td { background: var(--gf-surface-sunken); font-weight: 600; border-top: 1px solid var(--gf-border); border-bottom: 0; }
.gf-cell-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gf-cell-person .t { display: flex; flex-direction: column; min-width: 0; }
.gf-cell-person .t b { font-weight: 600; color: var(--gf-text-strong); font-size: 13px; }
.gf-cell-person .t span { font-size: 12px; color: var(--gf-text-muted); }

/* Table → cards under 600px: thead hidden, each cell shows its data-label */
@media (max-width: 599.98px) {
  .gf-table[data-responsive] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gf-table[data-responsive], .gf-table[data-responsive] tbody, .gf-table[data-responsive] tr, .gf-table[data-responsive] td { display: block; }
  .gf-table[data-responsive] tbody { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
  .gf-table[data-responsive] tr { display: grid; grid-template-columns: auto 1fr; border: 1px solid var(--gf-border); border-radius: var(--gf-radius-tile); background: var(--gf-surface); padding: 6px 14px; }
  .gf-table[data-responsive] td { grid-column: 1 / -1; white-space: normal; }
  .gf-table[data-responsive] td.sel { grid-column: 1; grid-row: 1; width: auto; padding: 10px 12px 10px 0; min-height: 0; }
  .gf-table[data-responsive] td[data-primary] { grid-column: 2; grid-row: 1; }
  .gf-table[data-responsive] tr:not(:has(td.sel)) td[data-primary] { grid-column: 1 / -1; }
  .gf-table[data-responsive] td { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: auto; min-height: 40px; padding: 8px 0; border-bottom: 1px solid var(--gf-hairline); text-align: right; }
  .gf-table[data-responsive] td:last-child { border-bottom: 0; }
  .gf-table[data-responsive] td::before { content: attr(data-label); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gf-text-muted); text-align: left; flex: none; }
  .gf-table[data-responsive] td[data-label=""]::before, .gf-table[data-responsive] td.sel::before { display: none; }
  .gf-table[data-responsive] td.sel { justify-content: flex-start; }
  .gf-table[data-responsive] td[data-primary] { justify-content: flex-start; text-align: left; font-weight: 600; }
  .gf-table[data-responsive] td[data-primary]::before { display: none; }
  .gf-table[data-responsive] .row-actions { opacity: 1; }
}

.gf-bulkbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 16px; background: var(--gf-primary-subtle); border-bottom: 1px solid color-mix(in srgb, var(--gf-primary) 20%, var(--gf-border)); font-size: 13px; font-weight: 600; color: var(--gf-primary-text); animation: gf-rise-in var(--gf-dur-base) var(--gf-ease-out) both; }
.gf-bulkbar .n { font-variant-numeric: tabular-nums; }
@media (max-width: 599.98px) { .gf-bulkbar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--gf-bottom-nav) + 12px + var(--gf-safe-bottom)); z-index: var(--gf-z-nav); border-radius: var(--gf-radius-card); border: 1px solid var(--gf-border); background: var(--gf-surface-raised); color: var(--gf-text-strong); box-shadow: var(--gf-shadow-dropdown); } }
/* Phones: the floating bulk bar, toasts and the FAB share the strip above the bottom nav and must never overlap.
   While rows are selected the bulk bar takes the FAB's place (the FAB hides until the selection clears) and toasts
   rise above the bar (54 px bar + 10 px gap). The live bar is the one with role="status"; static figures don't count. */
@media (max-width: 599.98px) {
  body:has(.gf-bulkbar[role="status"]) .gf-toaster { bottom: calc(var(--gf-bottom-nav) + 12px + var(--gf-safe-bottom) + 64px); }
  body:has(.gf-bulkbar[role="status"]) .gf-fab { opacity: 0; visibility: hidden; pointer-events: none; }
}

.gf-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gf-cell-px); border-top: 1px solid var(--gf-hairline); font-size: 13px; color: var(--gf-text-secondary); flex-wrap: wrap; }
.gf-pagination .pages { display: inline-flex; gap: 2px; }
.gf-pagination .pages button { min-width: 32px; height: 32px; padding: 0 6px; border-radius: var(--gf-radius-sm); font-size: 13px; font-weight: 500; color: var(--gf-text-secondary); font-variant-numeric: tabular-nums; transition: background-color var(--gf-dur-fast), color var(--gf-dur-fast), transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
.gf-pagination .pages button:hover:not(:disabled) { background: var(--gf-hover); color: var(--gf-text-strong); }
.gf-pagination .pages button:active:not(:disabled) { transform: scale(0.92); }
.gf-pagination .pages button[aria-current="page"] { background: var(--gf-primary-tint); color: var(--gf-primary-text); font-weight: 600; }
.gf-pagination .pages button:disabled { opacity: 0.4; }
.gf-pagination .pages svg { width: 16px; height: 16px; }
/* Phones: 44 × 44 page buttons. Nine of them don't fit a phone, so only ‹ previous · the pages either side of the
   current one · next › stay; the far pages and ellipses hide (the “Showing 21–30 of 212” summary keeps the place). */
@media (max-width: 599.98px) {
  .gf-pagination .pages { gap: 4px; }
  .gf-pagination .pages button { min-width: var(--gf-hit); height: var(--gf-hit); }
  .gf-pagination .pages button:not([aria-label]):not([aria-current]):not(:has(+ [aria-current])):not([aria-current] + button) { display: none; }
}

.gf-dl { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr); gap: 0 16px; }
.gf-dl dt { font-size: 13px; color: var(--gf-text-secondary); padding: 10px 0; border-bottom: 1px solid var(--gf-hairline); }
.gf-dl dd { font-size: 14px; color: var(--gf-text-strong); padding: 10px 0; border-bottom: 1px solid var(--gf-hairline); min-width: 0; overflow-wrap: anywhere; }
.gf-dl dt:nth-last-of-type(1), .gf-dl dd:last-child { border-bottom: 0; }
@media (max-width: 599.98px) { .gf-dl { grid-template-columns: 1fr; } .gf-dl dt { padding-bottom: 0; border-bottom: 0; font-size: 12px; } .gf-dl dd { padding-top: 2px; } }

/* 96px minimum: three short values (amount · due · count) share one row on a phone or in a 300px aside instead of wrapping 2 + 1 */
.gf-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px; }
.gf-kv > div { padding: 12px 14px; border-radius: var(--gf-radius-tile); background: var(--gf-surface-sunken); }
.gf-kv .k { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gf-text-muted); }
.gf-kv .v { font-size: 15px; font-weight: 600; color: var(--gf-text-strong); margin-top: 4px; overflow-wrap: anywhere; }

.gf-list { display: flex; flex-direction: column; }
.gf-list-item { position: relative; display: flex; align-items: center; gap: 12px; min-height: var(--gf-row-h); padding: 10px 16px; border-bottom: 1px solid var(--gf-hairline); color: var(--gf-text); text-align: left; width: 100%; transition: background-color var(--gf-dur-fast); -webkit-tap-highlight-color: transparent; }
.gf-list-item:last-child { border-bottom: 0; }
.gf-list-item[data-interactive] { cursor: pointer; }
@media (hover: hover) { .gf-list-item[data-interactive]:has(.main.hit:hover) { background: var(--gf-hover); } }
.gf-list-item[data-interactive]:has(.main.hit:active) { background: var(--gf-pressed); }
.gf-list-item.gf-press:active { transform: none; }
.gf-list-item[data-interactive]:has(.main.hit:active) { transform: scale(0.99); }
.gf-list-item[aria-current="true"], .gf-list-item[aria-selected="true"] { background: var(--gf-primary-subtle); box-shadow: inset 3px 0 0 var(--gf-primary); }
.gf-list-item .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gf-list-item .main.hit { text-align: left; color: inherit; padding: 0; border-radius: 0; }
.gf-list-item .main.hit::after { content: ''; position: absolute; inset: 0; }
.gf-list-item .main.hit:focus-visible { box-shadow: none; }
.gf-list-item:has(.main.hit:focus-visible) { box-shadow: inset 0 0 0 2px var(--gf-focus-border); }
.gf-list-item .trail, .gf-list-item .meta, .gf-list-item .chev { position: relative; z-index: 1; }
.gf-list-item .trail { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.gf-list-item .main b { font-weight: 600; font-size: 14px; color: var(--gf-text-strong); }
.gf-list-item .main span { font-size: 13px; color: var(--gf-text-secondary); }
.gf-list-item .meta { font-size: 12px; color: var(--gf-text-muted); flex: none; font-variant-numeric: tabular-nums; }
.gf-list-item .chev { color: var(--gf-text-muted); flex: none; }
.gf-list-item .chev svg { width: 16px; height: 16px; }

.gf-timeline { position: relative; display: flex; flex-direction: column; gap: 0; padding-left: 28px; list-style: none; } /* an <ol>: the nodes replace its numbers */
.gf-timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--gf-border); border-radius: 1px; }
.gf-timeline-item { position: relative; padding-bottom: 20px; }
.gf-timeline-item:last-child { padding-bottom: 0; }
.gf-timeline-item .node { position: absolute; left: -28px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--gf-surface); border: 2px solid var(--tone, var(--gf-border-strong)); display: grid; place-items: center; }
.gf-timeline-item .node::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--tone, var(--gf-border-strong)); }
.gf-timeline-item[data-current="true"] .node { border-color: var(--gf-primary); box-shadow: 0 0 0 4px var(--gf-primary-tint); }
.gf-timeline-item[data-current="true"] .node::after { background: var(--gf-primary); }
.gf-timeline-item .t { font-size: 14px; font-weight: 600; color: var(--gf-text-strong); }
.gf-timeline-item .m { font-size: 12px; color: var(--gf-text-muted); margin-top: 2px; }
.gf-timeline-item .b { margin-top: 8px; font-size: 13px; color: var(--gf-text); }

.gf-activity { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gf-hairline); font-size: 13px; }
.gf-activity:last-child { border-bottom: 0; }
.gf-activity .txt { flex: 1; min-width: 0; color: var(--gf-text); line-height: 18px; }
.gf-activity .txt b { color: var(--gf-text-strong); font-weight: 600; }
.gf-activity .time { color: var(--gf-text-muted); font-size: 12px; flex: none; }

/* ───────────── States ───────────── */
.gf-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 48px 24px; }
.gf-empty .gf-tile { margin-bottom: 10px; }
.gf-empty .gf-empty-title { font-size: var(--gf-card-title-size); line-height: var(--gf-card-title-lh); font-weight: 600; color: var(--gf-text-strong); }
.gf-empty p { font-size: 13px; color: var(--gf-text-secondary); max-width: 36ch; }
.gf-empty .acts { display: flex; gap: 8px; margin-top: 12px; }
@media (max-width: 599.98px) { .gf-empty { padding: 36px 16px; } }

/* ───────────── Files ───────────── */
.gf-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 28px 20px; text-align: center; border: 2px dashed var(--gf-border-strong); border-radius: var(--gf-radius-card); background: var(--gf-surface-sunken); color: var(--gf-text-secondary); font-size: 13px; cursor: pointer; transition: border-color var(--gf-dur-fast), background-color var(--gf-dur-fast), transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
.gf-dropzone b { color: var(--gf-text-strong); font-weight: 600; font-size: 14px; }
.gf-dropzone u { color: var(--gf-link); text-decoration: none; font-weight: 600; }
.gf-dropzone[data-drag="true"] { border-color: var(--gf-primary); background: var(--gf-primary-subtle); transform: scale(1.01); }
.gf-dropzone .gf-tile { margin-bottom: 6px; }
.gf-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--gf-border); border-radius: var(--gf-radius-tile); background: var(--gf-surface); }
.gf-file .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gf-file .info b { font-size: 13px; font-weight: 600; color: var(--gf-text-strong); }
.gf-file .info span { font-size: 12px; color: var(--gf-text-muted); }
.gf-docthumb { width: 36px; height: 44px; border-radius: 6px; background: var(--tone-tint, var(--gf-surface-sunken)); color: var(--tone, var(--gf-text-secondary)); display: grid; place-items: center; flex: none; border: 1px solid var(--tone-border, var(--gf-border)); }
.gf-docthumb svg { width: 18px; height: 18px; }

/* ───────────── Charts (SVG) ───────────── */
.gf-chart { width: 100%; height: var(--h, 220px); color: var(--gf-text-muted); font-size: 11px; }
.gf-chart { position: relative; min-width: 0; }
.gf-chart svg { display: block; max-width: 100%; overflow: visible; }
.gf-chart .grid line { stroke: var(--gf-chart-grid); }
.gf-chart .axis text { fill: var(--gf-chart-axis); font-size: 11px; font-variant-numeric: tabular-nums; }
.gf-chart .bar { transition: opacity var(--gf-dur-fast), transform var(--gf-dur-slow) var(--gf-ease-out); transform-origin: bottom; transform-box: fill-box; }
.gf-chart:hover .bar { opacity: 0.55; }
.gf-chart .bar:hover { opacity: 1; }
.gf-legend { display: flex; flex-wrap: wrap; gap: 12px 16px; font-size: 12px; color: var(--gf-text-secondary); }
.gf-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gf-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); display: inline-block; }

/* ── navigation.css ── */
/* Greyfeathers v2 — navigation & app shell
   One shell, four window classes, four DIFFERENT layouts (not one layout squeezed):
   compact  < 600   bottom nav (≤5) · title bar · FAB · sheets · single column
   medium   600–1023 icon rail (80) · 2-col grids · centered modals
   expanded 1024–1439 sidebar (264) · 3–4-col KPIs · 2fr/1fr detail split
   large    ≥ 1440  sidebar + optional secondary pane (list | detail side by side) */

.gf-shell { display: grid; min-height: 100dvh; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "top" "main"; background: var(--gf-canvas); }
.gf-shell-main { grid-area: main; min-width: 0; padding-bottom: calc(var(--gf-bottom-nav) + var(--gf-safe-bottom)); }
.gf-shell-main > .gf-page { padding-top: var(--gf-space-4); }
/* main takes focus (tabindex -1) from the skip link and after a page is chosen in the drawer; the region itself gets no ring */
.gf-shell-main:focus, .gf-shell-main:focus-visible { outline: none; box-shadow: none; }
/* Skip link: the first stop in the tab order, off-screen until it has focus */
.gf-skip { position: fixed; top: calc(8px + var(--gf-safe-top)); left: 8px; z-index: calc(var(--gf-z-drawer) + 1); display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--gf-radius-control); background: var(--gf-surface-raised); color: var(--gf-primary-text); font-size: 14px; font-weight: 600; box-shadow: none; transform: translateY(calc(-100% - 16px - var(--gf-safe-top))); } /* no shadow while parked: its blur would show along the top edge */
.gf-skip:focus { transform: none; text-decoration: none; box-shadow: var(--gf-shadow-dropdown), var(--gf-focus); }

/* medium: rail */
@media (min-width: 600px) {
  .gf-shell { grid-template-columns: var(--gf-rail) minmax(0, 1fr); grid-template-areas: "nav top" "nav main"; }
  .gf-shell-main { padding-bottom: 0; }
  .gf-shell-main > .gf-page { padding-top: var(--gf-space-6); }
}
/* expanded: sidebar */
@media (min-width: 1024px) {
  .gf-shell { grid-template-columns: var(--gf-sidebar) minmax(0, 1fr); }
  .gf-shell[data-nav="rail"] { grid-template-columns: var(--gf-rail) minmax(0, 1fr); }
}

/* ── Sidebar / rail (one component; the window class decides which it renders as) ── */
.gf-nav { grid-area: nav; position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; background: var(--gf-surface); border-right: 1px solid var(--gf-border); z-index: var(--gf-z-nav); overflow: hidden; }
.gf-nav-head { display: flex; align-items: center; gap: 10px; height: var(--gf-topbar); padding: 0 16px; flex: none; }
.gf-nav-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; scrollbar-width: none; }
.gf-nav-body::-webkit-scrollbar { display: none; }
.gf-nav-section { padding: 16px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gf-text-muted); }
.gf-nav-item { position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 10px; border-radius: var(--gf-radius-control); color: var(--gf-text); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; width: 100%; text-align: left; transition: background-color var(--gf-dur-fast) var(--gf-ease), color var(--gf-dur-fast), transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); -webkit-tap-highlight-color: transparent; }
.gf-nav-item svg { width: 18px; height: 18px; flex: none; color: var(--gf-text-secondary); transition: color var(--gf-dur-fast), transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
.gf-nav-item .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .gf-nav-item:hover { background: var(--gf-hover); color: var(--gf-text-strong); text-decoration: none; } .gf-nav-item:hover svg { color: var(--gf-text-strong); } }
.gf-nav-item:active { transform: scale(0.98); }
.gf-nav-item[aria-current="page"] { background: var(--gf-primary-tint); color: var(--gf-primary-text); font-weight: 600; }
.gf-nav-item[aria-current="page"] svg { color: var(--gf-primary); }
.gf-nav-item[aria-current="page"]::before { content: ''; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gf-primary); }
.gf-nav-item .gf-counter { margin-left: auto; }
.gf-nav-foot { flex: none; padding: 12px; border-top: 1px solid var(--gf-hairline); }
.gf-nav-user { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: var(--gf-radius-control); text-align: left; transition: background-color var(--gf-dur-fast); }
button.gf-nav-user:hover { background: var(--gf-hover); } /* a plain-text cell (no onUserClick) has no hover */
.gf-nav-user .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gf-nav-user .t b { font-size: 13px; font-weight: 600; color: var(--gf-text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-nav-user .t span { font-size: 12px; color: var(--gf-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-nav-user > svg { width: 16px; height: 16px; color: var(--gf-text-muted); }

/* rail mode: 72 × 56 items with a 12 px label on one line (the Material 3 rail label size). A label wider than the item
   shows NavItem.short instead (measured by the Shell); with no short label it ends in an ellipsis. */
.gf-nav[data-mode="rail"] .gf-nav-head { justify-content: center; padding: 0; }
.gf-nav[data-mode="rail"] .gf-nav-body { padding: 8px 4px; align-items: center; }
/* Sections: the rail renders an empty, aria-hidden divider instead of the label */
.gf-nav[data-mode="rail"] .gf-nav-section { width: 32px; height: 1px; padding: 0; margin: 10px auto; background: var(--gf-border); }
.gf-nav[data-mode="rail"] .gf-nav-item { flex-direction: column; justify-content: center; gap: 4px; width: 72px; height: 56px; padding: 0; border-radius: var(--gf-radius-tile); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.01em; }
.gf-nav[data-mode="rail"] .gf-nav-item svg { width: 22px; height: 22px; }
.gf-nav[data-mode="rail"] .gf-nav-item .lbl { flex: none; max-width: 100%; }
.gf-nav[data-mode="rail"] .gf-nav-item::before { display: none; }
.gf-nav[data-mode="rail"] .gf-nav-item[aria-current="page"] { background: transparent; }
.gf-nav[data-mode="rail"] .gf-nav-item[aria-current="page"] svg { background: var(--gf-primary-tint); border-radius: var(--gf-radius-pill); padding: 4px 12px; width: 48px; height: 30px; box-sizing: border-box; }
.gf-nav[data-mode="rail"] .gf-nav-item .gf-counter { position: absolute; top: 4px; left: calc(50% + 4px); margin: 0; } /* on the icon's top-right corner */
.gf-nav[data-mode="rail"] .gf-nav-foot { padding: 12px 0; display: flex; justify-content: center; }
.gf-nav[data-mode="rail"] .gf-nav-user { width: auto; padding: 4px; }
.gf-nav[data-mode="rail"] .gf-nav-user .t, .gf-nav[data-mode="rail"] .gf-nav-user > svg { display: none; }
.gf-nav[data-mode="rail"] .gf-nav-collapse svg { transform: rotate(180deg); }
.gf-nav-collapse { display: none; }
@media (min-width: 1024px) { .gf-nav-collapse { display: inline-flex; } }

/* Nested groups. Sidebar: the parent row is the link (flex 1) and, beside it, the twisty — two adjacent targets, never
   stacked. The row draws the hover and current fill, so the pair still reads as one 40 px item. Drawer: one disclosure
   button per parent (below). Children indent behind a 2 px rail. */
.gf-nav-row { position: relative; display: flex; align-items: center; }
.gf-nav-row .gf-nav-item { flex: 1; min-width: 0; }
.gf-nav-row:has(> .gf-nav-twisty) { border-radius: var(--gf-radius-control); transition: background-color var(--gf-dur-fast) var(--gf-ease), transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
.gf-nav-row:has(> .gf-nav-twisty) > .gf-nav-item { padding-right: 4px; background: transparent; }
.gf-nav-row:has(> .gf-nav-twisty) > .gf-nav-item:active { transform: none; }
.gf-nav-row:has(> .gf-nav-twisty):has(> .gf-nav-item:active) { transform: scale(0.98); }
@media (hover: hover) { .gf-nav-row:has(> .gf-nav-twisty):has(> .gf-nav-item:hover) { background: var(--gf-hover); } }
.gf-nav-row:has(> .gf-nav-twisty):has(> .gf-nav-item[aria-current="page"]) { background: var(--gf-primary-tint); }
/* The twisty fills the row's end (34 × 40, so no dead strip around it); its 30 × 30 face, hover fill and focus ring are drawn by ::before */
.gf-nav-twisty { position: relative; flex: none; align-self: stretch; width: 34px; padding-right: 4px; display: grid; place-items: center; border-radius: 8px; color: var(--gf-text-muted); }
.gf-nav-twisty::before { content: ''; position: absolute; inset: 5px 4px 5px 0; border-radius: 8px; transition: background-color var(--gf-dur-fast); }
.gf-nav-twisty:hover { color: var(--gf-text-strong); }
.gf-nav-twisty:hover::before { background: var(--gf-pressed); }
.gf-nav-twisty:focus-visible { box-shadow: none; }
.gf-nav-twisty:focus-visible::before { box-shadow: var(--gf-focus); }
.gf-nav-twisty svg { position: relative; width: 16px; height: 16px; transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
.gf-nav-twisty[aria-expanded="true"] svg { transform: rotate(90deg); }
.gf-nav-item[data-contains] { color: var(--gf-text-strong); font-weight: 600; }
.gf-nav-item[data-contains] svg { color: var(--gf-primary); }
/* Drawer: a group parent is one disclosure button; its chevron sits at the end of the row */
.gf-nav-item > svg.gf-nav-chev { width: 16px; height: 16px; margin-left: auto; color: var(--gf-text-muted); transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
.gf-nav-item[aria-expanded="true"] > svg.gf-nav-chev { transform: rotate(90deg); }
.gf-nav-kids { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--gf-dur-moderate) var(--gf-ease-emphasized); }
.gf-nav-kids[data-open="true"] { grid-template-rows: 1fr; }
.gf-nav-kids > div { overflow: hidden; min-height: 0; }
.gf-nav-sub { margin: 2px 0 6px 20px; padding-left: 10px; border-left: 2px solid var(--gf-hairline); display: flex; flex-direction: column; gap: 1px; }
.gf-nav-subitem { position: relative; display: flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: 8px; font-size: 13px; color: var(--gf-text-secondary); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color var(--gf-dur-fast), color var(--gf-dur-fast); }
.gf-nav-subitem:hover { background: var(--gf-hover); color: var(--gf-text-strong); text-decoration: none; }
.gf-nav-subitem[aria-current="page"] { color: var(--gf-primary-text); background: var(--gf-primary-subtle); font-weight: 600; }
.gf-nav-subitem[aria-current="page"]::before { content: ''; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--gf-primary); }
/* Drawer rows are touch targets: every item, group parent and nested item is ≥ 44 px tall */
.gf-nav[data-mode="drawer"] .gf-nav-item { height: 44px; }
.gf-nav[data-mode="drawer"] .gf-nav-subitem { min-height: 44px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .gf-nav-kids { transition: none; } .gf-nav-item > svg.gf-nav-chev { transition: none; } }

/* Drawer mode (compact: the full nav as a left sheet) */
.gf-nav[data-mode="drawer"] { position: fixed; inset: 0 auto 0 0; width: min(304px, 86vw); height: 100dvh; z-index: var(--gf-z-drawer); box-shadow: var(--gf-shadow-modal); border-right: 0; animation: gf-slide-in-left var(--gf-spring-sheet-dur) var(--gf-spring-sheet) both; }
.gf-nav[data-mode="drawer"][data-closing="true"] { animation: gf-slide-out-left var(--gf-dur-base) var(--gf-ease-in) both; }
@keyframes gf-slide-out-left { to { transform: translateX(-100%); } }
/* Reduced motion: the overlay rule fades every drawer in; this fades it out again when it closes */
@media (prefers-reduced-motion: reduce) { .gf-nav[data-mode="drawer"][data-closing="true"] { animation: gf-fade-out 120ms linear both !important; } }

/* ── Topbar ── */
.gf-topbar { grid-area: top; min-width: 0; position: sticky; top: 0; z-index: var(--gf-z-sticky); display: flex; align-items: center; gap: 10px; height: calc(var(--gf-topbar) + var(--gf-safe-top)); padding: var(--gf-safe-top) var(--gf-gutter) 0; border-bottom: 1px solid var(--gf-line); background: var(--gf-glass); -webkit-backdrop-filter: var(--gf-blur-glass); backdrop-filter: var(--gf-blur-glass); }
@media (prefers-reduced-transparency: reduce) { .gf-topbar { background: var(--gf-surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.gf-topbar .title { font-size: 17px; font-weight: 600; color: var(--gf-text-strong); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-topbar .grow { flex: 1; min-width: 0; }
.gf-topbar .search { flex: 0 1 420px; min-width: 180px; }
.gf-topbar .gf-crumbs { flex: 0 1 auto; max-width: 55%; } /* shrinks when the bar is full: the current page truncates with an ellipsis instead of pushing the actions off-screen */
/* Tablets: with a breadcrumb in the bar, the search field gives way first (its placeholder truncates; the field still
   works), so the trail stays readable. */
@media (min-width: 600px) and (max-width: 1023.98px) { .gf-topbar:has(> .gf-crumbs) .search { min-width: 120px; flex: 0 4 200px; } }
.gf-topbar .acts { display: flex; align-items: center; gap: 4px; flex: none; }
@media (max-width: 599.98px) { .gf-topbar { gap: 6px; } .gf-topbar .search { display: none; } }
/* Large-title header: compact screens only — collapses on scroll (JS toggles data-collapsed) */
.gf-largetitle { padding: 8px var(--gf-gutter) 4px; }
.gf-largetitle > :is(h1, h2) { font-size: 30px; line-height: 36px; font-weight: 800; letter-spacing: -0.025em; }
.gf-largetitle p { font-size: 14px; color: var(--gf-text-secondary); margin-top: 2px; }
@media (min-width: 600px) { .gf-largetitle { display: none; } }

/* ── Bottom nav (compact only) — ≤5 items, label always visible ── */
.gf-bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--gf-z-nav); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: calc(var(--gf-bottom-nav) + var(--gf-safe-bottom)); padding: 0 8px var(--gf-safe-bottom); background: var(--gf-glass-strong); -webkit-backdrop-filter: var(--gf-blur-glass); backdrop-filter: var(--gf-blur-glass); border-top: 1px solid var(--gf-line); }
@media (prefers-reduced-transparency: reduce) { .gf-bottomnav { background: var(--gf-surface); backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (min-width: 600px) { .gf-bottomnav { display: none; } }
.gf-bottomnav a, .gf-bottomnav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--gf-text-secondary); font-size: 11px; font-weight: 600; letter-spacing: 0.01em; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.gf-bottomnav svg { width: 24px; height: 24px; transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
.gf-bottomnav .pill { position: absolute; top: 8px; left: 50%; width: 52px; height: 30px; border-radius: var(--gf-radius-pill); background: var(--gf-primary-tint); transform: translateX(-50%) scaleX(0.4); opacity: 0; transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy), opacity var(--gf-dur-fast); }
.gf-bottomnav [aria-current="page"] { color: var(--gf-primary-text); }
.gf-bottomnav [aria-current="page"] .pill { transform: translateX(-50%) scaleX(1); opacity: 1; }
.gf-bottomnav [aria-current="page"] svg { color: var(--gf-primary); }
.gf-bottomnav a:active svg, .gf-bottomnav button:active svg { transform: scale(0.85); }
.gf-bottomnav .ico { position: relative; z-index: 1; display: grid; place-items: center; height: 30px; }
.gf-bottomnav .gf-counter { position: absolute; top: 4px; right: calc(50% - 22px); z-index: 2; box-shadow: 0 0 0 2px var(--gf-surface); }

/* ── Breadcrumb — nav › ol › li; the chevron separator is inside each li after the first ── */
.gf-crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gf-text-secondary); min-width: 0; }
.gf-crumbs ol { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0; padding: 0; list-style: none; }
/* When the trail doesn't fit, the oldest crumbs give up space first, then the parent (each keeps at least 3.5em, a
   few letters and an ellipsis), and the current page keeps at least 5em, so nothing collapses to nothing. */
.gf-crumbs li { display: flex; align-items: center; gap: 4px; flex: 0 4 auto; min-width: 3.5em; }
.gf-crumbs li:nth-last-child(2) { flex-shrink: 2; } /* the parent gives way after older crumbs */
.gf-crumbs li:has(> span:not(.cur)) { min-width: 0; flex-shrink: 0; } /* the collapsed “…” keeps its natural width */
.gf-crumbs li:last-child { flex: 0 1 auto; min-width: 5em; }
.gf-crumbs a { color: inherit; padding: 4px 6px; margin: 0 -4px; border-radius: 6px; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gf-crumbs a:hover { background: var(--gf-hover); color: var(--gf-text-strong); text-decoration: none; }
.gf-crumbs svg { width: 14px; height: 14px; color: var(--gf-text-muted); flex: none; }
.gf-crumbs .cur { color: var(--gf-text-strong); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Back button (compact detail pages) ── */
.gf-back { display: inline-flex; align-items: center; gap: 4px; color: var(--gf-primary-text); font-weight: 500; font-size: 15px; padding: 6px 8px 6px 2px; margin-left: -4px; border-radius: 8px; }
.gf-back svg { width: 20px; height: 20px; }
.gf-back:active { background: var(--gf-primary-subtle); }
/* Phones: the row stays 34 px tall; a transparent ::after makes the target at least 44 px. */
@media (max-width: 599.98px) { .gf-back { position: relative; } .gf-back::after { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, var(--gf-hit)); height: max(100%, var(--gf-hit)); transform: translate(-50%, -50%); } }

/* ── Tabs — underline slides with a spring (JS sets --x / --w) ── */
.gf-tabs { position: relative; display: flex; gap: 4px; border-bottom: 1px solid var(--gf-border); overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.gf-tabs::-webkit-scrollbar { display: none; }
.gf-tabs .ind { position: absolute; bottom: -1px; left: 0; height: 2px; width: var(--w, 0px); transform: translateX(var(--x, 0px)); background: var(--gf-primary); border-radius: 2px 2px 0 0; transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy), width var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
.gf-tab { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; font-size: 14px; font-weight: 500; color: var(--gf-text-secondary); white-space: nowrap; border-radius: var(--gf-radius-sm) var(--gf-radius-sm) 0 0; transition: color var(--gf-dur-fast), background-color var(--gf-dur-fast); -webkit-tap-highlight-color: transparent; flex: none; }
.gf-tab svg { width: 16px; height: 16px; }
.gf-tab:hover { color: var(--gf-text-strong); background: var(--gf-hover); }
.gf-tab[aria-selected="true"] { color: var(--gf-primary-text); font-weight: 600; }
.gf-tab .n { font-size: 12px; font-weight: 600; padding: 1px 6px; border-radius: var(--gf-radius-pill); background: var(--gf-surface-sunken); color: var(--gf-text-secondary); font-variant-numeric: tabular-nums; }
.gf-tab[aria-selected="true"] .n { background: var(--gf-primary-tint); color: var(--gf-primary-text); }
.gf-tabs[data-fill] .gf-tab { flex: 1; justify-content: center; }
.gf-tabs[data-fade]::after { content: ''; position: sticky; right: 0; width: 28px; flex: none; margin-left: -28px; background: linear-gradient(to right, transparent, var(--gf-canvas)); pointer-events: none; }
.gf-tabpanel[data-gf-enter] { animation-duration: var(--gf-dur-base); }

/* ── Stepper ── */
.gf-stepper { display: flex; align-items: flex-start; gap: 0; counter-reset: step; }
.gf-step { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; color: var(--gf-text-secondary); min-width: 0; }
.gf-step .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 2px solid var(--gf-border-strong); color: var(--gf-text-secondary); background: var(--gf-surface); transition: all var(--gf-dur-base) var(--gf-ease); z-index: 1; }
.gf-step .dot svg { width: 14px; height: 14px; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 300ms var(--gf-ease-out) 80ms; }
.gf-step:not(:last-child)::after { content: ''; position: absolute; top: 13px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: var(--gf-border); border-radius: 1px; }
.gf-step::before { content: ''; position: absolute; top: 13px; left: calc(50% + 18px); width: 0; height: 2px; background: var(--gf-primary); z-index: 0; transition: width var(--gf-dur-slow) var(--gf-ease-out); }
.gf-step[data-state="done"]:not(:last-child)::before { width: calc(100% - 36px); }
.gf-step[data-state="done"] .dot { background: var(--gf-primary); border-color: var(--gf-primary); color: var(--gf-on-primary); }
.gf-step[data-state="done"] .dot svg { stroke-dashoffset: 0; }
.gf-step[data-state="current"] .dot { border-color: var(--gf-primary); color: var(--gf-primary-text); box-shadow: 0 0 0 4px var(--gf-primary-tint); }
.gf-step[data-state="current"] .lbl { color: var(--gf-text-strong); font-weight: 600; }
.gf-step .lbl { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* compact: "Step 2 of 4" + bar */
.gf-stepper-compact { display: flex; flex-direction: column; gap: 8px; }
.gf-stepper-compact .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--gf-text-secondary); }
.gf-stepper-compact .row b { color: var(--gf-text-strong); font-weight: 600; }

/* ── Page header ── */
.gf-pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: var(--gf-section-gap); flex-wrap: wrap; }
.gf-pagehead .t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gf-pagehead .t > :is(h1, h2) { font-size: var(--gf-h3-size); line-height: var(--gf-h3-lh); font-weight: 600; letter-spacing: -0.01em; }
.gf-pagehead p { font-size: 14px; color: var(--gf-text-secondary); }
.gf-pagehead .acts { display: flex; gap: 8px; align-items: center; flex: none; }
@media (max-width: 599.98px) { .gf-pagehead > h1, .gf-pagehead .t { display: none; } .gf-pagehead { margin-bottom: 16px; } .gf-pagehead .acts { width: 100%; } }
.gf-section-title { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.gf-section-title .gf-section-heading { font-size: var(--gf-title-size); line-height: var(--gf-title-lh); font-weight: var(--gf-title-w); letter-spacing: var(--gf-title-tr); }
.gf-section-title .n { font-size: 13px; color: var(--gf-text-muted); font-variant-numeric: tabular-nums; }
.gf-section-title .r { margin-left: auto; }

/* ── Toolbar ── */
.gf-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.gf-toolbar .gf-input-wrap { flex: 1 1 240px; max-width: 360px; }
@media (max-width: 599.98px) { .gf-toolbar .gf-input-wrap { flex-basis: 100%; max-width: none; } .gf-toolbar .filters { display: flex; gap: 8px; overflow-x: auto; width: 100%; padding-bottom: 2px; scrollbar-width: none; } }
.gf-toolbar .filters { display: contents; }
@media (max-width: 599.98px) { .gf-toolbar .filters { display: flex; } }

/* ── Page layouts ── */
.gf-kpis { display: grid; gap: var(--gf-space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .gf-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 599.98px) { .gf-kpis { display: flex; gap: 12px; overflow-x: auto; margin: 0 calc(-1 * var(--gf-gutter)); padding: 2px var(--gf-gutter) 8px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gf-gutter); scrollbar-width: none; } .gf-kpis::-webkit-scrollbar { display: none; } .gf-kpis > * { flex: 0 0 72%; scroll-snap-align: start; } }
/* minmax(0, …): a wide child (a table, a long URL) can't widen the column past the page; it scrolls in its own wrapper */
.gf-split { display: grid; gap: var(--gf-space-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .gf-split { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); align-items: start; } .gf-split > aside { position: sticky; top: calc(var(--gf-topbar) + var(--gf-space-6)); } }
.gf-two-pane { display: grid; grid-template-columns: 1fr; gap: 0; min-height: calc(100dvh - var(--gf-topbar)); }
@media (min-width: 1440px) { .gf-two-pane { grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); } .gf-two-pane > .pane-list { border-right: 1px solid var(--gf-border); height: calc(100dvh - var(--gf-topbar)); position: sticky; top: var(--gf-topbar); overflow-y: auto; } }
.gf-section { margin-bottom: var(--gf-section-gap); }
.gf-reading { max-width: var(--gf-reading-max); }
.gf-form-grid { display: grid; gap: 16px 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .gf-form-grid { grid-template-columns: 1fr 1fr; } .gf-form-grid .full { grid-column: 1 / -1; } }
.gf-form-actions { display: flex; gap: 8px; justify-content: flex-end; padding-top: 16px; border-top: 1px solid var(--gf-hairline); margin-top: 8px; }
@media (max-width: 599.98px) { .gf-form-actions { position: sticky; bottom: var(--gf-bottom-chrome, 0px); flex-direction: column; background: var(--gf-glass-strong); -webkit-backdrop-filter: var(--gf-blur-glass); backdrop-filter: var(--gf-blur-glass); margin: 0 calc(-1 * var(--gf-sticky-bleed, var(--gf-gutter))); padding: 12px var(--gf-sticky-bleed, var(--gf-gutter)) calc(12px + var(--gf-sticky-safe, var(--gf-safe-bottom))); border-top: 1px solid var(--gf-line); border-bottom: var(--gf-sticky-edge, 0px) solid var(--gf-hairline); } .gf-form-actions .gf-btn { width: 100%; } } /* above the bottom nav when the shell has one; at the edge, clear of the home indicator, when it doesn't */
/* StickyActions bleeds to the screen edge by --gf-sticky-bleed (default: the gutter — set it to a container's own
   padding, or 0, anywhere else). A shell with bottom chrome on phones sets --gf-bottom-chrome (its height),
   --gf-sticky-safe: 0px (the nav already covers the safe area) and --gf-sticky-edge: 1px (a hairline above the nav). */
.gf-sticky-actions { position: sticky; bottom: var(--gf-bottom-chrome, 0px); display: flex; gap: 8px; padding: 12px var(--gf-sticky-bleed, var(--gf-gutter)) calc(12px + var(--gf-sticky-safe, var(--gf-safe-bottom))); margin: 0 calc(-1 * var(--gf-sticky-bleed, var(--gf-gutter))); background: var(--gf-glass-strong); -webkit-backdrop-filter: var(--gf-blur-glass); backdrop-filter: var(--gf-blur-glass); border-top: 1px solid var(--gf-line); border-bottom: var(--gf-sticky-edge, 0px) solid var(--gf-hairline); z-index: var(--gf-z-sticky); }
.gf-sticky-actions .gf-btn { flex: 1; }
@media (min-width: 600px) { .gf-sticky-actions { display: none; } }
/* In the shell on compact the bottom nav stays visible (HIG: keep the tab bar on screen), so sticky actions sit on top of it; full-screen tasks without a bottom nav keep bottom: 0. */
/* Shell chrome, as variables any shell can set: sticky top chrome (--gf-top-chrome) and phone bottom chrome. */
.gf-shell { --gf-top-chrome: calc(var(--gf-topbar) + var(--gf-safe-top)); }
@media (max-width: 599.98px) { .gf-shell:has(> .gf-bottomnav) { --gf-bottom-chrome: calc(var(--gf-bottom-nav) + var(--gf-safe-bottom)); --gf-sticky-safe: 0px; --gf-sticky-edge: 1px; } }

/* ── Command palette ── */
.gf-palette { width: min(640px, calc(100vw - 32px)); border-radius: var(--gf-radius-lg); background: var(--gf-surface-raised); box-shadow: var(--gf-shadow-modal), var(--gf-lit-edge); border: 1px solid var(--gf-border); overflow: hidden; }
.gf-palette .in { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px; border-bottom: 1px solid var(--gf-hairline); }
.gf-palette .in svg { width: 18px; height: 18px; color: var(--gf-text-muted); }
.gf-palette .in input { flex: 1; border: 0; background: transparent; font-size: 16px; color: var(--gf-text-strong); outline: none; }
.gf-palette .list { max-height: min(420px, 60vh); overflow-y: auto; padding: 8px; }
.gf-palette .grp { padding: 10px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gf-text-muted); }
.gf-palette .row { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 10px; border-radius: var(--gf-radius-control); font-size: 14px; color: var(--gf-text); cursor: pointer; width: 100%; text-align: left; }
.gf-palette .row svg { width: 16px; height: 16px; color: var(--gf-text-secondary); }
.gf-palette .row .hint { margin-left: auto; font-size: 12px; color: var(--gf-text-muted); }
.gf-palette .row[aria-selected="true"] { background: var(--gf-primary-tint); color: var(--gf-primary-text); }
.gf-palette .row[aria-selected="true"] svg { color: var(--gf-primary); }
.gf-palette .foot { display: flex; gap: 14px; padding: 8px 16px; border-top: 1px solid var(--gf-hairline); font-size: 12px; color: var(--gf-text-muted); }
.gf-palette .foot span { display: inline-flex; align-items: center; gap: 6px; }
/* Phones: a full-screen sheet, edge to edge (its scrim drops all padding — overlays.css). The search row sits under
   the safe area with Cancel at the end; the list fills the rest of the screen and scrolls on its own. */
@media (max-width: 599.98px) {
  .gf-palette { width: 100%; height: 100dvh; max-height: none; display: flex; flex-direction: column; border-radius: 0; border: 0; padding-top: var(--gf-safe-top); }
  .gf-palette .in { flex: none; padding: 0 8px 0 16px; }
  .gf-palette .list { flex: 1; min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(8px + var(--gf-safe-bottom)); }
  .gf-palette .foot { display: none; }
}

/* ── overlays.css ── */
/* Greyfeathers v2 — overlays
   Every floating layer: surface-raised · dropdown/modal shadow (+ lit edge in dark) · grows FROM its trigger
   (transform-origin) · Esc + outside-click close · focus trapped · focus returned to the trigger.
   Window class decides the form: modal ↔ bottom sheet, menu ↔ action sheet, drawer ↔ full-screen page. */

.gf-scrim { position: fixed; inset: 0; z-index: var(--gf-z-modal); background: var(--gf-scrim); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: gf-fade-in var(--gf-dur-base) var(--gf-ease-out) both; display: grid; place-items: center; padding: 16px; overscroll-behavior: contain; }
.gf-scrim[data-closing="true"] { animation: gf-fade-out var(--gf-dur-fast) var(--gf-ease-in) both; }
.gf-scrim[data-align="end"] { place-items: end stretch; padding: 0; }
.gf-scrim[data-align="right"] { place-items: stretch end; padding: 0; }
.gf-scrim[data-align="top"] { place-items: start center; padding-top: min(12vh, 120px); }
/* Phones: the command palette is a full-screen sheet, so its scrim has no padding at all (see .gf-palette) */
@media (max-width: 599.98px) { .gf-scrim[data-align="top"] { padding: 0; place-items: stretch; } }
.gf-scrim[data-transparent] { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Modal (medium and up); compact renders the same content as a sheet */
.gf-modal { position: relative; width: min(var(--w, 560px), 100%); max-height: min(90dvh, 100%); display: flex; flex-direction: column; background: var(--gf-surface-raised); border-radius: var(--gf-radius-modal); box-shadow: var(--gf-shadow-modal), var(--gf-lit-edge); border: 1px solid var(--gf-border); transform-origin: var(--origin, center); animation: gf-zoom-in var(--gf-spring-sheet-dur) var(--gf-spring-sheet) both; outline: none; }
.gf-scrim[data-closing="true"] .gf-modal { animation: gf-zoom-out var(--gf-dur-fast) var(--gf-ease-in) both; }
.gf-modal[data-size="sm"] { --w: 440px; } .gf-modal[data-size="md"] { --w: 560px; } .gf-modal[data-size="lg"] { --w: 720px; } .gf-modal[data-size="xl"] { --w: 960px; }
.gf-modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 0; }
.gf-modal-head .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gf-modal-head h2 { font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.005em; }
.gf-modal-head p { font-size: 13px; line-height: 19px; color: var(--gf-text-secondary); }
.gf-modal-head .gf-tile { margin-top: -2px; }
.gf-modal-body { padding: 20px; overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; }
.gf-modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--gf-hairline); background: var(--gf-surface-raised); border-radius: 0 0 var(--gf-radius-modal) var(--gf-radius-modal); }
.gf-modal-foot .left { margin-right: auto; }
.gf-close { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--gf-text-secondary); flex: none; margin: -4px -6px 0 0; transition: background-color var(--gf-dur-fast), color var(--gf-dur-fast), transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
.gf-close:hover { background: var(--gf-hover); color: var(--gf-text-strong); }
.gf-close:active { transform: scale(0.9); }
.gf-close svg { width: 18px; height: 18px; }

/* Bottom sheet (compact) — grabber, snap points, 1:1 drag with velocity-projected release (JS) */
/* min-width: 0 on the scrim's grid items: otherwise wide content (a fixed-width panel) grows the scrim's single grid
   track past the viewport and the sheet or dialog comes out wider than the screen. Wide content scrolls inside the body. */
.gf-sheet, .gf-modal { min-width: 0; }
/* Position: the drag, the detents and the settle move `translate` (JS, on a spring that carries the release velocity);
   opening and closing slide on `transform` (keyframes) — the two add up, so neither has to stop for the other. */
.gf-sheet { position: relative; width: 100%; max-height: 92dvh; display: flex; flex-direction: column; background: var(--gf-surface-raised); border-radius: var(--gf-radius-sheet) var(--gf-radius-sheet) 0 0; box-shadow: var(--gf-shadow-modal), var(--gf-lit-edge); padding-bottom: var(--gf-safe-bottom); animation: gf-slide-up var(--gf-spring-sheet-dur) var(--gf-spring-sheet) both; touch-action: none; will-change: transform, translate; outline: none; }
.gf-scrim[data-closing="true"] .gf-sheet { animation: gf-slide-down-out var(--gf-dur-moderate) var(--gf-ease-in) both; }
.gf-sheet[data-dragging="true"], .gf-sheet[data-dragging="true"] .grab { cursor: grabbing; }
.gf-sheet .grab { display: grid; place-items: center; height: 24px; flex: none; cursor: grab; }
.gf-sheet .grab::before { content: ''; width: 36px; height: 5px; border-radius: 3px; background: var(--gf-border-strong); }
/* A sheet's scrim is a layer of its own, so it can follow the sheet (--gf-sheet-dim, set by JS): full at the largest
   detent, lighter at a smaller one, fading out as the sheet is dragged away. */
.gf-scrim[data-align="end"]:not([data-transparent]) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.gf-scrim[data-align="end"]:not([data-transparent])::before { content: ''; position: fixed; inset: 0; background: var(--gf-scrim); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: var(--gf-sheet-dim, 1); pointer-events: none; }
/* Detents: the grabber is a button that cycles them (a 44 px target around the 36 × 5 pill); while the sheet rests below
   its largest detent the footer stays at the screen's bottom edge, and the body doesn't scroll — a drag on it moves the
   sheet, and wheel or focus below the fold expands it first (JS). */
.gf-sheet button.grab { position: relative; align-self: center; width: 88px; border-radius: var(--gf-radius-pill); }
.gf-sheet button.grab::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: var(--gf-hit); transform: translateY(-50%); }
.gf-sheet[data-sized] .gf-modal-foot { position: relative; z-index: 1; translate: 0 calc(-1 * var(--gf-sheet-foot, 0px)); }
/* …and the body ends where that footer begins: it is clipped by the same offset that lifts the footer, so no row sits
   (half-seen, unreachable) under the buttons. Fully expanded, the offset is 0 and nothing is clipped. */
.gf-sheet[data-sized] .gf-modal-body { clip-path: inset(0 0 var(--gf-sheet-foot, 0px) 0); }
.gf-sheet[data-expanded="false"] .gf-modal-body { overflow: hidden; touch-action: none; }
.gf-sheet .gf-modal-head { padding-top: 4px; }
.gf-sheet .gf-modal-body { touch-action: pan-y; }
.gf-sheet .gf-modal-foot { border-radius: 0; flex-direction: column; align-items: stretch; padding-bottom: 8px; }
.gf-sheet .gf-modal-foot .gf-btn { width: 100%; height: var(--gf-control-lg); }
.gf-sheet .gf-modal-foot .left { margin: 0; }
/* Danger confirmations on phones: the destructive button sits above Cancel, and Cancel is lowest (HIG action sheets).
   DOM order stays Cancel → destructive, so focus still starts on Cancel. */
.gf-sheet .gf-modal-foot[data-danger] { flex-direction: column-reverse; }
.gf-sheet[data-full="true"] { height: 100dvh; max-height: 100dvh; border-radius: 0; }
/* A sheet with no header (Menu, Popover, ContextMenu on phones) still has a × — top-right, beside the grabber */
.gf-sheet > .gf-sheet-x { position: absolute; top: 8px; right: 12px; margin: 0; z-index: 1; }

/* Drawer / slide-over (right) — compact renders it full-screen with a back button */
.gf-drawer { position: relative; width: min(var(--w, 480px), 100vw); height: 100dvh; display: flex; flex-direction: column; background: var(--gf-surface-raised); box-shadow: var(--gf-shadow-modal), var(--gf-lit-edge); border-left: 1px solid var(--gf-border); animation: gf-slide-in-right var(--gf-spring-smooth-dur) var(--gf-spring-smooth) both; outline: none; }
.gf-scrim[data-closing="true"] .gf-drawer { animation: gf-slide-out-right var(--gf-dur-moderate) var(--gf-ease-in) both; }
.gf-drawer[data-size="lg"] { --w: 640px; }
@media (max-width: 1023.98px) { .gf-drawer { --w: 80vw; } }
@media (max-width: 599.98px) { .gf-drawer { --w: 100vw; border-left: 0; } }
.gf-drawer .gf-modal-foot { margin-top: auto; }

/* Menu / popover */
.gf-menu { min-width: 200px; max-width: 320px; padding: 6px; border-radius: var(--gf-radius-tile); background: var(--gf-surface-raised); border: 1px solid var(--gf-border); box-shadow: var(--gf-shadow-dropdown), var(--gf-lit-edge); transform-origin: var(--origin, top left); animation: gf-zoom-in var(--gf-spring-sheet-dur) var(--gf-spring-sheet) both; outline: none; z-index: var(--gf-z-dropdown); }
.gf-menu[data-closing="true"] { animation: gf-zoom-out var(--gf-dur-fast) var(--gf-ease-in) both; }
.gf-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border-radius: var(--gf-radius-sm); font-size: 14px; color: var(--gf-text); text-align: left; white-space: nowrap; cursor: pointer; transition: background-color var(--gf-dur-fast); -webkit-tap-highlight-color: transparent; }
.gf-menu-item svg { width: 16px; height: 16px; color: var(--gf-text-secondary); flex: none; }
.gf-menu-item:hover, .gf-menu-item[data-active="true"] { background: var(--gf-hover); color: var(--gf-text-strong); }
.gf-menu-item:active { background: var(--gf-pressed); }
/* Disabled items look disabled. Native :disabled items are skipped by the keyboard, so they never highlight;
   aria-disabled options (listbox) stay reachable by the arrows — APG — so the active highlight still shows on them. */
.gf-menu-item:disabled, .gf-menu-item[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.gf-menu-item:disabled:hover, .gf-menu-item:disabled:active, .gf-menu-item:disabled[data-active="true"],
.gf-menu-item[aria-disabled="true"]:hover:not([data-active="true"]), .gf-menu-item[aria-disabled="true"]:active,
.gf-menu-item[data-tone]:disabled:hover { background: transparent; }
.gf-menu-item .k { margin-left: auto; }
.gf-menu-item[data-tone="danger"] { color: var(--gf-danger-text); }
.gf-menu-item[data-tone="danger"] svg { color: var(--gf-danger); }
.gf-menu-item[data-tone="danger"]:hover { background: var(--gf-danger-subtle); }
.gf-menu-item[aria-checked="true"]::before { content: ''; }
.gf-menu-sep { height: 1px; margin: 6px -6px; background: var(--gf-hairline); }
.gf-menu-label { padding: 8px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gf-text-muted); }
.gf-menu-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--gf-hairline); }
.gf-menu-head .t { display: flex; flex-direction: column; min-width: 0; }
.gf-menu-head .t b { font-size: 13px; font-weight: 600; color: var(--gf-text-strong); }
.gf-menu-head .t span { font-size: 12px; color: var(--gf-text-muted); overflow: hidden; text-overflow: ellipsis; }
/* Action sheet form (compact) */
.gf-sheet .gf-menu-item { height: 52px; font-size: 16px; border-radius: var(--gf-radius-control); padding: 0 14px; }
.gf-sheet .gf-menu-item svg { width: 20px; height: 20px; }
.gf-popover { padding: 16px; min-width: 240px; max-width: min(380px, calc(100vw - 32px)); }

/* Floating wrapper (JS positions) */
.gf-float { position: fixed; z-index: var(--gf-z-dropdown); }
/* Opened from inside a Modal, Drawer or palette: above that layer's scrim (Float sets data-nested) */
.gf-float[data-nested] { z-index: calc(var(--gf-z-modal) + 1); }

/* Tooltip — 150 ms open delay, instant on hover-adjacent; never for essential info.
   WCAG 1.4.13: the bubble takes the pointer (so it can be hovered and stays open), and Esc dismisses it (JS). */
.gf-tooltip { position: fixed; z-index: var(--gf-z-tooltip); padding: 6px 10px; border-radius: 7px; background: var(--gf-text-strong); color: var(--gf-text-inverted); font-size: 12px; font-weight: 500; line-height: 16px; max-width: 260px; animation: gf-zoom-in var(--gf-dur-fast) var(--gf-ease-out) both; transform-origin: var(--origin, bottom center); }
.dark .gf-tooltip { background: var(--gf-ink-800); border: 1px solid var(--gf-border-strong); color: var(--gf-text-strong); }
.gf-tooltip .gf-kbd { margin-left: 6px; background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.18); color: inherit; }
@media (hover: none) { .gf-tooltip { display: none; } }

/* Toasts — top-right stack on medium+; on compact they sit at the BOTTOM, above the bottom nav, one at a time
   (thumb reach for Undo, Material snackbar placement); swipe to dismiss */
.gf-toaster { position: fixed; z-index: var(--gf-z-toast); top: calc(16px + var(--gf-safe-top)); right: 16px; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
@media (max-width: 599.98px) {
  .gf-toaster { top: auto; bottom: calc(var(--gf-bottom-nav) + 12px + var(--gf-safe-bottom)); right: 12px; left: 12px; width: auto; align-items: stretch; flex-direction: column-reverse; }
  .gf-toast { animation-name: gf-toast-in-up; }
}
@keyframes gf-toast-in-up { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
/* Phones: the FAB clears the whole toast, however tall (one with Undo is ~98 px; controls.css's fixed 76 px lift is
   not enough). ToastProvider publishes the toaster's height as --gf-toaster-h; the FAB sits 16 px above the toast. */
@media (max-width: 599.98px) { body:has(.gf-toaster .gf-toast) .gf-fab { translate: 0 calc(-1 * max(var(--gf-toaster-h, 0px) + 12px, 76px)); } }
.gf-toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; padding: 12px 12px 12px 14px; border-radius: var(--gf-radius-card); background: var(--gf-surface-raised); border: 1px solid var(--gf-border); box-shadow: var(--gf-shadow-dropdown), var(--gf-lit-edge); animation: gf-toast-in var(--gf-spring-sheet-dur) var(--gf-spring-sheet) both; touch-action: pan-y; position: relative; overflow: hidden; }
@keyframes gf-toast-in { from { opacity: 0; transform: translateY(-12px) scale(0.96); } to { opacity: 1; transform: none; } }
.gf-toast[data-closing="true"] { animation: gf-toast-out var(--gf-dur-fast) var(--gf-ease-in) both; }
@keyframes gf-toast-out { to { opacity: 0; transform: translateX(24px) scale(0.98); } }
.gf-toast > .gf-tile { --s: 32px; border-radius: var(--gf-radius-sm); }
.gf-toast > .gf-tile svg { width: 16px; height: 16px; }
.gf-toast .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
.gf-toast .body b { font-size: 14px; font-weight: 600; color: var(--gf-text-strong); }
.gf-toast .body span { font-size: 13px; color: var(--gf-text-secondary); }
.gf-toast .body .act { margin-top: 6px; align-self: flex-start; }
.gf-toast .gf-close { margin: 0; width: 28px; height: 28px; }
.gf-toast .bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--tone, var(--gf-primary)); width: 100%; transform-origin: left; animation: gf-toast-bar var(--ttl, 4000ms) linear both; }
@keyframes gf-toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
/* Hover or focus pauses the dismissal timer (JS, data-paused) and the hairline together */
.gf-toast:hover .bar, .gf-toast[data-paused] .bar { animation-play-state: paused; }

/* Accordion / collapsible — height animates via grid-template-rows */
.gf-accordion { display: flex; flex-direction: column; }
.gf-acc-item { border-bottom: 1px solid var(--gf-hairline); }
.gf-acc-item:last-child { border-bottom: 0; }
.gf-acc-head { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 12px 0; text-align: left; font-size: 14px; font-weight: 600; color: var(--gf-text-strong); -webkit-tap-highlight-color: transparent; }
.gf-acc-head > svg.chev { width: 16px; height: 16px; margin-left: auto; color: var(--gf-text-muted); transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); flex: none; }
.gf-acc-head[aria-expanded="true"] > svg.chev { transform: rotate(180deg); }
.gf-collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--gf-dur-moderate) var(--gf-ease-emphasized); }
.gf-collapse[data-open="true"] { grid-template-rows: 1fr; }
.gf-collapse > div { overflow: hidden; min-height: 0; }
.gf-collapse > div > div { padding-bottom: 16px; font-size: 14px; color: var(--gf-text); opacity: 0; transform: translateY(-4px); transition: opacity var(--gf-dur-base) var(--gf-ease), transform var(--gf-dur-base) var(--gf-ease); }
.gf-collapse[data-open="true"] > div > div { opacity: 1; transform: none; transition-delay: 60ms; }

/* Hover card */
.gf-hovercard { padding: 14px; min-width: 260px; display: flex; flex-direction: column; gap: 10px; }
/* .who and .stats live in extra.css (the email line is .who span span — a bare .who span would also grey out the avatar's initials) */

/* Focus trap sentinel (visually nothing) */
.gf-trap { position: fixed; width: 0; height: 0; outline: none; }

@media (prefers-reduced-motion: reduce) {
  /* A sheet still follows the finger (that is the gesture); it settles at once instead of on a spring (JS) */
  .gf-scrim, .gf-modal, .gf-sheet, .gf-drawer, .gf-menu, .gf-tooltip, .gf-toast, .gf-nav[data-mode="drawer"] { animation: gf-fade-in 160ms linear both !important; }
  .gf-scrim[data-closing="true"], [data-closing="true"] .gf-modal, [data-closing="true"] .gf-sheet, [data-closing="true"] .gf-drawer, .gf-menu[data-closing="true"], .gf-toast[data-closing="true"] { animation: gf-fade-out 120ms linear both !important; }
  .gf-collapse { transition: none; }
}

/* ── extra.css ── */
/* Greyfeathers v2 — styles for the extended catalogue: combobox, dates, rating, swatches,
   typography bits, media card, panel, notifications, comments, tree, kanban, context/hover cards,
   lightbox, page states, files, heatmap, table extras, swipe rows, pull-to-refresh, search screen. */

/* ── Combobox ── */
.gf-combo { cursor: text; position: relative; }
/* MultiSelect: 26 px chips and filter line inside the field (the phone layer in touch.css grows the input's target) */
.gf-taginput:where(.gf-combo) .gf-tag, .gf-taginput:where(.gf-combo) input { height: 26px; }
.gf-combo .chev { width: 16px; height: 16px; color: var(--gf-text-muted); margin-left: auto; transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); flex: none; }
.gf-combo[data-open] .chev { transform: rotate(180deg); }
.gf-combo[data-open] { border-color: var(--gf-focus-border); box-shadow: var(--gf-focus-halo); }
.gf-combo[data-invalid] { border-color: var(--gf-danger); }
.gf-combo-pop { min-width: 260px; max-width: 420px; padding: 6px; }
.gf-combo-list { display: flex; flex-direction: column; gap: 1px; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; }
.gf-combo-opt { height: auto; min-height: 36px; padding: 6px 10px; }
.gf-combo-opt .t { display: flex; flex-direction: column; min-width: 0; flex: 1; text-align: left; }
.gf-combo-opt .t small { font-size: 12px; color: var(--gf-text-muted); }
.gf-combo-opt .chk { margin-left: auto; color: var(--gf-primary) !important; }
.gf-combo-opt[aria-selected="true"] { color: var(--gf-text-strong); }
.gf-combo-note { padding: 10px 12px; font-size: 12px; color: var(--gf-text-muted); text-align: center; }
.gf-sheet .gf-combo-opt { min-height: 48px; font-size: 15px; }

/* ── Date pickers ── */
/* The field box is the wrapper (.gf-input-wrap: border, background, hover, focus ring). Inside it the trigger button
   fills the height and the free width, and the clear × is a flex sibling after it — side by side, neither covers the other. */
.gf-input-wrap.gf-datetrigger-wrap { padding: 0; min-width: 0; cursor: pointer; }
.gf-datetrigger-wrap[data-open] { border-color: var(--gf-focus-border); box-shadow: var(--gf-focus-halo); }
.gf-datetrigger { flex: 1 1 auto; align-self: stretch; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: inherit; text-align: left; cursor: pointer; }
.gf-datetrigger:focus-visible { box-shadow: none; } /* the box draws the ring (focus-within) */
.gf-datetrigger-wrap[data-size="sm"] > .gf-datetrigger { padding: 0 10px; }
.gf-datetrigger-wrap[data-size="lg"] > .gf-datetrigger { padding: 0 14px; }
.gf-datetrigger-wrap[data-clearable] > .gf-datetrigger { padding-right: 0; }
.gf-datetrigger-clear { margin-right: 8px; }
.gf-datetrigger .val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gf-text-strong); font-weight: 500; }
.gf-datetrigger .ph { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gf-text-muted); }
.gf-datetrigger > svg { width: 16px; height: 16px; flex: none; color: var(--gf-text-secondary); }
/* Date popovers size to their content (332 px; ~800 px for the range picker), never wider than the viewport minus 32 px */
.gf-datepop-wrap { padding: 0; border-radius: var(--gf-radius-lg); max-width: calc(100vw - 32px); }
.gf-datepop { padding: 16px 18px 14px; width: 332px; max-width: 100%; }
.gf-rangepop { display: grid; grid-template-columns: 148px 1fr; max-width: calc(100vw - 32px); }
.gf-rangepop .gf-presets { padding: 10px 8px; border-right: 1px solid var(--gf-hairline); display: flex; flex-direction: column; gap: 2px; }
.gf-rangepop .gf-presets .gf-menu-item { height: 34px; font-size: 13px; }
.gf-rangepop .gf-presets .gf-menu-item[data-active="true"] { background: var(--gf-primary-tint); color: var(--gf-primary-text); font-weight: 600; }
.gf-rangecals { display: flex; gap: 20px; padding: 16px 18px 0; }
.gf-rangepop .gf-datefoot { grid-column: 1 / -1; padding: 12px 18px 14px; border-top: 1px solid var(--gf-hairline); }
.gf-sheet .gf-rangepop { grid-template-columns: 1fr; }
.gf-sheet .gf-rangepop .gf-presets { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--gf-hairline); gap: 6px; padding: 0 0 12px; }
.gf-sheet .gf-rangepop .gf-presets .gf-menu-item { height: 32px; border-radius: var(--gf-radius-pill); border: 1px solid var(--gf-border); padding: 0 12px; }
.gf-sheet .gf-rangecals { padding: 12px 0 0; }
.gf-sheet .gf-datepop { width: auto; padding: 0; }
.gf-sheet .gf-datefoot { padding: 12px 0 0; }
.gf-cal { width: 296px; max-width: 100%; }
.gf-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.gf-cal-title { font-size: 16px; font-weight: 700; color: var(--gf-text-strong); letter-spacing: -0.01em; }
.gf-cal-days { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 2px; }
.gf-cal-days span { text-align: center; font-size: 12px; font-weight: 500; color: var(--gf-text-muted); height: 24px; line-height: 24px; }
.gf-cal-grid { display: flex; flex-direction: column; gap: 2px; }
.gf-cal-row { display: grid; grid-template-columns: repeat(7, 1fr); }
.gf-cal-grid button { position: relative; height: 38px; width: 100%; display: grid; place-items: center; font-size: 14px; font-weight: 500; color: var(--gf-text); border-radius: 0; -webkit-tap-highlight-color: transparent; }
.gf-cal-grid button::before { content: ''; position: absolute; width: 36px; height: 36px; border-radius: 50%; z-index: -1; transition: background-color var(--gf-dur-fast), transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
.gf-cal-grid button { isolation: isolate; }
@media (hover: hover) { .gf-cal-grid button:not(:disabled):hover::before { background: var(--gf-hover); } }
.gf-cal-grid button:active::before { transform: scale(0.9); }
/* Days of the next / previous month stay pickable, so their numbers keep text contrast (muted ≥ 4.5:1, lighter weight);
   only days that are really disabled (outside min / max) fade and strike through (below). */
.gf-cal-grid button[data-out] { color: var(--gf-text-muted); font-weight: 400; }
.gf-cal-grid button[data-out][data-range] { color: var(--gf-text-secondary); }
.gf-cal-grid button[data-today] { color: var(--gf-primary-text); font-weight: 700; }
.gf-cal-grid button[data-today]::after { content: ''; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--gf-primary); }
.gf-cal-grid button[data-sel] { color: var(--gf-on-primary); font-weight: 600; }
.gf-cal-grid button[data-sel]::before { background: var(--gf-primary); box-shadow: var(--gf-shadow-glow); }
.gf-cal-grid button[data-sel][data-today]::after { background: var(--gf-on-primary); }
.gf-cal-grid button[data-range] { background: var(--gf-primary-tint); }
.gf-cal-grid button[data-start] { background: linear-gradient(to right, transparent 50%, var(--gf-primary-tint) 50%); }
.gf-cal-grid button[data-end] { background: linear-gradient(to left, transparent 50%, var(--gf-primary-tint) 50%); }
.gf-cal-grid button[data-start][data-end] { background: transparent; }
.gf-cal-grid button:disabled { color: var(--gf-text-disabled); text-decoration: line-through; cursor: not-allowed; }
.gf-cal-grid button:focus-visible { box-shadow: none; }
.gf-cal-grid button:focus-visible::before { box-shadow: var(--gf-focus); }
.gf-datefoot { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gf-hairline); }
.gf-timerow { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--gf-hairline); color: var(--gf-text-secondary); }
.gf-timerow svg { width: 18px; height: 18px; }
.gf-timerow input { flex: 1; }
.gf-timelist { padding: 6px; min-width: 160px; }

/* ── Rating · swatches · toggle · split ── */
.gf-rating { display: inline-flex; align-items: center; gap: 2px; cursor: pointer; border-radius: 6px; }
.gf-rating[role="img"] { cursor: default; }
.gf-rating svg { color: var(--gf-border-control); fill: transparent; transition: color var(--gf-dur-fast), fill var(--gf-dur-fast), transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
.gf-rating svg[data-on], .gf-rating .star[data-on] > svg, .gf-rating .star > svg.half { color: var(--gf-rating); fill: var(--gf-rating); }
.gf-rating .star { display: inline-grid; place-items: center; flex: none; }
.gf-rating .star > svg { grid-area: 1 / 1; }
.gf-rating .star > svg.half { clip-path: inset(0 50% 0 0); } /* the filled left half over the outline */
/* Interactive: each star is a pointer target of at least 24 × 24, whatever its drawn size (WCAG 2.5.8) */
.gf-rating:not([role="img"]) .star { min-width: 24px; min-height: 24px; }
.gf-rating:not([role="img"]) .star:hover > svg { transform: scale(1.2); }
.gf-swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.gf-swatches button { position: relative; width: 28px; height: 28px; border-radius: 8px; background: var(--c); display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 1px var(--gf-line); transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy), box-shadow var(--gf-dur-fast); }
.gf-swatches button svg { width: 14px; height: 14px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.gf-swatches button:hover { transform: scale(1.08); }
.gf-swatches button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--gf-surface), 0 0 0 4px var(--c); }
/* Focus ADDS an outline outside the selection ring (2 px surface gap): recolouring the ring would be invisible on a
   swatch whose own colour is close to the focus colour (Sapphire). 12 px gaps keep the outline off the neighbours. */
.gf-swatches button:focus-visible { outline: 2px solid var(--gf-focus-border); outline-offset: 2px; }
.gf-swatches button[aria-checked="true"]:focus-visible { outline-offset: 6px; }
/* Phones: 36 px swatches with a 44 px target (the hit area reaches 4 px into each 12 px gap, so targets never overlap). */
@media (max-width: 599.98px) {
  .gf-swatches button { width: 36px; height: 36px; border-radius: 10px; }
  .gf-swatches button::before { content: ''; position: absolute; inset: -4px; }
}
.gf-btn.gf-toggle[aria-pressed="true"] { background: var(--gf-primary-tint); color: var(--gf-primary-text); border-color: color-mix(in srgb, var(--gf-primary) 40%, var(--gf-border)); }
.gf-splitbtn { display: inline-flex; }
.gf-splitbtn > .gf-btn:first-child { border-radius: var(--gf-radius-control) 0 0 var(--gf-radius-control); }
.gf-splitbtn > .gf-btn:last-child, .gf-splitbtn > * > .gf-btn { border-radius: 0 var(--gf-radius-control) var(--gf-radius-control) 0; margin-left: 1px; }
.gf-splitbtn > .gf-btn[data-variant="primary"]:first-child { box-shadow: var(--gf-shadow-glow); }
.gf-splitbtn > * > .gf-btn[data-variant="primary"] { box-shadow: inset 1px 0 0 rgba(255,255,255,0.25), var(--gf-shadow-glow); padding: 0 8px; min-width: 36px; }

/* ── Typography bits ── */
/* Highlight: a 40 % warning wash plus weight 600, so a match shows without relying on the tint alone.
   Text inside is always strong: 13:1 on the wash in light mode, 6.4:1 in dark. */
.gf-mark { background: color-mix(in srgb, var(--gf-warning) 40%, transparent); color: var(--gf-text-strong); font-weight: 600; border-radius: 3px; padding: 0 1px; }
.gf-divider-label { display: flex; align-items: center; gap: 12px; }
.gf-divider-label > span:first-child, .gf-divider-label > span:last-child { flex: 1; height: 1px; background: var(--gf-hairline); }
.gf-vdivider { display: inline-block; width: 1px; align-self: stretch; min-height: 20px; background: var(--gf-border); margin: 0 4px; }
.gf-scrollshadow { position: relative; min-height: 0; }
.gf-scrollshadow::before, .gf-scrollshadow::after { content: ''; position: absolute; pointer-events: none; opacity: 0; transition: opacity var(--gf-dur-base); z-index: 1; }
.gf-scrollshadow[data-axis="y"]::before { top: 0; left: 0; right: 0; height: 28px; background: linear-gradient(var(--gf-surface), transparent); }
.gf-scrollshadow[data-axis="y"]::after { bottom: 0; left: 0; right: 0; height: 28px; background: linear-gradient(transparent, var(--gf-surface)); }
.gf-scrollshadow[data-axis="x"]::before { left: 0; top: 0; bottom: 0; width: 28px; background: linear-gradient(to right, var(--gf-surface), transparent); }
.gf-scrollshadow[data-axis="x"]::after { right: 0; top: 0; bottom: 0; width: 28px; background: linear-gradient(to left, var(--gf-surface), transparent); }
.gf-scrollshadow[data-start]::before, .gf-scrollshadow[data-end]::after { opacity: 1; }

/* ── Media card · panel ── */
.gf-media { position: relative; aspect-ratio: 16 / 9; background: var(--gf-surface-sunken); display: grid; place-items: center; color: var(--gf-text-muted); overflow: hidden; }
.gf-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--gf-dur-slow) var(--gf-ease-out); }
@media (hover: hover) { .gf-card[data-interactive]:hover .gf-media img { transform: scale(1.03); } }  /* clickable cards, real hover only */
.gf-media-badge { position: absolute; top: 10px; left: 10px; }
.gf-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gf-card-pad) 10px; }

/* ── Notification · comment ── */
.gf-notif { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--gf-hairline); color: var(--gf-text); transition: background-color var(--gf-dur-fast); }
.gf-notif:last-child { border-bottom: 0; }
.gf-notif:hover { background: var(--gf-hover); }
.gf-notif[data-unread] { background: var(--gf-primary-subtle); }
.gf-notif .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gf-notif .main b { font-size: 14px; font-weight: 600; color: var(--gf-text-strong); }
.gf-notif .main .b { font-size: 13px; color: var(--gf-text-secondary); }
.gf-notif .time { font-size: 12px; color: var(--gf-text-muted); flex: none; }
.gf-notif[data-unread] .time { color: var(--gf-text-secondary); } /* muted text is under 4.5 : 1 on the unread tint in dark mode */
.gf-comment { display: flex; gap: 10px; padding: 12px 0; }
.gf-comment .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gf-comment .body b { font-size: 13px; font-weight: 600; color: var(--gf-text-strong); }
.gf-comment .txt { font-size: 14px; color: var(--gf-text); }
.gf-comment .acts { display: flex; gap: 2px; margin-left: -8px; }
.gf-comment .replies { margin-top: 6px; padding-left: 14px; border-left: 2px solid var(--gf-hairline); }

/* ── Tree ── */
.gf-tree { font-size: 14px; }
.gf-tree-row { display: flex; align-items: center; gap: 4px; height: 32px; padding-right: 8px; border-radius: var(--gf-radius-sm); color: var(--gf-text); transition: background-color var(--gf-dur-fast); }
.gf-tree-row:hover { background: var(--gf-hover); }
.gf-tree-row[data-selected] { background: var(--gf-primary-subtle); color: var(--gf-primary-text); }
.gf-tree-row .tw { width: 24px; height: 24px; display: grid; place-items: center; color: var(--gf-text-muted); border-radius: 6px; }
.gf-tree-row .tw svg { width: 16px; height: 16px; transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
.gf-tree-row .lbl { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 100%; text-align: left; color: inherit; border-radius: 6px; }
.gf-tree-row .lbl svg { width: 16px; height: 16px; color: var(--gf-text-secondary); flex: none; }
.gf-tree-row .meta { margin-left: auto; font-size: 12px; color: var(--gf-text-muted); }
.gf-tree-row .gf-check .box { margin: 0; }
/* The treeitem holds its whole subtree, so the focus ring goes on its own row, not around the subtree */
.gf-tree [role="treeitem"]:focus-visible { box-shadow: none; }
.gf-tree [role="treeitem"]:focus-visible > .gf-tree-row { box-shadow: inset 0 0 0 2px var(--gf-focus-border); }
/* Phones: 44 px rows and a 44 × 44 twisty (touch targets) */
@media (max-width: 599.98px) { .gf-tree-row { height: 44px; } .gf-tree-row .tw { width: 44px; height: 44px; } }

/* ── Kanban ── */
.gf-kanban { display: grid; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.gf-kanban-col { padding: 10px; border-radius: var(--gf-radius-card); background: var(--gf-surface-sunken); min-width: 0; }

/* ── Details · hover card · lightbox ── */
.gf-details summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 0; font-size: 14px; font-weight: 600; color: var(--gf-text-strong); cursor: pointer; }
.gf-details summary::-webkit-details-marker { display: none; }
.gf-details summary .chev { width: 16px; height: 16px; margin-left: auto; color: var(--gf-text-muted); transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
.gf-details[open] summary .chev { transform: rotate(180deg); }
.gf-details .body { padding: 0 0 16px; font-size: 14px; animation: gf-rise-in var(--gf-dur-base) var(--gf-ease-out) both; }
.gf-hovercard { padding: 14px; min-width: 260px; }
.gf-hovercard .who { display: flex; align-items: center; gap: 10px; }
.gf-hovercard .who b { display: block; font-size: 14px; font-weight: 600; color: var(--gf-text-strong); }
.gf-hovercard .who span span { font-size: 12px; color: var(--gf-text-muted); }
.gf-hovercard .stats { display: flex; gap: 16px; font-size: 12px; color: var(--gf-text-secondary); }
.gf-hovercard .stats b { color: var(--gf-text-strong); font-weight: 600; font-variant-numeric: tabular-nums; }
.gf-lightbox { place-items: center; padding: 72px 72px 24px; }
.gf-lightbox-bar { position: absolute; top: 0; left: 0; right: 0; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.gf-lightbox-bar .gf-btn:hover { background: rgba(255,255,255,0.12); }
.gf-lightbox-media { max-width: 100%; max-height: 100%; display: grid; place-items: center; }
.gf-lightbox-media img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: var(--gf-radius-tile); box-shadow: var(--gf-shadow-modal); }
.gf-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,0.1); transition: background-color var(--gf-dur-fast); }
.gf-lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.gf-lightbox-nav svg { width: 22px; height: 22px; }
.gf-lightbox:focus-visible { box-shadow: none; } /* the dialog takes focus on open; the ring belongs to its controls */
/* Phones: previous / next stay visible as 48 px buttons in the bottom corners, in thumb reach */
@media (max-width: 599.98px) {
  .gf-lightbox { padding: 64px 12px calc(88px + var(--gf-safe-bottom)); }
  .gf-lightbox-media img { max-height: calc(100dvh - 160px); }
  .gf-lightbox-nav { top: auto; bottom: calc(20px + var(--gf-safe-bottom)); transform: none; width: 48px; height: 48px; }
}

/* ── Page states · loaders ── */
.gf-pagestate { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 32px 16px; }
.gf-fullloader { position: fixed; inset: 0; z-index: var(--gf-z-modal); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--gf-canvas); }
.gf-sectionloader { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-radius: var(--gf-radius-card); border: 1px dashed var(--gf-border); }
.gf-offline { position: sticky; top: 0; z-index: calc(var(--gf-z-sticky) - 1); display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--gf-warning-subtle); color: var(--gf-warning-text); border-bottom: 1px solid var(--gf-warning-border); font-size: 13px; font-weight: 500; animation: gf-rise-in var(--gf-dur-base) var(--gf-ease-out) both; }
.gf-offline svg { width: 16px; height: 16px; }
/* Inside the app shell it sticks under the top bar instead of sliding over it */
.gf-offline { top: var(--gf-top-chrome, 0px); } /* under the shell's sticky top chrome, whichever shell it is */
.gf-file .err { color: var(--gf-danger-text); }

/* ── Files ── */
.gf-imgpreview { position: relative; display: inline-grid; place-items: center; border-radius: var(--gf-radius-sm); background: var(--gf-surface-sunken); color: var(--gf-text-muted); overflow: hidden; border: 1px solid var(--gf-border); }
.gf-imgpreview img { width: 100%; height: 100%; object-fit: cover; }
.gf-imgpreview svg { width: 22px; height: 22px; }
.gf-imgpreview button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(11,18,32,0.7); color: #fff; }
.gf-imgpreview button svg { width: 12px; height: 12px; }
.gf-attach { gap: 6px; }
.gf-attach > svg { width: 14px; height: 14px; color: var(--gf-text-muted); }
.gf-attach .n { font-weight: 500; color: var(--gf-text); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-attach button.n:hover { text-decoration: underline; }

/* ── Heatmap ── */
.gf-heatmap { display: grid; gap: 4px; font-size: 11px; color: var(--gf-text-muted); align-items: center; }
.gf-heatmap .hc { text-align: center; }
.gf-heatmap .hr { padding-right: 6px; white-space: nowrap; }
.gf-heatmap .cell { aspect-ratio: 1; border-radius: 3px; background: color-mix(in srgb, var(--gf-primary) calc(var(--a) * 100%), var(--gf-surface-sunken)); transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
.gf-heatmap .cell:hover { transform: scale(1.12); outline: 1px solid var(--gf-border-strong); }

/* ── Table extras ── */
.gf-table-tools { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--gf-hairline); }
.gf-table th.exp, .gf-table td.exp { width: 44px; padding-left: 8px; padding-right: 4px; }
.gf-table-expanded td { background: var(--gf-surface-sunken); padding: 16px var(--gf-cell-px) 16px calc(var(--gf-cell-px) + 48px); white-space: normal; }
.gf-table[data-sticky] th { position: sticky; }
.gf-editcell { width: 100%; text-align: left; padding: 4px 6px; margin: -4px -6px; border-radius: 6px; color: inherit; font: inherit; font-variant-numeric: inherit; cursor: text; }
.gf-editcell:hover { background: var(--gf-hover); box-shadow: inset 0 0 0 1px var(--gf-border); }
@media (max-width: 599.98px) { .gf-table[data-responsive] td.exp { display: none; } .gf-table-expanded td { padding-left: 16px; } .gf-table-tools .gf-segmented { display: none; } }

/* ── ReviewCard ── when the card is too narrow for one row of actions (a two-up grid on a tablet), Reject and Request
   changes share a row and Approve gets a full-width row under them, instead of wrapping alone to the right. */
.gf-review { container-type: inline-size; }
@container (max-width: 359.98px) {
  .gf-review-actions.gf-inline { display: grid; grid-template-columns: 1fr 1fr; }
  .gf-review-actions.gf-inline > :last-child { grid-column: 1 / -1; }
}

/* ── Pipeline (DocumentDiagram) ── */
.gf-pipeline { display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap; row-gap: 16px; }
.gf-pipeline .step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 84px; font-size: 12px; color: var(--gf-text-secondary); }
.gf-pipeline .node { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gf-border-control); background: var(--gf-surface); z-index: 1; transition: all var(--gf-dur-base); }
.gf-pipeline .rail { position: absolute; top: 6px; left: 50%; width: 100%; height: 2px; background: var(--gf-border); }
.gf-pipeline .step[data-state="done"] .node, .gf-pipeline .step[data-state="done"] .rail { background: var(--gf-success); border-color: var(--gf-success); }
.gf-pipeline .step[data-state="current"] .node { border-color: var(--tone); background: var(--tone); box-shadow: 0 0 0 4px var(--tone-tint); }
.gf-pipeline .step[data-state="current"] .lbl { color: var(--gf-text-strong); font-weight: 600; }
/* Not reached (the branch skipped it): a dashed, hollow node and muted text that still reads at 4.5 : 1, never a fade. */
.gf-pipeline .step[data-state="off"] .node { border-style: dashed; background: transparent; }
.gf-pipeline .step[data-state="off"] .lbl { color: var(--gf-text-muted); }
.gf-pipeline .step .rail[data-off] { background: repeating-linear-gradient(90deg, var(--gf-border-control) 0 4px, transparent 4px 8px); }  /* on a branch, the rail into Approved was never travelled */
.gf-pipeline .branch { display: flex; gap: 0; margin-left: 12px; padding-left: 12px; border-left: 2px dashed var(--gf-border); }

/* ── Filter bar · notification panel ── */
.gf-filterbar { display: flex; flex-wrap: wrap; gap: 8px; }
.gf-filterbar .gf-select { width: auto; min-width: 140px; }
@media (max-width: 599.98px) { .gf-filterbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gf-gutter)); padding: 0 var(--gf-gutter); } .gf-filterbar .gf-select { flex: none; } }
/* Applied-filter × : a 16 px glyph with a 44 × 44 transparent target on phones */
.gf-filter-x { position: relative; }
@media (max-width: 599.98px) { .gf-filter-x::after { content: ''; position: absolute; left: 50%; top: 50%; width: var(--gf-hit); height: var(--gf-hit); transform: translate(-50%, -50%); } }
.gf-notifpanel { display: flex; flex-direction: column; margin: -16px; }
.gf-notifpanel .head { display: flex; align-items: center; padding: 14px 16px 8px; }
.gf-notifpanel .tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--gf-hairline); }
.gf-notifpanel .tabs button { height: 36px; padding: 0 10px; font-size: 13px; font-weight: 500; color: var(--gf-text-secondary); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.gf-notifpanel .tabs button[aria-pressed="true"] { color: var(--gf-primary-text); border-color: var(--gf-primary); font-weight: 600; }
.gf-notifpanel .list { max-height: 400px; }

/* ── Mobile: swipe row ── */
.gf-swipe { position: relative; overflow: hidden; }
/* The actions are painted only while they can be seen (SwipeRow sets data-revealed from the first sideways drag
   until the row has slid shut; data-open while it is open). Hidden, they can't show through the row or take focus. */
.gf-swipe-actions { position: absolute; inset: 0 0 0 auto; display: flex; visibility: hidden; }
.gf-swipe[data-revealed] .gf-swipe-actions, .gf-swipe[data-open] .gf-swipe-actions { visibility: visible; }
.gf-swipe-actions button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 80px; font-size: 11px; font-weight: 600; color: #fff; background: var(--tone-text, var(--gf-neutral)); }
.dark .gf-swipe-actions button { background: var(--tone, var(--gf-neutral)); color: var(--gf-ink-1000); }
.gf-swipe-actions button svg { width: 20px; height: 20px; }
.gf-swipe-content { position: relative; background: var(--gf-surface); touch-action: pan-y; will-change: transform; }

/* ── Mobile: pull to refresh ── */
.gf-ptr { position: relative; }
.gf-ptr-ind { display: grid; place-items: center; overflow: hidden; color: var(--gf-primary); }
.gf-ptr-ind span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gf-surface); box-shadow: var(--gf-shadow-card); }
.gf-ptr-ind svg { width: 16px; height: 16px; }

/* ── Mobile: search screen ── */
.gf-searchscreen { position: fixed; inset: 0; z-index: var(--gf-z-palette); background: var(--gf-canvas); display: flex; flex-direction: column; }
.gf-searchscreen .bar { display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--gf-safe-top)) 12px 8px; background: var(--gf-surface); border-bottom: 1px solid var(--gf-line); }
.gf-searchscreen .bar .gf-input-wrap { flex: 1; }
.gf-searchscreen .body { flex: 1; }

/* ── Large title collapse: the topbar title appears only once the page has scrolled ── */
.gf-shell:has(.gf-largetitle) .gf-topbar .title { opacity: 0; transform: translateY(6px); transition: opacity var(--gf-dur-base) var(--gf-ease), transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
.gf-shell:has(.gf-largetitle)[data-scrolled] .gf-topbar .title { opacity: 1; transform: none; }

/* ── DateFields (three typed fields) ── */
.gf-datefields { display: flex; gap: 10px; align-items: flex-end; }
.gf-datefield { display: flex; flex-direction: column; gap: 4px; }
.gf-datefield .gf-input { text-align: center; padding: 0 8px; }
.gf-datefield .gf-input[data-invalid] { border-color: var(--gf-danger); }

/* ── states.css ── */
/* Greyfeathers v2 — forced states for documentation (`.is-hover` `.is-focus` `.is-active`).
   These mirror the real :hover / :focus-visible / :active rules so the catalogue can show a states
   matrix without a pointer. Never use these classes in product code. */

.gf-btn.is-hover[data-variant="primary"] { background: var(--gf-primary-hover); box-shadow: var(--gf-shadow-glow-lg), inset 0 1px 0 rgba(255,255,255,0.14); transform: translateY(-1px); }
.gf-btn.is-active[data-variant="primary"] { background: var(--gf-primary-active); transform: scale(0.97); }
.gf-btn.is-hover[data-variant="secondary"] { background: var(--gf-hover); border-color: var(--gf-border-strong); }
.gf-btn.is-active[data-variant="secondary"] { background: var(--gf-pressed); transform: scale(0.97); }
.gf-btn.is-hover[data-variant="ghost"] { background: var(--gf-hover); color: var(--gf-text-strong); }
.gf-btn.is-active[data-variant="ghost"] { background: var(--gf-pressed); transform: scale(0.97); }
.gf-btn.is-hover[data-variant="outline"] { background: var(--gf-primary-subtle); border-color: var(--gf-primary); }
.gf-btn.is-hover[data-variant="tonal"] { background: color-mix(in srgb, var(--gf-primary) 24%, var(--gf-surface)); }
.gf-btn.is-hover[data-variant="destructive"] { filter: brightness(1.08); }
.gf-btn.is-hover[data-variant="destructive-ghost"] { background: var(--gf-danger-subtle); }
.gf-btn.is-hover[data-variant="link"] { text-decoration: underline; text-underline-offset: 3px; }
.gf-btn.is-focus, .gf-chip.is-focus, .gf-card.is-focus, .gf-tab.is-focus { box-shadow: var(--gf-focus); }
.gf-input-wrap.is-focus, .gf-input.is-focus, .gf-select.is-focus, .gf-textarea.is-focus { border-color: var(--gf-focus-border); box-shadow: var(--gf-focus-halo); }
.gf-input-wrap.is-hover, .gf-input.is-hover, .gf-select.is-hover, .gf-textarea.is-hover { border-color: var(--gf-border-strong); }
.gf-input-wrap.is-focus > svg:first-child { color: var(--gf-primary); }
.gf-check.is-hover input:not(:checked) + .box { border-color: var(--gf-primary); }
.gf-check.is-focus .box { box-shadow: var(--gf-focus); border-color: var(--gf-focus-border); }
.gf-check.is-active .box { transform: scale(0.88); }
.gf-switch.is-focus .track { box-shadow: var(--gf-focus); }
.gf-switch.is-active .track::after { width: calc(var(--thumb) + 6px); }
.gf-switch.is-active input:checked + .track::after { transform: translateX(calc(var(--w) - var(--h) - 6px)); }
.gf-card.is-hover[data-interactive] { transform: translateY(-2px); box-shadow: var(--gf-shadow-hover), var(--gf-lit-edge); border-color: var(--gf-border-strong); }
.gf-card.is-active[data-interactive] { transform: translateY(0) scale(0.985); }
.gf-list-item.is-hover { background: var(--gf-hover); }
.gf-list-item.is-active { background: var(--gf-pressed); transform: scale(0.99); }
.gf-nav-item.is-hover { background: var(--gf-hover); color: var(--gf-text-strong); }
.gf-nav-item.is-hover svg { color: var(--gf-text-strong); }
.gf-tab.is-hover { color: var(--gf-text-strong); background: var(--gf-hover); }
.gf-chip.is-hover { background: var(--gf-hover); border-color: var(--gf-border-strong); }
.gf-chip.is-active { transform: scale(0.95); }
.gf-menu-item.is-hover { background: var(--gf-hover); color: var(--gf-text-strong); }
.gf-menu-item.is-active { background: var(--gf-pressed); }
.gf-segmented button.is-active { transform: scale(0.95); }
.gf-fab.is-hover { box-shadow: var(--gf-shadow-glow-lg), 0 6px 16px rgba(11,18,32,0.18); }
.gf-fab.is-active { transform: scale(0.94); }
.gf-pagination .pages button.is-hover { background: var(--gf-hover); color: var(--gf-text-strong); }
.gf-dropzone.is-drag { border-color: var(--gf-primary); background: var(--gf-primary-subtle); transform: scale(1.01); }
.gf-slider.is-active input::-webkit-slider-thumb { transform: scale(1.25); box-shadow: 0 0 0 6px var(--gf-focus-ring), 0 1px 3px rgba(11,18,32,0.2); }
.gf-slider.is-active .bubble { opacity: 1; transform: translateX(-50%) translateY(0); }
.gf-cal-grid button.is-hover::before { background: var(--gf-hover); }
.gf-avatar-group .gf-avatar.is-hover { transform: translateY(-3px); z-index: 1; }

/* ── consumer.css ── */
/* Greyfeathers v2 — consumer patterns (components/consumer.tsx)
   HeaderShell · CardRail · ListingCard · SaveToggle · Price · QuantityStepper · RatingSummary · SlotPicker · Ticket.
   Tokens only. Every interactive part has a 2 px focus outline and ≥ 44 px targets on phones. */

/* ───────────── HeaderShell ───────────── */
.gf-hshell { display: grid; min-height: 100dvh; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "top" "main"; background: var(--gf-canvas); }
.gf-hshell[data-wc="medium"] { grid-template-columns: var(--gf-rail) minmax(0, 1fr); grid-template-areas: "nav top" "nav main"; }
.gf-hshell[data-wc="expanded"], .gf-hshell[data-wc="large"] { --gf-topbar: 64px; }
.gf-hshell .gf-nav[data-mode="rail"] { grid-row: 1 / -1; }
.gf-hshell-main { min-width: 0; }
.gf-hshell:not([data-bottomnav]) .gf-hshell-main { padding-bottom: var(--gf-safe-bottom); }
.gf-hshell-brand { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 44px; min-height: 44px; flex: none; color: var(--gf-text-strong); text-decoration: none; border-radius: var(--gf-radius-sm); }
.gf-hshell-brand:hover { text-decoration: none; }
.gf-hshell-brand:focus-visible { box-shadow: none; outline: 2px solid var(--gf-focus-border); outline-offset: 2px; }
.gf-hshell .gf-nav-head .gf-hshell-brand { justify-content: center; width: 56px; }
/* Phones: the bar title fades in only once the page's own large heading has scrolled away (it is aria-hidden) */
.gf-hshell-top .title[data-fade] { transition: opacity var(--gf-dur-base) var(--gf-ease), transform var(--gf-spring-smooth-dur) var(--gf-spring-smooth); }
.gf-hshell:not([data-scrolled]) .gf-hshell-top .title[data-fade] { opacity: 0; transform: translateY(6px); }
/* Desktop: a header bar over a centred page */
.gf-hshell-head { grid-area: top; position: sticky; top: 0; z-index: var(--gf-z-sticky); background: var(--gf-glass); -webkit-backdrop-filter: var(--gf-blur-glass); backdrop-filter: var(--gf-blur-glass); border-bottom: 1px solid transparent; transition: border-color var(--gf-dur-base) var(--gf-ease), box-shadow var(--gf-dur-base) var(--gf-ease); }
.gf-hshell[data-scrolled] .gf-hshell-head { border-bottom-color: var(--gf-line); box-shadow: 0 6px 18px color-mix(in srgb, var(--gf-hue-950) 6%, transparent); }
@media (prefers-reduced-transparency: reduce) { .gf-hshell-head { background: var(--gf-surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.gf-hshell-head-in { display: flex; align-items: center; gap: 24px; height: var(--gf-topbar); width: 100%; max-width: var(--gf-content-max); margin-inline: auto; padding: 0 var(--gf-gutter); }
.gf-hshell-links ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.gf-hshell-links a { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--gf-radius-pill); font-size: 15px; font-weight: 600; color: var(--gf-text); text-decoration: none; white-space: nowrap; transition: background-color var(--gf-dur-fast) var(--gf-ease), color var(--gf-dur-fast) var(--gf-ease), transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
@media (hover: hover) { .gf-hshell-links a:hover { background: var(--gf-hover); color: var(--gf-text-strong); text-decoration: none; } }
.gf-hshell-links a:active { transform: scale(0.96); }
.gf-hshell-links a[aria-current="page"] { background: var(--gf-primary-tint); color: var(--gf-primary-text); }
.gf-hshell-links a:focus-visible { box-shadow: none; outline: 2px solid var(--gf-focus-border); outline-offset: 2px; }
.gf-hshell-search { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-end; }
.gf-hshell-search > * { width: min(100%, 400px); }
.gf-hshell-acts { display: flex; align-items: center; gap: 8px; flex: none; }
/* Shell-relative offsets, as in the work Shell */
@media (max-width: 599.98px) { .gf-hshell[data-bottomnav] { --gf-bottom-chrome: calc(var(--gf-bottom-nav) + var(--gf-safe-bottom)); --gf-sticky-safe: 0px; --gf-sticky-edge: 1px; } }
.gf-hshell { --gf-top-chrome: calc(var(--gf-topbar) + var(--gf-safe-top)); }
.gf-hshell .gf-nav-item:focus-visible, .gf-hshell .gf-bottomnav a:focus-visible { box-shadow: none; outline: 2px solid var(--gf-focus-border); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .gf-hshell-links a:active { transform: none; } }

/* ───────────── CardRail ───────────── */
.gf-rail { display: flex; flex-direction: column; gap: 12px; min-width: 0; container-type: inline-size; }
.gf-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.gf-rail-title { font-size: var(--gf-h3-size); line-height: var(--gf-h3-lh); font-weight: var(--gf-h3-w); letter-spacing: var(--gf-h3-tr); color: var(--gf-text-strong); min-width: 0; }
.gf-rail-acts { display: flex; align-items: center; gap: 8px; flex: none; }
.gf-rail-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gf-border-control); background: var(--gf-surface); color: var(--gf-text-strong); transition: background-color var(--gf-dur-fast) var(--gf-ease), opacity var(--gf-dur-fast) var(--gf-ease), transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
.gf-rail-btn svg { width: 18px; height: 18px; }
@media (hover: hover) { .gf-rail-btn:hover:not([aria-disabled="true"]) { background: var(--gf-hover); } }
.gf-rail-btn:active:not([aria-disabled="true"]) { transform: scale(0.92); }
.gf-rail-btn[aria-disabled="true"] { opacity: 0.4; cursor: default; }
.gf-rail-btn:focus-visible { box-shadow: none; outline: 2px solid var(--gf-focus-border); outline-offset: 2px; }
/* 6 px above and 4 px at the sides keep lifted cards and their focus outlines inside the scroller */
.gf-rail-track { --gap: 16px; display: flex; gap: var(--gap); margin: -6px -4px -10px; padding: 6px 4px 10px; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; scrollbar-width: none; }
.gf-rail-track::-webkit-scrollbar { display: none; }
.gf-rail-item { flex: 0 0 var(--gf-rail-w, var(--gf-rail-auto, 78%)); display: flex; min-width: 0; scroll-snap-align: start; }
/* Items per view follow the rail's own width, not the window: a rail in a side column shows fewer */
@container (min-width: 540px) { .gf-rail-track { --gf-rail-auto: calc((100% - 2 * var(--gap)) / 2.4); } }
@container (min-width: 820px) { .gf-rail-track { --gf-rail-auto: calc((100% - 2 * var(--gap)) / 3); } }
@container (min-width: 1020px) { .gf-rail-track { --gf-rail-auto: calc((100% - 3 * var(--gap)) / 4); } }
@container (min-width: 1360px) { .gf-rail-track { --gf-rail-auto: calc((100% - 4 * var(--gap)) / 5); } }
.gf-rail-item > * { flex: 1 1 auto; min-width: 0; }
/* Phones: the rail bleeds to the screen edges so the next card peeks in */
@media (max-width: 599.98px) {
  .gf-rail-track { --gap: 12px; margin-inline: calc(-1 * var(--gf-gutter)); padding-inline: var(--gf-gutter); scroll-padding-inline: var(--gf-gutter); }
}
@media (prefers-reduced-motion: reduce) { .gf-rail-btn:active { transform: none !important; } }

/* ───────────── SaveToggle ───────────── */
.gf-save { --s: 40px; position: relative; display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s); border-radius: 50%; color: var(--gf-text-strong); background: var(--gf-surface); box-shadow: var(--gf-shadow-card); transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy), background-color var(--gf-dur-fast) var(--gf-ease); -webkit-tap-highlight-color: transparent; }
.gf-save[data-variant="plain"] { background: transparent; box-shadow: none; }
@media (hover: hover) { .gf-save[data-variant="plain"]:hover { background: var(--gf-hover); } }
.gf-save svg { width: 20px; height: 20px; fill: transparent; transition: fill var(--gf-dur-fast) var(--gf-ease), color var(--gf-dur-fast) var(--gf-ease); }
.gf-save[aria-pressed="true"] svg { color: var(--gf-danger); fill: var(--gf-danger); }
.gf-save[data-pop] svg { animation: gf-pop 420ms var(--gf-spring-bouncy) 1; }
.gf-save:active { transform: scale(0.9); }
.gf-save:focus-visible { box-shadow: var(--gf-shadow-card); outline: 2px solid var(--gf-focus-border); outline-offset: 2px; }
@media (max-width: 599.98px) { .gf-save { --s: 44px; } }
@media (prefers-reduced-motion: reduce) { .gf-save[data-pop] svg { animation: none !important; } .gf-save:active { transform: none; } }

/* ───────────── Price ───────────── */
.gf-price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; color: var(--gf-text-strong); font-variant-numeric: tabular-nums; }
.gf-price .now { font-size: 16px; line-height: 22px; font-weight: 800; letter-spacing: -0.01em; }
.gf-price[data-size="sm"] .now { font-size: 14px; line-height: 20px; }
.gf-price[data-size="lg"] .now { font-size: 24px; line-height: 30px; letter-spacing: -0.02em; }
.gf-price .from, .gf-price .unit { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--gf-text-secondary); }
.gf-price .was { font-size: 13px; line-height: 18px; color: var(--gf-text-muted); text-decoration: line-through; }
.gf-price .off { font-size: 12px; line-height: 18px; font-weight: 700; color: var(--gf-success-text); }

/* ───────────── QuantityStepper ───────────── */
.gf-qty { display: inline-flex; align-items: center; gap: 4px; }
.gf-qty button { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gf-border-control); background: var(--gf-surface); color: var(--gf-text-strong); transition: background-color var(--gf-dur-fast) var(--gf-ease), transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy), opacity var(--gf-dur-fast); -webkit-tap-highlight-color: transparent; }
.gf-qty button svg { width: 18px; height: 18px; }
@media (hover: hover) { .gf-qty button:hover:not([aria-disabled="true"]) { background: var(--gf-hover); } }
.gf-qty button:active:not([aria-disabled="true"]) { transform: scale(0.9); }
.gf-qty button[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.gf-qty button:focus-visible { box-shadow: none; outline: 2px solid var(--gf-focus-border); outline-offset: 2px; }
.gf-qty .v { min-width: 40px; text-align: center; font-size: 17px; line-height: 24px; font-weight: 700; color: var(--gf-text-strong); }
@media (min-width: 600px) { .gf-qty[data-size="sm"] button { width: 36px; height: 36px; } .gf-qty[data-size="sm"] .v { min-width: 32px; font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .gf-qty button:active { transform: none !important; } }

/* ───────────── Inline rating ───────────── */
.gf-rating-inline { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; line-height: 18px; color: var(--gf-text-secondary); white-space: nowrap; }
.gf-rating-inline svg { width: 14px; height: 14px; color: var(--gf-rating); fill: var(--gf-rating); }
.gf-rating-inline b { font-weight: 700; color: var(--gf-text-strong); }

/* ───────────── ListingCard ───────────── */
.gf-listing { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--gf-radius-card); transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy), box-shadow var(--gf-dur-base) var(--gf-ease), border-color var(--gf-dur-base) var(--gf-ease); }
.gf-listing[data-variant="card"] { background: var(--gf-surface); border: 1px solid var(--gf-border); box-shadow: var(--gf-shadow-card), var(--gf-lit-edge); }
.gf-listing-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gf-surface-sunken); border-radius: calc(var(--gf-radius-card) - 1px) calc(var(--gf-radius-card) - 1px) 0 0; }
.gf-listing[data-variant="plain"] .gf-listing-media { border-radius: var(--gf-radius-card); }
.gf-listing-media > svg, .gf-listing-media > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--gf-dur-slow) var(--gf-ease-out); }
.gf-listing-flag { position: absolute; top: 12px; left: 12px; max-width: calc(100% - 76px); padding: 4px 10px; border-radius: var(--gf-radius-pill); background: var(--gf-surface); color: var(--gf-text-strong); font-size: 12px; line-height: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: var(--gf-shadow-card); }
.gf-listing-save { position: absolute; top: 8px; right: 8px; z-index: 2; }
.gf-listing-body { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; padding: 14px 16px 16px; }
.gf-listing[data-variant="plain"] .gf-listing-body { padding: 12px 2px 4px; }
.gf-listing-title { font-size: 16px; line-height: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--gf-text-strong); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gf-listing-link { color: inherit; text-decoration: none; }
.gf-listing-link:hover { text-decoration: none; }
/* The title link is stretched over the card: one target, one Tab stop; its focus ring outlines the whole card */
.gf-listing-link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--gf-radius-card); }
.gf-listing-link:focus-visible { box-shadow: none; outline: none; }
.gf-listing-link:focus-visible::after { outline: 2px solid var(--gf-focus-border); outline-offset: 2px; }
.gf-listing-sub, .gf-listing-meta { font-size: 13px; line-height: 18px; color: var(--gf-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-listing-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
@media (hover: hover) {
  .gf-listing:hover { transform: translateY(-2px); }
  .gf-listing[data-variant="card"]:hover { box-shadow: var(--gf-shadow-hover), var(--gf-lit-edge); border-color: var(--gf-border-strong); }
  .gf-listing:hover .gf-listing-media > svg, .gf-listing:hover .gf-listing-media > img { transform: scale(1.04); }
}
.gf-listing:has(.gf-listing-link:active) { transform: scale(0.985); transition-duration: var(--gf-dur-instant); }
/* Horizontal: media beside the text (phone lists) */
.gf-listing[data-layout="horizontal"] { flex-direction: row; align-items: stretch; }
.gf-listing[data-layout="horizontal"] .gf-listing-media { flex: none; width: 112px; aspect-ratio: auto; min-height: 112px; border-radius: calc(var(--gf-radius-card) - 1px) 0 0 calc(var(--gf-radius-card) - 1px); }
.gf-listing[data-layout="horizontal"][data-variant="plain"] .gf-listing-media { border-radius: var(--gf-radius-tile); }
.gf-listing[data-layout="horizontal"] .gf-listing-body { padding: 12px 14px; justify-content: center; }
.gf-listing[data-layout="horizontal"][data-variant="plain"] .gf-listing-body { padding: 4px 0 4px 14px; }
.gf-listing[data-layout="horizontal"] .gf-listing-save { top: 4px; right: 4px; }
.gf-listing[data-layout="horizontal"] .gf-listing-flag { display: none; }
@media (min-width: 600px) { .gf-listing[data-layout="horizontal"] .gf-listing-media { width: 160px; } }
@media (prefers-reduced-motion: reduce) { .gf-listing:hover, .gf-listing:has(.gf-listing-link:active) { transform: none !important; } .gf-listing:hover .gf-listing-media > svg { transform: none !important; } }

/* ───────────── RatingSummary ───────────── */
.gf-rsum { display: grid; gap: 16px 32px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 600px) { .gf-rsum { grid-template-columns: auto minmax(0, 1fr); } }
.gf-rsum-score { display: flex; flex-direction: column; gap: 4px; }
.gf-rsum-score .n { font-size: 48px; line-height: 52px; font-weight: 800; letter-spacing: -0.03em; color: var(--gf-text-strong); }
.gf-rsum-stars { display: inline-flex; gap: 2px; }
.gf-rsum-stars svg { width: 18px; height: 18px; color: var(--gf-border-control); fill: transparent; }
.gf-rsum-stars svg[data-on] { color: var(--gf-rating); fill: var(--gf-rating); }
.gf-rsum-stars svg[data-half] { color: var(--gf-rating); fill: color-mix(in srgb, var(--gf-rating) 45%, transparent); }
.gf-rsum-score .c { font-size: 13px; line-height: 18px; color: var(--gf-text-secondary); }
.gf-rsum-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gf-rsum-bars li { display: grid; grid-template-columns: 32px minmax(0, 1fr) 40px; align-items: center; gap: 10px; font-size: 13px; line-height: 18px; color: var(--gf-text-secondary); }
.gf-rsum-bars .k { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; color: var(--gf-text-strong); }
.gf-rsum-bars .k svg { width: 12px; height: 12px; color: var(--gf-warning); fill: var(--gf-warning); }
.gf-rsum-bars .bar { height: 8px; border-radius: var(--gf-radius-pill); background: var(--gf-surface-sunken); overflow: hidden; }
.gf-rsum-bars .bar > span { display: block; height: 100%; border-radius: inherit; background: var(--gf-warning); }
.gf-rsum-bars .p { text-align: right; }

/* ───────────── SlotPicker ───────────── */
.gf-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 96px)), 1fr)); gap: 8px; }
/* scroll: one row; the 4 px inset keeps focus outlines inside the scroller */
.gf-slots[data-layout="scroll"] { display: flex; gap: 8px; overflow-x: auto; margin: -4px; padding: 4px; scroll-snap-type: x proximity; scroll-padding-inline: 4px; overscroll-behavior-x: contain; scrollbar-width: none; }
.gf-slots[data-layout="scroll"]::-webkit-scrollbar { display: none; }
.gf-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; padding: 8px 12px; border-radius: var(--gf-radius-tile); border: 1px solid var(--gf-border-control); background: var(--gf-surface); color: var(--gf-text-strong); font-size: 14px; line-height: 20px; font-weight: 600; text-align: center; transition: background-color var(--gf-dur-fast) var(--gf-ease), border-color var(--gf-dur-fast) var(--gf-ease), color var(--gf-dur-fast) var(--gf-ease), transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); -webkit-tap-highlight-color: transparent; }
.gf-slots[data-layout="scroll"] .gf-slot { flex: 0 0 auto; min-width: 68px; scroll-snap-align: start; }
.gf-slot .main { display: flex; flex-direction: column; align-items: center; }
.gf-slot .sub { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--gf-text-secondary); }
@media (hover: hover) { .gf-slot:hover:not([aria-disabled="true"]):not([aria-checked="true"]) { background: var(--gf-hover); border-color: var(--gf-text-muted); } }
.gf-slot:active:not([aria-disabled="true"]) { transform: scale(0.96); }
.gf-slot[aria-checked="true"] { background: var(--gf-primary); border-color: var(--gf-primary); color: var(--gf-on-primary); }
.gf-slot[aria-checked="true"] .sub { color: var(--gf-on-primary); }
.gf-slot[aria-disabled="true"] { background: var(--gf-surface-sunken); border-style: dashed; color: var(--gf-text-muted); cursor: not-allowed; }
.gf-slot[aria-disabled="true"] .main { text-decoration: line-through; }
.gf-slot:focus-visible { box-shadow: none; outline: 2px solid var(--gf-focus-border); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .gf-slot:active { transform: none !important; } }

/* ───────────── QRArt ───────────── */
.gf-qr { display: block; flex: none; border-radius: var(--gf-radius-xs); }
.gf-qr rect { fill: var(--gf-ink-0); }
.gf-qr path { fill: var(--gf-ink-1000); }

/* ───────────── Ticket ─────────────
   The paper is cut with a CSS mask: two notches at the perforation, transparent on any background. The shadow sits on
   the wrapper as a drop-shadow so it follows the cut. */
.gf-ticket { --notch: 12px; --stub: 136px; display: flex; flex-direction: column; gap: 16px; min-width: 0; filter: drop-shadow(0 8px 20px color-mix(in srgb, var(--gf-hue-950) 12%, transparent)); }
.dark .gf-ticket { filter: none; }
.gf-ticket-paper { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) var(--stub); min-width: 0; background: var(--gf-surface); border-radius: var(--gf-radius-card); box-shadow: inset 0 0 0 1px var(--gf-border);
  -webkit-mask: radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub)), #0000 calc(var(--notch) - 0.5px), #000 var(--notch)) 0 0 / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub)), #0000 calc(var(--notch) - 0.5px), #000 var(--notch)) 100% 0 / 51% 100% no-repeat;
  mask: radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub)), #0000 calc(var(--notch) - 0.5px), #000 var(--notch)) 0 0 / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub)), #0000 calc(var(--notch) - 0.5px), #000 var(--notch)) 100% 0 / 51% 100% no-repeat; }
.gf-ticket-main { display: flex; flex-direction: column; min-width: 0; }
.gf-ticket-art { position: relative; height: 120px; overflow: hidden; border-radius: var(--gf-radius-card) var(--gf-radius-card) 0 0; }
.gf-ticket-art > svg { display: block; width: 100%; height: 100%; }
.gf-ticket-info { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; }
.gf-ticket-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.gf-ticket-title { font-size: 20px; line-height: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--gf-text-strong); }
.gf-ticket-sub { font-size: 14px; line-height: 20px; color: var(--gf-text-secondary); }
.gf-ticket-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 10px 0 0; }
.gf-ticket-fields dt { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gf-text-muted); }
.gf-ticket-fields dd { margin: 2px 0 0; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--gf-text-strong); overflow-wrap: anywhere; }
.gf-ticket-stub { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 24px; }
/* the perforation */
.gf-ticket-stub::before { content: ''; position: absolute; left: calc(var(--notch) + 8px); right: calc(var(--notch) + 8px); top: 0; border-top: 2px dashed var(--gf-border-control); }
.gf-ticket-code { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gf-ticket-code .k { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gf-text-muted); }
.gf-ticket-code b { font-size: 18px; line-height: 24px; font-weight: 600; color: var(--gf-text-strong); letter-spacing: 0.04em; overflow-wrap: anywhere; }
.gf-ticket-code .h { font-size: 13px; line-height: 18px; color: var(--gf-text-secondary); }
.gf-ticket-foot { display: flex; flex-wrap: wrap; gap: 8px; }
.gf-ticket[data-used] .gf-ticket-art, .gf-ticket[data-used] .gf-qr { opacity: 0.45; filter: grayscale(1); }
/* Horizontal: the stub is on the right; the notches move to the top and bottom edges */
.gf-ticket[data-orientation="horizontal"] { --stub: 220px; }
.gf-ticket[data-orientation="horizontal"] .gf-ticket-paper { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) var(--stub);
  -webkit-mask: radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, #0000 calc(var(--notch) - 0.5px), #000 var(--notch)) 0 0 / 100% 51% no-repeat, radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, #0000 calc(var(--notch) - 0.5px), #000 var(--notch)) 0 100% / 100% 51% no-repeat;
  mask: radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, #0000 calc(var(--notch) - 0.5px), #000 var(--notch)) 0 0 / 100% 51% no-repeat, radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, #0000 calc(var(--notch) - 0.5px), #000 var(--notch)) 0 100% / 100% 51% no-repeat; }
.gf-ticket[data-orientation="horizontal"] .gf-ticket-main { flex-direction: row; }
.gf-ticket[data-orientation="horizontal"] .gf-ticket-art { flex: 0 0 34%; height: auto; min-height: 220px; border-radius: var(--gf-radius-card) 0 0 var(--gf-radius-card); }
.gf-ticket[data-orientation="horizontal"] .gf-ticket-info { flex: 1 1 auto; min-width: 0; justify-content: center; }
.gf-ticket[data-orientation="horizontal"] .gf-ticket-stub { flex-direction: column; justify-content: center; text-align: center; }
.gf-ticket[data-orientation="horizontal"] .gf-ticket-code { align-items: center; }
.gf-ticket[data-orientation="horizontal"] .gf-ticket-stub::before { left: 0; right: auto; top: calc(var(--notch) + 8px); bottom: calc(var(--notch) + 8px); border-top: 0; border-left: 2px dashed var(--gf-border-control); }
   /* consumer patterns: HeaderShell, CardRail, ListingCard, Ticket… */
/* ── journey.css ── */
/* Greyfeathers v2 — onboarding (components/journey.tsx)
   ProgressHeader · ChoiceTiles · Celebration. Tokens only; spacing on the 4 px grid; transform and opacity are the only
   animated properties, and every animation has a reduced-motion form at the end of this file. */

/* ───────────── ProgressHeader ───────────── */
.gf-phead { display: flex; align-items: center; gap: 12px; min-height: 56px; min-width: 0; }
.gf-phead[data-sticky] { position: sticky; top: 0; z-index: var(--gf-z-sticky); margin-inline: calc(-1 * var(--gf-gutter)); padding: var(--gf-safe-top) var(--gf-gutter) 0; background: var(--gf-glass); -webkit-backdrop-filter: var(--gf-blur-glass); backdrop-filter: var(--gf-blur-glass); }
@media (prefers-reduced-transparency: reduce) { .gf-phead[data-sticky] { background: var(--gf-canvas); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.gf-phead-slot { display: flex; align-items: center; flex: none; min-width: var(--gf-control-md); }
.gf-phead-slot[data-end] { justify-content: flex-end; }
.gf-phead-spacer { display: block; width: var(--gf-control-md); height: var(--gf-control-md); }
/* The bar: a thin pill. The track is a 10 % ink wash, so it shows on any surface; the fill is the app hue. */
.gf-phead-bar { position: relative; flex: 1 1 auto; min-width: 48px; height: 8px; overflow: hidden; border-radius: var(--gf-radius-pill); background: color-mix(in srgb, var(--gf-text-strong) 10%, transparent); }
/* The fill is full width and slides in from the left (translate, not width), so its rounded end stays round. */
.gf-phead-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--gf-primary); transform: translateX(calc((var(--v, 0) - 1) * 100%)); transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
.gf-phead-fill::after { content: ''; position: absolute; top: 2px; right: 8px; left: calc((1 - var(--v, 0)) * 100% + 8px); height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--gf-on-primary) 32%, transparent); }
:dir(rtl) .gf-phead-fill { transform: translateX(calc((1 - var(--v, 0)) * 100%)); }
.gf-phead-count { flex: none; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--gf-text-secondary); }
.gf-phead-skip { color: var(--gf-text-secondary); }

/* ───────────── ChoiceTiles ───────────── */
.gf-choicetiles { display: flex; flex-direction: column; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.gf-choicetiles-legend { padding: 0; margin-bottom: 4px; font-size: var(--gf-title-size); line-height: var(--gf-title-lh); font-weight: var(--gf-title-w); letter-spacing: var(--gf-title-tr); color: var(--gf-text-strong); }
.gf-choicetiles-hint { font-size: 14px; line-height: 20px; color: var(--gf-text-secondary); }
.gf-choicetiles-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 148px)), 1fr)); }
.gf-choicetiles[data-layout="list"] .gf-choicetiles-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.gf-choicetile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-width: 0; min-height: 120px; padding: 20px 12px 16px;
  border-radius: var(--gf-radius-card); border: 1px solid var(--gf-border-control); background: var(--gf-surface);
  color: var(--gf-text-strong); text-align: center; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: border-color var(--gf-dur-fast) var(--gf-ease), background-color var(--gf-dur-fast) var(--gf-ease), box-shadow var(--gf-dur-base) var(--gf-ease);
}
/* The native control covers the whole tile, invisible: the tile is the target, and the keyboard and screen readers get a real radio or checkbox */
.gf-choicetile > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
@media (hover: hover) { .gf-choicetile:hover:not([data-disabled]) { border-color: var(--gf-text-muted); background: var(--gf-hover); } }
/* A tile is a large surface: pressing tints it (over its own fill, chosen or not); it never scales */
.gf-choicetile:active:not([data-disabled]) { background-image: linear-gradient(var(--gf-press-tint), var(--gf-press-tint)); }
.gf-choicetile:has(> input:focus-visible) { outline: 2px solid var(--gf-focus-border); outline-offset: 2px; }
.gf-choicetile:has(> input:checked) { border-color: var(--gf-primary); background: var(--gf-primary-subtle); box-shadow: inset 0 0 0 1px var(--gf-primary); }
.gf-choicetile[data-disabled] { cursor: not-allowed; opacity: 0.5; }
.gf-choicetile-art { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--gf-radius-tile); background: var(--gf-primary-subtle); color: var(--gf-primary-text); font-size: 28px; line-height: 1; overflow: hidden; transition: background-color var(--gf-dur-fast) var(--gf-ease), color var(--gf-dur-fast) var(--gf-ease); }
.gf-choicetile-art:not([data-media]) svg { width: 24px; height: 24px; }
.gf-choicetile-art[data-media] { background: var(--gf-surface-sunken); }
.gf-choicetile-art[data-media] > * { display: block; width: 100%; height: 100%; object-fit: cover; }
.gf-choicetile:has(> input:checked) .gf-choicetile-art:not([data-media]) { background: var(--gf-primary); color: var(--gf-on-primary); }
/* Immediate feedback: the art pops once when the tile is chosen (JS sets data-pop for 520 ms — not on page load) */
.gf-choicetile[data-pop] .gf-choicetile-art { animation: gf-pop 420ms var(--gf-spring-bouncy) 1; }
.gf-choicetile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; max-width: 100%; }
.gf-choicetile-text .t { font-size: 15px; line-height: 20px; font-weight: 700; color: var(--gf-text-strong); overflow-wrap: break-word; hyphens: auto; }
.gf-choicetile-text .d { font-size: 13px; line-height: 18px; color: var(--gf-text-secondary); }
/* Phones: narrower side padding, so a three-across grid still fits a long word on one line */
@media (max-width: 599.98px) { .gf-choicetiles[data-layout="grid"] .gf-choicetile { padding-inline: 8px; } }
/* The mark: an empty circle (one choice) or rounded square (several), filled with a check once chosen */
.gf-choicetile-mark { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--gf-border-control); color: transparent; transition: background-color var(--gf-dur-fast) var(--gf-ease), box-shadow var(--gf-dur-fast) var(--gf-ease), transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
.gf-choicetiles[data-multiple] .gf-choicetile-mark { border-radius: 6px; }
.gf-choicetile-mark svg { width: 14px; height: 14px; stroke-width: 3; transform: scale(0.4); opacity: 0; transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy), opacity var(--gf-dur-fast) var(--gf-ease); }
.gf-choicetile:has(> input:checked) .gf-choicetile-mark { background: var(--gf-primary); box-shadow: none; color: var(--gf-on-primary); }
.gf-choicetile:has(> input:checked) .gf-choicetile-mark svg { transform: none; opacity: 1; }
/* Large: roomier tiles for a whole-screen question */
.gf-choicetiles[data-size="lg"] .gf-choicetile { min-height: 148px; gap: 12px; padding: 24px 16px 20px; }
.gf-choicetiles[data-size="lg"] .gf-choicetile-art { width: 64px; height: 64px; border-radius: var(--gf-radius-card); font-size: 36px; }
.gf-choicetiles[data-size="lg"] .gf-choicetile-art:not([data-media]) svg { width: 30px; height: 30px; }
.gf-choicetiles[data-size="lg"] .gf-choicetile-text .t { font-size: 16px; line-height: 22px; }
/* List: one row per option, the art beside the text and the mark at the end */
.gf-choicetiles[data-layout="list"] .gf-choicetile { flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 64px; padding: 12px 16px; text-align: left; }
.gf-choicetiles[data-layout="list"] .gf-choicetile-art { width: 40px; height: 40px; border-radius: var(--gf-radius-control); font-size: 22px; }
.gf-choicetiles[data-layout="list"] .gf-choicetile-art:not([data-media]) svg { width: 20px; height: 20px; }
.gf-choicetiles[data-layout="list"] .gf-choicetile-text { flex: 1 1 auto; }
.gf-choicetiles[data-layout="list"] .gf-choicetile-mark { position: relative; top: auto; right: auto; flex: none; }
.gf-choicetiles[data-layout="list"][data-size="lg"] .gf-choicetile { min-height: 76px; padding: 16px 20px; }
/* The feedback line: in the hue, rising in each time it changes */
.gf-choicetiles-status { min-height: 20px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--gf-primary-text); }
.gf-choicetiles-status > span { display: inline-block; animation: gf-rise-in var(--gf-dur-moderate) var(--gf-ease-out) both; }

/* ───────────── Celebration ───────────── */
.gf-celebrate { --b: 72px; position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; text-align: center; }
.gf-celebrate[data-size="sm"] { --b: 48px; gap: 12px; }
.gf-celebrate[data-size="lg"] { --b: 96px; gap: 20px; }
.gf-celebrate[data-align="start"] { align-items: flex-start; text-align: left; }
.gf-celebrate-badge { position: relative; display: grid; place-items: center; flex: none; width: var(--b); height: var(--b); }
.gf-celebrate-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--gf-primary); color: var(--gf-on-primary); box-shadow: 0 0 0 8px var(--gf-primary-tint); animation: gf-celebrate-pop var(--gf-spring-bouncy-dur) var(--gf-spring-bouncy) both; }
.gf-celebrate[data-size="sm"] .gf-celebrate-icon { box-shadow: 0 0 0 6px var(--gf-primary-tint); }
.gf-celebrate[data-tone="success"] .gf-celebrate-icon { background: var(--gf-success-text); color: var(--gf-ink-0); box-shadow: 0 0 0 8px var(--gf-success-tint); }
.dark .gf-celebrate[data-tone="success"] .gf-celebrate-icon { background: var(--gf-success); color: var(--gf-ink-1000); }
.gf-celebrate-icon svg { width: 50%; height: 50%; stroke-width: 3; animation: gf-celebrate-tick 420ms var(--gf-ease-out) 160ms both; }
/* A ring that opens outward behind the burst */
.gf-celebrate[data-effect="burst"] .gf-celebrate-badge::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gf-primary); opacity: 0; animation: gf-celebrate-ring 760ms var(--gf-ease-out) 60ms both; }
.gf-celebrate[data-tone="success"] .gf-celebrate-badge::before { border-color: var(--gf-success); }
/* Twelve sparks — dots and short rays — fly out from behind the check and fade */
.gf-celebrate-burst { position: absolute; inset: 0; pointer-events: none; }
.gf-celebrate-burst i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--c); opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--b) * -0.5)); animation: gf-celebrate-spark 720ms var(--gf-ease-out) var(--d, 100ms) both; }
.gf-celebrate-burst i:nth-child(even) { width: 4px; height: 12px; border-radius: 2px; }
/* Confetti: a short shower from the badge, clipped to the component so it never widens the page */
.gf-celebrate-confetti { position: absolute; z-index: 2; left: 0; right: 0; top: calc(var(--b) * -1); height: calc(var(--b) * 2 + 280px); overflow: hidden; pointer-events: none; }
.gf-celebrate[data-align="start"] .gf-celebrate-confetti { right: auto; width: min(100%, 480px); }
.gf-celebrate-confetti i { position: absolute; left: 50%; top: calc(var(--b) * 1.5); width: 8px; height: 12px; border-radius: 2px; background: var(--c); opacity: 0; transform: translate(-50%, -50%); animation: gf-celebrate-confetti 1500ms var(--gf-ease-out) var(--d) both; }
.gf-celebrate[data-align="start"] .gf-celebrate-confetti i { left: calc(var(--b) / 2); }
.gf-celebrate-confetti i[data-round] { width: 8px; height: 8px; border-radius: 50%; }
.gf-celebrate-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 100%; animation: gf-rise-in var(--gf-dur-slow) var(--gf-ease-out) 180ms both; }
.gf-celebrate-title { font-size: var(--gf-h2-size); line-height: var(--gf-h2-lh); font-weight: var(--gf-h2-w); letter-spacing: var(--gf-h2-tr); color: var(--gf-text-strong); text-wrap: balance; }
.gf-celebrate[data-size="lg"] .gf-celebrate-title { font-size: var(--gf-h1-size); line-height: var(--gf-h1-lh); font-weight: var(--gf-h1-w); letter-spacing: var(--gf-h1-tr); }
.gf-celebrate[data-size="sm"] .gf-celebrate-title { font-size: var(--gf-title-size); line-height: var(--gf-title-lh); font-weight: 700; letter-spacing: var(--gf-title-tr); }
.gf-celebrate-msg { max-width: 52ch; font-size: 16px; line-height: 24px; color: var(--gf-text-secondary); }
.gf-celebrate[data-size="sm"] .gf-celebrate-msg { font-size: 14px; line-height: 20px; }
.gf-celebrate[data-align="center"] .gf-celebrate-msg { margin-inline: auto; }
.gf-celebrate-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.gf-celebrate[data-align="start"] .gf-celebrate-acts { justify-content: flex-start; }
@media (max-width: 599.98px) { .gf-celebrate-acts { align-self: stretch; } .gf-celebrate-acts > .gf-btn { flex: 1 1 auto; } }

@keyframes gf-celebrate-pop { 0% { transform: scale(0.3); opacity: 0; } 30% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes gf-celebrate-tick { from { transform: scale(0.4) rotate(-24deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes gf-celebrate-ring { 0% { transform: scale(0.85); opacity: 0.7; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes gf-celebrate-spark {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--b) * -0.4)) scale(0.4); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--b) * -0.5 - 28px)) scale(1); }
}
@keyframes gf-celebrate-confetti {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(0); }
  10% { opacity: 1; }
  45% { opacity: 1; transform: translate(calc(-50% + var(--dx) * 0.7), calc(-50% + var(--up))) rotate(calc(var(--r) * 0.5)); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--fall))) rotate(var(--r)); }
}

/* ───────────── Reduced motion: a static check, no sparks, no confetti, no pops ───────────── */
@media (prefers-reduced-motion: reduce) {
  .gf-phead-fill { transition: none; }
  .gf-choicetile, .gf-choicetile-mark, .gf-choicetile-mark svg { transition-property: background-color, border-color, box-shadow, opacity; }
  .gf-choicetile[data-pop] .gf-choicetile-art, .gf-choicetiles-status > span { animation: none; }
  .gf-celebrate-icon, .gf-celebrate-icon svg, .gf-celebrate-text, .gf-celebrate-badge::before { animation: none !important; }
  .gf-celebrate-burst, .gf-celebrate-confetti { display: none; }
}
   /* onboarding: ProgressHeader, ChoiceTiles, Celebration */
/* ── search.css ── */
/* Greyfeathers v2 — search & filters (components/search.tsx)
   SearchPill · RangeSlider · CategoryBar · FilterFooter · AppliedFilters. Tokens only; spacing on the 4 px grid;
   transform and opacity are the only animated properties; reduced-motion forms at the end of this file. */

/* ───────────── SearchPill — the bar (tablets and up) ───────────── */
.gf-searchpill { position: relative; display: flex; align-items: center; gap: 0; width: 100%; min-width: 0; min-height: 64px; padding: 4px; border-radius: var(--gf-radius-pill); border: 1px solid var(--gf-border-control); background: var(--gf-surface); box-shadow: var(--gf-shadow-hover), var(--gf-lit-edge); transition: background-color var(--gf-dur-base) var(--gf-ease); }
/* While a segment is open the bar sinks back and the open segment rises out of it */
.gf-searchpill[data-active] { background: var(--gf-surface-sunken); }
.gf-searchpill-seg { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-width: 0; min-height: 56px; padding: 8px 24px; border-radius: var(--gf-radius-pill); text-align: left; -webkit-tap-highlight-color: transparent; transition: background-color var(--gf-dur-fast) var(--gf-ease), box-shadow var(--gf-dur-base) var(--gf-ease); }
.gf-searchpill-seg .k { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.02em; color: var(--gf-text-strong); }
.gf-searchpill-seg .v { max-width: 100%; font-size: 14px; line-height: 20px; color: var(--gf-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gf-searchpill-seg[data-filled] .v { font-weight: 600; color: var(--gf-text-strong); }
@media (hover: hover) { .gf-searchpill-seg:hover:not([data-on]) { background: var(--gf-hover); } }
/* Segments, rows and the phone pill are large surfaces: pressing tints them; only small controls scale */
.gf-searchpill-seg:active { background-image: linear-gradient(var(--gf-press-tint), var(--gf-press-tint)); }
.gf-searchpill-seg[data-on] { background: var(--gf-surface-raised); box-shadow: var(--gf-shadow-dropdown), var(--gf-lit-edge); }
.gf-searchpill-seg:focus-visible { box-shadow: none; outline: 2px solid var(--gf-focus-border); outline-offset: -2px; }
.gf-searchpill-seg[data-on]:focus-visible { box-shadow: var(--gf-shadow-dropdown); }
/* Hairlines between segments, hidden beside the open one */
.gf-searchpill-sep { flex: none; width: 1px; height: 32px; background: var(--gf-border); transition: opacity var(--gf-dur-fast) var(--gf-ease); }
.gf-searchpill-seg[data-on] + .gf-searchpill-sep, .gf-searchpill-sep:has(+ .gf-searchpill-seg[data-on]) { opacity: 0; }
.gf-searchpill-go { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; min-width: 48px; margin-left: 8px; padding: 0 22px 0 18px; border-radius: var(--gf-radius-pill); background: var(--gf-primary); color: var(--gf-on-primary); font-size: 15px; line-height: 20px; font-weight: 700; box-shadow: var(--gf-shadow-glow); transition: background-color var(--gf-dur-fast) var(--gf-ease), transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); -webkit-tap-highlight-color: transparent; }
.gf-searchpill-go svg { width: 18px; height: 18px; stroke-width: 2.5; }
@media (hover: hover) { .gf-searchpill-go:hover { background: var(--gf-primary-hover); } }
.gf-searchpill-go:active { transform: scale(var(--gf-press-scale)); transition-duration: var(--gf-dur-instant); }
.gf-searchpill-go:focus-visible { box-shadow: none; outline: 2px solid var(--gf-focus-border); outline-offset: 2px; }
.gf-searchpill[data-wc="medium"] .gf-searchpill-go { width: 48px; padding: 0; }
.gf-searchpill[data-wc="medium"] .gf-searchpill-seg { padding: 8px 16px; }
/* The panel under the bar */
.gf-searchpill-panel { position: fixed; z-index: var(--gf-z-dropdown); width: min(var(--w, 400px), calc(100vw - 16px)); max-height: min(72dvh, 600px); overflow-y: auto; overscroll-behavior: contain; padding: 24px; border-radius: var(--gf-radius-lg); background: var(--gf-surface-raised); border: 1px solid var(--gf-border); box-shadow: var(--gf-shadow-modal), var(--gf-lit-edge); transform-origin: var(--origin, 50% 0); animation: gf-zoom-in var(--gf-spring-sheet-dur) var(--gf-spring-sheet) both; }
.gf-searchpill-panel:focus-visible { box-shadow: var(--gf-shadow-modal); outline: 2px solid var(--gf-focus-border); outline-offset: 2px; }

/* Pick-one options inside a panel or a phone step */
.gf-searchopts { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; grid-template-columns: minmax(0, 1fr); }
.gf-searchopts[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gf-searchopt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px 8px 8px; border-radius: var(--gf-radius-tile); text-align: left; color: var(--gf-text-strong); transition: background-color var(--gf-dur-fast) var(--gf-ease), box-shadow var(--gf-dur-fast) var(--gf-ease); -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .gf-searchopt:hover { background: var(--gf-hover); } }
.gf-searchopt:active { background-image: linear-gradient(var(--gf-press-tint), var(--gf-press-tint)); }
.gf-searchopt[aria-pressed="true"] { background: var(--gf-primary-subtle); box-shadow: inset 0 0 0 2px var(--gf-primary); }
.gf-searchopt:focus-visible { box-shadow: none; outline: 2px solid var(--gf-focus-border); outline-offset: 2px; }
.gf-searchopt[aria-pressed="true"]:focus-visible { box-shadow: inset 0 0 0 2px var(--gf-primary); }
.gf-searchopt .m, .gf-searchopt .i { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--gf-radius-sm); overflow: hidden; background: var(--gf-surface-sunken); color: var(--gf-text-strong); }
.gf-searchopt .m > * { display: block; width: 100%; height: 100%; }
.gf-searchopt .i svg { width: 20px; height: 20px; }
.gf-searchopt .t { display: flex; flex-direction: column; min-width: 0; }
.gf-searchopt .t b { font-size: 15px; line-height: 20px; font-weight: 600; }
.gf-searchopt .t span { font-size: 13px; line-height: 18px; color: var(--gf-text-secondary); }

/* ───────────── SearchPill — phones: one big button, then a full-screen search ───────────── */
.gf-searchpill-c { min-width: 0; }
.gf-searchpill-compact { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 20px; border-radius: var(--gf-radius-pill); border: 1px solid var(--gf-border-control); background: var(--gf-surface); color: var(--gf-text-strong); text-align: left; box-shadow: var(--gf-shadow-hover), var(--gf-lit-edge); -webkit-tap-highlight-color: transparent; }
.gf-searchpill-compact > svg { flex: none; width: 20px; height: 20px; stroke-width: 2.5; color: var(--gf-text-strong); }
.gf-searchpill-compact .t { display: flex; flex-direction: column; min-width: 0; }
.gf-searchpill-compact .t b { font-size: 15px; line-height: 20px; font-weight: 700; }
.gf-searchpill-compact .t > span { font-size: 13px; line-height: 18px; color: var(--gf-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gf-searchpill-compact:active { background-image: linear-gradient(var(--gf-press-tint), var(--gf-press-tint)); }
.gf-searchpill-compact:focus-visible { box-shadow: var(--gf-shadow-hover); outline: 2px solid var(--gf-focus-border); outline-offset: 2px; }
.gf-searchsteps { position: fixed; inset: 0; z-index: var(--gf-z-modal); display: flex; flex-direction: column; background: var(--gf-canvas); animation: gf-slide-up var(--gf-spring-sheet-dur) var(--gf-spring-sheet) both; }
.gf-searchsteps:focus-visible { box-shadow: none; }
.gf-searchsteps-head { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: var(--gf-safe-top) 12px 0; }
.gf-searchsteps-title { flex: 1 1 auto; text-align: center; font-size: 16px; line-height: 22px; font-weight: 700; color: var(--gf-text-strong); }
.gf-searchsteps-spacer { flex: none; width: var(--gf-control-md); }
.gf-searchsteps-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; padding: 8px 16px 24px; }
.gf-searchsteps-card { flex: none; border-radius: var(--gf-radius-card); border: 1px solid var(--gf-border); background: var(--gf-surface); box-shadow: var(--gf-shadow-card), var(--gf-lit-edge); }
.gf-searchsteps-card[data-open] { display: flex; flex-direction: column; gap: 16px; padding: 20px; box-shadow: var(--gf-shadow-hover), var(--gf-lit-edge); animation: gf-rise-in var(--gf-dur-moderate) var(--gf-ease-out) both; }
.gf-searchsteps-q { font-size: 22px; line-height: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--gf-text-strong); }
.gf-searchsteps-panel { min-width: 0; }
.gf-searchsteps-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 56px; padding: 8px 20px; text-align: left; -webkit-tap-highlight-color: transparent; }
.gf-searchsteps-row .k { flex: none; font-size: 14px; line-height: 20px; color: var(--gf-text-secondary); }
.gf-searchsteps-row .v { min-width: 0; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--gf-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gf-searchsteps-row .v[data-filled] { color: var(--gf-text-strong); }
.gf-searchsteps-row:active { background-image: linear-gradient(var(--gf-press-tint), var(--gf-press-tint)); }
.gf-searchsteps-row:focus-visible { box-shadow: var(--gf-shadow-card); outline: 2px solid var(--gf-focus-border); outline-offset: 2px; }
.gf-searchsteps-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px calc(12px + var(--gf-safe-bottom)); border-top: 1px solid var(--gf-hairline); background: var(--gf-surface); }
.gf-searchsteps-clear, .gf-filterfoot-clear { text-decoration: underline; text-underline-offset: 3px; }
.gf-searchsteps-go { min-width: 140px; }

/* ───────────── RangeSlider ───────────── */
.gf-range { display: flex; flex-direction: column; min-width: 0; }
/* The histogram sits on the rail, inset by half a thumb so the bars line up with the values they count */
.gf-range-hist { display: flex; align-items: flex-end; gap: 2px; height: 64px; padding: 0 12px; }
.gf-range-hist > span { flex: 1 1 0; min-width: 0; height: 100%; border-radius: 2px 2px 0 0; background: var(--gf-border-strong); transform-origin: 50% 100%; transform: scaleY(var(--h, 0)); transition: background-color var(--gf-dur-fast) var(--gf-ease); animation: gf-range-grow var(--gf-dur-slow) var(--gf-ease-out) calc(var(--i, 0) * 12ms) both; }
.gf-range-hist > span[data-in] { background: var(--gf-primary); }
.gf-range-track { position: relative; height: 44px; cursor: pointer; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.gf-range-track[data-hist] { margin-top: -20px; }
.gf-range-rail, .gf-range-fill { position: absolute; top: 50%; height: 4px; border-radius: 2px; transform: translateY(-50%); }
.gf-range-rail { left: 12px; right: 12px; background: var(--gf-border-strong); }
.gf-range-fill { left: calc(12px + var(--a, 0) * (100% - 24px)); right: calc(12px + (1 - var(--b, 1)) * (100% - 24px)); background: var(--gf-primary); }
.gf-range-thumb { position: absolute; z-index: 1; top: 50%; left: calc(var(--p, 0) * (100% - 24px)); width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: var(--gf-ink-0); border: 1px solid var(--gf-border-control); box-shadow: 0 1px 3px rgba(11, 18, 32, 0.2); cursor: grab; touch-action: none; transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy), box-shadow var(--gf-dur-base) var(--gf-ease); }
.gf-range-thumb[data-top] { z-index: 2; }
.gf-range-thumb[data-drag] { transform: scale(1.15); cursor: grabbing; box-shadow: 0 0 0 6px var(--gf-focus-ring), 0 1px 3px rgba(11, 18, 32, 0.2); }
.gf-range-thumb:focus-visible { box-shadow: 0 1px 3px rgba(11, 18, 32, 0.2); outline: 2px solid var(--gf-focus-border); outline-offset: 2px; }
.gf-range-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 12px; margin-top: 8px; }
.gf-range-dash { padding-bottom: 10px; color: var(--gf-text-muted); }
.gf-range-fields .gf-input-wrap > input { font-variant-numeric: tabular-nums; }
/* Phones: 44 px targets, each reaching no further than halfway to the other thumb (--reach-l / --reach-r, set by JS) */
@media (max-width: 599.98px) {
  /* 50 % of the padding box (inside the 1 px border) is the thumb's centre */
  .gf-range-thumb::before { content: ''; position: absolute; top: 50%; left: calc(50% - var(--reach-l, 22px)); right: calc(50% - var(--reach-r, 22px)); height: var(--gf-hit); transform: translateY(-50%); }
  .gf-range-dash { padding-bottom: 12px; }
}

/* ───────────── CategoryBar ───────────── */
.gf-catbar { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; }
.gf-catbar-scroll { --fade-s: 0px; --fade-e: 0px; flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-s), #000 calc(100% - var(--fade-e)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-s), #000 calc(100% - var(--fade-e)), transparent 100%); }
.gf-catbar-scroll::-webkit-scrollbar { display: none; }
.gf-catbar:not([data-start]) .gf-catbar-scroll { --fade-s: 40px; }
.gf-catbar:not([data-end]) .gf-catbar-scroll { --fade-e: 40px; }
.gf-catbar[data-divider] .gf-catbar-scroll { box-shadow: inset 0 -1px 0 var(--gf-hairline); }
.gf-catbar-list { position: relative; display: flex; gap: 8px; width: max-content; }
.gf-catbar-item { position: relative; flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 64px; min-height: 68px; padding: 8px 12px 12px; border-radius: var(--gf-radius-sm); color: var(--gf-text-secondary); font-size: 13px; line-height: 18px; font-weight: 600; white-space: nowrap; transition: color var(--gf-dur-fast) var(--gf-ease); -webkit-tap-highlight-color: transparent; }
.gf-catbar-item .ico { display: grid; place-items: center; transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
.gf-catbar-item .ico svg { width: 24px; height: 24px; }
@media (hover: hover) {
  .gf-catbar-item:hover { color: var(--gf-text-strong); }
  .gf-catbar-item:hover:not([aria-checked="true"])::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; background: var(--gf-border-strong); pointer-events: none; }
}
.gf-catbar-item:active .ico { transform: scale(var(--gf-press-scale)); transition-duration: var(--gf-dur-instant); }
.gf-catbar-item[aria-checked="true"] { color: var(--gf-text-strong); }
.gf-catbar-item:focus-visible { box-shadow: none; outline: 2px solid var(--gf-focus-border); outline-offset: -2px; }
/* The underline glides to the chosen item: one 100 px bar, moved and scaled (transform only) */
.gf-catbar-ind { position: absolute; left: 0; bottom: 0; width: 100px; height: 2px; border-radius: 2px; background: var(--gf-text-strong); transform-origin: 0 50%; pointer-events: none; transition: transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy), opacity var(--gf-dur-fast) var(--gf-ease); }
.gf-catbar-btn { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--gf-border-control); background: var(--gf-surface); color: var(--gf-text-strong); box-shadow: var(--gf-shadow-card); transition: background-color var(--gf-dur-fast) var(--gf-ease), opacity var(--gf-dur-fast) var(--gf-ease), transform var(--gf-spring-snappy-dur) var(--gf-spring-snappy); }
.gf-catbar-btn svg { width: 16px; height: 16px; }
@media (hover: hover) { .gf-catbar-btn:hover:not([aria-disabled="true"]) { background: var(--gf-hover); } }
.gf-catbar-btn:active:not([aria-disabled="true"]) { transform: scale(var(--gf-press-scale)); transition-duration: var(--gf-dur-instant); }
.gf-catbar-btn[aria-disabled="true"] { opacity: 0.4; cursor: default; }
.gf-catbar-btn:focus-visible { box-shadow: none; outline: 2px solid var(--gf-focus-border); outline-offset: 2px; }
/* Phones: the row runs to the screen edges, so the next category peeks in */
@media (max-width: 599.98px) {
  .gf-catbar[data-bleed] { margin-inline: calc(-1 * var(--gf-gutter)); }
  .gf-catbar[data-bleed] .gf-catbar-list { padding-inline: var(--gf-gutter); }
  .gf-catbar-item { min-width: 72px; padding-inline: 8px; }
}

/* ───────────── FilterFooter ───────────── */
.gf-filterfoot { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-width: 0; }
.gf-filterfoot > .gf-btn.gf-filterfoot-clear { flex: none; width: auto; padding-inline: 12px; }
.gf-filterfoot > .gf-btn.gf-filterfoot-show { flex: 0 1 auto; width: auto; min-width: 200px; }
.gf-filterfoot-n { display: inline-block; font-weight: 800; animation: gf-filterfoot-tick var(--gf-dur-base) var(--gf-ease-out) both; }
.gf-filterfoot[data-sticky] { position: sticky; bottom: 0; z-index: 1; padding: 12px 0; background: var(--gf-surface); border-top: 1px solid var(--gf-hairline); }
@media (max-width: 599.98px) { .gf-filterfoot > .gf-btn.gf-filterfoot-show { flex: 1 1 auto; min-width: 0; } }
@keyframes gf-filterfoot-tick { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }

/* ───────────── AppliedFilters ───────────── */
/* 8 px between rows: on phones chips are 36 px and pad to 44, so neighbouring targets meet but never overlap */
.gf-applied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.gf-applied-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.gf-applied .gf-chip { background: var(--gf-primary-subtle); border-color: color-mix(in srgb, var(--gf-primary) 32%, var(--gf-border)); color: var(--gf-text-strong); }

/* ───────────── Reduced motion ───────────── */
@media (prefers-reduced-motion: reduce) {
  .gf-searchpill-seg, .gf-searchpill-go, .gf-searchpill-compact, .gf-searchsteps-row, .gf-searchopt, .gf-range-thumb, .gf-catbar-ind, .gf-catbar-item .ico, .gf-catbar-btn { transition-property: background-color, border-color, box-shadow, color, opacity; }
  .gf-range-thumb[data-drag] { transform: none; } /* press scales use --gf-press-scale, which is 1 here */
  .gf-searchpill-panel, .gf-searchsteps, .gf-searchsteps-card[data-open] { animation: gf-fade-in 160ms linear both; }
  .gf-range-hist > span, .gf-filterfoot-n { animation: none; }
}
@keyframes gf-range-grow { from { transform: scaleY(0); } }
    /* search & filters: SearchPill, RangeSlider, CategoryBar, FilterFooter, AppliedFilters */
/* ── editorial.css ── */
/* Greyfeathers v2 — editorial: MediaFrame · Figure · PullQuote (components/editorial.tsx)
   Art direction in code. A picture always sits in a frame of known ratio, so nothing shifts while it loads; the crop
   can change per window class; treatments grade the picture toward the app hue and never touch the text; any text on
   a picture sits on the image scrim; captions and credits are set like an editorial page.
   Rules: tokens only · treatments are filters and blend layers on the picture layer only · the overlay is outside the
   blend group · nothing moves; under prefers-reduced-motion the picture's fade-in is only shorter. */

:root {
  /* Six frames, used wherever a picture is framed (ListingCard is classic, the Outings hero is panorama / portrait) */
  --gf-ratio-square: 1 / 1;      /* objects, still lifes, places as avatars */
  --gf-ratio-portrait: 4 / 5;    /* people; the hero on a phone */
  --gf-ratio-classic: 4 / 3;     /* cards and inline pictures */
  --gf-ratio-photo: 3 / 2;       /* the editorial default: the camera's own frame */
  --gf-ratio-wide: 16 / 9;       /* video; heroes on tablets and laptops */
  --gf-ratio-panorama: 21 / 9;   /* full-width bands on large displays */
  /* The fill a picture rests on while it loads, or if it fails: the quiet surface, washed with the hue */
  --gf-media-fill: color-mix(in oklab, var(--gf-hue-100) 40%, var(--gf-surface-sunken));
  /* Under text on a picture: ink at 72 %. White text keeps 7.6 : 1 even where the picture is pure white. */
  --gf-scrim-image: color-mix(in srgb, var(--gf-ink-1000) 72%, transparent);
}
.dark { --gf-media-fill: color-mix(in oklab, var(--gf-hue-900) 25%, var(--gf-surface-sunken)); }

/* ───────────── MediaFrame ─────────────
   The frame owns the ratio and the fill; the media layer holds the picture and its treatment; the overlay sits above
   both. Ratio and crop come in as --mf-ar / --mf-pos (one value, or one per window class). */
.gf-mediaframe {
  position: relative; overflow: hidden; isolation: isolate; min-width: 0;
  aspect-ratio: var(--mf-ar, var(--gf-ratio-photo));
  border-radius: var(--gf-radius-card);
  background: var(--mf-fill, var(--gf-media-fill));
}
.gf-mediaframe[data-radius="tile"] { border-radius: var(--gf-radius-tile); }
.gf-mediaframe[data-radius="none"] { border-radius: 0; }
/* A hairline defines the edge when a pale picture meets a pale surface (light mode); full-bleed frames don't need it */
.gf-mediaframe:not([data-radius="none"])::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--gf-line); pointer-events: none; }

.gf-mediaframe-media { position: absolute; inset: 0; isolation: isolate; transition: opacity var(--gf-dur-moderate) var(--gf-ease-out); }
.gf-mediaframe-media > :is(img, video, svg, canvas, picture),
.gf-mediaframe-media > picture > img {
  display: block; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: var(--mf-pos, 50% 50%);
  filter: var(--mf-grade, ) var(--mf-dim, );
}
.gf-mediaframe-blur { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: blur(20px); transform: scale(1.1); }

/* Art-directed ratio and crop: each window class falls back to the next smaller one */
@media (min-width: 600px) {
  .gf-mediaframe { aspect-ratio: var(--mf-ar-medium, var(--mf-ar, var(--gf-ratio-photo))); }
  .gf-mediaframe-media > :is(img, video, svg, canvas, picture), .gf-mediaframe-media > picture > img { object-position: var(--mf-pos-medium, var(--mf-pos, 50% 50%)); }
}
@media (min-width: 1024px) {
  .gf-mediaframe { aspect-ratio: var(--mf-ar-expanded, var(--mf-ar-medium, var(--mf-ar, var(--gf-ratio-photo)))); }
  .gf-mediaframe-media > :is(img, video, svg, canvas, picture), .gf-mediaframe-media > picture > img { object-position: var(--mf-pos-expanded, var(--mf-pos-medium, var(--mf-pos, 50% 50%))); }
}
@media (min-width: 1440px) {
  .gf-mediaframe { aspect-ratio: var(--mf-ar-large, var(--mf-ar-expanded, var(--mf-ar-medium, var(--mf-ar, var(--gf-ratio-photo))))); }
  .gf-mediaframe-media > :is(img, video, svg, canvas, picture), .gf-mediaframe-media > picture > img { object-position: var(--mf-pos-large, var(--mf-pos-expanded, var(--mf-pos-medium, var(--mf-pos, 50% 50%)))); }
}

/* Loading: the fill (or the blurred placeholder) holds the space; the picture fades in once it has decoded */
.gf-mediaframe[data-state="loading"] .gf-mediaframe-media,
.gf-mediaframe[data-state="error"] .gf-mediaframe-media { opacity: 0; }
.gf-mediaframe-error { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gf-text-muted); }
.gf-mediaframe-error svg { width: 24px; height: 24px; }

/* Treatments — on the picture layer only. warm: a touch of sepia, then the hue's light step in soft light (with Ochre,
   the warm reference, this is warm light; other hues lean the grade toward themselves). mono: honest black and white.
   duotone: shadows in the hue's 900 step, highlights in its 100 step. */
.gf-mediaframe[data-treatment="warm"] { --mf-grade: sepia(0.18) saturate(1.08) brightness(1.02); }
.gf-mediaframe[data-treatment="mono"] { --mf-grade: grayscale(1) contrast(1.05); }
.gf-mediaframe[data-treatment="duotone"] { --mf-grade: grayscale(1) contrast(1.1) brightness(1.05); }
.gf-mediaframe[data-treatment="warm"] .gf-mediaframe-media::after,
.gf-mediaframe[data-treatment="duotone"] .gf-mediaframe-media::before,
.gf-mediaframe[data-treatment="duotone"] .gf-mediaframe-media::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.gf-mediaframe[data-treatment="warm"] .gf-mediaframe-media::after { background: var(--gf-hue-300); mix-blend-mode: soft-light; opacity: 0.45; }
.gf-mediaframe[data-treatment="duotone"] .gf-mediaframe-media::before { background: var(--gf-hue-900); mix-blend-mode: screen; }
.gf-mediaframe[data-treatment="duotone"] .gf-mediaframe-media::after { background: var(--gf-hue-100); mix-blend-mode: multiply; }
/* Dark mode: pictures step down a little so they don't glare against a dark canvas */
.dark .gf-mediaframe { --mf-dim: brightness(0.92); }

/* Text on a picture: always on the image scrim — a solid band under the text and a soft fade above it — so contrast never
   depends on the picture or the treatment. Text roles inside turn white; controls keep their own colours. */
.gf-mediaframe-overlay { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 4px; padding: 0 20px 20px; color: var(--gf-ink-0); background: var(--gf-scrim-image); }
.gf-mediaframe-overlay::before { content: ''; position: absolute; inset-inline: 0; bottom: 100%; height: 48px; background: linear-gradient(to top, var(--gf-scrim-image), transparent); pointer-events: none; }
.gf-mediaframe-overlay[data-at="top"] { bottom: auto; top: 0; padding: 20px 20px 0; }
.gf-mediaframe-overlay[data-at="top"]::before { bottom: auto; top: 100%; background: linear-gradient(to bottom, var(--gf-scrim-image), transparent); }
.gf-mediaframe-overlay :is(h1, h2, h3, h4, h5, h6, p, small, .gf-eyebrow, .gf-overline, .gf-caption, .gf-title, .gf-h1, .gf-h2, .gf-h3, .gf-display, .gf-display-xl, .gf-display-2xl, .gf-editorial-display, .gf-editorial-lede, .gf-strong, .gf-secondary, .gf-muted) { color: var(--gf-ink-0); }
.gf-mediaframe-overlay a:not(.gf-btn) { color: var(--gf-ink-0); text-decoration: underline; }
@media (max-width: 599.98px) {
  .gf-mediaframe-overlay { padding: 0 16px 16px; }
  .gf-mediaframe-overlay[data-at="top"] { padding: 16px 16px 0; }
}

/* ───────────── Figure ─────────────
   Picture, then the caption and the credit, left-aligned to the picture's edge and kept to the reading measure.
   side: on laptops and up the caption moves into a narrow column beside the picture, aligned to its foot. */
.gf-figure { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gf-figure > figcaption { display: flex; flex-direction: column; gap: 2px; max-width: var(--gf-measure); font-size: var(--gf-body-sm-size); line-height: var(--gf-body-sm-lh); color: var(--gf-text-secondary); }
.gf-figure-credit { font-size: var(--gf-caption-size); line-height: var(--gf-caption-lh); color: var(--gf-text-muted); }
@media (min-width: 1024px) {
  .gf-figure[data-caption="side"] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 240px); align-items: end; column-gap: 24px; }
  .gf-figure[data-caption="side"] > figcaption { padding-bottom: 2px; }
}

/* ───────────── PullQuote ─────────────
   The serif at quote size, balanced, with the opening mark hung outside the text edge so the words align with the
   column (optical alignment). Whitespace sets it apart; the rule variant adds a neutral line where space is short. */
.gf-pullquote { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gf-pullquote > blockquote { hanging-punctuation: none; }
.gf-pullquote > blockquote > p {
  max-width: var(--gf-measure-narrow);
  font-family: var(--gf-font-editorial); font-optical-sizing: auto; font-weight: var(--gf-display-quote-w);
  font-size: var(--gf-display-quote-size); line-height: var(--gf-display-quote-lh); letter-spacing: var(--gf-display-quote-tr);
  color: var(--gf-text-strong); text-wrap-style: balance; text-indent: -0.39em; hanging-punctuation: none;
}
.gf-pullquote > blockquote > p::before { content: '\201C'; color: var(--gf-text-muted); }
.gf-pullquote > blockquote > p::after { content: '\201D'; color: var(--gf-text-muted); }
.gf-pullquote > figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: var(--gf-label-size); line-height: var(--gf-label-lh); color: var(--gf-text-secondary); }
.gf-pullquote-by { font-weight: 600; color: var(--gf-text-strong); }
.gf-pullquote[data-size="lg"] { gap: 16px; }
.gf-pullquote[data-size="lg"] > blockquote > p { font-size: var(--gf-display-quote-lg-size); line-height: var(--gf-display-quote-lg-lh); font-weight: var(--gf-display-quote-lg-w); letter-spacing: var(--gf-display-quote-lg-tr); }
.gf-pullquote[data-variant="rule"] { padding-inline-start: 20px; border-inline-start: 2px solid var(--gf-border-strong); }
.gf-pullquote[data-align="center"] { align-items: center; text-align: center; margin-inline: auto; }
.gf-pullquote[data-align="center"] > blockquote > p { text-indent: 0; margin-inline: auto; }
.gf-pullquote[data-align="center"] > figcaption { justify-content: center; }

/* Reduced motion: nothing here moves; the picture's fade-in only shortens to a quick cross-fade */
@media (prefers-reduced-motion: reduce) { .gf-mediaframe-media { transition-duration: var(--gf-dur-fast); } }
 /* editorial: MediaFrame, Figure, PullQuote; aspect-ratio and image-scrim tokens */
/* ── workspace.css ── */
/* Greyfeathers v2 — workspace: the keyboard-first work UI and calm, document-like pages.
   Precision without clutter: dense rows on hairlines, one accent (the app hue marks focus, selection and the one
   primary action — nothing else), and quiet motion: 150 ms colour and opacity fades, nothing moves on hover.
   HotKey · StatusIcon · PriorityIcon · PropertyPill · TaskList / TaskRow · ShortcutsOverlay · PageCover · ViewTabs ·
   Callout · PropertyList */

/* ───────────── Hotkey: key caps with “then” between the steps of a sequence ───────────── */
.gf-hotkey { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; vertical-align: middle; }
.gf-hotkey .caps { display: inline-flex; align-items: center; gap: 4px; }
.gf-hotkey .then { font-size: 11px; line-height: 16px; color: var(--gf-text-muted); }
.gf-tooltip .gf-hotkey { margin-left: 8px; }
.gf-tooltip .gf-hotkey .gf-kbd { margin-left: 0; }
.gf-tooltip .gf-hotkey .then { color: inherit; opacity: 0.8; }

/* ───────────── StatusIcon · PriorityIcon ─────────────
   The glyph carries the meaning; colour reinforces it at ≥ 3 : 1 against surface, hover and selected (primary-subtle)
   rows, light and dark (WCAG 1.4.11). Never place them on --gf-primary-tint: in-progress gold drops below 3 : 1 there.
   In progress uses --gf-rating, the warning gold deepened to 3.5 : 1 on white (the plain warning gold is 2.4 : 1). */
.gf-status-icon, .gf-priority-icon { display: block; flex: none; }
.gf-status-icon[data-state], .gf-priority-icon[data-priority] { color: var(--c); } /* beats .gf-menu-item svg in pickers */
.gf-status-icon[data-state="backlog"] { --c: var(--gf-text-muted); }
.gf-status-icon[data-state="todo"] { --c: var(--gf-text-secondary); }
.gf-status-icon[data-state="in_progress"] { --c: var(--gf-rating); }
.gf-status-icon[data-state="in_review"] { --c: var(--gf-info); }
.gf-status-icon[data-state="done"] { --c: var(--gf-success-text); }
.gf-status-icon[data-state="cancelled"] { --c: var(--gf-text-muted); }
.gf-status-icon .mark { fill: none; stroke: var(--gf-surface); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gf-priority-icon[data-priority] { --c: var(--gf-text-secondary); }
.gf-priority-icon[data-priority="none"] { --c: var(--gf-text-muted); }
.gf-priority-icon[data-priority="urgent"] { --c: var(--gf-danger); }
.gf-priority-icon .on { fill: currentColor; }
.gf-priority-icon .off { fill: var(--gf-border-strong); } /* the empty track is decoration: the filled bars and the name carry the level */
.gf-priority-icon .mark { fill: none; stroke: var(--gf-surface); stroke-width: 1.8; stroke-linecap: round; }
.gf-priority-icon .dot { fill: var(--gf-surface); }

/* ───────────── PropertyPill ───────────── */
.gf-pill { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 28px; max-width: 100%; padding: 0 10px; border: 1px solid var(--gf-border); border-radius: var(--gf-radius-pill); background: var(--gf-surface); color: var(--gf-text); font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; transition: background-color var(--gf-dur-fast) var(--gf-ease), border-color var(--gf-dur-fast) var(--gf-ease), color var(--gf-dur-fast) var(--gf-ease); -webkit-tap-highlight-color: transparent; }
.gf-pill .p-ico { display: inline-flex; flex: none; }
.gf-pill .p-ico > svg:not(.gf-status-icon):not(.gf-priority-icon) { width: 14px; height: 14px; color: var(--gf-text-secondary); }
.gf-pill .p-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .gf-pill:hover:not(:disabled) { background: var(--gf-hover); border-color: var(--gf-border-strong); color: var(--gf-text-strong); } }
.gf-pill:active:not(:disabled), .gf-pill[aria-expanded="true"] { background: var(--gf-pressed); border-color: var(--gf-border-strong); color: var(--gf-text-strong); }
.gf-pill[data-empty] { color: var(--gf-text-muted); }
.gf-pill[data-empty][data-display="pill"] { border-style: dashed; border-color: var(--gf-border-strong); }
.gf-pill:disabled { opacity: 0.5; cursor: not-allowed; }
.gf-pill[data-display="icon"] { justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: var(--gf-radius-xs); background: transparent; }
.gf-pill[data-display="plain"] { height: auto; min-height: 28px; margin-left: -6px; padding: 4px 6px; border: 0; border-radius: var(--gf-radius-xs); background: transparent; font-size: 14px; font-weight: 400; line-height: 20px; color: var(--gf-text-strong); white-space: normal; text-align: left; }
.gf-pill[data-display="plain"] .p-txt { overflow: visible; overflow-wrap: anywhere; }
.gf-pill[data-display="plain"][data-empty] { color: var(--gf-text-muted); }
.gf-pill.is-hover { background: var(--gf-hover); border-color: var(--gf-border-strong); color: var(--gf-text-strong); }
.gf-pill.is-focus { box-shadow: var(--gf-focus); }
/* Phones: a 44 × 44 target around the pill; rows keep ≥ 12 px between pills so padded areas never reach a neighbour. */
@media (max-width: 599.98px) {
  .gf-pill::after { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, var(--gf-hit)); height: max(100%, var(--gf-hit)); transform: translate(-50%, -50%); }
  .gf-pill[data-display="plain"] { font-size: 15px; }
}

/* The picker: a filter field over a listbox, in a popover (medium+) or a bottom sheet (phones) */
.gf-pill-pop { width: 264px; padding: 6px; }
.gf-picker { display: flex; flex-direction: column; gap: 4px; }
.gf-picker-in { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-bottom: 1px solid var(--gf-hairline); transition: box-shadow var(--gf-dur-fast) var(--gf-ease); }
.gf-picker-in:focus-within { box-shadow: inset 0 -2px 0 var(--gf-focus-border); }
.gf-picker-in svg { width: 14px; height: 14px; flex: none; color: var(--gf-text-muted); }
.gf-picker-in input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: 14px; color: var(--gf-text-strong); }
.gf-picker-in input:focus-visible { box-shadow: none; }
.gf-picker-in input::placeholder { color: var(--gf-text-muted); }
.gf-picker-list { max-height: min(320px, 50vh); overflow-y: auto; overscroll-behavior: contain; }
.gf-picker-opt .o-ico { display: inline-flex; flex: none; }
.gf-picker-opt .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gf-picker-opt .h { font-size: 12px; color: var(--gf-text-muted); }
.gf-picker-opt .chk { width: 14px; height: 14px; color: var(--gf-primary); }
.gf-picker-empty { padding: 12px 10px; font-size: 13px; color: var(--gf-text-muted); }
.gf-sheet .gf-picker { padding: 0 12px 12px; }
.gf-sheet .gf-picker-in { height: 48px; }
.gf-sheet .gf-picker-in input { font-size: 16px; } /* iOS zooms fields under 16 px */

/* ───────────── TaskList · TaskRow ───────────── */
.gf-tasklist-wrap { min-width: 0; border-radius: inherit; overflow: clip; }
.gf-tasklist { list-style: none; margin: 0; padding: 0; }
.gf-taskrow { position: relative; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 12px 4px 8px; border-bottom: 1px solid var(--gf-hairline); color: var(--gf-text); transition: background-color var(--gf-dur-fast) var(--gf-ease); }
.gf-taskrow:last-child { border-bottom: 0; }
@media (hover: hover) { .gf-taskrow:hover { background: var(--gf-hover); } }
.gf-taskrow[data-selected] { background: var(--gf-primary-subtle); }
.gf-taskrow[data-current] { background: var(--gf-primary-subtle); box-shadow: inset 2px 0 0 var(--gf-primary); }
/* One stretched button opens the row; every other part sits above it. Parts that aren't controls let clicks through. */
.gf-taskrow .main { flex: 1 1 auto; display: flex; align-items: center; min-width: 0; min-height: 32px; padding: 0; text-align: left; color: var(--gf-text-strong); font-size: 14px; font-weight: 500; line-height: 20px; }
.gf-taskrow .main .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-taskrow .main::after { content: ''; position: absolute; inset: 0; }
.gf-taskrow .main:focus-visible { box-shadow: none; }
.gf-taskrow:has(.main:focus-visible) { box-shadow: inset 0 0 0 2px var(--gf-focus-border); }
.gf-taskrow > :not(.main) { position: relative; z-index: 1; }
.gf-taskrow :is(.id, .st, .pr, .labels, .who, .end) { pointer-events: none; }
.gf-taskrow :is(.st, .pr, .who, .end) :is(button, a) { pointer-events: auto; }
.gf-taskrow .sel { display: inline-flex; flex: none; }
.gf-taskrow .sel .gf-check { min-width: 24px; min-height: 24px; align-items: center; justify-content: center; }
.gf-taskrow .sel .gf-check .box { margin-top: 0; }
.gf-taskrow :is(.st, .pr) { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 24px; min-height: 24px; }
.gf-taskrow .id { flex: none; width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--gf-text-muted); font-variant-numeric: tabular-nums; }
.gf-taskrow .labels { display: flex; flex: none; gap: 6px; }
.gf-taskrow .who { display: inline-flex; flex: none; }
.gf-taskrow .end { display: grid; flex: none; min-width: 72px; align-items: center; justify-items: end; }
.gf-taskrow .end > * { grid-area: 1 / 1; }
.gf-taskrow .date { font-size: 12px; line-height: 16px; color: var(--gf-text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; transition: opacity var(--gf-dur-fast) var(--gf-ease); }
.gf-taskrow .date[data-tone="danger"] { color: var(--gf-danger-text); font-weight: 600; }
.gf-taskrow .date[data-tone="warning"] { color: var(--gf-warning-text); font-weight: 600; }
.gf-taskrow .acts { display: inline-flex; gap: 2px; transition: opacity var(--gf-dur-fast) var(--gf-ease); }
.gf-taskrow .more { display: none; }
/* Hover-capable pointers: actions and the checkbox appear on hover or keyboard focus (the date steps aside for them). */
@media (hover: hover) and (pointer: fine) and (min-width: 600px) {
  .gf-taskrow .acts { opacity: 0; }
  .gf-taskrow .acts button { pointer-events: none; }
  .gf-taskrow:hover .acts, .gf-taskrow:focus-within .acts { opacity: 1; }
  .gf-taskrow:hover .acts button, .gf-taskrow:focus-within .acts button { pointer-events: auto; }
  .gf-taskrow:is(:hover, :focus-within) .end:has(.acts) .date { opacity: 0; }
  .gf-taskrow .sel { opacity: 0; transition: opacity var(--gf-dur-fast) var(--gf-ease); }
  .gf-taskrow:is(:hover, :focus-within, [data-selected], [data-selecting]) .sel { opacity: 1; }
}
/* Touch, and phones: no hover, so the actions live in a ⋯ menu that is always there. */
@media (hover: none), (pointer: coarse), (max-width: 599.98px) {
  .gf-taskrow .acts { display: none; }
  .gf-taskrow .more { display: inline-flex; }
}
.gf-taskrow.is-hover { background: var(--gf-hover); }
.gf-taskrow.is-hover .acts, .gf-taskrow.is-hover .sel, .gf-taskrow.is-focus .acts, .gf-taskrow.is-focus .sel { opacity: 1; }
.gf-taskrow.is-hover .end:has(.acts) .date, .gf-taskrow.is-focus .end:has(.acts) .date { opacity: 0; }
.gf-taskrow.is-focus { box-shadow: inset 0 0 0 2px var(--gf-focus-border); }
/* Phones: two lines — the title, then reference · labels · date — with the status before and the ⋯ menu after. */
.gf-taskrow[data-layout="compact"] { gap: 12px; min-height: 56px; padding: 8px 12px; }
.gf-taskrow[data-layout="compact"] .main { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 40px; }
.gf-taskrow[data-layout="compact"] .main .t { max-width: 100%; font-size: 15px; font-weight: 600; line-height: 20px; }
.gf-taskrow[data-layout="compact"] .sub { display: block; max-width: 100%; font-size: 13px; font-weight: 400; line-height: 18px; color: var(--gf-text-secondary); }
.gf-taskrow[data-layout="compact"] .sub > * + *::before { content: '·'; margin: 0 6px; color: var(--gf-text-muted); }
.gf-taskrow[data-layout="compact"] .sub .date[data-tone="danger"] { color: var(--gf-danger-text); font-weight: 600; }
.gf-taskrow[data-layout="compact"] .sub .date[data-tone="warning"] { color: var(--gf-warning-text); font-weight: 600; }
.gf-tasklabel { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 1px solid var(--gf-border); border-radius: var(--gf-radius-pill); background: var(--gf-surface); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--gf-text-secondary); white-space: nowrap; }
.gf-tasklabel i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--tone, var(--gf-neutral)); }
.gf-tasklist-bulk { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 8px 4px 16px; border-bottom: 1px solid var(--gf-hairline); background: var(--gf-primary-subtle); animation: gf-fade-in var(--gf-dur-fast) var(--gf-ease-out) both; }
.gf-tasklist-bulk .n { font-size: 13px; font-weight: 600; color: var(--gf-primary-text); }
.gf-tasklist-hint { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 10px 16px; border-top: 1px solid var(--gf-hairline); font-size: 12px; line-height: 20px; color: var(--gf-text-muted); }
.gf-tasklist-hint > span { display: inline-flex; align-items: center; gap: 6px; }
@media (hover: none), (max-width: 599.98px) { .gf-tasklist-hint { display: none; } }

/* ───────────── ShortcutsOverlay ───────────── */
.gf-shortcuts { display: flex; flex-direction: column; gap: 20px; }
.gf-shortcuts .groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 32px; }
@media (min-width: 840px) { .gf-shortcuts .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gf-shortcuts .grp h3 { margin-bottom: 4px; }
.gf-shortcuts dl { margin: 0; }
.gf-shortcuts .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding: 4px 0; border-bottom: 1px solid var(--gf-hairline); }
.gf-shortcuts .row:last-child { border-bottom: 0; }
.gf-shortcuts dt { min-width: 0; font-size: 14px; line-height: 20px; color: var(--gf-text); }
.gf-shortcuts dd { flex: none; margin: 0; }
.gf-shortcuts .pref { padding-top: 16px; border-top: 1px solid var(--gf-hairline); }

/* ───────────── PageCover ─────────────
   The band is a quiet wash of the app hue (or sunken grey); the icon tile overlaps its lower edge; title, subtitle and
   properties line up with card content (--gf-card-pad), so the header reads as part of the document below it. */
.gf-cover { display: flex; flex-direction: column; min-width: 0; margin-bottom: var(--gf-section-gap); }
.gf-cover > .gf-crumbs, .gf-cover > .gf-back { align-self: flex-start; margin-bottom: 12px; }
.gf-cover .band { height: 112px; border-radius: var(--gf-radius-card); background:
  radial-gradient(90% 160% at 0% 0%, color-mix(in srgb, var(--gf-primary) 20%, transparent), transparent 62%),
  radial-gradient(70% 120% at 100% 100%, color-mix(in srgb, var(--gf-primary) 10%, transparent), transparent 58%),
  var(--gf-primary-subtle); }
.gf-cover[data-cover="neutral"] .band { background: var(--gf-surface-sunken); }
.gf-cover .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; min-width: 0; padding: 0 var(--gf-card-pad); }
.gf-cover .ico { display: grid; place-items: center; flex: none; width: 56px; height: 56px; margin-top: -28px; border-radius: var(--gf-radius-tile); background: var(--gf-surface); color: var(--gf-primary); box-shadow: var(--gf-shadow-card), 0 0 0 1px var(--gf-border); }
.gf-cover .ico svg { width: 26px; height: 26px; }
.gf-cover[data-cover="none"] .ico { margin-top: 0; }
.gf-cover .acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; padding-top: 12px; }
.gf-cover .tt { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px var(--gf-card-pad) 0; }
.gf-cover .title { font-size: var(--gf-h2-size); line-height: var(--gf-h2-lh); font-weight: var(--gf-h2-w); letter-spacing: var(--gf-h2-tr); color: var(--gf-text-strong); overflow-wrap: anywhere; }
.gf-cover .sub { font-size: 14px; line-height: 20px; color: var(--gf-text-secondary); }
.gf-cover .props { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; padding: 16px var(--gf-card-pad) 0; }
@media (max-width: 1023.98px) { .gf-cover .band { height: 88px; } }
@media (max-width: 599.98px) {
  .gf-cover .band { height: 64px; border-radius: var(--gf-radius-tile); }
  .gf-cover .ico { width: 44px; height: 44px; margin-top: -22px; }
  .gf-cover .ico svg { width: 22px; height: 22px; }
  .gf-cover .acts { padding-top: 8px; }
  .gf-cover .tt, .gf-cover .tt.gf-largetitle { padding: 12px var(--gf-card-pad) 0; }
  .gf-cover .title { font-size: 28px; line-height: 34px; font-weight: 800; letter-spacing: -0.025em; }
  .gf-cover .props { gap: 12px; }
}

/* ───────────── ViewTabs ─────────────
   Quiet tabs on a hairline: the selected view is strong text over a 2 px ink underline (the hue stays for actions). */
.gf-viewtabs { display: flex; align-items: flex-end; gap: 4px; min-width: 0; margin-bottom: 12px; border-bottom: 1px solid var(--gf-hairline); }
.gf-viewtabs .tabs { display: flex; gap: 2px; min-width: 0; }
.gf-viewtab { position: relative; display: inline-flex; align-items: center; gap: 6px; flex: 0 1 auto; min-width: 0; height: 36px; padding: 0 10px; border-radius: var(--gf-radius-sm) var(--gf-radius-sm) 0 0; font-size: 13px; font-weight: 500; line-height: 1; color: var(--gf-text-secondary); white-space: nowrap; transition: color var(--gf-dur-fast) var(--gf-ease), background-color var(--gf-dur-fast) var(--gf-ease); -webkit-tap-highlight-color: transparent; }
.gf-viewtab .v-ico { display: inline-flex; flex: none; }
.gf-viewtab .v-ico svg { width: 15px; height: 15px; }
.gf-viewtab .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gf-viewtab .n { font-size: 12px; font-weight: 600; color: var(--gf-text-muted); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .gf-viewtab:hover { color: var(--gf-text-strong); background: var(--gf-hover); } }
.gf-viewtab[aria-selected="true"] { color: var(--gf-text-strong); font-weight: 600; }
.gf-viewtab[aria-selected="true"]::before { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--gf-text-strong); pointer-events: none; }
.gf-viewtab-more { flex: none; }
.gf-viewtab-more svg { width: 14px; height: 14px; }
.gf-viewtab.is-hover { color: var(--gf-text-strong); background: var(--gf-hover); }
.gf-viewtab.is-focus { box-shadow: var(--gf-focus); }
.gf-viewtabs .acts { display: flex; flex: none; align-items: center; gap: 8px; margin-left: auto; padding-bottom: 6px; }
@media (max-width: 599.98px) {
  .gf-viewtab { height: 44px; padding: 0 12px; font-size: 14px; }
  /* Three or more views on a phone: the words win the room, the icons step aside. */
  .gf-viewtabs .tabs:has(> .gf-viewtab:nth-child(3)) .v-ico { display: none; }
}

/* ───────────── Callout ───────────── */
.gf-callout { display: flex; gap: 12px; min-width: 0; padding: 16px; border-radius: var(--gf-radius-tile); background: var(--tone-subtle, var(--gf-surface-sunken)); color: var(--gf-text); }
.gf-callout[data-tone="neutral"] { background: var(--gf-surface-sunken); }
.dark .gf-callout[data-tone="neutral"] { background: var(--gf-surface-raised); }
.gf-callout .ico { display: inline-flex; flex: none; padding-top: 2px; color: var(--tone-text, var(--gf-text-secondary)); }
.gf-callout[data-tone="neutral"] .ico { color: var(--gf-text-secondary); }
.gf-callout .ico svg { width: 20px; height: 20px; }
.gf-callout .body { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; font-size: 14px; line-height: 22px; }
.gf-callout .t { font-weight: 600; color: var(--gf-text-strong); }
.gf-callout .txt > p + p { margin-top: 8px; }
.gf-callout .txt :is(b, strong) { font-weight: 600; color: var(--gf-text-strong); }
.gf-callout .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
@media (min-width: 1024px) { .gf-callout { padding: 20px; } }
@media (max-width: 599.98px) { .gf-callout .body { font-size: 15px; } }

/* ───────────── PropertyList ───────────── */
.gf-props { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.gf-props .row { display: grid; grid-template-columns: minmax(104px, 36%) minmax(0, 1fr); align-items: center; column-gap: 12px; min-height: 36px; }
.gf-props dt { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; line-height: 20px; color: var(--gf-text-secondary); }
.gf-props dt .ico { display: inline-flex; flex: none; color: var(--gf-text-muted); }
.gf-props dt .ico svg { width: 16px; height: 16px; }
.gf-props dt .k { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-props dd { display: flex; align-items: center; min-width: 0; margin: 0; font-size: 14px; line-height: 20px; color: var(--gf-text-strong); overflow-wrap: anywhere; }
.gf-props dd .empty { color: var(--gf-text-muted); }
.gf-props-value { position: relative; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 28px; margin-left: -6px; padding: 4px 6px; border-radius: var(--gf-radius-xs); text-align: left; color: var(--gf-text-strong); transition: background-color var(--gf-dur-fast) var(--gf-ease); }
.gf-props-value .v { min-width: 0; overflow-wrap: anywhere; }
.gf-props-value .v.empty { color: var(--gf-text-muted); }
.gf-props-value .edit { width: 14px; height: 14px; flex: none; color: var(--gf-text-muted); opacity: 0; transition: opacity var(--gf-dur-fast) var(--gf-ease); }
@media (hover: hover) { .gf-props-value:hover { background: var(--gf-hover); } .gf-props-value:hover .edit { opacity: 1; } }
@media (hover: none) { .gf-props-value .edit { opacity: 1; } }
.gf-props-value:focus-visible .edit, .gf-props-value.is-hover .edit { opacity: 1; }
.gf-props-value.is-hover { background: var(--gf-hover); }
.gf-props-input { width: 100%; min-width: 0; height: 32px; margin-left: -8px; padding: 0 8px; border: 1px solid var(--gf-focus-border); border-radius: var(--gf-radius-xs); outline: none; background: var(--gf-surface); color: var(--gf-text-strong); font: inherit; font-size: 14px; box-shadow: var(--gf-focus-halo); }
@media (max-width: 599.98px) {
  .gf-props .row { min-height: 44px; }
  .gf-props dd { font-size: 15px; }
  .gf-props-value::after, .gf-props dd > a::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: var(--gf-hit); transform: translateY(-50%); }
  .gf-props dd > a { position: relative; }
  .gf-props-input { height: 40px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .gf-pill, .gf-picker-in, .gf-taskrow, .gf-taskrow .acts, .gf-taskrow .sel, .gf-taskrow .date, .gf-viewtab, .gf-props-value, .gf-props-value .edit { transition: none; }
  .gf-tasklist-bulk { animation: none; }
}
 /* work UI: TaskRow, PropertyPill, StatusIcon, ShortcutsOverlay; PageCover, ViewTabs, Callout, PropertyList */
/* ── interaction.css ── */
/* Greyfeathers v2 — micro-interactions (components/interaction.tsx)
   Reveal · Spotlight · Magnetic · Tilt · link nudges · NumberTicker.
   Rules: transform (or translate) and opacity only · springs that settle in ≤ 300 ms · interruptible · pointer
   effects only with a hover-capable fine pointer · nothing moves under prefers-reduced-motion · never in dense work UI. */

:root {
  /* The interaction spring: the snappy spring's curve, settled in 300 ms (≈ response 0.2 s, damping 0.86). */
  --gf-ix-spring: var(--gf-spring-snappy);
  --gf-ix-dur: 300ms;
  --gf-ix-fade: 200ms;
}

/* ───────────── Reveal ─────────────
   JS marks items "wait" before the first paint and "in" when they scroll into view. Only the individual translate
   property and opacity animate, so an item's own transform (a hover lift) still works. */
[data-gf-reveal-item="wait"] { opacity: 0; translate: 0 var(--gf-reveal-y, 12px); }
[data-gf-reveal-item="in"] {
  animation: gf-reveal-fade var(--gf-ix-dur) var(--gf-ease-out) var(--gf-reveal-d, 0ms) backwards,
             gf-reveal-rise var(--gf-ix-dur) var(--gf-ix-spring) var(--gf-reveal-d, 0ms) backwards;
}
@keyframes gf-reveal-fade { from { opacity: 0; } }
@keyframes gf-reveal-rise { from { translate: 0 var(--gf-reveal-y, 12px); } }

/* ───────────── Spotlight ─────────────
   Two layers: a faint fill behind the content and a brighter glow along the border (a 1 px ring cut by a mask).
   The glow element moves by transform, 1:1 with the pointer; the layers fade in and out by opacity. */
.gf-spot { position: relative; isolation: isolate; }
.gf-spot-fill, .gf-spot-edge { position: absolute; border-radius: inherit; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity var(--gf-ix-dur) var(--gf-ease-out); }
.gf-spot-fill { inset: 0; z-index: -1; }
/* inset −1 px covers the card's own 1 px border; the mask keeps only that ring */
.gf-spot-edge { inset: calc(-1 * var(--gf-spot-bw, 1px)); z-index: 2; padding: var(--gf-spot-bw, 1px);
  -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); }
.gf-spot-glow { position: absolute; left: 0; top: 0; width: var(--gf-spot-size, 360px); height: var(--gf-spot-size, 360px); border-radius: 50%;
  transform: translate3d(calc(var(--gf-spot-x, 50%) - 50%), calc(var(--gf-spot-y, 0px) - 50%), 0); }
/* The fill is faint enough that muted text on it keeps 4.5 : 1 */
.gf-spot-fill .gf-spot-glow { background: radial-gradient(closest-side, color-mix(in srgb, var(--gf-primary) 7%, transparent), transparent); }
.gf-spot-edge .gf-spot-glow { background: radial-gradient(closest-side, color-mix(in srgb, var(--gf-primary) 75%, transparent), transparent); }
.dark .gf-spot-fill .gf-spot-glow { background: radial-gradient(closest-side, color-mix(in srgb, var(--gf-hue-400) 9%, transparent), transparent); }
.dark .gf-spot-edge .gf-spot-glow { background: radial-gradient(closest-side, color-mix(in srgb, var(--gf-hue-300) 80%, transparent), transparent); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .gf-spot[data-gf-spot="on"] > .gf-spot-fill, .gf-spot[data-gf-spot="on"] > .gf-spot-edge { opacity: 1; }
}
/* Docs figures: show the lit state without a pointer */
.gf-spot[data-gf-spot="demo"] > .gf-spot-fill, .gf-spot[data-gf-spot="demo"] > .gf-spot-edge { opacity: 1; transition: none; }

/* ───────────── Magnetic ─────────────
   The wrapper drifts (JS writes `translate`); the control inside keeps its own hover lift and press scale. */
.gf-magnet { display: inline-flex; vertical-align: top; }
.gf-magnet[data-block] { display: flex; width: 100%; }
.gf-magnet[data-block] > * { flex: 1 1 auto; }

/* ───────────── Tilt ───────────── */
.gf-tilt { perspective: 1200px; }
.gf-tilt-in { position: relative; border-radius: inherit; transform: rotateX(var(--gf-tilt-rx, 0deg)) rotateY(var(--gf-tilt-ry, 0deg)); transform-style: preserve-3d; }
.gf-tilt-glare { position: absolute; inset: 0; z-index: 3; border-radius: inherit; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity var(--gf-ix-dur) var(--gf-ease-out); }
.gf-tilt-glare > span { position: absolute; left: 0; top: 0; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.16), transparent);
  transform: translate3d(calc(var(--gf-tilt-gx, 50%) - 50%), calc(var(--gf-tilt-gy, 0px) - 50%), 0); }
.dark .gf-tilt-glare > span { background: radial-gradient(closest-side, rgba(255, 255, 255, 0.08), transparent); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) { .gf-tilt[data-gf-tilt="on"] .gf-tilt-glare { opacity: 1; } }
.gf-tilt[data-gf-tilt="demo"] .gf-tilt-glare { opacity: 1; transition: none; }

/* ───────────── Link nudges ─────────────
   .gf-nudge: the link's arrow (its last svg, or [data-nudge]) slides 3 px along its direction.
   .gf-underline: an underline grows from the start edge (a scaled ::after, so only transform animates).
   Both answer hover on a fine pointer, after a 40 ms intent delay so a pointer passing over doesn't set them off, and
   keyboard focus. Use them on short standalone links ("Read the story →"), not inside running text. */
/* Layout defaults at zero specificity, so a component's own layout (a .gf-btn) always wins */
:where(.gf-nudge, .gf-underline) { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
:where(.gf-nudge > svg:last-child) { width: 1em; height: 1em; flex: none; }
.gf-underline { position: relative; }
.gf-nudge > svg:last-child, .gf-nudge [data-nudge] { transition: transform var(--gf-ix-dur) var(--gf-ix-spring); }
.gf-nudge[data-dir="up-right"] > svg:last-child, .gf-nudge[data-dir="up-right"] [data-nudge] { --gf-nudge: translate3d(2px, -2px, 0); }
.gf-nudge[data-dir="down"] > svg:last-child, .gf-nudge[data-dir="down"] [data-nudge] { --gf-nudge: translate3d(0, 3px, 0); }
.gf-underline::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; border-radius: 1px; background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform var(--gf-ix-dur) var(--gf-ix-spring); pointer-events: none; }
.gf-nudge:hover, .gf-underline:hover, .gf-nudge:focus-visible, .gf-underline:focus-visible { text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .gf-nudge:hover > svg:last-child, .gf-nudge:hover [data-nudge] { transform: var(--gf-nudge, translate3d(3px, 0, 0)); transition-delay: 40ms; }
  .gf-underline:hover::after { transform: scaleX(1); transition-delay: 40ms; }
}
.gf-nudge:focus-visible > svg:last-child, .gf-nudge:focus-visible [data-nudge] { transform: var(--gf-nudge, translate3d(3px, 0, 0)); }
.gf-underline:focus-visible::after { transform: scaleX(1); }
/* Docs figures: the hover state without a pointer */
.gf-nudge[data-demo] > svg:last-child, .gf-nudge[data-demo] [data-nudge] { transform: var(--gf-nudge, translate3d(3px, 0, 0)); }
.gf-underline[data-demo]::after { transform: scaleX(1); }

/* ───────────── NumberTicker ─────────────
   Tabular figures; an invisible copy of the final value holds the width, so the count never shifts its neighbours. */
.gf-ticker { display: inline-grid; justify-items: var(--gf-ticker-align, start); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gf-ticker > .gf-ticker-size, .gf-ticker > .gf-ticker-live { grid-area: 1 / 1; }
.gf-ticker > .gf-ticker-size { visibility: hidden; }

/* ───────────── Reduced motion and print: nothing moves, everything shows ───────────── */
@media (prefers-reduced-motion: reduce) {
  [data-gf-reveal-item] { opacity: 1 !important; translate: none !important; animation: none !important; }
  .gf-spot-fill, .gf-spot-edge, .gf-tilt-glare { display: none; }
  .gf-magnet { translate: none !important; }
  .gf-tilt-in { transform: none !important; }
  .gf-nudge > svg:last-child, .gf-nudge [data-nudge] { transform: none !important; transition: none !important; }
  .gf-underline::after { transition: none !important; }
}
@media print {
  [data-gf-reveal-item] { opacity: 1 !important; translate: none !important; animation: none !important; }
}
 /* micro-interactions: Reveal, Spotlight, Magnetic, Tilt, link nudges, NumberTicker */
/* ── marketing.css ── */
/* Greyfeathers v2 — marketing: the landing-page kit (components/marketing.tsx)
   SiteHeader · Hero · ProductShot · LogoCloud · SiteSection · FeatureBento · FeatureSplit · StatsBand · Testimonial ·
   PricingTable · FAQ · CTABand · SiteFooter.
   One content width, one section rhythm, an editorial display face for titles, and gradients only as atmosphere.
   Every layout is set per window class: compact < 600 · medium 600–1023 · expanded 1024–1439 · large ≥ 1440. */

:root {
  --gf-mk-display: var(--gf-font-editorial, var(--gf-font-serif));
  --gf-mk-max: 1200px;                                   /* the content width of every section */
  --gf-mk-pad: 64px;                                     /* section padding, top and bottom */
  --gf-mk-gap: 32px;                                     /* intro → content */
  --gf-mk-hero-size: 42px; --gf-mk-hero-lh: 46px;
  --gf-mk-h2-size: 32px; --gf-mk-h2-lh: 38px;
  --gf-mk-lead-size: 16px; --gf-mk-lead-lh: 26px;
  --gf-mk-quote-size: 26px; --gf-mk-quote-lh: 34px;
  --gf-mk-stat-size: 40px; --gf-mk-stat-lh: 44px;
}
@media (min-width: 600px) {
  :root { --gf-mk-pad: 80px; --gf-mk-gap: 40px; --gf-mk-hero-size: 56px; --gf-mk-hero-lh: 60px; --gf-mk-h2-size: 40px; --gf-mk-h2-lh: 46px;
    --gf-mk-lead-size: 18px; --gf-mk-lead-lh: 28px; --gf-mk-quote-size: 32px; --gf-mk-quote-lh: 40px; --gf-mk-stat-size: 44px; --gf-mk-stat-lh: 48px; }
}
@media (min-width: 1024px) {
  /* the hero title grows with the window inside this class (52 → 64 px), so a split hero keeps two or three lines */
  :root { --gf-mk-pad: 96px; --gf-mk-gap: 48px; --gf-mk-hero-size: clamp(52px, calc(4.4vw + 8px), 64px); --gf-mk-hero-lh: calc(var(--gf-mk-hero-size) + 4px); --gf-mk-h2-size: 46px; --gf-mk-h2-lh: 52px;
    --gf-mk-quote-size: 38px; --gf-mk-quote-lh: 46px; --gf-mk-stat-size: 52px; --gf-mk-stat-lh: 56px; }
}
@media (min-width: 1440px) {
  :root { --gf-mk-max: 1280px; --gf-mk-pad: 112px; --gf-mk-gap: 56px; --gf-mk-hero-size: 80px; --gf-mk-hero-lh: 84px; --gf-mk-h2-size: 52px; --gf-mk-h2-lh: 58px;
    --gf-mk-lead-size: 20px; --gf-mk-lead-lh: 32px; --gf-mk-quote-size: 44px; --gf-mk-quote-lh: 52px; --gf-mk-stat-size: 60px; --gf-mk-stat-lh: 64px; }
}

/* ───────────── The grid and the section rhythm ───────────── */
.gf-mk-wrap { width: 100%; max-width: calc(var(--gf-mk-max) + 2 * var(--gf-gutter)); margin-inline: auto; padding-inline: var(--gf-gutter); container: mk / inline-size; }
/* Grids inside follow the content column (@container mk): on a page that is the window class — 520 px of content is a
   tablet, 960 px a desktop — and in a narrow docs box or side column they step down instead of overflowing. */
.gf-mk-section { position: relative; padding-block: var(--gf-mk-pad); }
.gf-mk-section:focus, .gf-mk-section:focus-visible { outline: none; box-shadow: none; } /* an anchor target: focus only moves the starting point */
.gf-mk-section[data-tone="surface"] { background: var(--gf-surface); border-block: 1px solid var(--gf-hairline); }
.gf-mk-section[data-tone="tint"] { background: var(--gf-primary-subtle); }
.gf-mk-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 760px; margin-bottom: var(--gf-mk-gap); }
.gf-mk-intro[data-align="center"] { align-items: center; text-align: center; margin-inline: auto; }
.gf-mk-intro:last-child { margin-bottom: 0; }
/* Phones read centred paragraphs badly (every line starts somewhere new): intros align to the start */
@container mk (max-width: 519.98px) { .gf-mk-intro[data-align="center"] { align-items: flex-start; text-align: left; margin-inline: 0; } }
.gf-mk-eyebrow { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gf-primary-text); }
.gf-mk-title { font-family: var(--gf-mk-display); font-size: var(--gf-mk-h2-size); line-height: var(--gf-mk-h2-lh); font-weight: 400; letter-spacing: -0.02em; color: var(--gf-text-strong); text-wrap: balance; }
.gf-mk-lead { font-size: var(--gf-mk-lead-size); line-height: var(--gf-mk-lead-lh); color: var(--gf-text-secondary); max-width: 62ch; text-wrap: pretty; }

/* Calls to action: links styled as buttons. Phones: the pair shares the row (each grows), or stacks when it can't. */
.gf-mk-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
a.gf-mk-cta, a.gf-mk-cta:hover { text-decoration: none; }
@container mk (max-width: 519.98px) {
  .gf-mk-ctas > * { flex: 1 1 auto; }
  .gf-mk-ctas > .gf-magnet > .gf-btn { flex: 1 1 auto; }
}
/* A standalone text link with an arrow (pairs with .gf-nudge .gf-underline) */
.gf-mk-link { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--gf-link); }
@media (max-width: 599.98px) { .gf-mk-link::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: var(--gf-hit); transform: translateY(-50%); } }
.gf-mk-points { display: flex; flex-direction: column; gap: 12px; list-style: none; }
.gf-mk-points li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 22px; color: var(--gf-text); }
.gf-mk-points svg { width: 18px; height: 18px; margin-top: 2px; flex: none; color: var(--gf-primary-text); }

/* ───────────── SiteHeader ───────────── */
html:has(.gf-site-header:not([data-static])) { scroll-padding-top: 80px; } /* focus scrolled into view clears the sticky header (WCAG 2.4.11) */
.gf-site-header { position: sticky; top: 0; z-index: var(--gf-z-nav); padding-top: var(--gf-safe-top); background: var(--gf-glass-strong); -webkit-backdrop-filter: var(--gf-blur-glass); backdrop-filter: var(--gf-blur-glass); border-bottom: 1px solid transparent; transition: border-color var(--gf-dur-base) var(--gf-ease), box-shadow var(--gf-dur-base) var(--gf-ease); }
.gf-site-header[data-static] { position: relative; z-index: auto; }
.gf-site-header[data-scrolled] { border-bottom-color: var(--gf-line); box-shadow: 0 6px 18px color-mix(in srgb, var(--gf-hue-950) 6%, transparent); }
@media (prefers-reduced-transparency: reduce) { .gf-site-header { background: var(--gf-surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.gf-site-header-in { display: flex; align-items: center; gap: 8px; height: 56px; width: 100%; max-width: calc(var(--gf-mk-max) + 2 * var(--gf-gutter)); margin-inline: auto; padding-inline: var(--gf-gutter); }
.gf-site-brand { display: inline-flex; align-items: center; gap: 10px; flex: none; min-width: 44px; min-height: 44px; padding-right: 4px; border-radius: var(--gf-radius-sm); color: var(--gf-text-strong); font-size: 18px; line-height: 24px; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; }
.gf-site-brand:hover { text-decoration: none; }
.gf-site-brand:focus-visible { box-shadow: none; outline: 2px solid var(--gf-focus-border); outline-offset: 2px; }
.gf-site-links ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.gf-site-links a { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: var(--gf-radius-pill); font-size: 14px; font-weight: 500; color: var(--gf-text); white-space: nowrap; text-decoration: none; transition: background-color var(--gf-dur-fast) var(--gf-ease), color var(--gf-dur-fast) var(--gf-ease); }
@media (hover: hover) { .gf-site-links a:hover { background: var(--gf-hover); color: var(--gf-text-strong); } }
.gf-site-links a[aria-current="page"] { color: var(--gf-primary-text); }
.gf-site-gap { flex: 1 1 auto; }
.gf-site-acts { display: flex; align-items: center; gap: 8px; flex: none; }
@media (min-width: 600px) { .gf-site-header-in { height: 64px; gap: 16px; } }
@media (min-width: 1024px) { .gf-site-header-in { gap: 24px; } }
/* The menu: a bottom sheet on phones, a popover under the button on tablets */
.gf-site-menu { display: flex; flex-direction: column; gap: 16px; }
.gf-site-menu ul { display: flex; flex-direction: column; list-style: none; }
.gf-site-menu nav a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: var(--gf-radius-control); font-size: 16px; font-weight: 600; color: var(--gf-text-strong); text-decoration: none; }
@media (hover: hover) { .gf-site-menu nav a:hover { background: var(--gf-hover); text-decoration: none; } }
.gf-site-menu nav a:focus-visible { box-shadow: inset 0 0 0 2px var(--gf-focus-border); }
.gf-site-menu-ctas { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--gf-hairline); }
.gf-site-pop { min-width: 260px; padding: 8px; }

/* ───────────── Hero ───────────── */
.gf-hero { position: relative; isolation: isolate; overflow: clip; padding-block: 40px 72px; }
.gf-hero-in { position: relative; display: grid; gap: 40px; align-items: center; }
.gf-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-width: 0; }
.gf-hero-copy > .gf-mk-ctas { margin-top: 8px; }
.gf-hero-title { font-family: var(--gf-mk-display); font-size: var(--gf-mk-hero-size); line-height: var(--gf-mk-hero-lh); font-weight: 400; letter-spacing: -0.025em; color: var(--gf-text-strong); text-wrap: balance; max-width: 16ch; }
/* Text over the mesh uses --gf-text or stronger: it keeps ≥ 4.5 : 1 on the lightest and darkest point of the mesh */
.gf-hero-sub { font-size: var(--gf-mk-lead-size); line-height: var(--gf-mk-lead-lh); color: var(--gf-text); max-width: 56ch; text-wrap: pretty; }
.gf-hero-note { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--gf-text); }
.gf-hero-media { min-width: 0; width: 100%; }
/* The eyebrow pill: opaque, so it reads on any part of the mesh */
.gf-hero-pill { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; max-width: 100%; padding: 4px 12px 4px 4px; border-radius: var(--gf-radius-pill); background: var(--gf-surface); border: 1px solid var(--gf-border); box-shadow: var(--gf-shadow-card); font-size: 13px; line-height: 18px; font-weight: 500; color: var(--gf-text); text-decoration: none; }
a.gf-hero-pill:hover { text-decoration: none; border-color: var(--gf-border-strong); }
a.gf-hero-pill:focus-visible { box-shadow: var(--gf-shadow-card); outline: 2px solid var(--gf-focus-border); outline-offset: 2px; }
.gf-hero-pill > .gf-badge { flex: none; }
@media (max-width: 599.98px) { a.gf-hero-pill::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: var(--gf-hit); transform: translateY(-50%); } }
/* The forms. auto: stack (phones) · center (tablets) · split (desktops) · center over a large shot (large displays) */
.gf-hero[data-layout="center"] .gf-hero-copy { align-items: center; text-align: center; margin-inline: auto; }
.gf-hero[data-layout="center"] .gf-mk-ctas { justify-content: center; }
.gf-hero[data-layout="center"] .gf-hero-title { max-width: 18ch; }
.gf-hero[data-layout="center"] .gf-hero-media { max-width: 1120px; margin-inline: auto; }
.gf-hero[data-layout="split"] .gf-hero-in { grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: 56px; }
@media (min-width: 600px) and (max-width: 1023.98px) {
  .gf-hero { padding-block: 64px 80px; }
  .gf-hero[data-layout="auto"] .gf-hero-copy { align-items: center; text-align: center; margin-inline: auto; }
  .gf-hero[data-layout="auto"] .gf-mk-ctas { justify-content: center; }
  .gf-hero[data-layout="auto"] .gf-hero-title { max-width: 18ch; }
  .gf-hero[data-layout="auto"] .gf-hero-in { gap: 48px; }
}
@media (min-width: 1024px) and (max-width: 1439.98px) {
  .gf-hero { padding-block: 72px 96px; }
  .gf-hero[data-layout="auto"] .gf-hero-in { grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: 56px; }
}
@media (min-width: 1440px) {
  .gf-hero { padding-block: 96px 112px; }
  .gf-hero[data-layout="auto"] .gf-hero-copy { align-items: center; text-align: center; margin-inline: auto; }
  .gf-hero[data-layout="auto"] .gf-mk-ctas { justify-content: center; }
  .gf-hero[data-layout="auto"] .gf-hero-title { max-width: 18ch; }
  .gf-hero[data-layout="auto"] .gf-hero-in { gap: 64px; }
  .gf-hero[data-layout="auto"] .gf-hero-media { max-width: 1200px; margin-inline: auto; }
}

/* The gradient mesh: four soft blobs from the app hue (and its two neighbours), moving by transform only.
   Light mode uses steps no darker than hue-300 and dark mode steps no lighter than hue-800, so text keeps its
   contrast wherever a blob drifts. The bottom fades into the page. */
.gf-mesh { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.gf-mesh::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(to bottom, transparent, var(--gf-canvas)); }
.gf-mesh > span { --c: var(--gf-hue-200); position: absolute; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--c), transparent); opacity: var(--o, 0.7); will-change: transform; animation: var(--a) var(--d) ease-in-out infinite alternate; }
.gf-mesh > span:nth-child(1) { --c: var(--gf-hue-200); --a: gf-mesh-1; --d: 24s; width: 70%; left: -18%; top: -46%; --o: 0.85; }
.gf-mesh > span:nth-child(2) { --c: var(--gf-hue-300); --a: gf-mesh-2; --d: 29s; width: 58%; right: -16%; top: -34%; --o: 0.75; }
.gf-mesh > span:nth-child(3) { --c: var(--gf-hue-100); --a: gf-mesh-3; --d: 33s; width: 54%; right: 4%; top: 22%; --o: 0.9; }
.gf-mesh > span:nth-child(4) { --c: var(--gf-hue-200); --a: gf-mesh-4; --d: 38s; width: 44%; left: 6%; top: 30%; --o: 0.65; }
@supports (color: oklch(from red l c h)) {
  .gf-mesh > span:nth-child(2) { --c: oklch(from var(--gf-hue-300) l c calc(h + 32)); }
  .gf-mesh > span:nth-child(4) { --c: oklch(from var(--gf-hue-200) l c calc(h - 36)); }
}
.dark .gf-mesh > span:nth-child(1) { --c: var(--gf-hue-900); --o: 0.9; }
.dark .gf-mesh > span:nth-child(2) { --c: var(--gf-hue-800); --o: 0.7; }
.dark .gf-mesh > span:nth-child(3) { --c: var(--gf-hue-950); --o: 0.9; }
.dark .gf-mesh > span:nth-child(4) { --c: var(--gf-hue-900); --o: 0.6; }
@supports (color: oklch(from red l c h)) {
  .dark .gf-mesh > span:nth-child(2) { --c: oklch(from var(--gf-hue-800) l c calc(h + 32)); }
  .dark .gf-mesh > span:nth-child(4) { --c: oklch(from var(--gf-hue-900) l c calc(h - 36)); }
}
.gf-mesh[data-still] > span { animation: none; }
@keyframes gf-mesh-1 { to { transform: translate3d(12%, 10%, 0) scale(1.1); } }
@keyframes gf-mesh-2 { to { transform: translate3d(-14%, 12%, 0) scale(0.92); } }
@keyframes gf-mesh-3 { to { transform: translate3d(-10%, -8%, 0) scale(1.12); } }
@keyframes gf-mesh-4 { to { transform: translate3d(16%, -6%, 0) scale(0.9); } }
.gf-mesh-toggle { position: absolute; right: var(--gf-gutter); bottom: 16px; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--gf-border); background: var(--gf-surface); color: var(--gf-text-strong); box-shadow: var(--gf-shadow-card); transition: background-color var(--gf-dur-fast) var(--gf-ease); }
.gf-mesh-toggle svg { width: 14px; height: 14px; }
@media (hover: hover) { .gf-mesh-toggle:hover { background: var(--gf-hover); } }
.gf-mesh-toggle:focus-visible { box-shadow: var(--gf-shadow-card); outline: 2px solid var(--gf-focus-border); outline-offset: 2px; }
@media (max-width: 599.98px) { .gf-mesh-toggle::after { content: ''; position: absolute; left: 50%; top: 50%; width: var(--gf-hit); height: var(--gf-hit); transform: translate(-50%, -50%); } }

/* ───────────── ProductShot ───────────── */
.gf-shot { margin: 0; min-width: 0; width: 100%; }
.gf-shot-frame { position: relative; min-width: 0; overflow: hidden; border-radius: var(--gf-radius-lg); background: var(--gf-surface); border: 1px solid var(--gf-border); box-shadow: 0 1px 2px rgba(11, 18, 32, 0.04), 0 28px 64px -16px color-mix(in srgb, var(--gf-hue-950) 26%, transparent); }
.dark .gf-shot-frame { border-color: var(--gf-border-strong); box-shadow: 0 28px 64px -16px rgba(0, 0, 0, 0.7); }
.gf-shot-bar { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; border-bottom: 1px solid var(--gf-hairline); background: var(--gf-surface-sunken); }
.gf-shot-dots { display: flex; gap: 6px; flex: 1 1 0; min-width: 0; }
.gf-shot-dots i { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--gf-border-strong); }
.gf-shot-url { flex: 0 1 auto; min-width: 0; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 12px; border-radius: var(--gf-radius-pill); background: var(--gf-surface); font-size: 12px; line-height: 16px; color: var(--gf-text-secondary); }
.gf-shot-view { position: relative; overflow: hidden; background: var(--gf-canvas); }
.gf-shot-view[data-crop] { -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
.gf-shot-canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.gf-shot-tilt { border-radius: var(--gf-radius-lg); }

/* ───────────── LogoCloud ───────────── */
.gf-mk-strip { padding-block: 32px; }
.gf-logos { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.gf-logos-title { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--gf-text-secondary); text-align: center; }
.gf-logos-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; width: 100%; align-items: center; justify-items: center; list-style: none; }
.gf-logos-item { display: inline-flex; }
.gf-wordmark { display: inline-flex; align-items: center; gap: 8px; color: var(--gf-text-secondary); font-size: 16px; line-height: 24px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.gf-wordmark svg { width: 20px; height: 20px; fill: currentColor; }
.gf-wordmark[data-type="serif"] { font-family: var(--gf-mk-display); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.gf-wordmark[data-type="italic"] { font-family: var(--gf-mk-display); font-size: 19px; font-style: italic; font-weight: 500; letter-spacing: -0.01em; }
.gf-wordmark[data-type="mono"] { font-family: var(--gf-font-mono); font-size: 15px; font-weight: 600; letter-spacing: -0.03em; text-transform: lowercase; }
.gf-wordmark[data-type="wide"] { font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
@media (min-width: 600px) { .gf-mk-strip { padding-block: 40px; } }
@container mk (min-width: 520px) { .gf-logos-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; } }
@container mk (min-width: 960px) { .gf-logos-list[data-count="6"] { grid-template-columns: repeat(6, minmax(0, 1fr)); } .gf-logos-list[data-count="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); } .gf-logos-list[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ───────────── FeatureBento ───────────── */
.gf-bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; list-style: none; }
.gf-bento-cell { display: flex; min-width: 0; }
.gf-bento-card { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-width: 0; padding: 24px; border-radius: var(--gf-radius-lg); background: var(--gf-surface); border: 1px solid var(--gf-border); box-shadow: var(--gf-shadow-card), var(--gf-lit-edge); }
.gf-bento-text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.gf-bento-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 4px; border-radius: var(--gf-radius-tile); background: var(--gf-primary-tint); color: var(--gf-primary-text); }
.gf-bento-icon svg { width: 18px; height: 18px; }
.gf-bento-title { font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--gf-text-strong); }
.gf-bento-body { font-size: 15px; line-height: 22px; color: var(--gf-text-secondary); max-width: 52ch; }
.gf-bento-visual { min-width: 0; } /* the card's space-between pins it to the bottom (auto margins resolve off the 4 px grid) */
/* Large and tall cards set their visual on a stage that fills the card. The hue glow stays at hue-50 at its strongest
   (dark: a veil of hue-950), so muted text on the stage keeps 4.5 : 1. */
.gf-bento-cell[data-size="lg"] .gf-bento-visual, .gf-bento-cell[data-size="tall"] .gf-bento-visual { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; padding: 16px; border-radius: var(--gf-radius-card); border: 1px solid var(--gf-hairline); background: radial-gradient(90% 90% at 100% 0%, var(--gf-hue-50), transparent 70%), var(--gf-canvas); }
.dark .gf-bento-cell[data-size="lg"] .gf-bento-visual, .dark .gf-bento-cell[data-size="tall"] .gf-bento-visual { background: radial-gradient(90% 90% at 100% 0%, color-mix(in srgb, var(--gf-hue-950) 70%, transparent), transparent 70%), var(--gf-canvas); }
@container mk (min-width: 520px) { .gf-bento-cell[data-size="lg"] .gf-bento-visual, .gf-bento-cell[data-size="tall"] .gf-bento-visual { padding: 24px; } }
@container mk (min-width: 520px) and (max-width: 959.98px) {
  .gf-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gf-bento-cell[data-size="lg"], .gf-bento-cell[data-size="wide"], .gf-bento-cell[data-fill] { grid-column: span 2; }
}
@container mk (min-width: 960px) {
  .gf-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: 20px; }
  .gf-bento-cell { grid-column: span 2; }
  .gf-bento-cell[data-size="wide"] { grid-column: span 4; }
  .gf-bento-cell[data-size="tall"] { grid-row: span 2; }
  .gf-bento-cell[data-size="lg"] { grid-column: span 4; grid-row: span 2; }
  .gf-bento-cell[data-size="lg"] .gf-bento-card { padding: 32px; }
}
@media (min-width: 1440px) { .gf-bento { gap: 24px; } .gf-bento-card { padding: 28px; } .gf-bento-cell[data-size="lg"] .gf-bento-card { padding: 40px; } }

/* ───────────── FeatureSplit ───────────── */
.gf-fsplit { display: grid; gap: 40px; align-items: center; }
.gf-fsplit-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 0; }
.gf-fsplit-copy .gf-mk-intro { margin-bottom: 0; }
.gf-fsplit-visual { min-width: 0; width: 100%; }
@container mk (min-width: 520px) and (max-width: 959.98px) { .gf-fsplit { gap: 48px; } }
@container mk (min-width: 960px) {
  .gf-fsplit { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .gf-fsplit[data-reverse] { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .gf-fsplit[data-reverse] > .gf-fsplit-visual { order: -1; }
}
@media (min-width: 1440px) { .gf-fsplit { gap: 96px; } }

/* ───────────── StatsBand ───────────── */
.gf-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; list-style: none; }
.gf-stats > li { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
/* The figure never outgrows its column: capped by the content width (cqi) as well as the type scale */
.gf-stats-value { font-family: var(--gf-mk-display); font-size: min(var(--gf-mk-stat-size), 12cqi); line-height: 1.1; font-weight: 400; letter-spacing: -0.02em; color: var(--gf-text-strong); --gf-ticker-align: start; }
.gf-stats-label { font-size: 14px; line-height: 20px; color: var(--gf-text-secondary); max-width: 28ch; }
@container mk (min-width: 520px) {
  .gf-stats[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gf-stats[data-count="3"] .gf-stats-value { font-size: min(var(--gf-mk-stat-size), 8.5cqi); }
  .gf-stats[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .gf-stats[data-count="4"] .gf-stats-value { font-size: min(var(--gf-mk-stat-size), 6.5cqi); }
}
@container mk (min-width: 960px) {
  .gf-stats { gap: 32px; }
  .gf-stats > li + li { padding-left: 32px; border-left: 1px solid var(--gf-border); }
}

/* ───────────── Testimonial ───────────── */
.gf-quote { display: flex; flex-direction: column; gap: 24px; min-width: 0; margin: 0; }
.gf-quote-text p::before { content: '“'; }
.gf-quote-text p::after { content: '”'; }
.gf-quote[data-size="lg"] .gf-quote-text { font-family: var(--gf-mk-display); font-size: var(--gf-mk-quote-size); line-height: var(--gf-mk-quote-lh); font-weight: 400; letter-spacing: -0.015em; color: var(--gf-text-strong); max-width: 32ch; text-wrap: balance; }
.gf-quote[data-size="lg"] .gf-quote-text p { text-indent: -0.4em; }
.gf-quote[data-size="md"] { justify-content: space-between; padding: 24px; border-radius: var(--gf-radius-lg); background: var(--gf-surface); border: 1px solid var(--gf-border); box-shadow: var(--gf-shadow-card), var(--gf-lit-edge); }
.gf-quote[data-size="md"] .gf-quote-text { font-size: 16px; line-height: 26px; color: var(--gf-text); }
.gf-quote-cite { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gf-quote-avatar { display: inline-flex; flex: none; }
.gf-quote-who { display: flex; flex-direction: column; min-width: 0; }
.gf-quote-who b { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--gf-text-strong); }
.gf-quote-who span { font-size: 14px; line-height: 20px; color: var(--gf-text-secondary); }
.gf-quote-logo { display: inline-flex; margin-left: auto; padding-left: 16px; color: var(--gf-text-secondary); }

/* ───────────── PricingTable ───────────── */
.gf-pricing-period { display: flex; justify-content: center; margin: calc(-1 * var(--gf-mk-gap) + 24px) 0 32px; }
@container mk (max-width: 519.98px) { .gf-pricing-period { justify-content: flex-start; } }
.gf-pricing { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; list-style: none; }
.gf-tier { position: relative; display: flex; flex-direction: column; gap: 24px; min-width: 0; padding: 24px; border-radius: var(--gf-radius-lg); background: var(--gf-surface); border: 1px solid var(--gf-border); box-shadow: var(--gf-shadow-card), var(--gf-lit-edge); }
.gf-tier[data-highlight] { border-color: var(--gf-primary); box-shadow: 0 0 0 1px var(--gf-primary), var(--gf-shadow-hover); }
.gf-tier-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gf-tier-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.gf-tier-name { font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--gf-text-strong); }
.gf-tier-desc { font-size: 14px; line-height: 20px; color: var(--gf-text-secondary); }
.gf-tier-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 12px; }
.gf-tier-amount { font-family: var(--gf-mk-display); font-size: 44px; line-height: 48px; font-weight: 400; letter-spacing: -0.02em; color: var(--gf-text-strong); --gf-ticker-align: start; }
.gf-tier-unit { font-size: 14px; line-height: 20px; color: var(--gf-text-secondary); }
.gf-tier-bill { margin-bottom: 12px; font-size: 13px; line-height: 18px; color: var(--gf-text-secondary); }
.gf-tier-features { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1px solid var(--gf-hairline); list-style: none; }
.gf-tier-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 20px; color: var(--gf-text); }
.gf-tier-features svg { width: 16px; height: 16px; margin-top: 2px; flex: none; color: var(--gf-primary-text); }
@container mk (min-width: 520px) and (max-width: 959.98px) {
  .gf-tier { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 32px; }
  .gf-tier-features { align-self: center; padding: 0 0 0 32px; border-top: 0; border-left: 1px solid var(--gf-hairline); }
}
@container mk (min-width: 960px) {
  .gf-pricing[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; margin-inline: auto; gap: 20px; }
  .gf-pricing[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .gf-tier { padding: 32px; }
  .gf-tier-desc { min-height: 40px; }
}

/* ───────────── FAQ ───────────── */
.gf-faq { display: grid; gap: 32px; }
.gf-faq-head { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.gf-faq-head .gf-mk-intro { margin-bottom: 0; }
.gf-faq-aside { font-size: 15px; line-height: 24px; color: var(--gf-text-secondary); }
.gf-faq-list { min-width: 0; }
.gf-faq-list .gf-accordion { border-top: 1px solid var(--gf-hairline); border-bottom: 1px solid var(--gf-hairline); }
.gf-faq-list .gf-acc-item:last-child { border-bottom: 0; }
.gf-faq-list .gf-acc-head { min-height: 64px; padding: 16px 0; font-size: 16px; line-height: 24px; }
.gf-faq-list .gf-collapse > div > div { max-width: 64ch; padding-bottom: 24px; font-size: 15px; line-height: 24px; color: var(--gf-text-secondary); }
@container mk (min-width: 960px) {
  .gf-faq { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .gf-faq-head { position: sticky; top: 96px; }
}

/* ───────────── CTABand ───────────── */
.gf-ctaband { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px 24px; text-align: center; border-radius: var(--gf-radius-sheet); background: var(--gf-primary-subtle); border: 1px solid color-mix(in srgb, var(--gf-primary) 18%, var(--gf-border)); }
.gf-ctaband-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 90% at 50% 0%, color-mix(in srgb, var(--gf-hue-200) 70%, transparent), transparent 72%),
              radial-gradient(40% 70% at 92% 100%, color-mix(in srgb, var(--gf-hue-100) 90%, transparent), transparent 70%); }
.dark .gf-ctaband-glow { background: radial-gradient(60% 90% at 50% 0%, color-mix(in srgb, var(--gf-hue-900) 80%, transparent), transparent 72%), radial-gradient(40% 70% at 92% 100%, color-mix(in srgb, var(--gf-hue-950) 90%, transparent), transparent 70%); }
.gf-ctaband-title { font-family: var(--gf-mk-display); font-size: var(--gf-mk-h2-size); line-height: var(--gf-mk-h2-lh); font-weight: 400; letter-spacing: -0.02em; color: var(--gf-text-strong); max-width: 20ch; text-wrap: balance; }
.gf-ctaband-body { font-size: var(--gf-mk-lead-size); line-height: var(--gf-mk-lead-lh); color: var(--gf-text); max-width: 52ch; }
.gf-ctaband .gf-mk-ctas { justify-content: center; margin-top: 8px; }
@container mk (max-width: 519.98px) { .gf-ctaband .gf-mk-ctas { align-self: stretch; } }
@container mk (min-width: 520px) { .gf-ctaband { padding: 64px 48px; } }
@container mk (min-width: 960px) { .gf-ctaband { padding: 80px 64px; } }

/* ───────────── SiteFooter ───────────── */
.gf-site-footer { padding-block: 56px 32px; background: var(--gf-surface); border-top: 1px solid var(--gf-border); }
.gf-site-footer-top { display: grid; gap: 40px; }
.gf-site-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.gf-site-footer-brand p { max-width: 36ch; font-size: 14px; line-height: 20px; color: var(--gf-text-secondary); }
.gf-site-footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; min-width: 0; }
.gf-site-footer-title { margin-bottom: 8px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--gf-text-strong); }
.gf-site-footer-group ul { display: flex; flex-direction: column; list-style: none; }
.gf-site-footer-group a { display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; line-height: 20px; color: var(--gf-text-secondary); }
@media (hover: hover) { .gf-site-footer-group a:hover { color: var(--gf-text-strong); } }
.gf-site-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--gf-hairline); }
.gf-site-footer-legal { max-width: 72ch; font-size: 13px; line-height: 18px; color: var(--gf-text-secondary); }
.gf-site-footer-acts { display: flex; align-items: center; gap: 8px; }
@media (max-width: 599.98px) { .gf-site-footer-group a { min-height: var(--gf-hit); min-width: var(--gf-hit); } }
@media (min-width: 600px) { .gf-site-footer { padding-block: 64px 32px; } }
@container mk (min-width: 520px) {
  .gf-site-footer-nav[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gf-site-footer-nav[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container mk (min-width: 960px) { .gf-site-footer-top { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; } }

/* ───────────── Reduced motion: the mesh stands still ───────────── */
@media (prefers-reduced-motion: reduce) {
  .gf-mesh > span { animation: none !important; }
  .gf-site-header { transition: none; }
}
   /* landing pages: SiteHeader, Hero, ProductShot, FeatureBento, PricingTable, SiteFooter… */
/* ── physics.css ── */
/* Greyfeathers v2 — press & hover physics
   One press response across every component (the tokens live in motion.css):
   · Small pressables — buttons, icon buttons, chips, segments, pages, steppers, slots, header links, the FAB — dip to
     --gf-press-scale (0.97) within 100 ms of pointer-down, and spring back on the snappy spring when released. They are
     CSS transitions, so a press that is released (or a pointer that slides off) mid-way reverses from where it is.
   · Large surfaces — cards, rows, tiles, nav rows — never scale. They take a tint: their pressed fill, or --gf-press-tint.
   · Hover that moves something (a lift, a zoom) exists only for pointers that can hover; on touch it would stick.
   · Toggles keep their own physical metaphors: the checkbox box squeezes, the switch thumb stretches, the slider thumb grows.
   · Reduced motion sets --gf-press-scale to 1: the tint and colour changes stay, nothing scales.
   Loaded after the component sheets (and before touch.css), so these values settle what each sheet chose for itself.
   New components: use transform: scale(var(--gf-press-scale)) for small pressables, a tint for large surfaces. */

/* ── Small pressables: one scale, an instant dip, a spring back ── */
.gf-btn:active:not(:disabled),
.gf-btn[data-variant="primary"]:active:not(:disabled),
.gf-fab:active,
.gf-close:active,
.gf-input-clear:active,
.gf-segmented button:active,
button.gf-chip:active:not(:disabled),
.gf-chip:has(> button.gf-chip-main:active:not(:disabled)),
.gf-pagination .pages button:active:not(:disabled),
.gf-rail-btn:active:not([aria-disabled="true"]),
.gf-save:active,
.gf-qty button:active:not([aria-disabled="true"]),
.gf-slot:active:not([aria-disabled="true"]),
.gf-hshell-links a:active,
.gf-bottomnav a:active svg, .gf-bottomnav button:active svg { transform: scale(var(--gf-press-scale)); transition-duration: var(--gf-dur-instant); }
.gf-cal-grid button:active::before { transform: scale(var(--gf-press-scale)); transition-duration: var(--gf-dur-instant); }
/* At 0.97 a small icon button barely moves, so it shows its pressed fill as well */
.gf-close:active, .gf-input-clear:active { background: var(--gf-pressed); color: var(--gf-text-strong); }
.gf-cal-grid button:not([data-sel]):not(:disabled):active::before { background: var(--gf-pressed); }
/* A bottom-nav tab is a large cell: its capsule appears under the finger (the current tab already shows one) */
.gf-bottomnav a:not([aria-current="page"]):active .pill, .gf-bottomnav button:not([aria-current="page"]):active .pill { opacity: 1; background: var(--gf-pressed); transform: translateX(-50%) scaleX(1); transition-duration: var(--gf-dur-instant); }

/* ── Large surfaces: a tint, never a scale ──
   (:active also matches every ancestor of what is pressed, so a row must not scale when a button inside it is pressed.) */
.gf-list-item[data-interactive]:has(.main.hit:active),
.gf-list-item.gf-press:active:not(:disabled):not([aria-disabled="true"]),
.gf-notif.gf-press:active:not(:disabled):not([aria-disabled="true"]),
.gf-choice-card:active,
.gf-nav-item:active,
.gf-nav-row:has(> .gf-nav-twisty):has(> .gf-nav-item:active),
.gf-listing:has(.gf-listing-link:active) { transform: none; }
.gf-nav-item:not([aria-current="page"]):active, .gf-notif:active { background-color: var(--gf-pressed); }
.gf-choice-card:not(:has(input:checked)):active { background-color: var(--gf-pressed); }
/* Clickable cards (Card interactive) and ListingCards: the tint lies over the whole card, picture included */
.gf-card[data-interactive]::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--gf-press-tint); opacity: 0; pointer-events: none; transition: opacity var(--gf-dur-base) var(--gf-ease); }
.gf-card[data-interactive]:active::after { opacity: 1; transition-duration: var(--gf-dur-instant); }
.gf-listing-link::after { transition: background-color var(--gf-dur-base) var(--gf-ease); }
.gf-listing-link:active::after { background-color: var(--gf-press-tint); transition-duration: var(--gf-dur-instant); }

/* ── Hover that moves things: only where a pointer can hover ── */
@media (hover: none) {
  .gf-rating:not([role="img"]) .star:hover > svg,
  .gf-swatches button:hover,
  .gf-heatmap .cell:hover { transform: none; }
  .gf-chart:hover .bar { opacity: 1; }
}
     /* press & hover physics: one press scale, no scaling on large surfaces — after the component sheets */
/* ── touch.css ── */
/* ── Touch targets on phones ───────────────────────────────────────────────────────────────────────────────────────
   On phones (compact, < 600 px) every interactive part of every component is at least 44 × 44 px: WCAG 2.5.5 (AAA),
   Apple HIG 44 pt, Material 48 dp. Two techniques, in this order of preference:
     1. Pad the target, not the visual: an invisible, centred ::after (or ::before) at least 44 × 44 (--gf-hit).
     2. Grow the visual when padding would reach a neighbour or cover another target (chips, calendar days, steppers).
   A padded area may run into a gap between targets but never over another target — a tap meant to open must never
   remove. Loaded after every component sheet, so these rules win over each component's own sizes. */
@media (max-width: 599.98px) {
  /* Buttons of every size and variant (sm is 36 px here) — the visual keeps its size, the target is 44. */
  .gf-btn::after { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, var(--gf-hit)); height: max(100%, var(--gf-hit)); transform: translate(-50%, -50%); }

  /* A sideways-scrolling row clips both axes, so it needs room for its items' padded targets: 4 px of padding above
     and below, cancelled by negative margins so the layout doesn't move. */
  .gf-toolbar .filters { padding-block: 4px 6px; margin-block: -4px; }

  /* Fields of every size are 44 px tall (a native select can't be padded with a pseudo-element, so sm grows to md). */
  .gf-input-wrap[data-size="sm"], .gf-input[data-size="sm"], .gf-select[data-size="sm"] { --h: var(--gf-control-md); }

  /* Text fields: the native control also covers the wrapper's 1 px border, so the whole 44 px field is the target. */
  .gf-input-wrap > input, .gf-input-wrap > .gf-datetrigger, .gf-number input { align-self: stretch; margin-block: -1px; }
  .gf-taginput input { height: var(--gf-hit); margin-block: -5px; } /* through the wrapper's 4 px padding + border */

  /* Clear ×, password reveal, date clear: 44 px around the 24 px circle (it sits at the end of a 44 px field). */
  .gf-input-clear { position: relative; }
  .gf-input-clear::after { content: ''; position: absolute; left: 50%; top: 50%; width: var(--gf-hit); height: var(--gf-hit); transform: translate(-50%, -50%); }

  /* Chips grow to 36 px and pad to 44 (rows keep 8 px gaps, so padded areas meet but never overlap). The remove ×
     moves 8 px further from the label first, so its 44 px target never covers the label's own target. */
  .gf-chip, .gf-chip[data-size="sm"] { height: 36px; }
  button.gf-chip, button.gf-chip-main { position: relative; }
  button.gf-chip::after, button.gf-chip-main::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: var(--gf-hit); transform: translateY(-50%); }
  .gf-chip .x { margin-left: 8px; }
  .gf-chip .x::before { inset: auto; left: 50%; top: 50%; width: var(--gf-hit); height: var(--gf-hit); transform: translate(-50%, -50%); }

  /* ImagePreview: the image is not a target, so on phones the remove button becomes a 44 px square in the corner;
     the 24 px circle and its focus ring are drawn inside it, where they were (the preview clips its overflow). */
  .gf-imgpreview button { top: 0; right: 0; width: var(--gf-hit); height: var(--gf-hit); background: transparent; border-radius: 0; }
  .gf-imgpreview button::before { content: ''; position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(11, 18, 32, 0.7); }
  .gf-imgpreview button svg { position: absolute; top: 10px; right: 10px; z-index: 1; }
  .gf-imgpreview button:focus-visible { box-shadow: none; }
  .gf-imgpreview button:focus-visible::before { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gf-focus-border); }

  /* Attachment chip: 36 px; the name (open) fills 44 px of height, the × gets its own 44 px after an 8 px gap. */
  .gf-attach { height: 36px; }
  .gf-attach button.n { align-self: stretch; margin-block: -4px; }
  .gf-attach .x { margin-left: 8px; }
  .gf-attach .x::after { content: ''; position: absolute; left: 50%; top: 50%; width: var(--gf-hit); height: var(--gf-hit); transform: translate(-50%, -50%); }

  /* NumberInput: the stacked 28 × 21 steppers become − and + side by side, 44 px each (DOM order stays Increase,
     Decrease; both are tabIndex −1 — the keyboard uses ↑ ↓ on the field — so the visual order can differ). */
  .gf-number .steps { flex-direction: row-reverse; width: auto; }
  .gf-number .steps button { flex: none; width: var(--gf-hit); margin-block: -1px; }
  .gf-number .steps button:first-child { border-bottom: 0; border-left: 1px solid var(--gf-border); border-radius: 0 calc(var(--gf-radius-control) - 1px) calc(var(--gf-radius-control) - 1px) 0; }
  .gf-number .steps button:last-child { border-radius: 0; }
  .gf-number .steps button::before { inset: 0; }
  .gf-number .steps svg { width: 16px; height: 16px; }

  /* Slider: the input is 44 px tall; the 4 px track and the thumb are drawn inside it. */
  .gf-slider { height: var(--gf-hit); }
  .gf-slider input { height: var(--gf-hit); border-radius: 0; background: transparent; }
  .gf-slider input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--gf-primary) var(--p), var(--gf-border) var(--p)); }
  .gf-slider input::-webkit-slider-thumb { margin-top: -8px; }
  .gf-slider input::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--gf-primary) var(--p), var(--gf-border) var(--p)); }
  .gf-slider .bubble { top: -14px; } /* same 16 px above the track as on larger screens */

  /* Rating (input): 36 × 44 stars. */
  .gf-rating:not([role="img"]) { min-height: var(--gf-hit); }
  .gf-rating:not([role="img"]) .star { min-width: 36px; min-height: var(--gf-hit); }

  /* Calendar: 308 px wide (7 × 44) with 44 px tall days, so every day is 44 × 44; the 36 px circle is unchanged. */
  .gf-cal { width: calc(7 * var(--gf-hit)); }
  .gf-cal-grid button { height: var(--gf-hit); }

  /* Checkbox and radio: the native input covers the whole label, so the label is the target — a 44 px row on phones
     (10 px above and below one 24 px line; the box stays on the first line of a longer label). Switch rows too. */
  label.gf-check:not([aria-hidden]) { padding-block: 10px; min-height: var(--gf-hit); }
  label.gf-check:not([aria-hidden]):not(:has(> .text)) { min-width: var(--gf-hit); } /* box-only: 44 × 44 */
  .gf-table .sel label.gf-check { min-height: var(--gf-hit); margin-block: 0; } /* row selection in a table or card row */
  .gf-switch { min-height: var(--gf-hit); }

  /* The command palette's search field and the notification panel's tabs: 44 px. */
  .gf-palette .in input { align-self: stretch; min-height: var(--gf-hit); }
  .gf-notifpanel .tabs button { height: var(--gf-hit); min-width: var(--gf-hit); }

  /* Breadcrumb links and person links in tables: 44 px tall targets in a single row. */
  .gf-crumbs a, a.gf-cell-person { position: relative; }
  .gf-crumbs a::after, a.gf-cell-person::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: var(--gf-hit); transform: translateY(-50%); }
  /* …and 44 px wide however far the trail truncates: the crumb keeps room for the link (less its −4 px margins) and
     its chevron, so a squeezed link never runs under the next one. */
  .gf-crumbs a { min-width: var(--gf-hit); }
  .gf-crumbs li:has(> a) { min-width: calc(var(--gf-hit) + 10px); }
}
   /* phones: every target ≥ 44 px — after all component sheets */
/* ── expression.css ── */
/* ============================================================================
   Greyfeathers Design System — EXPRESSION: consumer
   ----------------------------------------------------------------------------
   An opt-in token layer for casual, B2C products. Turn it on with
       <html data-gf-expression="consumer">
   (set it on <html>, not on an app wrapper: overlays render in <body> portals).
   The default "work" expression is tokens.css exactly as it is; nothing here
   applies without the attribute.

   Rules for this file
   · Token overrides only — every declaration below is a --gf-* custom property.
     A few are scoped to a component class (buttons, segmented, badges, search
     fields) so that one token can mean "pill" there and stay rounded elsewhere.
   · Every colour stays contrast-checked: the hue tints were measured against
     every named hue and ten custom hues (0–330°, chroma .12–.22), light and
     dark — text-muted ≥ 4.6:1, control boundaries ≥ 3.2:1.
   · Density wins: control sizes only change when no density is chosen.
   · Reduced motion gets the calm work springs back (no overshoot).
   ============================================================================ */

[data-gf-expression="consumer"] {
  /* ── Shape: rounder everywhere (the pill is reserved for actions, below) ── */
  --gf-radius-xs: 8px;
  --gf-radius-sm: 10px;
  --gf-radius-control: 14px;
  --gf-radius-tile: 16px;
  --gf-radius-card: 20px;
  --gf-radius-modal: 24px;
  --gf-radius-lg: 28px;
  --gf-radius-sheet: 32px;

  /* ── Type: display speaks in the editorial serif — warmth where the screen speaks (welcome, heroes) —
     at half the sans tracking and a lighter weight; headings stay in the sans, larger, heavier and tighter ── */
  --gf-display-font: var(--gf-font-editorial); --gf-display-track: 0.5;
  --gf-display-size: 52px; --gf-display-lh: 56px; --gf-display-w: 500; --gf-display-tr: -0.025em;
  --gf-display-xl-w: 400; --gf-display-2xl-w: 400;
  --gf-h1-size: 36px; --gf-h1-lh: 42px; --gf-h1-w: 800; --gf-h1-tr: -0.03em;
  --gf-h2-size: 26px; --gf-h2-lh: 32px; --gf-h2-w: 800; --gf-h2-tr: -0.025em;
  --gf-h3-size: 20px; --gf-h3-lh: 26px; --gf-h3-w: 700; --gf-h3-tr: -0.015em;
  --gf-title-w: 700; --gf-title-tr: -0.01em;
  --gf-kpi-size: 32px; --gf-kpi-lh: 36px;
  --gf-card-title-size: 17px; --gf-card-title-lh: 24px;

  /* ── Space: roomier cards and sections ── */
  --gf-card-pad: 24px;
  --gf-section-gap: 32px;

  /* ── Hue tints: the app colour washes the canvas and the quiet surfaces ── */
  --gf-canvas: color-mix(in oklab, var(--gf-hue-50) 55%, var(--gf-ink-50));
  --gf-surface-sunken: color-mix(in oklab, var(--gf-hue-50) 60%, var(--gf-ink-100));
  --gf-hover: color-mix(in oklab, var(--gf-hue-50) 60%, #F1F3F7);
  --gf-pressed: color-mix(in oklab, var(--gf-hue-100) 30%, #E8ECF2);
  --gf-border: color-mix(in oklab, var(--gf-hue-200) 30%, var(--gf-ink-200));
  --gf-hairline: color-mix(in oklab, var(--gf-hue-100) 35%, #EDF0F4);

  /* ── Elevation: softer, more diffuse, tinted with the hue (never black) ── */
  --gf-shadow-card: 0 1px 2px rgba(11, 18, 32, 0.04), 0 6px 18px color-mix(in srgb, var(--gf-hue-900) 8%, transparent);
  --gf-shadow-hover: 0 14px 32px color-mix(in srgb, var(--gf-hue-900) 14%, transparent), 0 2px 6px rgba(11, 18, 32, 0.05);
  --gf-shadow-dropdown: 0 14px 36px color-mix(in srgb, var(--gf-hue-900) 14%, transparent), 0 2px 8px rgba(11, 18, 32, 0.05);

  /* ── Motion: livelier springs (generated with springCurve() from theme/color.js) ── */
  /* snappy: response 0.3 s, damping 0.74 — 2.8 % overshoot (work: 0.86, 0.4 %) */
  --gf-spring-snappy: linear(0, 0.017, 0.0672, 0.1263, 0.1956, 0.2863, 0.3641, 0.4412, 0.5301, 0.5995, 0.6759, 0.7332, 0.7845, 0.8381, 0.8763, 0.909, 0.9415, 0.9635, 0.9814, 0.9981, 1.0085, 1.0163, 1.0227, 1.026, 1.0278, 1.0284, 1.028, 1.0266, 1.0249, 1.023, 1.0204, 1.0182, 1.016, 1.0135, 1.0115, 1.0096, 1.0077, 1.0062, 1.0049, 1.0036, 1.0026, 1.0017, 1.0011, 1.0006, 1.0001, 0.9998, 0.9995, 0.9994, 1);
  --gf-spring-snappy-dur: 428ms;
  /* sheet: response 0.36 s, damping 0.8 — 1.3 % overshoot */
  --gf-spring-sheet: linear(0, 0.0215, 0.0635, 0.131, 0.2106, 0.2836, 0.3702, 0.4549, 0.5241, 0.5992, 0.6675, 0.7283, 0.7745, 0.8216, 0.8618, 0.8911, 0.9198, 0.9432, 0.9597, 0.9751, 0.987, 0.9949, 1.0018, 1.0067, 1.0095, 1.0117, 1.0128, 1.0131, 1.013, 1.0124, 1.0115, 1.0107, 1.0095, 1.0084, 1.0074, 1.0064, 1.0054, 1.0046, 1.0038, 1.003, 1.0024, 1.0019, 1.0015, 1.0011, 1.0008, 1.0006, 1.0003, 1.0002, 1);
  --gf-spring-sheet-dur: 535ms;
  /* bouncy: response 0.48 s, damping 0.64 — 7 % overshoot (celebrations, a saved heart) */
  --gf-spring-bouncy: linear(0, 0.0285, 0.0903, 0.1843, 0.2836, 0.3989, 0.5134, 0.612, 0.7111, 0.7908, 0.8658, 0.9274, 0.9723, 1.0102, 1.0354, 1.0543, 1.0654, 1.07, 1.0704, 1.0677, 1.0621, 1.055, 1.0478, 1.0396, 1.0316, 1.0248, 1.0181, 1.0128, 1.0078, 1.0038, 1.0009, 0.9985, 0.9969, 0.9958, 0.9952, 0.995, 0.9951, 0.9953, 0.9958, 0.9963, 0.9968, 0.9974, 0.9979, 0.9984, 0.9989, 0.9992, 0.9996, 0.9998, 1);
  --gf-spring-bouncy-dur: 848ms;
  /* smooth stays critically damped (panels and drawers never overshoot) — only a touch quicker */
  --gf-spring-smooth: linear(0, 0.0218, 0.0717, 0.1291, 0.203, 0.2801, 0.3565, 0.4297, 0.4981, 0.5533, 0.6109, 0.6626, 0.7085, 0.749, 0.7803, 0.8118, 0.8391, 0.8628, 0.8832, 0.8986, 0.914, 0.927, 0.9382, 0.9478, 0.9559, 0.9619, 0.9679, 0.9729, 0.9772, 0.9808, 0.9835, 0.9861, 0.9883, 0.9902, 0.9918, 0.9929, 0.9941, 0.995, 0.9958, 0.9965, 0.9971, 0.9975, 0.9979, 0.9982, 0.9985, 0.9988, 0.9989, 0.9991, 1);
  --gf-spring-smooth-dur: 625ms;
}

/* ── Controls: one size up on medium and wider, unless a density is chosen ── */
[data-gf-expression="consumer"]:not([data-gf-density]) { --gf-control-sm: 36px; --gf-control-md: 44px; --gf-control-lg: 52px; }

/* ── Pills: actions, segmented controls, badges and search fields ── */
[data-gf-expression="consumer"] .gf-btn,
[data-gf-expression="consumer"] .gf-segmented,
[data-gf-expression="consumer"] .gf-badge,
[data-gf-expression="consumer"] .gf-input-wrap:has(> input[type="search"]) {
  --gf-radius-xs: var(--gf-radius-pill);
  --gf-radius-sm: var(--gf-radius-pill);
  --gf-radius-control: var(--gf-radius-pill);
  --gf-radius-tile: var(--gf-radius-pill);
}

/* ── Phones: friendlier sizes for a 390 px screen, and more air around cards ── */
@media (max-width: 599.98px) {
  [data-gf-expression="consumer"] {
    --gf-display-size: 38px; --gf-display-lh: 44px;
    --gf-h1-size: 30px; --gf-h1-lh: 36px;
    --gf-h2-size: 23px; --gf-h2-lh: 28px;
    --gf-h3-size: 19px; --gf-h3-lh: 24px;
    --gf-kpi-size: 28px; --gf-kpi-lh: 32px;
    --gf-gutter: 20px;
    --gf-card-pad: 20px;
    --gf-section-gap: 28px;
  }
}

/* ── Large displays: image-led pages get more width (reading text is still capped by --gf-measure) ── */
@media (min-width: 1440px) { [data-gf-expression="consumer"] { --gf-content-max: 1480px; } }

/* ============================ DARK ============================ */
/* Two selectors, as in themes.css: the attribute on <html class="dark">, or on an element inside a dark page (docs demos). */
.dark[data-gf-expression="consumer"], .dark [data-gf-expression="consumer"] {
  --gf-canvas: color-mix(in oklab, var(--gf-hue-950) 30%, var(--gf-ink-950));
  --gf-surface: color-mix(in oklab, var(--gf-hue-950) 20%, var(--gf-ink-900));
  --gf-surface-raised: color-mix(in oklab, var(--gf-hue-950) 20%, var(--gf-ink-800));
  --gf-surface-sunken: color-mix(in oklab, var(--gf-hue-950) 30%, #0E1117);
  --gf-hover: color-mix(in oklab, var(--gf-hue-950) 25%, #1C222D);
  --gf-pressed: color-mix(in oklab, var(--gf-hue-950) 25%, #232A36);
  --gf-border: color-mix(in oklab, var(--gf-hue-900) 18%, #232A36);
  --gf-hairline: color-mix(in oklab, var(--gf-hue-950) 25%, #1C222C);
  --gf-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 14px rgba(0, 0, 0, 0.4);
  --gf-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.55);
  --gf-shadow-dropdown: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ── The hue tints, precomputed for every named app hue ──
   The same OKLab mixes as the color-mix() rules above, resolved to hex so the surfaces compute to plain rgb()
   (contrast checkers and the audit harness can read them). The color-mix() rules stay as the fallback for a
   custom hue, which has no data-gf-theme. Regenerate with the themes if a ramp changes. */
/* Sapphire */
[data-gf-expression="consumer"][data-gf-theme="sapphire"], :where([data-gf-theme="sapphire"]) [data-gf-expression="consumer"] { --gf-canvas: #F1F5FD; --gf-surface-sunken: #EEF2FB; --gf-hover: #EFF3FC; --gf-pressed: #E4EAF6; --gf-border: #D6DFF4; --gf-hairline: #E7EDF8; }
.dark[data-gf-expression="consumer"][data-gf-theme="sapphire"], .dark [data-gf-expression="consumer"][data-gf-theme="sapphire"], .dark:where([data-gf-theme="sapphire"]) [data-gf-expression="consumer"] { --gf-canvas: #0C1425; --gf-surface: #121927; --gf-surface-raised: #182031; --gf-surface-sunken: #0F1627; --gf-hover: #192236; --gf-pressed: #1E283D; --gf-border: #212D43; --gf-hairline: #192235; }
/* Iris */
[data-gf-expression="consumer"][data-gf-theme="iris"], :where([data-gf-theme="iris"]) [data-gf-expression="consumer"] { --gf-canvas: #F6F6FD; --gf-surface-sunken: #F3F4FB; --gf-hover: #F4F5FC; --gf-pressed: #E9ECF6; --gf-border: #DFE1F3; --gf-hairline: #ECEEF8; }
.dark[data-gf-expression="consumer"][data-gf-theme="iris"], .dark [data-gf-expression="consumer"][data-gf-theme="iris"], .dark:where([data-gf-theme="iris"]) [data-gf-expression="consumer"] { --gf-canvas: #121225; --gf-surface: #151728; --gf-surface-raised: #1C1E32; --gf-surface-sunken: #141427; --gf-hover: #1E2036; --gf-pressed: #23263D; --gf-border: #272B42; --gf-hairline: #1E2035; }
/* Orchid */
[data-gf-expression="consumer"][data-gf-theme="orchid"], :where([data-gf-theme="orchid"]) [data-gf-expression="consumer"] { --gf-canvas: #FBF5FB; --gf-surface-sunken: #F8F2F9; --gf-hover: #F9F3F9; --gf-pressed: #EFEAF4; --gf-border: #EADEED; --gf-hairline: #F3ECF5; }
.dark[data-gf-expression="consumer"][data-gf-theme="orchid"], .dark [data-gf-expression="consumer"][data-gf-theme="orchid"], .dark:where([data-gf-theme="orchid"]) [data-gf-expression="consumer"] { --gf-canvas: #1B0F1E; --gf-surface: #1C1623; --gf-surface-raised: #231D2C; --gf-surface-sunken: #1D1120; --gf-hover: #261E2F; --gf-pressed: #2C2436; --gf-border: #2F293B; --gf-hairline: #261E2F; }
/* Lagoon */
[data-gf-expression="consumer"][data-gf-theme="lagoon"], :where([data-gf-theme="lagoon"]) [data-gf-expression="consumer"] { --gf-canvas: #F1F8FC; --gf-surface-sunken: #EEF6FA; --gf-hover: #EFF7FB; --gf-pressed: #E4EEF4; --gf-border: #D6E6EE; --gf-hairline: #E7F1F6; }
.dark[data-gf-expression="consumer"][data-gf-theme="lagoon"], .dark [data-gf-expression="consumer"][data-gf-theme="lagoon"], .dark:where([data-gf-theme="lagoon"]) [data-gf-expression="consumer"] { --gf-canvas: #0A161D; --gf-surface: #101A22; --gf-surface-raised: #17212C; --gf-surface-sunken: #0D181F; --gf-hover: #17242E; --gf-pressed: #1C2A35; --gf-border: #212E3B; --gf-hairline: #17242E; }
/* Pine */
[data-gf-expression="consumer"][data-gf-theme="pine"], :where([data-gf-theme="pine"]) [data-gf-expression="consumer"] { --gf-canvas: #F2F8F8; --gf-surface-sunken: #EFF6F6; --gf-hover: #F0F7F7; --gf-pressed: #E5EEF1; --gf-border: #D8E6E8; --gf-hairline: #E8F1F2; }
.dark[data-gf-expression="consumer"][data-gf-theme="pine"], .dark [data-gf-expression="consumer"][data-gf-theme="pine"], .dark:where([data-gf-theme="pine"]) [data-gf-expression="consumer"] { --gf-canvas: #0B1619; --gf-surface: #111A1F; --gf-surface-raised: #172229; --gf-surface-sunken: #0D191B; --gf-hover: #17242B; --gf-pressed: #1D2A32; --gf-border: #212F37; --gf-hairline: #17242A; }
/* Graphite */
[data-gf-expression="consumer"][data-gf-theme="graphite"], :where([data-gf-theme="graphite"]) [data-gf-expression="consumer"] { --gf-canvas: #F6F7F9; --gf-surface-sunken: #F3F5F7; --gf-hover: #F4F5F8; --gf-pressed: #E9ECF1; --gf-border: #DFE3E9; --gf-hairline: #ECEFF3; }
.dark[data-gf-expression="consumer"][data-gf-theme="graphite"], .dark [data-gf-expression="consumer"][data-gf-theme="graphite"], .dark:where([data-gf-theme="graphite"]) [data-gf-expression="consumer"] { --gf-canvas: #11141A; --gf-surface: #151920; --gf-surface-raised: #1B202A; --gf-surface-sunken: #13171C; --gf-hover: #1D232C; --gf-pressed: #232933; --gf-border: #262D38; --gf-hairline: #1D232B; }

/* ── Reduced motion: the calm, no-overshoot work springs ── */
@media (prefers-reduced-motion: reduce) {
  [data-gf-expression="consumer"] {
    --gf-spring-snappy: var(--gf-spring-smooth);
    --gf-spring-snappy-dur: 452ms;
    --gf-spring-sheet: var(--gf-spring-smooth);
    --gf-spring-sheet-dur: 505ms;
    --gf-spring-bouncy: var(--gf-spring-smooth);
    --gf-spring-bouncy-dur: 653ms;
  }
}
 /* opt-in: <html data-gf-expression="consumer"> — last, token overrides only */
