/* GENERATED COPY of f31-platform/ui/f31-ui-v3.css. Edit the source and run f31-platform/ui/sync.sh. sha:3d21e3759c */
/* ═══════════════════════════════════════════════════════════════════════
   F31 UI, design system v3 (2026-11-07): the one stylesheet for every app.
   Source of truth: f31-platform/ui/f31-ui-v3.css. Each app carries a COPY
   (Hub hub/static/f31-ui.css, Bermondse static/f31-ui.css, Freegent
   app/src/styles/f31-ui.css) made by ./sync.sh; never edit a copy.
   Flattened 2026-11-08: the v2 rules that the v3 layer overrode are gone, so
   what remains is what applies. The v3 layer still comes later in the file
   and wins where both set a value, so read it first when changing anything.
   v1 and v2 are retired. A page that is not ours (RWU) takes f31-ui-scoped.css,
   this file under :where(.f31-scope), built by build-scoped.mjs.
   ═══════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════════
   F31 UI: shared components for every F31 app (Hub, Bermondse, Freegent).
   Source of truth: f31-platform/ui/f31-ui.css. Apps carry a COPY made by
   ./sync.sh; never edit a copy. Design system, live from this
   file: hub.f31.co.uk/design-system (rulebook:
   https://claude.ai/artifact/54jcAtjJTpiJCMJK5cKSpq)

   2026-10-23: the app layer. Opaque surfaces with a soft shadow (no border in
   light, a hairline in dark), one accent per app (--f31-accent, picked by
   data-f31-app, drives selection, switches, focus and tonal buttons), a type
   scale, a spacing scale, and the components a phone app is made of: hero,
   quick actions, grouped rows, dock, sheet, rail. See "App layer" at the end
   and docs/design-references.md for where each rule comes from.

   Theme contract. The components read only the --f31-* tokens below, which
   resolve like this:
     light  : the default
     dark   : <html class="dark">            (Bermondse)
              <html data-theme="dark">        (Freegent)
              <html data-f31-theme="auto"> + a dark device (Hub)
   Page contract. <html> carries the page colour and <body> is transparent,
   so the glow (z-index -1) sits between them.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --f31-speed: 4;                              /* glow speed; 1 = an 18 to 27s cycle (6 until 2026-10-10, when the owner asked for slower) */
  --f31-glow-1: rgba(222, 176, 84, 0.60);
  --f31-glow-2: rgba(222, 132, 112, 0.54);
  --f31-glow-3: rgba(120, 166, 214, 0.54);
  --f31-glow-bermondse-1: rgba(222, 180, 92, 0.62); --f31-glow-bermondse-2: rgba(206, 138, 118, 0.50); --f31-glow-bermondse-3: rgba(214, 170, 84, 0.54);   /* gold leads, clay is the accent */
  --f31-glow-freegent-1: rgba(120, 166, 214, 0.60); --f31-glow-freegent-2: rgba(150, 190, 140, 0.50); --f31-glow-freegent-3: rgba(104, 150, 204, 0.54);     /* blue leads, sage is the accent */        /* the tab bar's glass */
  --f31-bar-shine: rgba(255, 255, 255, 0.95);  /* the bright top edge */        /* capsule behind the selected tab */
  --f31-badge: #b04434;
  --f31-side: rgba(255, 255, 255, 0.84);           /* screen titles and names: the f31.co.uk headline face, set tight at 600 */      /* data: codes, dates, money, addresses */
  --f31-content-w: 1120px;                     /* content stops growing here on wide screens */
}
:root.dark, :root[data-theme="dark"], :root[data-f31-theme="dark"] {
  --f31-glow-1: rgba(196, 150, 60, 0.46);
  --f31-glow-2: rgba(176, 78, 58, 0.42);
  --f31-glow-3: rgba(52, 104, 168, 0.46);
  --f31-glow-bermondse-1: rgba(196, 150, 60, 0.46); --f31-glow-bermondse-2: rgba(150, 72, 60, 0.44); --f31-glow-bermondse-3: rgba(170, 124, 40, 0.42);
  --f31-glow-freegent-1: rgba(52, 104, 168, 0.46); --f31-glow-freegent-2: rgba(70, 116, 66, 0.42); --f31-glow-freegent-3: rgba(44, 88, 150, 0.44);
  --f31-bar-shine: rgba(255, 255, 255, 0.16);
  --f31-select: rgba(255, 255, 255, 0.13);
  --f31-select-ink: #ecdfc4;
  --f31-badge: #e08b7c;
  --f31-side: rgba(23, 21, 18, 0.86);
  --f31-switch-on: #c9a86a;
}
@media (prefers-color-scheme: dark) {
  :root[data-f31-theme="auto"] {
    --f31-glow-1: rgba(196, 150, 60, 0.46);
    --f31-glow-2: rgba(176, 78, 58, 0.42);
    --f31-glow-3: rgba(52, 104, 168, 0.46);
    --f31-glow-bermondse-1: rgba(196, 150, 60, 0.46); --f31-glow-bermondse-2: rgba(150, 72, 60, 0.44); --f31-glow-bermondse-3: rgba(170, 124, 40, 0.42);
    --f31-glow-freegent-1: rgba(52, 104, 168, 0.46); --f31-glow-freegent-2: rgba(70, 116, 66, 0.42); --f31-glow-freegent-3: rgba(44, 88, 150, 0.44);
    --f31-bar-shine: rgba(255, 255, 255, 0.16);
    --f31-select: rgba(255, 255, 255, 0.13);
    --f31-select-ink: #ecdfc4;
    --f31-badge: #e08b7c;
    --f31-side: rgba(23, 21, 18, 0.86);
    --f31-switch-on: #c9a86a;
  }
}

/* An app's glow colours are a named set here, never in the app: its pages carry
   <html data-f31-app="bermondse">. A lead colour (glows 1 and 3) and one accent
   from the app's own palette (glow 2); with no name a page gets the family mix. */

/* ── Aurora: the moving ground ────────────────────────────────────────────
   <div class="f31-aurora" aria-hidden="true"><i></i><i></i><i></i></div>
   Edge light (2026-10-10, the owner's pick from three mocks; the colours were
   confirmed on 2026-10-11):
   the colour lives along the top and the bottom of the screen and the middle,
   where the content sits, is the plain page colour. That is what keeps dark
   mode free of haze and light mode clear. Glows 1 and 2 share the top, 2 and 3
   the bottom: 1 and 3 never overlap, because in the family mix gold over blue
   turns grey. Five wide glows (the three marks
   plus the container's two pseudo-elements) that only ever move and scale
   (no live blur, no mask), so it is cheap on any device. Add
   f31-aurora--still on working screens; it also stops under reduced motion.
   One per page, first in <body>. */
.f31-aurora { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.f31-aurora i, .f31-aurora::before, .f31-aurora::after { content: ""; position: absolute; width: 150%; height: 78%; will-change: transform; animation: f31-drift calc(18s / var(--f31-speed)) ease-in-out infinite alternate; }
.f31-aurora i:nth-child(1) { left: -70%; top: -42%; background: radial-gradient(closest-side, var(--f31-glow-1) 18%, transparent); }
.f31-aurora i:nth-child(2) { right: -70%; top: -45%; background: radial-gradient(closest-side, var(--f31-glow-2) 18%, transparent); animation-name: f31-drift-2; animation-duration: calc(23s / var(--f31-speed)); animation-delay: -1s; }
.f31-aurora i:nth-child(3) { left: -62%; bottom: -44%; background: radial-gradient(closest-side, var(--f31-glow-3) 18%, transparent); animation-name: f31-drift-3; animation-duration: calc(27s / var(--f31-speed)); animation-delay: -2s; }
.f31-aurora::before { right: -66%; bottom: -46%; background: radial-gradient(closest-side, var(--f31-glow-2) 18%, transparent); animation-name: f31-drift-4; animation-duration: calc(21s / var(--f31-speed)); animation-delay: -3s; }
.f31-aurora::after { width: 110%; height: 62%; left: -5%; bottom: -40%; background: radial-gradient(closest-side, var(--f31-glow-3) 18%, transparent); animation-name: f31-drift-5; animation-duration: calc(25s / var(--f31-speed)); animation-delay: -4s; }
.f31-aurora--still i, .f31-aurora--still::before, .f31-aurora--still::after { animation-play-state: paused; }
/* Each glow slides along its own edge through a few points, with a gentle
   swell (2026-10-09: the owner asked for more movement, "not extreme").
   Distances are a share of the glow itself. Still transform only. */
@keyframes f31-drift   { 0% { transform: translate(-12%, -4%) scale(0.92); } 35% { transform: translate(14%, 3%) scale(1.1); }   70% { transform: translate(34%, -3%) scale(0.98); } 100% { transform: translate(22%, 6%) scale(1.16); } }
@keyframes f31-drift-2 { 0% { transform: translate(10%, 4%) scale(1.06); }   30% { transform: translate(-12%, -3%) scale(0.92); } 65% { transform: translate(-32%, 5%) scale(1.14); } 100% { transform: translate(-18%, -2%) scale(0.96); } }
@keyframes f31-drift-3 { 0% { transform: translate(-10%, 5%) scale(0.95); }  40% { transform: translate(16%, -4%) scale(1.14); }  75% { transform: translate(36%, 3%) scale(0.92); }  100% { transform: translate(20%, -6%) scale(1.08); } }
@keyframes f31-drift-4 { 0% { transform: translate(12%, -3%) scale(1.1); }   45% { transform: translate(-14%, 5%) scale(0.94); }  100% { transform: translate(-34%, -4%) scale(1.12); } }
@keyframes f31-drift-5 { 0% { transform: translate(-22%, 3%) scale(0.9); }   50% { transform: translate(8%, -4%) scale(1.15); }   100% { transform: translate(24%, 5%) scale(0.96); } }

/* ── Screen: how an app sits on a phone ───────────────────────────────────
   One place answers "where does the page start, where does it end, where is
   the tab bar" for every app. An app never writes env(safe-area-inset-*) or a
   display-mode query of its own; it uses these tokens:
     --f31-top            where a phone screen's first row starts: below the
                          status bar, and in a home-screen app below the band
                          iOS blurs under it (--f31-edge-guard)
     --f31-safe-top       the status bar's own height, for the rare full-height
                          pane that needs it without the guard
     --f31-safe-bottom    the home indicator's room, for anything docked to
                          the bottom edge (a reply box, a sheet)
     --f31-tabbar-clear   what a scrolling area leaves at its end so the tab
                          bar never covers its last row
   How an app uses it:
     1. <head>: viewport-fit=cover, apple-mobile-web-app-capable,
        status-bar-style black-translucent, a manifest with display
        "standalone", then <script src="f31-screen.js"> (no defer) so the
        page is marked before it paints.
     2. The phone header's top padding (or margin) is var(--f31-top).
     3. On a phone the page does not scroll: f31-fixed-page on <html>, and
        f31-scroll on the one element that does, with
        padding-bottom: var(--f31-tabbar-clear) when there is a tab bar.
     4. nav.f31-tabbar last in <body>. It places itself.
   f31-screen.js measures what CSS cannot see and marks <html>. Since iOS 26 a
   home-screen app is often given a web view one status bar short:
     data-f31-screen="short-bottom"  the page stops early and a strip in the
       page's ground colour is left under it. The home indicator is in that
       strip, so nothing on the page needs to leave room for it; the tab bar
       sits on the page's own edge and the page fades into the strip instead
       of being cut by it. <html> must carry background: var(--f31-bg), which
       is the colour iOS gives the strip.
     data-f31-screen="short-top"  the system covers the status bar with a
       flat strip and the page starts under it: there is no inset and no blur
       band, so the header starts after the plain 14px. iOS reports no bottom
       inset here either, though the home indicator is over the page, so the
       script puts the 34px back (inline --f31-safe-bottom) on such an iPhone.
   Page zoom. A phone can draw the page smaller or larger than life (the
   owner's draws it at 75%). The status bar and the home indicator stay their
   real size, but iOS hands the insets over unscaled, so at 75% a "62px" inset
   covers only three quarters of the status bar. The script sets --f31-zoom
   (0.75 there, 1 when unset) and the tokens divide by it: --f31-pt is one
   real point of glass in page px, and every length that answers to the
   device's own furniture is written in it. */
:root {
  --f31-pt: calc(1px / var(--f31-zoom, 1));
  --f31-safe-top: calc(env(safe-area-inset-top, 0px) / var(--f31-zoom, 1));
  --f31-safe-bottom: calc(env(safe-area-inset-bottom, 0px) / var(--f31-zoom, 1));
  --f31-edge-guard: 14px;
  --f31-top: calc(var(--f31-safe-top) + var(--f31-edge-guard));
  /* The bar clears the home indicator (which sits 8 to 13 points from the
     edge): 16 points up on an iPhone, 10px on a screen with no indicator. */
  --f31-bar-bottom: max(10px, calc(var(--f31-safe-bottom) - 18 * var(--f31-pt)));
  /* Space a scrolling area must leave at its end so the bar never covers content. */
  --f31-tabbar-clear: calc(var(--f31-bar-bottom) + 64px + 14px);
}
/* The blur band is the same height in real points at any page zoom (2026-11-08: at 75% a 38px guard left the first row in the blur). */
html.f31-installed { --f31-edge-guard: calc(38 * var(--f31-pt)); }
html[data-f31-screen="short-top"] { --f31-safe-top: 0px; --f31-edge-guard: 14px; }
html[data-f31-screen="short-bottom"] { --f31-safe-bottom: 0px; --f31-bar-bottom: 8px; }
/* A docked, edge-to-edge bar in the strip's colour was tried here on
   2026-10-10 and the owner called it "very broken" the next morning: the bar
   stays the floating capsule in every state. */
html[data-f31-screen="short-bottom"]::after { content: ""; position: fixed; z-index: 150; left: 0; right: 0; bottom: 0; height: 28px; pointer-events: none; background: var(--f31-bg); -webkit-mask-image: linear-gradient(to bottom, transparent, #000); mask-image: linear-gradient(to bottom, transparent, #000); }
/* Home-screen apps (2026-11-08): the status bar stays see-through (black-translucent) and the page runs under the
   clock, as Bermondse does. Full height: on iOS 26.1 a see-through app gets
   a viewport one status bar short and stops drawing fixed content at that edge, the black strip under the tab bar
   (WebKit 301108). A page at least as tall as the screen gets the full viewport back; 100lvh caps it where the top
   inset is 0 (WebKit 316008). Same fix as frappe/frappe-ui#1284. */
/* --f31-safe-top, not the raw inset: at 75% page zoom iOS hands the inset over unscaled and the page fell 17pt short (2026-11-08). */
@media (display-mode: standalone) { html { min-height: min(100lvh, calc(100% + var(--f31-safe-top))); } }

/* ── TabBar: the phone's main navigation ──────────────────────────────────
   <nav class="f31-tabbar" aria-label="Main">
     <a|button class="f31-tab" aria-current="page"> <svg/> Label </a|button> …
   </nav>
   Three to five destinations. After Apple's current tab bar: a floating glass
   capsule sitting low in the curve of the screen, with a clearly visible
   capsule behind the selected tab. The glass here is deliberately on the
   opaque side so labels stay readable over the glow.
   It is position: fixed on its own layer, and takes its place from the Screen
   tokens above (--f31-bar-bottom). For it never to move, the PAGE must
   not scroll on a phone: the app scrolls one inner element instead (see
   .f31-fixed-page below). Selected = aria-current="page" (or .active). */
.f31-tabbar {
  --f31-bar-r: max(24px, min(40px, calc(max(env(safe-area-inset-bottom, 0px), var(--f31-safe-bottom) * var(--f31-zoom, 1)) * 1.2)));
  position: fixed; z-index: 200; bottom: var(--f31-bar-bottom);
  max-width: 520px; margin-inline: auto; box-sizing: border-box;
  display: flex; align-items: stretch;
  border: 1px solid var(--f31-bar-edge);
  -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  transform: translateZ(0); -webkit-user-select: none; user-select: none;
}
.f31-tab {
  position: relative; flex: 1 1 0; min-width: 0; margin: 0; padding: 0 2px; border: 0; background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; text-transform: none;
  white-space: nowrap; overflow: hidden; -webkit-tap-highlight-color: transparent;
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.15s;
}
.f31-tab svg { flex: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.f31-tab:active { transform: scale(0.94); }
.f31-tab[aria-current="page"] svg, .f31-tab[aria-current="true"] svg, .f31-tab.active svg { stroke-width: 2.1; }
.f31-tab:focus-visible { outline: 2px solid var(--f31-select-ink); outline-offset: -2px; }
/* An unread dot: <span class="f31-tab__dot"> inside the tab. */
.f31-tab__dot { position: absolute; top: 9px; left: calc(50% + 9px); width: 8px; height: 8px; border-radius: 50%; background: var(--f31-badge); }

/* ── Sidebar: the desktop's main navigation ───────────────────────────────
   <aside class="f31-sidebar">
     <div class="f31-sidebar__brand"> app mark and name </div>
     <nav> <a|button class="f31-side-item" aria-current="page"> <svg/> Label </a|button> … </nav>
     <div class="f31-sidebar__foot"> account </div>
   </aside>
   A column down the left with no panel behind it, from 900px wide. The same
   destinations, labels and icons as the phone TabBar, in the same order.
   Never show both. The page leaves var(--f31-sidebar-w) clear on the left. */
:root { --f31-sidebar-w: 242px; }
.f31-sidebar {
  position: fixed; z-index: 100; top: 12px; left: 12px; bottom: 12px; width: 218px; height: auto; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 3px; padding: 18px 10px 14px; overflow: hidden auto;
  /* Naked: no panel behind it. The items sit straight on the glow (the owner's
     call, 2026-10-08: "looks better" than an underlay on tablet and desktop). */
  border: 0; border-radius: 0; background: none; box-shadow: none;
}
.f31-sidebar nav { display: flex; flex-direction: column; gap: 3px; padding: 0; }
.f31-sidebar__brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: var(--f31-ink); }
.f31-sidebar__label { margin: 14px 0 4px; padding: 0 16px; font: 700 11px/14px -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--f31-muted); }
.f31-side-item {
  display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; box-sizing: border-box; margin: 0; padding: 0 16px;
  border: 0; border-radius: 999px; background: none; color: var(--f31-muted); text-align: left; text-decoration: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.f31-side-item svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.f31-side-item:hover { color: var(--f31-ink); background: var(--f31-select); }
.f31-side-item[aria-current="page"], .f31-side-item[aria-current="true"], .f31-side-item.active { color: var(--f31-select-ink); background: var(--f31-select); }
.f31-side-item[aria-current="page"] svg, .f31-side-item[aria-current="true"] svg, .f31-side-item.active svg { stroke-width: 2.1; color: inherit; }
.f31-side-item:focus-visible { outline: 2px solid var(--f31-select-ink); outline-offset: -2px; }
.f31-sidebar__foot { margin-top: auto; padding: 14px 10px 2px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--f31-muted); min-width: 0; }

/* ── Brand: an app's mark and name ────────────────────────────────────────
   <a class="f31-brand"> <svg class="f31-brand__mark" viewBox="0 0 64 64">…</svg>
     <span><b class="f31-brand__name">FREEGENT</b><small class="f31-brand__sub">BUSINESS ADMIN</small></span></a>
   One lockup for the family, after Bermondse's: a split monogram (an ink stem
   plus two shapes in the product's light and deep tone), the name in wide
   capitals, a small gold line under it. The marks share one 64-unit grid: the
   stem is always x10 y8 w11 h48 rx3. */
.f31-brand { display: flex; align-items: center; gap: 12px; color: var(--f31-ink); text-decoration: none; min-width: 0; }
.f31-brand__mark { flex: none; width: 40px; height: 40px; display: block; }
.f31-brand__name { display: block; font: 500 15px/1 "Outfit", "Manrope", system-ui, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--f31-ink); white-space: nowrap; }
.f31-brand__sub { display: block; margin-top: 5px; font: 600 8.5px/1 "Outfit", "Manrope", system-ui, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: var(--f31-select-ink); white-space: nowrap; }
.f31-brand--sm .f31-brand__mark { width: 30px; height: 30px; }
.f31-brand--sm .f31-brand__name { font-size: 13px; }

/* ── The F31 mark ─────────────────────────────────────────────────────────
   <svg class="f31-mark" viewBox="0 0 216 100" role="img" aria-label="F31">
     <path class="g" d="…F"/><path class="g" transform="translate(78)" d="…3"/><path transform="translate(156)" d="…1"/></svg>
   Drawn, not typed: F, 3 and 1 each in a 60 by 100 box, 18 apart, one stroke and
   one corner radius, so letter and numbers weigh the same. F3 = every, 1 = one:
   F and 3 in gold, the 1 in ink. Copy the three paths from f31.co.uk's header.
   In a brand lockup it takes the place of the name; alone in one (the Hub) it is the whole brand, and larger. */
.f31-mark { display: block; height: 26px; width: auto; overflow: visible; fill: none; stroke: currentColor; stroke-width: 16; stroke-linejoin: round; }
.f31-mark .g { stroke: var(--f31-gold); }
.f31-brand .f31-mark { height: 15px; }
.f31-brand--sm .f31-mark { height: 13px; }
.f31-brand > .f31-mark { height: 24px; }
.f31-brand--sm > .f31-mark { height: 20px; }

/* ── Switch: on or off, with immediate effect ─────────────────────────────
   <input type="checkbox" class="f31-switch" aria-label="…">
   or put f31-switches on a container to turn every checkbox inside it into a
   switch. A real checkbox underneath, so forms, labels and the keyboard all
   keep working. Use a plain checkbox only for picking several things from a list. */
input.f31-switch, .f31-switches input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: none; position: relative; margin: 0; padding: 0;
  border: 0; border-radius: 999px; cursor: pointer; vertical-align: middle;
}
input.f31-switch::after, .f31-switches input[type="checkbox"]::after {
  content: ""; position: absolute; border-radius: 50%; background: #fff;
}
input.f31-switch:disabled, .f31-switches input[type="checkbox"]:disabled { opacity: 0.45; cursor: default; }
input.f31-switch:focus-visible, .f31-switches input[type="checkbox"]:focus-visible { outline: 2px solid var(--f31-select-ink); outline-offset: 3px; }

/* ── Motion language (owner, 2026-11-10: "it just pulls up"; replaces the staggered rise) ──────────────────
   Driven by f31Motion and f31Arrive in f31-motion.js; the shared parts call them, apps need no code. Rule: if
   nothing changed, nothing moves. A reload, a refresh and a live redraw of the same screen stay still. Transform,
   opacity and blur only, 200 to 450ms; reduced motion turns all of it off.
     open a card or row   html[data-f31-vt="grow"]: the card (view-transition-name f31-grow) grows into the page
     back                 html[data-f31-vt="shrink"]: the page shrinks back into its row (no row on screen: a fade)
     switch tabs          html[data-f31-vt="slide-next|slide-prev"]: the content slides the tab's way
     changed item         .f31-landed: a short glow round it as it lands (f31Motion.land)
     first open           html.f31-arrived: the glow settles, the greeting appears, the Needs you cards land
   .f31-enter is kept as a name apps put on a screen; it no longer moves anything (f31Motion does). */
.f31-enter { animation: none; }
html[data-f31-vt] { view-transition-name: none; }
html[data-f31-vt]::view-transition-group(*) { animation-duration: 0.4s; animation-timing-function: var(--f31-ease, cubic-bezier(0.16, 1, 0.3, 1)); }
html[data-f31-vt]::view-transition-old(*), html[data-f31-vt]::view-transition-new(*) { animation-duration: 0.3s; }
html[data-f31-vt]::view-transition-old(f31-grow), html[data-f31-vt]::view-transition-new(f31-grow) { height: 100%; object-fit: cover; object-position: top; }
html[data-f31-vt="grow"]::view-transition-new(f31-grow) { animation: f31-vt-in 0.4s var(--f31-ease) both; }
html[data-f31-vt="grow"]::view-transition-old(f31-grow) { animation: f31-vt-out 0.22s ease both; }
html[data-f31-vt="grow"]::view-transition-old(f31-main) { animation: f31-vt-back 0.3s ease both; }
html[data-f31-vt="shrink"]::view-transition-old(f31-grow) { animation: f31-vt-out 0.34s ease both; }
html[data-f31-vt="shrink"]::view-transition-new(f31-grow) { animation: f31-vt-in 0.4s var(--f31-ease) both; }
html[data-f31-vt="shrink"]::view-transition-new(f31-main) { animation: f31-vt-front 0.4s var(--f31-ease) both; }
html[data-f31-vt="shrink-fade"]::view-transition-old(f31-grow) { animation: f31-vt-drop 0.3s ease both; }
html[data-f31-vt="shrink-fade"]::view-transition-new(f31-main) { animation: f31-vt-front 0.4s var(--f31-ease) both; }
html[data-f31-vt="slide-next"]::view-transition-old(f31-main) { animation: f31-vt-to-left 0.32s var(--f31-ease) both; }
html[data-f31-vt="slide-next"]::view-transition-new(f31-main) { animation: f31-vt-from-right 0.36s var(--f31-ease) both; }
html[data-f31-vt="slide-prev"]::view-transition-old(f31-main) { animation: f31-vt-to-right 0.32s var(--f31-ease) both; }
html[data-f31-vt="slide-prev"]::view-transition-new(f31-main) { animation: f31-vt-from-left 0.36s var(--f31-ease) both; }
html[data-f31-vt="fade"]::view-transition-old(f31-main) { animation: f31-vt-out 0.2s ease both; }
html[data-f31-vt="fade"]::view-transition-new(f31-main) { animation: f31-vt-in 0.26s ease both; }
@keyframes f31-vt-in { from { opacity: 0; } }
@keyframes f31-vt-out { to { opacity: 0; } }
@keyframes f31-vt-back { to { opacity: 0; transform: scale(0.97); filter: blur(3px); } }
@keyframes f31-vt-front { from { opacity: 0; transform: scale(0.98); } }
@keyframes f31-vt-drop { to { opacity: 0; transform: scale(0.94); } }
@keyframes f31-vt-to-left { to { opacity: 0; transform: translateX(-48px); } }
@keyframes f31-vt-from-right { from { opacity: 0; transform: translateX(48px); } }
@keyframes f31-vt-to-right { to { opacity: 0; transform: translateX(48px); } }
@keyframes f31-vt-from-left { from { opacity: 0; transform: translateX(-48px); } }
/* A changed item: a ring of the app's glow that fades as it lands (box-shadow on a pseudo layer, opacity only). */
.f31-landed { position: relative; }
.f31-landed::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--f31-accent) 55%, transparent), 0 0 24px color-mix(in srgb, var(--f31-accent) 45%, transparent);
  animation: f31-landed 1.2s ease both; }
@keyframes f31-landed { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
/* The first open: the shell waits for its data (html.f31-arriving), then the glow settles and the shell is simply
   there; the greeting's words appear (f31Words) and the Needs you cards land in order (f31-motion.js). */
html.f31-arriving :is(.f31-sb, .f31-tb, [data-f31-arrive]) { opacity: 0; }
html.f31-arriving.f31-slow:not(.f31-from-smoke) [data-f31-arrive] { opacity: 1; transition: opacity 0.3s ease; }
html.f31-arrived :is(.f31-sb, .f31-tb, [data-f31-arrive]) { animation: f31-vt-in 0.25s ease both; }
html.f31-arrived .f31-aurora { animation: f31-glow-settle 1.2s var(--f31-ease) both; }
@keyframes f31-glow-settle { from { opacity: 0; transform: scale(1.08); filter: blur(24px); } }
html.f31-from-smoke::after { content: ""; position: fixed; inset: 0; z-index: 1000; background: var(--f31-bg); pointer-events: none; }
.f31-veil { position: fixed; inset: 0; z-index: 1000; overflow: hidden; pointer-events: none; }
.f31-veil > b { position: absolute; inset: 0; background: var(--f31-bg); }
.f31-veil > i { position: absolute; border-radius: 50%; opacity: 0; background: radial-gradient(closest-side, var(--c), transparent); will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) {
  html.f31-arrived *, .f31-landed::after { animation: none !important; }
  html[data-f31-vt]::view-transition-group(*), html[data-f31-vt]::view-transition-old(*), html[data-f31-vt]::view-transition-new(*) { animation: none !important; }
  html.f31-arriving :is(.f31-sb, .f31-tb, [data-f31-arrive]) { opacity: 1; }
  html.f31-from-smoke::after, .f31-veil { display: none; }
}

/* ── Fixed page: nothing jumps ────────────────────────────────────────────
   Put f31-fixed-page on <html> (on phones) and f31-scroll on the ONE element
   that should scroll. The document then never scrolls, so the tab bar and the
   top of the screen cannot shift, bounce or be dragged by iOS overscroll. */
html.f31-fixed-page, html.f31-fixed-page body { height: 100%; overflow: hidden; overscroll-behavior: none; }
/* Only on a fixed page does the scroller keep the wheel to itself. On a wide
   screen the page is not fixed, the scroller grows with its content, and a
   contained scroller there would swallow the wheel and the page would not move. */
.f31-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }
/* On a phone the page moves up and down only (2026-11-08): anything that bleeds past the edge is clipped there. */
html.f31-fixed-page .f31-scroll { overscroll-behavior: contain; overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) { .f31-aurora i, .f31-aurora::before, .f31-aurora::after, .f31-enter { animation: none; } .f31-tab, input.f31-switch, input.f31-switch::after { transition: none; } .f31-tab:active { transform: none; } }

/* ── Type roles (2026-10-08) ──────────────────────────────────────────────
   Two faces, each with one job. Text and titles are Manrope, as on f31.co.uk.
   .f31-title  a screen title or a name: Manrope 600, set tight like the
               f31.co.uk headline.
   .f31-mono   data a person reads character by character: a door code, a
               date, an amount, an address.
   .f31-stamp  a role or a state, set like a rubber stamp.
   Each app loads Manrope (400..800) and DM Mono (400, 500). */
.f31-title { font-family: var(--f31-title); line-height: 1.05; }
.f31-mono { font-family: var(--f31-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.f31-stamp { display: inline-block; padding: 3px 7px; border: 1px solid currentColor; border-radius: 5px; font: 500 11px/1.3 var(--f31-mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }

/* ── Words: a headline that arrives word by word (2026-10-09) ─────────────
   <h1 class="f31-words"> <span class="w"><span style="--i:0">Your</span></span> … </h1>
   Each word rises out of a mask and sharpens, one after another (--i is its
   place, --at an optional start in seconds on the heading). Only transform,
   opacity and blur move, so a line never re-wraps while it plays. The
   f31.co.uk headline and the Hub's greeting both use it. */
/* Real room under the letters for descenders (g, y, p): padding inside the mask, taken back with a negative
   margin. overflow-clip-margin alone is not enough: Safari ignores it and cut the g. */
.f31-words .w { display: inline-block; overflow: clip; overflow-clip-margin: 0.2em; vertical-align: top; padding: 0.12em 0.06em 0.3em; margin: -0.12em -0.06em -0.3em; }
/* The word's own box reaches below the line as well: while it carries the blur, Safari paints it inside this
   box, which at a tight line height ends just under the baseline. */
.f31-words .w > span { display: inline-block; padding: 0.12em 0.06em 0.3em; margin: -0.12em -0.06em -0.3em; animation: f31-rise 1.5s var(--f31-ease, ease) both; animation-delay: calc(var(--at, 0s) + var(--i) * 0.1s); }
@keyframes f31-rise { from { transform: translateY(140%) rotate(2deg); opacity: 0; filter: blur(6px); } 60% { opacity: 1; } to { transform: none; opacity: 1; filter: none; } }
@media (prefers-reduced-motion: reduce) { .f31-words .w > span { animation: none; } }

/* ── Motion: how things arrive, answer and leave (2026-10-11) ─────────────
   The f31.co.uk front door set the family's motion (2026-10-09); from here
   every app has the same moves, drawn by this file and driven by
   f31-motion.js. One easing (--f31-ease), and only transform, opacity and blur
   ever move, so nothing re-wraps or re-flows while it plays. Under
   prefers-reduced-motion nothing moves: everything is simply there.
   .f31-words         a headline arrives word by word (above); f31Words(el) writes the markup
   .f31-words--soft   a supporting line follows, softer: no mask, a short drift up, the words nearly together
   .f31-settle        what comes after the words (a button, a note) settles up into place; --at delays it
   html.f31-leaving   the page leaves, blurring and shrinking a little; f31Leave(then) adds it and then runs `then`
   .f31-btn__label    a button's words, changed in place with f31Say(btn, text) (see Button)
   f31MarkFlip(svg)   the F31 mark arrives as a station departure board: EVERYONE goes blank from both ends, F31 flips in */
.f31-words--soft .w { overflow: visible; }
.f31-words--soft .w > span { animation: f31-words-soft 1.6s var(--f31-ease) both; animation-delay: calc(var(--at, 0s) + var(--i) * 0.028s); }
@keyframes f31-words-soft { from { transform: translateY(0.5em); opacity: 0; filter: blur(5px); } to { transform: none; opacity: 1; filter: none; } }
.f31-settle { animation: f31-settle 1.3s var(--f31-ease) both; animation-delay: var(--at, 0s); }
@keyframes f31-settle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
html.f31-leaving body > :not(.f31-aurora):not(.f31-smoke):not(.f31-toasts):not(script) { animation: f31-leave 0.55s var(--f31-ease) both; }
@keyframes f31-leave { to { opacity: 0; transform: scale(0.97); filter: blur(6px); } }
@media (prefers-reduced-motion: reduce) { .f31-words--soft .w > span, .f31-settle, html.f31-leaving body > * { animation: none; } }

/* ── Touch: behave like an app under a finger (2026-10-08) ────────────────
   Put class="f31-app" on <html>. On a phone this removes the things that
   give a web page away: the grey flash on tap, the 300ms double-tap wait,
   text selection and the long-press callout on controls, and iOS zooming the
   whole page when a field smaller than 16px takes focus. Controls answer a
   press by sinking slightly, the way a native button does. */
html.f31-app { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
.f31-app :is(a, button, summary, label, select, input, [role="button"], [role="tab"], [onclick]) { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.f31-app :is(button, summary, nav a, [role="button"], [role="tab"]) { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
@media (pointer: coarse) {
  .f31-app :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), select, textarea) { font-size: max(16px, 1em) !important; }
  .f31-app :is(button, [role="button"], .f31-press):not(.f31-tab):active { transform: scale(0.97); opacity: 0.82; transition: transform 0.08s, opacity 0.08s; }
}

/* ── Sheet menu: a menu that rises from the bottom on a phone ─────────────
   <details class="f31-sheet"> <summary>…</summary> <div> buttons or links </div> </details>
   On a wide screen it stays whatever dropdown the app styled. On a phone the
   panel becomes an action sheet above the home indicator with the page dimmed
   behind it. The dim layer belongs to the <summary>, so tapping it closes the
   sheet with no script. Do not put this inside an element that has a
   transform or a backdrop-filter: the sheet would be positioned against it. */
@media (max-width: 899px) {
  details.f31-sheet[open] > summary::before { content: ""; position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, 0.46); animation: f31-fade 0.22s both; cursor: default; }
  details.f31-sheet[open] > :not(summary) {
    position: fixed !important; z-index: 201; left: 10px !important; right: 10px !important; top: auto !important;
    bottom: calc(var(--f31-safe-bottom) + 10px) !important; min-width: 0 !important; box-sizing: border-box;
    display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 28px;
    animation: f31-sheet-up 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  details.f31-sheet[open] > :not(summary) :is(button, a) { min-height: 54px; display: flex; align-items: center; justify-content: center; border-radius: 20px; font-size: 16px; font-weight: 600; text-align: center; }
}
/* The sheet must cover the tab bar. It usually lives in a header that sits in
   a lower layer, so every positioned ancestor is lifted while it is open. */
@media (max-width: 899px) { .f31-app :has(details.f31-sheet[open]) { z-index: 300; } }
@keyframes f31-fade { from { opacity: 0; } }
@keyframes f31-sheet-up { from { transform: translateY(calc(100% + 24px)); } }

/* ── Skeleton: the shape of what is loading, instead of the word "Loading" ──
   <div class="f31-skeleton" style="height: 64px"></div> */
.f31-skeleton { border-radius: 16px; background: linear-gradient(100deg, var(--f31-select) 30%, var(--f31-bar-shine) 50%, var(--f31-select) 70%) 0 0 / 300% 100%; animation: f31-shimmer 1.4s linear infinite; }
.f31-skeleton + .f31-skeleton { margin-top: 10px; }
@keyframes f31-shimmer { to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .f31-skeleton, details.f31-sheet[open] > :not(summary), details.f31-sheet[open] > summary::before { animation: none; } }

/* ── Review fixes (2026-10-09, measured at phone size) ────────────────────
   The switch is 42x24 to look right, but a finger needs about 44x44, so the
   area that answers a tap extends past the drawing. */
@media (pointer: coarse) {
  input.f31-switch, .f31-switches input[type="checkbox"] { position: relative; }
  input.f31-switch::before, .f31-switches input[type="checkbox"]::before { content: ""; position: absolute; inset: -10px -4px; }
}

/* ── One light or dark choice for the whole family (2026-10-09) ───────────
   The choice is stored in a cookie on .f31.co.uk (f31_theme=light|dark), so
   switching in one app switches all of them. With no cookie an app follows
   the device. Each app keeps its own flag on <html> (Bermondse .dark,
   Freegent data-theme, Hub data-f31-theme); all three are understood above.

   The glow's behaviour is identical everywhere (this file), and so is where
   its COLOURS are kept: each app has a named set at the top of this file and
   picks it with <html data-f31-app="...">. The Hub and f31.co.uk keep the
   family mix (gold, terracotta, blue); Bermondse is gold with clay; Freegent
   is blue with sage. */

/* ═══════════════════════════════════════════════════════════════════════
   Tokens and components (2026-10-09): one set for every app.
   Until now each app kept its own colours, buttons, fields, chips and cards,
   so the same control looked slightly different in each. From here on an app
   takes these and keeps only what is its own (a diary row, a receipt, a key
   tag). The live reference, drawn from this very file, is
   hub.f31.co.uk/design-system.

   Colour tokens. Light is the default; dark follows the theme contract at the
   top of this file. An app may re-point a token after loading this file (its
   product colour, its glow), never redefine a component.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --f31-display: 'Unbounded', 'Manrope', system-ui, sans-serif;   /* the F31 wordmark and the letter in an app icon, nothing else */
  --f31-ease: cubic-bezier(0.16, 1, 0.3, 1);                          /* cards, lists, tiles */
  --f31-r-full: 999px;                         /* every control is a pill */                         /* a button or a field; also the least a finger can hit */                      /* a small button in a row or a table; grows to 44px under a finger */
  --f31-gutter: clamp(16px, 4vw, 40px);        /* page edge to content */
  --f31-hue-gold: #c9a86a; --f31-hue-terracotta: #cf8377; --f31-hue-blue: #86a9cb; --f31-hue-green: #9bb46e; --f31-on-hue: #14120f;   /* identity fills: the same in both themes */ --f31-gold: #ac842e; --f31-gold-text: #6f5417; --f31-gold-tint: rgba(172, 132, 46, 0.16); --f31-gold-edge: rgba(172, 132, 46, 0.50);
  --f31-primary: #161618; --f31-on-primary: #ffffff; --f31-primary-hover: #3a3a3f;
  --f31-weekend: rgba(172, 132, 46, 0.11); --f31-shadow-float: 0 14px 34px rgba(60, 40, 20, 0.14);
  --f31-sheen: rgba(255, 255, 255, 0.6);                                 /* the light that sweeps across a button under the pointer */
  --f31-btn-glass: rgba(22, 22, 24, 0.05); --f31-btn-glass-hover: rgba(22, 22, 24, 0.09); --f31-btn-edge: rgba(22, 22, 24, 0.26); --f31-btn-shine: rgba(255, 255, 255, 0.75);   /* the see-through capsule (f31-btn--glass): dark glass on the light ground */
}
:root.dark, :root[data-theme="dark"], :root[data-f31-theme="dark"] { --f31-gold: #c9a86a; --f31-gold-text: #ecdfc4; --f31-gold-tint: rgba(201, 168, 106, 0.16); --f31-gold-edge: rgba(201, 168, 106, 0.45);
    --f31-primary: #f5f0e7; --f31-on-primary: #14120f; --f31-primary-hover: #ecdfc4;
    --f31-red: #e08b7c; --f31-green: #9bb46e; --f31-amber: #d4aa54; --f31-blue: #86a9cb;
    --f31-red-tint: rgba(224, 139, 124, 0.16); --f31-green-tint: rgba(155, 180, 110, 0.16); --f31-amber-tint: rgba(212, 170, 84, 0.16); --f31-blue-tint: rgba(134, 169, 203, 0.16);
    --f31-weekend: rgba(201, 168, 106, 0.10); --f31-shadow-float: 0 14px 34px rgba(0, 0, 0, 0.5);
    --f31-sheen: rgba(255, 255, 255, 0.14);
    --f31-btn-glass: rgba(245, 240, 231, 0.12); --f31-btn-glass-hover: rgba(245, 240, 231, 0.18); --f31-btn-edge: rgba(245, 240, 231, 0.34); --f31-btn-shine: rgba(255, 255, 255, 0.2);   /* light glass on the dark ground */
}
@media (prefers-color-scheme: dark) {
  :root[data-f31-theme="auto"] { --f31-gold: #c9a86a; --f31-gold-text: #ecdfc4; --f31-gold-tint: rgba(201, 168, 106, 0.16); --f31-gold-edge: rgba(201, 168, 106, 0.45);
    --f31-primary: #f5f0e7; --f31-on-primary: #14120f; --f31-primary-hover: #ecdfc4;
    --f31-red: #e08b7c; --f31-green: #9bb46e; --f31-amber: #d4aa54; --f31-blue: #86a9cb;
    --f31-red-tint: rgba(224, 139, 124, 0.16); --f31-green-tint: rgba(155, 180, 110, 0.16); --f31-amber-tint: rgba(212, 170, 84, 0.16); --f31-blue-tint: rgba(134, 169, 203, 0.16);
    --f31-weekend: rgba(201, 168, 106, 0.10); --f31-shadow-float: 0 14px 34px rgba(0, 0, 0, 0.5);
    --f31-sheen: rgba(255, 255, 255, 0.14);
    --f31-btn-glass: rgba(245, 240, 231, 0.12); --f31-btn-glass-hover: rgba(245, 240, 231, 0.18); --f31-btn-edge: rgba(245, 240, 231, 0.34); --f31-btn-shine: rgba(255, 255, 255, 0.2);
  }
}

/* ── Button: a pill with a verb on it ─────────────────────────────────────
   <button class="f31-btn f31-btn--primary">Send door code</button>
   One --primary per screen. --secondary for the other actions, --quiet for a
   low-key action that stands alone, --link for one inside a line of text,
   --danger for removing something, --glass for the one big action on a page
   that is mostly glow (the f31.co.uk sign-in capsule). Add --sm in a row or a
   table, --lg for a hero action, --block to fill the width. Works on <a> too.
   How a button answers a hand (2026-10-11, the f31.co.uk sign-in button's
   moves, now every button's): it lifts 2px under the pointer while a sheen
   sweeps across it, and gives a little under the press. Words kept in a
   .f31-btn__label can be changed in place with f31Say() (f31-motion.js): the
   old ones blur away, the button eases to its new width, the new ones settle. */
.f31-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; margin: 0; text-transform: none; text-decoration: none; text-align: center; white-space: nowrap; cursor: pointer;
}
.f31-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, var(--f31-sheen) 50%, transparent 65%); transform: translateX(-110%); pointer-events: none; }
.f31-btn:hover::after { transform: translateX(110%); transition: transform 0.9s var(--f31-ease); }
.f31-btn svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.f31-btn--secondary { font-weight: 600; }
.f31-btn--secondary:hover { border-color: var(--f31-accent); color: var(--f31-accent-text); }
.f31-btn--glass { border-color: var(--f31-btn-edge); background: var(--f31-btn-glass); box-shadow: inset 0 1px 0 var(--f31-btn-shine); }
.f31-btn--glass:hover { background: var(--f31-btn-glass-hover); }
/* Low-key and in-line buttons stay where they are: no lift, no sheen, and no clipping of a descender. */
.f31-btn--quiet { font-weight: 600; }
.f31-btn--link { border-radius: 6px; font-weight: 600; }
.f31-btn--quiet, .f31-btn--link { overflow: visible; }
.f31-btn--quiet::after, .f31-btn--link::after { display: none; }
.f31-btn--quiet:hover, .f31-btn--link:hover, .f31-btn--quiet:active, .f31-btn--link:active { transform: none; }
.f31-btn--danger, .f31-btn--danger:hover { border-color: var(--f31-red); font-weight: 600; }
.f31-btn--lg { gap: 14px; letter-spacing: -0.01em; }
.f31-btn--lg svg { width: 22px; height: 22px; }
.f31-btn--block { display: flex; width: 100%; }
/* A button a page hides (the hidden attribute) stays hidden: the display above used to win over it, so the guest
   check-in's "Confirm & continue" showed before any ID was chosen (found 2026-11-10). */
.f31-btn[hidden] { display: none; }
.f31-btn__label { display: inline-block; transition: opacity 0.6s var(--f31-ease), transform 0.8s var(--f31-ease), filter 0.6s var(--f31-ease); }
.f31-btn__label.out { opacity: 0; transform: translateY(6px); filter: blur(4px); }
.f31-btn:disabled, .f31-btn[aria-disabled="true"] { opacity: 0.5; cursor: default; transform: none; }
.f31-btn:disabled::after, .f31-btn[aria-disabled="true"]::after { display: none; }
@media (prefers-reduced-motion: reduce) { .f31-btn, .f31-btn__label { transition: none; } .f31-btn::after { display: none; } .f31-btn:hover, .f31-btn:active { transform: none; } }
@media (pointer: coarse) { .f31-btn--link { padding-block: 14px; margin-block: -14px; } }

/* ── Field: one line of input ─────────────────────────────────────────────
   <label class="f31-field"><span>Email</span><input><small>Helper</small></label>
   Every input, select and textarea inside a f31-field is styled, with no class
   of its own. f31-input and f31-select also work alone (a search box, a picker
   in a table). A textarea keeps a soft corner instead of a pill. Add
   f31-field--error to show the helper line as an error. */
.f31-field { display: flex; flex-direction: column; min-width: 0; }
.f31-field > small { font: 400 13px/18px var(--f31-sans); color: var(--f31-muted); }
.f31-input, .f31-select, .f31-field :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), textarea, select) {
  box-sizing: border-box; min-width: 0; height: var(--f31-control); margin: 0; padding: 0 18px;
  border: 1px solid var(--f31-line-strong); border-radius: var(--f31-r-full); background-color: var(--f31-glass); color: var(--f31-ink);
  font: 500 15px/1.4 var(--f31-sans); letter-spacing: 0; outline: none; transition: border-color 0.3s var(--f31-ease);
}
textarea.f31-input, .f31-field textarea { height: auto; min-height: 96px; resize: vertical; }
.f31-input::placeholder, .f31-field :is(input, textarea)::placeholder { color: var(--f31-muted); opacity: 1; }
.f31-select, .f31-field select {
  -webkit-appearance: none; appearance: none; padding-right: 36px; cursor: pointer;
}
.f31-select option, .f31-field select option { background: var(--f31-surface); color: var(--f31-ink); }
/* A code typed character by character (a door code, a key-safe combination): large, monospaced and
   spaced out so each digit is checked as it goes in. <input class="f31-input f31-input--code" inputmode="numeric"> */
.f31-input--code { height: 52px; padding: 0 16px; border-radius: 16px; font: 700 24px/1 var(--f31-mono); letter-spacing: 0.25em; }
.f31-input--code::placeholder { font-weight: 500; letter-spacing: 0.08em; }
.f31-input--sm, .f31-select--sm { height: var(--f31-control-sm); padding-left: 14px; font-size: 13px; }
.f31-select--on { border-color: var(--f31-accent-edge); }   /* a picker that holds a choice */
.f31-field--error :is(input, select, textarea) { border-color: var(--f31-red); }
.f31-field--error > small { color: var(--f31-red); }
.f31-input:disabled, .f31-select:disabled, .f31-field :is(input, select, textarea):disabled { opacity: 0.5; cursor: default; }
/* Small controls are one height on touch screens too, the same as .f31-btn--sm (2026-11-09: a picker beside a button stood 4px taller). */
@media (pointer: coarse) { .f31-input--sm, .f31-select--sm { height: 40px; } }

/* ── Chip: a small fact ───────────────────────────────────────────────────
   <span class="f31-chip f31-chip--gold">Owner</span>
   Never pressable. Gold means selected or yours; green, amber, red and blue
   are states, and always carry a word. */
.f31-chip { display: inline-flex; align-items: center; box-sizing: border-box; letter-spacing: 0; text-transform: none; white-space: nowrap; vertical-align: middle; }
.f31-chip--gold { border-color: var(--f31-accent-edge); }
.f31-chip--green { border-color: transparent; }
.f31-chip--amber { border-color: transparent; }
.f31-chip--red { border-color: transparent; }
.f31-chip--blue { border-color: transparent; }
.f31-chip--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── Card, label and list ─────────────────────────────────────────────────
   <p class="f31-label">Your apps</p>
   <div class="f31-card"> <h3 class="f31-card__title">…</h3> <p class="f31-card__text">…</p> </div>
   <div class="f31-list"> <a class="f31-row"> <span class="f31-row__main"><b class="f31-row__title">…</b>
     <small class="f31-row__detail">…</small></span> <span class="f31-row__value">…</span> <i class="f31-row__chev"></i> </a> … </div>
   Glass with a hairline edge: a tint, never a live blur. f31-card--flush drops
   the padding for a table or a list that runs edge to edge; f31-card--compact
   is a tile in a grid of figures. On <a> or <button> the whole card presses.
   The figure comes in three sizes (plain, --md, --sm). */
.f31-label { margin: 0 0 12px; }
.f31-card { box-sizing: border-box; border: 1px solid var(--f31-card-edge); background: var(--f31-surface); box-shadow: var(--f31-shadow-card); }
.f31-card--flush { overflow: hidden; }                     /* a tile in a grid of figures */
a.f31-card, button.f31-card { display: block; width: 100%; margin: 0; color: var(--f31-ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
a.f31-card:active, button.f31-card:active { transform: scale(0.985); box-shadow: var(--f31-shadow-card); }
.f31-card__title { margin: 0 0 4px; color: var(--f31-ink); }
.f31-card__text { margin: 0; }
.f31-card__figure { margin: 0; font-variant-numeric: tabular-nums; color: var(--f31-ink); }
.f31-card__figure--sm { font-size: 22px; line-height: 26px; }
.f31-card__figure--md { font-size: 30px; line-height: 34px; }
.f31-list { border: 1px solid var(--f31-card-edge); border-radius: var(--f31-r-card); background: var(--f31-surface); box-shadow: var(--f31-shadow-card); }
.f31-row { display: flex; align-items: center; box-sizing: border-box; width: 100%; margin: 0; border: 0; border-top: 1px solid var(--f31-line); background: none; color: var(--f31-ink); font: inherit; text-align: left; text-decoration: none; }
.f31-row:first-child { border-top: 0; }
a.f31-row, button.f31-row { cursor: pointer; transition: background 0.3s var(--f31-ease); }
.f31-row__main { flex: 1; min-width: 0; }
.f31-row__title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f31-row__detail { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f31-row__value { flex: none; font: 500 14px/20px var(--f31-mono); color: var(--f31-muted); font-variant-numeric: tabular-nums; }
.f31-row__chev { flex: none; width: 8px; height: 8px; margin-right: 4px; border-top: 2px solid var(--f31-faint); border-right: 2px solid var(--f31-faint); transform: rotate(45deg); }
@media (max-width: 899px) { .f31-list { border-radius: var(--f31-r-card-phone); } }

/* ── Table: rows of people or records on a wide screen ────────────────────
   <div class="f31-card f31-card--flush" style="overflow-x:auto"><table class="f31-table">…</table></div> */
.f31-table { width: 100%; }
.f31-table th, .f31-table td { text-align: left; white-space: nowrap; vertical-align: middle; }
.f31-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) { .f31-table th, .f31-table td { padding: 12px 10px; } }

/* ── Segmented control: two to four views of the same thing ───────────────
   <div class="f31-seg" role="group"><button aria-pressed="true">Grouped</button><button aria-pressed="false">List</button></div> */
.f31-seg { display: inline-flex; }
.f31-seg button { margin: 0; border: 0; background: none; letter-spacing: 0; text-transform: none; white-space: nowrap; cursor: pointer; transition: background 0.3s var(--f31-ease), color 0.3s var(--f31-ease); }

/* ── Filter: a chip that can be pressed to narrow a list ──────────────────
   <button class="f31-filter" aria-pressed="true">Needs review</button>
   Several in a row that wraps. Pressed (aria-pressed or .active) takes the
   gold selected state, like a tab. A fact that cannot be pressed is a chip. */
.f31-filter { display: inline-flex; align-items: center; gap: 6px; box-sizing: border-box; margin: 0; color: var(--f31-muted); letter-spacing: 0; text-transform: none; white-space: nowrap; cursor: pointer; transition: background 0.3s var(--f31-ease), color 0.3s var(--f31-ease), border-color 0.3s var(--f31-ease); }
.f31-filter:hover { color: var(--f31-ink); border-color: var(--f31-line-strong); }
.f31-filter[aria-pressed="true"], .f31-filter.active { border-color: transparent; }
@media (pointer: coarse) { .f31-filter { min-height: 40px; } }

/* ── Icon button: one glyph, no words ─────────────────────────────────────
   <button class="f31-iconbtn" aria-label="Refresh"><svg/></button>
   Always give it an aria-label. f31-iconbtn--plain drops the ring, for a close
   cross or a button sitting on a bar. 40px drawn, 44px under a finger. The day and
   night switch (.f31-daynight) is this same button: same size, edge and glass. */
.f31-iconbtn { position: relative; flex: none; display: inline-grid; place-items: center; box-sizing: border-box; width: 40px; height: 40px; margin: 0; padding: 0; border: 1px solid var(--f31-line-strong); border-radius: 50%; background: var(--f31-glass); color: var(--f31-ink); cursor: pointer; text-decoration: none; transition: border-color 0.3s var(--f31-ease), background 0.3s var(--f31-ease), color 0.3s var(--f31-ease), transform 0.3s var(--f31-ease); }
.f31-iconbtn:active { transform: scale(0.92); }
.f31-iconbtn:hover { border-color: var(--f31-accent); }
.f31-iconbtn--plain { border-color: transparent; }
.f31-iconbtn--plain:hover { border-color: transparent; }
.f31-iconbtn:disabled { opacity: 0.5; cursor: default; }
@media (pointer: coarse) { .f31-iconbtn::before { content: ""; position: absolute; inset: -2px; } }

/* ── Modal: a task that takes over the screen ─────────────────────────────
   <div class="f31-scrim"> <div class="f31-modal" role="dialog" aria-modal="true">
     <div class="f31-modal__head"><div><h2 class="f31-modal__title">Add receipt</h2>
       <p class="f31-modal__sub">Screwfix</p></div>
       <button class="f31-iconbtn f31-iconbtn--plain" aria-label="Close">…</button></div>
     … fields …
     <div class="f31-modal__actions"> buttons </div>
   </div> </div>
   A sheet rising from the bottom on a phone, a centred dialog from 680px.
   Solid, so the screen behind does not show through. For a short menu use
   details.f31-sheet instead. */
.f31-scrim { position: fixed; inset: 0; z-index: 400; display: flex; align-items: flex-end; justify-content: center; background: var(--f31-scrim); animation: f31-fade 0.22s both; }
/* The account sheet, opened from you at the foot (Hub, Freegent, ADIOS; owner 2026-11-08):
   .f31-scrim > .f31-modal.f31-modal--sheet > .f31-acct (avatar --lg, h3.f31-modal__title, p) + .f31-card--flush of .f31-row,
   each row a lead icon, a title and one line saying what it does. */
.f31-acct { text-align: center; margin: 6px 0 18px; } .f31-acct .f31-modal__title { margin: 12px 0 2px; } .f31-acct p + p { margin-top: 10px; }
.f31-modal { box-sizing: border-box; width: 100%; max-width: 720px; max-height: 90vh; overflow-y: auto; padding: 20px 22px calc(24px + var(--f31-safe-bottom)); border: 1px solid var(--f31-card-edge); border-bottom: 0; border-radius: var(--f31-r-sheet) var(--f31-r-sheet) 0 0; background: var(--f31-surface); color: var(--f31-ink); animation: f31-sheet-up 0.34s var(--f31-ease) backwards; }   /* backwards, never both: a held transform would block a swipe to close */
.f31-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.f31-modal__title { margin: 0; }
.f31-modal__sub { margin: 2px 0 0; font: 400 13px/18px var(--f31-sans); color: var(--f31-muted); }
.f31-modal__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.f31-modal__actions--row { flex-direction: row; }
.f31-modal__actions--row > * { flex: 1; }
@media (min-width: 680px) {
  .f31-scrim { align-items: center; }
  .f31-modal { max-width: 520px; padding-bottom: 24px; border-bottom: 1px solid var(--f31-card-edge); animation-name: f31-pop; animation-duration: 0.2s; }
}
@keyframes f31-pop { from { opacity: 0; transform: scale(0.97); } }
@media (prefers-reduced-motion: reduce) { .f31-scrim, .f31-modal { animation: none; } .f31-filter, .f31-iconbtn { transition: none; } }

/* ── Toast: a short word that something happened ─────────────────────────
   f31Toast('Saved', { tone: 'ok' })   (f31-toast.js builds this markup)
   <div class="f31-toasts"> <div class="f31-toast f31-toast--ok f31-toast--in" role="status">
     <span class="f31-toast__mark"><svg/></span> <span class="f31-toast__words">Saved</span>
     <button class="f31-toast__action">Undo</button> </div> </div>
   An ink pill at the bottom centre, above the tab bar on a phone. It arrives as
   a bead holding its mark, which draws itself; the bead opens sideways into the
   pill, the words drift in and one sheen crosses it. It leaves the way it came
   (the owner's pick of three mocks, after the sign-in button on f31.co.uk).
   Only transform, opacity, blur and a clip move, so the words never re-wrap.
   It takes a press only when it carries an action or is itself pressable. An
   app that pins something else at the bottom sets --f31-toast-bottom; one with a
   docked panel whose toasts belong to it sets --f31-toast-left / --f31-toast-right
   to centre them over that panel (RWU's Demo controls). */
.f31-toasts { position: fixed; z-index: 500; left: var(--f31-toast-left, 0); right: var(--f31-toast-right, 0); bottom: var(--f31-toast-bottom, 28px); display: flex; flex-direction: column-reverse; align-items: center; gap: 8px; padding: 0 16px; pointer-events: none; }
.f31-toast { --f31-toast-tone: var(--f31-toast-accent, var(--f31-hue-gold)); position: relative; display: inline-flex; align-items: center; gap: 9px; box-sizing: border-box; max-width: min(100%, 520px); min-height: var(--f31-control); padding: 10px 20px 10px 14px; border-radius: 22px; overflow: hidden; background: var(--f31-primary); color: var(--f31-on-primary); box-shadow: var(--f31-shadow-float); font: 600 14px/20px var(--f31-sans); letter-spacing: 0; text-align: left; opacity: 0; }
.f31-toast--ok { --f31-toast-tone: var(--f31-hue-green); }
.f31-toast--bad { --f31-toast-tone: #e0705f; }
.f31-toast__mark { flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; color: var(--f31-toast-tone); }
.f31-toast__mark svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.f31-toast__mark i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.f31-toast__words { min-width: 0; overflow-wrap: anywhere; }
.f31-toast__action { flex: none; margin: -6px -10px -6px 4px; padding: 6px 10px; border: 0; border-radius: var(--f31-r-full); background: none; color: var(--f31-toast-accent, var(--f31-hue-gold)); font: 700 14px/20px var(--f31-sans); cursor: pointer; }
.f31-toast__action:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.f31-toast--press, .f31-toast:has(.f31-toast__action) { pointer-events: auto; }
.f31-toast--press { cursor: pointer; }
.f31-toast::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, var(--f31-toast-sheen, rgba(255, 255, 255, 0.22)) 50%, transparent 65%); transform: translateX(-110%); pointer-events: none; }
.f31-toast--in { opacity: 1; animation: f31-toast-pop 0.45s var(--f31-ease) backwards, f31-toast-open 0.8s var(--f31-ease) 0.3s backwards; }
.f31-toast--in .f31-toast__mark { animation: f31-toast-piece 0.6s var(--f31-ease) 0.1s backwards; }
.f31-toast--in .f31-toast__mark--draw path { stroke-dasharray: 34; animation: f31-toast-draw 0.6s var(--f31-ease) 0.4s backwards; }   /* only the built-in tick and bang: an app's icon may be longer than the dash */
.f31-toast--in .f31-toast__words { animation: f31-toast-drift 0.7s var(--f31-ease) 0.55s backwards; }
.f31-toast--in .f31-toast__action { animation: f31-toast-drift 0.7s var(--f31-ease) 0.7s backwards; }
.f31-toast--in::after { animation: f31-toast-sheen 1.1s var(--f31-ease) 1s both; }
.f31-toast--out { opacity: 1; animation: f31-toast-close 0.55s var(--f31-ease) forwards, f31-toast-gone 0.35s ease 0.45s forwards; }
.f31-toast--out :is(.f31-toast__words, .f31-toast__action) { opacity: 0; transition: opacity 0.25s ease; }
@keyframes f31-toast-pop { from { opacity: 0; transform: translateY(10px) scale(0.6); } }
@keyframes f31-toast-open { from { clip-path: inset(0 calc(50% - 22px) round 22px); } to { clip-path: inset(0 0 round 22px); } }
@keyframes f31-toast-close { from { clip-path: inset(0 0 round 22px); } to { clip-path: inset(0 calc(50% - 22px) round 22px); } }
@keyframes f31-toast-gone { to { opacity: 0; transform: scale(0.6); } }
@keyframes f31-toast-piece { from { opacity: 0; transform: scale(0.2) rotate(-90deg); } }
@keyframes f31-toast-draw { from { stroke-dashoffset: 34; } to { stroke-dashoffset: 0; } }
@keyframes f31-toast-drift { from { transform: translateY(0.5em); opacity: 0; filter: blur(5px); } }
@keyframes f31-toast-sheen { to { transform: translateX(110%); } }
/* By night the pill is cream, so its gold goes deep and its sheen bright to stay visible. */
:root.dark .f31-toast, :root[data-theme="dark"] .f31-toast, :root[data-f31-theme="dark"] .f31-toast { --f31-toast-accent: #6f5417; --f31-toast-sheen: rgba(255, 255, 255, 0.7); }
:root.dark .f31-toast--ok, :root[data-theme="dark"] .f31-toast--ok, :root[data-f31-theme="dark"] .f31-toast--ok { --f31-toast-tone: #47611f; }
:root.dark .f31-toast--bad, :root[data-theme="dark"] .f31-toast--bad, :root[data-f31-theme="dark"] .f31-toast--bad { --f31-toast-tone: #b04434; }
@media (prefers-color-scheme: dark) {
  :root[data-f31-theme="auto"] .f31-toast { --f31-toast-accent: #6f5417; --f31-toast-sheen: rgba(255, 255, 255, 0.7); }
  :root[data-f31-theme="auto"] .f31-toast--ok { --f31-toast-tone: #47611f; }
  :root[data-f31-theme="auto"] .f31-toast--bad { --f31-toast-tone: #b04434; }
}
@media (max-width: 899px) { .f31-toasts { bottom: var(--f31-toast-bottom, calc(var(--f31-tabbar-clear) + 4px)); } }
@media (prefers-reduced-motion: reduce) {
  .f31-toast, .f31-toast *, .f31-toast::after { animation: none !important; }
  .f31-toast { transition: opacity 0.2s; } .f31-toast--out { opacity: 0; }
}

/* ── Avatar and app icon ──────────────────────────────────────────────────
   <span class="f31-avatar" style="--c: var(--f31-hue-blue)">YN</span>   or with a photo inside:
   <span class="f31-avatar"><img src="…" alt="" referrerpolicy="no-referrer"></span>
   <span class="f31-appicon" style="--c: var(--f31-hue-terracotta)">B</span>
   <span class="f31-appicon f31-appicon--mark" style="--c: #b88a5e; --c2: #7a5534"><svg viewBox="0 0 64 64">…</svg></span> */
.f31-avatar { --c: var(--f31-hue-gold); flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--c); color: var(--f31-on-hue); }
.f31-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }   /* a photo, when the person has one */
.f31-avatar--sm { width: 28px; height: 28px; font-size: 11px; }
.f31-avatar--lg { width: 64px; height: 64px; font-size: 20px; }
.f31-appicon { --c: var(--f31-hue-gold); flex: none; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--c); color: var(--f31-on-hue); font: 700 22px/1 var(--f31-display); }
.f31-appicon--sm { width: 36px; height: 36px; border-radius: 11px; font-size: 15px; }
/* An app's own mark (owner, 2026-11-10): .f31-appicon--mark holds the app's <svg> mark, large (84% of the icon).
   Light: "soft tint", a pale wash of --c with a fine edge, the mark in its own colours (a two-tone mark stays two-tone),
   its currentColor parts in ink. Dark: "dark jewel", a deep version of --c (towards --c2, the app's dark), the mark in
   its bright colour with a faint glow and a thin coloured ring. --c2 is optional. */
.f31-appicon--mark {
  color: color-mix(in srgb, var(--c) 55%, var(--c2, var(--f31-ink)));
  background: linear-gradient(170deg, color-mix(in srgb, var(--c) 14%, white), color-mix(in srgb, var(--c) 26%, white));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 34%, transparent), 0 6px 14px -10px color-mix(in srgb, var(--c) 60%, transparent);
}
.f31-appicon--mark > svg { width: 84%; height: 84%; overflow: visible; color: var(--f31-on-hue); }
.f31-appicon--mark { font-size: 34px; }
/* A letter mark (f31LetterMark, ui/f31-tiles.js) paints its two shades from these: light and dark of the app's colour. */
.f31-appicon--mark { --l: color-mix(in srgb, var(--c) 88%, white); --d: color-mix(in srgb, var(--c) 62%, var(--c2, var(--f31-ink))); }   /* an app without a mark shows its letter, as large as a mark */
.f31-appicon--mark > svg[stroke="currentColor"], .f31-appicon--mark > svg [stroke="currentColor"] { stroke: color-mix(in srgb, var(--c) 55%, var(--c2, var(--f31-ink))); }
:root.dark .f31-appicon--mark, :root[data-theme="dark"] .f31-appicon--mark, :root[data-f31-theme="dark"] .f31-appicon--mark {
  color: color-mix(in srgb, var(--c) 80%, white);
  background: radial-gradient(90% 90% at 30% 20%, color-mix(in srgb, var(--c2, var(--c)) 70%, var(--c)), color-mix(in srgb, var(--c2, var(--c)) 85%, black));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 45%, transparent), 0 8px 18px -10px color-mix(in srgb, black 50%, transparent);
}
:root.dark .f31-appicon--mark > svg, :root[data-theme="dark"] .f31-appicon--mark > svg, :root[data-f31-theme="dark"] .f31-appicon--mark > svg { color: color-mix(in srgb, var(--c) 70%, white); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 55%, transparent)); }
:root.dark .f31-appicon--mark > svg :is([stroke="currentColor"]), :root.dark .f31-appicon--mark > svg[stroke="currentColor"], :root[data-theme="dark"] .f31-appicon--mark > svg[stroke="currentColor"], :root[data-theme="dark"] .f31-appicon--mark > svg [stroke="currentColor"], :root[data-f31-theme="dark"] .f31-appicon--mark > svg[stroke="currentColor"], :root[data-f31-theme="dark"] .f31-appicon--mark > svg [stroke="currentColor"] { stroke: currentColor; }
@media (prefers-color-scheme: dark) {
  :root[data-f31-theme="auto"] .f31-appicon--mark {
    color: color-mix(in srgb, var(--c) 80%, white);
    background: radial-gradient(90% 90% at 30% 20%, color-mix(in srgb, var(--c2, var(--c)) 70%, var(--c)), color-mix(in srgb, var(--c2, var(--c)) 85%, black));
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 45%, transparent), 0 8px 18px -10px color-mix(in srgb, black 50%, transparent);
  }
  :root[data-f31-theme="auto"] .f31-appicon--mark > svg { color: color-mix(in srgb, var(--c) 70%, white); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 55%, transparent)); }
  :root[data-f31-theme="auto"] .f31-appicon--mark > svg[stroke="currentColor"], :root[data-f31-theme="auto"] .f31-appicon--mark > svg [stroke="currentColor"] { stroke: currentColor; }
}
@media (max-width: 899px) { .f31-avatar--lg { width: 48px; height: 48px; font-size: 16px; } }

/* ── Status line: something true that cannot be pressed ───────────────────
   <p class="f31-status f31-status--ok"><svg/> Nothing to do until Sunday</p>
   Never dress a status as a button. */
.f31-status { display: flex; align-items: center; gap: 8px; min-height: 24px; margin: 0; color: var(--f31-muted); font: 500 13px/18px var(--f31-sans); }
.f31-status svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.f31-status--ok { color: var(--f31-green); }
.f31-status--warn { color: var(--f31-amber); }
.f31-status--bad { color: var(--f31-red); }

/* ═══════════════════════════════════════════════════════════════════════
   Content patterns (2026-10-09). These came out of Bermondse, where each was
   an app-only component: a dated entry in a list, a month calendar with bars,
   a journey in steps, a conversation in topics, and a code read digit by
   digit. Any app that shows the same kind of thing uses these.
   ═══════════════════════════════════════════════════════════════════════ */
/* ── Steps: a journey in stages ───────────────────────────────────────────
   <section class="f31-step done|now|upcoming [collapsed]">
     <div class="f31-step__head"><span class="f31-step__title">Pre-arrival</span>
       <span class="f31-step__summary">Code sent</span><span class="f31-step__when">From Mon 5 Oct</span>
       <span class="f31-step__chev"></span></div>
     <div class="f31-step__body"> <div class="f31-step__item done|active|pending">
       <div class="f31-step__item-head"><div class="f31-step__item-title">Door code assigned</div>
         <span class="f31-step__item-when">3pm</span></div>
       <div class="f31-step__item-detail">Not sent yet</div> </div> … </div> </section>
   One line down the left with a dot per stage: green passed, gold current,
   hollow still to come. Only the current stage and the thing to do in it take
   the gold. A passed stage folds to its one-line summary. */
.f31-step { position: relative; margin: 0; padding: 4px 0 14px 26px; }
.f31-step::before { content: ""; position: absolute; left: 1px; top: 15px; z-index: 1; box-sizing: border-box; width: 8px; height: 8px; border-radius: 50%; background: var(--f31-line-strong); }
.f31-step::after { content: ""; position: absolute; left: 4.5px; top: 27px; bottom: -4px; width: 1px; background: var(--f31-line-strong); opacity: 0.7; }
.f31-step:last-child::after { display: none; }
.f31-step.done::before, .f31-step.done::after { background: var(--f31-green); }
.f31-step.now::before, .f31-step.now::after { background: var(--f31-accent); }
.f31-step.upcoming::before { border: 1.5px solid var(--f31-line-strong); background: transparent; }
.f31-step__head { display: flex; align-items: baseline; gap: 10px; padding: 8px 0 4px; cursor: pointer; }
.f31-step__title { font: 700 11px/16px var(--f31-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--f31-muted); transition: color 0.3s var(--f31-ease); }
.f31-step__head:hover .f31-step__title { color: var(--f31-ink); }
.f31-step.now .f31-step__title { color: var(--f31-accent-text); }
.f31-step__summary { display: none; flex: 1; min-width: 0; font: 400 12px/16px var(--f31-sans); color: var(--f31-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f31-step__when { flex: none; margin-left: auto; font: 400 12px/16px var(--f31-sans); font-variant-numeric: tabular-nums; color: var(--f31-muted); }
.f31-step__chev { flex: none; align-self: center; width: 6px; height: 6px; margin: 0 3px; border-top: 1.5px solid var(--f31-faint); border-right: 1.5px solid var(--f31-faint); font-size: 0; transform: rotate(135deg); transition: transform 0.3s var(--f31-ease); }
.f31-step__dot { display: none; }
.f31-step.collapsed { padding-bottom: 8px; }
.f31-step.collapsed .f31-step__summary { display: block; }
.f31-step.collapsed .f31-step__body { display: none; }
.f31-step.collapsed .f31-step__when { margin-left: 0; }
.f31-step.collapsed .f31-step__chev { transform: rotate(45deg); }
.f31-step__item { position: relative; min-width: 0; padding: 4px 0; }
.f31-step__item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.f31-step__item-title { font: 500 13px/18px var(--f31-sans); color: var(--f31-muted); }
.f31-step__item-title b { color: var(--f31-ink); font-weight: 600; }
.f31-step__item-when { flex: none; font: 400 12px/16px var(--f31-sans); font-variant-numeric: tabular-nums; color: var(--f31-muted); }
.f31-step__item-detail { margin-top: 2px; font: 400 12px/16px var(--f31-sans); color: var(--f31-muted); }
.f31-step__item.pending .f31-step__item-title { color: var(--f31-faint); }
.f31-step__item.active { padding: 6px 0; }
.f31-step__item.active .f31-step__item-title { font-size: 14px; font-weight: 600; color: var(--f31-accent-text); }
/* A step already sits in a card, so what it holds is set off by lines, never by a second box. */
.f31-step__embed { margin: 4px 0 6px; max-width: 420px; padding: 10px 0; border-top: 1px solid var(--f31-line); border-bottom: 1px solid var(--f31-line); }
.f31-step .f31-topic.is-compact .f31-topic__head { padding-left: 0; }
.f31-step .f31-topic.is-compact .f31-topic__head::before { display: none; }
.f31-step .f31-topic.is-compact.is-open { margin: 6px 0; border: 0; border-top: 1px solid var(--f31-line); border-bottom: 1px solid var(--f31-line); border-radius: 0; background: none; }
.f31-step .f31-topic.is-compact.is-open .f31-topic__head { padding-left: 0; padding-right: 0; }
/* .f31-step__item--badge (2026-11-10, from Bermondse's booking page): the item carries a small badge at its top
   right (Bermondse: the WhatsApp channel state), so a topic's time and chevron stop 34px short of it. */
.f31-step .f31-step__item--badge .f31-topic.is-compact .f31-topic__head, .f31-step .f31-step__item--badge .f31-topic.is-compact.is-open .f31-topic__head { padding-right: 34px; }
.f31-step .f31-topic.is-compact.is-open .f31-topic__body { padding-left: 0; padding-right: 0; }
.f31-step .f31-topic.is-compact .f31-topic__title { color: var(--f31-ink); }
@media (max-width: 700px) { .f31-step { padding-left: 20px; } }
@media (pointer: coarse) { .f31-step__head { min-height: 44px; align-items: center; padding-block: 0; } }
@media (prefers-reduced-motion: reduce) { .f31-step__chev, .f31-topic__chev, .f31-step__title { transition: none; } }

/* ── Facts: a label and its value, one per line ───────────────────────────
   <div class="f31-facts"> <div class="f31-fact"><span class="f31-fact__label">Check-in</span>
     <span class="f31-fact__value">Mon 12 Oct 3pm</span></div> … </div>
   Inside a card. The value sits right; add f31-mono for a code or an amount,
   and --ok, --warn or --bad when the value itself is a state. */
.f31-fact { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 8px 0; border-top: 1px solid var(--f31-line); }
.f31-fact:first-child { border-top: 0; }
/* Accordion (2026-11-10, the Bermondse cleaner page): a <details> that opens and closes with no script.
   <details class="f31-acc" open><summary>Title <span class="f31-chip ...">badge</span></summary><div class="f31-acc__body">...</div></details>
   Stack them in one card; each after the first gets a hairline. The chevron turns when open. */
details.f31-acc > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font: 600 15px/20px var(--f31-sans); color: var(--f31-ink); -webkit-tap-highlight-color: transparent; }
details.f31-acc > summary::-webkit-details-marker { display: none; }
details.f31-acc > summary::after { content: ""; flex: none; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.25s var(--f31-ease); opacity: 0.7; }
details.f31-acc[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
details.f31-acc > summary:focus-visible { outline: 2px solid var(--f31-accent); outline-offset: 2px; border-radius: 8px; }
details.f31-acc + details.f31-acc { border-top: 1px solid var(--f31-line); }
.f31-acc__body { padding: 0 0 8px; }
@media (prefers-reduced-motion: reduce) { details.f31-acc > summary::after { transition: none; } }
.f31-fact__label { font: 500 13px/18px var(--f31-sans); color: var(--f31-muted); }
.f31-fact__value { min-width: 0; font: 600 14px/20px var(--f31-sans); color: var(--f31-ink); text-align: right; overflow-wrap: anywhere; }
.f31-fact__value--ok { color: var(--f31-green); }
.f31-fact__value--warn { color: var(--f31-amber); }
.f31-fact__value--bad { color: var(--f31-red); }
.f31-fact__value--muted { color: var(--f31-muted); font-weight: 500; }

.f31-facts--plain .f31-fact { align-items: baseline; min-height: 0; padding: 4px 0; border-top: 0; }

/* ── Entry, date, calendar, topics and code ───────────────────────────────
   Entry    <div class="f31-entries"> <div class="f31-entries__head">In-house</div>
              <div class="f31-entry"> <div class="f31-date"><span class="dow">Thu</span><span class="d">8</span><span class="m">Oct</span></div>
                <div class="f31-entry__main"><div class="f31-entry__title">…</div><div class="f31-entry__detail">…</div></div>
                <div class="f31-entry__side"> chip, action </div> <span class="f31-entry__chev"></span> </div> </div>
            A dated thing in a list: a stay, a clean, a receipt. Its state is a chip, never a coloured edge.
   Calendar <div class="f31-cal"> <div class="f31-cal__dows"><div class="f31-cal__dow">Mon</div>…</div>
              <div class="f31-cal__week"> <div class="f31-cal__days"><div class="f31-cal__day [--today|--out|--weekend]">
                <span class="f31-cal__num">9</span></div>…</div>
                <div class="f31-cal__bars"> <div class="f31-cal__bar" style="--bar: <colour>; left; width">…</div>
                  <div class="f31-cal__task booked|need">…</div> </div> </div> </div>
            It is its own surface: never put it inside a card (use f31-cal--plain when it must sit in one).
   Topics   <div class="f31-topics"> <div class="f31-topic [is-open] [is-auto] [is-queued] [is-compact]">
              <div class="f31-topic__head">…title, when, chevron…</div> <div class="f31-topic__body"> messages </div> </div> </div>
            A conversation as a list of subjects, each folding open to its messages.
   Code     <span class="f31-code">••••</span>   a code a person reads digit by digit, masked until held. */
/* The date badge: weekday over day over month, one width everywhere so rows in different lists line up. */
.f31-date { flex: none; display: flex; flex-direction: column; align-items: center; width: 42px; text-align: center; }
.f31-date .dow, .f31-date .m { font: 500 11px/14px var(--f31-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--f31-muted); }
.f31-date .d { font: 500 17px/20px var(--f31-mono); font-variant-numeric: tabular-nums; color: var(--f31-ink); }
.f31-entry { display: flex; align-items: center; gap: 13px; min-height: 64px; box-sizing: border-box; padding: 10px 16px; border-bottom: 1px solid var(--f31-line); cursor: pointer; transition: background 140ms; }
.f31-entry:last-child { border-bottom: none; }
a.f31-entry { color: inherit; text-decoration: none; }   /* a row that is a link reads as a row, not underlined text */
.f31-entry:hover { background: var(--f31-hover); }
.f31-entry__main { flex: 1; min-width: 0; }
.f31-entry__title { font-size: 14px; font-weight: 600; color: var(--f31-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f31-entry__detail { font-size: 12px; color: var(--f31-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f31-entry__side { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.f31-entry__chev { color: var(--f31-faint); flex-shrink: 0; display: inline-flex; }
.f31-entry__chev svg { width: 15px; height: 15px; }
.f31-entry__side .f31-entry__slot { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.f31-entries__head { padding: 14px 16px 8px; border-bottom: 1px solid var(--f31-line); font: 700 11px/14px var(--f31-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--f31-muted); }
.f31-code { position: relative; display: inline-flex; align-items: center; justify-content: center; font-family: var(--f31-mono); font-size: 14px; font-weight: 500; letter-spacing: 0.18em; color: var(--f31-muted); cursor: pointer; background: var(--f31-tint); padding: 4px 12px; border-radius: var(--f31-r-full); min-width: 56px; text-align: center; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.f31-code b { color: var(--f31-accent-text); -webkit-text-fill-color: var(--f31-accent); font-weight: 700; }
.f31-cal__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.f31-cal__nav { display: flex; align-items: center; gap: 8px; }
.f31-cal__title { font-family: var(--f31-title); font-size: 18px; font-weight: 600; color: var(--f31-ink); letter-spacing: -0.02em; min-width: 132px; text-align: center; }
.f31-cal { border: 1px solid var(--f31-card-edge); border-radius: var(--f31-r-card); background: var(--f31-surface); box-shadow: var(--f31-shadow-card); overflow: hidden; }
.f31-cal--plain { border-radius: 16px; background: none; box-shadow: none; }
.f31-cal__dows { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.f31-cal__dow { padding: 10px 0; border-left: 1px solid var(--f31-line); text-align: center; font: 700 11px/14px var(--f31-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--f31-muted); }
.f31-cal__dow--weekend { background: var(--f31-weekend); color: var(--f31-accent-text); }
.f31-cal__dow:first-child { border-left: none; }
.f31-cal__week { position: relative; }
.f31-cal__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.f31-cal__day { position: relative; min-height: 96px; padding: 8px 10px; border-top: 1px solid var(--f31-line); border-left: 1px solid var(--f31-line); }
.f31-cal__day:nth-child(7n+1) { border-left: none; }
.f31-cal__task { position: absolute; box-sizing: border-box; height: 20px; display: flex; align-items: center; justify-content: center; gap: 4px; margin: 0 3px; padding: 0 8px; border-radius: var(--f31-r-full); font: 600 11px/1 var(--f31-sans); white-space: nowrap; overflow: hidden; cursor: pointer; pointer-events: auto; transition: filter 0.3s var(--f31-ease); }
.f31-cal__task:hover { filter: brightness(1.05); }
.f31-cal__task.booked { background: var(--f31-green-tint); color: var(--f31-green); }
.f31-cal__task.need { border: 1px dashed var(--f31-amber); color: var(--f31-amber); }
.f31-cal__bar-label { overflow: hidden; text-overflow: ellipsis; }
/* A bar with a button keeps its words clear of it. */
.f31-cal__bar.has-act { padding-right: 26px; }
.f31-cal__bar-act { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; border: none; padding: 0; background: var(--f31-ink); color: var(--f31-surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; pointer-events: auto; transition: opacity 140ms, transform 140ms; }
.f31-cal__bar-act svg { width: 11px; height: 11px; }
.f31-cal__bar-act:hover { opacity: 0.85; transform: translateY(-50%) scale(1.12); }
.f31-cal__day.f31-cal__day--weekend { background: var(--f31-weekend); }
.f31-cal__day--out:not(.f31-cal__day--weekend) { background: var(--f31-tint); }
.f31-cal__day--out .f31-cal__num { color: var(--f31-faint); }
.f31-cal__num { display: inline-grid; place-items: center; min-width: 26px; height: 26px; font: 500 15px/1 var(--f31-mono); font-variant-numeric: tabular-nums; color: var(--f31-ink); }
.f31-cal__day--today .f31-cal__num { padding: 0 6px; border-radius: var(--f31-r-full); background: var(--f31-primary); color: var(--f31-on-primary); }
.f31-cal__bars { position: absolute; left: 0; right: 0; top: 42px; bottom: 5px; pointer-events: none; }
.f31-cal__bar { position: absolute; box-sizing: border-box; top: 0; height: 26px; display: flex; align-items: center; margin: 0 2px; padding: 0 10px; border-radius: 8px; background: color-mix(in srgb, var(--bar, var(--f31-hue-gold)) 34%, var(--f31-surface)); color: var(--f31-ink); font: 600 12px/1 var(--f31-sans); white-space: nowrap; overflow: hidden; cursor: pointer; pointer-events: auto; transition: transform 0.3s var(--f31-ease), filter 0.3s var(--f31-ease); }
.f31-cal__bar:hover { transform: translateY(-1px); filter: brightness(1.06); }
.f31-cal__bar.is-past { background: var(--f31-tint); color: var(--f31-muted); font-weight: 500; }
.f31-cal__bar.is-past:hover { filter: none; }
@media (max-width: 768px) {
  .f31-cal__day { min-height: 76px; padding: 5px 4px; }
  .f31-cal__num { min-width: 22px; height: 22px; font-size: 13px; }
  .f31-cal__dow { padding: 8px 0; letter-spacing: 0.08em; }
  .f31-cal__bars { top: 32px; }
  .f31-cal__bar { height: 20px; margin: 0 1px; padding: 0 5px; border-radius: 6px; font-size: 11px; }
  .f31-cal__task { height: 17px; margin: 0 2px; padding: 0 4px; }
  .f31-cal__bar-act { width: 15px; height: 15px; }
  .f31-cal__bar.has-act { padding-right: 21px; }
  .f31-cal__bar-act svg { width: 9px; height: 9px; }
}
.f31-topic { margin-bottom: 8px; border: 1px solid var(--f31-card-edge); border-radius: 16px; background: var(--f31-surface); overflow: hidden; }
.f31-topic__head {
  display: block; padding: 11px 14px; cursor: pointer; transition: background .12s;
}
.f31-topic__head:hover { background: color-mix(in srgb, var(--f31-tint) 45%, transparent); }
.f31-topic__chev { flex: none; align-self: center; width: 7px; height: 7px; margin: 0 4px 0 2px; border-top: 2px solid var(--f31-faint); border-right: 2px solid var(--f31-faint); font-size: 0; transform: rotate(45deg); transition: transform 0.3s var(--f31-ease); }
.f31-topic.is-open .f31-topic__chev { transform: rotate(135deg); }
.f31-topic__line {
  display: flex; align-items: baseline; gap: 8px;
}
.f31-topic__title {
  font-size: 13px; font-weight: 600; color: var(--f31-ink); letter-spacing: -0.01em;
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.f31-topic__kind {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--f31-accent-text); flex-shrink: 0;
}
.f31-topic__when {
  font-size: 12px; color: var(--f31-faint); font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.f31-topic__text {
  margin-top: 3px; font-size: 12px; color: var(--f31-faint); line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.f31-topic__body { display: none; padding: 2px 14px 10px; border-top: 1px solid color-mix(in srgb, var(--f31-line) 55%, transparent); }
.f31-topic.is-open .f31-topic__body { display: flex; flex-direction: column; }
.f31-topic__msg { display: flex; gap: 9px; padding: 8px 0; align-items: flex-start; }
.f31-topic__msg + .f31-topic__msg { border-top: 1px solid color-mix(in srgb, var(--f31-line) 45%, transparent); }
.f31-topic__avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; font: 700 11px/1 var(--f31-sans); color: var(--f31-surface); }
.f31-topic__avatar.out { background: var(--f31-accent); }
.f31-topic__avatar.in { background: var(--f31-faint); }
.f31-topic__msg-body {
  flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.5; color: var(--f31-ink);
}
.f31-topic__msg-head {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 1px;
}
.f31-topic__msg-who { font-size: 12px; font-weight: 700; color: var(--f31-ink); }
.f31-topic__msg-when {
  font-size: 12px; color: var(--f31-faint); font-variant-numeric: tabular-nums;
  margin-left: auto; white-space: nowrap;
}
.f31-topic__msg-text { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.f31-topic__note { display: flex; align-items: baseline; gap: 8px; padding: 5px 14px 5px 14px; }
.f31-topic__note-text { flex: 1; font-size: 12px; color: var(--f31-muted); font-style: italic; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
.f31-topic__note .f31-topic__msg-when { flex-shrink: 0; }
.f31-topic__msg-tpl {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--f31-accent-text);
}
.f31-topic__msg-fail {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--f31-red);
}
.f31-topic__summary {
  margin-top: 3px; font-size: 12.5px; color: var(--f31-muted); line-height: 1.4;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.f31-topic.is-compact { border: 0; background: transparent; margin: 0; border-radius: 0; overflow: visible; }
.f31-topic.is-compact .f31-topic__head { padding: 6px 0 6px 16px; position: relative; }
.f31-topic.is-compact .f31-topic__head::before {
  content: ''; position: absolute; left: 2px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--f31-line-strong);
}
.f31-topic.is-compact.is-auto .f31-topic__head::before { background: var(--f31-accent); }
.f31-topic.is-compact .f31-topic__title { font-weight: 500; }
.f31-topic.is-compact .f31-topic__kind { display: none; }
.f31-topic.is-compact .f31-topic__summary { margin-top: 1px; font-size: 12px; -webkit-line-clamp: 1; }
.f31-topic.is-compact .f31-topic__text { display: none; }
.f31-topic.is-compact.is-open { background: var(--f31-surface); border: 1px solid var(--f31-line); margin: 4px 0; border-radius: 16px; overflow: hidden; background: var(--f31-glass); }
.f31-topic.is-compact.is-open .f31-topic__head { padding: 10px 14px 10px 24px; }
.f31-topic.is-compact.is-open .f31-topic__head::before { left: 10px; top: 17px; }
.f31-topic.is-compact.is-open .f31-topic__text { display: block; }
.f31-topic.is-compact.is-queued .f31-topic__head::before { background: transparent; border: 1.5px solid var(--f31-accent); box-sizing: border-box; }
.f31-topic.is-compact.is-queued .f31-topic__title { color: var(--f31-muted); }
.f31-topic__extra { padding-top: 10px; margin-top: 4px; border-top: 1px solid color-mix(in srgb, var(--f31-line) 60%, transparent); }
.f31-topic.is-queued { border-style: dashed; background: transparent; }
.f31-topic.is-queued .f31-topic__title { color: var(--f31-muted); }
.f31-topic.is-queued .f31-topic__body { padding: 10px 14px 12px; }
.f31-topic__queued-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.5; color: var(--f31-ink); }
.f31-topic__queued-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.f31-topic__queued-note { font-size: 12px; color: var(--f31-faint); }
@media (max-width: 700px) {
  .f31-entry.f31-entry--task { flex-wrap: wrap; row-gap: 8px; }
  .f31-entry.f31-entry--task .f31-entry__main { flex: 1 1 calc(100% - 70px); min-width: 0; }
  .f31-entry.f31-entry--task .f31-entry__side { flex: 1 1 100%; justify-content: flex-start; padding-left: 58px; flex-wrap: wrap; }
}

/* One focus ring for every control. */
:is(.f31-btn, .f31-input, .f31-select, .f31-seg button, a.f31-row, button.f31-row, .f31-filter, .f31-iconbtn, a.f31-card, button.f31-card):focus-visible { outline: 2px solid var(--f31-accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .f31-btn, .f31-input, .f31-select, .f31-seg button, .f31-row, .f31-table tbody tr { transition: none; } }

/* ── Day and night switch (2026-10-09, owner's request) ───────────────────
   One round button in every app: a sun by day, a moon by night. Pressing it
   swaps the theme with a transition (f31-daynight.js): the whole sky, glow and
   page drift slowly from dark to light or back, like dawn or dusk, while the
   sun's rays fold away as a crescent bites into it (or the other way).

   <button type="button" class="f31-daynight" aria-label="Switch between day and night"
           onclick="f31DayNight(this, applyYourTheme)">
     <svg viewBox="0 0 24 24" aria-hidden="true">
       <mask id="f31-dn-mask"><rect width="24" height="24" fill="#fff"/><circle class="f31-dn-bite" cx="17" cy="7" r="7.5" fill="#000"/></mask>
       <circle class="f31-dn-body" cx="12" cy="12" r="9" fill="currentColor" mask="url(#f31-dn-mask)"/>
       <g class="f31-dn-rays" stroke="currentColor" stroke-width="2" stroke-linecap="round">
         <path d="M12 1.5v2.2M12 20.3v2.2M1.5 12h2.2M20.3 12h2.2M4.6 4.6l1.5 1.5M17.9 17.9l1.5 1.5M4.6 19.4l1.5-1.5M17.9 6.1l1.5-1.5"/>
       </g>
     </svg>
   </button>

   The drawing follows the theme flag on <html> (the contract at the top), so
   it is right on first paint and in every app. */
/* Drawn exactly like .f31-iconbtn, so the two sit side by side as one set. */
.f31-daynight {
  display: inline-grid; place-items: center; flex: none; box-sizing: border-box;
  width: 40px; height: 40px; margin: 0; padding: 0; border-radius: 50%;
  border: 1px solid var(--f31-line-strong); background: var(--f31-glass); color: var(--f31-ink);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color 0.3s var(--f31-ease, ease), transform 0.3s var(--f31-ease, ease);
}
.f31-daynight:hover { border-color: var(--f31-gold, #c9a86a); }
.f31-daynight:active { transform: scale(0.92); }
.f31-daynight:focus-visible { outline: 2px solid var(--f31-gold, #c9a86a); outline-offset: 2px; }
.f31-daynight svg { width: 22px; height: 22px; overflow: visible; }
.f31-dn-body, .f31-dn-bite, .f31-dn-rays { transform-box: fill-box; transform-origin: center; }
.f31-dn-body { transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.f31-dn-bite { transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.f31-dn-rays { transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease; }
/* Day: a small sun with its rays out; the bite waits off to the side. */
.f31-dn-body { transform: scale(0.52); }
.f31-dn-bite { transform: translate(9px, -9px); }
.f31-dn-rays { transform: rotate(0deg) scale(1); opacity: 1; }
/* Night: a full disc with the bite in it, a crescent; the rays fold away. */
:root.dark .f31-dn-body, :root[data-theme="dark"] .f31-dn-body, :root[data-f31-theme="dark"] .f31-dn-body { transform: scale(1); }
:root.dark .f31-dn-bite, :root[data-theme="dark"] .f31-dn-bite, :root[data-f31-theme="dark"] .f31-dn-bite { transform: none; }
:root.dark .f31-dn-rays, :root[data-theme="dark"] .f31-dn-rays, :root[data-f31-theme="dark"] .f31-dn-rays { transform: rotate(-90deg) scale(0.4); opacity: 0; }
@media (prefers-color-scheme: dark) {
  :root[data-f31-theme="auto"] .f31-dn-body { transform: scale(1); }
  :root[data-f31-theme="auto"] .f31-dn-bite { transform: none; }
  :root[data-f31-theme="auto"] .f31-dn-rays { transform: rotate(-90deg) scale(0.4); opacity: 0; }
}
/* The transition itself: the browser's quick cross-fade is replaced by the slow one in f31-daynight.js. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
/* The sun and moon turn over as slowly as the sky changes. */
.f31-dn-body, .f31-dn-bite { transition-duration: 1.6s; }
.f31-dn-rays { transition-duration: 1.6s, 0.9s; }
/* Stars that come out for a moment when night falls (f31-daynight.js). */
.f31-sky { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; overflow: hidden; }
.f31-sky i { position: absolute; border-radius: 50%; background: #fff8e6; box-shadow: 0 0 6px 1px rgba(255, 244, 214, 0.8); opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .f31-dn-body, .f31-dn-bite, .f31-dn-rays { transition: none; }
}

/* ── Conversation: a list of people, what was said, a place to answer (2026-10-09) ──
   List    <div class="f31-convos"> <div class="f31-convos__head">Needs a reply <span>2</span></div>
             <div class="f31-convo is-unread"> <span class="f31-avatar f31-avatar--sm">RF</span>
               <div class="f31-convo__main"> <div class="f31-convo__top"> <span class="f31-convo__who">Rosalind Franklin</span> <span class="f31-convo__when">2m</span> </div>
                 <div class="f31-convo__preview">Is early check-in possible?</div>
                 <div class="f31-convo__meta"> a chip <span class="f31-convo__badges"><span class="f31-convo__count">3</span></span> </div> </div> </div> </div>
           is-on is the open one, is-unread has something new; __dot marks one new message, __count several.
   Bubble  <div class="f31-bubbles"> <div class="f31-bubble f31-bubble--in"> <div class="f31-bubble__text">…</div> <span class="f31-bubble__meta">9:14am</span> </div> </div>
           --in is theirs, --out is ours, --planned has not been sent yet (dashed, so it never reads as said).
   Reply   <div class="f31-compose"> <textarea class="f31-input" rows="2"></textarea> <button class="f31-btn f31-btn--primary">Send</button> </div>
           <div class="f31-compose__note">The rule about when a reply can go.</div>   add --tail when it closes a thread. */
.f31-convos__head { display: flex; align-items: baseline; gap: 8px; padding: 14px 20px 6px; font: 700 11px/14px var(--f31-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--f31-muted); }
.f31-convos__head span { font-weight: 600; letter-spacing: 0; color: var(--f31-faint); }
.f31-convos__empty { padding: 40px 20px; text-align: center; font: 500 13px/20px var(--f31-sans); color: var(--f31-muted); }
.f31-convo { display: flex; align-items: flex-start; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--f31-line); cursor: pointer; transition: background 0.2s var(--f31-ease, ease); }
.f31-convo:first-child, .f31-convos__head + .f31-convo { border-top: 0; }
.f31-convo:hover { background: var(--f31-hover); }
.f31-convo.is-on, .f31-convo.is-on:hover { background: var(--f31-accent-tint); }
.f31-convo__main { flex: 1; min-width: 0; }
.f31-convo__top { display: flex; align-items: baseline; gap: 8px; }
.f31-convo__who { min-width: 0; overflow: hidden; font: 700 14px/20px var(--f31-sans); color: var(--f31-ink); text-overflow: ellipsis; white-space: nowrap; }
.f31-convo__when { flex: none; margin-left: auto; font: 500 12px/16px var(--f31-mono); color: var(--f31-faint); }
.f31-convo__preview { margin-top: 2px; overflow: hidden; font: 500 13px/18px var(--f31-sans); color: var(--f31-muted); text-overflow: ellipsis; white-space: nowrap; }
.f31-convo.is-unread .f31-convo__when { color: var(--f31-accent-text); }
.f31-convo.is-unread .f31-convo__preview { color: var(--f31-ink); }
.f31-convo__meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; font: 500 12px/16px var(--f31-sans); color: var(--f31-muted); }
.f31-convo__badges { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.f31-convo__count { display: inline-grid; place-items: center; box-sizing: border-box; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--f31-r-full); background: var(--f31-accent); color: var(--f31-bg); font: 700 11px/1 var(--f31-sans); font-variant-numeric: tabular-nums; }
.f31-convo__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--f31-accent); }

.f31-bubbles { display: flex; flex-direction: column; gap: 8px; }
.f31-bubble { box-sizing: border-box; max-width: min(82%, 560px); padding: 9px 14px; border: 1px solid var(--f31-line); border-radius: 18px; font: 500 14px/20px var(--f31-sans); color: var(--f31-ink); }
.f31-bubble--in { align-self: flex-start; border-bottom-left-radius: 6px; background: var(--f31-glass-2); }
.f31-bubble--out { align-self: flex-end; border-color: transparent; border-bottom-right-radius: 6px; background: var(--f31-accent-tint); }
.f31-bubble--planned { border: 1px dashed var(--f31-accent-edge); background: none; }
.f31-bubble__text { overflow-wrap: anywhere; white-space: pre-wrap; }
.f31-bubble__label { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; font: 700 11px/14px var(--f31-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--f31-accent-text); }
.f31-bubble__label svg { width: 12px; height: 12px; }
.f31-bubble__meta { display: block; margin-top: 3px; font: 500 12px/16px var(--f31-mono); color: var(--f31-faint); }

.f31-compose { display: flex; align-items: flex-end; gap: 8px; }
.f31-compose textarea.f31-input { flex: 1; min-width: 0; min-height: var(--f31-control); max-height: 40vh; padding: 11px 16px; border-radius: 22px; }
.f31-compose__note { margin-top: 8px; font: 500 12px/18px var(--f31-sans); color: var(--f31-muted); }
.f31-compose__note--tail { margin-top: 4px; padding: 12px 8px 2px; text-align: center; color: var(--f31-faint); }

/* ── Range: pick a point on a scale (2026-10-09) ─────────────────────────
   <input type="range" class="f31-range" style="--fill: 40%">   the page keeps --fill in step with the value
   <div class="f31-range__scale"><span>1pm</span><span>4pm</span>…</div>   optional marks under it */
input[type="range"].f31-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; margin: 0; padding: 0; border: 0; background: none; cursor: grab; }
input[type="range"].f31-range:active { cursor: grabbing; }
input[type="range"].f31-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--f31-accent) 0, var(--f31-accent) var(--fill, 0%), var(--f31-line-strong) var(--fill, 0%), var(--f31-line-strong) 100%); }
input[type="range"].f31-range::-moz-range-track { height: 4px; border: 0; border-radius: 2px; background: var(--f31-line-strong); }
input[type="range"].f31-range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--f31-accent); }
input[type="range"].f31-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -12px; border: 3px solid var(--f31-bg); border-radius: 50%; background: var(--f31-accent); box-shadow: 0 0 0 1px var(--f31-accent); }
input[type="range"].f31-range::-moz-range-thumb { box-sizing: border-box; width: 28px; height: 28px; border: 3px solid var(--f31-bg); border-radius: 50%; background: var(--f31-accent); box-shadow: 0 0 0 1px var(--f31-accent); }
input[type="range"].f31-range:focus-visible { outline: 2px solid var(--f31-accent); outline-offset: 6px; border-radius: var(--f31-r-full); }
@media (pointer: coarse) { input[type="range"].f31-range { height: var(--f31-control); } }
.f31-range__scale { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: 2px; font: 500 11px/14px var(--f31-mono); color: var(--f31-faint); }
.f31-range__scale span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.f31-range__scale span::before { content: ""; width: 1px; height: 6px; background: var(--f31-line-strong); }
.f31-range__scale span:first-child { align-items: flex-start; }
.f31-range__scale span:last-child { align-items: flex-end; }

/* ── Rating: one to five stars (2026-10-09) ──────────────────────────────
   <div class="f31-rating" role="radiogroup"> <button class="f31-rating__star is-on" role="radio"><svg…></button> … </div>
   <div class="f31-rating__hint">Tap a star</div> */
.f31-rating { display: flex; justify-content: center; gap: 2px; }
.f31-rating__star { display: inline-grid; place-items: center; width: 52px; height: 52px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--f31-line-strong); cursor: pointer; transition: color 0.25s var(--f31-ease, ease), transform 0.25s var(--f31-ease, ease); }
.f31-rating__star svg { width: 38px; height: 38px; }
.f31-rating__star:hover { transform: scale(1.08); }
.f31-rating__star.is-on { color: var(--f31-accent); }
.f31-rating__hint { min-height: 20px; margin-top: 8px; text-align: center; font: 500 13px/20px var(--f31-sans); color: var(--f31-muted); }
@media (max-width: 360px) { .f31-rating__star { width: 46px; height: 46px; } .f31-rating__star svg { width: 34px; height: 34px; } }

/* ── Photo: a picture that shows a step, with its words under it (2026-10-09) ──
   <div class="f31-photo"> <img class="f31-photo__img" src="…" alt=""> <div class="f31-photo__caption">The grey door on the left.</div> </div> */
.f31-photo { margin: 0 0 16px; }
.f31-photo__img { display: block; width: 100%; height: auto; border-radius: 16px; }
.f31-photo__caption { margin-top: 8px; font: 500 15px/22px var(--f31-sans); color: var(--f31-muted); }

/* ═══════════════════════════════════════════════════════════════════════
   App layer (2026-10-23): what makes an F31 screen feel like an app.
   Drawn from four references, each for what it does best (the rules and
   their sources are in docs/design-references.md):
     iOS HIG        44pt targets, grouped inset lists, sheets with a handle and
                    detents, large titles, spring-like easing
     Material 3     tonal surfaces instead of borders, state layers (8/10/12%),
                    the window classes (compact < 600, medium < 840, expanded),
                    tonal buttons, the navigation rail
     Revolut        the hero figure, quick-action circles, pill controls, a
                    quiet ground with one accent, 0.97 press scale
     Airbnb         image-led list rows, a sticky filter bar, one accent on a
                    neutral surface, 8pt spacing
   The colours (Aurora Glass) are unchanged. What changed is the surface: a
   card is an opaque surface with a soft shadow, the glow is quieter under it,
   borders carry depth only in dark mode, and every app has ONE accent.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Accent: one colour per app ───────────────────────────────────────────
   <html data-f31-app="adios"> picks the set. The accent is what "selected",
   "yours", "on" and "go" look like: the tab capsule's ink, the switch, the
   segmented control's active view, a filter that is on, a focused field, the
   tonal button, a link. The primary button stays ink, so the accent is a
   signal, never wallpaper. Gold stays the family's brand colour (the mark,
   Bermondse's accent, the Hub and f31.co.uk). Each set has the same six
   tokens in light and dark, plus its glow trio. */
:root {
  --f31-on-accent: #ffffff; --f31-accent-soft: rgba(172, 132, 46, 0.08);                     /* light: the shadow carries the card; dark: a hairline does (see below) */   /* a card under the pointer */
  --f31-shadow-sheet: 0 -8px 40px rgba(60, 40, 20, 0.16);                         /* a card on a phone (iOS 26 inset groups are 20 to 26) */                              /* a sheet's top corners and a dialog (Gemini 28) */
  --f31-r-row: 14px;                                /* a thumbnail or a leading tile in a row */                        /* the aurora's opacity: the ground is quiet so the surfaces read (Gemini's wash) */
  --f31-state-hover: 0.06; --f31-state-press: 0.12; /* Material's state layers: how much ink a hover or a press lays over a surface */
  /* Spacing: the 8pt grid with a half step. Use these, not ad hoc pixels. */
  --f31-s1: 4px; --f31-s2: 8px; --f31-s3: 12px; --f31-s4: 16px; --f31-s5: 20px; --f31-s6: 24px; --f31-s7: 32px; --f31-s8: 40px; --f31-s9: 56px;
  /* Glow sets for the apps that had none. */
  --f31-glow-adios-1: rgba(96, 184, 176, 0.56); --f31-glow-adios-2: rgba(222, 176, 84, 0.42); --f31-glow-adios-3: rgba(76, 160, 168, 0.50);       /* teal leads, gold is the accent */
  --f31-glow-yolo-1: rgba(160, 120, 210, 0.54); --f31-glow-yolo-2: rgba(222, 132, 112, 0.40); --f31-glow-yolo-3: rgba(130, 100, 190, 0.50);       /* plum leads, clay is the accent */
  --f31-glow-rwu-1: rgba(232, 140, 110, 0.56); --f31-glow-rwu-2: rgba(120, 166, 214, 0.40); --f31-glow-rwu-3: rgba(220, 120, 96, 0.50);           /* coral leads, blue is the accent */
}
:root.dark, :root[data-theme="dark"], :root[data-f31-theme="dark"] {
  --f31-on-accent: #14120f; --f31-accent-soft: rgba(201, 168, 106, 0.08); --f31-shadow-sheet: 0 -8px 40px rgba(0, 0, 0, 0.6);
  --f31-glow-adios-1: rgba(44, 130, 124, 0.46); --f31-glow-adios-2: rgba(196, 150, 60, 0.36); --f31-glow-adios-3: rgba(36, 110, 118, 0.44);
  --f31-glow-yolo-1: rgba(110, 70, 170, 0.48); --f31-glow-yolo-2: rgba(176, 78, 58, 0.36); --f31-glow-yolo-3: rgba(90, 60, 150, 0.44);
  --f31-glow-rwu-1: rgba(180, 80, 56, 0.48); --f31-glow-rwu-2: rgba(52, 104, 168, 0.36); --f31-glow-rwu-3: rgba(160, 70, 50, 0.44);
}
@media (prefers-color-scheme: dark) {
  :root[data-f31-theme="auto"] {
    --f31-on-accent: #14120f; --f31-accent-soft: rgba(201, 168, 106, 0.08); --f31-shadow-sheet: 0 -8px 40px rgba(0, 0, 0, 0.6);
    --f31-glow-adios-1: rgba(44, 130, 124, 0.46); --f31-glow-adios-2: rgba(196, 150, 60, 0.36); --f31-glow-adios-3: rgba(36, 110, 118, 0.44);
    --f31-glow-yolo-1: rgba(110, 70, 170, 0.48); --f31-glow-yolo-2: rgba(176, 78, 58, 0.36); --f31-glow-yolo-3: rgba(90, 60, 150, 0.44);
    --f31-glow-rwu-1: rgba(180, 80, 56, 0.48); --f31-glow-rwu-2: rgba(52, 104, 168, 0.36); --f31-glow-rwu-3: rgba(160, 70, 50, 0.44);
  }
}
/* The sets. Light values first; the dark ones are in the :is() block under
   them. Bermondse and the Hub keep gold, so they need no set. */
:root[data-f31-app="freegent"] { --f31-select-ink: var(--f31-accent-text); --f31-switch-on: var(--f31-accent); }
:root[data-f31-app="adios"] { --f31-select-ink: var(--f31-accent-text); --f31-switch-on: var(--f31-accent); }
:root[data-f31-app="yolo"] { --f31-select-ink: var(--f31-accent-text); --f31-switch-on: var(--f31-accent); }
:root[data-f31-app="rwu"] { --f31-accent: #b85a44; --f31-accent-text: #8a4030; --f31-accent-tint: rgba(184, 90, 68, 0.14); --f31-accent-edge: rgba(184, 90, 68, 0.50); --f31-accent-soft: rgba(184, 90, 68, 0.07); --f31-glow-1: var(--f31-glow-rwu-1); --f31-glow-2: var(--f31-glow-rwu-2); --f31-glow-3: var(--f31-glow-rwu-3); --f31-select-ink: var(--f31-accent-text); --f31-switch-on: var(--f31-accent); }
:is(:root.dark, :root[data-theme="dark"], :root[data-f31-theme="dark"])[data-f31-app="freegent"] { --f31-select-ink: var(--f31-accent-text); --f31-switch-on: var(--f31-accent); }
:is(:root.dark, :root[data-theme="dark"], :root[data-f31-theme="dark"])[data-f31-app="adios"] { --f31-select-ink: var(--f31-accent-text); --f31-switch-on: var(--f31-accent); }
:is(:root.dark, :root[data-theme="dark"], :root[data-f31-theme="dark"])[data-f31-app="yolo"] { --f31-select-ink: var(--f31-accent-text); --f31-switch-on: var(--f31-accent); }
:is(:root.dark, :root[data-theme="dark"], :root[data-f31-theme="dark"])[data-f31-app="rwu"] { --f31-accent: #e39a86; --f31-accent-text: #f4d2c8; --f31-accent-tint: rgba(227, 154, 134, 0.16); --f31-accent-edge: rgba(227, 154, 134, 0.45); --f31-accent-soft: rgba(227, 154, 134, 0.08); --f31-select-ink: var(--f31-accent-text); --f31-switch-on: var(--f31-accent); }
@media (prefers-color-scheme: dark) {
  :root[data-f31-theme="auto"][data-f31-app="freegent"] { --f31-select-ink: var(--f31-accent-text); --f31-switch-on: var(--f31-accent); }
  :root[data-f31-theme="auto"][data-f31-app="adios"] { --f31-select-ink: var(--f31-accent-text); --f31-switch-on: var(--f31-accent); }
  :root[data-f31-theme="auto"][data-f31-app="yolo"] { --f31-select-ink: var(--f31-accent-text); --f31-switch-on: var(--f31-accent); }
  :root[data-f31-theme="auto"][data-f31-app="rwu"] { --f31-accent: #e39a86; --f31-accent-text: #f4d2c8; --f31-accent-tint: rgba(227, 154, 134, 0.16); --f31-accent-edge: rgba(227, 154, 134, 0.45); --f31-accent-soft: rgba(227, 154, 134, 0.08); --f31-select-ink: var(--f31-accent-text); --f31-switch-on: var(--f31-accent); }
}
/* The ground is quieter than the surfaces on it. */
.f31-aurora { opacity: var(--f31-glow-strength); }

/* ── Type scale ───────────────────────────────────────────────────────────
   Nine roles, each a class, so a screen uses at most four and they are the
   same four in every app. Sizes follow iOS (17 body, 13 footnote) adjusted
   to Manrope, which runs large: body is 15. Titles are Manrope 600 set
   tight; data is DM Mono. A display line (an amount on a hero) is the mono
   figure, not a title. */      /* a large screen title ("Scheduled", "Next") */     /* a screen title inside a header bar */     /* a group or a sheet */      /* a card's title, a row's name made important */                                /* a chip's words, a button */       /* a row's second line, a helper */       /* a timestamp, a unit */
.f31-t-figure  { font: 500 40px/44px var(--f31-mono); font-variant-numeric: tabular-nums; }   /* the hero amount */
@media (max-width: 599px) { .f31-t-figure { font-size: 36px; line-height: 40px; } }

/* ── Press: every surface answers a finger (Revolut, iOS) ─────────────────
   Rows, cards, tiles and quick actions all press the same way: 0.97 and a
   touch dimmer, 80ms, and release on the ease. Buttons already do. Add
   .f31-press to anything else that is pressable. */
.f31-press, a.f31-row, button.f31-row, .f31-action, .f31-tile { transition: transform 0.3s var(--f31-ease), opacity 0.3s var(--f31-ease), background 0.3s var(--f31-ease); }
.f31-press:active, a.f31-row:active, button.f31-row:active, .f31-action:active, .f31-tile:active { transform: scale(0.97); opacity: 0.86; transition-duration: 0.08s; }
@media (prefers-reduced-motion: reduce) { .f31-press:active, a.f31-row:active, button.f31-row:active, .f31-action:active, .f31-tile:active { transform: none; } }

/* ── Button: the tonal variant (Material tonal, iOS tinted) ───────────────
   <button class="f31-btn f31-btn--tonal">Add card</button>
   The accent's tint with the accent's text: the second button on a screen
   when --secondary's outline would be too quiet. Revolut's "Add money". */
.f31-btn--tonal { background: var(--f31-accent-tint); color: var(--f31-accent-text); font-weight: 700; }
.f31-btn--tonal:hover { background: color-mix(in srgb, var(--f31-accent-tint), var(--f31-accent) 12%); }    /* an outlined button sits on a surface, not in the air */
:is(:root.dark, :root[data-theme="dark"]) .f31-btn--secondary { background: var(--f31-glass); }

/* ── Hero: the one figure a screen is about (Revolut's balance card) ──────
   <section class="f31-hero">
     <p class="f31-hero__eyebrow">Avios balance</p>
     <p class="f31-hero__figure">184,250</p>
     <p class="f31-hero__note"><span class="f31-chip f31-chip--green f31-chip--dot">+12,000 this month</span></p>
     <div class="f31-hero__actions"> quick actions or buttons </div>
   </section>
   A surface with the figure large, one line above it and one under, and the
   screen's actions along the bottom. One per screen, first thing after the
   title. Add --accent for the accent's soft tint behind it, --ink for an ink
   card (a bank card, the dark hero), --flat to sit on the page with no card. */
.f31-hero { box-sizing: border-box; background: var(--f31-surface); }
.f31-hero__figure { font-variant-numeric: tabular-nums; }
.f31-hero__figure small { margin-left: 0.15em; }
.f31-hero__note { display: flex; align-items: center; gap: var(--f31-s2); flex-wrap: wrap; }
.f31-hero__actions { display: flex; gap: var(--f31-s2); flex-wrap: wrap; margin-top: var(--f31-s5); }
.f31-hero--accent { background: linear-gradient(160deg, color-mix(in srgb, var(--f31-accent) 14%, var(--f31-surface)), var(--f31-surface) 70%); }
.f31-hero--ink { background: var(--f31-primary); color: var(--f31-on-primary); border-color: transparent; }
.f31-hero--ink .f31-hero__eyebrow, .f31-hero--ink .f31-hero__note, .f31-hero--ink .f31-hero__figure small { color: color-mix(in srgb, var(--f31-on-primary) 64%, transparent); }
.f31-hero--flat { padding: var(--f31-s2) 0; border: 0; box-shadow: none; }
@media (max-width: 599px) { .f31-hero { padding: var(--f31-s5); border-radius: var(--f31-r-sheet); } .f31-hero__figure { font-size: 36px; line-height: 40px; } }

/* ── Quick actions: a row of round buttons with a word under each ─────────
   <div class="f31-actions">
     <button class="f31-action"><span class="f31-action__icon"><svg/></span>Add</button> …
   </div>
   Revolut's home row. Two to five, equal width, the icon in a 52px disc of
   the accent's tint, the word under it in 12px. On a wide screen they keep
   their size and sit left. */
.f31-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--f31-s2); }
.f31-action { display: flex; flex-direction: column; align-items: center; min-width: 0; margin: 0; padding: var(--f31-s1) 0; border: 0; border-radius: 16px; background: none; color: var(--f31-ink); letter-spacing: 0; text-transform: none; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.f31-action__icon { display: inline-grid; place-items: center; border-radius: 50%; background: var(--f31-accent-tint); color: var(--f31-accent-text); transition: background 0.3s var(--f31-ease); }
.f31-action__icon svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.f31-action:hover .f31-action__icon { background: color-mix(in srgb, var(--f31-accent-tint), var(--f31-accent) 12%); }
.f31-action--primary .f31-action__icon { background: var(--f31-primary); color: var(--f31-on-primary); }
.f31-action:focus-visible { outline: 2px solid var(--f31-accent); outline-offset: 2px; }
@media (min-width: 600px) { .f31-actions { grid-auto-columns: 84px; } }

/* ── Rows, grown up (Airbnb's listing row, iOS's grouped list) ────────────
   <div class="f31-list f31-list--inset">
     <p class="f31-list__head">Cards you hold</p>
     <a class="f31-row" href="…">
       <span class="f31-row__lead"><img src="…" alt=""></span>          a 44px tile: a photo, an icon disc, an avatar, a card
       <span class="f31-row__main"><b class="f31-row__title">HSBC Premier World Elite</b><small class="f31-row__detail">Hold until the bonus posts</small></span>
       <span class="f31-row__trail"><b>£1,240</b><small>due Fri</small></span>     a value over a word, right-aligned
       <i class="f31-row__chev"></i>
     </a> …
     <p class="f31-list__foot">Closing early risks a clawback.</p>
   </div>
   --inset is the iOS grouped list: a heading above the surface, a note under
   it, both outside the card. The hairline between rows starts after the lead
   so the tiles line up (Airbnb, iOS). A row that opens something has the
   chevron; one that toggles something has a switch in __trail; a plain row
   has neither. 56px min (iOS 44 + Manrope's two lines). */
.f31-row__lead { flex: none; display: inline-grid; place-items: center; overflow: hidden; }
.f31-row__lead img { width: 100%; height: 100%; object-fit: cover; display: block; }
.f31-row__lead svg { stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.f31-row__lead--round { border-radius: 50%; }
.f31-row__lead--wide { width: 64px; height: 44px; }         /* a bank card, a photo in 3:2 */
.f31-row__trail { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; }
.f31-row__trail b { font: 500 15px/20px var(--f31-mono); font-variant-numeric: tabular-nums; color: var(--f31-ink); }
.f31-row__trail small { font: 400 12px/16px var(--f31-sans); color: var(--f31-muted); }
.f31-row__trail--good b { color: var(--f31-green); }
.f31-row__trail--bad b { color: var(--f31-red); }
.f31-row__title { font-size: 16px; line-height: 22px; }
/* The hairline starts after the lead tile (not on a row without one). */
.f31-row:has(> .f31-row__lead) + .f31-row:has(> .f31-row__lead) { border-top-color: transparent; position: relative; }
.f31-row:has(> .f31-row__lead) + .f31-row:has(> .f31-row__lead)::before { content: ""; position: absolute; left: 76px; right: 0; top: -1px; height: 1px; background: var(--f31-line); }
.f31-list--inset { margin-top: var(--f31-s2); }
.f31-list__head { margin: 0; padding: 0 var(--f31-s5) var(--f31-s2); font: 600 13px/18px var(--f31-sans); color: var(--f31-muted); }
.f31-list__foot { margin: 0; padding: var(--f31-s2) var(--f31-s5) 0; font: 400 13px/18px var(--f31-sans); color: var(--f31-muted); }
/* On an inset list the head and foot sit outside the surface. */
.f31-list--inset { border: 0; background: none; box-shadow: none; overflow: visible; }
.f31-list--inset > .f31-row:not(.f31-row ~ .f31-row) { border-top-left-radius: var(--f31-r-card); border-top-right-radius: var(--f31-r-card); }
.f31-list--inset > .f31-row:not(:has(~ .f31-row)) { border-bottom-left-radius: var(--f31-r-card); border-bottom-right-radius: var(--f31-r-card); }
.f31-list--inset > .f31-row { background: var(--f31-surface); }
.f31-list--inset > .f31-row:not(.f31-row ~ .f31-row) { border-top: 1px solid var(--f31-card-edge); }
.f31-list--inset > .f31-row:not(:has(~ .f31-row)) { border-bottom: 1px solid var(--f31-card-edge); box-shadow: var(--f31-shadow-card); }
@media (max-width: 899px) {
  .f31-row { padding: 10px 16px; }
  .f31-row:has(> .f31-row__lead) + .f31-row:has(> .f31-row__lead)::before { left: 72px; }
  .f31-list--inset > .f31-row:not(.f31-row ~ .f31-row) { border-top-left-radius: var(--f31-r-card-phone); border-top-right-radius: var(--f31-r-card-phone); }
  .f31-list--inset > .f31-row:not(:has(~ .f31-row)) { border-bottom-left-radius: var(--f31-r-card-phone); border-bottom-right-radius: var(--f31-r-card-phone); }
  .f31-list__head, .f31-list__foot { padding-inline: var(--f31-s4); }
}
/* A whole row that is a switch: the label is the row, the switch is the trail. */
label.f31-row { cursor: pointer; }
label.f31-row input.f31-switch { margin-left: auto; }

/* ── Tiles: a grid of small figures (Revolut's pockets, Material cards) ───
   <div class="f31-tiles"> <a class="f31-tile"><span class="f31-tile__label">Open</span><b class="f31-tile__figure">3</b><small class="f31-tile__note">bonuses</small></a> … </div>
   Two across on a phone, as many as fit from 600px. A tile is a compact card
   with the figure in mono. */
.f31-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--f31-s3); }
.f31-tile { display: flex; flex-direction: column; gap: var(--f31-s1); box-sizing: border-box; margin: 0; border: 1px solid var(--f31-card-edge); background: var(--f31-surface); box-shadow: var(--f31-shadow-card); color: var(--f31-ink); font: inherit; text-align: left; text-decoration: none; cursor: default; }
a.f31-tile, button.f31-tile { cursor: pointer; }
.f31-tile__figure { margin-top: auto; font-variant-numeric: tabular-nums; }
.f31-tile--accent { background: var(--f31-accent-tint); border-color: transparent; }
.f31-tile--accent .f31-tile__label, .f31-tile--accent .f31-tile__figure { color: var(--f31-accent-text); }
@media (min-width: 600px) { .f31-tiles { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } }

/* ── Segmented control with a sliding thumb ───────────────────────────────
   <div class="f31-seg" role="tablist" style="--n: 3; --i: 0">
     <button role="tab" aria-selected="true">Next</button> <button role="tab">Mine</button> <button role="tab">All cards</button>
   </div>
   The thumb is a surface that slides under the selected view (iOS). --n is
   how many, --i which is selected (0-based); f31Seg(el) in f31-motion.js
   keeps both and the aria state in step on click, or the app sets them. A
   .f31-seg without --n keeps the tinted-button look. Full width with --block. */
.f31-seg { position: relative; isolation: isolate; border-color: transparent; }
.f31-seg[style*="--n"] { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.f31-seg--block[style*="--n"] { display: grid; }
.f31-seg[style*="--n"] button { background: none; color: var(--f31-muted); position: relative; z-index: 1; }
.f31-seg[style*="--n"] button:is([aria-pressed="true"], [aria-selected="true"], .active) { background: none; color: var(--f31-ink); }
.f31-seg[style*="--n"]::before { content: ""; position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px - (var(--n) - 1) * 2px) / var(--n)); transform: translateX(calc(var(--i) * (100% + 2px))); background: var(--f31-surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(60, 40, 20, 0.08); transition: transform 0.35s var(--f31-ease); }
:is(:root.dark, :root[data-theme="dark"]) .f31-seg[style*="--n"]::before { background: var(--f31-glass-2); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
.f31-seg--block { display: flex; width: 100%; }
.f31-seg--block button { flex: 1 1 0; min-width: 0; }
.f31-seg button { font-weight: 600; }
@media (pointer: coarse) { .f31-seg button { min-height: 40px; } }
@media (prefers-reduced-motion: reduce) { .f31-seg[style*="--n"]::before { transition: none; } }

/* ── Dock: the screen's one action, pinned above the tab bar ──────────────
   <div class="f31-dock"> <button class="f31-btn f31-btn--primary f31-btn--block f31-btn--lg">Apply now</button> </div>
   Gemini's input bar, Revolut's "Continue": fixed to the bottom on a phone,
   clear of the home indicator and the tab bar, with a fade so the content
   scrolls under it. A scrolling area under a dock ends with
   padding-bottom: var(--f31-dock-clear). On a wide screen the dock is static
   at the end of its column. Add --with-tabbar when the tab bar is showing. */
:root { --f31-dock-h: 76px; --f31-dock-clear: calc(var(--f31-safe-bottom) + var(--f31-dock-h) + 8px); }
.f31-dock { position: fixed; z-index: 190; left: 0; right: 0; bottom: 0; box-sizing: border-box; padding: var(--f31-s3) var(--f31-gutter) calc(var(--f31-safe-bottom) + var(--f31-s3)); background: linear-gradient(to top, var(--f31-bg) 55%, transparent); pointer-events: none; }
.f31-dock > * { pointer-events: auto; max-width: 520px; margin-inline: auto; }
.f31-dock--with-tabbar { bottom: calc(var(--f31-bar-bottom) + 64px); padding-bottom: var(--f31-s3); }
.f31-dock--with-tabbar ~ .f31-scroll, .f31-scroll:has(~ .f31-dock--with-tabbar) { --f31-dock-clear: calc(var(--f31-tabbar-clear) + var(--f31-dock-h)); }
.f31-dock--bar { display: flex; gap: var(--f31-s2); }     /* two actions side by side */
@media (min-width: 900px) { .f31-dock { position: static; padding: var(--f31-s5) 0 0; background: none; } .f31-dock--with-tabbar { bottom: auto; } }

/* ── Sheet: a modal that rises with a handle and detents (iOS, Material) ──
   <div class="f31-scrim"> <div class="f31-modal f31-modal--sheet" role="dialog" aria-modal="true">
     <i class="f31-modal__handle" aria-hidden="true"></i> … </div> </div>
   The existing modal, grown: a grab handle at the top, a detent (--half stops
   at half the screen, the default is "as tall as its content, up to 92%"),
   and no hairline on a phone; from 680px it is a centred dialog with the
   sheet radius. f31Sheet(el) in f31-motion.js closes it on a downward drag
   or a tap on the scrim. */
.f31-modal__handle { display: block; width: 36px; height: 5px; margin: -6px auto 14px; border-radius: 3px; background: var(--f31-line-strong); opacity: 0.5; }
.f31-modal--sheet { max-height: 92dvh; padding-top: 14px; box-shadow: var(--f31-shadow-sheet); animation: f31-sheet-up 0.4s var(--f31-ease) both; }
.f31-modal--half { height: 50dvh; }
.f31-modal.is-dragging { transition: none; }
.f31-modal.is-closing { animation: f31-sheet-down 0.3s var(--f31-ease) both; }
@keyframes f31-sheet-down { to { transform: translateY(calc(100% + 24px)); } }
@media (min-width: 680px) { .f31-modal__handle { display: none; } .f31-modal--sheet { max-height: 86vh; padding-top: 20px; animation-name: f31-pop; animation-duration: 0.2s; } .f31-modal--half { height: auto; } }
@media (prefers-reduced-motion: reduce) { .f31-modal--sheet, .f31-modal.is-closing { animation: none; } }

/* ── Header bar: a phone screen's top (iOS large title, Material top app bar) ──
   <header class="f31-topbar"> <button class="f31-iconbtn f31-iconbtn--plain" aria-label="Back"><svg/></button>
     <h1 class="f31-topbar__title">Cards</h1> <span class="f31-topbar__trail"> an icon button </span> </header>
   44px of controls starting at --f31-top; the title is 17px semibold between
   them. For the large title put .f31-t-display on the h1 in the content
   instead and leave this bar for the controls alone (--bare). */
.f31-topbar { display: flex; align-items: center; gap: var(--f31-s2); min-height: 44px; padding: var(--f31-top) var(--f31-s3) var(--f31-s2); }
.f31-topbar__title { flex: 1; min-width: 0; margin: 0; font: 600 17px/24px var(--f31-sans); letter-spacing: -0.01em; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f31-topbar__trail { flex: none; display: flex; gap: var(--f31-s1); min-width: 40px; justify-content: flex-end; }
.f31-topbar > .f31-iconbtn:first-child { margin-right: auto; }
.f31-topbar--bare .f31-topbar__title { visibility: hidden; }
@media (min-width: 900px) { .f31-topbar { padding-top: var(--f31-s4); } }

/* ── Field, large (Gemini's input, Revolut's amount) ─────────────────────
   <label class="f31-field"><span>Amount</span><input class="f31-input f31-input--lg" inputmode="decimal"></label>
   52px tall, 18px type, the family radius. The pill search is --search with
   an icon on the left:
   <label class="f31-search"><svg/><input type="search" placeholder="Search cards"></label> */
.f31-input--lg, .f31-field .f31-input--lg { height: 52px; padding: 0 20px; font-size: 17px; border-radius: 18px; }
.f31-search { display: flex; align-items: center; box-sizing: border-box; }
.f31-search svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.f31-search input { flex: 1; min-width: 0; margin: 0; padding: 0; border: 0; background: none; color: var(--f31-ink); outline: none; }
.f31-search input::placeholder { color: var(--f31-muted); opacity: 1; }
.f31-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ── Filter bar: chips that scroll sideways (Airbnb's category bar) ───────
   <div class="f31-filters"> <button class="f31-filter" aria-pressed="true">All</button> … </div>
   One line, scrolls horizontally with no bar, bleeds to the page edge on a
   phone so the last chip peeks in. Sticky under the header with --sticky. */
.f31-filters { display: flex; gap: var(--f31-s2); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; padding-bottom: 2px; }
.f31-filters::-webkit-scrollbar { display: none; }
.f31-filters > * { flex: none; scroll-snap-align: start; }
.f31-filters--sticky { position: sticky; top: 0; z-index: 5; padding-block: var(--f31-s2); background: linear-gradient(var(--f31-bg) 70%, transparent); }
@media (max-width: 899px) { .f31-filters { margin-inline: calc(-1 * var(--f31-gutter)); padding-inline: var(--f31-gutter); } }
.f31-filter { font-size: 13px; border-color: var(--f31-line); }   /* Airbnb: the chosen chip is ink */

/* ── Empty: nothing here yet, said well ───────────────────────────────────
   <div class="f31-empty"> <span class="f31-empty__icon"><svg/></span>
     <p class="f31-empty__title">No cards yet</p> <p class="f31-empty__text">Add the cards you hold and the plan appears.</p>
     <button class="f31-btn f31-btn--tonal">Add a card</button> </div> */
.f31-empty { display: flex; flex-direction: column; align-items: center; gap: var(--f31-s2); padding: var(--f31-s8) var(--f31-s5); text-align: center; }
.f31-empty__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: var(--f31-s2); border-radius: 50%; background: var(--f31-accent-tint); color: var(--f31-accent-text); }
.f31-empty__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.f31-empty__title { margin: 0; font: 600 17px/24px var(--f31-sans); letter-spacing: -0.01em; color: var(--f31-ink); }
.f31-empty__text { max-width: 36ch; margin: 0 0 var(--f31-s2); font: 400 14px/20px var(--f31-sans); color: var(--f31-muted); }

/* ── Progress: a thin bar and a ring ──────────────────────────────────────
   <div class="f31-bar" role="progressbar" aria-valuenow="60" style="--p: 60%"></div>
   <i class="f31-ring" style="--p: 60%"></i>   28px, the accent sweeping round */
.f31-bar { background: var(--f31-tint); overflow: hidden; }
.f31-bar::before { content: ""; display: block; height: 100%; width: var(--p, 0%); border-radius: 3px; background: var(--f31-accent); transition: width 0.6s var(--f31-ease); }
.f31-ring { display: inline-block; width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(var(--f31-accent) var(--p, 0%), var(--f31-tint) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); }

/* ── Chip: the accent alias ───────────────────────────────────────────────
   f31-chip--accent is the app's colour; f31-chip--gold is kept for "yours" in
   gold apps and resolves to the same thing. */
.f31-chip--accent { border-color: var(--f31-accent-edge); background: var(--f31-accent-tint); color: var(--f31-accent-text); }
.f31-chip--lg { min-height: 32px; padding: 6px 14px; font-size: 13px; }

/* ── State layers (Material): hover and press as ink over a surface ───────
   For rows, tiles and cards that are pressable. */
a.f31-row:hover, button.f31-row:hover, label.f31-row:hover { background: color-mix(in srgb, var(--f31-ink) calc(var(--f31-state-hover) * 100%), transparent); }
a.f31-row:active, button.f31-row:active, label.f31-row:active { background: color-mix(in srgb, var(--f31-ink) calc(var(--f31-state-press) * 100%), transparent); }

/* ═══════════════════════════════════════════════════════════════════════
   Design system v2 (2026-10-23): built from measured references.
   Revolut (Figma kit, values in docs/design-references.md), Gemini (Material
   3 kit, its large-screen layout), Apple iOS 26 rules. The owner compared
   three phone mocks and an iPad and desktop mock (ui/mocks/) and chose this.
     one font       the device's own: SF Pro on Apple, Segoe on Windows,
                    Roboto on Android. Numbers are the same face, bold and
                    tight. DM Mono is kept only for codes read character by
                    character (.f31-mono, .f31-code, .f31-stamp).
     the page       light: a grey page (#f2f3f5) under white cards with a soft
                    shadow and no border. dark: near black under #17191d cards
                    with a faint edge.
     colour         each app has a full colour "ground" (--f31-brand-a/b/c)
                    used by the hero, and one accent for selection. Ink stays
                    the primary button.
     icons          filled (24 grid), not outlines.
     sizes          row title 16/600, detail 14, body 16, large title 34/700,
                    card radius 18, controls 48, targets 44+.
     layout         phone: floating tab bar. 600 to 1199: an 84px rail with
                    labels (Material). 1200+: a 264px sidebar (Gemini). The
                    content column stops at 1080px.
   Later rules win, so this block re-points what came before it.
   ═══════════════════════════════════════════════════════════════════════ */
:root {                   /* amounts, counts, balances: the text face, bold and tight */
  --f31-bg: #f2f3f5; --f31-glass: rgba(255, 255, 255, 0.72); --f31-glass-2: rgba(255, 255, 255, 0.96);
  --f31-glow-strength: 1;                         /* full glow (owner, 2026-10-23: "bring back the glow and aura") */
  --f31-bar: rgba(255, 255, 255, 0.82); --f31-bar-edge: rgba(25, 28, 31, 0.06); --f31-bar-shadow: rgba(25, 28, 31, 0.14);
  --f31-rail: color-mix(in srgb, var(--f31-accent) 7%, var(--f31-bg));
  /* The app's colour ground: a light glow, the colour, and its deepest shade. Gold for the Hub and Bermondse. */
  --f31-brand-a: #e9c06a; --f31-brand-b: #7a5a1c; --f31-brand-c: #1d160c;
}
:root.dark, :root[data-theme="dark"], :root[data-f31-theme="dark"] {
  --f31-bg: #0b0d10; --f31-surface: #17191d; --f31-glass: rgba(255, 255, 255, 0.08); --f31-glass-2: rgba(255, 255, 255, 0.12);
  --f31-card-edge: rgba(255, 255, 255, 0.06); --f31-shadow-card: none; --f31-shadow-lift: 0 8px 28px rgba(0, 0, 0, 0.5); --f31-bar-shadow: rgba(0, 0, 0, 0.5);
}
@media (prefers-color-scheme: dark) {
  :root[data-f31-theme="auto"] {
    --f31-bg: #0b0d10; --f31-surface: #17191d; --f31-glass: rgba(255, 255, 255, 0.08); --f31-glass-2: rgba(255, 255, 255, 0.12);
    --f31-card-edge: rgba(255, 255, 255, 0.06); --f31-shadow-card: none; --f31-shadow-lift: 0 8px 28px rgba(0, 0, 0, 0.5); --f31-bar-shadow: rgba(0, 0, 0, 0.5);
  }
}
:root[data-f31-app="rwu"] { --f31-brand-a: #ff9a7a; --f31-brand-b: #a8402c; --f31-brand-c: #2a0f0a; }
html { background: var(--f31-bg); }

/* Numbers in the text face, everywhere a figure is shown. Codes keep DM Mono. */
:is(.f31-card__figure, .f31-row__value, .f31-row__trail b, .f31-hero__figure, .f31-tile__figure, .f31-t-figure, .f31-cal__num, .f31-date .d, .f31-convo__when, .f31-bubble__meta) { font-family: var(--f31-num); font-variant-numeric: tabular-nums; }
.f31-card__figure { font-weight: 700; }
.f31-row__value, .f31-row__trail b { font-weight: 600; letter-spacing: -0.01em; color: var(--f31-ink); }
.f31-t-figure { font-weight: 700; letter-spacing: -0.04em; }
.f31-title { font-weight: 700; letter-spacing: -0.03em; }

/* Type scale, v2 sizes (iOS: 34 / 28 / 22 / 17 / 16 / 14 / 13 / 12). */
.f31-t-subhead { font: 600 17px/22px var(--f31-sans); letter-spacing: -0.015em; }
.f31-t-body { font: 400 16px/22px var(--f31-sans); letter-spacing: -0.01em; }
.f31-t-callout { font: 500 15px/20px var(--f31-sans); }
.f31-t-foot { font: 400 14px/20px var(--f31-sans); color: var(--f31-muted); }
.f31-t-caption { font: 500 12px/16px var(--f31-sans); color: var(--f31-muted); }
@media (max-width: 599px) { .f31-t-display { font-size: 34px; line-height: 41px; } }
.f31-section { color: var(--f31-ink); }
.f31-label { font: 500 14px/20px var(--f31-sans); letter-spacing: 0; text-transform: none; color: var(--f31-muted); }

/* ── Surfaces ── */
.f31-card, .f31-list, .f31-tile, .f31-cal, .f31-topic { border-color: var(--f31-card-edge); background: var(--f31-surface); box-shadow: var(--f31-shadow-card); }
.f31-card { border-radius: var(--f31-r-card); }
.f31-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 4px; font: 400 14px/20px var(--f31-sans); color: var(--f31-muted); }
.f31-card__head a, .f31-card__head button { border: 0; background: none; padding: 0; color: var(--f31-accent-text); font: 600 14px/20px var(--f31-sans); text-decoration: none; cursor: pointer; }
.f31-card__figure { font-size: 28px; line-height: 34px; }

/* ── Buttons: 48px pills; primary is ink (white on a colour ground) ── */
.f31-btn--secondary { border-color: transparent; background: var(--f31-surface); box-shadow: var(--f31-shadow-card); }

/* ── Icon button: a 44px circle, white on the page, glass on a colour ground ── */

/* ── Glass: controls that sit on a colour ground (iOS 26, Revolut) ──
   Add f31-on-colour to the colour area; icon buttons, chips, search and
   actions inside it become frosted glass with white ink. */
.f31-on-colour { color: #fff; }
.f31-on-colour :is(.f31-iconbtn, .f31-search, .f31-chip, .f31-btn--secondary, .f31-action__icon) { border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); }
.f31-on-colour .f31-search input, .f31-on-colour .f31-search input::placeholder { color: rgba(255, 255, 255, 0.82); }
.f31-on-colour .f31-btn--primary { background: #fff; color: #0b0d10; }
.f31-on-colour .f31-action { color: #fff; }

/* ── App bar: avatar, search pill, round buttons (Revolut) ──
   <header class="f31-appbar"> <span class="f31-avatar">YO</span> <label class="f31-search">…</label> <button class="f31-iconbtn">…</button> </header> */
.f31-appbar { display: flex; align-items: center; gap: 10px; padding: var(--f31-top) 0 8px; }
.f31-appbar .f31-search { flex: 1; min-width: 0; max-width: 520px; min-height: 44px; }
.f31-appbar .f31-avatar { width: 42px; height: 42px; }
.f31-appbar__space { flex: 1; }
@media (min-width: 600px) { .f31-appbar { padding-top: 20px; } }

/* ── Hero v2: the app's colour ground with the one figure on it ──
   <section class="f31-hero f31-on-colour">
     <p class="f31-hero__eyebrow">Avios balance</p> <p class="f31-hero__figure">184,250</p>
     <p class="f31-hero__note">Next bonus in 45 days</p>
     <div class="f31-actions"> … </div>
   </section>
   Centred on a phone; from 600px the figure sits left and the actions right.
   --bleed runs it to the screen edges and under the status bar (a phone's
   home screen, as Revolut does); the app bar then goes inside it. */
.f31-hero { position: relative; overflow: hidden; display: grid; gap: 20px; padding: 32px 24px 24px; border: 0; border-radius: 28px; text-align: center; color: #fff;
  background: radial-gradient(110% 80% at 85% 0%, var(--f31-brand-a) 0, transparent 58%), radial-gradient(90% 90% at 0% 70%, color-mix(in srgb, var(--f31-brand-b) 80%, var(--f31-brand-a)) 0, transparent 62%), linear-gradient(160deg, var(--f31-brand-b), var(--f31-brand-c));
  box-shadow: none; }
.f31-hero::after { content: ""; position: absolute; inset: -30% -50% auto auto; width: 150%; height: 80%; background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.14) 50%, transparent 58%); transform: rotate(-8deg); pointer-events: none; }
.f31-hero > * { position: relative; z-index: 1; }
.f31-hero__eyebrow { margin: 0; font: 500 16px/22px var(--f31-sans); color: rgba(255, 255, 255, 0.72); }
.f31-hero__figure { margin: 2px 0; font: 700 56px/1.05 var(--f31-num); letter-spacing: -0.045em; color: #fff; }
.f31-hero__figure small { font-size: 0.42em; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.72); }
.f31-hero__note { justify-content: center; margin: 0; font: 400 16px/22px var(--f31-sans); color: rgba(255, 255, 255, 0.72); }
.f31-hero--bleed { margin: 0 calc(-1 * var(--f31-gutter)); padding-top: calc(var(--f31-top) + 8px); border-radius: 0 0 32px 32px; }
.f31-hero--flat { color: var(--f31-ink); background: none; text-align: left; }
.f31-hero--flat::after { display: none; }
@media (min-width: 600px) {
  .f31-hero { grid-template-columns: 1fr auto; align-items: end; padding: 36px; text-align: left; }
  .f31-hero__note { justify-content: flex-start; }
  .f31-hero .f31-actions { grid-auto-columns: 76px; }
  .f31-hero__figure { font-size: 64px; }
}

/* ── Quick actions v2: 56px circles, a 15px word under each ── */
.f31-action { gap: 8px; font: 500 15px/20px var(--f31-sans); }
.f31-action__icon { width: 56px; height: 56px; }
.f31-action__icon svg { width: 24px; height: 24px; }

/* ── Rows v2 (Revolut): a 40px coloured disc or a card picture, no dividers ── */
.f31-list .f31-row, .f31-card .f31-row { border-top-color: transparent; }
.f31-row:has(> .f31-row__lead) + .f31-row:has(> .f31-row__lead)::before { display: none; }
.f31-row { gap: 16px; }
.f31-row__lead { width: 40px; height: 40px; border-radius: 50%; background: var(--c, var(--f31-tint)); color: #fff; }
.f31-row__lead svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.f31-row__lead--tile { border-radius: 12px; }
.f31-row__lead--accent { background: var(--f31-accent); color: var(--f31-on-accent); }
.f31-row__lead--card { width: 52px; height: 34px; }
.f31-list--inset > .f31-row { border-left: 0; border-right: 0; }
.f31-card:not(.f31-card--flush) > .f31-row { margin: 0 -18px; }
.f31-card:not(.f31-card--flush) > .f31-row:last-child { margin-bottom: -6px; }

/* ── Status pill: a short state on a row or a card ──
   <span class="f31-pill f31-pill--ok">Close now</span>   --ok --warn --bad --info --accent, or plain */
.f31-pill { flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 3px 10px; border-radius: var(--f31-r-full); background: var(--f31-tint); color: var(--f31-muted); font: 600 13px/18px var(--f31-sans); white-space: nowrap; }
.f31-pill--ok { background: var(--f31-ok-tint); color: var(--f31-ok); }
.f31-pill--warn { background: var(--f31-warn-tint); color: var(--f31-warn); }
.f31-pill--bad { background: var(--f31-bad-tint); color: var(--f31-bad); }
.f31-pill--info { background: var(--f31-info-tint); color: var(--f31-info); }
.f31-pill--accent { background: var(--f31-accent); color: var(--f31-on-accent); }

/* ── Card art: a payment card drawn in CSS ──
   <span class="f31-cardart" style="--c1:#3d7be8;--c2:#06163a"></span>          a row picture (52 x 34)
   <span class="f31-cardart f31-cardart--md" style="…"></span>                    on a tile (84 x 54)
   <div class="f31-cardart f31-cardart--hero" style="…"><b>AMEX</b><span>BA ACCELERATING</span></div>   a detail page hero */
.f31-cardart { flex: none; position: relative; display: inline-block; width: 52px; height: 34px; border-radius: 6px; background: linear-gradient(135deg, var(--c1, #2a2d34), var(--c2, #0d0f12)); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18); color: #fff; overflow: hidden; }
.f31-cardart::before { content: ""; position: absolute; left: 12%; top: 34%; width: 19%; height: 24%; border-radius: 2px; background: linear-gradient(135deg, #f3d58b, #b98f3c); }
.f31-cardart--md { width: 84px; height: 54px; border-radius: 8px; }
.f31-cardart--hero { display: block; width: min(300px, 78vw); aspect-ratio: 1.586; height: auto; margin: 0 auto; border-radius: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3); transform: perspective(800px) rotateX(8deg); }
.f31-cardart--hero::before { left: 8%; top: 37%; width: 14%; height: 17%; border-radius: 6px; }
.f31-cardart--hero b { position: absolute; right: 7%; top: 9%; font: 800 18px/1 var(--f31-sans); letter-spacing: 0.02em; opacity: 0.92; }
.f31-cardart--hero span { position: absolute; left: 8%; bottom: 10%; font: 600 15px/1 var(--f31-sans); letter-spacing: 0.04em; opacity: 0.9; }

/* ── Promo: a card with a picture bleeding off its right edge, and dots under a carousel ──
   <div class="f31-promo"> <b class="f31-promo__title">Apply now</b> <p class="f31-promo__text">…</p> <span class="f31-promo__art">…</span> <button class="f31-promo__close" aria-label="Dismiss">×</button> </div>
   <div class="f31-dots"><i class="on"></i><i></i><i></i></div> */
.f31-promo { position: relative; overflow: hidden; min-height: 118px; padding: 20px 132px 20px 20px; border-radius: 24px; background: var(--f31-surface); box-shadow: var(--f31-shadow-card); border: 1px solid var(--f31-card-edge); }
.f31-promo__title { display: block; font: 600 18px/24px var(--f31-title); letter-spacing: -0.02em; color: var(--f31-ink); }
.f31-promo__text { margin: 4px 0 0; font: 400 15px/21px var(--f31-sans); color: var(--f31-muted); }
.f31-promo__art { position: absolute; right: -12px; top: 18px; transform: rotate(-12deg); }
.f31-promo__art .f31-cardart { width: 140px; height: 88px; border-radius: 12px; }
.f31-promo__close { position: absolute; right: 10px; top: 10px; z-index: 2; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--f31-tint); color: var(--f31-muted); font: 600 16px/1 var(--f31-sans); cursor: pointer; }
.f31-on-colour .f31-promo, .f31-promo--glass { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.10); box-shadow: none; }
.f31-on-colour .f31-promo__title, .f31-promo--glass .f31-promo__title { color: #fff; }
.f31-on-colour .f31-promo__text, .f31-promo--glass .f31-promo__text { color: rgba(255, 255, 255, 0.76); }
/* Carousel: promos side by side, one per swipe; the dots follow (the page sets .on).
   <div class="f31-carousel"> <div class="f31-promo">…</div> <div class="f31-promo">…</div> </div> <div class="f31-dots">…</div> */
.f31-carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.f31-carousel::-webkit-scrollbar { display: none; }
.f31-carousel > * { flex: 0 0 100%; box-sizing: border-box; scroll-snap-align: start; }
button.f31-promo, a.f31-promo { display: block; width: 100%; font: inherit; cursor: pointer; text-align: left; text-decoration: none; color: inherit; }
.f31-promo__art .f31-avatar { position: absolute; width: 46px; height: 46px; border: 2px solid rgba(255, 255, 255, 0.6); font-size: 15px; }
.f31-promo__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; transform: rotate(12deg); }
.f31-promo__icon svg { width: 34px; height: 34px; fill: currentColor; }
.f31-dots { display: flex; justify-content: center; gap: 6px; margin: 12px 0; }
.f31-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--f31-line-strong); opacity: 0.5; }
.f31-dots i.on { background: var(--f31-ink); opacity: 1; }

/* ── Launcher: icons four across with a word under each (Revolut's Products) ──
   <div class="f31-launcher">
     <a class="f31-launcher__item" href="…"><span class="f31-launcher__icon" style="--c:#b08a4f">B</span>Bermondse</a> …
   </div>
   An icon holds a letter or a 28px svg; --c tints the letter. From 600px the grid packs as many as fit. */
.f31-launcher { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px; }
.f31-launcher__item { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; margin: 0; padding: 4px 0; border: 0; border-radius: 16px; background: none; color: var(--f31-ink); font: 500 13px/18px var(--f31-sans); text-align: center; text-decoration: none; cursor: pointer; }
.f31-launcher__item > :not(.f31-launcher__icon) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f31-launcher__icon { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--f31-tint); color: var(--c, var(--f31-ink)); font: 700 22px/1 var(--f31-title); transition: transform 0.25s var(--f31-ease), background 0.25s var(--f31-ease); }
.f31-launcher__icon svg { width: 30px; height: 30px; }
.f31-launcher__icon b { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--f31-badge); color: #fff; font: 700 11px/20px var(--f31-sans); }
.f31-launcher__item:hover .f31-launcher__icon { background: color-mix(in srgb, var(--f31-ink) 11%, transparent); }
.f31-launcher__item:active .f31-launcher__icon { transform: scale(0.94); }
@media (min-width: 600px) { .f31-launcher { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); } }

/* ── Tiles v2: two across on a phone, figure bold ── */
.f31-tile { min-height: 112px; padding: 16px; border-radius: var(--f31-r-card); }
.f31-tile__label { font: 400 14px/20px var(--f31-sans); color: var(--f31-muted); }
.f31-tile__figure { font: 700 26px/30px var(--f31-num); letter-spacing: -0.03em; }
.f31-tile__note { font: 400 13px/18px var(--f31-sans); color: var(--f31-muted); }

/* ── Track: one line of a timeline (a label, a grey "blocked" run, a coloured "held" run) ──
   <div class="f31-track"><span>Amex Platinum</span><i class="f31-track__bar"><s style="width:62%"></s><b style="left:62%;width:30%"></b></i></div> */
.f31-track { display: grid; grid-template-columns: minmax(110px, 160px) 1fr; align-items: center; gap: 12px; padding: 7px 0; font: 400 15px/20px var(--f31-sans); color: var(--f31-ink); }
.f31-track__bar { position: relative; height: 10px; border-radius: 5px; background: var(--f31-tint); }
.f31-track__bar s, .f31-track__bar b { position: absolute; top: 0; bottom: 0; border-radius: 5px; }
.f31-track__bar s { left: 0; background: var(--f31-line-strong); opacity: 0.45; }
.f31-track__bar b { background: var(--f31-accent); }

/* ── Grid of cards that wrap at a fixed width (Gemini's prompt cards) ── */
.f31-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(254px, 1fr)); gap: 16px; }
.f31-cols { display: grid; gap: 16px; }
@media (min-width: 1200px) { .f31-cols { grid-template-columns: 1.2fr 1fr; } }

/* ── Segmented control v2 (iOS): grey track, white thumb, radius 12 ── */
.f31-seg[style*="--n"]::before { border-radius: 9px; }

/* ── Tab bar v2: floating, accent capsule on the selected tab, filled icons ── */
.f31-tabbar { left: 16px; right: 16px; }
.f31-tab svg { fill: currentColor; stroke: none; }

/* ── Frame: Gemini's large-screen layout (design system v2, 2026-10-23) ──
   Taken from the Gemini Material 3 kit (Figma, read 2026-10-23): a tinted
   rail with a menu button that opens a drawer, a white working surface, a top
   app bar, and the kit's five window sizes. Colours stay F31's.
   <body class="f31-shell">
     <aside class="f31-rail" id="rail">
       <button class="f31-rail__menu" aria-label="Menu" onclick="f31Nav()"><svg/></button>
       <div class="f31-rail__brand"> mark + name (shown in the drawer) </div>
       <a class="f31-rail__fab"><svg/><span>New</span></a>                       optional
       <nav> <p class="f31-rail__section">Manage</p>                              optional, drawer only
             <a class="f31-side-item" aria-current="page"><svg/><span>Apps</span><b class="f31-side-item__count">3</b></a> … </nav>
       <div class="f31-rail__foot"> avatar, day and night </div> </aside>
     <div class="f31-shell__main">
       <header class="f31-shell__bar"> <h1 class="f31-shell__title">Apps</h1> <span class="f31-shell__actions"> buttons, avatar </span> </header>
       <main class="f31-shell__inner"> … </main> </div>
     <nav class="f31-tabbar"> … </nav> </body>
   Window sizes (the kit's breakpoints):
     under 600     phone: the tab bar; no rail, no top bar
     600 to 1239   the rail (88px, labels under icons); the drawer opens OVER
                   the page with a scrim
     1240 and up   the rail; the drawer opens BESIDE the page and pushes it
     1440 and up   the drawer starts open
   f31Nav() (f31-motion.js) opens and closes the drawer and remembers the
   choice; html[data-f31-nav="open"] is the open state. Words in side items go
   in a <span> so the rail can show them small under the icon. */
:root { --f31-rail-w: 88px; --f31-drawer-w: 280px; --f31-bar-h: 64px; --f31-frame-max: 1080px;
  /* The glow shows through the frame (owner, 2026-10-23): the rail and the top bar are frosted glass, the working area is clear. */
  --f31-rail-bg: rgba(255, 255, 255, 0.55); --f31-work: transparent; --f31-work-bar: rgba(242, 243, 245, 0.72); --f31-container: #ffffff; }
:root.dark, :root[data-theme="dark"], :root[data-f31-theme="dark"] { --f31-rail-bg: rgba(20, 22, 26, 0.55); --f31-work: transparent; --f31-work-bar: rgba(11, 13, 16, 0.6); --f31-container: #17191d; }
@media (prefers-color-scheme: dark) { :root[data-f31-theme="auto"] { --f31-rail-bg: rgba(20, 22, 26, 0.55); --f31-work: transparent; --f31-work-bar: rgba(11, 13, 16, 0.6); --f31-container: #17191d; } }
.f31-rail { display: none; }
.f31-shell__bar { display: none; }
@media (min-width: 600px) {
  .f31-shell { --f31-gutter: 32px; }
  .f31-shell .f31-tabbar { display: none; }
  html:has(body.f31-shell) { background: var(--f31-bg); }
  .f31-rail { position: fixed; z-index: 120; top: 0; bottom: 0; left: 0; width: var(--f31-rail-w); box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0 16px; overflow: hidden auto; background: var(--f31-rail-bg); -webkit-backdrop-filter: blur(28px) saturate(1.5); backdrop-filter: blur(28px) saturate(1.5); border-right: 1px solid var(--f31-bar-edge); transition: width 0.3s var(--f31-ease), box-shadow 0.3s var(--f31-ease); }
  .f31-rail__menu { flex: none; display: grid; place-items: center; width: 48px; height: 48px; margin: 0 0 4px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--f31-ink); cursor: pointer; }
  .f31-rail__menu:hover { background: var(--f31-tint); }
  .f31-rail__menu svg { width: 24px; height: 24px; fill: currentColor; }
  .f31-rail__brand { display: none; }
  .f31-rail__fab { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 56px; height: 56px; margin: 4px 0 20px; padding: 0; border: 0; border-radius: 16px; background: var(--f31-surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16), 0 4px 8px 3px rgba(0, 0, 0, 0.06); color: var(--f31-accent-text); font: 600 15px/1 var(--f31-sans); text-decoration: none; cursor: pointer; }
  .f31-rail__fab svg { width: 24px; height: 24px; fill: currentColor; }
  .f31-rail__fab span { display: none; }
  .f31-rail nav { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
  .f31-rail__section, .f31-rail hr { display: none; }
  .f31-rail .f31-side-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 80px; height: auto; margin: 0; padding: 4px 0 6px; border: 0; border-radius: 0; background: none; color: var(--f31-muted); font: 600 12px/16px var(--f31-sans); text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; }
  .f31-rail .f31-side-item svg { box-sizing: content-box; width: 24px; height: 24px; padding: 4px 16px; border-radius: 16px; fill: currentColor; stroke: none; transition: background 0.2s var(--f31-ease); }
  .f31-rail .f31-side-item span { overflow: hidden; text-overflow: ellipsis; max-width: 76px; }
  .f31-rail .f31-side-item:hover svg { background: var(--f31-tint); }
  .f31-rail .f31-side-item:is([aria-current="page"], .active, .on) { color: var(--f31-ink); background: none; }
  .f31-rail .f31-side-item:is([aria-current="page"], .active, .on) svg { background: var(--f31-accent-tint); color: var(--f31-accent-text); }
  /* A count on a destination: a badge on the icon in the rail, a number at the end in the drawer. */
  .f31-side-item__count, .f31-rail .f31-side-item .f31-chip { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 16px; height: 16px; margin: 0; padding: 0 4px; box-sizing: border-box; border: 0; border-radius: 8px; background: var(--f31-badge); color: #fff; font: 700 10px/16px var(--f31-sans); text-align: center; }
  .f31-rail__foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 12px; }
  .f31-shell__main { min-height: 100dvh; margin-left: var(--f31-rail-w); background: var(--f31-work); transition: margin-left 0.3s var(--f31-ease); }
  /* Inside the white working surface, cards are soft tinted panels (Gemini's surface containers), not white on grey. */
  .f31-shell__bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; height: var(--f31-bar-h); padding: 0 16px 0 var(--f31-gutter); background: var(--f31-work-bar); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); }
  .f31-shell__title { flex: 1; min-width: 0; margin: 0; font: 600 22px/28px var(--f31-title); letter-spacing: -0.02em; color: var(--f31-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .f31-shell__actions { display: flex; align-items: center; gap: 4px; }
  .f31-shell__actions .f31-iconbtn { box-shadow: none; background: none; }
  .f31-shell__actions .f31-iconbtn:hover { background: var(--f31-tint); }
  .f31-shell__inner { box-sizing: border-box; max-width: calc(var(--f31-frame-max) + 2 * var(--f31-gutter)); margin: 0 auto; padding: 8px var(--f31-gutter) 64px; }
  /* The drawer: the rail grown to 280px, with the app's name, words beside the icons, sections and counts. */
  html[data-f31-nav="open"] .f31-rail { width: var(--f31-drawer-w); align-items: stretch; padding: 12px 12px 16px; }
  html[data-f31-nav="open"] .f31-rail__menu { margin-left: 4px; }
  html[data-f31-nav="open"] .f31-rail__brand { display: flex; align-items: center; gap: 12px; padding: 4px 16px 16px; color: var(--f31-ink); font: 700 18px/1 var(--f31-title); letter-spacing: -0.02em; }
  html[data-f31-nav="open"] .f31-rail__fab { width: auto; align-self: flex-start; padding: 0 20px 0 16px; margin-left: 4px; }
  html[data-f31-nav="open"] .f31-rail__fab span { display: inline; }
  html[data-f31-nav="open"] .f31-rail nav { align-items: stretch; gap: 2px; }
  html[data-f31-nav="open"] .f31-rail__section { display: block; margin: 14px 0 4px; padding: 0 16px; font: 600 14px/20px var(--f31-sans); color: var(--f31-muted); }
  html[data-f31-nav="open"] .f31-rail hr { display: block; height: 1px; margin: 8px 16px; border: 0; background: var(--f31-line); }
  html[data-f31-nav="open"] .f31-rail .f31-side-item { flex-direction: row; justify-content: flex-start; gap: 12px; width: 100%; height: 56px; padding: 0 16px; border-radius: 28px; font: 600 15px/1 var(--f31-sans); text-align: left; }
  html[data-f31-nav="open"] .f31-rail .f31-side-item svg { padding: 0; background: none !important; }
  html[data-f31-nav="open"] .f31-rail .f31-side-item span { flex: 1; max-width: none; }
  html[data-f31-nav="open"] .f31-rail .f31-side-item:hover { background: var(--f31-tint); }
  html[data-f31-nav="open"] .f31-rail .f31-side-item:is([aria-current="page"], .active, .on) { background: var(--f31-accent-tint); color: var(--f31-accent-text); }
  html[data-f31-nav="open"] :is(.f31-side-item__count, .f31-rail .f31-side-item .f31-chip) { position: static; height: auto; min-width: 0; padding: 0; background: none; color: inherit; font: 600 13px/1 var(--f31-sans); }
  html[data-f31-nav="open"] .f31-rail__foot { flex-direction: row; justify-content: space-between; padding: 12px 12px 0; }
}
/* 600 to 1239: the open drawer floats over the page with a scrim. */
@media (min-width: 600px) and (max-width: 1239px) {
  html[data-f31-nav="open"] .f31-rail { box-shadow: 0 0 40px rgba(0, 0, 0, 0.24); border-radius: 0 16px 16px 0; }
  html[data-f31-nav="open"] body.f31-shell::after { content: ""; position: fixed; inset: 0; z-index: 110; background: var(--f31-scrim); animation: f31-fade 0.22s both; }
}
/* 1240 and up: the open drawer sits beside the page. */
@media (min-width: 1240px) { html[data-f31-nav="open"] .f31-shell__main { margin-left: var(--f31-drawer-w); } }
@media (prefers-reduced-motion: reduce) { .f31-rail, .f31-shell__main { transition: none; } }

/* ── Frame, Freegent's sidebar (owner, 2026-10-24: "remove slate", "revert back to how it looks on
   Freegent, it's ok to have minimise and full view"; then "keep the burger in the same place", "it
   shouldn't move the items too much from min to max") ──
   Same markup as the Gemini frame above; this restyles it. No top bar and no working surface: the page
   sits on the glow. Both states share one geometry so the switch is calm: the menu button stays top
   left, every icon keeps its x (centre 42px) and every row keeps its height (52px), section headings keep
   their space (blank when minimised); only the words move, under the icon when minimised and beside it
   in full view, and the width slides. From 900px the full view sits beside the page; below, over it. */
@media (min-width: 600px) {
  .f31-shell { --f31-rail-w: 84px; --f31-drawer-w: 242px; --f31-work: transparent; }
  .f31-shell .f31-shell__bar { display: none; }
  .f31-shell .f31-shell__main { background: none; }
  .f31-shell .f31-rail { align-items: stretch; gap: 2px; padding: 18px 8px 14px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-right: 0; overflow-x: hidden; }
  .f31-shell .f31-rail__menu { align-self: flex-start; width: 44px; height: 44px; margin: 0 0 10px 12px; color: var(--f31-muted); }
  .f31-shell .f31-rail__menu { border-radius: 10px; }   /* plain lines, no circle (owner, 2026-10-24) */
  .f31-shell .f31-rail__menu:hover { color: var(--f31-ink); background: none; }
  .f31-shell .f31-rail__brand { display: flex; align-items: center; position: absolute; top: 18px; left: 64px; height: 44px; margin: 0; padding: 0; opacity: 0; pointer-events: none; transition: opacity 0.2s var(--f31-ease); white-space: nowrap; }
  .f31-shell .f31-rail nav { align-items: stretch; gap: 2px; }
  .f31-shell .f31-rail .f31-side-item { position: relative; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 68px; height: 52px; margin: 0; padding: 0 2px; font: 600 11px/13px var(--f31-sans); text-align: center; white-space: nowrap; }
  .f31-shell .f31-rail .f31-side-item svg { flex: none; width: 20px; height: 20px; padding: 0; background: none !important; }
  .f31-shell .f31-rail .f31-side-item span { display: block; max-width: 64px; overflow: hidden; text-overflow: ellipsis; }
  .f31-shell .f31-side-item__count { top: 4px; left: calc(50% + 6px); }
  .f31-shell .f31-rail hr { display: none; }
  .f31-shell .f31-rail__section { display: block; box-sizing: border-box; height: 32px; margin: 0; padding: 14px 0 0 20px; overflow: hidden; white-space: nowrap; font: 700 11px/14px var(--f31-sans); letter-spacing: 0.14em; text-transform: uppercase; color: transparent; }
  .f31-shell .f31-rail__foot { align-items: center; gap: 8px; }
  /* Full view: the same rows, wider, the words beside the icons (icon centre still 42px). */
  html[data-f31-nav="open"] .f31-shell .f31-rail { padding: 18px 12px 14px; }
  html[data-f31-nav="open"] .f31-shell .f31-rail__menu { margin-left: 8px; }
  html[data-f31-nav="open"] .f31-shell .f31-rail__brand { opacity: 1; pointer-events: auto; padding: 0; gap: 0; font-size: 0; }
  .f31-shell .f31-rail__brand .f31-brand { display: flex; align-items: center; height: 44px; margin: 0; }
  .f31-shell .f31-rail__brand .f31-mark { display: block; height: 22px; width: auto; }
  html[data-f31-nav="open"] .f31-shell .f31-rail .f31-side-item { flex-direction: row; justify-content: flex-start; gap: 12px; width: 100%; margin: 0; text-align: left; }
  html[data-f31-nav="open"] .f31-shell .f31-rail .f31-side-item span { flex: 1; max-width: none; }
  html[data-f31-nav="open"] :is(.f31-shell .f31-side-item__count) { position: static; height: auto; min-width: 0; padding: 0; background: none; color: inherit; font: 600 13px/1 var(--f31-sans); }
  html[data-f31-nav="open"] .f31-shell .f31-rail__section { margin: 0; }
  html[data-f31-nav="open"] .f31-shell .f31-rail hr { display: none; }
  html[data-f31-nav="open"] .f31-shell .f31-rail__foot { flex-direction: column; align-items: stretch; padding: 14px 8px 2px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  html[data-f31-nav="open"] .f31-shell .f31-rail { background: var(--f31-side); -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4); box-shadow: 0 0 40px rgba(0, 0, 0, 0.3); border-radius: 0 20px 20px 0; }
}
@media (min-width: 900px) {
  html[data-f31-nav="open"] body.f31-shell::after { display: none; }
  html[data-f31-nav="open"] .f31-shell__main { margin-left: var(--f31-drawer-w); }
}

/* ── Dock v2: one or two 54px pills pinned to the bottom ── */
.f31-dock .f31-btn { min-height: 54px; font-size: 17px; }
.f31-dock--bar > * { flex: 1; }
/* v2: icons inside actions and icon buttons are filled. */
:is(.f31-action__icon, .f31-iconbtn, .f31-appbar) svg:not([fill="none"]) { fill: currentColor; stroke: none; }

/* ── Rich bodies: tables and charts in a task body (HUB-9). Built by hub/richbody.py, behaviour in f31-richbody.js.
   <div class="f31-rich"><div class="f31-card f31-card--flush f31-rich__scroll"><table class="f31-table f31-table--rich">…</table></div></div>
   A table scrolls sideways inside its card (the page never does) and keeps its first column in view.
   A chart: .f31-chart > .f31-card > .f31-chart__plot (svg), __legend (f31-chip buttons), __readout, __data. */
.f31-rich { margin: 10px 0; min-width: 0; max-width: 100%; }
.f31-rich__cap { margin: 0 0 6px; }
.f31-rich__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.f31-table--rich { width: max-content; min-width: 100%; }
.f31-table--rich th:first-child, .f31-table--rich td:first-child { position: sticky; left: 0; background: var(--f31-surface, var(--f31-bg)); z-index: 1; }
.f31-rich [hidden] { display: none !important; }
.f31-rich > .f31-btn { margin-top: 8px; }
.f31-rawspec { margin: 8px 0 0; padding: 12px 14px; overflow-x: auto; border-radius: 14px; background: var(--f31-tint); font: 400 12px/18px var(--f31-mono); color: var(--f31-ink); white-space: pre; max-width: 100%; }
.f31-chart__plot { width: 100%; aspect-ratio: 1 / 1; max-height: 420px; }
.f31-chart__svg { display: block; width: 100%; height: 100%; }
.f31-chart__axis { stroke: var(--f31-line); stroke-width: 1; }
.f31-chart__tick { fill: var(--f31-muted); font: 500 10px var(--f31-sans); }
.f31-chart__mark { cursor: pointer; stroke: transparent; stroke-width: 2; outline: none; }
.f31-chart__mark:hover, .f31-chart__mark:focus, .f31-chart__mark[aria-pressed="true"] { stroke: var(--f31-ink); }
.f31-chart__c0 { fill: var(--f31-blue); } .f31-chart__c1 { fill: var(--f31-green); } .f31-chart__c2 { fill: var(--f31-amber); } .f31-chart__c3 { fill: var(--f31-gold); }
.f31-chart__line { stroke-width: 2.5; stroke-linejoin: round; }
.f31-chart__s0 { stroke: var(--f31-blue); } .f31-chart__s1 { stroke: var(--f31-green); } .f31-chart__s2 { stroke: var(--f31-amber); } .f31-chart__s3 { stroke: var(--f31-gold); }
.f31-chart__legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.f31-chart__legend .f31-chip { cursor: pointer; min-height: 32px; border: 0; font-family: inherit; }
.f31-chart__readout { margin: 10px 0 4px; min-height: 20px; font-size: 13px; color: var(--f31-ink); overflow-wrap: anywhere; }
.f31-chart__data { margin: 10px 0; }


/* ═══════════════════════════════════════════════════════════════════════
   Design system v3, "Bold glass" (2026-11-07). Owner: "much, much more
   modern. Be very bold." Kept from v2: the ground, the hue (family gold) and
   the glow. Everything else is new:
     type      the f31.co.uk landing's face (owner, 2026-11-07: "use the
               fonts of f31.co.uk landing as a base"): Manrope for words,
               titles and figures, set as the landing sets its headline
               (600, tight: -0.05em at display size, easing off as it gets
               smaller); DM Mono for labels and codes. Figures tabular,
               labels in small spaced capitals, titles balanced.
     surface   glass: a see-through fill over the glow, a light edge that
               fades from the top (a masked gradient, ::before), a specular
               highlight, a deep soft shadow. No live blur on cards (the glow
               moves; blur under it costs every frame). The sidebar is naked
               on the glow; the phone's tab bar is frosted.
     controls  pills, 44px. Primary is solid ink (black by day, white by night); the rest are
               glass. Selected is solid ink (white by night, black by day),
               the boldest thing on screen.
     corners   24 cards, 14 fields, full pills for buttons, chips, toggles.
   Later rules win: this layer re-points everything above it. To bring
   another app to v3, sync this file to it and check its own screens.
   Tokens (2026-11-08): the values below are generated from ui/tokens.json
   ("v3") by ui/build-tokens.mjs, which also writes them for the native app.
   Change a colour, face, radius or size there, never between the markers;
   release.sh and ui/tokens.test.mjs refuse a hand edit.
   ═══════════════════════════════════════════════════════════════════════ */
/* ── tokens: GENERATED from ui/tokens.json (v3) by ui/build-tokens.mjs. Do not edit between these markers. ── */
:root {
  --f31-sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --f31-title: 'Manrope', system-ui, -apple-system, sans-serif;
  --f31-num: 'Manrope', system-ui, -apple-system, sans-serif;
  --f31-mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --f31-r-card: 24px;
  --f31-r-card-phone: 22px;
  --f31-r-ctl: 14px;
  --f31-r-chip: 999px;
  --f31-r-sheet: 28px;
  --f31-control: 44px;
  --f31-control-sm: 34px;
  --f31-ink: #0b0b0c;
  --f31-muted: rgba(11, 11, 12, 0.6);
  --f31-faint: rgba(11, 11, 12, 0.42);
  --v3-fill: rgba(255, 255, 255, 0.55);
  --v3-fill-2: rgba(255, 255, 255, 0.78);
  --v3-fill-3: rgba(255, 255, 255, 0.95);
  --v3-well: rgba(255, 255, 255, 0.7);
  --v3-edge: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.45) 40%, rgba(255, 255, 255, 0.25));
  --v3-rim: rgba(11, 11, 12, 0.07);
  --v3-spec: radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, 0.55), transparent 60%);
  --v3-shadow: 0 1px 2px rgba(40, 28, 8, 0.06), 0 24px 48px -24px rgba(60, 40, 10, 0.28);
  --v3-shadow-hi: 0 2px 4px rgba(40, 28, 8, 0.06), 0 36px 64px -28px rgba(60, 40, 10, 0.42);
  --v3-sel: #0b0b0c;
  --v3-on-sel: #ffffff;
  --v3-gold: linear-gradient(135deg, #f6dda2 0%, #e1b865 48%, #b9883a 100%);
  --v3-gold-ink: #1a1206;
  --v3-gold-glow: rgba(214, 168, 80, 0.55);
  --v3-cta: linear-gradient(180deg, #2a2a2d, #0b0b0c);
  --v3-cta-ink: #ffffff;
  --v3-cta-glow: color-mix(in srgb, var(--f31-accent) 45%, transparent);
  --v3-cta-hi: rgba(255, 255, 255, 0.16);
  --v3-cta-lo: rgba(0, 0, 0, 0.2);
  --f31-accent: #a87d2a;
  --f31-accent-text: #6e5114;
  --f31-accent-tint: rgba(198, 152, 66, 0.16);
  --f31-accent-edge: rgba(198, 152, 66, 0.5);
  --f31-focus: rgba(214, 168, 80, 0.7);
  --f31-line: rgba(11, 11, 12, 0.08);
  --f31-line-strong: rgba(11, 11, 12, 0.16);
  --f31-hover: rgba(11, 11, 12, 0.035);
  --f31-tint: rgba(11, 11, 12, 0.05);
  --f31-surface: var(--v3-fill-2);
  --f31-card-edge: var(--v3-rim);
  --f31-shadow-card: var(--v3-shadow);
  --f31-shadow-lift: var(--v3-shadow-hi);
  --f31-ok: #5a7a32;
  --f31-ok-tint: rgba(110, 140, 70, 0.14);
  --f31-warn: #9a6a1c;
  --f31-warn-tint: rgba(196, 150, 60, 0.16);
  --f31-bad: #b04434;
  --f31-bad-tint: rgba(176, 68, 52, 0.11);
  --f31-info: #4a6a88;
  --f31-info-tint: rgba(74, 106, 136, 0.12);
  --f31-green: var(--f31-ok);
  --f31-green-tint: var(--f31-ok-tint);
  --f31-amber: var(--f31-warn);
  --f31-amber-tint: var(--f31-warn-tint);
  --f31-red: var(--f31-bad);
  --f31-red-tint: var(--f31-bad-tint);
  --f31-blue: var(--f31-info);
  --f31-blue-tint: var(--f31-info-tint);
  --f31-neutral-tint: var(--f31-tint);
  --f31-select: var(--v3-sel);
  --f31-select-ink: var(--v3-on-sel);
  --f31-switch-off: rgba(11, 11, 12, 0.16);
  --f31-switch-on: #d6a850;
  --f31-scrim: rgba(10, 8, 4, 0.35);
  --f31-on-photo: #ffffff;
  --f31-photo-shade: rgba(10, 8, 6, 0.62);
  --f31-tabbar-h: 62px;
  --f31-tabbar-pad: 4px;
  --f31-tab-sel: rgba(11, 11, 12, 0.07);
  --f31-heat-teal: #2ad1bd;
  --f31-heat-teal-deep: #2f7a74;
  --f31-heat-gold: #f2cf86;
  --f31-heat-gold-deep: #a8803a;
  --f31-heat-slate: #b4cde4;
  --f31-heat-slate-deep: #5f7f9e;
  --f31-heat-well: rgba(11, 11, 12, 0.05);
  --f31-heat-halo: 0.22;
  --f31-heat-dim: 0.38;
  --f31-heat-r: 7px;
  --f31-heat-gap: 4px;
  --f31-heat-gap-dense: 3px;
  --f31-app-bermondse: #b88a5e;
  --f31-app-bermondse-deep: #3a2616;
  --f31-app-freegent: #6b8bb0;
  --f31-app-freegent-deep: #1a2638;
  --f31-app-adios: #6fa596;
  --f31-app-adios-deep: #16302b;
  --f31-app-yolo: #9a7aa8;
  --f31-app-yolo-deep: #2a1e33;
  --f31-app-uflip: #b9826f;
  --f31-app-uflip-deep: #3a1f18;
  --f31-app-roost: #8fa26a;
  --f31-app-roost-deep: #1c2410;
  --f31-chart-1: #b88a5e;
  --f31-chart-1-deep: #3a2616;
  --f31-chart-1-ink: #1d1309;
  --f31-chart-2: #6fa596;
  --f31-chart-2-deep: #16302b;
  --f31-chart-2-ink: #0b1d19;
  --f31-chart-3: #6b8bb0;
  --f31-chart-3-deep: #1a2638;
  --f31-chart-3-ink: #0d1624;
}
:root.dark, :root[data-theme="dark"], :root[data-f31-theme="dark"] {
  --f31-ink: #fafaf9;
  --f31-muted: rgba(250, 250, 249, 0.62);
  --f31-faint: rgba(250, 250, 249, 0.4);
  --v3-fill: rgba(255, 255, 255, 0.04);
  --v3-fill-2: rgba(255, 255, 255, 0.07);
  --v3-fill-3: rgba(255, 255, 255, 0.11);
  --v3-well: rgba(0, 0, 0, 0.32);
  --v3-edge: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06) 40%, rgba(255, 255, 255, 0.03));
  --v3-rim: transparent;
  --v3-spec: radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, 0.07), transparent 60%);
  --v3-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 30px 60px -30px rgba(0, 0, 0, 0.75);
  --v3-shadow-hi: 0 1px 1px rgba(0, 0, 0, 0.3), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  --v3-sel: #fafaf9;
  --v3-on-sel: #0b0b0c;
  --v3-cta: linear-gradient(180deg, #ffffff, #e9e7e1);
  --v3-cta-ink: #0b0b0c;
  --v3-cta-glow: color-mix(in srgb, var(--f31-accent) 55%, transparent);
  --v3-cta-hi: rgba(255, 255, 255, 0.9);
  --v3-cta-lo: rgba(0, 0, 0, 0.08);
  --f31-accent: #e6be72;
  --f31-accent-text: #f1d8a6;
  --f31-accent-tint: rgba(230, 190, 114, 0.14);
  --f31-accent-edge: rgba(230, 190, 114, 0.45);
  --f31-line: rgba(255, 255, 255, 0.08);
  --f31-line-strong: rgba(255, 255, 255, 0.16);
  --f31-hover: rgba(255, 255, 255, 0.04);
  --f31-tint: rgba(255, 255, 255, 0.07);
  --f31-ok: #a9c27c;
  --f31-ok-tint: rgba(155, 180, 110, 0.15);
  --f31-warn: #dcb468;
  --f31-warn-tint: rgba(212, 170, 84, 0.15);
  --f31-bad: #e5917f;
  --f31-bad-tint: rgba(224, 139, 124, 0.15);
  --f31-info: #92b3d4;
  --f31-info-tint: rgba(134, 169, 203, 0.15);
  --f31-switch-off: rgba(255, 255, 255, 0.14);
  --f31-bar: rgba(18, 18, 20, 0.6);
  --f31-bar-edge: rgba(255, 255, 255, 0.1);
  --f31-scrim: rgba(0, 0, 0, 0.6);
  --f31-tab-sel: rgba(255, 255, 255, 0.13);
  --f31-heat-well: rgba(255, 255, 255, 0.045);
}
@media (prefers-color-scheme: dark) {
  :root[data-f31-theme="auto"] {
    --f31-ink: #fafaf9;
    --f31-muted: rgba(250, 250, 249, 0.62);
    --f31-faint: rgba(250, 250, 249, 0.4);
    --v3-fill: rgba(255, 255, 255, 0.04);
    --v3-fill-2: rgba(255, 255, 255, 0.07);
    --v3-fill-3: rgba(255, 255, 255, 0.11);
    --v3-well: rgba(0, 0, 0, 0.32);
    --v3-edge: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06) 40%, rgba(255, 255, 255, 0.03));
    --v3-rim: transparent;
    --v3-spec: radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, 0.07), transparent 60%);
    --v3-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 30px 60px -30px rgba(0, 0, 0, 0.75);
    --v3-shadow-hi: 0 1px 1px rgba(0, 0, 0, 0.3), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
    --v3-sel: #fafaf9;
    --v3-on-sel: #0b0b0c;
    --v3-cta: linear-gradient(180deg, #ffffff, #e9e7e1);
    --v3-cta-ink: #0b0b0c;
    --v3-cta-glow: color-mix(in srgb, var(--f31-accent) 55%, transparent);
    --v3-cta-hi: rgba(255, 255, 255, 0.9);
    --v3-cta-lo: rgba(0, 0, 0, 0.08);
    --f31-accent: #e6be72;
    --f31-accent-text: #f1d8a6;
    --f31-accent-tint: rgba(230, 190, 114, 0.14);
    --f31-accent-edge: rgba(230, 190, 114, 0.45);
    --f31-line: rgba(255, 255, 255, 0.08);
    --f31-line-strong: rgba(255, 255, 255, 0.16);
    --f31-hover: rgba(255, 255, 255, 0.04);
    --f31-tint: rgba(255, 255, 255, 0.07);
    --f31-ok: #a9c27c;
    --f31-ok-tint: rgba(155, 180, 110, 0.15);
    --f31-warn: #dcb468;
    --f31-warn-tint: rgba(212, 170, 84, 0.15);
    --f31-bad: #e5917f;
    --f31-bad-tint: rgba(224, 139, 124, 0.15);
    --f31-info: #92b3d4;
    --f31-info-tint: rgba(134, 169, 203, 0.15);
    --f31-switch-off: rgba(255, 255, 255, 0.14);
    --f31-bar: rgba(18, 18, 20, 0.6);
    --f31-bar-edge: rgba(255, 255, 255, 0.1);
    --f31-scrim: rgba(0, 0, 0, 0.6);
    --f31-tab-sel: rgba(255, 255, 255, 0.13);
    --f31-heat-well: rgba(255, 255, 255, 0.045);
  }
}
:root[data-f31-app="bermondse"] {
  --f31-brand-a: #caa786; --f31-brand-b: #79583a; --f31-brand-c: #23170d;
  --f31-accent: #99714c;
  --f31-accent-text: #6c4e33;
  --f31-accent-tint: rgba(153, 113, 76, 0.14);
  --f31-accent-edge: rgba(153, 113, 76, 0.5);
  --f31-accent-soft: rgba(153, 113, 76, 0.07);
  --f31-glow-1: rgba(184, 138, 94, 0.55);
  --f31-glow-2: rgba(209, 179, 150, 0.45);
  --f31-glow-3: rgba(184, 138, 94, 0.5);
}
:is(:root.dark, :root[data-theme="dark"], :root[data-f31-theme="dark"])[data-f31-app="bermondse"] {
  --f31-accent: #c8a481;
  --f31-accent-text: #e4d3c2;
  --f31-accent-tint: rgba(200, 164, 129, 0.16);
  --f31-accent-edge: rgba(200, 164, 129, 0.45);
  --f31-accent-soft: rgba(200, 164, 129, 0.08);
  --f31-glow-1: rgba(184, 138, 94, 0.42);
  --f31-glow-2: rgba(134, 98, 65, 0.4);
  --f31-glow-3: rgba(184, 138, 94, 0.4);
}
@media (prefers-color-scheme: dark) {
  :root[data-f31-theme="auto"][data-f31-app="bermondse"] {
    --f31-accent: #c8a481;
    --f31-accent-text: #e4d3c2;
    --f31-accent-tint: rgba(200, 164, 129, 0.16);
    --f31-accent-edge: rgba(200, 164, 129, 0.45);
    --f31-accent-soft: rgba(200, 164, 129, 0.08);
    --f31-glow-1: rgba(184, 138, 94, 0.42);
    --f31-glow-2: rgba(134, 98, 65, 0.4);
    --f31-glow-3: rgba(184, 138, 94, 0.4);
  }
}
:root[data-f31-app="freegent"] {
  --f31-brand-a: #90a8c4; --f31-brand-b: #435974; --f31-brand-c: #101722;
  --f31-accent: #577292;
  --f31-accent-text: #3a4e68;
  --f31-accent-tint: rgba(87, 114, 146, 0.14);
  --f31-accent-edge: rgba(87, 114, 146, 0.5);
  --f31-accent-soft: rgba(87, 114, 146, 0.07);
  --f31-glow-1: rgba(107, 139, 176, 0.55);
  --f31-glow-2: rgba(159, 180, 204, 0.45);
  --f31-glow-3: rgba(107, 139, 176, 0.5);
}
:is(:root.dark, :root[data-theme="dark"], :root[data-f31-theme="dark"])[data-f31-app="freegent"] {
  --f31-accent: #8ca5c1;
  --f31-accent-text: #c7d3e1;
  --f31-accent-tint: rgba(140, 165, 193, 0.16);
  --f31-accent-edge: rgba(140, 165, 193, 0.45);
  --f31-accent-soft: rgba(140, 165, 193, 0.08);
  --f31-glow-1: rgba(107, 139, 176, 0.42);
  --f31-glow-2: rgba(75, 99, 128, 0.4);
  --f31-glow-3: rgba(107, 139, 176, 0.4);
}
@media (prefers-color-scheme: dark) {
  :root[data-f31-theme="auto"][data-f31-app="freegent"] {
    --f31-accent: #8ca5c1;
    --f31-accent-text: #c7d3e1;
    --f31-accent-tint: rgba(140, 165, 193, 0.16);
    --f31-accent-edge: rgba(140, 165, 193, 0.45);
    --f31-accent-soft: rgba(140, 165, 193, 0.08);
    --f31-glow-1: rgba(107, 139, 176, 0.42);
    --f31-glow-2: rgba(75, 99, 128, 0.4);
    --f31-glow-3: rgba(107, 139, 176, 0.4);
  }
}
:root[data-f31-app="adios"] {
  --f31-brand-a: #93bcb0; --f31-brand-b: #436b61; --f31-brand-c: #0d1d1a;
  --f31-accent: #59887b;
  --f31-accent-text: #3a5f56;
  --f31-accent-tint: rgba(89, 136, 123, 0.14);
  --f31-accent-edge: rgba(89, 136, 123, 0.5);
  --f31-accent-soft: rgba(89, 136, 123, 0.07);
  --f31-glow-1: rgba(111, 165, 150, 0.55);
  --f31-glow-2: rgba(161, 197, 187, 0.45);
  --f31-glow-3: rgba(111, 165, 150, 0.5);
}
:is(:root.dark, :root[data-theme="dark"], :root[data-f31-theme="dark"])[data-f31-app="adios"] {
  --f31-accent: #8fb9ad;
  --f31-accent-text: #c8ddd7;
  --f31-accent-tint: rgba(143, 185, 173, 0.16);
  --f31-accent-edge: rgba(143, 185, 173, 0.45);
  --f31-accent-soft: rgba(143, 185, 173, 0.08);
  --f31-glow-1: rgba(111, 165, 150, 0.42);
  --f31-glow-2: rgba(75, 118, 107, 0.4);
  --f31-glow-3: rgba(111, 165, 150, 0.4);
}
@media (prefers-color-scheme: dark) {
  :root[data-f31-theme="auto"][data-f31-app="adios"] {
    --f31-accent: #8fb9ad;
    --f31-accent-text: #c8ddd7;
    --f31-accent-tint: rgba(143, 185, 173, 0.16);
    --f31-accent-edge: rgba(143, 185, 173, 0.45);
    --f31-accent-soft: rgba(143, 185, 173, 0.08);
    --f31-glow-1: rgba(111, 165, 150, 0.42);
    --f31-glow-2: rgba(75, 118, 107, 0.4);
    --f31-glow-3: rgba(111, 165, 150, 0.4);
  }
}
:root[data-f31-app="yolo"] {
  --f31-brand-a: #b39bbe; --f31-brand-b: #624c6e; --f31-brand-c: #19121f;
  --f31-accent: #7e638b;
  --f31-accent-text: #574362;
  --f31-accent-tint: rgba(126, 99, 139, 0.14);
  --f31-accent-edge: rgba(126, 99, 139, 0.5);
  --f31-accent-soft: rgba(126, 99, 139, 0.07);
  --f31-glow-1: rgba(154, 122, 168, 0.55);
  --f31-glow-2: rgba(189, 169, 198, 0.45);
  --f31-glow-3: rgba(154, 122, 168, 0.5);
}
:is(:root.dark, :root[data-theme="dark"], :root[data-f31-theme="dark"])[data-f31-app="yolo"] {
  --f31-accent: #b097bb;
  --f31-accent-text: #d9ccde;
  --f31-accent-tint: rgba(176, 151, 187, 0.16);
  --f31-accent-edge: rgba(176, 151, 187, 0.45);
  --f31-accent-soft: rgba(176, 151, 187, 0.08);
  --f31-glow-1: rgba(154, 122, 168, 0.42);
  --f31-glow-2: rgba(109, 85, 121, 0.4);
  --f31-glow-3: rgba(154, 122, 168, 0.4);
}
@media (prefers-color-scheme: dark) {
  :root[data-f31-theme="auto"][data-f31-app="yolo"] {
    --f31-accent: #b097bb;
    --f31-accent-text: #d9ccde;
    --f31-accent-tint: rgba(176, 151, 187, 0.16);
    --f31-accent-edge: rgba(176, 151, 187, 0.45);
    --f31-accent-soft: rgba(176, 151, 187, 0.08);
    --f31-glow-1: rgba(154, 122, 168, 0.42);
    --f31-glow-2: rgba(109, 85, 121, 0.4);
    --f31-glow-3: rgba(154, 122, 168, 0.4);
  }
}
:root[data-f31-app="uflip"], :root[data-f31-app="rwu"] {
  --f31-brand-a: #cba193; --f31-brand-b: #7a5144; --f31-brand-c: #23130e;
  --f31-accent: #996959;
  --f31-accent-text: #6d473b;
  --f31-accent-tint: rgba(153, 105, 89, 0.14);
  --f31-accent-edge: rgba(153, 105, 89, 0.5);
  --f31-accent-soft: rgba(153, 105, 89, 0.07);
  --f31-glow-1: rgba(185, 130, 111, 0.55);
  --f31-glow-2: rgba(210, 174, 161, 0.45);
  --f31-glow-3: rgba(185, 130, 111, 0.5);
}
:is(:root.dark, :root[data-theme="dark"], :root[data-f31-theme="dark"])[data-f31-app="uflip"], :is(:root.dark, :root[data-theme="dark"], :root[data-f31-theme="dark"])[data-f31-app="rwu"] {
  --f31-accent: #c89e8f;
  --f31-accent-text: #e4d0c8;
  --f31-accent-tint: rgba(200, 158, 143, 0.16);
  --f31-accent-edge: rgba(200, 158, 143, 0.45);
  --f31-accent-soft: rgba(200, 158, 143, 0.08);
  --f31-glow-1: rgba(185, 130, 111, 0.42);
  --f31-glow-2: rgba(134, 90, 76, 0.4);
  --f31-glow-3: rgba(185, 130, 111, 0.4);
}
@media (prefers-color-scheme: dark) {
  :root[data-f31-theme="auto"][data-f31-app="uflip"], :root[data-f31-theme="auto"][data-f31-app="rwu"] {
    --f31-accent: #c89e8f;
    --f31-accent-text: #e4d0c8;
    --f31-accent-tint: rgba(200, 158, 143, 0.16);
    --f31-accent-edge: rgba(200, 158, 143, 0.45);
    --f31-accent-soft: rgba(200, 158, 143, 0.08);
    --f31-glow-1: rgba(185, 130, 111, 0.42);
    --f31-glow-2: rgba(134, 90, 76, 0.4);
    --f31-glow-3: rgba(185, 130, 111, 0.4);
  }
}
:root[data-f31-app="roost"] {
  --f31-brand-a: #abb98f; --f31-brand-b: #56633d; --f31-brand-c: #11160a;
  --f31-accent: #728354;
  --f31-accent-text: #4a5634;
  --f31-accent-tint: rgba(114, 131, 84, 0.14);
  --f31-accent-edge: rgba(114, 131, 84, 0.5);
  --f31-accent-soft: rgba(114, 131, 84, 0.07);
  --f31-glow-1: rgba(143, 162, 106, 0.55);
  --f31-glow-2: rgba(182, 195, 158, 0.45);
  --f31-glow-3: rgba(143, 162, 106, 0.5);
}
:is(:root.dark, :root[data-theme="dark"], :root[data-f31-theme="dark"])[data-f31-app="roost"] {
  --f31-accent: #a8b68b;
  --f31-accent-text: #d4dcc6;
  --f31-accent-tint: rgba(168, 182, 139, 0.16);
  --f31-accent-edge: rgba(168, 182, 139, 0.45);
  --f31-accent-soft: rgba(168, 182, 139, 0.08);
  --f31-glow-1: rgba(143, 162, 106, 0.42);
  --f31-glow-2: rgba(97, 112, 70, 0.4);
  --f31-glow-3: rgba(143, 162, 106, 0.4);
}
@media (prefers-color-scheme: dark) {
  :root[data-f31-theme="auto"][data-f31-app="roost"] {
    --f31-accent: #a8b68b;
    --f31-accent-text: #d4dcc6;
    --f31-accent-tint: rgba(168, 182, 139, 0.16);
    --f31-accent-edge: rgba(168, 182, 139, 0.45);
    --f31-accent-soft: rgba(168, 182, 139, 0.08);
    --f31-glow-1: rgba(143, 162, 106, 0.42);
    --f31-glow-2: rgba(97, 112, 70, 0.4);
    --f31-glow-3: rgba(143, 162, 106, 0.4);
  }
}
/* ── end of generated tokens ── */
body { font-family: var(--f31-sans); font-feature-settings: "kern", "calt"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; letter-spacing: 0; }
:is(h1, h2, h3, .f31-t-display, .f31-t-title, .f31-t-heading, .f31-card__title, .f31-section) { text-wrap: balance; }
:is(.f31-card__figure, .f31-t-figure, .f31-row__value) { font-variant-numeric: tabular-nums; }

/* ── v3 Glass: the one surface. Put .f31-glass on anything; cards, lists, tiles, sheets and the search are glass already. ── */
.f31-glass, .f31-card, .f31-list, .f31-tile, .f31-cal, .f31-topic, .f31-modal {
  position: relative; isolation: isolate;
  border: 1px solid var(--v3-rim); border-radius: var(--f31-r-card);
  background: var(--v3-spec), var(--v3-fill);
  box-shadow: var(--v3-shadow);
}
.f31-glass::before, .f31-card::before, .f31-list::before, .f31-tile::before, .f31-cal::before, .f31-topic::before, .f31-modal::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; padding: 1px; border-radius: inherit; pointer-events: none;
  background: var(--v3-edge);
  -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);
}
.f31-card { padding: 24px; }
.f31-card--flush { padding: 0; }
.f31-card--compact { padding: 18px; }
.f31-list { overflow: hidden; }
a.f31-card, button.f31-card { transition: transform 0.45s var(--f31-ease), box-shadow 0.45s var(--f31-ease), background 0.45s var(--f31-ease); }
a.f31-card:hover, button.f31-card:hover { transform: translateY(-3px); background: var(--v3-spec), var(--v3-fill-2); box-shadow: var(--v3-shadow-hi); }
.f31-card__title { font: 600 17px/24px var(--f31-title); letter-spacing: -0.025em; }
.f31-card__text { font: 400 14px/22px var(--f31-sans); color: var(--f31-muted); }
.f31-card__figure { font: 600 40px/44px var(--f31-num); letter-spacing: -0.045em; }
@media (max-width: 899px) { .f31-card { padding: 18px; border-radius: var(--f31-r-card-phone); } .f31-card--flush { padding: 0; } }

/* ── v3 Type ── */
.f31-label, .f31-sidebar__label { margin: 0 0 12px; font: 500 11px/14px var(--f31-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--f31-faint); }
.f31-section { margin: 40px 0 14px; font: 600 22px/28px var(--f31-title); letter-spacing: -0.03em; }
.f31-t-display { font: 600 44px/46px var(--f31-title); letter-spacing: -0.048em; }
.f31-t-title { font: 600 32px/36px var(--f31-title); letter-spacing: -0.04em; }
.f31-t-heading { font: 600 22px/28px var(--f31-title); letter-spacing: -0.03em; }

/* ── v3 Button: pills. Primary is lit gold; every other button is glass. ── */
.f31-btn {
  min-height: var(--f31-control); padding: 0 20px; gap: 8px; border: 0; border-radius: 999px;
  font: 600 14px/1 var(--f31-sans); letter-spacing: -0.01em; overflow: visible; isolation: isolate;
  background: var(--v3-fill-2); color: var(--f31-ink);
  box-shadow: inset 0 0 0 1px var(--f31-line-strong), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.35s var(--f31-ease), background 0.25s ease, box-shadow 0.35s var(--f31-ease), color 0.25s ease, filter 0.25s ease;
}
.f31-btn::after { display: none; }
.f31-btn:hover { transform: translateY(-1px); background: var(--v3-fill-3); filter: none; }
.f31-btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.1s; }
.f31-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--f31-bg), 0 0 0 4px var(--f31-focus) !important; }
.f31-btn--primary {
  background: var(--v3-cta); color: var(--v3-cta-ink); font-weight: 650;
  box-shadow: inset 0 1px 0 var(--v3-cta-hi), inset 0 -2px 6px var(--v3-cta-lo), 0 8px 22px -12px rgba(0, 0, 0, 0.55);
}
.f31-btn--primary:hover { background: var(--v3-cta); color: var(--v3-cta-ink); filter: none; transform: translateY(-1px); box-shadow: inset 0 1px 0 var(--v3-cta-hi), inset 0 -2px 6px var(--v3-cta-lo), 0 0 0 4px color-mix(in srgb, var(--f31-accent) 18%, transparent), 0 16px 36px -12px var(--v3-cta-glow); }
.f31-btn--secondary, .f31-btn--glass { background: var(--v3-fill-2); font-weight: 600; }
.f31-btn--quiet { padding: 0 14px; background: none; box-shadow: none; color: var(--f31-ink); }
.f31-btn--quiet:hover { background: var(--v3-fill-2); transform: none; }
.f31-btn--link { min-height: 0; padding: 0; background: none; box-shadow: none; color: var(--f31-accent-text); font-size: 14px; }
.f31-btn--link:hover { background: none; color: var(--f31-ink); transform: none; }
.f31-btn--danger, .f31-btn--danger:hover { background: var(--f31-bad-tint); color: var(--f31-bad); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--f31-bad) 40%, transparent); }
.f31-btn--danger:hover { background: color-mix(in srgb, var(--f31-bad) 22%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--f31-bad) 60%, transparent), 0 10px 28px -12px color-mix(in srgb, var(--f31-bad) 60%, transparent); }
.f31-btn--sm { min-height: var(--f31-control-sm); padding: 0 14px; font-size: 13px; }
.f31-btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.f31-btn svg { width: 16px; height: 16px; }
@media (pointer: coarse) { .f31-btn--sm { min-height: 40px; } }

/* ── v3 Icon button: a glass circle ── */
.f31-iconbtn, .f31-daynight { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--v3-fill-2); color: var(--f31-ink); box-shadow: inset 0 0 0 1px var(--f31-line-strong), inset 0 1px 0 rgba(255, 255, 255, 0.08); transition: background 0.25s ease, transform 0.3s var(--f31-ease); }
.f31-iconbtn:hover, .f31-daynight:hover { background: var(--v3-fill-3); }
.f31-iconbtn svg { width: 18px; height: 18px; }
.f31-iconbtn--plain { background: none; box-shadow: none; color: var(--f31-muted); }
.f31-iconbtn--plain:hover { background: var(--v3-fill-2); color: var(--f31-ink); }
.f31-iconbtn:focus-visible, .f31-daynight:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--f31-bg), 0 0 0 4px var(--f31-focus); }
@media (pointer: coarse) { .f31-iconbtn, .f31-daynight { width: 44px; height: 44px; } }

/* ── v3 Field: a well cut into the glass ── */
.f31-field { gap: 8px; }
.f31-field > :is(span, label) { padding-left: 4px; font: 500 11px/14px var(--f31-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--f31-faint); }
.f31-field > small { padding-left: 4px; }
.f31-input, .f31-field :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), textarea) {
  height: 48px; padding: 0 16px; border: 1px solid var(--f31-line); border-radius: var(--f31-r-ctl);
  background-color: var(--v3-well); color: var(--f31-ink); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
  font: 400 15px/20px var(--f31-sans); transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.f31-input:hover, .f31-field :is(input, textarea):hover { border-color: var(--f31-line-strong); }
.f31-input:focus, .f31-select:focus, .f31-field :is(input, select, textarea):focus { border-color: var(--f31-accent-edge); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 4px var(--f31-accent-tint), 0 0 24px -6px var(--v3-gold-glow); }
textarea.f31-input, .f31-field textarea { padding: 14px 16px; border-radius: 18px; }
.f31-select, .f31-field select {
  height: 40px; padding: 0 34px 0 14px; border: 0; border-radius: 999px; background-color: var(--v3-fill-2); color: var(--f31-ink);
  box-shadow: inset 0 0 0 1px var(--f31-line-strong); font: 500 13px/1 var(--f31-sans);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a3a3a3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 6.5 8 9.5l3-3'/%3E%3C/svg%3E");
  background-size: 14px 14px; background-position: right 12px center; background-repeat: no-repeat;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.f31-select:hover, .f31-field select:hover { background-color: var(--v3-fill-3); }
.f31-select--sm, .f31-input--sm { height: 34px; font-size: 13px; }
/* A picker that sits among buttons wears the button it stands for (2026-11-09): --primary when choosing is the
   next thing to do (a clean with no cleaner), --secondary once it holds an answer. Same height, shape and weight. */
.f31-select.f31-select--primary { background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a3a3a3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 6.5 8 9.5l3-3'/%3E%3C/svg%3E"), var(--v3-cta); background-size: 14px 14px, 100% 100%; background-position: right 12px center, 0 0; background-repeat: no-repeat; color: var(--v3-cta-ink); font-weight: 650; box-shadow: inset 0 1px 0 var(--v3-cta-hi), inset 0 -2px 6px var(--v3-cta-lo); }
.f31-select.f31-select--primary:hover { background-color: transparent; }   /* --v3-cta is a gradient, so it sits under the arrow as an image */
.f31-select.f31-select--secondary { background-color: var(--v3-fill-2); color: var(--f31-ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--f31-line-strong), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.f31-select.f31-select--secondary:hover { background-color: var(--v3-fill-3); }
.f31-select--on { background-color: var(--f31-accent-tint); color: var(--f31-accent-text); box-shadow: inset 0 0 0 1px var(--f31-accent-edge); }
.f31-search {
  position: relative; isolation: isolate; min-height: 52px; padding: 0 18px; gap: 12px; border: 1px solid var(--v3-rim); border-radius: 18px;
  background: var(--v3-spec), var(--v3-fill); box-shadow: var(--v3-shadow); color: var(--f31-muted); transition: box-shadow 0.3s ease;
}
.f31-search::before { content: ""; position: absolute; inset: -1px; z-index: -1; padding: 1px; border-radius: inherit; pointer-events: none; background: var(--v3-edge); -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); }
.f31-search:focus-within { box-shadow: var(--v3-shadow), 0 0 0 4px var(--f31-accent-tint), 0 0 40px -10px var(--v3-gold-glow); }
.f31-search input { height: 50px; font: 400 15px/20px var(--f31-sans); }
@media (pointer: coarse) { .f31-select, .f31-field select { height: 44px; } }

/* ── v3 Chip: a pill with a glowing dot for a state ── */
.f31-chip { min-height: 24px; padding: 3px 10px; gap: 6px; border: 0; border-radius: 999px; background: var(--v3-fill-2); color: var(--f31-muted); box-shadow: inset 0 0 0 1px var(--f31-line); font: 500 12px/16px var(--f31-sans); }
.f31-chip--gold { background: var(--f31-accent-tint); color: var(--f31-accent-text); box-shadow: inset 0 0 0 1px var(--f31-accent-edge); }
.f31-chip--green, .f31-chip--amber, .f31-chip--red, .f31-chip--blue { box-shadow: none; }
/* State colours again after the base chip (which sets background and colour later in the file): without these the
   coloured chips drew grey (fixed 2026-11-08). */
.f31-chip--green { background: var(--f31-ok-tint); color: var(--f31-ok); }
.f31-chip--amber { background: var(--f31-warn-tint); color: var(--f31-warn); }
.f31-chip--red { background: var(--f31-bad-tint); color: var(--f31-bad); }
.f31-chip--blue { background: var(--f31-info-tint); color: var(--f31-info); }
.f31-chip--green::before, .f31-chip--amber::before, .f31-chip--red::before, .f31-chip--blue::before, .f31-chip--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
/* Icon chip (2026-11-10, the cleaner page): icons say what it is, so no status dot; icons sized to the text.
   <span class="f31-chip f31-chip--green f31-chip--icon"><svg>bed</svg><svg>tick</svg></span> */
.f31-chip.f31-chip--icon::before { content: none; display: none; }
.f31-chip--icon { gap: 4px; font-weight: 600; }
.f31-chip--icon svg { width: 13px; height: 13px; flex: none; }

/* ── v3 Switch: a gold pill that glows when on ── */
input.f31-switch, .f31-switches input[type="checkbox"] { width: 44px; height: 26px; background: var(--f31-switch-off); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25); transition: background 0.3s ease, box-shadow 0.3s ease; }
input.f31-switch::after, .f31-switches input[type="checkbox"]::after { top: 3px; left: 3px; width: 20px; height: 20px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.5, 1); }
input.f31-switch:checked, .f31-switches input[type="checkbox"]:checked { background: var(--f31-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 14px -4px color-mix(in srgb, var(--f31-accent) 70%, transparent); }
input.f31-switch:checked::after, .f31-switches input[type="checkbox"]:checked::after { transform: translateX(18px); }

/* ── v3 Segmented control and filters: selected is solid ink ── */
.f31-seg { gap: 2px; padding: 4px; border: 0; border-radius: 999px; background: var(--v3-fill-2); box-shadow: inset 0 0 0 1px var(--f31-line); }
.f31-seg button { min-height: 34px; padding: 0 16px; border-radius: 999px; color: var(--f31-muted); font: 600 13px/1 var(--f31-sans); }
.f31-seg button:hover { color: var(--f31-ink); }
.f31-seg button[aria-pressed="true"], .f31-seg button[aria-selected="true"], .f31-seg button.active { background: var(--v3-sel); color: var(--v3-on-sel); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.4); }
.f31-filter { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--v3-fill-2); box-shadow: inset 0 0 0 1px var(--f31-line); font: 600 13px/1 var(--f31-sans); }
.f31-filter[aria-pressed="true"], .f31-filter.active { background: var(--v3-sel); color: var(--v3-on-sel); box-shadow: none; }

/* ── v3 Table: no grid, mono header, rows that light up ── */
.f31-table { border-collapse: separate; border-spacing: 0; }
.f31-table th, .f31-table td { padding: 14px 18px; border-bottom: 1px solid var(--f31-line); }
.f31-table th { padding-block: 14px 12px; background: none; font: 500 11px/14px var(--f31-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--f31-faint); }
.f31-table td { font-size: 14px; }
.f31-table tbody tr { transition: background 0.2s ease; }
.f31-table tbody tr:hover { background: var(--f31-hover); }

/* ── v3 Rows ── */
.f31-row { min-height: 56px; padding: 12px 20px; border-top-color: var(--f31-line); }
.f31-row__title { font: 600 15px/20px var(--f31-sans); letter-spacing: -0.015em; }
.f31-row__detail { font: 400 13px/18px var(--f31-sans); color: var(--f31-muted); }
a.f31-row:hover, button.f31-row:hover { background: var(--f31-hover); }

/* ── v3 Avatar: a disc with a lit rim ── */
.f31-avatar { box-shadow: 0 0 0 2px var(--f31-bg), 0 0 0 3px rgba(255, 255, 255, 0.18); font: 700 13px/1 var(--f31-sans); letter-spacing: 0; }

/* ── v3 Modal: frosted glass ── */
.f31-modal { background: var(--v3-spec), color-mix(in srgb, var(--f31-bg) 80%, transparent); -webkit-backdrop-filter: blur(30px) saturate(1.4); backdrop-filter: blur(30px) saturate(1.4); box-shadow: var(--v3-shadow-hi); }
.f31-modal__title { font: 600 22px/28px var(--f31-title); letter-spacing: -0.03em; }
@media (min-width: 680px) { .f31-modal { border-radius: var(--f31-r-sheet); } }

/* ── v3 Tab bar (phone): frosted glass; the selected tab is solid ink ── */
/* A count sits on the icon's top right corner as a small badge, outlined in the bar's colour so it reads on any tab. */
.f31-tab__badge { position: absolute; top: 5px; left: calc(50% + 4px); min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: var(--f31-bad); color: #fff; font: 700 10.5px/18px var(--f31-sans); text-align: center; box-shadow: 0 0 0 2px var(--f31-bg); pointer-events: none; }
/* v3 tab bar, the iOS 26 way (owner, 2026-11-08: "follow the iOS design system for the tab bar"): a glass capsule
   (--f31-tabbar-h tall, fully round), the selected tab a soft pill INSIDE it whose corners follow the bar's
   (concentric: the bar's radius minus its padding), its icon and words in the app's accent; the others in ink.
   Nothing on the bar is solid black: the content stays the loudest thing on the screen. */
.f31-tabbar { height: var(--f31-tabbar-h); padding: var(--f31-tabbar-pad); gap: 0; border-radius: calc(var(--f31-tabbar-h) / 2); background: var(--f31-bar); border-color: var(--f31-bar-edge); box-shadow: inset 0 1px 0 var(--f31-bar-shine), 0 10px 30px var(--f31-bar-shadow); }
.f31-tab { gap: 2px; border-radius: calc(var(--f31-tabbar-h) / 2 - var(--f31-tabbar-pad)); color: var(--f31-ink); font: 600 10px/1.1 var(--f31-sans); letter-spacing: 0; }
.f31-tab svg { width: 22px; height: 22px; }
.f31-tab[aria-current="page"], .f31-tab[aria-current="true"], .f31-tab.active { background: var(--f31-tab-sel); color: var(--f31-accent); box-shadow: none; }

/* ── v3 Sidebar (from 600px): straight on the glow; the current page is solid ink, the icons answer the pointer ── */
@media (min-width: 600px) {
  /* Naked: no panel, edge or blur behind it (owner, 2026-11-07: "naked is better"). */
  .f31-shell .f31-rail .f31-side-item { border-radius: 14px; color: var(--f31-muted); transition: background 0.3s var(--f31-ease), color 0.3s var(--f31-ease), transform 0.3s var(--f31-ease), box-shadow 0.3s var(--f31-ease); }
  .f31-shell .f31-rail .f31-side-item svg { transition: transform 0.45s cubic-bezier(0.34, 1.6, 0.5, 1); }
  .f31-shell .f31-rail .f31-side-item:hover svg { transform: scale(1.15) rotate(-6deg); }
  .f31-shell .f31-rail .f31-side-item:active { transform: scale(0.97); }
  .f31-shell .f31-rail .f31-side-item:hover { color: var(--f31-ink); background: var(--v3-fill-2); }
  .f31-shell .f31-rail .f31-side-item:is([aria-current="page"], .active, .on) { color: var(--v3-on-sel); background: var(--v3-sel); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.55); }
  html[data-f31-nav="open"] .f31-shell .f31-rail { width: calc(var(--f31-drawer-w) - 12px); }
  html[data-f31-nav="open"] .f31-shell .f31-rail .f31-side-item { height: 42px; padding: 0 14px 0 20px; border-radius: 14px; font: 500 14px/1 var(--f31-sans); letter-spacing: -0.01em; }
  html[data-f31-nav="open"] .f31-shell .f31-rail .f31-side-item:is([aria-current="page"], .active, .on) { font-weight: 600; color: var(--v3-on-sel); background: var(--v3-sel); }
  .f31-shell .f31-rail .f31-side-item:is([aria-current="page"], .active, .on) svg { background: none; color: inherit; }
  html[data-f31-nav="open"] .f31-shell .f31-rail__section { height: 36px; padding: 20px 0 0 20px; font: 500 10.5px/14px var(--f31-mono); letter-spacing: 0.14em; color: var(--f31-faint); }
  html[data-f31-nav="open"] .f31-shell .f31-rail nav { gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .f31-btn, a.f31-card, button.f31-card, input.f31-switch::after { transition: none; } .f31-btn:hover, a.f31-card:hover, button.f31-card:hover { transform: none; } }

/* @family-sidebar:start (copied into ui/f31-sb.css by sync.sh for apps on the older stylesheet) */
/* ── v3 Sidebar, "family sidebar" (2026-11-07; owner: one sidebar for every app, resizable and remembered) ──
   <aside class="f31-sb" data-f31-sb id="sidebar">
     <div class="f31-sb__switchwrap"> <button class="f31-sb__switch"> <span class="f31-sb__mark"/> <span class="f31-sb__app"><b>Bermondse</b><small>London · SE1</small></span> <i/> </button>
       <div class="f31-sb__menu"> <a class="on"><span class="f31-sb__mark"/>Bermondse<span>bermondse</span></a> … </div> </div>
     <button class="f31-sb__fold"><svg/></button>
     <a class="f31-sb__sys" data-state="ok|warn|bad|off"><i/><span><b>All ok</b></span></a>   (optional status line)
     <button class="f31-sb__find"><svg/><span>Search</span><kbd>⌘K</kbd></button>
     <nav> <p class="f31-sb__sec">Stays</p> <a class="f31-sb__it" aria-current="page"><svg/><span>Calendar</span><b class="f31-sb__n">3</b></a> … </nav>
     <div class="f31-sb__end">
       <div class="f31-sb__me"> avatar, <span class="f31-sb__who"><b/><small/></span>, day/night, sign out </div> </div>
     <div class="f31-sb__grip"></div> </aside>
   Behaviour in f31-sidebar.js: width between 220 and 360px, dragged on the grip, remembered per app; folds to an
   84px rail (button, drag below 170px, or Enter on the grip); always the rail under 900px; hidden under 600px.
   The page's main column leaves var(--f31-sb-w). Selected item: a soft pill in the app's accent. Top: one brand row (the app's own mark, bare), status line under it,
   search as a row; the burger sits at the top right of the brand row; folded, the logo shows the burger on hover and opens the bar (owner, 2026-11-08). */
:root { --f31-sb-w: 264px; }
.f31-sb { display: none; }
@media (min-width: 600px) {
  .f31-shell:has(.f31-sb) .f31-shell__main { margin-left: var(--f31-sb-w) !important; transition: margin-left 0.4s var(--f31-ease); }
  html.f31-sb-dragging .f31-shell__main, html.f31-sb-dragging .f31-sb { transition: none !important; }
  html.f31-sb-dragging { cursor: col-resize; user-select: none; }
  .f31-sb { position: fixed; z-index: 120; top: 0; bottom: 0; left: 0; width: var(--f31-sb-w); box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; padding: 28px 14px 14px; transition: width 0.4s var(--f31-ease); }
  .f31-sb > nav { display: flex; flex-direction: column; gap: 2px; min-height: 0; overflow: hidden auto; scrollbar-width: none; }
  .f31-sb__top { display: flex; align-items: center; height: 44px; padding: 0 4px 0 10px; margin-bottom: 8px; }
  .f31-sb__home { display: flex; align-items: center; color: var(--f31-ink); }   /* the mark is drawn in currentColor: never the link's (visited turned the 1 purple) */ .f31-sb__top .f31-mark { height: 22px; }
  .f31-sb__fold { flex: none; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer; }
  .f31-sb__fold:hover { background: var(--v3-fill-2); color: var(--f31-ink); }
  .f31-sb__fold svg { width: 18px; height: 18px; fill: currentColor; }

  .f31-sb__switchwrap { position: relative; }
  .f31-sb__switch { display: flex; align-items: center; gap: 16px; width: 100%; padding: 6px 10px; border: 0; border-radius: 14px; background: none; color: var(--f31-ink); font: inherit; text-align: left; cursor: pointer; transition: background 0.25s; }
  .f31-sb__switch:hover, .f31-sb__switch[aria-expanded="true"] { background: var(--v3-fill-2); }
  .f31-sb__switch > i { margin-left: auto; width: 7px; height: 7px; border-right: 1.6px solid var(--f31-faint); border-bottom: 1.6px solid var(--f31-faint); transform: translateY(-2px) rotate(45deg); opacity: 0; transition: transform 0.3s var(--f31-ease), opacity 0.2s; }
  .f31-sb__switch:is(:hover, :focus-visible, [aria-expanded="true"]) > i { opacity: 1; }
  .f31-sb__switch[aria-expanded="true"] > i { transform: translateY(2px) rotate(-135deg); }
  .f31-sb__mark { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--c, var(--f31-accent)); color: #14120f; font: 700 15px/1 var(--f31-sans); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
  .f31-sb__mark svg { width: 28px; height: 28px; }
  .f31-sb__mark--f31 { background: #14120f; } .f31-sb__mark--f31 .f31-mark { height: 11px; stroke: #f5f0e7; } .f31-sb__mark--f31 .f31-mark .g { stroke: #c9a86a; }
  /* The brand row shows the app's own mark bare, never in a tile (owner, 2026-11-08, from Bermondse's sidebar). */
  .f31-sb__switch .f31-sb__mark { width: auto; min-width: 40px; height: 48px; background: none; box-shadow: none; color: var(--f31-ink); }   /* a mark's dark bar is drawn in currentColor so it shows on a dark sidebar */
  .f31-sb__switch .f31-sb__mark svg { width: 44px; height: 44px; }
  .f31-sb__switch .f31-sb__mark--f31 .f31-mark { width: auto; height: 28px; stroke: var(--f31-ink); }
  .f31-sb__app { flex: 1; min-width: 0; display: grid; gap: 7px; }
  .f31-sb__app b { order: 1; font: 500 13.5px/1.1 var(--f31-sans); letter-spacing: 0.18em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .f31-sb__app small { order: 2; font: 500 10.5px/1 var(--f31-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--f31-accent-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .f31-sb__menu { position: absolute; left: 0; top: calc(100% + 8px); z-index: 5; width: max(100%, 240px); box-sizing: border-box; display: grid; gap: 2px; padding: 8px; border-radius: 18px; background: var(--v3-spec), color-mix(in srgb, var(--f31-bg) 88%, transparent); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); box-shadow: var(--v3-shadow-hi), inset 0 0 0 1px var(--f31-line-strong); animation: f31-sb-pop 0.25s var(--f31-ease) backwards; }
  .f31-sb__menu[hidden] { display: none; }
  @keyframes f31-sb-pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
  .f31-sb__menu a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; color: var(--f31-ink); font: 600 13.5px/1 var(--f31-sans); text-decoration: none; }
  .f31-sb__menu a:hover, .f31-sb__menu a:focus-visible { background: var(--v3-fill-2); outline: none; }
  .f31-sb__menu a .f31-sb__mark { width: 28px; height: 28px; border-radius: 9px; font-size: 12px; } .f31-sb__menu a .f31-sb__mark svg { width: 22px; height: 22px; }
  .f31-sb__menu a > span:last-child { margin-left: auto; font: 400 11px/1 var(--f31-mono); color: var(--f31-faint); }
  .f31-sb__menu a.on { background: var(--v3-sel); color: var(--v3-on-sel); } .f31-sb__menu a.on > span:last-child { color: inherit; opacity: 0.6; }

  .f31-sb__find { display: flex; align-items: center; gap: 12px; height: 40px; margin: 0; padding: 0 10px 0 12px; border: 0; border-radius: 12px; background: none; color: var(--f31-muted); font: 500 14px/1 var(--f31-sans); cursor: pointer; transition: background 0.25s, color 0.25s; }
  .f31-sb__find:hover { color: var(--f31-ink); background: var(--v3-fill-2); }
  .f31-sb__find svg { width: 18px; height: 18px; flex: none; }
  .f31-sb__find kbd { margin-left: auto; padding: 0; background: none; color: var(--f31-faint); font: 500 11px/1 var(--f31-mono); }

  .f31-sb__sec { margin: 14px 0 4px; padding: 0 12px; font: 500 10.5px/1 var(--f31-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--f31-faint); white-space: nowrap; }
  .f31-sb__it { position: relative; flex: none; display: flex; align-items: center; gap: 12px; width: 100%; height: 40px; box-sizing: border-box; padding: 0 10px 0 12px; border: 0; border-radius: 12px; background: none; color: var(--f31-muted); font: 500 14px/1 var(--f31-sans); text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background 0.25s, color 0.25s; }
  .f31-sb__it svg[fill="none"], .f31-sb__out svg[fill="none"] { fill: none; stroke: currentColor; }   /* outline icon sets (lucide) keep their outline */
  /* Every sidebar icon one size, pages and the bottom row alike (owner, 2026-11-09: "a little bigger", "same size"). */
  .f31-sb__it svg { width: 20px; height: 20px; flex: none; fill: currentColor; transition: transform 0.45s cubic-bezier(0.34, 1.6, 0.5, 1); }
  .f31-sb__it > span { overflow: hidden; text-overflow: ellipsis; }
  .f31-sb__it:hover { background: color-mix(in srgb, var(--f31-ink) 5%, transparent); color: var(--f31-ink); }   /* quiet: never mistaken for the page you are on */ .f31-sb__it:hover svg { transform: scale(1.12) rotate(-6deg); }
  .f31-sb__it:is([aria-current="page"], .on, .active) { background: var(--f31-accent-tint); color: var(--f31-accent-text); font-weight: 600; }
  .f31-sb__n { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; display: grid; place-items: center; border-radius: 999px; font: 600 11px/1 var(--f31-sans); }
  .f31-sb__n--hot { background: var(--f31-bad); color: #fff; }
  .f31-sb__it:is([aria-current="page"], .on, .active) .f31-sb__n:not(.f31-sb__n--hot) { background: color-mix(in srgb, var(--f31-accent) 18%, transparent); color: inherit; }

  .f31-sb__end { margin-top: auto; display: grid; gap: 8px; padding-top: 10px; }
  .f31-sb > .f31-sb__fold { position: absolute; top: 41px; right: 14px; }   /* top right of the brand row; under the mark when folded */
  .f31-sb:has(> .f31-sb__fold) .f31-sb__switch { padding-right: 40px; }
  .f31-sb__sys { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 2px 12px; color: var(--f31-muted); text-decoration: none; cursor: pointer; }
  .f31-sb__sys:hover b { text-decoration: underline; text-underline-offset: 3px; }
  .f31-sb__sys[data-state="ok"] { color: var(--f31-ok); } .f31-sb__sys[data-state="warn"] { color: var(--f31-warn); } .f31-sb__sys[data-state="bad"] { color: var(--f31-bad); }
  .f31-sb__sys[hidden] { display: none; }
  .f31-sb__sys i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--f31-faint); color: var(--f31-faint); }
  .f31-sb__sys[data-state="ok"] i { background: var(--f31-ok); color: var(--f31-ok); }
  .f31-sb__sys[data-state="warn"] i { background: var(--f31-warn); color: var(--f31-warn); animation: f31-sb-beat 1.8s ease infinite; }
  .f31-sb__sys[data-state="bad"] i { background: var(--f31-bad); color: var(--f31-bad); animation: f31-sb-beat 1.2s ease infinite; }
  @keyframes f31-sb-beat { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
  .f31-sb__sys span { display: flex; min-width: 0; } .f31-sb__sys b { font: 500 12px/1.2 var(--f31-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .f31-sb__sys small { display: none; }
  .f31-sb__me { display: flex; align-items: center; padding: 6px 2px 0 6px; }
  .f31-sb__me .f31-avatar { width: 36px; height: 36px; font-size: 12px; flex: none; }
  /* As a button (the Hub): you at the foot, and a tap opens your account sheet (day or night, design system, sign out). */
  button.f31-sb__me { width: 100%; margin: 0; padding: 6px 8px 6px 6px; border: 0; border-radius: 12px; background: none; color: var(--f31-ink); font: inherit; text-align: left; cursor: pointer; transition: background 0.25s; }
  button.f31-sb__me:hover { background: var(--v3-fill-2); }
  .f31-sb__more { flex: none; width: 7px; height: 7px; margin-right: 6px; border-right: 1.6px solid var(--f31-faint); border-top: 1.6px solid var(--f31-faint); transform: rotate(45deg); }
  .f31-sb__who { flex: 1; min-width: 0; display: grid; gap: 2px; }
  .f31-sb__who b { font: 600 13px/1.15 var(--f31-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .f31-sb__who small { font-size: 11.5px; color: var(--f31-muted); }
  .f31-sb__me .f31-daynight { width: 32px; height: 32px; box-shadow: none; background: none; }
  .f31-sb__out { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--f31-muted); }
  .f31-sb__out:hover, .f31-sb__me .f31-daynight:hover { background: var(--v3-fill-2); color: var(--f31-ink); }
  .f31-sb__out svg { width: 17px; height: 17px; fill: currentColor; }

  /* The grip: the right edge. A hairline lights in the accent under the pointer and while dragging. */
  .f31-sb__grip { position: absolute; top: 0; bottom: 0; right: -5px; width: 10px; cursor: col-resize; touch-action: none; }
  .f31-sb__grip::after { content: ""; position: absolute; top: 16px; bottom: 16px; left: 4px; width: 2px; border-radius: 2px; background: var(--f31-accent); opacity: 0; transition: opacity 0.2s; }
  .f31-sb__grip:hover::after, .f31-sb__grip:focus-visible::after, html.f31-sb-dragging .f31-sb__grip::after { opacity: 0.8; }
  .f31-sb__grip:focus-visible { outline: none; }

  /* Icon rows (owner, 2026-11-08): .f31-sb__bar under the brand holds what needs you
     (status, alerts, search, activity); .f31-sb__bar--foot above you holds the settings (day or night, refresh,
     design system, settings). Each .f31-sb__ic is a bare icon button or link (a 12px square on hover, the accent pill when current) with a title and an aria-label; a count is a
     .f31-sb__n on its corner; .f31-sb__ic--status carries data-state ok|warn|bad|off as a coloured dot.
     Folded, a row stands as a column in the rail. */
  .f31-sb__bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 20px 6px 14px; border-bottom: 1px solid var(--f31-line); }   /* cosy: air above, a soft line under the top (owner, 2026-11-08) */
  .f31-sb__switchwrap { margin-bottom: 4px; }
  .f31-sb__bar--foot { margin: 0; padding: 0 4px 4px; border-bottom: 0; }
  .f31-sb__bar--foot { flex-wrap: nowrap; }
  .f31-sb__bar--foot .f31-sb__ic--end { margin-left: auto; }   /* settings at the far right, above You's arrow (owner, 2026-11-08) */
  .f31-sb__ic { position: relative; flex: none; width: 38px; height: 38px; display: grid; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 12px; background: none; box-shadow: none; color: var(--f31-muted); cursor: pointer; text-decoration: none; transition: background 0.25s, color 0.25s; }   /* bare; a square on hover with the rows' 12px corners (owner, 2026-11-08) */
  .f31-sb__ic[hidden] { display: none; }
  .f31-sb__ic:hover { background: var(--v3-fill-2); color: var(--f31-ink); }
  .f31-sb__ic:is(.on, .active, [aria-current="page"]) { background: var(--f31-accent-tint); color: var(--f31-accent-text); }
  .f31-sb__ic svg { width: 20px; height: 20px; fill: currentColor; }
  .f31-sb__ic svg[fill="none"] { fill: none; stroke: currentColor; }
  .f31-sb__n[hidden] { display: none; }
  .f31-sb__ic .f31-sb__n { position: absolute; top: -2px; right: -4px; margin: 0; min-width: 18px; height: 18px; padding: 0 5px; font-size: 10px; box-shadow: 0 0 0 2px var(--f31-bg); }
  .f31-sb__ic--status i { width: 11px; height: 11px; border-radius: 50%; background: var(--f31-faint); color: var(--f31-faint); }
  .f31-sb__ic--status[data-state="ok"] i { background: var(--f31-ok); color: var(--f31-ok); }
  .f31-sb__ic--status[data-state="warn"] i { background: var(--f31-warn); color: var(--f31-warn); animation: f31-sb-beat 1.8s ease infinite; }
  .f31-sb__ic--status[data-state="bad"] i { background: var(--f31-bad); color: var(--f31-bad); animation: f31-sb-beat 1.2s ease infinite; }
  .f31-sb__bar .f31-daynight { width: 38px; height: 38px; border-radius: 12px; background: none; box-shadow: none; }
  .f31-sb__bar .f31-daynight:hover { background: var(--v3-fill-2); }

  /* Folded: the 84px rail. Icons only, counts as badges, the switcher as its mark. */
  html[data-f31-sb="folded"] .f31-sb { padding-inline: 14px; }
  html[data-f31-sb="folded"] .f31-sb__top { justify-content: center; padding: 0; }
  html[data-f31-sb="folded"] .f31-sb__home { display: none; }
  html[data-f31-sb="folded"] .f31-sb__switch { justify-content: center; padding: 6px 0; }
  /* v4 shell parts (<f31-sidebar>, ui/f31-shell.js; owner 2026-11-08): the place or business picker under the brand,
     then the global block (Today, Inbox, Ask or search) above the service's own pages, then More for the rest. */
  f31-sidebar { display: contents; }
  .f31-sb__scope { display: flex; align-items: center; gap: 8px; height: 38px; margin: 6px 6px 2px; padding: 0 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--f31-line); color: var(--f31-muted); cursor: pointer; }
  .f31-sb__scope:hover { box-shadow: inset 0 0 0 1px var(--f31-line-strong); color: var(--f31-ink); }
  .f31-sb__scope svg { width: 16px; height: 16px; flex: none; }
  .f31-sb__scope select { flex: 1; min-width: 0; margin: 0; padding: 0; border: 0; background: none; color: var(--f31-ink); font: 500 13px/1 var(--f31-sans); -webkit-appearance: none; appearance: none; cursor: pointer; outline: none; }
  .f31-sb__global { display: grid; gap: 2px; margin: 10px 0 4px; padding: 10px 0 6px; border-top: 1px solid var(--f31-line); }   /* no line under it: the app's pages follow straight on (owner, 2026-11-08) */
  [data-more] > .f31-sb__it::after { content: none; }
  html[data-f31-sb="folded"] .f31-sb__scope { justify-content: center; padding: 0; margin: 6px 0 2px; }
  html[data-f31-sb="folded"] .f31-sb__scope select { display: none; }

  /* Folded, the logo is the way back: the burger lies over the mark, unseen until hovered, and a click opens the bar
     (owner, 2026-11-08). Under 900px the rail is forced, so there the mark keeps opening the app switcher. */
  html[data-f31-sb="folded"] .f31-sb > .f31-sb__fold { top: 36px; left: 20px; right: auto; width: 44px; height: 44px; border-radius: 12px; opacity: 0; transition: opacity 0.2s; }
  html[data-f31-sb="folded"] .f31-sb > .f31-sb__fold:is(:hover, :focus-visible) { opacity: 1; background: var(--v3-fill-2); color: var(--f31-ink); }
  html[data-f31-sb="folded"] .f31-sb:has(> .f31-sb__fold:is(:hover, :focus-visible)) .f31-sb__switch .f31-sb__mark { opacity: 0; }
  html[data-f31-sb="folded"] .f31-sb:has(> .f31-sb__fold) .f31-sb__switch { padding-right: 0; }
  html[data-f31-sb="folded"] .f31-sb__switch .f31-sb__mark--f31 .f31-mark { height: 16px; }
  html[data-f31-sb="folded"] :is(.f31-sb__more, .f31-sb__app, .f31-sb__switch > i, .f31-sb__find span, .f31-sb__find kbd, .f31-sb__it > span, .f31-sb__sys span, .f31-sb__who, .f31-sb__me .f31-daynight, .f31-sb__out) { display: none; }
  html[data-f31-sb="folded"] .f31-sb__find { justify-content: center; padding: 0; }
  html[data-f31-sb="folded"] .f31-sb__sec { height: 1px; margin: 12px 10px; padding: 0; background: var(--f31-line); font-size: 0; }
  html[data-f31-sb="folded"] .f31-sb__it { justify-content: center; padding: 0; }
  html[data-f31-sb="folded"] .f31-sb__n { position: absolute; top: 3px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; box-shadow: 0 0 0 2px var(--f31-bg); }
  html[data-f31-sb="folded"] .f31-sb__sys { justify-content: center; padding: 2px 0; }
  html[data-f31-sb="folded"] .f31-sb__bar { flex-direction: column; align-items: center; padding: 14px 0 12px; }
  html[data-f31-sb="folded"] .f31-sb__bar--foot { padding: 0 0 4px; }
  html[data-f31-sb="folded"] .f31-sb__bar--foot .f31-sb__ic--end { margin-left: 0; }
  html[data-f31-sb="folded"] .f31-sb__me { justify-content: center; padding: 0; }
  html[data-f31-sb="folded"] .f31-sb__menu { left: 0; }
}
@media (min-width: 600px) and (max-width: 899px) { .f31-sb__grip, .f31-sb > .f31-sb__fold { display: none; } }
@media (prefers-reduced-motion: reduce) { .f31-sb, .f31-shell:has(.f31-sb) .f31-shell__main { transition: none !important; } .f31-sb__it svg { transition: none; } .f31-sb__sys i, .f31-sb__ic--status i { animation: none !important; } }

/* @family-sidebar:end */
/* Outline icon sets (lucide, in Freegent) keep their outline in the tab bar and icon buttons; v2 fills icons. */
.f31-tab svg[fill="none"], .f31-iconbtn svg[fill="none"], .f31-action__icon svg[fill="none"] { fill: none !important; stroke: currentColor; }


/* ═══════════════════════════════════════════════════════════════════════
   v3 shared patterns (2026-11-07), built in the Hub and moved here so every
   app can use them. Shown live on hub.f31.co.uk/design-system.
     verdict hero   section.acc-hero(.acc-hero--ok|warn|bad) > .acc-ring (svg: circle.acc-track, circle.acc-arc(--warn|bad|info|off)
                    per item, .acc-ring__mid) + .acc-hero__words (.acc-eyebrow, h2.acc-big, p.acc-sub, .acc-badges, .acc-hero__acts)
     item cards     .acc-grid > article.acc-app(--bad) > header.acc-app__head (.acc-mark, .acc-app__name, .acc-pill--ok|bad) + ul.acc-facts|acc-issues
     danger zone    section.acc-lock(--open|locked|unknown) > header, .acc-groups, .acc-acts > button.acc-act(--max), .acc-restore, .acc-foot
     empty state    .hub-empty > .hub-empty__ico svg, b, p
     timeline       .tl > section.tl__day > h3.tl__date + ol > li.tl__item(--in|out|bad|note) > .tl__dot + .tl__body (p.tl__what, p.tl__meta)
     key card       .hub-keygrid > a.hub-key (--c1, --c2) > .hub-key__water, b.hub-key__name, .hub-key__tag, .hub-key__live, .hub-key__go
   ═══════════════════════════════════════════════════════════════════════ */
@keyframes v3-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes cmd-beat { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
/* ── Access (2026-11-07 revamp; owner: "doesn't look like real web page components") ──
   A hero with a ring (one arc per app), a grid of app cards, the lockdown as a danger zone with three
   action tiles. Classes acc-*; the .check styles above stay for Status and Alerts. */

.acc-skel { display: grid; gap: 12px; margin-bottom: 12px; }
.acc-eyebrow { margin: 0; font: 500 11px/14px var(--f31-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--f31-faint); }
.acc-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 36px; margin: 8px 0 14px; padding: 30px 34px; border-radius: 28px; background: var(--v3-spec), var(--v3-fill); box-shadow: var(--v3-shadow), inset 0 0 0 1px var(--f31-line); }
.acc-hero::after { content: ""; position: absolute; z-index: -1; left: -10%; top: -60%; width: 60%; height: 220%; background: radial-gradient(closest-side, color-mix(in srgb, var(--f31-ok) 16%, transparent), transparent); opacity: 0.7; }
.acc-hero--bad::after { background: radial-gradient(closest-side, color-mix(in srgb, var(--f31-warn) 26%, transparent), transparent); }
.acc-ring { position: relative; width: 168px; height: 168px; }
.acc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.acc-track { fill: none; stroke: var(--f31-line); stroke-width: 9; }
.acc-arc { fill: none; stroke: var(--f31-ok); stroke-width: 9; stroke-linecap: round; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--f31-ok) 35%, transparent));  animation-delay: calc(0.15s + var(--k) * 0.09s); }
.acc-arc--bad { filter: drop-shadow(0 0 3px color-mix(in srgb, var(--f31-warn) 35%, transparent)); }
@keyframes acc-arc { from { opacity: 0; stroke-width: 2; } }
.acc-ring__mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; }
.acc-ring__mid b { font: 600 46px/1 var(--f31-title); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.acc-ring__mid b small { font-size: 22px; color: var(--f31-faint); letter-spacing: -0.02em; }
.acc-ring__mid span { font: 500 10.5px/1 var(--f31-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--f31-muted); }
.acc-big { margin: 8px 0 6px; font: 600 clamp(32px, 4vw, 48px)/1.02 var(--f31-title); letter-spacing: -0.045em; }
.acc-sub { margin: 0; max-width: 52ch; color: var(--f31-muted); font-size: 15px; line-height: 1.5; }
.acc-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.acc-badges span { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--v3-fill-2); box-shadow: inset 0 0 0 1px var(--f31-line); font: 500 12.5px/1 var(--f31-sans); color: var(--f31-ink); }
.acc-badge--bad i { background: var(--f31-warn) !important; box-shadow: 0 0 8px var(--f31-warn) !important; }
.acc-badges i { width: 6px; height: 6px; border-radius: 50%; background: var(--f31-ok); }

.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.acc-app { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 22px; background: var(--v3-spec), var(--v3-fill); box-shadow: var(--v3-shadow), inset 0 0 0 1px var(--f31-line); transition: transform 0.45s var(--f31-ease), box-shadow 0.45s var(--f31-ease); }
.acc-app:nth-child(2) { --n: 1; } .acc-app:nth-child(3) { --n: 2; } .acc-app:nth-child(4) { --n: 3; } .acc-app:nth-child(5) { --n: 4; } .acc-app:nth-child(n+6) { --n: 5; }
.acc-app:hover { transform: translateY(-3px); box-shadow: var(--v3-shadow-hi), inset 0 0 0 1px var(--f31-line-strong); }
.acc-app--bad { box-shadow: var(--v3-shadow), inset 0 0 0 1px color-mix(in srgb, var(--f31-warn) 45%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--f31-warn) 9%, transparent), transparent 70%), var(--v3-fill); }
.acc-app__head { display: flex; align-items: center; gap: 12px; }
.acc-mark { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--v3-fill-2); box-shadow: inset 0 0 0 1px var(--f31-line); }
.acc-mark svg { width: 30px; height: 30px; }
.acc-mark--letter { background: var(--c); color: #14120f; font: 700 17px/1 var(--f31-sans); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.acc-app__name { min-width: 0; flex: 1; }
.acc-app__name b { display: block; font: 600 17px/1.2 var(--f31-title); letter-spacing: -0.025em; }
.acc-app__name small { display: block; margin-top: 3px; font: 400 12px/1.2 var(--f31-mono); color: var(--f31-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-pill { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font: 600 12px/1 var(--f31-sans); }
.acc-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.acc-pill--ok { background: var(--f31-ok-tint); color: var(--f31-ok); }
.acc-pill--bad { background: var(--f31-warn-tint); color: var(--f31-warn); }
.acc-facts, .acc-issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.acc-facts li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--f31-ink); }
.acc-facts svg { flex: none; width: 16px; height: 16px; margin-top: 1px; fill: var(--f31-ok); opacity: 0.9; }
.acc-issues li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--v3-fill-2); box-shadow: inset 0 0 0 1px var(--f31-line); font-size: 14px; line-height: 1.4; }

.acc-lock { position: relative; isolation: isolate; overflow: hidden; margin-top: 28px; padding: 28px 30px; border-radius: 28px; background: linear-gradient(180deg, color-mix(in srgb, var(--f31-bad) 8%, transparent), transparent 55%), var(--v3-fill); box-shadow: var(--v3-shadow), inset 0 0 0 1px color-mix(in srgb, var(--f31-bad) 24%, transparent); }
.acc-lock--locked { background: linear-gradient(180deg, color-mix(in srgb, var(--f31-bad) 20%, transparent), transparent 70%), var(--v3-fill); box-shadow: var(--v3-shadow), inset 0 0 0 1px color-mix(in srgb, var(--f31-bad) 55%, transparent), 0 0 60px -20px var(--f31-bad); }
.acc-lock__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.acc-h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 8px 0 6px; font: 600 28px/1.1 var(--f31-title); letter-spacing: -0.04em; }
.acc-lock__now { margin: 0; color: var(--f31-muted); font-size: 15px; }
.acc-state { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; font: 600 12.5px/1 var(--f31-sans); letter-spacing: 0; }
.acc-state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.acc-state--open { background: var(--f31-ok-tint); color: var(--f31-ok); }
.acc-state--locked { background: var(--f31-bad-tint); color: var(--f31-bad); } .acc-state--locked i { animation: cmd-beat 1.1s ease infinite; }
.acc-state--unknown { background: var(--f31-warn-tint); color: var(--f31-warn); }
.acc-groups { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--f31-line); }
.acc-groups .acc-eyebrow { flex-basis: 100%; }
.acc-group { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--f31-muted); }
.acc-group b { font: 600 16px/1 var(--f31-title); color: var(--f31-ink); font-variant-numeric: tabular-nums; }
.acc-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.acc-act { position: relative; display: grid; align-content: start; gap: 8px; min-height: 128px; padding: 18px; border: 0; border-radius: 18px; background: var(--v3-fill-2); color: var(--f31-ink); box-shadow: inset 0 0 0 1px var(--f31-line-strong); font: inherit; text-align: left; cursor: pointer; transition: transform 0.35s var(--f31-ease), box-shadow 0.35s var(--f31-ease), background 0.35s var(--f31-ease); }
.acc-act:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--f31-bad) 50%, transparent), 0 18px 40px -18px color-mix(in srgb, var(--f31-bad) 60%, transparent); background: color-mix(in srgb, var(--f31-bad) 8%, var(--v3-fill-2)); }
.acc-act:active { transform: scale(0.98); }
.acc-act:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--f31-bg), 0 0 0 4px var(--f31-focus); }
.acc-act:disabled { opacity: 0.5; cursor: default; transform: none; }
.acc-act__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acc-act__top b { font: 600 16px/1.2 var(--f31-title); letter-spacing: -0.02em; }
.acc-act__top svg { width: 18px; height: 18px; color: var(--f31-faint); transition: transform 0.4s var(--f31-ease), color 0.3s; }
.acc-act:hover .acc-act__top svg { transform: translateX(4px); color: var(--f31-bad); }
.acc-act__text { font-size: 13px; line-height: 1.45; color: var(--f31-muted); }
.acc-act--max { background: color-mix(in srgb, var(--f31-bad) 12%, var(--v3-fill-2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--f31-bad) 40%, transparent); }
.acc-act--max .acc-act__top b, .acc-act--max .acc-act__top svg { color: var(--f31-bad); }
.acc-restore { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 16px 18px; border-radius: 18px; background: var(--f31-ok-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--f31-ok) 35%, transparent); font-size: 14px; }
.acc-foot { margin: 16px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--f31-faint); }
.acc-add { margin-top: 20px; } .acc-add summary { gap: 10px; color: var(--f31-ink); }
.acc-add__plus { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--v3-fill-2); box-shadow: inset 0 0 0 1px var(--f31-line-strong); font-weight: 600; }
#view #done:not(:empty) { margin-bottom: 14px; padding: 14px 18px; border-radius: 16px; background: var(--f31-ok-tint); color: var(--f31-ok); }
@media (max-width: 760px) {
  .acc-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 20px; padding: 26px 20px; }
  .acc-badges { justify-content: center; }
  .acc-acts { grid-template-columns: 1fr; } .acc-act { min-height: 0; }
  .acc-lock { padding: 22px 18px; } .acc-lock__head { flex-direction: column; } .acc-restore { flex-direction: column; align-items: stretch; }
  .acc-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .acc-arc, .acc-app { animation: none; } .acc-app:hover, .acc-act:hover { transform: none; } }

/* ── Working screens, v3 (2026-11-07, owner: "make it so much better, the whole thing"). The verdict hero
   (heroRing + verdict) on Status and Alerts, arcs coloured by state; the Activity timeline; key cards;
   empty states. ── */
.acc-arc--warn { stroke: var(--f31-warn); filter: drop-shadow(0 0 3px color-mix(in srgb, var(--f31-warn) 35%, transparent)); }
.acc-arc--bad { stroke: var(--f31-bad); filter: drop-shadow(0 0 3px color-mix(in srgb, var(--f31-bad) 35%, transparent)); }
.acc-arc--info { stroke: var(--f31-info); filter: none; }
.acc-arc--off { stroke: var(--f31-line-strong); filter: none; }
.acc-hero--warn::after { background: radial-gradient(closest-side, color-mix(in srgb, var(--f31-warn) 22%, transparent), transparent); }
.acc-hero--bad::after { background: radial-gradient(closest-side, color-mix(in srgb, var(--f31-bad) 22%, transparent), transparent); }
.acc-hero__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.hub-push { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--f31-muted); }
.hub-push:empty { display: none; }


.check h3 { font: 600 19px/1.2 var(--f31-title); letter-spacing: -0.03em; }
.st-row, .st-up { border-radius: 12px; padding-inline: 10px; margin-inline: -10px; width: calc(100% + 20px); transition: background 0.25s var(--f31-ease); }
.st-row .what { font-weight: 600; letter-spacing: -0.01em; }
.st-tick { width: 24px; height: 24px; border-radius: 8px; font-size: 12px; }
.st-tick.info { background: var(--f31-info-tint); color: var(--f31-info); }
.st-bar { border-radius: 4px; }
.st-bars { gap: 4px; }

.hub-empty { display: grid; justify-items: center; gap: 10px; margin: 8px 0; padding: 56px 24px; border-radius: 28px; text-align: center; background: var(--v3-spec), var(--v3-fill); box-shadow: var(--v3-shadow), inset 0 0 0 1px var(--f31-line); }
.hub-empty__ico { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 6px; border-radius: 22px; background: var(--v3-fill-2); box-shadow: inset 0 0 0 1px var(--f31-line-strong), 0 18px 40px -18px var(--v3-gold-glow, rgba(201, 168, 106, 0.5)); color: var(--f31-accent); animation: hub-float 5s ease-in-out infinite; }
.hub-empty__ico svg { width: 28px; height: 28px; fill: currentColor; }
.hub-empty b { font: 600 22px/1.2 var(--f31-title); letter-spacing: -0.035em; }
.hub-empty p { margin: 0; max-width: 44ch; color: var(--f31-muted); font-size: 14.5px; line-height: 1.5; }
@keyframes hub-float { 50% { transform: translateY(-6px); } }

.tl { display: grid; gap: 26px; max-width: 860px; }
.tl__date { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 500 11px/14px var(--f31-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--f31-faint); }
.tl__date span { min-width: 22px; height: 20px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--v3-fill-2); color: var(--f31-muted); letter-spacing: 0; }
.tl ol { list-style: none; margin: 0; padding: 6px 22px; border-radius: 22px; background: var(--v3-spec), var(--v3-fill); box-shadow: var(--v3-shadow), inset 0 0 0 1px var(--f31-line); }
.tl__item { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 0; }
.tl__item + .tl__item { border-top: 1px solid var(--f31-line); }
.tl__item::before { content: ""; position: absolute; left: 4.5px; top: 0; bottom: 0; width: 1px; background: var(--f31-line); }
.tl__item:first-child::before { top: 20px; } .tl__item:last-child::before { bottom: calc(100% - 20px); }
.tl__dot { position: relative; z-index: 1; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--f31-faint); box-shadow: 0 0 0 4px var(--f31-bg); }
.tl__item--in .tl__dot { background: var(--f31-ok); } .tl__item--out .tl__dot { background: var(--f31-warn); } .tl__item--bad .tl__dot { background: var(--f31-bad); } .tl__item--note .tl__dot { background: var(--f31-info); }
.tl__what { margin: 0; font-size: 14.5px; line-height: 1.45; } .tl__what b { font-weight: 600; }
.tl__app { display: inline-flex; height: 22px; align-items: center; padding: 0 8px; border-radius: 7px; background: var(--f31-accent-tint); color: var(--f31-accent-text); font: 600 12px/1 var(--f31-sans); }
.tl__meta { margin: 4px 0 0; font: 400 12px/1.4 var(--f31-mono); color: var(--f31-faint); overflow-wrap: anywhere; }

.hub-keygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
/* Key card (2026-11-08, the owner's picks from ui/mocks/key-cards-v3*): the app's own colour (--c1, its deep shade
   --c2, from the --f31-app-* tokens), lit from a corner, with the app's logo as a big soft watermark. By day the
   colour at full strength ("J1"); by night a jewel tone of it ("H1"). On it: the name, what the app is for, and one
   live line from the app when it sends one (what needs you there now). No role, no address.
     <a class="hub-key" style="--c1:var(--f31-app-x);--c2:var(--f31-app-x-deep)">
       <span class="hub-key__water"><svg/></span> <b class="hub-key__name"/> <span class="hub-key__tag"/>
       <span class="hub-key__live"><i class="warn|bad?"></i>…</span> <span class="hub-key__go">↗</span> </a>
   The live line is one slot: the Hub fills it today (answering, keys waiting); an app's live tile can fill it later. */
.hub-key { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 4px; aspect-ratio: 1.586; padding: 20px 22px 18px; border-radius: 22px; color: #fff; text-decoration: none;
  --key-glow: color-mix(in srgb, var(--c1) 75%, #fff); --key-top: var(--c1); --key-bottom: color-mix(in srgb, var(--c1) 55%, var(--c2)); --key-sheen: rgba(255, 255, 255, 0.28); --key-edge: rgba(255, 255, 255, 0.6);
  background: radial-gradient(90% 120% at 100% 100%, var(--key-glow), transparent 62%), radial-gradient(120% 70% at 30% 0%, var(--key-sheen), transparent 55%), linear-gradient(160deg, var(--key-top), var(--key-bottom));
  box-shadow: 0 1px 2px rgba(40, 28, 8, 0.08), 0 24px 48px -24px color-mix(in srgb, var(--c1) 85%, #000);
  transition: transform 0.5s var(--f31-ease), box-shadow 0.5s var(--f31-ease); }
:root.dark .hub-key, :root[data-theme="dark"] .hub-key, :root[data-f31-theme="dark"] .hub-key { --key-glow: color-mix(in srgb, var(--c1) 80%, transparent); --key-top: color-mix(in srgb, var(--c1) 38%, #0b0b0c); --key-bottom: color-mix(in srgb, var(--c2) 80%, #0b0b0c); --key-sheen: rgba(255, 255, 255, 0.10); --key-edge: rgba(255, 255, 255, 0.4); box-shadow: 0 26px 52px -26px color-mix(in srgb, var(--c1) 60%, #000); }
@media (prefers-color-scheme: dark) { :root[data-f31-theme="auto"] .hub-key { --key-glow: color-mix(in srgb, var(--c1) 80%, transparent); --key-top: color-mix(in srgb, var(--c1) 38%, #0b0b0c); --key-bottom: color-mix(in srgb, var(--c2) 80%, #0b0b0c); --key-sheen: rgba(255, 255, 255, 0.10); --key-edge: rgba(255, 255, 255, 0.4); box-shadow: 0 26px 52px -26px color-mix(in srgb, var(--c1) 60%, #000); } }
.hub-key > * { position: relative; z-index: 3; }
.hub-key:nth-child(2) { --n: 1; } .hub-key:nth-child(3) { --n: 2; } .hub-key:nth-child(4) { --n: 3; } .hub-key:nth-child(n+5) { --n: 4; }
.hub-key::after { content: ""; position: absolute; inset: 0; z-index: 2; padding: 1px; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, var(--key-edge), rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.03)); -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); }
.hub-key:hover { transform: translateY(-4px); }
.hub-key__name { font: 600 24px/1.1 var(--f31-title); letter-spacing: -0.035em; text-wrap: balance; }
.hub-key__tag { font: 500 13px/1.3 var(--f31-sans); opacity: 0.85; }
.hub-key__live { display: flex; align-items: center; gap: 8px; margin-top: 10px; font: 600 13px/1.25 var(--f31-sans); }
.hub-key__live i { flex: none; width: 8px; height: 8px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25); }
.hub-key__live i.warn { background: #ffd28a; box-shadow: 0 0 0 3px rgba(255, 210, 138, 0.3); }
.hub-key__live i.bad { background: #ff9d8c; box-shadow: 0 0 0 3px rgba(255, 157, 140, 0.32); }
.hub-key__live i.calm { background: rgba(255, 255, 255, 0.55); box-shadow: none; }
.hub-key__live { min-width: 0; padding-right: 40px; } .hub-key__live > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-key__go { position: absolute; right: 18px; bottom: 16px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 999px; background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); font-size: 14px; line-height: 1; transition: transform 0.4s var(--f31-ease), background 0.3s; }
.hub-key:hover .hub-key__go { transform: translate(2px, -2px); background: rgba(255, 255, 255, 0.26); }
/* The watermark: the app's mark in white, large and soft, in the lower corner. Outlines stay outlines; a cut-out
   (a <mask>) keeps its black and white. A letter stands in for an app with no mark. */
.hub-key__water { position: absolute !important; z-index: 1 !important; right: -26px; bottom: -36px; width: 176px; height: 176px; display: grid; place-items: center; opacity: 0.17; pointer-events: none; font: 800 160px/1 var(--f31-title); letter-spacing: -0.06em; }
.hub-key__water svg { width: 100%; height: 100%; }
.hub-key__water svg [fill]:not([fill="none"]) { fill: #fff !important; }
.hub-key__water svg [stroke] { stroke: #fff !important; fill: none !important; }
.hub-key__water svg mask rect[fill][x], .hub-key__water svg mask rect[fill][width] { fill: #fff !important; }
.hub-key__water svg mask g rect[fill][x][y] { fill: #000 !important; }
.hub-keygrid--compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.hub-key--compact { aspect-ratio: auto; min-height: 120px; padding: 16px 18px; border-radius: 20px; }
.hub-key--compact .hub-key__name { font-size: 18px; padding-right: 30px; }
.hub-key--compact .hub-key__tag { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding-right: 36px; }
.hub-key--compact .hub-key__water { width: 120px; height: 120px; right: -18px; bottom: -26px; font-size: 110px; }
.hub-key--compact .hub-key__go { right: 14px; bottom: 14px; width: 28px; height: 28px; }
@media (max-width: 599px) { .hub-keygrid { grid-template-columns: 1fr; } .acc-hero__acts { justify-content: center; } .tl ol { padding: 4px 16px; } }
@media (prefers-reduced-motion: reduce) { .hub-empty__ico, .hub-key { animation: none; } .hub-key:hover { transform: none; } }


/* ── Entries on a phone (v3, 2026-11-08) ───────────────────────────────────────────────────────
   How money apps list rows on a phone (Monzo, Revolut, Apple Wallet): one row about 68px tall, a
   40px tile on the left, the name over one detail line, the figure on the right with a small state
   under it. No buttons inside the row (tap opens it), no date block (the date sits in the detail
   or the section head), and selection by tapping the tile, as in Gmail.
     <div class="f31-entry">
       <span class="f31-entry__pick"> checkbox </span>             wide screens only
       <button class="f31-entry__lead" aria-pressed="false">B</button> phone only: tap selects
       <div class="f31-date">…</div>     always, except beside a __lead on a phone (the tile takes its place)
       <div class="f31-entry__main"> __title, __detail </div>
       <div class="f31-entry__side"> chip, <span class="f31-entry__figure">-£86.75</span>,
         <button class="f31-btn … f31-entry__act">Approve</button> </div>   the action: wide only
       <span class="f31-entry__chev"></span> </div>                   wide only */
.f31-entry__figure { font: 500 14px/1.2 var(--f31-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; color: var(--f31-ink); white-space: nowrap; }
.f31-entry__figure.in { color: var(--f31-ok); }
.f31-entry__lead { display: none; }
@media (max-width: 599px) {
  .f31-entry { min-height: 68px; padding: 12px 14px; gap: 12px; flex-wrap: nowrap; }
  .f31-entry:has(> .f31-entry__lead) > .f31-date, .f31-entry > .f31-entry__pick, .f31-entry > .f31-entry__chev, .f31-entry .f31-entry__act { display: none; }
  .f31-entry__lead { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 13px; background: var(--v3-fill-2); box-shadow: inset 0 0 0 1px var(--f31-line); color: var(--f31-ink); font: 700 15px/1 var(--f31-sans); cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.3s var(--f31-ease); }
  .f31-entry__lead:active { transform: scale(0.92); }
  .f31-entry__lead[aria-pressed="true"] { background: var(--v3-sel); color: var(--v3-on-sel); box-shadow: none; }
  .f31-entry__lead svg { width: 18px; height: 18px; fill: currentColor; }
  .f31-entry__title { font-size: 15px; }
  .f31-entry__detail { font-size: 12.5px; margin-top: 3px; }
  .f31-entry__side { flex: none; flex-direction: column; align-items: flex-end; justify-content: center; gap: 5px; padding: 0; }
  .f31-entry__side .f31-entry__figure { order: -1; font-size: 15px; }
  .f31-entry__side .f31-chip { min-height: 20px; padding: 1px 8px; font-size: 11px; line-height: 16px; gap: 5px; }
  .f31-entry__side .f31-chip::before { width: 5px; height: 5px; box-shadow: none; }
  .f31-entries__head { padding: 12px 14px 6px; }
}
/* The same phone look on any width: a narrow pane, or the design system page. */
.f31-entries--compact .f31-entry { min-height: 68px; padding: 12px 14px; gap: 12px; flex-wrap: nowrap; }
.f31-entries--compact .f31-entry:has(> .f31-entry__lead) > .f31-date, .f31-entries--compact .f31-entry > .f31-entry__pick, .f31-entries--compact .f31-entry > .f31-entry__chev, .f31-entries--compact .f31-entry .f31-entry__act { display: none; }
.f31-entries--compact .f31-entry__lead { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 13px; background: var(--v3-fill-2); box-shadow: inset 0 0 0 1px var(--f31-line); color: var(--f31-ink); font: 700 15px/1 var(--f31-sans); cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.3s var(--f31-ease); }
.f31-entries--compact .f31-entry__lead:active { transform: scale(0.92); }
.f31-entries--compact .f31-entry__lead[aria-pressed="true"] { background: var(--v3-sel); color: var(--v3-on-sel); box-shadow: none; }
.f31-entries--compact .f31-entry__lead svg { width: 18px; height: 18px; fill: currentColor; }
.f31-entries--compact .f31-entry__title { font-size: 15px; }
.f31-entries--compact .f31-entry__detail { font-size: 12.5px; margin-top: 3px; }
.f31-entries--compact .f31-entry__side { flex: none; flex-direction: column; align-items: flex-end; justify-content: center; gap: 5px; padding: 0; }
.f31-entries--compact .f31-entry__side .f31-entry__figure { order: -1; font-size: 15px; }
.f31-entries--compact .f31-entry__side .f31-chip { min-height: 20px; padding: 1px 8px; font-size: 11px; line-height: 16px; gap: 5px; }
.f31-entries--compact .f31-entry__side .f31-chip::before { width: 5px; height: 5px; box-shadow: none; }
.f31-entries--compact .f31-entries__head { padding: 12px 14px 6px; }

/* ── The table (v3, 2026-11-08) ────────────────────────────────────────────────────────────────
   Entries that line up as a real table on a wide screen and read as a money app's list on a phone,
   one markup for both. Built for Freegent's Review, Payroll and Expenses and for Bermondse's bookings.
     <div class="f31-entries f31-table2" style="--cols: 96px 96px 110px">     the cells' widths, in order
       <div class="f31-table2__cols">                                       column heads (optional)
         <span class="f31-table2__lead"></span><span>Period</span>
         <span class="num">Gross</span><span class="num">Tax</span><span class="num">Net</span><span></span></div>
       <div class="f31-entries__head">Section <span>3</span> <button class="f31-btn f31-btn--sm">Approve all</button></div>
       <div class="f31-entry" role="button" tabindex="0">
         lead: .f31-date | .f31-entry__tile (--c colour) | .f31-entry__lead (selects on a phone)
         <div class="f31-entry__main"> __title, __detail </div>
         <div class="f31-entry__cells"> <span class="f31-entry__cell num">£1,000</span> … </div>  wide only, aligned by --cols
         <div class="f31-entry__side"> chip, .f31-entry__figure, .f31-entry__act </div>   figure over chip on a phone
         <span class="f31-entry__chev"></span> </div>
       <div class="f31-entry__more">…</div>                                 the open row's detail
       <div class="f31-table2__foot"> label, cells, side </div>              totals, same columns
     </div>
   Row states: .is-open (accent bar), .is-quiet (done, dimmed). A state is a chip, never an edge colour. */
.f31-table2 { --cols: ; }
.f31-entry__cells { display: grid; grid-template-columns: var(--cols); gap: 14px; flex: none; align-items: center; }
.f31-entry__cell { font-size: 13px; color: var(--f31-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f31-entry__cell.num, .f31-table2__cols .num { text-align: right; font-family: var(--f31-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.f31-entry__cell.strong { color: var(--f31-ink); font-weight: 600; }
.f31-entry__tile { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: color-mix(in srgb, var(--c, var(--f31-accent)) 16%, transparent); color: var(--c, var(--f31-ink)); font: 700 15px/1 var(--f31-sans); }
.f31-entry__tile svg { width: 18px; height: 18px; }
/* --bare: just the icon in its colour, larger, no backing (2026-11-09, Bermondse's diary). */
.f31-entry__tile--bare { background: none; }
.f31-entry__tile--bare svg { width: 30px; height: 30px; }
.f31-table2__cols { display: flex; align-items: center; gap: 13px; padding: 10px 16px 8px; border-bottom: 1px solid var(--f31-line); font: 500 10.5px/14px var(--f31-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--f31-faint); }
.f31-table2__cols > :nth-child(2) { flex: 1; }
.f31-table2__cols .f31-table2__cells { display: grid; grid-template-columns: var(--cols); gap: 14px; }
.f31-table2__lead { width: 40px; flex: none; }
.f31-table2__side { flex: none; }
.f31-table2__foot { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border-top: 1px solid var(--f31-line); background: color-mix(in srgb, var(--f31-ink) 3%, transparent); font-weight: 600; }
.f31-table2__foot > .f31-entry__main { flex: 1; }
.f31-entries__head { display: flex; align-items: center; gap: 8px; }
.f31-entries__head > span { color: var(--f31-faint); font-variant-numeric: tabular-nums; }
.f31-entries__head > .f31-btn { margin-left: auto; letter-spacing: 0; text-transform: none; }
.f31-table2 .f31-entries__head { position: sticky; top: 0; z-index: 1; background: color-mix(in srgb, var(--f31-bg) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.f31-entry.is-open { background: var(--v3-fill-2); position: relative; }
.f31-entry.is-open::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--f31-accent); }
.f31-entry.is-quiet .f31-entry__title, .f31-entry.is-quiet .f31-entry__figure { color: var(--f31-muted); }
.f31-entry__more { padding: 12px 16px 16px; border-bottom: 1px solid var(--f31-line); background: var(--v3-fill-2); }
.f31-entries__empty { padding: 28px 16px; text-align: center; color: var(--f31-muted); }
@media (max-width: 899px) { .f31-entry__cells, .f31-table2__cols .f31-table2__cells { display: none; } }
@media (max-width: 599px) {
  .f31-table2__cols { display: none; }
  .f31-table2__foot { padding: 12px 14px; }
  .f31-entry__tile { border-radius: 13px; }
}
/* Columns stay lined up only if the side has one width in every row: --side (default 200px). */
@media (min-width: 900px) {
  .f31-table2 .f31-entry__side, .f31-table2 .f31-table2__side { width: var(--side, 200px); justify-content: flex-end; }
}
/* A figure that only a phone needs (the wide table already shows it in a column). */
@media (min-width: 900px) { .f31-entry__figure--phone { display: none; } }

/* ── Entry facts, phone chip and one-line side (2026-11-09, from Bermondse's diary) ──────────────
   <div class="f31-entry__detail f31-entry__facts"> <span>svg</span> <span>svg 5</span> <span>svg Tue 10</span> </div>
     icon + value pairs in place of a sentence, so a phone never cuts the detail off.
   <span class="f31-entry__phone"> one chip </span>   phone only: the one thing a phone row shows in place of the
     wide columns (.f31-entry__act and the app's own wide slots). Shown in .f31-entries--compact too.
   <div class="f31-entry__side f31-entry__side--row">   keeps two small controls side by side on a phone
     (a toggle and a picker) instead of stacking them. All opt-in: rows without these classes are unchanged. */
.f31-entry__facts { display: flex; align-items: center; gap: 10px; }
.f31-entry__facts > span { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.f31-entry__facts > span:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.f31-entry__facts svg { width: 13px; height: 13px; flex: none; }
.f31-entry__phone { display: inline-flex; align-items: center; flex: none; }
/* Inside __facts too, whose spans are inline-flex at a higher weight (2026-11-09: it showed on wide screens). */
@media (min-width: 600px) { .f31-entry__phone, .f31-entry__facts > .f31-entry__phone { display: none; } .f31-entries--compact .f31-entry__phone, .f31-entries--compact .f31-entry__facts > .f31-entry__phone { display: inline-flex; } }
@media (max-width: 599px) { .f31-entry__side--row { flex-direction: row; align-items: center; gap: 6px; } }
.f31-entries--compact .f31-entry__side--row { flex-direction: row; align-items: center; gap: 6px; }

/* ── Entry options (2026-11-10, taken from Bermondse's Diary and Today rows; all opt-in) ─────────────────────────
   <div class="f31-entries--fit">  on the list's wrapper: its rows take the phone layout by the LIST's width (under
     640px), not the device's, so a list beside an open sidebar on an iPad reads like a phone list. That layout: the
     tile as a bare 26px icon, a narrower date, smaller facts, no chevron or wide action, and the row's one phone
     control (.f31-entry__phone, or a small picker or round toggle in the side) at one size: 76 x 32, 11px words.
     A phone chip keeps its light tint but takes a button's shape, so it reads as information, not a tap.
   <span class="f31-entry__slot f31-entry__slot--fill" style="--f31-slot-w: 148px">  a side column of one width
     in every row; its button or chip fills it and is cut off with an ellipsis. --f31-slot-w: the column's width.
   <span class="f31-entry__slot f31-entry__slot--start">  the slot's content starts at its left edge.
   <button class="f31-filter f31-filter--icon" aria-pressed>svg</button>  a round icon toggle (34px, 40 on touch). */
.f31-entry__side .f31-entry__slot { width: var(--f31-slot-w, auto); }
.f31-entry__side .f31-entry__slot--start { justify-content: flex-start; }
.f31-entry__slot--fill > * { max-width: 100%; min-width: 0; }
.f31-entry__slot--fill > .f31-btn { width: 100%; }
.f31-entry__slot--fill > .f31-chip, .f31-entry__slot--fill > .f31-btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f31-entry__phone .f31-chip[role="button"] { cursor: pointer; }
.f31-entry__phone .f31-btn { height: 32px; min-height: 32px; padding: 0 12px; gap: 5px; font-size: 12px; }
.f31-entry__phone .f31-btn svg { width: 14px; height: 14px; }
.f31-filter--icon { justify-content: center; width: 34px; height: 34px; min-width: 0; min-height: 0; padding: 0; border-radius: 50%; flex: none; }
.f31-filter--icon svg { width: 16px; height: 16px; flex: none; }
@media (pointer: coarse) { .f31-filter--icon { width: 40px; height: 40px; } }
@media (max-width: 599px) {
  .f31-entry__side--row .f31-entry__chev { display: none; }
  .f31-entry__side--row .f31-entry__slot { width: auto; }
}
/* <div class="f31-entries--wrap">  long titles and details wrap (the detail to two lines) instead of being cut off;
     on a phone the row's parts sit at its top. A row marked .is-read has a lighter title. */
.f31-entries--wrap .f31-entry__title { white-space: normal; }
.f31-entries--wrap .f31-entry__detail { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
.f31-entry.is-read .f31-entry__title { font-weight: 500; }
@media (max-width: 599px) { .f31-entries--wrap .f31-entry { align-items: flex-start; } }
/* An app's own main column beside the family sidebar follows it with
   transition: margin-left var(--f31-sb-move, 0.4s); the value is 0s while the sidebar is being dragged. */
html.f31-sb-dragging { --f31-sb-move: 0s; }
/* <div class="f31-entry f31-entry--tall">  (2026-11-10, from Freegent's Review) a row whose title may take two lines:
     everything sits at the top, the detail wraps, and the side stacks its figure over its chip. */
.f31-entry--tall { align-items: flex-start; }
.f31-entry--tall > :is(.f31-date, .f31-entry__pick, .f31-entry__chev) { margin-top: 2px; }
.f31-entry--tall .f31-entry__title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.f31-entry--tall .f31-entry__detail { white-space: normal; }
.f31-entry--tall .f31-entry__side { flex-direction: column; align-items: flex-end; gap: 6px; }
.f31-entry--tall .f31-entry__side .f31-entry__figure { order: -1; font-size: 14px; }
.f31-entries--fit { container: f31-entries / inline-size; }
@container f31-entries (max-width: 639px) {
  .f31-entries--fit .f31-entry { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .f31-entries--fit .f31-entry .f31-entry__act, .f31-entries--fit .f31-entry__side .f31-entry__chev { display: none; }
  .f31-entries--fit .f31-entry__phone, .f31-entries--fit .f31-entry__facts > .f31-entry__phone { display: inline-flex; }
  .f31-entries--fit .f31-entry > .f31-date { width: 34px; margin-right: 0; }
  .f31-entries--fit .f31-entry__tile { width: 26px; height: 26px; border-radius: 0; background: none; }
  .f31-entries--fit .f31-entry__tile svg { width: 26px; height: 26px; }
  .f31-entries--fit .f31-entry__facts { gap: 7px; font-size: 12px; }
  .f31-entries--fit .f31-entry__facts > span { gap: 3px; }
  .f31-entries--fit .f31-entry__facts svg { width: 12px; height: 12px; }
  .f31-entries--fit .f31-entry__side--row, .f31-entries--fit .f31-entry__side--row .f31-entry__slot { gap: 4px; }
  .f31-entries--fit .f31-entry__side .f31-entry__slot { width: auto; }
  .f31-entries--fit .f31-entry__phone > .f31-chip { width: 76px; height: 32px; min-height: 32px; padding: 0 6px; justify-content: center; font-size: 11px; line-height: 1; white-space: nowrap; border-radius: 999px; box-shadow: none; }
  .f31-entries--fit .f31-entry__phone > .f31-chip::before { display: none; }
  .f31-entries--fit .f31-entry__phone .f31-btn { width: 76px; padding: 0 6px; gap: 4px; justify-content: center; font-size: 11px; }
  .f31-entries--fit .f31-entry__phone .f31-btn svg { width: 12px; height: 12px; }
  .f31-entries--fit .f31-entry__side .f31-select { width: 76px; height: 32px; font-size: 11px; padding-right: 20px; background-position: right 6px center; background-size: 12px 12px; }
  .f31-entries--fit .f31-entry__side .f31-select--primary { background-position: right 6px center, 0 0; background-size: 12px 12px, 100% 100%; }
  .f31-entries--fit .f31-entry__side .f31-filter--icon { width: 32px; height: 32px; }
}

/* ── The sidebar foot (v3, 2026-11-08): the one place for an app's own controls ─────────────────
   <div class="f31-sb__end">  [.f31-sb__it Settings]  [.f31-sb__sys status]
     <div class="f31-sb__me"> avatar, .f31-sb__who, .f31-daynight, at most one .f31-sb__tool (an app's own,
       e.g. Freegent's refresh), .f31-sb__out </div></div>
   Day/night, an app tool and sign-out never float at the top right of a wide page; tablets and phones keep
   them in the app's menu. Folded, only the avatar stays. */
@media (min-width: 600px) {
  .f31-sb__tool { flex: none; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--f31-muted); cursor: pointer; transition: background 0.25s, color 0.25s, transform 0.45s cubic-bezier(0.34, 1.6, 0.5, 1); }
  .f31-sb__tool:hover { background: var(--v3-fill-2); color: var(--f31-ink); transform: rotate(-30deg); }
  .f31-sb__tool svg { width: 16px; height: 16px; }
  .f31-sb__me { gap: 4px; }
  .f31-sb__me .f31-avatar { margin-right: 4px; }
  html[data-f31-sb="folded"] .f31-sb__tool { display: none; }
}

/* ── v3 Phone dock (2026-11-08, from Freegent; the owner's pick from ui/mocks/nav-v3: concept A, the More tab, with B's main action) ─────────────────
   On a phone: the tab bar with the three main screens and More, and beside it the app's main action
   (Freegent: the camera). More opens a sheet from the bottom with everything else: the other screens,
   the company, day/night, refresh, settings and you. No top bar. On a wide screen the same app shows
   the family sidebar instead (.f31-sb); its foot holds the controls the sheet holds here.
     <nav class="f31-tabbar f31-tabbar--dock"> .f31-tab ×3, <button class="f31-tab">More</button> </nav>
     <label class="f31-dock-fab" aria-label="Take a photo of a receipt"><svg/><input type="file" …></label>
     <div class="f31-more" role="dialog" aria-modal="true">
       <div class="f31-more__scrim"></div>
       <div class="f31-more__sheet"> .f31-more__grab, .f31-more__head, .f31-more__sec,
         .f31-more__tiles > .f31-more__tile, .f31-more__row (icon, words, end) </div></div>
   A main action is a <label> around a file input (or a <button>): a phone opens the camera only from
   the tap itself, never from a click made later in code (Freegent: BottomNav.tsx Dock, lib/pendingCapture.ts).
   The bar's height (--f31-tabbar-h) sets the button's size too, so the two always line up. */
.f31-tabbar.f31-tabbar--dock { right: calc(16px + var(--f31-tabbar-h) + 8px); max-width: none; margin-inline: 0; }
.f31-tabbar.f31-tabbar--dock.f31-tabbar--solo { right: 16px; }
.f31-dock-fab { position: fixed; z-index: 200; right: 16px; bottom: var(--f31-bar-bottom); width: var(--f31-tabbar-h); height: var(--f31-tabbar-h); box-sizing: border-box; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--f31-bar-edge); border-radius: 999px; background: var(--f31-bar); color: var(--f31-ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
  -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: inset 0 1px 0 var(--f31-bar-shine), 0 10px 30px var(--f31-bar-shadow); transition: transform 0.15s; }   /* iOS 26: a glass circle beside the bar, the same height and material (owner, 2026-11-08) */
.f31-dock-fab:active { transform: scale(0.94); }
.f31-dock-fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.f31-dock-fab input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.f31-more { position: fixed; inset: 0; z-index: 300; }
.f31-more__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); animation: f31-more-fade 0.25s ease both; }
/* Docked to the bottom edge like the Hub's sheet (.f31-modal--sheet), full width, top corners only (owner, 2026-11-08: "the sheet works better on hub"). */
.f31-more__sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 720px; max-height: 88dvh; margin-inline: auto; box-sizing: border-box; overflow: auto; padding: 10px 14px calc(16px + var(--f31-safe-bottom)); border-radius: var(--f31-r-sheet) var(--f31-r-sheet) 0 0;
  background: color-mix(in srgb, var(--f31-bg) 90%, transparent); -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4); box-shadow: var(--v3-shadow-hi), inset 0 0 0 1px var(--f31-line-strong); animation: f31-more-up 0.4s var(--f31-ease) both; }
.f31-more__grab { width: 40px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: var(--f31-line-strong); }
.f31-more__head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 6px; }
.f31-more__head > b { flex: 1; min-width: 0; font: 700 16px/1.2 var(--f31-title); letter-spacing: -0.02em; }
.f31-more__sec { margin: 14px 6px 8px; font: 500 10.5px/1 var(--f31-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--f31-faint); }
.f31-more__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.f31-more__tile { display: grid; justify-items: center; gap: 7px; padding: 14px 6px 12px; border: 0; border-radius: 18px; background: var(--v3-fill-2); box-shadow: inset 0 0 0 1px var(--f31-line); color: var(--f31-ink); font: 600 12.5px/1.1 var(--f31-sans); cursor: pointer; transition: transform 0.15s; }
.f31-more__tile:active { transform: scale(0.96); }
.f31-more__tile[aria-current="page"] { background: var(--v3-sel); color: var(--v3-on-sel); box-shadow: none; }
.f31-more__tile svg { width: 22px; height: 22px; }
.f31-more__row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 8px; border: 0; border-radius: 14px; background: none; color: var(--f31-ink); font: 500 15px/1.2 var(--f31-sans); text-align: left; text-decoration: none; cursor: pointer; }
.f31-more__row:active { background: var(--v3-fill-2); }
.f31-more__row > svg { flex: none; width: 20px; height: 20px; color: var(--f31-muted); }
.f31-more__row > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f31-more__row small { display: block; color: var(--f31-muted); font-size: 12.5px; }
.f31-more__row .f31-seg { flex: none; }
@keyframes f31-more-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes f31-more-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .f31-more__sheet, .f31-more__scrim { animation: none; } }
.f31-more__companies { display: flex; width: 100%; box-sizing: border-box; }
.f31-more__companies button { flex: 1; }
.f31-more__companies button.active { background: var(--v3-sel) !important; color: var(--v3-on-sel) !important; }
.f31-more__row .f31-seg { display: inline-flex; gap: 2px; padding: 3px; }
.f31-more__row .f31-seg span { padding: 6px 12px; border-radius: 999px; font: 600 12px/1 var(--f31-sans); color: var(--f31-muted); }
.f31-more__row .f31-seg span.on { background: var(--v3-sel); color: var(--v3-on-sel); }

/* ── v3 Chart, "calendar heat" (2026-11-08, owner's pick C from ui/mocks/charts-v3): drawn by f31-heat.js from
   the --f31-heat-* tokens; the native twin is HeatGrid in native/kit. These rules style the text and the parts
   around the grid. ── */
.f31-heat { width: 100%; }
.f31-heat svg { display: block; overflow: visible; }
.f31-heat__col { font: 500 9.5px var(--f31-mono); }
.f31-heat__row { font: 500 12px var(--f31-sans); font-variant-numeric: tabular-nums; }
.f31-heat__val { font: 700 10px var(--f31-sans); pointer-events: none; }
.f31-heat__cell.is-tap { cursor: pointer; }
.f31-heat__detail { margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--f31-tint); font-size: 13px; }
.f31-heat__legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12.5px; color: var(--f31-muted); }
.f31-heat__key { display: inline-flex; align-items: center; gap: 6px; }
.f31-heat__swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--tone); }
.f31-heat__swatch.is-outline { background: none; border: 1.5px dashed var(--tone); }
.f31-heat__swatch.is-ring { background: none; border: 1.5px solid var(--f31-ink); }

/* @family-sidebar:start (copied into ui/f31-sb.css by sync.sh for apps on the older stylesheet) */
/* ── v3 Sidebar, second pass (2026-11-08, owner: "a burger icon, and better layers"; mock ui/mocks/hub-home-v3) ──
   The fold button is a burger and comes first, before the mark. Layers: a section (.f31-sb__sec), its pages
   (.f31-sb__it), and a page's own parts opening in place under it:
     <div class="f31-sb__group is-open"> <a class="f31-sb__it">…</a>
       <div class="f31-sb__kids"> <button class="f31-sb__sub">Everyone</button> … </div> </div>
   A page can carry a state dot (.f31-sb__dot[data-state=ok|warn|bad]) instead of a count. Counts are quiet; only
   one that needs you now (.f31-sb__n--hot) takes the bad tint. */
@media (min-width: 600px) {
  .f31-sb__top { justify-content: flex-start; gap: 8px; padding-left: 2px; }
  .f31-sb__fold { order: -1; color: var(--f31-ink); }
  .f31-sb__n { background: var(--f31-tint); color: var(--f31-muted); }
  .f31-sb__n.f31-sb__n--hot { background: var(--f31-bad-tint); color: var(--f31-bad); }
  .f31-sb__dot { flex: none; width: 8px; height: 8px; margin-right: 4px; border-radius: 999px; background: var(--f31-faint); }
  .f31-sb__dot[data-state="ok"] { background: var(--f31-ok); }
  .f31-sb__dot[data-state="warn"] { background: var(--f31-warn); }
  .f31-sb__dot[data-state="bad"] { background: var(--f31-bad); box-shadow: 0 0 0 3px var(--f31-bad-tint); }
  .f31-sb__group > .f31-sb__it::after { content: ""; flex: none; width: 6px; height: 6px; margin: -3px 4px 0 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); opacity: 0.5; transition: transform 0.3s var(--f31-ease); }
  .f31-sb__group.is-open > .f31-sb__it::after { transform: rotate(45deg); }
  .f31-sb__kids { position: relative; display: none; gap: 1px; margin: 2px 0 6px 21px; padding-left: 12px; }
  .f31-sb__group.is-open > .f31-sb__kids { display: grid; }
  .f31-sb__kids::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1.5px; border-radius: 2px; background: var(--f31-line-strong); }
  .f31-sb__sub { display: flex; align-items: center; width: 100%; height: 32px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--f31-muted); font: 500 13px/1 var(--f31-sans); text-align: left; text-decoration: none; cursor: pointer; }
  .f31-sb__sub > span { flex: 1; }
  .f31-sb__sub:hover { background: var(--v3-fill-2); color: var(--f31-ink); }
  .f31-sb__sub.on { color: var(--f31-ink); font-weight: 600; background: var(--f31-tint); }
  /* Folded to the rail (and always under 900px): no next level, even for an open group (it used to lose to the
     .is-open rule and show its words cut off, 2026-11-08). */
  html[data-f31-sb="folded"] .f31-sb__kids, html[data-f31-sb="folded"] .f31-sb__group.is-open > .f31-sb__kids, html[data-f31-sb="folded"] .f31-sb__group > .f31-sb__it::after, html[data-f31-sb="folded"] .f31-sb__dot { display: none; }
}
  /* Day or night in the sidebar's bottom row (owner, 2026-11-08): one round icon (.f31-daynight: sun by day, moon by
     night), just above You. */
  .f31-sb__look svg { width: 20px; height: 20px; }
/* @family-sidebar:end */

/* ── Key cards on a home screen (2026-11-08): .hub-keygrid--home is three across on a wide screen and small tiles
   two to a row on a phone, where a tile keeps the name, the live line (its short form, .hub-key__short, when it
   has one) and the mark. .hub-key--tile is the same tile anywhere. ── */
.hub-keygrid--home { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }
/* Smaller on a wide screen too (owner, 2026-11-08): four across on the Hub home, the name and the mark scaled down. */
@media (min-width: 600px) {
  .hub-keygrid--home .hub-key { aspect-ratio: 1.6; padding: 16px 18px 14px; border-radius: 20px; gap: 3px; }
  .hub-keygrid--home .hub-key__name { font-size: 19px; }
  .hub-keygrid--home .hub-key__tag { font-size: 12px; }
  .hub-keygrid--home .hub-key__live { margin-top: auto; font-size: 12px; }
  .hub-keygrid--home .hub-key__water { width: 130px; height: 130px; right: -22px; bottom: -28px; font-size: 120px; }
  .hub-keygrid--home .hub-key__go { right: 14px; bottom: 12px; width: 28px; height: 28px; font-size: 12px; }
}
.hub-key__short { display: none; }
@media (max-width: 599px) {
  .hub-keygrid.hub-keygrid--home { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hub-keygrid--home .hub-key { aspect-ratio: auto; }
}
@media (max-width: 599px) {
  .hub-keygrid--home .hub-key, .hub-key--tile { min-height: 96px; padding: 13px 14px 12px; border-radius: 18px; gap: 2px; }
  .hub-keygrid--home .hub-key__name, .hub-key--tile .hub-key__name { font-size: 16px; letter-spacing: -0.03em; }
  .hub-keygrid--home .hub-key__tag, .hub-key--tile .hub-key__tag, .hub-keygrid--home .hub-key__go, .hub-key--tile .hub-key__go { display: none; }
  .hub-keygrid--home .hub-key__live, .hub-key--tile .hub-key__live { margin-top: auto; font-size: 11.5px; gap: 6px; }
  .hub-keygrid--home .hub-key__live i, .hub-key--tile .hub-key__live i { width: 6px; height: 6px; box-shadow: none; }
  .hub-keygrid--home .hub-key__long:has(+ .hub-key__short), .hub-key--tile .hub-key__long:has(+ .hub-key__short) { display: none; }
  .hub-keygrid--home .hub-key__short, .hub-key--tile .hub-key__short { display: inline; }
  .hub-keygrid--home .hub-key__water, .hub-key--tile .hub-key__water { width: 96px; height: 96px; right: -18px; bottom: -22px; font-size: 90px; }
}

/* ── v3 Chart colours (2026-11-08, from ADIOS): three roles from the app colours, in order. Primary (brass) is the one
   thing per chart that matters most (live now, next), second (sage) and third (steel) the rest. A lit bar: lighter at
   the top, the colour, then a blend toward its deep shade. <i class="f31-bar f31-bar--2" style="--h: 60%"></i> ── */
.f31-bar { --c: var(--f31-chart-1); --cd: var(--f31-chart-1-deep); display: block; height: var(--h, 100%); min-height: 4px; border-radius: 6px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c) 45%, color-mix(in srgb, var(--c) 55%, var(--cd))); }
.f31-bar--2 { --c: var(--f31-chart-2); --cd: var(--f31-chart-2-deep); }
.f31-bar--3 { --c: var(--f31-chart-3); --cd: var(--f31-chart-3-deep); }
.f31-bar--faint { opacity: 0.32; }
.f31-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.f31-bars > .f31-bar { flex: 1; }

/* ── Guest look (owner, 2026-11-24): an opt-in for guest-facing pages, so a guest sees one look from the first
   email to the front door (Bermondse check-in and landing; the guest emails are templates/email/guest.html).
   Light thin titles, gold mono labels, near-square corners (4px controls, 6px boxes), gold ring icons, thin
   gold step bars, underline tabs, spaced capital buttons. The aura and colours stay the app's own.
   Turn on with <html data-f31-look="guest">; nothing changes anywhere else. ── */
[data-f31-look="guest"] {
  --f31-guest-gold: #b08a4f;
  --f31-r-card: 6px; --f31-r-card-phone: 6px; --f31-r-row: 6px; --f31-r-ctl: 4px;
}
[data-f31-look="guest"] .f31-hd__title { font: 300 var(--f31-guest-title, 38px)/1.08 "Outfit", var(--f31-title); letter-spacing: -0.01em; }
@media (max-width: 480px) { [data-f31-look="guest"] { --f31-guest-title: 31px; } }   /* a phone keeps more of the page in view */
[data-f31-look="guest"] .f31-hd__lead { color: var(--f31-ink); opacity: .82; }
[data-f31-look="guest"] .f31-btn { border-radius: 4px; }
[data-f31-look="guest"] :is(.f31-btn--primary, .f31-btn--secondary) {
  font: 500 12.5px/1 var(--f31-sans); letter-spacing: 0.16em; text-transform: uppercase;
}
[data-f31-look="guest"] .f31-btn--primary, [data-f31-look="guest"] .f31-btn--primary:hover {
  background: var(--f31-ink); color: var(--f31-bg); box-shadow: none;
}
[data-f31-look="guest"] .f31-btn--secondary, [data-f31-look="guest"] .f31-btn--secondary:hover { background: var(--f31-bg); box-shadow: inset 0 0 0 1px var(--f31-line-strong); }
[data-f31-look="guest"] .f31-btn--link { color: var(--f31-muted); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--f31-guest-gold) 45%, transparent); }
[data-f31-look="guest"] :is(.f31-input, .f31-select, .f31-fld__box, .f31-fld__ctl, .f31-field :where(input, textarea, select)) { border-radius: 4px; }
[data-f31-look="guest"] .f31-steps__of { color: var(--f31-guest-gold); }
[data-f31-look="guest"] :is(.f31-steps__bars li > i, .f31-steps__bars button > i) { height: 2px; border-radius: 0; background: var(--f31-line); }
[data-f31-look="guest"] .f31-steps__bars :is(.is-done, .is-now) > i { background: var(--f31-guest-gold); }
[data-f31-look="guest"] .f31-fig { background: var(--f31-surface); box-shadow: inset 0 0 0 1px var(--f31-line); }
[data-f31-look="guest"] .f31-fig__value { font: 300 40px/1.1 "Outfit", var(--f31-num); letter-spacing: 0; }
[data-f31-look="guest"] .f31-appicon--sm { width: 42px; height: 42px; border-radius: 50%; background: var(--f31-surface);
  box-shadow: inset 0 0 0 1px var(--f31-line); color: var(--f31-guest-gold); }
[data-f31-look="guest"] .f31-appicon--sm svg { stroke: var(--f31-guest-gold); }
/* Tabs read as text with a gold underline, not a sliding pill. */
[data-f31-look="guest"] .f31-hd__views { gap: 22px; border-bottom: 1px solid var(--f31-line); border-radius: 0; background: none; box-shadow: none; padding: 0; }
[data-f31-look="guest"] .f31-hd__views::before { display: none; }
[data-f31-look="guest"] .f31-hd__views button { padding: 0 0 10px; min-height: 0; border-radius: 0; background: none; color: var(--f31-muted);
  font-weight: 500; border-bottom: 2px solid transparent; box-shadow: none; }
[data-f31-look="guest"] .f31-hd__views button:is([aria-pressed="true"], [aria-current="page"]) { color: var(--f31-ink); border-bottom-color: var(--f31-guest-gold); background: none; box-shadow: none; }
