/**
 * THE APP'S FONTS, FROM THE APP ITSELF (instant loading, 2026-10-07;
 * remy-hq/research/instant-loading.md section 5).
 *
 * Until then they came from Google Fonts: a stylesheet on fonts.googleapis.com
 * that held the first paint while it loaded, then the files from
 * fonts.gstatic.com. Two more origins, each a DNS look-up and a TLS handshake
 * before a single letter, which on a slow Nigerian line was seconds of blank
 * screen; and since Chrome 86 a file another site fetched is no help, because
 * the cache is kept per site. Served from here they come with the app, are
 * kept on the phone by the service worker, and work with no network.
 *
 * MONTSERRAT IS THE APP'S FACE (founder, 13 Nov 2026: "the font for the entire
 * app is montserrat"). OFL, licence beside the files, from the official
 * Google Fonts build as packaged by Fontsource (@fontsource-variable/montserrat
 * 5.3.0), variable 100 to 900:
 *   Latin (38 KB) is all a phone downloads for everyday text. Latin Extended
 *     and Vietnamese are there for customer names with Yoruba and Igbo marks
 *     (e, o, s, u with dots below), fetched only when such a name is on screen.
 *   THE NAIRA SIGN: Montserrat has one, but it sits in the 70 KB Latin
 *     Extended file. So U+20A6 is left out of that file's range and served by
 *     montserrat-naira.woff2, Montserrat's own sign cut out with its weight
 *     axis kept (4 KB), so a price is one face from the sign to the last digit.
 *   Noto Sans, subset to U+20A6 only (1.3 KB), stays behind it in --font as
 *     before, for any build that never loads this file.
 *
 * Inter stays declared below for the older builds (vbuild, vettar) whose CSS
 * still names it. The app no longer asks for it, so it is never downloaded.
 *
 * font-display: swap, as with Google: the text shows at once in the phone's
 * own face and takes Montserrat when it lands. The Latin file is preloaded in
 * next.html (vite.config.ts writes the link), so on a warm open it is there
 * before the first paint.
 */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/montserrat-latin-l_AIctKy.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/montserrat-latin-ext-BsZE-iaG.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20A5, U+20A7-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/montserrat-vietnamese-k7S-YeeD.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/montserrat-naira-C3yb6wBi.woff2") format("woff2");
  unicode-range: U+20A6;
}

/* Inter, kept for the older builds only (see above). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/inter-latin-Dx4kXJAl.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/inter-latin-ext-DO1Apj_S.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20A5, U+20A7-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/inter-vietnamese-CBcvBZtf.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/noto-sans-naira-pF38m1kN.woff2") format("woff2");
  unicode-range: U+20A6;
}

/*
 * THE PHONE'S OWN EMOJI (founder, 3 Nov 2026: "Emoji in app is not the same with my phone emoji").
 *
 * Chrome on a Samsung phone draws emoji with Google's set, while the keyboard shows Samsung's. Asked for by its file
 * name, the phone's Samsung set is used (the founder's test page, row 4). So the Montserrat family (and Inter, for the older builds) gets one more face that
 * covers only emoji and points at the phone's own emoji font. On a phone without it, this face fails and the browser
 * falls back as before: Apple's set on an iPhone, Google's elsewhere. Nothing is downloaded.
 *
 * Declared last, so for the characters it covers it wins over the text faces above (the joiner U+200D and the
 * emoji variation selector U+FE0F included, so a joined emoji such as a family stays in one font). Digits, #, *, (c),
 * (R) and TM stay Montserrat's.
 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: local("SamsungColorEmoji"), local("Samsung Color Emoji"), local("SamsungColorEmoji-Regular"), local("SECEmoji");
  unicode-range: U+200D, U+203C, U+2049, U+20E3, U+2139, U+2194-2199, U+21A9-21AA, U+231A-231B, U+2328, U+23CF, U+23E9-23F3, U+23F8-23FA, U+24C2, U+25AA-25AB, U+25B6, U+25C0, U+25FB-25FE, U+2600-27BF, U+2934-2935, U+2B05-2B07, U+2B1B-2B1C, U+2B50, U+2B55, U+3030, U+303D, U+3297, U+3299, U+FE0F, U+1F000-1FAFF, U+E0020-E007F;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: local("SamsungColorEmoji"), local("Samsung Color Emoji"), local("SamsungColorEmoji-Regular"), local("SECEmoji");
  unicode-range: U+200D, U+203C, U+2049, U+20E3, U+2139, U+2194-2199, U+21A9-21AA, U+231A-231B, U+2328, U+23CF, U+23E9-23F3, U+23F8-23FA, U+24C2, U+25AA-25AB, U+25B6, U+25C0, U+25FB-25FE, U+2600-27BF, U+2934-2935, U+2B05-2B07, U+2B1B-2B1C, U+2B50, U+2B55, U+3030, U+303D, U+3297, U+3299, U+FE0F, U+1F000-1FAFF, U+E0020-E007F;
}
/**
 * Relynked design tokens, from relynked-concept.html.
 *
 * TWO DELIBERATE DEPARTURES FROM THE PROTOTYPE, both invisible at the
 * default setting and both worth the trade:
 *
 * 1. SIZES ARE rem, NOT calc(Npx * var(--ts)).
 *    The prototype hardcodes a 16px base and multiplies it. That works,
 *    but it overrides whatever the person has set their phone's text
 *    size to, which is the one setting an older owner is most likely to
 *    have already changed. Here the root is `calc(100% * var(--ts))`,
 *    and 100% IS the device setting, so the app opens correct before we
 *    ask anything. Every prototype value converts exactly: N px becomes
 *    (N / 16) rem, so at the default setting the rendering is identical
 *    to the prototype, pixel for pixel.
 *
 * 2. --forest-2 in the dark block reads `#14miss` in the prototype,
 *    which is not a colour. It silently falls back, so dark mode was
 *    running without it. Set to #14miss's evident intent, a step above
 *    the dark --forest.
 *
 * Colour names are the prototype's own. Do not rename them; the screens
 * are ported against these.
 */

:root {
  /* The one scaling variable. Multiplies the device setting, never
     replaces it. See textScale.ts. */
  --ts: 1;

  /* THE DESIGN SCALE, which is not the same thing as --ts.
     --ts is the PERSON's text-size choice and must keep working. --ui is
     the design's own density, set once here: the whole interface was
     drawn 33% larger than it needed to be, so every rem-based size
     (type, icons, tiles, padding, radii, gaps) comes down together
     rather than by editing 148 separate declarations and getting the
     proportions wrong.

     TWO REGIONS ARE PINNED and must not follow it: the dashboard card
     and the tab bar. They read their lengths through --fix instead,
     which divides --ui straight back out, so 1 unit of --fix is what
     1rem was before this token existed. If --ui changes, they stay put.

     Anything that has to CLEAR the pinned tab bar is pinned too, or the
     content slides under glass that did not move: see .scroll, .fab and
     the sticky bars. */
  /* 0.75 was a quarter off, which read slightly too tight on a real
     handset; 0.825 gives 10% of it back. The pinned regions below do not
     move either way. */
  --ui: 0.825;
  --fix: calc(1rem / var(--ui));

  font-size: calc(100% * var(--ts) * var(--ui));

  /* ── brand ─────────────────────────────────────────────────────── */
  --forest: #0b3d2e;
  --forest-2: #0f4a38;
  --lime: #dcef4e;
  --lime-br: #e7fe25;

  /* ── surfaces ──────────────────────────────────────────────────── */
  --bg: #f6f7f7;
  /* Home's ground under the doodles: the page itself in light, a step darker in dark. */
  --bg-deep: var(--bg);
  --card: #ffffff;
  /* WHITE LIFT (founder, 2026-10-10: white lift replaces the pale green).
     The pale green fill that marked a chosen row, chip or tab read as
     "irritating" and "nauseous", so a chosen item now LIFTS instead: the
     others stay on the plain grey --fill and the chosen one turns to this
     surface with this shadow, a bolder label and, in lists and chips, a
     forest tick. Never a tint, never a coloured border, never a side edge.
     A focused phone field and the box of the code being typed lift the
     same way. */
  --sel: #ffffff;
  --sel-sh: 0 1px 2px rgba(15, 20, 18, 0.06), 0 8px 22px rgba(15, 20, 18, 0.08);
  /* The three pale greens below are KEPT DEFINED so older code and other
     branches still resolve, but they now paint the plain grey: nothing in
     the app may lay a pale green surface any more (founder, 2026-10-10:
     every pale green fill goes). Use --fill or --sel in new code. */
  --tint-row: var(--fill);

  /* ── ink and lines ─────────────────────────────────────────────── */
  --t1: #0f1412;
  --t2: #6c7478;
  --t3: #a3aaae;
  --line: #edefef;
  --fill: #f0f2f2;

  /* ── icon tile tints ───────────────────────────────────────────── */
  /* Grey now, as --tint-row above (founder, 2026-10-10). */
  --lime-pale: var(--fill);
  --mint: var(--fill);
  --amber: #fce6c4;
  --blue: #d8e7fb;
  --purple: #e4defa;
  --grey: #eceeee;
  --rose: #fbdddd;

  /* ── status ────────────────────────────────────────────────────── */
  --green: #12a150;
  --red: #e5484d;
  --orange: #e08600;
  /* HOT DEALS (shop deals): the flame and the "Ends" line. A burnt orange in light,
     a soft orange in dark; --hot-on is the ink that sits ON a --hot fill. A figure,
     an icon or a dot only, never the edge of a row or a card. */
  --hot: #c2410c;
  --hot-on: #ffffff;

  /* The dashboard artwork. Swap this one line for a season and the
     card changes everywhere it appears. A vector since 9 Nov 2026 (the
     founder: "redraw the look that gradient curvy art... 1:1"), drawn from
     dash-art.webp, so it is sharp on every phone; the same cover and centre
     crop as before (app.css .sales). */
  --dash-art: url("/dash-art.svg");

  /* ── chrome ────────────────────────────────────────────────────── */
  --glass: rgba(255, 255, 255, 0.82);
  --gline: rgba(0, 0, 0, 0.06);
  --bub-in: #eff1f1;
  --sh: 0 1px 2px rgba(15, 20, 18, 0.04), 0 8px 24px rgba(15, 20, 18, 0.05);

  /* Accents used as INK rather than as a surface. Forest is a dark
     colour; on a dark background a dark accent is simply not there, so
     these flip in dark mode and every component reads them instead of
     reaching for --forest directly. */
  --accent-ink: var(--forest);
  --on-accent: #ffffff;
  /* Ink that sits on a LIME fill, and the one accent token that must NOT
     flip in dark mode. Lime is a light colour in both themes, so its ink
     is dark in both. The selected filter chip's count read
     `color: var(--accent-ink)` on a lime pill, which is forest in light
     and LIME IN DARK, so in dark mode the number was lime on lime and
     the badge looked like an empty green blob. */
  --on-lime: var(--forest);

  /* ── type ──────────────────────────────────────────────────────── */
  /* Montserrat for the whole app (founder, 13 Nov 2026). Its naira sign
     comes from a tiny file of its own (fonts.css). "Noto Sans" is loaded
     subset to U+20A6 only and stays behind it as the fallback for that
     sign. Order matters: Montserrat must come first. */
  --font: "Montserrat", "Noto Sans", -apple-system, system-ui, "Segoe UI", sans-serif;

  /* THE TYPE SCALE (founder, 13 Nov 2026: "fonts all over the app are quite massive for the smallest tier").
     ONE ladder for every word in the app and in Relynked Staff; every font-size in styles/ and src/staff reads one of
     these (scripts/type-check.mjs fails on any other). Set against the platforms at their default text size:
       iOS HIG       Title1 28, Title2 22, Headline 17, Body 17, Subheadline 15, Footnote 13, Caption 12
       Material 3    Headline 24 to 32, Title Large 22, Title Medium 16, Body Large 16, Body Medium 14, Label 12
       WhatsApp, Moniepoint, OPay on Android: list titles 14 to 16, second lines 12 to 14, page titles 20 to 22
     then brought down about 8% for Montserrat, which is wide with a tall x-height and reads that much bigger than
     SF, Roboto or Inter at the same px. In device px at the smallest size (Fine), so they follow the phone's own text
     setting and the person's Aa choice (--ts) and never the design density (--ui): --fix divides --ui back out. */
  --fs-u: calc(var(--fix) / 16);
  --fs-hero: calc(34 * var(--fs-u)); /* the money figure on the revenue card, the one 800 */
  --fs-display: calc(26 * var(--fs-u)); /* Ask Remy's hello, Sign in's welcome, a big number on a sheet */
  --fs-title: calc(22 * var(--fs-u)); /* a page title (Listings, Settings, Chats) */
  --fs-head: calc(17 * var(--fs-u)); /* a section head, a sheet title, the business name */
  --fs-row: calc(15 * var(--fs-u)); /* a row's title, a primary button, a field */
  --fs-body: calc(14 * var(--fs-u)); /* body text, a header button, a chip in a sheet */
  --fs-meta: calc(13 * var(--fs-u)); /* a row's second line, a filter chip, See all */
  --fs-label: calc(12 * var(--fs-u)); /* a small label, a caption, a badge word */
  --fs-micro: calc(11 * var(--fs-u)); /* the revenue card's day letters and counts only */
  /* What you type into: never under 16px, or a phone zooms the page in when the field takes focus. */
  --fs-input: max(16px, var(--fs-row));
  --lh-tight: 1.25;
  --lh-body: 1.42;

  /* The prototype's ladder, kept as names so older code still resolves, each now one step of the scale above. */
  --t-d1: var(--fs-title);
  --t-d2: var(--fs-head);
  --t-h1: var(--fs-row);
  --t-bd: var(--fs-body);
  --t-sm: var(--fs-meta);
  --t-xs: var(--fs-label);
  --t-cap: var(--fs-label);
  --t-13: var(--fs-meta);
  --t-14: var(--fs-body);
  --t-19: var(--fs-head);
  --t-nm: var(--fs-display);
  --t-big: var(--fs-hero);

  /* THE CONTROL SCALE (founder, 13 Nov 2026: "buttons and highlighters of selected options look off"). A control is
     sized to its words, never bigger than the page title; the 44px target is an invisible ring round a smaller
     visual where needed (scripts/type-check.mjs). */
  --ctl-head: calc(36 * var(--fs-u)); /* a header action (Add, Save) */
  --ctl-chip: calc(32 * var(--fs-u)); /* a filter chip, a segmented control, the grid or list toggle */
  --ctl-icon: calc(36 * var(--fs-u)); /* an icon button's visual, inside a 44px target */
  --ctl-primary: calc(48 * var(--fs-u)); /* a full-width primary button */
  --tap-min: 44px;

  /* ── radii ─────────────────────────────────────────────────────── */
  --r-sm: 0.6875rem; /* 11px */
  --r-md: 0.9375rem; /* 15px */
  --r-lg: 1.125rem; /* 18px */
  --r-xl: 1.25rem; /* 20px */
  --r-2xl: 1.375rem; /* 22px */
  --r-pill: 62.4375rem;

  /* Hairlines stay in px on purpose: a 1px rule is a rendering detail,
     not a reading size, and should be 1px at every text scale. */
  --hair: 1px;
}

/* ── dark ──────────────────────────────────────────────────────────
   Three states, not two. An explicit choice stamps data-theme; the
   default "system" stamps nothing, so prefers-color-scheme is the only
   signal and the media query must not beat an explicit light choice. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --forest: #0f4a38;
    /* The prototype has "#14miss" here, which is not a colour, so dark
       mode was running with --forest-2 unset. This is the step above
       --forest it was clearly meant to be. */
    --forest-2: #1a6049;
    --bg: #0b0c0d;
    --bg-deep: #08090a;
    --card: #17191a;
    /* White lift in the dark: --card is DARKER than --fill here, so a
       chosen item steps up to a lighter tone than the grey around it, with
       a faint light ring and a soft shadow (founder, 2026-10-10). */
    --sel: #2b2f30;
    --sel-sh: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.45);
    --tint-row: var(--fill);
    --t1: #f2f4f4;
    --t2: #9ca3a6;
    --t3: #5e6669;
    --line: #242728;
    --fill: #212425;
    --lime-pale: var(--fill);
    --mint: var(--fill);
    --amber: #2e2210;
    --blue: #13202e;
    --purple: #201c33;
    --grey: #232626;
    --rose: #2e1616;
    --green: #30d158;
    --red: #ff453a;
    --orange: #ff9f0a;
    --hot: #ff9158;
    --hot-on: #2a1204;
    --glass: rgba(23, 25, 26, 0.8);
    --gline: rgba(255, 255, 255, 0.07);
    --bub-in: #212425;
    --sh: none;
    --accent-ink: var(--lime);
    --on-accent: var(--forest);
  }
}

:root[data-theme="dark"] {
  --forest: #0f4a38;
  --forest-2: #1a6049;
  --bg: #0b0c0d;
  --bg-deep: #08090a;
  --card: #17191a;
  --sel: #2b2f30;
  --sel-sh: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.45);
  --tint-row: var(--fill);
  --t1: #f2f4f4;
  --t2: #9ca3a6;
  --t3: #5e6669;
  --line: #242728;
  --fill: #212425;
  --lime-pale: var(--fill);
  --mint: var(--fill);
  --amber: #2e2210;
  --blue: #13202e;
  --purple: #201c33;
  --grey: #232626;
  --rose: #2e1616;
  --green: #30d158;
  --red: #ff453a;
  --orange: #ff9f0a;
  --hot: #ff9158;
  --hot-on: #2a1204;
  --glass: rgba(23, 25, 26, 0.8);
  --gline: rgba(255, 255, 255, 0.07);
  --bub-in: #212425;
  --sh: none;
  --accent-ink: var(--lime);
  --on-accent: var(--forest);
}

/* THE DEFAULT SIZE OF EVERY ICON (ui/AppIcon.tsx Icon always carries `ico`; its comment promised this rule, and it
   was never written). An svg with a viewBox and no size stretches to its box: on the "Hand over to me when" screen
   the padlock at the end of each Always row grew to the row's width and pushed its words into one per line (founder,
   nana, 9 Nov 2026). :where() keeps this at zero specificity, so every existing sizing rule still wins. */
:where(svg.ico) {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}
/* An icon at the end of a list row (Row's `right`), such as the Always padlock: chevron sized, quiet. Also zero
   specificity: a row's own chevron rule (.li .chev and the like) keeps its size. */
:where(.li > svg.ico) {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--t3);
}
/**
 * The opening.
 *
 * Choreography, in one sentence: the forest tile appears, the two bars
 * fall into it with a bounce, the word unfurls to the right which pushes
 * the tile left until the pair sits centred, the word folds back into the
 * tile, then the mark moves into its resting place on the next screen.
 *
 * In Relynked (src/next/App.tsx) the last two steps (the word back in, the
 * move) are drawn by src/next/opening.ts, founder 7 Nov 2026, and the move is
 * no longer the view transition described below: see that file for why. The
 * view transition rules further down stay as they were for Relynked Staff
 * (src/staff/App.tsx) and the other apps that load this file.
 *
 * Two decisions worth stating.
 *
 * THE TILE IS NEVER TOLD TO MOVE LEFT. The lockup is a centred flex row;
 * the word grows from zero width, and the tile is displaced by it. So
 * the two movements are one movement, and they cannot drift out of sync
 * or disagree about where the centre is. Animating both independently to
 * meet in the middle is the version that looks almost right and is
 * impossible to tune.
 *
 * THE LAST STEP IS A VIEW TRANSITION, NOT A KEYFRAME. The mark carries
 * `view-transition-name`, and so does the logo on Welcome and on Sign in,
 * so the browser tweens between wherever the mark actually is and
 * wherever it actually needs to be. Hand-computed positions would drift
 * the moment the text-size setting changes the target's size, or the
 * phone is rotated, or a screen is added. Where view transitions are
 * unsupported the app simply cuts, which is honest; see motion.ts.
 *
 * Load after tokens.css, before app.css.
 */

:root {
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  /* Overshoot, for things that land rather than arrive. */
  --ease-bounce: cubic-bezier(0.3, 1.5, 0.5, 1);
}

/* ── the opening sequence ───────────────────────────────────────────
   Timings are absolute rather than relative so the whole thing can be
   read down the page:
     0        tile scales up
     300      short bar drops
     400      long bar drops
     950      word unfurls, 700ms, tile is pushed left (fully out at about
              1430; the box keeps widening, unseen, until 1650)
   In Relynked (opening.ts):
     1450     word-unfurl played backwards, the same 700ms with the easing
              mirrored (founder, 7 Nov 2026): the word stands still for the
              first 200ms (the unseen end of the slide-out, backwards), then
              slides back into the tile, in at about 2170 (HAND_AT_MS,
              WORD_BACK_MS)
     2170     the mark moves to the next screen's logo while that screen
              fades in, 440ms (FLY_MS); landed at about 2610
   A slow first load holds the full lockup until the next screen is ready,
   then runs the last two steps.
*/

.splash .lockup {
  display: flex;
  align-items: center;
  justify-content: center;
}

/*
 * THE LOCKUP IS SIZED FROM ONE NUMBER.
 *
 * The mark was 5.5rem against a 2.125rem wordmark: measured on screen
 * that is 73px of logo beside 34px of text, better than twice its
 * height, and it read as an icon with a caption rather than a lockup.
 *
 * Both now come off --wordmark, and the multiplier was MEASURED rather
 * than reasoned about. Cap height and descender ratios differ by font and
 * weight, so the only honest comparison is where each thing actually
 * paints: a screenshot of the rendered splash, scanned for the rows that
 * are not the near-black ground. At 1.05 the tile measured 29px of ink
 * against the word's 27px, a ratio of 1.07; 1.10 puts it at about 1.13,
 * which is the "a little taller, not twice as tall" that was asked for.
 *
 * The word's ink includes the descender of the "y", which is why the
 * number is lower than a cap-height comparison would suggest.
 */
.splash .lockup {
  --wordmark: 2.125rem;
  gap: 0.5rem;
}

.splash .mk {
  width: calc(var(--wordmark) * 1.1);
  height: calc(var(--wordmark) * 1.1);
  flex: none;
}

/* SVG children need an explicit transform box, or the origin is the
   whole SVG canvas and a scale sends the part flying off. */
.splash .lg-tile,
.splash .lg-bar {
  transform-box: fill-box;
  transform-origin: center;
}

.splash .lg-tile {
  animation: tile-in 460ms var(--ease-bounce) both;
}

/* Lengths here are SVG user units (the viewBox is 0 0 100 100), so the
   drop distance scales with the mark at any rendered size. */
.splash .lg-bar-1 {
  animation: bar-drop 560ms var(--ease-bounce) 300ms both;
}
.splash .lg-bar-2 {
  animation: bar-drop 560ms var(--ease-bounce) 400ms both;
}

.splash .wd {
  font-size: var(--wordmark);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--paper, #fff);
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  animation: word-unfurl 700ms var(--ease) 950ms both;
}

@keyframes tile-in {
  from {
    transform: scale(0.35);
    opacity: 0;
  }
}

@keyframes bar-drop {
  from {
    transform: translateY(-62px);
    opacity: 0;
  }
}

@keyframes word-unfurl {
  from {
    max-width: 0;
    margin-left: 0;
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  to {
    /* Only a little wider than the word actually is (about 8.6rem at
       scale 1). A cap far above the real width means the animation
       spends most of its duration growing a box that is already bigger
       than its contents, so the reveal appears to finish early and then
       nothing happens. In rem, so the headroom holds at every text
       size. */
    max-width: 10rem;
    margin-left: 0.75rem;
    opacity: 1;
  }
}

/* ── steps 3 and 4 in Relynked: the hand-over layer (opening.ts) ─────
   Laid over the window for the length of the move: the splash's ground and
   a copy of the mark, which opening.ts places every frame. It never takes a
   tap, so the screen under it can be used the moment it is there. */
.opening-layer {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
}
.opening-ground {
  position: absolute;
  inset: 0;
}
/* The still copy of the splash: it is a `.splash`, so it keeps the lockup's
   sizes, but it must not play the opening again. opening.ts writes where the
   word and the parts are as inline styles, and draws steps 3 and 4 itself. */
.opening-stage,
.opening-stage * {
  animation: none !important;
}
.opening-mark {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  overflow: visible;
}

/* ── the handover (Relynked Staff) ──────────────────────────────────
   The mark is lifted out of the page snapshot and tweened on its own
   path, so it survives the change of screen instead of being redrawn
   there. The word has no counterpart on the next screen, so it leaves
   on its own rather than trying to morph into nothing. */

.mk {
  view-transition-name: relynked-mark;
}
.splash .wd {
  view-transition-name: relynked-word;
}

::view-transition-group(relynked-mark) {
  animation-duration: 620ms;
  animation-timing-function: var(--ease-bounce);
}
/* The two snapshots are the same artwork at different sizes, so the
   browser's own plus-lighter cross-fade has nothing to reveal. Forcing
   `animation: none` instead would stack two opaque tiles and swap the
   colour in one frame partway through the travel. */
::view-transition-old(relynked-mark),
::view-transition-new(relynked-mark) {
  animation-duration: 620ms;
  animation-timing-function: var(--ease-in-out);
}

/* Only when the next screen has no wordmark of its own (Welcome, Sign up):
   the word has nothing to travel to, so it leaves. Where there is a pair
   (Sign in), the two snapshots morph and cross-fade instead; see the
   splash-morph block below. */
::view-transition-old(relynked-word):only-child {
  animation: word-away 300ms var(--ease-in-out) both;
}

@keyframes word-away {
  to {
    opacity: 0;
    transform: translateX(0.75rem);
  }
}

/* The screen underneath fades up. It must NOT also travel: the mark is
   already moving, and a second thing moving on a small screen at a
   different speed is what reads as a tear. */
html[data-nav="splash"]::view-transition-old(root) {
  animation: fade-out 320ms var(--ease-in-out) both;
}
html[data-nav="splash"]::view-transition-new(root) {
  animation: fade-in 620ms var(--ease-in-out) both;
}

/* ── the splash morphing into Welcome, Sign in or Sign up ───────────
   (kind "splash-morph", see App.tsx and motion.ts.)

   The logo tile, and the wordmark where the next screen has one, travel
   and resize into their place. They carry the same view-transition-name
   on both sides: Welcome and Sign up already name their .mk above, and
   Sign in's tile, its wordmark and the doodle backdrop are named here,
   ONLY for this hand-over, so no other screen change picks them up.

   Ease-out, no bounce, about 600ms. The splash's own dark ground stays
   fully opaque underneath while the new page fades in OVER it, so the
   page never dips through a muddy middle colour. The page rises a
   little as it arrives. The doodles are the exception: they are lifted
   out of the page and only fade, so they are already in place under the
   logo and never ride along with it. */
html[data-nav="splash-morph"] .si-mk {
  view-transition-name: relynked-mark;
}
html[data-nav="splash-morph"] .si-word {
  view-transition-name: relynked-word;
}
html[data-nav="splash-morph"] .dd {
  view-transition-name: relynked-doodles;
}

html[data-nav="splash-morph"]::view-transition-group(relynked-mark),
html[data-nav="splash-morph"]::view-transition-group(relynked-word) {
  animation-duration: 620ms;
  animation-timing-function: var(--ease);
}
html[data-nav="splash-morph"]::view-transition-old(relynked-word):not(:only-child),
html[data-nav="splash-morph"]::view-transition-new(relynked-word):not(:only-child) {
  animation-duration: 620ms;
  animation-timing-function: var(--ease);
}
html[data-nav="splash-morph"]::view-transition-old(root) {
  animation: none;
  mix-blend-mode: normal;
}
html[data-nav="splash-morph"]::view-transition-new(root) {
  /* Starts a beat after the logo sets off, so the headline is not showing
     while the logo is still passing through it. */
  animation: page-in 480ms var(--ease) 180ms both;
  mix-blend-mode: normal;
}
html[data-nav="splash-morph"]::view-transition-new(relynked-doodles) {
  animation: fade-in 600ms var(--ease) 60ms both;
}

/* ── ordinary screen changes ────────────────────────────────────────
   A push rises slightly so it has a direction; back reverses it. Tabs
   only cross-fade, and faster: a tab is a place you were already, and
   380ms of travel four times a minute stops being delightful long
   before it stops being noticeable. */
::view-transition-old(root) {
  animation: fade-out 200ms var(--ease-in-out) both;
}
::view-transition-new(root) {
  animation: page-in 300ms var(--ease) both;
}
html[data-nav="back"]::view-transition-new(root) {
  animation: page-in-back 300ms var(--ease) both;
}
html[data-nav="tab"]::view-transition-old(root),
html[data-nav="tab"]::view-transition-new(root) {
  animation-duration: 160ms;
}
html[data-nav="tab"]::view-transition-new(root) {
  animation-name: fade-in;
}

/* The tab bar is lifted out of the page snapshot so it stays nailed
   down instead of riding the page animation on every push. Its two
   snapshots are identical, so the cross-fade is invisible. */
.tabs {
  view-transition-name: relynked-tabs;
}

@keyframes fade-out {
  to {
    opacity: 0;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(0.625rem);
  }
}
@keyframes page-in-back {
  from {
    opacity: 0;
    transform: translateX(-0.625rem);
  }
}

/* ── reduced motion is law ──────────────────────────────────────────
   Not a softening: switched off. Someone who asked their phone for less
   movement usually did so because movement makes them ill, and a gentler
   bounce is still a bounce. Nothing above carries meaning that is not
   also written on the screen, so the app stays complete without it. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .splash .wd {
    max-width: 10rem;
    margin-left: 0.75rem;
    opacity: 1;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* ── the theme switch (theme.ts, setThemeSmooth) ────────────────────
   A pure cross-fade and nothing else: the new theme dissolves in OVER
   the old one, which stays fully opaque underneath, so the page never
   dips toward the other theme's colour in the middle (the browser's own
   plus-lighter blend does, which on a light to dark switch is a flash
   of white). Nothing moves or scales: a theme is not a place you went.
   Every named piece (the mark) is held still so it fades with the page. */
html[data-nav="theme"]::view-transition-group(*) {
  animation-duration: 0.01ms;
}
html[data-nav="theme"]::view-transition-old(*) {
  animation: none;
  mix-blend-mode: normal;
}
html[data-nav="theme"]::view-transition-new(*) {
  animation: fade-in 320ms var(--ease-in-out) both;
  mix-blend-mode: normal;
}

/* Where there are no view transitions: every colour eases for the third
   of a second `data-theming` is on the root. Layout properties are not in
   the list, so nothing can shift. */
html[data-theming] *,
html[data-theming] *::before,
html[data-theming] *::after {
  transition:
    background-color 300ms ease,
    color 300ms ease,
    border-color 300ms ease,
    stroke 300ms ease,
    fill 300ms ease,
    box-shadow 300ms ease !important;
}
/**
 * Relynked component layer, ported from relynked-concept.html.
 *
 * Class names are the prototype's own, so a screen can be read against
 * it side by side. Every size is the prototype's value converted from
 * `calc(Npx * var(--ts))` to `(N/16)rem`, which renders identically at
 * the default text size and additionally inherits the device setting.
 * See tokens.css for why.
 *
 * Relynked is the app. Remy is the assistant inside it.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body,
#root {
  height: 100%;
}

body {
  font-family: var(--font);
  /* The type scale's body and its line height (tokens.css): anything that names no size reads these. */
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  background: var(--bg);
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}

input,
textarea {
  font: inherit;
  color: inherit;
}
input,
textarea,
select {
  font-size: var(--fs-input);
}

/* Headings sit tighter than body, and a big title a touch tighter still (zero specificity: a screen's own rule wins). */
:where(h1, h2, h3, h4, b, strong) {
  line-height: var(--lh-tight);
}
:where(h1, .d1) {
  letter-spacing: -0.015em;
}

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* ── the phone frame ───────────────────────────────────────────────
   On a real device this is the whole viewport. Capped and centred so
   the same build is usable in a desktop browser while it is being
   reviewed, which is how the Meta screencast gets recorded. */
/* The phone frame. NOT `.ph`: that was a two-letter class a modifier
   could collide with, and twice it did. A `val ph` placeholder and an
   `askbar > .ph` both matched this rule and inherited height: 100dvh,
   rendering a form row and then a search bar at the height of the
   screen. A name nothing will reach for by accident. */
.frame {
  position: relative;
  width: 100%;
  /* Pinned: this is the device's own width, not a type size. Left to
     follow --ui it would cap a 390px phone at 330px and leave dead
     gutters down both sides. */
  max-width: calc(27.5 * var(--fix));
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  color: var(--t1);
  overflow: hidden;
  /* CLIP, NOT JUST HIDDEN (founder, 13 Nov 2026: Connect opened with its head and title gone). The tab bar slides
     82px below this box on a pushed page, and a box that is merely overflow: hidden can still be scrolled by script
     or by the browser bringing something into view (scrollIntoView, a focused field): the whole app then sat 82px
     up, the head off the top of the screen. Clip cannot be scrolled at all. (main.tsx holds it at 0 where a browser
     has no clip.) */
  overflow: clip;
  display: flex;
  flex-direction: column;
  /* THE NOTCH (2026-09-27). viewport-fit=cover lets the page draw under
     the status bar, the notch and the Dynamic Island, which is what the
     iPhone and Android app shells do, and every header sat under the
     clock. A BORDER, not padding, on purpose: the screens, sheets and the
     splash are absolutely positioned against this box, and an absolute
     child's containing block is the padding box, which starts INSIDE the
     border. So a border moves every one of them below the notch at once,
     and padding would move none. Zero in a browser tab, where the browser
     keeps the page clear of the status bar itself. */
  border-top: env(safe-area-inset-top, 0px) solid var(--frame-top, var(--bg));
}
/* The strip under the clock takes the colour of what fills the screen, so
   the splash and the photo viewer still read as edge to edge. */
.frame:has(> .splash) {
  --frame-top: #071a14;
}
.frame:has(.mviewer) {
  --frame-top: #000;
}

.scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  scrollbar-width: none;
  /* Clears the floating tab bar: its 1.625rem bottom offset plus its
     3.75rem height, and the rest is breathing room so the last card does
     not sit tight under the glass. Follows the bar's height. */
  /* Pinned with the bar it clears. The bar did not shrink, so neither
     can the room left for it, or the last card slides under glass. */
  padding-bottom: calc(7.5 * var(--fix));
}
.scroll::-webkit-scrollbar {
  display: none;
}
.pad {
  padding: 0 1.125rem;
}

/* ── type ──────────────────────────────────────────────────────────── */
.d1 {
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.d2 {
  font-size: var(--fs-head);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.h1 {
  font-size: var(--fs-row);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.bd {
  font-size: var(--fs-body);
  font-weight: 500;
}
.sm {
  font-size: var(--fs-meta);
  font-weight: 500;
}
.xs {
  font-size: var(--fs-label);
  font-weight: 600;
}
.sec {
  color: var(--t2);
}
.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.cap {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--t2);
}

/* ── top bar ───────────────────────────────────────────────────────── */
.tbar {
  display: flex;
  align-items: center;
  gap: 0.6875rem;
  padding: 0.375rem 1.125rem 0.875rem;
}
/* A CIRCLE, like the person's avatar at the other end of the bar. The
   two are the same kind of thing: one identifies the business, one the
   person, and a rounded square beside a circle read as two unrelated
   controls. `overflow: hidden` is what will crop a real uploaded logo to
   the circle once business logos are stored. */
.tbar .logo {
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  display: block;
  border-radius: 50%;
  overflow: hidden;
}
.tbar .logo svg {
  width: 100%;
  height: 100%;
  display: block;
}
.tbar .who {
  flex: 1;
  min-width: 0;
}
/* The mark and the name together are one button onto the Business profile
   (founder, 2026-09-25). It takes the space .who used to, and the reset's
   padding is zeroed so the circle stays where it was. */
.tbar .brand {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.6875rem;
  padding: 0;
  text-align: left;
  color: inherit;
}
.tbar .who b {
  font-size: var(--fs-row);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  letter-spacing: -0.01em;
}
/* THE NAME IS ALWAYS ONE LINE (founder, 2026-10-11): too long, it ends in an
   ellipsis, and the whole name is on the business profile one tap away. */
.tbar .who b .nm {
  font-style: normal;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tbar .who span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* On a phone the header has no Install pill: the install offer lives in the
   dismissible banner on Home and on the install screen (founder, 2026-10-11).
   A narrow computer window gets the same, so the name keeps its room. */
@media (max-width: 599.98px) {
  .tbar .instl-pill {
    display: none;
  }
}
.tbar .who b svg {
  width: 0.9375rem;
  height: 0.9375rem;
  color: var(--t2);
  flex: none;
}
.tbar .who span {
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 500;
}
.tbar .ib {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  position: relative;
  color: var(--t1);
}
.tbar .ib svg {
  width: 1.3125rem;
  height: 1.3125rem;
}
.tbar .ib .dot {
  position: absolute;
  top: 0.375rem;
  right: 0.4375rem;
  width: 0.5625rem;
  height: 0.5625rem;
  border-radius: 50%;
  background: var(--lime-br);
  border: 2px solid var(--bg);
}
.tbar .pf {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: var(--fs-body);
  flex: none;
  /* PADDING ZEROED, AND IT IS LOAD BEARING. The global button reset gives
     every button `padding: 1px 6px`, and with box-sizing: border-box that
     left this 36px circle a CONTENT box of 24x34. A picture set to
     width/height 100% sizes against the content box, so a perfectly square
     photo came out as a tall ellipse inside the round button. Measured
     rather than guessed: the button was always a circle, the image never
     was.
     overflow: hidden so the circle itself does the clipping, instead of
     trusting a border-radius on the child to agree with this one. */
  padding: 0;
  overflow: hidden;
}

/* ── greeting ──────────────────────────────────────────────────────── */
/* The top padding drops the greeting away from the business header, so
   the name reads as the start of the page rather than as another line of
   chrome hanging off the bar above it. */
.greet {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6875rem 1.125rem 1rem;
}
.greet .tx {
  flex: 1;
}
/* Deliberately a step below the name's own size: this is the throwaway
   half of the greeting and the name is the half worth reading. */
.greet .hi {
  color: var(--t2);
  font-size: var(--fs-body);
  font-weight: 500;
}
/* No bottom margin: it used to buy space from the summary line that sat
   under the name, and the gap down to the card is .greet's own padding. */
.greet .nm {
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0.0625rem 0 0;
}
/* Grey, not pale lime (founder, 2026-10-10: white lift replaces the pale
   green). The figure and its white icon circle carry it. */
.trend {
  background: var(--fill);
  border-radius: var(--r-sm);
  padding: 0.6875rem 0.875rem;
  flex: none;
  text-align: left;
  color: var(--t1);
}
.trend .ic {
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  margin-bottom: 0.3125rem;
  color: var(--accent-ink);
}
.trend .ic svg {
  width: 0.875rem;
  height: 0.875rem;
}
.trend b {
  font-size: var(--fs-row);
  font-weight: 600;
  display: block;
  letter-spacing: -0.01em;
}
.trend span {
  display: block;
  font-size: var(--fs-label);
  color: var(--t2);
  font-weight: 500;
}

/* ── sales card ────────────────────────────────────────────────────── */
/* The dashboard card carries artwork, not a flat fill.
   --dash-art is a variable on purpose: the whole point is to swap it
   with the seasons, which is then one line rather than a code change.
   The forest underneath is not a fallback nobody sees, it is what shows
   while the image loads and if it ever fails, so the white text on top
   is always legible. */
.sales {
  margin: 0 calc(1.125 * var(--fix));
  background-color: var(--forest);
  background-image: var(--dash-art);
  background-size: cover;
  background-position: center;
  border-radius: var(--r-2xl);
  padding: calc(0.75 * var(--fix)) calc(1 * var(--fix)) calc(0.875 * var(--fix));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.sales .hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Not bold. It is the caption on the number, not a heading competing
   with it. */
.sales .hd .ttl {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}
.sales .rep {
  display: flex;
  align-items: center;
  gap: calc(0.3125 * var(--fix));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-pill);
  padding: calc(0.25 * var(--fix)) calc(0.5625 * var(--fix));
  font-size: var(--fs-label);
  font-weight: 500;
  color: #fff;
}
.sales .rep svg {
  width: calc(0.8125 * var(--fix));
  height: calc(0.8125 * var(--fix));
}
/* THE EYE (moneyEye.ts) sits beside View report, the same white outline on
   the forest. The tap area is larger than the ring. */
.sales .hdr {
  display: flex;
  align-items: center;
  gap: calc(0.5 * var(--fix));
}
.eyebtn {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(1.75 * var(--fix));
  height: calc(1.75 * var(--fix));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
}
.eyebtn::after {
  content: "";
  position: absolute;
  inset: calc(-0.4 * var(--fix));
}
.eyebtn svg {
  width: calc(1 * var(--fix));
  height: calc(1 * var(--fix));
}
/* A hidden figure (ui/Money.tsx): the real one stays in the layout, unseen,
   so the box keeps its width; the mask sits on top of it. */
.mv {
  display: inline-grid;
}
.mv > * {
  grid-area: 1 / 1;
  justify-self: start;
}
.mv-real {
  visibility: hidden;
}
.mv-mask {
  white-space: nowrap;
}
/* THE ONLY BOLD THING ON THIS CARD. */
.sales .big {
  /* The token is rem and would follow --ui; the card is pinned, so
     this is the token's own value held through --fix. */
  font-size: var(--fs-hero);
  font-weight: 800;
  /* No negative tracking on the money figure: the naira sign comes from
     a different face to the digits, so tightening on top of that runs
     the sign into the first digit. */
  letter-spacing: 0;
  line-height: 1.05;
}
.sales .big .cur {
  margin-right: 0.08em;
}
/* Money on the left, the week on the right, on ONE row. Stacking them
   was most of the card's old height. */
.sales .bot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: calc(0.75 * var(--fix));
  margin-top: calc(0.4375 * var(--fix));
}
.sales .fig {
  min-width: 0;
}
.sales .wk {
  flex: none;
}
.sales .meta {
  display: flex;
  align-items: center;
  gap: calc(0.5 * var(--fix));
  font-size: var(--fs-meta);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  white-space: nowrap;
  flex: none;
  margin-top: calc(0.25 * var(--fix));
}
/* Count on top, comparison beneath. */
.sales .meta .lines {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
/* Was a <b> at 700. The money is the only bold thing on this card, so
   this is a plain span carrying nothing but full-strength white, which
   is enough to separate it from the line beneath. */
.sales .meta .lines .n1 {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
}
.sales .meta .lines span {
  font-size: var(--fs-micro);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.2;
}
/* Nothing has happened yet: grey, and pointing along rather than up. */
.sales .meta .up.flat {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
}
.sales .meta .up {
  width: calc(1.375 * var(--fix));
  height: calc(1.375 * var(--fix));
  border-radius: 50%;
  background: var(--lime);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--forest);
}
.sales .meta .up svg {
  width: calc(0.8125 * var(--fix));
  height: calc(0.8125 * var(--fix));
}
/* Seven bars on a seven-column grid, and the axis uses the SAME grid, so
   a label sits under its own bar instead of being spaced independently
   and drifting out of line. */
/* Slender bars, close together. The first pass stretched seven bars
   across 55% of the card, which made each one a fat slab. The chart is a
   glance, not a read: it needs to say "the week has a shape" in a
   quarter of a second, and thin marks with tight spacing do that while
   thick ones just take up room.

   Fixed bar width rather than 1fr columns, so the bars stay slim and the
   group sits together instead of spreading to fill whatever width is
   left over. */
/* Slender bars, grouped tight.
   Width and gap are fixed rather than fractions of the card: 1fr columns
   stretched seven bars into fat slabs, and shrinking them to 8px with a
   5px gap turned them into dots with the weekday labels colliding.
   7px bars on a 19px pitch is thin enough to read as a chart and wide
   enough that the labels under every other bar clear each other. */
.chart {
  --bar: calc(0.4375 * var(--fix));
  --pitch: calc(0.75 * var(--fix));
  display: grid;
  grid-template-columns: repeat(7, var(--bar));
  gap: var(--pitch);
  justify-content: end;
  margin-left: auto;
}
.chart {
  align-items: end;
  /* Halved with the rest of the card. The chart is a glance at the
     week's shape, and the shape survives at this height. */
  height: calc(1.75 * var(--fix));
}
.chart i {
  /* Rounded, not a pill: at 7px wide a full pill radius turns a short
     bar into a dot, which is what a quiet week looked like. */
  border-radius: calc(0.21875 * var(--fix));
  background: rgba(255, 255, 255, 0.24);
  display: block;
  width: 100%;
  min-height: calc(0.75 * var(--fix));
}
.chart i.on {
  background: var(--lime);
}
/* Days that have not happened yet. Present, so the week keeps its
   shape, but clearly not a day that traded and made nothing. */
.chart i.future {
  background: rgba(255, 255, 255, 0.1);
}
/* Only four labels, spread across exactly the chart's own width. A
   7-column grid cannot hold four words at this pitch without them
   touching, but bars 1, 3, 5 and 7 are evenly spaced, so space-between
   over the same width lands each label on its own bar. */
.axis {
  display: flex;
  justify-content: space-between;
  width: calc(7 * calc(0.75 * var(--fix)) + 6 * calc(0.5625 * var(--fix)));
  margin-left: auto;
  font-size: var(--fs-micro);
  color: rgba(255, 255, 255, 0.72);
  margin-top: calc(0.25 * var(--fix));
  font-weight: 500;
  white-space: nowrap;
}

/* THE HOME LOOK OF 13 NOV 2026 (founder's mockup): a thin lighter diagonal band across the art, the money figure
   is its own show and hide (no eye), View report a small pill of its own, rising bars drawn in the corner, and the
   week as seven rings with today filled lime. */
.sales::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* The sheen, then a richer green laid over the art. */
  background:
    linear-gradient(118deg, transparent 52%, rgba(255, 255, 255, 0.09) 52.4%, rgba(255, 255, 255, 0.04) 60%, transparent 60.4%),
    linear-gradient(135deg, rgba(38, 160, 64, 0.32), rgba(12, 110, 48, 0.12));
}
.sales > * {
  position: relative;
}
.sales .rep {
  border: 0;
  background: rgba(0, 0, 0, 0.24);
  padding: calc(0.375 * var(--fix)) calc(0.625 * var(--fix)) calc(0.375 * var(--fix)) calc(0.75 * var(--fix));
  font-size: var(--fs-meta);
  position: relative;
}
.sales .rep::after {
  content: "";
  position: absolute;
  inset: -8px -4px;
}
.sales .figtap {
  all: unset;
  display: block;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.05;
  -webkit-tap-highlight-color: transparent;
}
.sales .figtap:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
  border-radius: 6px;
}
.sales .wk {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.sales .rise {
  width: calc(2.75 * var(--fix));
  height: auto;
  margin: 0 calc(0.25 * var(--fix)) calc(0.5 * var(--fix)) 0;
  color: rgba(220, 239, 78, 0.85);
}
/* THE WEEK AS BARS (founder, 13 Nov 2026): seven slim rounded bars on the same seven columns the axis uses, so each
   label sits under its own bar. Height is set per bar (SalesCard.tsx) against the week's best day; a day with nothing
   keeps a stub. Today lime, a past day light white, a day to come a faint outline stub. */
/* THE CHART'S BOX (founder, 13 Nov 2026): the right 40% of the card, from about the middle to the right padding, so the
   money has the rest. Seven equal columns there, the bars and their labels on the same columns. */
.sales .bot {
  align-items: flex-end;
}
.sales .fig {
  flex: 1 1 0;
  min-width: 0;
}
.sales .wk {
  flex: 0 0 40%;
  max-width: calc(15 * var(--fix));
  min-width: 0;
  container-type: inline-size;
}
.sales .rise {
  align-self: flex-end;
}
.sales .weekbars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  width: 100%;
  height: calc(2 * var(--fix));
}
.sales .weekbars i {
  display: block;
  justify-self: center;
  width: min(calc(0.5 * var(--fix)), 62%);
  min-height: calc(0.25 * var(--fix));
  max-height: 100%;
  border-radius: calc(0.25 * var(--fix));
  background: rgba(255, 255, 255, 0.42);
  box-sizing: border-box;
  transform-origin: bottom;
  animation: weekbar-up 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.sales .weekbars i.on {
  background: var(--lime);
}
.sales .weekbars i.future {
  height: calc(0.25 * var(--fix));
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
@keyframes weekbar-up {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sales .weekbars i {
    animation: none;
  }
}
.sales .wkaxis {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  width: 100%;
  margin-left: 0;
}
.sales .wkaxis span {
  display: grid;
  justify-items: center;
  min-width: 0;
}
.sales .wkaxis b,
.sales .wkaxis em {
  grid-area: 1 / 1;
  font-weight: inherit;
  font-style: normal;
}
.sales .wkaxis em {
  display: none;
  white-space: nowrap;
  justify-self: center;
}
/* Room for Mon, Wed, Fri and Sun: each under its own bar, the letters between them gone. */
@container (min-width: 120px) {
  .sales .wkaxis b {
    display: none;
  }
  .sales .wkaxis span.odd em {
    display: block;
  }
}
/* The money's measure: the figure's own face at its start size, out of sight and out of the flow. */
.sales .figprobe {
  position: absolute;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
  font-size: var(--fs-hero);
  left: 0;
  top: 0;
}

/* ── Quick actions: eight tiles, four across and two down ─────────────
   Founder, 2026-10-11. Icon style D (a white glyph in a solid forest round,
   lime glyph in dark: the shared .ic.neutral), a short label under it, each
   tile its own rounded square on the grey fill. A press lifts to white
   (--sel), the same lift as the chips and rows, never a tint. No side edge,
   no pale green. Four columns hold at 320px and on a computer alike, so the
   grid is the same eight everywhere. A tile is far taller than 44px. */
.qgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.5rem 1.125rem 0;
}
.qa {
  position: relative;
  min-width: 0;
  min-height: max(44px, 5.25rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4375rem;
  padding: 0.6875rem 0.25rem 0.5625rem;
  border-radius: var(--r-lg);
  background: var(--fill);
  color: var(--t1);
  text-align: center;
  transition: background 140ms ease, box-shadow 140ms ease, transform 140ms cubic-bezier(0.32, 0.72, 0, 1);
}
.qa:active,
.qa:focus-visible {
  background: var(--sel);
  box-shadow: var(--sel-sh);
}
.qa:active { transform: scale(0.97); }
@media (hover: hover) {
  .qa:hover { background: var(--sel); box-shadow: var(--sel-sh); }
}
/* A tile held open while Home learns what kind of business this is: the
   tile's own shape at a lower opacity, no shimmer, so nothing below moves
   when the right eight arrive. */
.qa.skel {
  opacity: 0.45;
}
.qa .ic {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.qa .ic svg {
  width: 1.25rem;
  height: 1.25rem;
}
/* The label: at most two short lines, clipped after that so one long word
   cannot make its tile taller than the others. */
.qa .lb {
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  max-width: 100%;
}
/* A waiting count on the corner of the round: only for a queue that wants
   clearing. The figure is coloured, the tile is not. */
.qa .qn {
  position: absolute;
  top: -0.25rem;
  right: -0.375rem;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.3125rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-style: normal;
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.125rem;
  text-align: center;
  box-shadow: 0 0 0 2px var(--fill);
}
.qa:active .qn,
.qa:focus-visible .qn { box-shadow: 0 0 0 2px var(--sel); }
@media (hover: hover) {
  .qa:hover .qn { box-shadow: 0 0 0 2px var(--sel); }
}
/* The way to everything else: its own row under the trio, pushed to the
   right. A pill rather than a card, because it is a control and not
   another thing to read. 2.25rem keeps it a comfortable target without
   letting it compete with the three cards above it. */
/* Text, not a button, and ABOVE the three it acts on. As a pill below
   them it read as a fourth action in the row; as a quiet link above it
   reads as what it is, a way to change what the row shows. */
.morerow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.125rem 0;
}
.qtitle {
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--t1);
}
.morebtn {
  /* A target of at least 44px without moving the row. */
  min-height: 44px;
  margin: -0.75rem 0;
  padding: 0.125rem 0.125rem 0.125rem 1rem;
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--accent-ink);
}
.morebtn:active {
  transform: scale(0.97);
}
.morebtn {
  transition: transform 140ms cubic-bezier(0.32, 0.72, 0, 1);
}

/* ── section head ──────────────────────────────────────────────────── */
.shead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.5rem 1.125rem 0.625rem;
}
.shead b {
  font-size: var(--fs-head);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.shead span {
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 500;
}
.ghead {
  padding: 1.5rem 1.125rem 0.5625rem;
}

/* ── list card ─────────────────────────────────────────────────────── */
.lc {
  margin: 0 1.125rem;
  background: var(--card);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh);
}
.li {
  display: flex;
  align-items: center;
  gap: 0.8125rem;
  padding: 0.8125rem 0.9375rem;
  position: relative;
  min-height: 3.5rem;
  width: 100%;
  text-align: left;
  color: inherit;
}
/* The divider starts after the icon, not at the card edge, so the icons
   read as a column rather than the rules cutting across them. */
.li + .li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 4.375rem;
  right: 0.9375rem;
  height: 1px;
  background: var(--line);
}
.li.noic + .li.noic::before {
  left: 0.9375rem;
}
.li .ic {
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 0.8125rem;
  display: grid;
  place-items: center;
  flex: none;
}
.li .ic svg {
  width: 1.25rem;
  height: 1.25rem;
}
/* A channel's own mark: no tile, in the brand's colour, a little larger than
   a glyph so the shape reads (Instagram's rule is 29 px or more; none is
   drawn here yet). */
.li .ic.brand {
  background: transparent;
}
.li .ic.brand svg {
  width: 2rem;
  height: 2rem;
}
/* Solid glyphs (Phosphor fill, the rider, the lipstick) read a touch larger
   than a line glyph of the same box, so they sit at the same box and no more. */
.li .ic svg.fillg {
  width: 1.3125rem;
  height: 1.3125rem;
}
/* The item's own photo in place of the icon tile. `overflow: hidden` with
   the tile's radius is what makes a square photo take the rounded shape
   the icons have, so a list of some-photos-some-icons still reads as one
   column. A tinted fill sits underneath as the colour shown while the
   image is still loading. */
.li .ic.shotic {
  overflow: hidden;
  background: var(--fill);
}
.li .ic.shotic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* The neutral icon: forest tile, white glyph. In dark mode the tile
   stays forest and the glyph turns lime, because white on a dark green
   tile against a near-black page has too little separation from the
   page itself, while lime reads instantly. */
.ic.neutral {
  background: var(--forest);
  color: #fff;
}
/* Dark: the lime glyph on the grey fill, never on forest (founder, 9 Nov 2026: "lime green instead of your
   mixing of forest green and dark theme"). */
:root[data-theme="dark"] .ic.neutral {
  background: var(--fill);
  color: var(--lime);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ic.neutral {
    background: var(--fill);
    color: var(--lime);
  }
}
.li .tx {
  flex: 1;
  min-width: 0;
}
/* A ROW'S TWO LINES (founder, 9 Nov 2026, on the Business mockup: "the header and the sub text of each
   button is different and bold"): the title bold and a step larger, the line under it regular, a step
   smaller, in the secondary colour, 4px under it. In --px (app.css), so the person's text size still applies. */
.li .tt {
  display: block;
  font-size: var(--fs-row);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.li.danger .tt {
  color: var(--red);
}
.li .ds {
  display: block;
  font-size: var(--fs-body);
  color: var(--t2);
  font-weight: 400;
  margin-top: calc(4 * var(--px));
  line-height: 1.35;
}
.li .rt {
  text-align: right;
  flex: none;
}
.li .rt .v {
  display: block;
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.li .rt .s {
  display: block;
  font-size: var(--fs-label);
  color: var(--t2);
  font-weight: 500;
  margin-top: 0.0625rem;
}
.li .ago {
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 500;
  flex: none;
}
.cv {
  width: 0.5rem;
  height: 0.875rem;
  color: var(--t3);
  flex: none;
}
.act {
  /* The plain grey, not mint (founder, 2026-10-10): the forest word says
     it is the thing to tap. */
  background: var(--fill);
  color: var(--accent-ink);
  border-radius: var(--r-lg);
  padding: 0.5625rem 0.9375rem;
  font-size: var(--fs-meta);
  font-weight: 700;
  flex: none;
}

/* ── pills ─────────────────────────────────────────────────────────── */
.pill {
  border-radius: 1rem;
  padding: 0.3125rem 0.6875rem;
  font-size: var(--fs-label);
  font-weight: 700;
  flex: none;
  white-space: nowrap;
}
.pill.red {
  background: var(--rose);
  color: var(--red);
}
.pill.mint {
  /* Green on the WORD only (founder, 2026-10-10: every pale green fill
     goes). The status green is a colour on a figure, so it stays. */
  background: var(--fill);
  color: var(--green);
}
.pill.amb {
  background: var(--amber);
  color: var(--orange);
}
.pill.dark {
  background: var(--forest);
  color: #fff;
}

/* ── which WhatsApp number a chat is on (server 0604, live/waNumbers.ts) ─ */
.numtag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.3125rem;
  padding: 0.0625rem 0.4375rem;
  border: 1px solid var(--line, rgba(127, 127, 127, 0.35));
  border-radius: 999px;
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.35;
  color: var(--t2);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.numtag svg {
  width: 0.75rem;
  height: 0.75rem;
  flex: none;
}
.chiprow.nums {
  padding-top: 0;
}

/* ── an order's status: a dot and words (ui/OrderTag.tsx) ─────────── */
.otag {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.0625rem 0.375rem;
  margin-top: 0.3125rem;
  font-size: var(--fs-label);
  line-height: 1.35;
  color: var(--t2);
}
.otag-dot {
  flex: none;
  align-self: center;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--orange);
}
.otag.off .otag-dot {
  background: var(--t3);
}
.otag-t {
  font-weight: 700;
  color: var(--t1);
}
.otag-s {
  font-weight: 500;
  color: var(--t2);
}
.otag-s::before {
  content: "\00b7";
  margin-right: 0.375rem;
}

/* ── insight ───────────────────────────────────────────────────────── */
.insight {
  margin: 1.125rem 1.125rem 0;
  background: var(--forest);
  border-radius: var(--r-2xl);
  padding: 1.125rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  position: relative;
  overflow: hidden;
}
.insight .tx {
  flex: 1;
  position: relative;
  z-index: 1;
}
.insight .k {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.insight .t {
  font-size: var(--fs-row);
  font-weight: 600;
  line-height: 1.3;
  margin: 0.4375rem 0 0.3125rem;
  letter-spacing: -0.01em;
}
.insight .d {
  font-size: var(--fs-meta);
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}
.insight .go {
  width: 2.875rem;
  height: 2.875rem;
  border-radius: 50%;
  background: var(--lime);
  display: grid;
  place-items: center;
  flex: none;
  position: relative;
  z-index: 1;
  color: var(--forest);
}
.insight .go svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ── big title header ──────────────────────────────────────────────── */
.bigt {
  padding: 0.5rem 1.125rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.bigt .tx {
  flex: 1;
}
.bigt .ds {
  color: var(--t2);
  font-size: var(--fs-body);
  font-weight: 500;
  margin-top: 0.1875rem;
}
.bigt .btns {
  display: flex;
  gap: 0.5rem;
  flex: none;
  padding-top: 0.25rem;
}
.bigt .cb {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--fill);
  display: grid;
  place-items: center;
  color: var(--t1);
}
.bigt .cb.lime {
  background: var(--lime);
  color: var(--forest);
}
.bigt .cb svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ── page header with back ─────────────────────────────────────────── */
.pageh {
  display: flex;
  align-items: center;
  gap: 0.8125rem;
  padding: 0.5rem 1.125rem 0;
}
.pageh .tx {
  flex: 1;
}
.pageh .ds {
  color: var(--head-sub);
  font-size: var(--fs-body);
  font-weight: 500;
  margin-top: 0.125rem;
}
.bk2 {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--fill);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--t1);
}
.bk2 svg {
  width: 0.6875rem;
  height: 1.1875rem;
}
.helpb {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  background: var(--fill);
  border-radius: var(--r-pill);
  padding: 0.6875rem 0.9375rem;
  color: var(--accent-ink);
  font-weight: 700;
  font-size: var(--fs-body);
  flex: none;
}
.helpb svg {
  width: 1.0625rem;
  height: 1.0625rem;
}

/* ── search field ──────────────────────────────────────────────────── */
.sf {
  margin: 0.875rem 1.125rem 0;
  background: var(--fill);
  border-radius: var(--r-md);
  min-height: 3rem;
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  padding: 0 0.875rem;
  color: var(--t2);
  width: calc(100% - 2.25rem);
}
.sf svg {
  width: 1.1875rem;
  height: 1.1875rem;
  flex: none;
}
.sf .q {
  flex: 1;
  font-size: var(--fs-body);
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── chips ─────────────────────────────────────────────────────────── */
.chiprow {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.875rem 1.125rem 0;
  scrollbar-width: none;
}
.chiprow::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.625rem 0.9375rem;
  border-radius: var(--r-pill);
  /* Transparent, kept so every chip is the same size whichever is on. */
  border: 1px solid transparent;
  background: var(--fill);
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--t1);
  transition: background 140ms ease, box-shadow 140ms ease;
}
/* WHITE LIFT (founder, 2026-10-10: white lift replaces the pale green and
   the solid forest pill). The chips you are not on stay grey; the one you
   are on turns to the lifted surface with a soft shadow, a bolder label and
   a forest tick in front. No tint, no coloured ring, no side edge. */
.chip.on {
  background: var(--sel);
  box-shadow: var(--sel-sh);
  font-weight: 700;
}
.chip.on::before {
  content: "";
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  margin-right: -0.125rem;
  background: var(--accent-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.chip b {
  border-radius: 0.625rem;
  padding: 0.125rem 0.4375rem;
  font-size: var(--fs-label);
  font-weight: 700;
  /* A badge on an UNSELECTED chip too, since the count is now shown for
     every tab rather than only the open one. Without this it inherited no
     background and read as a bare number with odd spacing around it. Quiet
     on purpose: the number on the tab you are not looking at is
     information, not a call to action. The card colour, because the chip
     itself is grey now. */
  background: var(--card);
  color: var(--t2);
}
/* The chosen chip's count: the accent pair, forest with white in light and
   lime with forest in dark, so it reads on the lifted surface in both. */
.chip.on b {
  background: var(--accent-ink);
  color: var(--on-accent);
}
.chip .r {
  background: var(--rose);
  color: var(--red);
}
.chip .g {
  background: var(--card);
  color: var(--green);
}

/* ── avatar ────────────────────────────────────────────────────────── */
.av {
  width: 2.875rem;
  height: 2.875rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: var(--fs-body);
  flex: none;
  position: relative;
  background: var(--grey);
  color: var(--t2);
}
.av .nd {
  position: absolute;
  top: 0;
  right: 0;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--red);
  border: 2.5px solid var(--card);
}
/* "Needs you" was a pale green card. It is a plain card now (founder,
   2026-10-10: every pale green fill goes); being first, under its own
   heading, is what says it matters. The class stays for the list and
   detail panes. */

/* ── business card row ─────────────────────────────────────────────── */
.bizcard {
  margin: 0.875rem 1.125rem 0;
  /* Grey, not pale green (founder, 2026-10-10). */
  background: var(--fill);
  border-radius: var(--r-xl);
  padding: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.8125rem;
  width: calc(100% - 2.25rem);
  text-align: left;
  color: inherit;
}
.bizcard .ic {
  width: 3.125rem;
  height: 3.125rem;
  border-radius: var(--r-md);
  background: var(--forest);
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
}
.bizcard .ic svg {
  width: 1.5rem;
  height: 1.5rem;
}
.bizcard .tx {
  flex: 1;
  min-width: 0;
}
.bizcard b {
  color: var(--t1);
  font-size: var(--fs-row);
  font-weight: 600;
  display: block;
  letter-spacing: -0.01em;
}
.bizcard .tx span {
  display: block;
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 500;
}
/* TWO DOORS IN ONE CARD (Settings): the business's mark opens the Business
   profile, the rest opens Business settings. The card itself is a div, so
   each half is a real button with its own label, and the global button
   reset's padding is zeroed on both (see .tbar .pf for why that matters to
   a picture that must fill a tile). */
.bizcard.split .go {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.8125rem;
  padding: 0;
  text-align: left;
  color: inherit;
}
.bizcard .ic.logo {
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
}
/* contain on white, as on Home: a transparent logo survives dark mode. */
.bizcard .ic.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  display: block;
}
.bizcard .ic.logo .ini {
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--lime);
}

/* THE SLIM SETTINGS' BUSINESS CARD (Remy first, Phase 2, SettingsSlim.tsx):
   read only, the real values a line each, and one way to change any of it,
   Change with Remy, marked with the Ask Remy dot. The same tint and radius
   as .bizcard; no coloured edge. */
.bizsum {
  margin: 1rem 1.125rem 0;
  background: var(--fill);
  border-radius: var(--r-xl);
  padding: 0.9375rem;
  width: calc(100% - 2.25rem);
}
.bizsum .top {
  display: flex;
  align-items: flex-start;
  gap: 0.8125rem;
  width: 100%;
  padding: 0;
  text-align: left;
  color: inherit;
}
.bizsum .ic.logo {
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 50%;
  background: var(--forest);
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
}
.bizsum .ic.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  display: block;
}
.bizsum .ic.logo .ini {
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--lime);
}
.bizsum .tx {
  flex: 1;
  min-width: 0;
}
.bizsum .tx b {
  color: var(--t1);
  font-size: var(--fs-row);
  font-weight: 600;
  display: block;
  letter-spacing: -0.01em;
  margin-bottom: 0.125rem;
}
.bizsum .tx span {
  display: block;
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.bizsum .remy {
  margin-top: 0.875rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.8125rem;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--t1);
  font-size: var(--fs-meta);
  font-weight: 700;
}
/* Undo on a manager's change (Settings, Changed by a manager). */
button.mchg {
  flex: none;
  padding: 0.5rem 1rem;
  border-radius: 0.8125rem;
  font-size: var(--fs-meta);
  font-weight: 700;
  background: var(--card);
  color: var(--t1);
  border: 1px solid var(--line);
}
button.mchg:disabled {
  opacity: 0.6;
}
.bizsum .remy .rdot {
  width: 1.375rem;
  height: 1.375rem;
}

/* ── thread ────────────────────────────────────────────────────────── */
.thd {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.thnav {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.25rem 0.875rem 0.75rem;
  flex: none;
}
.thnav .bk {
  display: flex;
  align-items: center;
  gap: 0.0625rem;
  color: var(--accent-ink);
  font-weight: 600;
  font-size: var(--fs-body);
  flex: none;
}
.thnav .bk svg {
  width: 0.6875rem;
  height: 1.1875rem;
}
.thnav .who {
  flex: 1;
  min-width: 0;
}
.thnav .who b {
  font-size: var(--fs-row);
  font-weight: 600;
  display: block;
  letter-spacing: -0.01em;
}
.thnav .who span {
  font-size: var(--fs-meta);
  color: var(--green);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3125rem;
}
.thnav .who span i {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--green);
}
.thnav .ib {
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 50%;
  background: var(--fill);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--t1);
}
.thnav .ib.green {
  color: var(--green);
}
.thnav .ib svg {
  width: 1.25rem;
  height: 1.25rem;
}
.banner {
  margin: 0 1rem 0.625rem;
  background: var(--fill);
  border-radius: var(--r-md);
  padding: 0.75rem 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.6875rem;
  flex: none;
}
.banner .ic {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--accent-ink);
}
.banner .ic svg {
  width: 1.0625rem;
  height: 1.0625rem;
}
.banner .tx {
  flex: 1;
  min-width: 0;
}
.banner b {
  color: var(--t1);
  font-size: var(--fs-body);
  font-weight: 700;
  display: block;
}
.banner .tx span {
  display: block;
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 500;
}
.banner .go {
  display: flex;
  align-items: center;
  gap: 0.1875rem;
  color: var(--accent-ink);
  font-weight: 700;
  font-size: var(--fs-meta);
  flex: none;
}
.banner .go svg {
  width: 0.5rem;
  height: 0.8125rem;
}
.msgs {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 0 1rem 1.25rem;
  display: flex;
  flex-direction: column;
}
.msgs::-webkit-scrollbar {
  display: none;
}
.datepill {
  align-self: center;
  background: var(--fill);
  color: var(--t2);
  border-radius: 0.875rem;
  padding: 0.375rem 0.875rem;
  font-size: var(--fs-meta);
  font-weight: 600;
  margin: 0.375rem 0 0.875rem;
}
/* "Today", "Yesterday", "Monday", "15 Sep". Quieter than .datepill, which
   announces a state; this only dates what follows it. */
/* A button that reads as a link. Needed because the global button reset
   gives every button padding and a box; without clearing them this sits in
   the form looking like a second submit control rather than a quiet way out.
   Same trap that turned the Home avatar into an ellipse. */
.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--forest-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.linkish:focus-visible {
  outline: 2px solid var(--forest-2);
  outline-offset: 3px;
  border-radius: 3px;
}
.daysep {
  align-self: center;
  color: var(--t2);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0.625rem 0 0.5rem;
}
/* Sits above the oldest message. Full width and plain, so a reader
   scrolling up lands on it rather than hunting for a small control. */
.loadolder {
  align-self: center;
  background: var(--fill);
  color: var(--t1);
  border: 0;
  border-radius: 1rem;
  padding: 0.5rem 1rem;
  font-size: var(--fs-meta);
  font-weight: 600;
  margin: 0.25rem 0 0.75rem;
}
.loadolder:disabled {
  color: var(--t2);
}
.b {
  /* WhatsApp message bodies carry real newlines: a menu, an itemised
     read-back, an address on its own line. Collapsing them turns a
     readable list into a paragraph and stops the transcript matching
     what the customer actually saw on their phone. */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 80%;
  padding: 0.75rem 0.9375rem;
  border-radius: var(--r-xl);
  font-size: var(--fs-body);
  line-height: 1.42;
  font-weight: 500;
}
.b.in {
  align-self: flex-start;
  background: var(--bub-in);
  color: var(--t1);
  border-bottom-left-radius: 0.4375rem;
}
.b.out {
  align-self: flex-end;
  background: var(--forest);
  color: #fff;
  border-bottom-right-radius: 0.4375rem;
}
/* A reply that is on screen before the server has confirmed it: the real
   bubble, ghosted. Opacity only, no shimmer and no pulse, so it says
   "not yet" without drawing the eye to itself every second and without
   needing a reduced-motion exception. The transition is on the way OUT
   as well, so when the confirmed message replaces it the change reads as
   the same bubble settling rather than one swapping for another. */
.b.out.ghost {
  opacity: 0.45;
  transition: opacity 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
.stamp {
  font-size: var(--fs-label);
  color: var(--t2);
  font-weight: 500;
  margin: 0.3125rem 0.125rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.stamp.r {
  align-self: flex-end;
}
.stamp svg {
  width: 0.9375rem;
  height: 0.6875rem;
  color: var(--green);
}
/* A reply that did not reach the customer. Green ticks mean delivered, so
   this must not borrow them: it is red, it is a word, and the cross is
   sized to sit with the text rather than pass for a tick. */
.stamp .notsent {
  display: inline-flex;
  align-items: center;
  gap: 0.1875rem;
  color: var(--red);
  font-weight: 600;
}
.stamp .notsent svg {
  width: 0.75rem;
  height: 0.75rem;
  color: var(--red);
}
/* Ask Remy's "Not sent to Remy. Tap to retry": the same red word, as a
   button, underlined so it reads as something to tap. */
.stamp button.notsent {
  background: none;
  border: 0;
  padding: 0.25rem 0;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}
.stamp button.notsent:disabled {
  opacity: 0.6;
  cursor: default;
}
.stamp .sending {
  font-style: normal;
  color: var(--t2);
}
.sysp {
  align-self: center;
  background: var(--fill);
  border-radius: 1rem;
  padding: 0.5625rem 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 500;
  margin: 0.25rem 0 0.875rem;
  max-width: 88%;
}
.sysp svg {
  width: 0.9375rem;
  height: 0.9375rem;
  flex: none;
}

/* ── composer ──────────────────────────────────────────────────────── */
.comp {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  padding: 0.625rem 0.875rem 2.125rem;
  padding-bottom: max(2.125rem, env(safe-area-inset-bottom));
  background: var(--card);
  border-top: 1px solid var(--line);
}
/* EXTRA CLEARANCE FOR A COMPOSER THAT SHARES ITS SCREEN WITH THE TAB
   BAR. Nothing uses it any more: the tab bar now hides on every pushed
   screen, so Ask has the screen to itself and this padding was dead
   space under the bar, which is what it looked like. Kept for a screen
   that one day keeps the bar, and documented so it is not reapplied to
   one that does not. Pinned through --fix like everything else measured
   against that bar: 1.625rem of bottom offset plus its 3.75rem
   height, plus room to breathe. */
.comp.overtabs {
  padding-bottom: calc(6.25 * var(--fix));
}
.comp .plus {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--fill);
  display: grid;
  place-items: center;
  color: var(--t1);
  flex: none;
}
.comp .plus svg {
  width: 1.25rem;
  height: 1.25rem;
}
.comp .fld {
  flex: 1;
  min-width: 0;
  min-height: 2.875rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0 0.875rem;
  color: var(--t2);
  font-size: var(--fs-body);
  font-weight: 500;
}
.comp .fld input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  color: var(--t1);
  font-size: var(--fs-input);
  font-weight: 500;
  padding: 0.75rem 0;
}
.comp .fld input::placeholder {
  color: var(--t2);
}
.comp .fld .ib {
  margin-left: auto;
  display: flex;
  gap: 0.75rem;
  flex: none;
  color: var(--t2);
}
.comp .fld svg {
  width: 1.1875rem;
  height: 1.1875rem;
}
.comp .mic {
  width: 2.875rem;
  height: 2.875rem;
  border-radius: 50%;
  background: var(--forest);
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
}
.comp .mic svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* The recording pulse. Red, moving, and beside a running timer: three
   signals, because "am I still recording?" is the question a voice note
   UI most often fails to answer. */
.recdot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--red);
  flex: none;
  animation: recpulse 1.1s ease-in-out infinite;
}
@keyframes recpulse {
  50% {
    opacity: 0.25;
    transform: scale(0.8);
  }
}
.comp .fld .ib button {
  display: grid;
  place-items: center;
  color: var(--t2);
}
.comp .plus:disabled,
.comp .mic:disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ── stock: view toggle, floating add, product form ────────────────── */
.viewtoggle {
  display: flex;
  gap: 0.125rem;
  background: var(--fill);
  border-radius: var(--r-pill);
  padding: 0.1875rem;
  flex: none;
}
.viewtoggle button {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--t2);
}
/* White lift (founder, 2026-10-10): the chosen view lifts out of the grey track. */
.viewtoggle button.on {
  background: var(--sel);
  box-shadow: var(--sel-sh);
  color: var(--t1);
}
.viewtoggle svg {
  width: 1.0625rem;
  height: 1.0625rem;
}

/* Bottom LEFT, clear of the tab bar. The right side is where the thumb
   rests and where the tab targets already are. */
.fab {
  /* Right, not left: a phone is held in the right hand far more often
     than the left, and every other primary action sits on that side.

     ABSOLUTE, AND PORTALLED INTO `.frame` (see ui/FabDial.tsx).
     `position: fixed` on a button inside the scrolling element measured
     correctly in a desktop browser and came apart on a real Android
     phone: the button and its options landed at the top of the screen
     over the header, in different places from each other, and moved as
     the page scrolled. A fixed element inside a transformed or contained
     subtree anchors to that subtree rather than the viewport, and
     browsers disagree about exactly when that applies.

     `.frame` is position: relative, so absolute anchors to the phone
     frame. That is also what puts it inside the frame on a wide desktop
     window, with no 50vw arithmetic to get wrong. */
  position: absolute;
  right: calc(0.875 * var(--fix));
  /* Sits above the pinned tab bar, so the offset is pinned too. */
  bottom: calc(6.5 * var(--fix));
  bottom: calc(6.5 * var(--fix) + env(safe-area-inset-bottom));
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(11, 61, 46, 0.35);
  z-index: 60;
  transition: transform 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fab:active {
  transform: scale(0.93);
}
.fab svg {
  width: 1.5rem;
  height: 1.5rem;
}

.flabel {
  display: block;
  font-size: var(--fs-body);
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
}
.flabel em {
  font-style: normal;
  font-weight: 500;
  color: var(--t2);
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.stepper {
  display: flex;
  align-items: center;
  background: var(--fill);
  border-radius: var(--r-md);
  min-height: 3.375rem;
  padding: 0 0.5rem;
}
.stepper button {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--t1);
}
.stepper button:disabled {
  opacity: 0.4;
  pointer-events: none;
}
.stepper input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  text-align: center;
  font-size: var(--fs-input);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.moreopts {
  display: flex;
  align-items: center;
  gap: 0.8125rem;
  width: 100%;
  background: var(--fill);
  border-radius: var(--r-md);
  padding: 0.8125rem 0.875rem;
  margin-top: 1.5rem;
  color: inherit;
}
.moreopts .tx {
  flex: 1;
  min-width: 0;
}
.moreopts .tt {
  display: block;
  font-size: var(--fs-body);
  font-weight: 700;
}
.moreopts .ds {
  display: block;
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 500;
}
.moreopts svg {
  flex: none;
  color: var(--t2);
  width: 1.125rem;
  height: 1.125rem;
}
/* The finish button never scrolls out of reach on a long form. */
/* max-width is the FRAME's width, so it is pinned through --fix like
   .frame is. Left as a bare rem it shrank with the design scale while the
   frame it is supposed to span did not, so the bar stopped reaching the
   edges. */
.stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: calc(27.5 * var(--fix));
  margin: 0 auto;
  padding: 0.75rem 1.125rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 62%, transparent);
  z-index: 70;
}
.remybtn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--fill);
  border-radius: var(--r-md);
  padding: 0.5rem 0.75rem;
  color: var(--accent-ink);
  flex: none;
}
.remybtn svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
}
.remybtn b {
  display: block;
  font-size: var(--fs-meta);
  font-weight: 700;
  white-space: nowrap;
}
.remybtn i {
  display: block;
  font-style: normal;
  font-size: var(--fs-label);
  opacity: 0.75;
  white-space: nowrap;
}

/* ── hint ──────────────────────────────────────────────────────────
   A quiet mark that opens an explainer. Small and low contrast on
   purpose: it must be findable when wanted and invisible when not. */
.hint {
  padding: 0.5rem 1.125rem 0;
}
.hintbtn {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--t3);
  background: var(--fill);
  flex: none;
}
.hintbtn.on {
  background: var(--forest);
  color: #fff;
}
.hintbtn svg {
  width: 0.9375rem;
  height: 0.9375rem;
}
.hintbtn.inline {
  display: inline-grid;
  vertical-align: middle;
  margin-left: 0.375rem;
  width: 1.5rem;
  height: 1.5rem;
}
.hintbtn.inline svg {
  width: 0.8125rem;
  height: 0.8125rem;
}
.hintbody {
  margin-top: 0.5rem;
  background: var(--fill);
  border-radius: var(--r-md);
  padding: 0.8125rem 0.875rem;
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 500;
  line-height: 1.45;
}
.hintbody.standalone {
  margin: 0 1.125rem 0.5rem;
}

/* ── ask remy ──────────────────────────────────────────────────────── */
.asknav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 1.125rem 0.875rem;
  flex: none;
}
/* Remy is an orb (founder, 5 Nov 2026): the header shows the orb inside its
   own glow, so there is no disc behind it any more. The glow takes about a
   third of the box, which keeps the sphere the size the old disc was. */
.asknav .lg {
  width: 3.25rem;
  height: 3.25rem;
  margin: -0.1875rem;
  display: grid;
  place-items: center;
  flex: none;
}
.asknav .lg svg,
.asknav .lg .rmk {
  width: 3.25rem;
  height: 3.25rem;
}
.asknav .tx {
  flex: 1;
  min-width: 0;
}
.asknav b {
  color: var(--t1);
  font-size: var(--fs-head);
  font-weight: 700;
  display: block;
  letter-spacing: -0.02em;
}
.asknav .tx span {
  display: block;
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 500;
}
.asknav .ib {
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 50%;
  background: var(--fill);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--t1);
}
.asknav .ib svg {
  width: 1.1875rem;
  height: 1.1875rem;
}
/* A NOTE BOX: plain grey with a solid accent circle (founder, 2026-10-10:
   white lift replaces the pale green). Forest with a white glyph in light;
   in dark the accent pair turns it lime with a forest glyph. */
.tip {
  margin: 0 1.125rem 0.875rem;
  background: var(--fill);
  border-radius: 1rem;
  padding: 0.8125rem 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6875rem;
  flex: none;
}
.tip .ic {
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background: var(--accent-ink);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--on-accent);
}
.tip .ic svg {
  width: 0.9375rem;
  height: 0.9375rem;
}
.tip p {
  flex: 1;
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 500;
  line-height: 1.4;
}
.tip .x {
  color: var(--t2);
  opacity: 0.8;
  flex: none;
}
.tip .x svg {
  width: 1rem;
  height: 1rem;
}
.arow {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  margin-bottom: 0.375rem;
}
/* Remy's avatar beside his messages: the orb itself, no disc behind it. */
.arow .ra {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  background: var(--fill);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1.125rem;
}
.arow .ra svg,
.arow .ra .rmk {
  width: 2.125rem;
  height: 2.125rem;
}
.arow .col {
  flex: 1;
  min-width: 0;
}
.rlab {
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 600;
  margin-bottom: 0.3125rem;
}
/* Remy's bubble ends where its words end, like the owner's own bubble
   (founder, 8 Nov 2026: a thumbs up sat in a full-width box). Long
   answers still wrap at the column edge. Cards and buttons sit outside
   the bubble, so nothing in it needs the full width. */
.rbub {
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--fill);
  border-radius: var(--r-lg);
  padding: 0.875rem;
  font-size: var(--fs-body);
  line-height: 1.45;
  font-weight: 500;
}
/* A finished answer. It was a pale green bubble; the green tick in its
   line says it went through (founder, 2026-10-10). */
.rbub.ok {
  background: var(--fill);
}
.rline {
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  margin: 0.4375rem 0;
}
.rline svg {
  width: 1.0625rem;
  height: 1.0625rem;
  color: var(--t2);
  flex: none;
}
.rbtns {
  display: flex;
  gap: 0.5625rem;
  margin-top: 0.8125rem;
  flex-wrap: wrap;
}
.rbtns button {
  padding: 0.6875rem 1.25rem;
  border-radius: 0.8125rem;
  font-size: var(--fs-body);
  font-weight: 700;
  background: var(--forest);
  color: #fff;
}
.rbtns button.w {
  background: var(--card);
  color: var(--t1);
  border: 1px solid var(--line);
}
/* THE PAGE THE ANSWER IS ABOUT: one big button under Remy's line ("Open Staff"). */
.ropen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.8125rem;
  min-height: 3rem;
  padding: 0.75rem 1.125rem;
  border-radius: 0.9375rem;
  background: var(--forest);
  color: #fff;
  font-size: var(--fs-body);
  font-weight: 700;
  text-align: left;
}
.ropen svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
}
.okline {
  display: flex;
  align-items: center;
  gap: 0.6875rem;
}
.okline .ck {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
}
.okline .ck svg {
  width: 1rem;
  height: 1rem;
}
.okline b {
  color: var(--green);
  font-weight: 700;
}
.okline .m {
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 500;
  margin-top: 0.125rem;
}
.ts {
  align-self: flex-end;
  font-size: var(--fs-label);
  color: var(--t2);
  font-weight: 500;
  margin: 0.625rem 0.125rem 0.375rem;
  text-align: right;
}
.qrow {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 1.125rem 0.75rem;
  scrollbar-width: none;
  flex: none;
}
.qrow::-webkit-scrollbar {
  display: none;
}
.qrow button {
  flex: none;
  padding: 0.6875rem 1.0625rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--card);
  font-size: var(--fs-body);
  font-weight: 600;
  white-space: nowrap;
  color: var(--t1);
}
.qrow button.on {
  background: var(--sel);
  box-shadow: var(--sel-sh);
  border-color: transparent;
  font-weight: 700;
}

/* ── tab bar ───────────────────────────────────────────────────────
   Four tabs, forever. A new service adds a Menu tile, never a tab. */
.tabs {
  position: absolute;
  left: calc(0.875 * var(--fix));
  right: calc(0.875 * var(--fix));
  bottom: calc(1.625 * var(--fix));
  bottom: max(calc(1.625 * var(--fix)), env(safe-area-inset-bottom));
  /* calc(3.75 * var(--fix)) is the floor, and the padding below is set to match it, not
     to taste. The button has to stay at 48px, the Android minimum touch
     target, on the four controls the whole app is navigated with.
     Measured, because the arithmetic is easy to get wrong: the 1px
     border counts twice, so the button is height - 2px border - 2x
     padding = 60 - 2 - 10 = 48. Shrink the height further and the
     padding has nothing left to give. */
  height: calc(3.75 * var(--fix));
  border-radius: var(--r-pill);
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--gline);
  box-shadow: 0 8px 32px rgba(15, 20, 18, 0.12);
  display: flex;
  padding: calc(0.3125 * var(--fix));
  z-index: 85;
}
/* A full-screen page. The bar SLIDES OUT rather than being unmounted,
   because an element carrying a view-transition-name that disappears
   leaves its old snapshot fading over the new page for the length of the
   transition, which read as a flicker of the bar in its old position
   every time a settings or product screen opened.

   Far enough to clear the safe-area inset as well as the bar itself, so
   nothing peeks back on a phone with a home indicator. */
.tabs.away {
  transform: translateY(calc(100% + 3 * var(--fix)));
  opacity: 0;
  pointer-events: none;
}
/* TYPING ON A PHONE (founder, 8 Nov 2026; shell/keyboard.ts usePhoneTyping): while a
   text field has the focus the bar slides out as on a full-screen page, and a
   composer that kept room above it comes down onto the keypad. Touch screens only. */
@media (hover: none) and (pointer: coarse) {
  :root[data-typing] .tabs {
    transform: translateY(calc(100% + 3 * var(--fix)));
    opacity: 0;
    pointer-events: none;
  }
  :root[data-typing] .comp.overtabs {
    padding-bottom: 0.625rem;
  }
}
.tabs button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(0.125 * var(--fix));
  border-radius: var(--r-pill);
  position: relative;
  color: var(--t2);
}
.tabs button.on {
  background: var(--lime);
  color: var(--forest);
}
.tabs svg {
  width: calc(1.375 * var(--fix));
  height: calc(1.375 * var(--fix));
}

/* ── the Remy mark, sized ───────────────────────────────────────────
   Every other glyph here is a near-square 24-grid icon that fills about
   0.705 of its box: measured at a 22px box, Home inks 16.15px, Menu
   15.58, Chats 14.95. The Remy mark is the orb (5 Nov 2026), its viewBox
   cropped to the sphere, so the whole box is ink: dropped into the
   icons' square box it would sit a third bigger than its neighbours.

   So it is given a HEIGHT only and its width follows. Each height below
   is 0.705 of the square box its neighbours use in that context, which
   puts its ink on the same line as theirs. If an icon size changes, the
   matching mark height has to change with it.

   These selectors are two classes deep on purpose: `.tabs svg` above
   would otherwise win on specificity and force it square again. */
.rmk {
  width: auto;
  flex: none;
}
/* 22px box -> 15.5px of ink */
/* The tab bar is pinned, so its mark is measured in --fix; the other
   two follow the design scale with the icons beside them. */
.tabs .rmk {
  width: auto;
  height: calc(0.96875 * var(--fix));
}
.gi .ic .rmk {
  width: auto;
  height: 0.96875rem;
}
/* 20px box -> 14px */
.li .ic .rmk {
  width: auto;
  height: 0.875rem;
}
/* 18px box -> 12.5px */
.remybtn .rmk {
  width: auto;
  height: 0.78125rem;
}
.tabs span {
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.1;
}
/* Offsets track the icon. The badge is pinned by its LEFT edge, 0.25 past
   the icon's centre, so it only ever covers the icon's top right corner
   and a wider "9+" grows outwards, away from the icon. Pinned by the right
   edge, as it was, "9+" grew leftwards and covered the whole icon. Change
   the icon size above and this has to move with it. */
.tabs .bg {
  position: absolute;
  top: calc(0.25 * var(--fix));
  left: calc(50% + calc(0.25 * var(--fix)));
  min-width: calc(1.0625 * var(--fix));
  height: calc(1.0625 * var(--fix));
  border-radius: calc(0.53125 * var(--fix));
  background: var(--danger-fill);
  color: #fff;
  font-size: var(--fs-label);
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 calc(0.28125 * var(--fix));
  border: 2px solid var(--glass);
}

/* ── hero (plan) ───────────────────────────────────────────────────── */
.hero {
  margin: 0 1.125rem;
  border-radius: var(--r-2xl);
  overflow: hidden;
  position: relative;
  background: var(--forest);
  color: #fff;
}
.hero .in {
  position: relative;
  padding: 1.25rem;
}
.hero .tagp {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 0.75rem;
  padding: 0.3125rem 0.75rem;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: #fff;
}
.hero .nm {
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 0.8125rem;
  line-height: 1.1;
}
.hero .pr {
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.hero .sb {
  font-size: var(--fs-meta);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  margin-top: 0.3125rem;
}
.hero .crown {
  position: absolute;
  top: 1.125rem;
  right: 1.125rem;
  width: 2.875rem;
  height: 2.875rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  color: #fff;
}
.hero .crown svg {
  width: 1.375rem;
  height: 1.375rem;
}
.hero .pr .per {
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.7);
}

/* The subscription status line, and the Home banner that points to it.
   Amber while everything still works, rose and red once Remy is about to
   pause or has paused: the same pairs the pills use, so a colour means the
   same thing on every screen. */
.substat {
  margin: 0.75rem 1.125rem 0;
  border-radius: 1rem;
  padding: 0.75rem 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}
.substat svg {
  flex: none;
  width: 1.0625rem;
  height: 1.0625rem;
  margin-top: 0.0625rem;
}
.substat p {
  flex: 1;
  font-size: var(--fs-meta);
  font-weight: 600;
  line-height: 1.4;
  color: var(--t1);
}
.substat.amb {
  background: var(--amber);
}
.substat.amb svg {
  color: var(--orange);
}
.substat.red {
  background: var(--rose);
}
.substat.red svg,
.substat.red p {
  color: var(--red);
}
/* PLAN USAGE (ui/PlanUsageCard.tsx) is drawn by styles/plan.css (.pu-*), with the Plan screen
   (founder's clean mockup, 9 Nov 2026). */
/* A new sign in in the sheet (ui/SafetyLine.tsx): who, on what, when, and
   the owner's two answers under it. Plain rows, no colour on their edge. */
.safetyitem {
  padding: 0.75rem 0 0;
}
.safetyitem + .safetyitem {
  border-top: 1px solid var(--line);
  margin-top: 0.75rem;
}
/* On Home it is one tappable line, so it is a button with a chevron. */
button.substat {
  width: calc(100% - 2.25rem);
  align-items: center;
  text-align: left;
}
button.substat .cv {
  margin-top: 0;
  opacity: 0.6;
}

/* Pay by transfer. The number is the point: large, tabular, selectable,
   so it can be read aloud or copied without a mistake. */
.paycard {
  margin: 0 1.125rem;
  background: var(--card);
  border-radius: var(--r-xl);
  padding: 1rem;
  box-shadow: var(--sh);
}
.paycard .bank {
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--t2);
}
.paycard .acct {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.paycard .nb {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-head);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--t1);
  user-select: all;
}
.paycard .copy {
  flex: none;
  min-width: 4.75rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: var(--r-pill);
  background: var(--forest);
  color: #fff;
  font-size: var(--fs-meta);
  font-weight: 700;
  text-align: center;
}
.paycard .an {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--t1);
  margin-top: 0.125rem;
}
.paycard .how {
  font-size: var(--fs-meta);
  color: var(--t2);
  line-height: 1.45;
  margin-top: 0.625rem;
}
.paycard .err,
.plans ~ div .err {
  font-size: var(--fs-meta);
  color: var(--red);
  font-weight: 500;
  margin-top: 0.5rem;
}

/* The plans, as two choices side by side in words rather than a table. */
.plancyc {
  margin: 0 1.125rem 0.75rem;
}
.plans {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0 1.125rem;
}
.plancard {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 2px solid transparent;
  border-radius: var(--r-xl);
  padding: 0.9375rem 1rem;
  box-shadow: var(--sh);
  color: var(--t1);
}
.plancard.on {
  border-color: var(--accent-ink);
}
.plancard .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.plancard .top b {
  font-size: var(--fs-head);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.plancard .pp {
  font-size: var(--fs-body);
  font-weight: 700;
  margin-top: 0.25rem;
}
.plancard .fp {
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--green);
  margin-top: 0.125rem;
}
.plancard .fts {
  margin-top: 0.5rem;
  font-size: var(--fs-meta);
  color: var(--t2);
  line-height: 1.5;
}
.plannote {
  margin: 0.75rem 1.125rem 0;
  font-size: var(--fs-meta);
  color: var(--t2);
  line-height: 1.45;
}
/* The label directly under an account number for paying Relynked: what the
   money there can do. Small, but in the ink colour, never greyed away. */
.paycard .acctnote {
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--t1);
  line-height: 1.4;
  margin-top: 0.375rem;
}
/* The Pay sheet's options, "White lift" (founder, 10 Oct 2026): the others
   on the grey fill, the picked one on a raised surface with a soft shadow,
   its name bold and a forest tick on the right. No coloured border, and no
   pale green: the saving is bold text in the accent ink.
   The raised surface is --sel and --sel-sh from tokens.css. */
.paypick .plancard {
  border: 0;
  padding: calc(0.9375rem + 2px) calc(1rem + 2px);
  background: var(--fill);
  box-shadow: none;
  transition: background 160ms ease, box-shadow 160ms ease;
}
.paypick .plancard.on {
  background: var(--sel);
  box-shadow: var(--sel-sh);
}
.paypick .plancard .top {
  min-height: 1.5rem;
}
.paypick .plancard .top b {
  font-weight: 700;
}
.paypick .plancard.on .top b {
  font-weight: 700;
}
.paypick .tick {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: #fff;
}
.paypick .tick svg {
  width: 0.8125rem;
  height: 0.8125rem;
}
.paypick .save {
  margin-left: 0.625rem;
  font-weight: 700;
  color: var(--accent-ink);
}
/* A payment notice on the Plan screen (server payment_notices): an icon, the
   server's title in bold, its whole explanation under it. Amber for a
   paused account number or a payment over the ceiling, the grey fill for
   money on its way back (no pale green). The colour is the block and the
   icon, never a side stripe. */
.paynote {
  margin: 0.75rem 1.125rem 0;
  border-radius: 1rem;
  padding: 0.75rem 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  background: var(--amber);
}
.paynote.calm {
  background: var(--fill);
}
.paynote svg {
  flex: none;
  width: 1.0625rem;
  height: 1.0625rem;
  margin-top: 0.0625rem;
  color: var(--orange);
}
.paynote.calm svg {
  color: var(--accent-ink);
}
.paynote .tx {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-meta);
  line-height: 1.45;
  color: var(--t1);
  overflow-wrap: anywhere;
}
.paynote .tx b {
  display: block;
  font-weight: 700;
}
.paynote .tx span {
  display: block;
  margin-top: 0.125rem;
  font-weight: 500;
}
/* Back from Paystack: the payment's status at the top of the Plan screen, in
   the server's words. A card like the plan cards; the state is said by the
   round icon alone (lime paid, grey still checking, rose not paid). */
.payret {
  margin: 0 1.125rem 0.75rem;
  background: var(--card);
  border-radius: var(--r-xl);
  padding: 1rem;
  box-shadow: var(--sh);
}
.payret .hd {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.payret .hd b {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.3;
  color: var(--t1);
}
.payret .ic {
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--fill);
  color: var(--t2);
}
.payret .ic.ok {
  background: var(--lime);
  color: var(--forest);
}
.payret .ic.bad {
  background: var(--rose);
  color: var(--red);
}
.payret .ic svg {
  width: 0.9375rem;
  height: 0.9375rem;
}
.payret p {
  margin-top: 0.5rem;
  font-size: var(--fs-meta);
  line-height: 1.45;
  color: var(--t2);
  overflow-wrap: anywhere;
}
.payret .row {
  display: flex;
  gap: 0.625rem;
  margin-top: 0.875rem;
}
.payret .row .btn {
  flex: 1;
  min-width: 0;
  min-height: 2.75rem;
}

/* ── appearance card ───────────────────────────────────────────────── */
.appear {
  margin: 0.75rem 1.125rem 0;
  border-radius: var(--r-2xl);
  overflow: hidden;
  position: relative;
  background: var(--forest);
  color: #fff;
}
.appear .in {
  position: relative;
  padding: 1.0625rem;
}
.appear .hd {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.appear .ic {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
}
.appear .ic svg {
  width: 1.3125rem;
  height: 1.3125rem;
}
.appear b {
  font-size: var(--fs-row);
  font-weight: 600;
  display: block;
  letter-spacing: -0.01em;
}
.appear .ds {
  font-size: var(--fs-meta);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  margin-top: 0.125rem;
}
.appear .lbl {
  font-size: var(--fs-meta);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  margin: 0.9375rem 0 0.5rem;
}
.appear .segs {
  display: flex;
  gap: 0.5625rem;
}
.appear .segs button {
  flex: 1;
  padding: 0.75rem 0.375rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
  font-size: var(--fs-body);
  font-weight: 700;
  text-align: center;
}
.appear .segs button.on {
  background: var(--lime);
  color: var(--forest);
  border-color: var(--lime);
}

/* ── promise card ──────────────────────────────────────────────────── */
/* A note box, so the grey and the solid accent circle (founder,
   2026-10-10: white lift replaces the pale green). */
.promise {
  margin: 0.875rem 1.125rem 0;
  background: var(--fill);
  border-radius: var(--r-xl);
  padding: 1rem;
  display: flex;
  gap: 0.8125rem;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.promise .ic {
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 50%;
  background: var(--accent-ink);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--on-accent);
}
.promise .ic svg {
  width: 1.25rem;
  height: 1.25rem;
}
.promise b {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--t1);
  line-height: 1.35;
  display: block;
}
.promise span {
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 500;
  display: block;
  margin-top: 0.3125rem;
}

/* ── toggle ────────────────────────────────────────────────────────── */
.tog2 {
  width: 3.25rem;
  height: 1.9375rem;
  border-radius: 1rem;
  background: var(--line);
  position: relative;
  flex: none;
  transition: background 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tog2 i {
  position: absolute;
  top: 0.15625rem;
  left: 0.15625rem;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: left 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tog2.on {
  background: var(--forest);
}
.tog2.on i {
  left: 1.46875rem;
}

/* ── first open: splash, welcome, sign in ──────────────────────────── */
.splash {
  position: absolute;
  inset: 0;
  /* Deliberately NOT --forest: the tile is forest, and a forest tile on
     a forest field is invisible until the bars land, which throws away
     the first beat of the animation. A near-black ground lets the tile
     arrive as an object. */
  background: #071a14;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  z-index: 200;
}
/* Sizing and the animation itself live in motion.css. */

/* A full-screen page with no frame: the splash, sign in, and the crash
   screen.

   NOT `.open`, WHICH IS WHAT IT USED TO BE CALLED. "open" is the natural
   word for "this thing is expanded", so it was also the state modifier on
   the sheet, the plus button and the plus button's option stack. A bare
   `.open` rule setting `position: absolute; inset: 0` therefore captured
   `.fab.open` and pinned the button to the top-left corner of the frame
   the moment it was tapped, which is what put it over the header.

   This is the THIRD time a short generic class in this shared stylesheet
   has done this: `.ph` caught a `val ph` placeholder and an `askbar .ph`
   and gave both height: 100dvh, and it is why the phone frame is now
   `.frame`. The lesson is the same each time, so the names here are
   deliberately ones nothing will reach for by accident. */
.fullpage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 0 1.125rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  overflow-y: auto;
  scrollbar-width: none;
}
.fullpage::-webkit-scrollbar {
  display: none;
}
.fullpage .mk {
  width: 3.25rem;
  height: 3.25rem;
  color: var(--accent-ink);
  flex: none;
}
.fullpage h1 {
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.14;
  text-wrap: balance;
}
.fullpage p {
  font-size: var(--fs-body);
  color: var(--t2);
  font-weight: 500;
  line-height: 1.5;
  margin-top: 0.75rem;
}

/* ── sign up and sign in: the brand header (ui/AuthPage.tsx) ─────────
   Founder, 2026-10-10, layout 3. A forest band at the top holds the back
   button, the logo tile and the heading with its short text in white; the
   fields sit on a sheet with rounded top corners laid over the band, with
   the main button and the switch link at its foot. The band is the brand's
   forest in both themes, so the white words read the same in each.

   KEYPAD UP (.typing): the band folds to a slim bar that stays at the top,
   the sheet's spacers close so the button sits right under the fields, and
   on an iPhone the page takes the visual viewport's box (--auth-top,
   --auth-h) so nothing it needs is behind the keys. Under 200ms, and
   instant under reduced motion. */
.frame:has(.authpage) {
  --frame-top: #0b3d2e;
}
.fullpage.authpage {
  padding: 0;
}
.authpage.typing {
  top: var(--auth-top, 0px);
  bottom: auto;
  height: var(--auth-h, 100%);
}
.authband {
  flex: none;
  background: #0b3d2e;
  color: #fff;
  padding: 0.75rem calc(var(--gut, 0px) + 1.125rem) 2.5rem;
  transition: padding-bottom 180ms ease;
}
.authpage.typing .authband {
  position: sticky;
  top: 0;
  z-index: 3;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.authband-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
}
.authback {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.authback svg {
  width: 0.6875rem;
  height: 1.1875rem;
}
.authback:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}
.authback-none {
  width: 0;
  height: 2.75rem;
  flex: none;
}
.authband-slim {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  opacity: 0;
  transform: translateY(0.25rem);
  transition: opacity 150ms ease, transform 150ms ease;
  pointer-events: none;
}
.authband-slim b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-body);
  font-weight: 700;
}
.authpage.typing .authband-slim {
  opacity: 1;
  transform: none;
}
.authband-aside {
  margin-left: auto;
  flex: none;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
}
/* The big part folds on its own height (a grid row from 1fr to 0fr), so no
   height is guessed. */
.authband-full {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 180ms ease, opacity 150ms ease;
}
.authband-in {
  min-height: 0;
  overflow: hidden;
  padding-top: 1.375rem;
}
.authpage.typing .authband-full {
  grid-template-rows: 0fr;
  opacity: 0;
}
/* The logo tile, a step lighter than the band, with a faint white ring. */
.authlogo {
  position: relative;
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1rem;
}
.authlogo .mk,
.authlogo .authmk {
  display: block;
  width: 100%;
  height: 100%;
}
.authlogo .lg-tile {
  fill: #155c45;
}
.authlogo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
.authlogo.sm {
  width: 1.875rem;
  height: 1.875rem;
  margin-bottom: 0;
  flex: none;
}
.authband h1 {
  color: #fff;
}
.authband p,
.fullpage .authband p.signup-hint,
.fullpage .authband p.signup-plan {
  color: rgba(255, 255, 255, 0.72);
}
.fullpage .authband b.su-num,
.authband b {
  color: #fff;
}
.authsheet {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  margin-top: -1.25rem;
  padding: 1.25rem calc(var(--gut, 0px) + 1.125rem) max(1.5rem, env(safe-area-inset-bottom));
  border-radius: 1.375rem 1.375rem 0 0;
  background: var(--bg);
  transition: margin-top 180ms ease, border-radius 180ms ease;
}
.authpage.typing .authsheet {
  margin-top: 0;
  border-radius: 0;
  padding-top: 0.625rem;
}
/* Keypad up: the button straight after the fields, and everything a little
   tighter, so at 360 by 640 with the keypad up the bar, three fields and
   the button all fit in what is left. */
.authpage.typing .authsheet .spacer {
  flex: 0 0 auto;
  min-height: 0.75rem;
}
.authpage.typing .authband-row {
  min-height: 2.5rem;
}
.authpage.typing .authback {
  width: 2.5rem;
  height: 2.5rem;
}
.authpage.typing .authsheet .phonef {
  min-height: 3rem;
}
.authpage.typing .authsheet .phonef input {
  padding: 0.5rem 0;
}
.authpage.typing .authsheet .codebox-cell {
  height: 3.25rem;
}
.authsheet > .cap:first-child {
  margin-top: 0.25rem;
}
@media (prefers-reduced-motion: reduce) {
  .authband,
  .authband-full,
  .authband-slim,
  .authsheet {
    transition: none;
  }
}
/* The second password (ui/PasswordAgain.tsx): a quiet tick when the two
   match; a red edge round the whole box when they differ, never a stripe. */
.pw-match {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0.5rem 0.125rem 0;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--accent-ink);
}
.pw-match svg {
  width: 0.875rem;
  height: 0.875rem;
  flex: none;
}
.phonef.pw-differ {
  border-color: var(--red);
}
/* On these screens every field lifts while it is typed in, as the phone
   field does (P3), so one form has one focus look. Kept after .phonef's own
   rules below by specificity, and a red edge still wins. */
.authsheet .phonef {
  transition: background 150ms ease, box-shadow 150ms ease, border-color 140ms;
}
.authsheet .phonef:focus-within {
  background: var(--sel);
  box-shadow: var(--sel-sh);
  border-color: transparent;
}
.authsheet .phonef.pw-differ,
.authsheet .phonef.pi-bad,
.authsheet .phonef.pw-differ:focus-within,
.authsheet .phonef.pi-bad:focus-within {
  border-color: var(--red);
}
.spacer {
  flex: 1;
  min-height: 1.25rem;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3.375rem;
  border-radius: var(--r-md);
  font-size: var(--fs-body);
  font-weight: 700;
  transition: transform 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn:active {
  transform: scale(0.985);
}
.btn.dark {
  background: var(--forest);
  color: #fff;
}
.btn.lime {
  background: var(--lime);
  color: var(--forest);
}
.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--t1);
}
.btn:disabled {
  opacity: 0.42;
  pointer-events: none;
}
.btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* The Aa control, offered before anything is asked and never a gate. */
.aa {
  position: absolute;
  top: 1rem;
  right: 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.125rem;
  background: var(--fill);
  border-radius: var(--r-pill);
  padding: 0.25rem;
  z-index: 3;
}
.aa button {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-weight: 700;
  display: grid;
  place-items: center;
  color: var(--t2);
}
/* White lift (founder, 2026-10-10): the chosen size lifts out of the grey track. */
.aa button.on {
  background: var(--sel);
  box-shadow: var(--sel-sh);
  color: var(--t1);
}
.aa .s1 {
  font-size: var(--fs-meta);
}
.aa .s2 {
  font-size: var(--fs-body);
}
.aa .s3 {
  font-size: var(--fs-row);
}

/* phone number field */
.phonef {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--fill);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: 0 0.875rem;
  min-height: 3.375rem;
  transition: border-color 140ms;
}
.phonef:focus-within {
  border-color: var(--accent-ink);
  background: var(--card);
}
.phonef .cc {
  font-weight: 700;
  color: var(--t2);
  flex: none;
}
/* A unit sitting at the end of a field: "20 minutes". Same job as the
   country code above, at the other end of the box, so it borrows its
   weight and colour rather than inventing a second look. */
.phonef .unit {
  font-weight: 600;
  color: var(--t2);
  flex: none;
  font-size: var(--fs-body);
}
/* The show-password button. A full tap target, negative margin so it
   does not make the field taller than the others. */
.phonef .peek {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--t2);
}
.phonef .peek[aria-pressed="true"] {
  color: var(--accent-ink);
}
.phonef .peek svg {
  width: 1.25rem;
  height: 1.25rem;
}
.phonef input,
.phonef .gsel {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  padding: 0.75rem 0;
  font-size: var(--fs-input);
  font-weight: 700;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

/* PIN */
.pindots {
  display: flex;
  justify-content: center;
  gap: 0.875rem;
  margin: 0 0 1.5rem;
}
.pindots i {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  border: 2px solid var(--t3);
  transition:
    background 100ms,
    border-color 100ms,
    transform 160ms cubic-bezier(0.34, 1.4, 0.64, 1);
}
.pindots i.on {
  background: var(--forest);
  border-color: var(--accent-ink);
  transform: scale(1.18);
}
.pindots.shake {
  animation: shake 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.pindots.shake i {
  border-color: var(--red);
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-0.5rem);
  }
  40% {
    transform: translateX(0.45rem);
  }
  60% {
    transform: translateX(-0.3rem);
  }
  80% {
    transform: translateX(0.15rem);
  }
}
.keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
}
.keys button {
  min-height: 3.75rem;
  border-radius: var(--r-md);
  background: var(--fill);
  font-weight: 700;
  font-size: var(--fs-head);
  display: grid;
  place-items: center;
  transition: transform 100ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Scale, not colour: on a cheap LCD in daylight a 100ms background
   change is frequently not seen, and a key that gives no answer gets
   pressed twice. */
.keys button:active {
  transform: scale(0.93);
  background: var(--line);
}
.keys button.del {
  background: none;
  color: var(--t2);
}
.keys button.del svg {
  width: 1.375rem;
  height: 1.375rem;
}
.pinerr {
  display: block;
  color: var(--red);
  font-size: var(--fs-meta);
  font-weight: 600;
  text-align: center;
  margin: -0.75rem 0 0.75rem;
}

/* ── misc ──────────────────────────────────────────────────────────── */
.thinking {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  padding: 0.25rem 0;
}
.thinking i {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  animation: blink 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.thinking i:nth-child(2) {
  animation-delay: 0.16s;
}
.thinking i:nth-child(3) {
  animation-delay: 0.32s;
}
@keyframes blink {
  30% {
    opacity: 1;
    transform: translateY(-0.12rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── sheet ─────────────────────────────────────────────────────────
   Anything that rises from the bottom edge. Scrim and panel animate
   separately and at different speeds because they say different things:
   the scrim says the screen behind is paused, the panel says this came
   from down there and that is where it goes back to.

   The scrim is neutral ink, not forest: a green scrim tints everything
   behind it green and turns the lime button olive. A scrim should
   darken, not colour. */
.sheetwrap {
  position: absolute;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
/* A faint shade, no blur (founder, 13 Nov 2026): the screen behind stays
   clear and only what is under the glass sheet is frosted. Neutral ink,
   not forest: a green scrim tints everything behind it and turns the lime
   button olive. */
.scrim {
  position: absolute;
  inset: 0;
  /* The one glass's shade (glass.css): the screen behind stays clear. */
  background: var(--gl-scrim);
  opacity: 0;
  transition: opacity 260ms cubic-bezier(0.4, 0, 0.2, 1);
  /* The scrim swallows touch-scroll so the screen behind cannot be
     dragged around under the sheet. */
  touch-action: none;
}
.sheetwrap.in .scrim {
  opacity: 1;
}
/* 0.32, 0.72, 0, 1 is the iOS sheet curve: almost no ease-in, so the
   panel leaves the bottom edge immediately, and a long tail so it
   settles instead of stopping. The scrim runs on its own, shorter and
   softer, because the two are saying different things. */
.sheet {
  position: relative;
  /* The surface is the one glass (glass.css). */
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  padding: 0 1.125rem 1.5rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  max-height: 88dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(100%);
  transition: transform 420ms cubic-bezier(0.32, 0.72, 0, 1);
  /* Vertical gestures are handled in JS, so the browser must not also
     claim them; without this a drag scrolls the panel and moves it. */
  touch-action: pan-y;
}
.sheet.tall {
  height: 88dvh;
}
.sheetwrap.in .sheet {
  transform: translateY(0);
}
.sheet:focus {
  outline: none;
}
.sheetwrap.leaving .sheet {
  transform: translateY(100%);
  transition-duration: 280ms;
}
/* While the finger is down the panel is positioned from JS, frame by
   frame, so any transition would lag behind the hand. */
.sheetwrap.dragging .sheet {
  transition: none;
}
/* Sticky so the handle stays grabbable once a long list has scrolled. */
.sheethead {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-bottom: 0.5rem;
  cursor: grab;
}
.sheetwrap.dragging .sheethead {
  cursor: grabbing;
}
/* The universal sign that a thing can be pushed back down, and now it
   really can be. */
.grabber {
  display: block;
  width: 2.5rem;
  height: 0.25rem;
  border-radius: 0.125rem;
  background: var(--line);
  margin: 0.5rem auto 0.75rem;
}
.sheettitle {
  font-size: var(--fs-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.sheet p {
  font-size: var(--fs-body);
  color: var(--t2);
  font-weight: 500;
  line-height: 1.5;
}
/* ── shortcut grid ─────────────────────────────────────────────────
   Four across, which is the most that fits a readable label on the
   narrowest phone this app targets. Rows wrap and the sheet scrolls. */
.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.125rem 0.5rem;
  padding: 0.375rem 0 0.5rem;
}
.gi {
  display: grid;
  justify-items: center;
  gap: 0.4375rem;
  min-width: 0;
}
.gi .ic {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--accent-ink);
}
.gi .ic svg {
  width: 1.375rem;
  height: 1.375rem;
}
/* The same count as the tab badge, in the same place, so the number
   means the same thing wherever it appears. */
.gi .ct {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.3125rem;
  border-radius: 0.5625rem;
  background: var(--red);
  color: #fff;
  font-size: var(--fs-label);
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--card);
}
.gi .lb {
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--t2);
  line-height: 1.25;
  text-align: center;
}
.gi:active .ic {
  transform: scale(0.94);
}
.gi .ic {
  transition: transform 140ms cubic-bezier(0.32, 0.72, 0, 1);
}

.sheet .acts {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1.25rem;
}
.btn.danger {
  background: var(--danger-fill);
  color: #fff;
}

/* ── signed out ────────────────────────────────────────────────────
   The remembered-account card on the sign-in screen. */
.acct {
  display: flex;
  align-items: center;
  gap: 0.8125rem;
  background: var(--fill);
  border-radius: var(--r-md);
  padding: 0.875rem;
}
.acct .av {
  background: var(--forest);
  color: var(--lime);
}
.acct .tx {
  flex: 1;
  min-width: 0;
}
.acct b {
  display: block;
  font-size: var(--fs-row);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.acct .tx span {
  display: block;
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.textlink {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.875rem;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--t2);
}
/* Switching between Sign in and sign-up (founder, 10 Oct 2026): the question
   stays grey, the action is bold in the accent ink (forest in light, lime in
   dark) so it stands out. The whole line is the button, at least 44px tall. */
.textlink.switchlink {
  min-height: 2.75rem;
}
.textlink .tl-act {
  font-weight: 700;
  color: var(--accent-ink);
}

/* ── add product: media card, select row, description ───────────────
   Built to the supplied design. The media card is the one piece here
   that cannot do its job yet: there is no bucket and no media table, so
   its buttons are inert and it says why rather than taking a photo and
   dropping it. Keeping it in place, at the top where it was designed,
   means the screen is not quietly redesigned around a missing feature. */
.mediacard {
  background: var(--card);
  border: var(--hair) solid var(--line);
  border-radius: var(--r-lg);
  padding: 0.875rem;
  margin-bottom: 1.125rem;
}
.mediacard .hd {
  display: grid;
  gap: 0.125rem;
  margin-bottom: 0.75rem;
}
.mediacard .hd b {
  font-size: var(--fs-body);
  font-weight: 700;
}
.mediacard .hd span {
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 500;
}
.mediacard .slots {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.mediacard .slots::-webkit-scrollbar {
  display: none;
}
.mediacard .slot {
  flex: none;
  width: 4.625rem;
  height: 4.625rem;
  border-radius: var(--r-md);
  background: var(--fill);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.3125rem;
  color: var(--t2);
}
.mediacard .slot svg {
  width: 1.25rem;
  height: 1.25rem;
}
.mediacard .slot span {
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--t2);
}
.mediacard .slot:disabled {
  opacity: 0.55;
}
/* The camera leads, so it is the one tile that looks like an action
   rather than a slot. WhatsApp's order: shutter, then the gallery, then
   what is already attached. */
.mediacard .slot.shoot {
  background: var(--forest);
  color: #fff;
}
.mediacard .slot.shoot span {
  color: rgba(255, 255, 255, 0.86);
}
/* The message a customer replied to, quoted above their own words.
   WhatsApp's own shape: an inset block with a bar down its leading edge,
   the author on the first line, a one-line snippet under it. Written with
   the markup for the reason the chat-media rule below gives. */
.quoted {
  display: block;
  margin-block-end: 0.375rem;
  padding: 0.3125rem 0.5rem;
  border-inline-start: 3px solid currentColor;
  border-radius: 0.25rem;
  /* Tinted from the bubble's own text colour, so it works in an inbound
     bubble and an outbound one without a second rule for each. */
  background: color-mix(in srgb, currentColor 8%, transparent);
  font-size: var(--fs-meta);
  line-height: 1.35;
  opacity: 0.85;
  /* One line. A quote longer than the message it precedes is noise, and the
     full text is a few bubbles up anyway. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quoted i {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: var(--fs-label);
  opacity: 0.8;
}

/* A photo inside a chat bubble.
   Written with the markup, not after it: this stylesheet has already twice
   carried a class that existed only in a component (.cbar, .selectrow.on),
   and both times it looked like a broken feature rather than a missing
   rule. */
.chatshot {
  display: block;
  margin: 0;
  border-radius: 0.625rem;
  overflow: hidden;
  /* Bounded so a portrait photo cannot push the whole transcript down a
     screen and a half. Tapping opens it full size. */
  max-width: 13rem;
  max-height: 15rem;
  background: rgba(0, 0, 0, 0.06);
}
.chatshot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 15rem;
}
.chatshot.loading {
  display: grid;
  place-items: center;
  width: 9rem;
  height: 6rem;
  font-size: var(--fs-meta);
  color: var(--t2);
}
/* A caption under a photo, and the reason it is a separate class: a bubble
   holding both needs the gap, a bubble holding only text must not gain
   one. */
.b .cap {
  display: block;
  margin-top: 0.375rem;
}
/* A voice note or a document: named and acknowledged rather than rendered,
   because an audio player in a transcript is its own piece of work and a
   dead play button is worse than a label. */
.chatfile {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--fs-meta);
  opacity: 0.85;
}
.chatfile svg { width: 0.9375rem; height: 0.9375rem; flex: none; }
/* A failure message wraps, unlike a one-word file label, so the flex row
   has to be allowed to. Without this the sentence is forced onto one line
   and clipped by the bubble. */
.chatfile { flex-wrap: wrap; }
/* The words of a customer's voice note, under its label (server 0143).
   Written with the markup, for the reason the chat-media rule above gives.
   No side stripe: the label above already says it is a voice note. */
.b .voicewords {
  display: block;
  margin-block-start: 0.375rem;
}
.b .voicewords.unsure {
  opacity: 0.75;
}
.b .voicewords i {
  display: block;
  margin-block-start: 0.25rem;
  font-style: normal;
  font-size: var(--fs-label);
  opacity: 0.8;
}
/* The retry, when the failure might be temporary. Underlined rather than
   made a button-shaped thing: it sits inside a sentence. */
.chatretry {
  font: inherit;
  font-weight: 600;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* "or use your password", as a rule with the words sitting in it. A bare
   line of text between two buttons reads as a label for the second one;
   the rule is what makes it a fork in the road instead.

   Written here at the same time as the markup, because this stylesheet has
   now twice carried a class that existed only in a component (.cbar, and
   .selectrow.on), and both times the result looked like a broken feature
   rather than a missing rule. */
.orline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 1.125rem;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--t2);
  white-space: nowrap;
}
.orline::before,
.orline::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line, rgba(128, 128, 128, 0.25));
}

/* The business's own mark on Home, filling the circle the Relynked tile
   otherwise occupies. contain rather than cover for the reason below, and
   a white ground so a transparent logo survives dark mode. */
.tbar .logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  display: block;
}

/* A LOGO THAT EXISTS FILLS ITS TILE. The point of a mark is to be looked
   at, and a filled tile is also the only honest confirmation that the
   upload saved. The label sits over the foot of the picture on a scrim
   rather than beneath it, so the image keeps the whole square. */
.mediacard .slot.logoset {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: var(--fill);
  align-content: end;
  gap: 0;
}
.mediacard .slot.logoset img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* CONTAIN, NOT COVER. Cropping a photograph loses some background;
     cropping a logo cuts the ends off a wordmark, which is the one thing
     a logo cannot survive. The white ground is because almost every logo
     is drawn for a light background, and this tile also appears in dark
     mode, where a transparent PNG would otherwise vanish. */
  object-fit: contain;
  background: #fff;
}
.mediacard .slot.logoset span {
  position: relative;
  /* align-content, not just align-self. The base .slot rule centres its
     rows, so align-self alone aligned the label within a centred row and
     left the band floating mid tile. */
  align-self: end;
  width: 100%;
  text-align: center;
  padding: 0.1875rem 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}
/* Beside the tile, not on it: a remove that overlaps the picture is a
   remove that gets tapped by accident. */
.mediacard .slotdrop {
  align-self: center;
  margin-left: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
  background: var(--fill);
  color: var(--red);
  font-size: var(--fs-meta);
  font-weight: 600;
  text-align: center;
}

/* The "add more" tile from the design: dashed, and inert because there
   is nothing to add to yet. */
.mediacard .ghostslot {
  background: none;
  border: var(--hair) dashed var(--line);
  opacity: 0.55;
}
.mediacard .why {
  font-size: var(--fs-label);
  color: var(--t2);
  font-weight: 500;
  line-height: 1.45;
  margin: 0.75rem 0 0;
}

/* A field that opens a picker rather than taking typing. Shaped like the
   other inputs so the form still reads as one column of fields. */
/* Padding and min-height copied from .phonef, not invented, so this row
   sits on the same rhythm as the inputs above and below it. Left to its
   own padding it came out 34px against their 44.5px and read as a
   different kind of thing. */
.selectrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  background: var(--fill);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: 0 0.875rem;
  min-height: 3.375rem;
  color: var(--t1);
  text-align: left;
}
/* The tile styles are scoped to .li .ic, so an .ic here has no size of
   its own and collapsed to nothing. Only the glyph is wanted in a field
   row anyway, at the same size the fields' own leading icons use. */
.selectrow .ic {
  flex: none;
  width: auto;
  height: auto;
  background: none;
  color: var(--t2);
}
.selectrow .ic svg {
  width: 1.125rem;
  height: 1.125rem;
}
.selectrow .val {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-body);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Renamed off the frame class. See the note on .frame. */
.selectrow .val.empty {
  color: var(--t3);
  font-weight: 500;
}
/* Sized, not just coloured. `chev` has an 8x14 viewBox and no intrinsic
   pixel size, so an unsized one in a flex row takes the full width and
   1.75x that in height: this row rendered 862px tall, nineteen times the
   field above it. The Chev component carries .cv for exactly this
   reason; this is the belt to its braces. */
.selectrow > svg:last-child {
  width: 0.5rem;
  height: 0.875rem;
  color: var(--t3);
  flex: none;
}

/* The description box. The counter sits inside the field, bottom right,
   as designed, so it never pushes the layout around as it changes. */
.areaf {
  position: relative;
  background: var(--fill);
  border-radius: var(--r-md);
  padding: 0.6875rem 0.75rem 1.5rem;
}
/* On a sheet whose other fields sit in from the edge (the customer sheet's
   .sf name field), the note sits in with them rather than running wider. */
.areaf.inset {
  margin: 0.875rem 1.125rem 0;
}
.areaf textarea {
  width: 100%;
  border: 0;
  background: none;
  outline: none;
  resize: none;
  font: inherit;
  font-size: var(--fs-input);
  font-weight: 500;
  color: var(--t1);
  line-height: 1.5;
}
.areaf textarea::placeholder {
  color: var(--t3);
}
.areaf .count {
  position: absolute;
  right: 0.75rem;
  bottom: 0.5rem;
  font-size: var(--fs-micro);
  color: var(--t3);
  font-weight: 600;
}

/* ── picker sheet ──────────────────────────────────────────────────── */
.picklist {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 0.25rem;
}
.pickrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.75rem;
  border-radius: var(--r-md);
  background: var(--fill);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--t1);
  text-align: left;
}
/* WHITE LIFT (founder, 2026-10-10: white lift replaces the pale green).
   The other rows stay grey; the chosen one lifts, its name goes bold and
   its tick is forest (lime in dark). The country list is one of these. */
.pickrow.on {
  background: var(--sel);
  box-shadow: var(--sel-sh);
  color: var(--t1);
  font-weight: 700;
}
.pickrow svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}
.pickrow.on svg {
  color: var(--accent-ink);
}
/* Creating a category is a deliberate act, so it looks like one. */
.pickrow.new {
  background: none;
  border: var(--hair) dashed var(--line);
  color: var(--accent-ink);
}
.pickempty {
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 500;
  padding: 0.75rem 0.25rem;
}
/* A heading over a run of rows ("Hair styling"). The group carries the same
   small gap as the list, so a grouped picker spaces its rows exactly as a
   flat one does, with the heading as the only difference. */
.pickgroup {
  display: grid;
  gap: 0.25rem;
}
.pickgroup + .pickgroup {
  margin-top: 0.625rem;
}
.pickhead {
  padding: 0.25rem 0.25rem 0.125rem;
}

/* ── bookings ───────────────────────────────────────────────────────────
   Free times as chips that WRAP, not a sideways scroll: a day has twenty
   of them, and a time hidden off the right edge is a time nobody books. */
.slotgrid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.25rem 0 0.25rem;
}
.slotgrid .chip {
  font-variant-numeric: tabular-nums;
}

/* ── bookings: the calendar ─────────────────────────────────────────
   One calendar at four distances (see screens/Bookings.tsx). Everything
   is prefixed bk- so no short name in this shared sheet can catch it. */

/* The view switch and the period, pinned while the calendar scrolls. The
   background is the page's own, so the grid passes under it cleanly. */
.bk-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  padding: 0.75rem 1.125rem 0.625rem;
}
.bk-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.bk-nav h2 {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-row);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
/* Round and filled like the back button, and sized for a thumb rather
   than for the chevron inside it. */
.bk-arrow {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--fill);
  display: grid;
  place-items: center;
  color: var(--t1);
}
.bk-arrow svg {
  width: 0.625rem;
  height: 1rem;
}
.bk-arrow:active,
.bk-today:active {
  opacity: 0.7;
}
.bk-today {
  flex: none;
  padding: 0.5625rem 0.875rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--card);
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--t1);
}
/* Already on today: still there, so the bar does not jump, but quiet. */
.bk-today:disabled {
  opacity: 0.4;
  cursor: default;
}

/* The hour grid.
   --hh is one hour's height, set by the screen: taller in Day, where a
   block carries words, shorter in Week, where it carries a time. Hour
   lines are a background, not elements, so a long day is not a dozen more
   nodes per column. */
.bk-grid {
  margin: 0.75rem 1.125rem 0;
  padding: 0.75rem 0.5rem 0.75rem 0;
  background: var(--card);
  border-radius: var(--r-xl);
  box-shadow: var(--sh);
}
.bk-body {
  position: relative;
  display: flex;
}
.bk-hours {
  position: relative;
  flex: none;
  width: 2.875rem;
}
.bk-hours span {
  position: absolute;
  right: 0.4375rem;
  transform: translateY(-50%);
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--t3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bk-cols {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 100% var(--hh);
  border-bottom: 1px solid var(--line);
}
.bk-col {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 0;
}

/* A booking. Booked LIFTS off the grid, white with a soft shadow, the way
   a chosen item does (founder, 2026-10-10: white lift replaces the pale
   green, and no coloured side edge on anything). No show is amber,
   Cancelled rose; the shadow keeps two blocks side by side apart. Done goes
   flat grey: it is a record now, not a customer to plan around. */
.bk-blk {
  position: absolute;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.0625rem;
  padding: 0.25rem 0.375rem;
  border-radius: 0.5rem;
  background: var(--sel);
  box-shadow: var(--sel-sh);
  color: var(--t1);
  font-size: var(--fs-label);
  line-height: 1.25;
  text-align: left;
}
.bk-blk b,
.bk-blk span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bk-blk b {
  font-weight: 700;
}
.bk-blk span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--t2);
  font-weight: 500;
}
.bk-blk span svg {
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  color: var(--accent-ink);
}
.bk-blk.done {
  background: var(--fill);
  box-shadow: none;
  color: var(--t2);
}
.bk-blk.no_show {
  background: var(--amber);
  box-shadow: none;
}
/* Faded and struck, not hidden: the owner may need to see the 2pm that
   was cancelled, but it must not read as a chair still taken. */
.bk-blk.cancelled {
  background: var(--rose);
  box-shadow: none;
  opacity: 0.55;
}
.bk-blk.cancelled b {
  text-decoration: line-through;
}
button.bk-blk:active {
  filter: brightness(0.95);
}

/* Now, on today's column. Red, as a clock hand, and above the blocks. */
.bk-now {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  margin-top: -1px;
  background: var(--red);
  z-index: 2;
  pointer-events: none;
}
.bk-now::before {
  content: "";
  position: absolute;
  left: -0.25rem;
  top: -0.1875rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--red);
}

/* The week: seven narrow columns. */
.bk-grid.wk {
  padding-top: 0;
}
.bk-grid.wk .bk-body {
  margin-top: 0.5rem;
}
.bk-grid.wk .bk-col + .bk-col {
  border-left: 1px solid var(--line);
}
.bk-grid.wk .bk-col:active {
  background: var(--fill);
}
.bk-grid.wk .bk-blk {
  padding: 0.125rem 0.1875rem;
  border-left-width: 2px;
  border-radius: 0.3125rem;
  font-size: var(--fs-label);
  /* Off the day's dividing line, so the block is not drawn over it. */
  margin-left: 1px;
}
.bk-wkhead {
  display: flex;
  padding-left: 2.875rem;
}
.bk-wkhead button {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  padding: 0.625rem 0 0.25rem;
  text-align: center;
}
.bk-wkhead i {
  font-style: normal;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--t2);
}
.bk-wkhead b {
  display: grid;
  place-items: center;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  font-size: var(--fs-body);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.bk-wkhead .today b {
  background: var(--forest);
  color: #fff;
}
.bk-wkhead em {
  min-height: 0.875rem;
  font-style: normal;
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

/* The month. */
.bk-month {
  margin: 0.75rem 1.125rem 0;
  padding: 0.5rem 0.5rem 0.625rem;
  background: var(--card);
  border-radius: var(--r-xl);
  box-shadow: var(--sh);
}
.bk-dow,
.bk-mgrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.bk-dow span {
  padding: 0.25rem 0 0.375rem;
  text-align: center;
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--t3);
}
.bk-mgrid {
  gap: 0.25rem 0.125rem;
}
.bk-mday {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1875rem;
  min-height: 3.375rem;
  padding: 0.3125rem 0 0.25rem;
  border-radius: var(--r-sm);
  text-align: center;
}
.bk-mday b {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  font-size: var(--fs-meta);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.bk-mday i {
  min-width: 1.25rem;
  padding: 0.0625rem 0.3125rem;
  border-radius: var(--r-pill);
  background: var(--fill);
  color: var(--green);
  font-style: normal;
  font-size: var(--fs-label);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
/* Gone days stay readable, one step quieter: last Tuesday's bookings are
   history, not a plan. */
.bk-mday.past b {
  color: var(--t3);
}
.bk-mday.past i {
  background: var(--fill);
  color: var(--t2);
}
/* The chosen day lifts (founder, 2026-10-10: white lift). */
.bk-mday.sel {
  background: var(--sel);
  box-shadow: var(--sel-sh);
}
.bk-mday.today b {
  background: var(--forest);
  color: #fff;
}
.bk-mday:active {
  background: var(--fill);
}

/* The year: twelve small months, shaded. Three across, so the whole year
   is about one screen and a busy December stands out without scrolling. */
.bk-year {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 1.125rem 0;
}
.bk-ymon {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
  padding: 0.5625rem 0.5rem 0.5rem;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  box-shadow: var(--sh);
}
.bk-ymon.now {
  border-color: var(--accent-ink);
}
.bk-ymon:active {
  opacity: 0.8;
}
.bk-ytop {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem;
}
.bk-ytop b {
  font-size: var(--fs-meta);
  font-weight: 700;
}
.bk-ytop i {
  font-style: normal;
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--t2);
  font-variant-numeric: tabular-nums;
}
.bk-ygrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}
.bk-ygrid span {
  aspect-ratio: 1;
  border-radius: 3px;
}
/* A shade is the accent laid over the day at a strength, so it follows
   the theme on its own: forest in light, lime in dark. */
.bk-heat {
  position: relative;
  overflow: hidden;
  background: var(--fill);
}
.bk-heat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-ink);
  opacity: 0;
}
.bk-heat.l1::after { opacity: 0.25; }
.bk-heat.l2::after { opacity: 0.5; }
.bk-heat.l3::after { opacity: 0.75; }
.bk-heat.l4::after { opacity: 1; }
.bk-ygrid .today {
  outline: 2px solid var(--orange);
  outline-offset: 0;
  z-index: 1;
}
.bk-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  margin: 0.75rem 1.125rem 0;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--t2);
}
.bk-legend span {
  margin: 0 0.25rem;
}
.bk-legend i {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 3px;
}

/* A booking, opened. In the sheet a grid block opens there is no row to
   indent under, so the list sits flush. */
.packlist.insheet {
  padding: 0.25rem 0 0;
  gap: 0.5rem;
}
/* The buttons wrap: a confirmed home-service booking has five of them,
   and five do not fit across a phone. */
.bk-acts {
  flex-wrap: wrap;
}
/* Six buttons can be there now (Move to joined them): each keeps its own
   width and the row wraps, rather than squeezing a label down to "D.". */
.bk-acts .fsbtn {
  flex: 0 0 auto;
}
.bk-acts a {
  text-decoration: none;
}
/* The status pill beside the name in the sheet keeps its own width;
   `.packrow span` would otherwise stretch it across the row. */
.packrow .pill {
  flex: none;
}
/* Where the artist is going. Set apart from the note, because it is the
   one line of it that decides whether she leaves on time. */
.bk-home {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border-radius: var(--r-sm);
  background: var(--fill);
  color: var(--t1);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.4;
}
.bk-home svg {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.0625rem;
  color: var(--accent-ink);
}
.bk-home b {
  display: block;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--t2);
}

/* ── media thumbnails ───────────────────────────────────────────────
   The tiles are LABELS wrapping hidden file inputs, because only a file
   input can open a camera; they still have to look and size like the
   buttons they replaced. */
.mediacard .slot {
  cursor: pointer;
}
.mediacard label.slot input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.mediacard label.slot:active {
  transform: scale(0.96);
}
.mediacard label.slot {
  transition: transform 140ms cubic-bezier(0.32, 0.72, 0, 1);
}
/* A taken photo, same footprint as the tiles so the row stays even. */
.mediacard .shot {
  position: relative;
  flex: none;
  width: 4.625rem;
  height: 4.625rem;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--fill);
}
.mediacard .shot img,
.mediacard .shot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* The remove control sits ON the thumbnail, as designed. Given its own
   hit area rather than relying on the 16px glyph: a thumbnail is small
   and a mis-tap deletes the photo. */
.mediacard .shot .rm {
  position: absolute;
  top: 0.1875rem;
  right: 0.1875rem;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: rgba(12, 18, 16, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.mediacard .shot .rm svg {
  width: 0.75rem;
  height: 0.75rem;
}
/* Marks a video apart from a photo at a glance: the poster frame of a
   video and a still photo look identical at this size. */
.mediacard .shot .vtag {
  position: absolute;
  left: 0.1875rem;
  bottom: 0.1875rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgba(12, 18, 16, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
}
.mediacard .shot .vtag svg {
  width: 0.6875rem;
  height: 0.6875rem;
}

/* The draft notice. Quiet: it is good news, not a warning, and it sits
   above a form the owner is about to carry on filling. */
.draftbar {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--fill);
  border-radius: var(--r-md);
  padding: 0.625rem 0.75rem;
  margin-bottom: 1rem;
}
.draftbar .tx {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.0625rem;
}
.draftbar .tx b {
  font-size: var(--fs-meta);
  font-weight: 700;
}
.draftbar .tx span {
  font-size: var(--fs-label);
  color: var(--t2);
  font-weight: 500;
}
.draftbar > button {
  flex: none;
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--accent-ink);
  padding: 0.25rem 0.125rem;
}
.draftbar .ic {
  flex: none;
  width: auto;
  height: auto;
  background: none;
  color: var(--accent-ink);
}
.draftbar .ic svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* ── Ask Remy proposal cards ────────────────────────────────────────
   A draft, shown so it can be CHECKED rather than merely agreed with.
   Every row carries before and after: "1,200 to 1,500" is a claim you
   can catch, "1,500" is a number you nod at. */
.pcard {
  background: var(--card);
  border: var(--hair) solid var(--line);
  border-radius: var(--r-lg);
  padding: 0.75rem 0.875rem;
  margin-top: 0.5rem;
  box-shadow: var(--sh);
}
.pcard .ptitle {
  font-size: var(--fs-body);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.pcard .pline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.25rem 0;
  font-size: var(--fs-meta);
}
.pcard .pline .lb {
  color: var(--t2);
  font-weight: 500;
  flex: none;
}
.pcard .pline .ba {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  min-width: 0;
  text-align: right;
}
/* The old value, struck through, so the change is the thing you read. */
.pcard .pline .ba s {
  color: var(--t3);
  font-weight: 500;
}
.pcard .pline .ba b {
  font-weight: 700;
}
.pcard .pwarn {
  display: flex;
  align-items: flex-start;
  gap: 0.4375rem;
  margin-top: 0.5rem;
  padding: 0.4375rem 0.5rem;
  border-radius: var(--r-sm);
  background: var(--amber);
  color: var(--t1);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.4;
}
.pcard .pwarn svg {
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  color: var(--orange);
  margin-top: 0.0625rem;
}
/* The PIN sits ON the card being confirmed, not in a modal over it, so
   the owner can still read what they are agreeing to while they type. */
.pcard .ppin {
  margin-top: 0.625rem;
  background: var(--fill);
  border-radius: var(--r-sm);
  padding: 0 0.75rem;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}
.pcard .ppin input {
  width: 100%;
  border: 0;
  background: none;
  outline: none;
  font: inherit;
  font-size: var(--fs-input);
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--t1);
}
.pcard .perr {
  margin-top: 0.5rem;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--red);
}
/* A decided card keeps its detail but stops inviting a tap. */
.pcard.done {
  background: none;
  box-shadow: none;
  opacity: 0.72;
}
.pcard .pdone {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: var(--hair) solid var(--line);
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--accent-ink);
}
.pcard .pdone svg {
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
}
/* A confirmed settings card (Remy first, Phase 1) still has one thing to
   press for 24 hours, Undo, so it stays at full strength until then. */
.pcard.done.undoable {
  opacity: 1;
}
.pcard .pundo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: var(--fs-label);
  line-height: 1.4;
  color: var(--t2);
}
.pcard .pundo button {
  flex: none;
  padding: 0.5rem 1rem;
  border-radius: 0.8125rem;
  font-size: var(--fs-meta);
  font-weight: 700;
  background: var(--card);
  color: var(--t1);
  border: 1px solid var(--line);
}
.pcard .pundo button:disabled {
  opacity: 0.6;
}

/* ── Ask Remy search bar ────────────────────────────────────────────
   Ask used to be a quarter of the tab bar. It is a search field now, at
   the top where a phone puts search, and the freed slot went to Menu.
   Shaped like a search pill rather than a button because that is the
   thing every owner already knows how to use. */
.askbar {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: calc(100% - 2.25rem);
  margin: 0 1.125rem 0.875rem;
  /* A quarter taller than it first was: at 3.125rem it read as a row
     of chrome rather than the thing you tap to talk to Remy. */
  min-height: 3.90625rem;
  /* Room above it. It follows the shortcut row directly, and at the old
     margin the two read as one block instead of two separate things. */
  margin-top: 1.375rem;
  padding: 0 1rem;
  border-radius: var(--r-pill);
  background: var(--card);
  border: var(--hair) solid var(--line);
  box-shadow: var(--sh);
  text-align: left;
}
.askbar .mk {
  flex: none;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
}
/* The orb is sized by height, like everywhere else it appears. */
.askbar .mk .rmk {
  width: auto;
  height: 1rem;
}
.askbar .hint {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--t3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.askbar .mic {
  flex: none;
  display: grid;
  place-items: center;
  color: var(--t2);
}
.askbar .mic svg {
  width: 1.0625rem;
  height: 1.0625rem;
}
.askbar:active {
  transform: scale(0.99);
}
.askbar {
  transition: transform 140ms cubic-bezier(0.32, 0.72, 0, 1);
}

/* A pick row that carries an icon tile as well as a label. */
.pickrow .pkl {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}
.pickrow .pkl .ic {
  flex: none;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 0.5rem;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
}
.pickrow .pkl .ic svg {
  width: 0.9375rem;
  height: 0.9375rem;
}
/* Three are pinned and the rest go quiet, so the cap explains itself
   without a sentence about it. */
.pickrow:disabled {
  opacity: 0.45;
}

/* ── swipe a row to reveal Delete ───────────────────────────────────
   The action sits UNDERNEATH and the row slides off it, rather than the
   button sliding in from the side. It means the reveal is exactly the
   distance the finger travelled, with nothing to keep in sync. */
.swipe {
  position: relative;
  overflow: hidden;
}
.swipeact {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: var(--red);
  transition: background 200ms ease;
}
/* A picked row, not a doomed one. Same gesture, same place, one icon
   different, so choosing several things is not a change of scenery. */
.swipeact.good {
  background: var(--forest);
}
.swipeact .del {
  width: 5.5rem;
  transition: width 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Matches OPEN_PICK in SwipeRow.tsx: a picked row stays open, so the
   panel must cover as little of the product's name as possible. */
.swipeact.good .del {
  width: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1875rem;
  color: #fff;
  background: none;
  border: 0;
  font-size: var(--fs-label);
  font-weight: 700;
}
.swipeact .del svg {
  width: 1.125rem;
  height: 1.125rem;
}
.swipeface {
  position: relative;
  background: var(--card);
  /* The row is dragged sideways, so the browser must not also try to
     pan the page with the same finger. */
  touch-action: pan-y;
}

/* The teaching nudge on a long press: twice to the left and back, far
   enough to show the red behind it without opening. */
.swipeface.nudge {
  animation: nudge-left 700ms cubic-bezier(0.3, 0.7, 0.3, 1);
}
@keyframes nudge-left {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-22px); }
  36% { transform: translateX(0); }
  56% { transform: translateX(-22px); }
  78% { transform: translateX(0); }
}

/* ── the bar that says what happened, and offers it back ────────────── */
.toast {
  position: absolute;
  left: calc(0.875 * var(--fix));
  right: calc(0.875 * var(--fix));
  bottom: calc(5.75 * var(--fix));
  bottom: calc(5.75 * var(--fix) + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--r-md);
  background: var(--forest);
  color: #fff;
  box-shadow: 0 10px 30px rgba(11, 61, 46, 0.35);
  /* Above the tab bar's 85: an undo you cannot reach is not an undo. */
  z-index: 95;
  overflow: hidden;
  animation: toast-in 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toast.out {
  animation: toast-out 240ms cubic-bezier(0.4, 0, 1, 1) forwards;
}
.toast .ti {
  display: grid;
  place-items: center;
  flex: none;
  color: var(--lime);
}
.toast .ti svg {
  width: 1.125rem;
  height: 1.125rem;
}
.toast .tt {
  flex: 1;
  font-size: var(--fs-meta);
  font-weight: 600;
  line-height: 1.3;
}
.toast .ta {
  flex: none;
  padding: 0.375rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--lime);
  color: var(--on-lime);
  border: 0;
  font-size: var(--fs-label);
  font-weight: 700;
}
/* The visible clock, so the undo window is something you can see rather
   than something you find out about. */
.toast .tbarfill {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background: var(--lime);
  animation: toast-drain linear forwards;
}
@keyframes toast-drain {
  from { width: 100%; }
  to { width: 0%; }
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(0.75rem); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(0.75rem); }
}

@media (prefers-reduced-motion: reduce) {
  .swipeface.nudge,
  .toast,
  .toast.out,
  .toast .tbarfill {
    animation-duration: 1ms;
  }
}

/* ── the stock counter, greyed out when nothing is counted ──────────── */
.stepper.off {
  opacity: 0.45;
}
.stepper.off input {
  /* A dash, centred, rather than a stale number nobody can act on. */
  color: var(--t3);
}

/* A `moreopts` row carrying a switch instead of a chevron: the toggle is
   the control, so the row itself must not also be a button. */
.moreopts.asrow {
  cursor: default;
}

/* ── the plus button, and what it spins out ─────────────────────────── */
.fab.open {
  transform: rotate(45deg);
}
/* Tapping anywhere else shuts it, which is how every menu should close.
   Transparent rather than dimmed: the list behind is still the context
   for the choice being made. */
.fabveil {
  position: absolute;
  inset: 0;
  background: none;
  border: 0;
  z-index: 59;
}
.fabstack {
  position: absolute;
  right: calc(0.875 * var(--fix));
  bottom: calc(10.5 * var(--fix));
  bottom: calc(10.5 * var(--fix) + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  z-index: 61;
  /* Shut: gone, and not tabbable. `visibility` rather than `display` so
     the entrance can animate. */
  visibility: hidden;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 160ms ease, transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 160ms;
}
.fabstack.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}
.fabopt {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.5rem 0.5rem 0.9375rem;
  border-radius: var(--r-pill);
  /* The surface is the one glass (glass.css). */
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--t1);
  white-space: nowrap;
}
.fabopt .ic {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  flex: none;
}
.fabopt .ic svg {
  width: 1.0625rem;
  height: 1.0625rem;
}
/* The second option arrives just after the first, so the stack reads as
   unfolding rather than appearing. */
.fabstack.open .fabopt:nth-child(1) {
  animation: fab-rise 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.fabstack.open .fabopt:nth-child(2) {
  animation: fab-rise 220ms cubic-bezier(0.2, 0.8, 0.2, 1) 45ms both;
}
@keyframes fab-rise {
  from { opacity: 0; transform: translateY(0.625rem) scale(0.96); }
}

@media (prefers-reduced-motion: reduce) {
  .fabstack, .fabstack.open .fabopt { transition-duration: 1ms; animation-duration: 1ms; }
}

/* The vertical "more" dots in a page header. No pill: it sits alone, so
   the touch target is padding rather than a visible circle, which keeps
   it 44px without drawing a second button next to the back arrow. */
.dotsbtn {
  background: none;
  border: 0;
  padding: 0.625rem 0.375rem;
  margin-right: -0.375rem;
  color: var(--t1);
  display: grid;
  place-items: center;
  flex: none;
}
.dotsbtn svg {
  width: 1.375rem;
  height: 1.375rem;
}
.dotsbtn:active {
  opacity: 0.55;
}

/* ── filter and sort, under the search they refine ──────────────────── */
.fsrow {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.125rem 0;
}
/* A filter or sort button on its own in a row.
   .fsbtn is flex: 1 so two or three of them share the width evenly, which is
   right on Stock. Alone, that stretches one control across the whole screen
   and it reads as a primary action rather than a filter. */
.fsbtn.lone {
  flex: 0 0 auto;
}
.fsbtn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-width: 0;
  padding: 0.5625rem 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--t2);
  font-size: var(--fs-label);
  font-weight: 700;
}
/* Lit when it is actually doing something, so a short list always
   explains itself without being opened. */
.fsbtn.on {
  background: var(--forest);
  border-color: transparent;
  color: #fff;
}
.fsbtn.on svg { color: var(--lime); }
.fsbtn svg { width: 0.9375rem; height: 0.9375rem; flex: none; }
.fsbtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── a menu that drops out of the button that opened it ─────────────── */
/*
   Width, font family, size, weight and letter spacing are set INLINE from
   the trigger's own computed style (see DropMenu.tsx), so nothing here
   states them a second time. What is here is only what a menu needs and a
   button does not: a surface, rows, and the way it arrives.
*/
.dropcatch {
  position: absolute;
  inset: 0;
  z-index: 118;
  background: none;
  border: 0;
  /* Swallows the touch that closes it, so closing a menu never also
     scrolls the list behind it. */
  touch-action: none;
}
.dropmenu {
  position: absolute;
  z-index: 119;
  display: flex;
  flex-direction: column;
  padding: 0.25rem;
  border-radius: var(--r-md);
  /* The surface is the one glass (glass.css). */
  overflow: hidden;
  transform-origin: top center;
  animation: dropin 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dropmenu.up {
  transform-origin: bottom center;
}
.droprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem;
  width: 100%;
  /* The trigger's own padding, so a row is the same height as the button
     it came out of. */
  padding: 0.5625rem 0.75rem;
  border: 0;
  border-radius: calc(var(--r-md) - 0.25rem);
  background: none;
  color: var(--t2);
  font: inherit;
  text-align: left;
}
.droprow span {
  min-width: 0;
}
.droprow.on {
  background: var(--forest);
  color: #fff;
}
.droprow.on svg {
  color: var(--lime);
  flex: none;
  width: 0.9375rem;
  height: 0.9375rem;
}
@keyframes dropin {
  from {
    opacity: 0;
    transform: scaleY(0.92) translateY(-0.25rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .dropmenu {
    animation: none;
  }
}

/* ── the photo grid ─────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.75rem;
  padding: 0 1.125rem;
}
.gtile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  min-width: 0;
}
.gshot {
  position: relative;
  aspect-ratio: 1;
  max-width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--fill);
  display: grid;
  place-items: center;
  color: var(--t3);
}
.gshot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gshot svg { width: 1.75rem; height: 1.75rem; }
.gtile.on .gshot { outline: 2px solid var(--forest); outline-offset: -2px; }
.goff {
  position: absolute;
  left: 0.375rem;
  top: 0.375rem;
  padding: 0.125rem 0.4375rem;
  border-radius: var(--r-pill);
  background: var(--red);
  color: #fff;
  font-size: var(--fs-label);
  font-weight: 700;
}
.gname {
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--t1);
  line-height: 1.25;
  /* Two lines, then an ellipsis: a tile must not grow taller than its
     neighbours or the grid goes ragged. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gprice { font-size: var(--fs-label); font-weight: 700; color: var(--t2); }

/* ── picking more than one ──────────────────────────────────────────── */
.tick {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  flex: none;
  background: var(--card);
  color: transparent;
}
.tick.on {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--lime);
}
.tick svg { width: 0.75rem; height: 0.75rem; }
/* On a grid tile it floats over the photo. */
.gshot .tick { position: absolute; right: 0.375rem; top: 0.375rem; }

/* Where the tab bar would be, so the thumb finds it without looking. */
.selbar {
  position: absolute;
  left: calc(0.875 * var(--fix));
  right: calc(0.875 * var(--fix));
  bottom: calc(1.625 * var(--fix));
  bottom: max(calc(1.625 * var(--fix)), env(safe-area-inset-bottom));
  height: calc(3.75 * var(--fix));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.5rem 0 1rem;
  border-radius: var(--r-pill);
  background: var(--forest);
  box-shadow: 0 8px 32px rgba(11, 61, 46, 0.35);
  z-index: 90;
  animation: toast-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.selbar .cancel {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-meta);
  font-weight: 700;
}
.selbar .count {
  flex: 1;
  text-align: center;
  color: #fff;
  font-size: var(--fs-meta);
  font-weight: 700;
}
.selbar .del {
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  border: 0;
  background: var(--red);
  color: #fff;
  font-size: var(--fs-meta);
  font-weight: 700;
}
.selbar .del:disabled { opacity: 0.6; }

/* ── pick one, and only one ─────────────────────────────────────────── */
.segment {
  position: relative;
  display: flex;
  gap: 0;
  padding: 0.25rem;
  border-radius: var(--r-pill);
  background: var(--fill);
  border: 1px solid var(--line);
}
/* ONE element that slides, not a background per segment, so the choice
   is seen MOVING from the old answer to the new one. */
.seghi {
  position: absolute;
  left: 0.25rem;
  top: 0.25rem;
  bottom: 0.25rem;
  border-radius: var(--r-pill);
  /* White lift (founder, 2026-10-10): the answer lifts out of the grey track. */
  background: var(--sel);
  box-shadow: var(--sel-sh);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 160ms ease;
  pointer-events: none;
}
.seg {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 0.5625rem 0.375rem;
  border: 0;
  background: none;
  border-radius: var(--r-pill);
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--t2);
  transition: color 180ms ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Explicit, because the reset at the top of this file left-aligns
     every button. Each segment is an equal share of the control, so its
     label sitting hard against the left edge made the three look
     unevenly spaced when they are not. */
  text-align: center;
}
.seg.on { color: var(--t1); }
.seg:disabled { opacity: 0.6; }
.segwhat {
  margin: 0.75rem 0 0;
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--t2);
  line-height: 1.45;
}

/* ── how it speaks: pick a chat, not a word ─────────────────────────── */
.voicelead {
  margin: 0 0 0.875rem;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--t2);
}
.askedline {
  display: flex;
  margin-bottom: 0.75rem;
}
.bub {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 1rem;
  font-size: var(--fs-meta);
  font-weight: 500;
  line-height: 1.35;
  max-width: 100%;
}
/* The customer. Neutral, because it is the constant in the comparison. */
.bub.them {
  background: var(--fill);
  color: var(--t1);
  border-bottom-left-radius: 0.3125rem;
}
/* The business. Forest, as its messages are everywhere else in the app. */
.bub.us {
  background: var(--forest);
  color: #fff;
  border-bottom-right-radius: 0.3125rem;
  align-self: flex-end;
  text-align: left;
}
.voicecards { display: grid; gap: 0.625rem; }
.vcard {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--card);
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.vcard.on {
  border-color: var(--forest);
  box-shadow: 0 0 0 1px var(--forest) inset;
}
.vtop { display: flex; align-items: center; justify-content: space-between; }
.vname { font-size: var(--fs-meta); font-weight: 700; color: var(--t1); }
.vchat { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }

.voicerow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--line);
}
.voicerow .tt { font-size: var(--fs-body); font-weight: 600; color: var(--t1); }
.voicehead {
  margin: 1.25rem 0 0.625rem;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--t3);
}
.voicenote {
  margin: 0.625rem 0 0;
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--t3);
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .seghi { transition-duration: 1ms; }
}

/* ── the header that stays, and swaps with the direction of travel ────
   Resting state: both bars stacked, the page as it was written. Once
   pinned, the block holds ONE bar's height and the two slide through it,
   so the list below never jumps when they swap. */
.stickhead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
}
.stickhead .sf {
  width: calc(100% - 2.25rem);
}
.stickhead.pinned {
  /* One bar tall, whichever is showing. */
  height: calc(3.25 * var(--fix));
  overflow: hidden;
  /* Lifted off the list it now floats over. A hairline rather than a
     blurred shadow: a sticky element repaints on every scrolled frame,
     and a large blur radius is the most expensive thing it could be
     asked to repaint. */
  border-bottom: 1px solid var(--line);
  /* The two bars slide INSIDE this box, so their transitions cannot
     invalidate layout or paint for the list below. */
  contain: layout paint;
}
.stickhead.pinned .chiprow,
.stickhead.pinned .sf {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: 0;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 180ms ease;
}
.stickhead.pinned .sf {
  width: calc(100% - 2.25rem);
  margin: 0 1.125rem;
}
.stickhead.pinned .chiprow { padding-top: 0.375rem; }

/* Going down: the categories, to move between them. */
.stickhead.pinned.chips .chiprow { transform: translateY(0); opacity: 1; }
.stickhead.pinned.chips .sf { transform: translateY(-100%); opacity: 0; pointer-events: none; }
/* Going up: you are looking for something, so it is the search. */
.stickhead.pinned.search .sf { transform: translateY(0.3125rem); opacity: 1; }
.stickhead.pinned.search .chiprow { transform: translateY(-100%); opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .stickhead.pinned .chiprow,
  .stickhead.pinned .sf { transition-duration: 1ms; }
}

/* The layout switch, sitting with filter and sort rather than up in the
   page header: they are the three things you do to a list. */
.fsrow .viewtoggle {
  display: flex;
  flex: none;
  gap: 0;
  padding: 0.1875rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--fill);
}
.fsrow .viewtoggle button {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 1.875rem;
  border: 0;
  background: none;
  border-radius: var(--r-pill);
  color: var(--t3);
}
.fsrow .viewtoggle button.on {
  background: var(--sel);
  color: var(--t1);
  box-shadow: var(--sel-sh);
}
.fsrow .viewtoggle svg { width: 1rem; height: 1rem; }

/* ── your own profile ───────────────────────────────────────────────── */
.profhead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 1.25rem 1.125rem 1.5rem;
}
/* The picture is the one thing on this screen that is purely yours, so it
   is the biggest thing on it. */
.profpic {
  position: relative;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  overflow: visible;
  /* Grey with the accent initials (founder, 2026-10-10: no pale green). */
  background: var(--fill);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
}
.profpic img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.profpic .ini {
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: 0.02em;
}
/* The camera badge says the circle is tappable. Without it a picture
   just looks like a picture. */
.profpic .cam {
  position: absolute;
  right: -0.125rem;
  bottom: -0.125rem;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: grid;
  place-items: center;
  border: 3px solid var(--bg);
}
.profpic .cam svg { width: 1rem; height: 1rem; }
.profpic:active { transform: scale(0.97); }
.profname {
  font-size: var(--fs-row);
  font-weight: 600;
  color: var(--t1);
  margin-top: 0.5rem;
}
.profsince {
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--t3);
}
.proflink {
  margin-top: 0.25rem;
  background: none;
  border: 0;
  padding: 0.25rem 0.5rem;
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--red);
}

/* ── choosing what to pin: three across ─────────────────────────────── */
.pingrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}
.pintile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.75rem 0.25rem;
  border-radius: var(--r-md);
  background: var(--fill);
  text-align: center;
  min-width: 0;
  min-height: 44px;
}
/* White lift, as on Home: the ones you picked rise off the grey. */
.pintile.on {
  background: var(--sel);
  box-shadow: var(--sel-sh);
}
/* Bigger than a row's, which is the point of the grid. */
.pintile .ic {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  /* CENTRES THE GLYPH, which this rule never did. There is no shared `.ic`
     rule in this file: every context (.li, .trio, .trend, .bizcard) states
     its own display and centring, so a new context that sets only a size
     inherits none of it. The span stayed inline and the glyph sat flush
     against the top of the tile, measured at 9.9px above centre in a
     37.9px box. Horizontal centring was never wrong, which is why it read
     as "not in the middle" rather than "off to one side". */
  display: grid;
  place-items: center;
  flex: none;
}
.pintile .ic svg { width: 1.375rem; height: 1.375rem; }
.pintile .lb {
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--t1);
  line-height: 1.25;
  /* Two lines then clipped, so one long label cannot make its tile
     taller than the two beside it. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pintile:disabled { opacity: 0.45; }
.pintile .tick {
  position: absolute;
  right: 0.375rem;
  top: 0.375rem;
  width: 1.125rem;
  height: 1.125rem;
}
.pintile .tick svg { width: 0.625rem; height: 0.625rem; }
/* The place in the order, in the corner of a picked tile. */
.pintile .tick.num { font-size: var(--fs-micro); font-weight: 700; line-height: 1; }

/* The avatar top-right of Home holds a real picture once there is one.
   Fills the button edge to edge: the circle is clipped by .pf overflow,
   so this needs no radius of its own to stay round. */
.tbar .pf img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* The contents of an order, opened in place while packing.
   Indented to sit under its row rather than beside it, so a queue of ten
   orders with one open still reads as a list. Tabular figures because the
   quantities are what get checked against the bag. */
.packlist {
  padding: 0.125rem 1.125rem 0.75rem 3.4375rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.packrow {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: var(--fs-body);
}
.packrow b {
  min-width: 1.5rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--t1);
}
.packrow span {
  flex: 1;
  min-width: 0;
  color: var(--t1);
  font-weight: 500;
}
.packrow i {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: var(--t2);
  font-size: var(--fs-label);
}
.packnote {
  font-size: var(--fs-label);
  color: var(--t2);
  line-height: 1.45;
}
.packchat {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* A receipt, shown at a size somebody can actually read a bank alert from.
   Capped in height so a tall screenshot does not push the amount box and the
   PIN off the screen: the whole point of the sheet is that those are reachable
   without hunting. Tapping opens the full image. */
.receiptbox {
  display: block;
  margin: 0.875rem 1.125rem 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--fill);
  max-height: 42vh;
}
.receiptbox img {
  display: block;
  width: 100%;
  max-height: 42vh;
  object-fit: contain;
}
.packacts {
  padding-left: 0;
  padding-right: 0;
}
/* A waiting order's three buttons: the main one on its own line, the other two sharing the next, so no label is cut. */
.packacts.wrapacts {
  flex-wrap: wrap;
}
.packacts.wrapacts .fsbtn {
  flex: 1 1 auto;
}
.packacts.wrapacts .fsbtn.on {
  flex: 1 0 100%;
}

/* THE ONE CAPTION (ui/Caption.tsx, copy trim 12 Oct 2026). Secondary colour,
   normal weight, 13px (the 85% scale applies in Simple mode), one or two
   short lines. Never bold, never dark, never a paragraph. */
.capn {
  margin: 0.5rem 0 0;
  color: var(--t2);
  font-size: var(--fs-meta);
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  text-wrap: pretty;
}
.capn.inset {
  margin: 0.5rem 1.125rem 0;
}

/* An empty list, said quietly. Deliberately not a card: no fill, no border,
   no icon, normal weight. It sits where the rows would have been so the page
   does not jump when the first one arrives. */
.empty {
  margin: 0.5rem 1.125rem 0.25rem;
  color: var(--t2);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
}

/* An empty screen with its picture (founder, 2026-10-10; a 2D glyph since 11
   Nov 2026, .art2d below). Centred, the picture over the words, the words
   exactly as the quiet line had them. No card, no border: the picture carries
   the page. The 7.5rem box is reserved so nothing jumps. */
.emptyart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  margin: 0.75rem 1.125rem 0.5rem;
  padding: 1.25rem 0 0.5rem;
  text-align: center;
}
.emptyart-img {
  width: 7.5rem;
  height: 7.5rem;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
/* THE PICTURE AS A 2D GLYPH (ui/ArtIcon.tsx; the founder, 11 Nov 2026: "remove
   3d icons for now.. lets retain just 2d icons"). The same box as the 3D
   picture had, so nothing moves: a soft round wash two thirds across, the line
   glyph half of that, so it reads as an icon. Forest on light, lime on dark. */
.art2d {
  --art2d-ink: var(--forest);
  --art2d-wash: color-mix(in srgb, var(--lime) 30%, transparent);
  display: grid;
  place-items: center;
  flex: none;
}
.art2d-in {
  display: grid;
  place-items: center;
  width: 66%;
  height: 66%;
  border-radius: 50%;
  background: var(--art2d-wash);
  color: var(--art2d-ink);
}
.art2d-in .ico {
  width: 50%;
  height: 50%;
}
:root[data-theme="dark"] .art2d {
  --art2d-ink: var(--lime);
  --art2d-wash: color-mix(in srgb, var(--lime) 12%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .art2d {
    --art2d-ink: var(--lime);
    --art2d-wash: color-mix(in srgb, var(--lime) 12%, transparent);
  }
}
/* Light and dark twins of each 3D picture (Vettar's screens, ui/ArtImg.tsx):
   show one, hide the other. Light is untouched; dark follows the same three
   states as every dark rule. */
.art-dk { display: none; }
:root[data-theme="dark"] .art-lt { display: none; }
:root[data-theme="dark"] .art-dk { display: revert; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .art-lt { display: none; }
  :root:not([data-theme="light"]) .art-dk { display: revert; }
}
.emptyart-t {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--t1);
  line-height: 1.35;
}
.emptyart-p {
  margin: 0;
  max-width: 24rem;
  color: var(--t2);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
}
.emptyart.sm {
  padding: 0.5rem 0 0.25rem;
  margin-top: 0.25rem;
}
.emptyart.sm .emptyart-img {
  width: 5rem;
  height: 5rem;
}
/* The empty page's own picture (the magnifier), at Vettar's sizes: 104, and 64
   for a list inside a card, a sheet or a section of Home. */
.emptyart .emptyart-img.nothing {
  width: calc(104 * var(--px));
  height: calc(104 * var(--px));
}
.emptyart.sm .emptyart-img.nothing {
  width: calc(64 * var(--px));
  height: calc(64 * var(--px));
}

/* The picture at the top of an account screen (ui/AccountHero.tsx), at
   Vettar's sizes (access/v3/account/account.css .ce-hero): centred on a soft
   lime glow, over the title. */
.acct-hero {
  position: relative;
  display: grid;
  place-items: center;
  height: calc(200 * var(--px));
  margin: 0 0 calc(6 * var(--px));
  pointer-events: none;
  user-select: none;
}
.acct-hero::before {
  content: "";
  position: absolute;
  width: calc(210 * var(--px));
  height: calc(210 * var(--px));
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--lime) 32%, transparent), color-mix(in srgb, var(--lime) 12%, transparent) 62%, transparent);
}
/* The 2D glyph (11 Nov 2026), on the glow, in the same box: 72 across, the
   tab icons' line. Forest on light, lime on dark. */
.acct-hero-ic {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--forest);
}
.acct-hero-ic .ico {
  width: calc(72 * var(--px));
  height: calc(72 * var(--px));
}
/* A hand drawn picture in the glyph's place (the Email screen's envelope, 13 Nov 2026): 72 high like the glyph, wider
   for its sparkle, nudged left so the envelope itself sits on the glow's centre. */
.acct-hero-ic.drawn .doodle {
  width: calc(107 * var(--px));
  height: calc(72 * var(--px));
  margin-left: calc(-14 * var(--px));
}
:root[data-theme="dark"] .acct-hero-ic {
  color: var(--lime);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .acct-hero-ic {
    color: var(--lime);
  }
}
.acct-hero.code {
  height: calc(190 * var(--px));
}
.acct-hero.done {
  height: calc(240 * var(--px));
}
.acct-hero.done::before {
  width: calc(250 * var(--px));
  height: calc(250 * var(--px));
}
.acct-hero.pin {
  height: calc(176 * var(--px));
  margin: calc(2 * var(--px)) 0 calc(8 * var(--px));
}
.acct-hero.pin::before {
  width: calc(190 * var(--px));
  height: calc(190 * var(--px));
}
/* Inside the number wall's card (screens/AddNumber.tsx) the box is tighter,
   so the whole step and its Sign out still fit one phone screen. */
.si-card .acct-hero {
  height: calc(164 * var(--px));
  margin-top: calc(-4 * var(--px));
}
/* On the near black the same glow reads as a halo: much softer there. */
:root[data-theme="dark"] .acct-hero::before {
  background: radial-gradient(closest-side, color-mix(in srgb, var(--lime) 10%, transparent), color-mix(in srgb, var(--lime) 3%, transparent) 62%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .acct-hero::before {
    background: radial-gradient(closest-side, color-mix(in srgb, var(--lime) 10%, transparent), color-mix(in srgb, var(--lime) 3%, transparent) 62%, transparent);
  }
}
/* While the keypad is up, the field comes first. */
.authpage.typing .acct-hero {
  display: none;
}

/* A round icon button in a page header, for search. Sized to the 44px touch
   target a thumb needs rather than to the glyph, which is the mistake that
   makes small controls feel broken on a phone. */
.hdbtn {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: var(--fill);
  color: var(--t1);
}
.hdbtn:active {
  opacity: 0.7;
}

/* ── Remy's note on a customer ─────────────────────────────────────
   Read, not edited, so it is set as text on the page rather than in a
   fill: a filled block would look like a field that will not take focus.
   pre-line keeps the short lines Remy writes as lines, and collapses any
   stray runs of spaces. The byline is quieter than the note so the eye
   lands on what Remy knows, not on who wrote it. */
.remynote {
  padding: 0 1.125rem;
}
.remynote p {
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--t1);
  line-height: 1.5;
}
.remynote p.none {
  color: var(--t2);
}
.remynote small {
  display: block;
  margin-top: 0.375rem;
  font-size: var(--fs-meta);
  color: var(--t3);
  font-weight: 500;
}

/* ── sign up ─────────────────────────────────────────────────────────
   Sign up borrows everything from Sign in (.fullpage, .phonef, .cap,
   .pinerr) and adds only these three. Prefixed so no short generic name
   in this shared sheet can catch them by accident, see the note on
   .fullpage. */

/* The plan picked on the website. A reminder, not a banner: it sits above
   the heading in the quiet grey the page already uses. */
.fullpage p.signup-plan {
  margin: 0 0 0.75rem;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--t2);
}
/* The six-digit code, spaced so each digit can be checked against the
   WhatsApp message at a glance. */
.signup-code input {
  text-align: center;
  font-size: var(--fs-title);
  letter-spacing: 0.4em;
  /* The spacing trails the last digit too; this pulls the run back to
     the true centre. */
  text-indent: 0.4em;
}
/* THE SIX DIGIT CODE, TWO GROUPS OF THREE (ui/CodeBoxes.tsx; founder,
   2026-10-10: C3). Six grey boxes split 3 and 3 with a small gap, the way
   WhatsApp writes the code. The box being typed into lifts (white lift) and
   shows a blinking caret, still under reduced motion. The one real field
   lies over the boxes, invisible: 16px so iOS does not zoom on focus, its
   text, caret and selection transparent, so only the boxes are seen. */
.codebox {
  position: relative;
}
.codebox-in {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: var(--fs-row);
  letter-spacing: -0.5em;
  cursor: text;
}
.codebox-in::selection {
  background: transparent;
  color: transparent;
}
.codebox-in:-webkit-autofill {
  -webkit-text-fill-color: transparent;
  transition: background-color 600000s 0s;
}
.codebox-row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.codebox-gap {
  flex: none;
  width: 0.875rem;
}
.codebox-cell {
  flex: 1;
  min-width: 0;
  height: 3.75rem;
  border-radius: 0.875rem;
  background: var(--fill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-title);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--t1);
  transition: background 120ms ease, box-shadow 120ms ease;
}
.codebox-cell.on {
  background: var(--sel);
  box-shadow: var(--sel-sh);
}
.codebox-cell.on:empty::after {
  content: "";
  width: 2px;
  height: 1.625rem;
  border-radius: 1px;
  background: var(--accent-ink);
  animation: codebox-blink 1s steps(1) infinite;
}
@keyframes codebox-blink {
  50% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .codebox-cell.on:empty::after {
    animation: none;
  }
}
.codebox.off {
  opacity: 0.6;
}
.fullpage p.signup-hint {
  margin-top: 0.5rem;
  font-size: var(--fs-meta);
}
/* Where Relynked lives (screens/SignIn.tsx): the same quiet grey, centred
   under the buttons like the text links above it. */
.fullpage p.signin-where {
  margin-top: 1rem;
  text-align: center;
}

/* ── forgot password (screens/ForgotPassword.tsx) ────────────────────
   Sign up's pieces again. "Lost your phone?" adds the support steps as a
   plain numbered list in the page's own grey, and its two ways to write
   to support are links dressed as the page's button and text link. */
.fullpage ol.reset-lost {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--t2);
  font-size: var(--fs-meta);
  font-weight: 500;
  line-height: 1.5;
}
.fullpage ol.reset-lost li + li {
  margin-top: 0.625rem;
}
.fullpage ol.reset-lost li::marker {
  color: var(--t1);
  font-weight: 700;
}
.fullpage ol.reset-lost b {
  color: var(--t1);
  font-weight: 700;
}
.fullpage a.btn,
.fullpage a.textlink {
  text-decoration: none;
}

/* ── joining from an invite (screens/Claim.tsx) ──────────────────────
   Sign up's pieces again, plus who sent the invite: their initials and
   one line, on a quiet card, so the person sees whose business this is
   before anything is sent to their WhatsApp. */
.claim-from {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.claim-av {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest);
  color: #fff;
  font-size: var(--fs-meta);
  font-weight: 700;
}
.fullpage .claim-from p {
  margin-top: 0;
  font-size: var(--fs-meta);
}
.fullpage .claim-from b {
  color: var(--t1);
}

/* ── set up with remy ────────────────────────────────────────────────
   AskLive in its setup mode (screens/AskLive.tsx) and the one line on
   Home that opens it. Kept to the Ask screen's own pieces wherever they
   fit, so setup reads as the same conversation, not a wizard bolted on. */

/* "Skip for now" in the header: a quiet text button, never a second
   primary. Leaving has to be easy to find and not look like the answer. */
.asknav .askskip {
  flex: none;
  padding: 0.5rem 0.25rem 0.5rem 0.5rem;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--t2);
  white-space: nowrap;
}

/* The finish moment, at the end of the thread rather than over it, so
   the cards Remy just made are still there to read above it. */
.setupdone {
  align-self: stretch;
  margin: 1rem 0 0.25rem;
  padding: 1.25rem 1rem 1rem;
  background: var(--card);
  border: var(--hair) solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}
.setupdone .ck {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 0.375rem;
}
.setupdone .ck svg {
  width: 1.25rem;
  height: 1.25rem;
}
.setupdone b {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--t1);
}
.setupdone p {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--t2);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.setupdone .btn {
  width: 100%;
}

/* "I'm done for now", and the question it opens. */
.textlink.setupfin {
  flex: none;
  padding: 0.25rem 1.125rem 0.625rem;
}
.setupask {
  flex: none;
  margin: 0 1.125rem 0.625rem;
  padding: 0.75rem 0.875rem;
  background: var(--card);
  border: var(--hair) solid var(--line);
  border-radius: var(--r-lg);
}
.setupask p {
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--t1);
  line-height: 1.4;
}
.setupask p.warn {
  margin-top: 0.25rem;
  font-weight: 500;
  color: var(--orange);
}
.setupask .rbtns {
  margin-top: 0.625rem;
}

/* Home's one line. Shaped like the subscription line beside it, in the
   plain grey rather than amber, because this is an invitation and not a
   warning (it was mint until the founder, 2026-10-10, retired every pale
   green fill). */
button.setupline {
  margin: 0.75rem 1.125rem 0;
  width: calc(100% - 2.25rem);
  border-radius: 1rem;
  padding: 0.75rem 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-align: left;
  background: var(--fill);
  color: var(--accent-ink);
}
button.setupline .rmk {
  height: 1.0625rem;
  flex: none;
}
button.setupline p {
  flex: 1;
  font-size: var(--fs-meta);
  font-weight: 600;
  line-height: 1.4;
  color: var(--t1);
}
button.setupline .cv {
  opacity: 0.6;
}

/* ── Remy's Connect WhatsApp card (ui/ConnectWhatsAppCard.tsx) ───────
   One of Remy's cards (.pcard), with what to have ready before Meta's
   window opens. Icons are the only colour; no side edges. */
.wacard .wasub {
  font-size: var(--fs-meta);
  font-weight: 500;
  line-height: 1.45;
  color: var(--t2);
}
.wacard .wahead {
  margin-top: 0.75rem;
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wacard .waready {
  list-style: none;
  margin: 0.375rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.wacard .waready li {
  display: flex;
  align-items: flex-start;
  gap: 0.5625rem;
  font-size: var(--fs-meta);
  font-weight: 500;
  line-height: 1.4;
  color: var(--t1);
}
.wacard .waready svg {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.0625rem;
  color: var(--green);
}
.wacard .watrouble {
  margin-top: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--r-sm);
  background: var(--rose);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: var(--fs-meta);
  line-height: 1.4;
}
.wacard .watrouble b {
  color: var(--red);
  font-weight: 700;
}
.wacard .watrouble span {
  color: var(--t1);
  font-weight: 500;
}
.wacard .wanote {
  margin-top: 0.625rem;
  font-size: var(--fs-label);
  color: var(--t3);
}
.wacard .pdone svg {
  color: var(--green);
  flex: none;
}
.pcard.wacard.plain {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}
/* At the end of Set up with Remy, the card sits under the done moment. */
.setupdone .wacard {
  align-self: stretch;
  text-align: left;
  margin-top: 0.25rem;
}
.setupdone .wacard .wasub {
  display: none;
}

/* ── The WhatsApp username and the share card (ui/UsernameCard.tsx,
   ui/UsernameSection.tsx, ui/ShareCard.tsx; server 0141) ─────────────
   Remy's card look (.pcard). Colour only on the tick icons and the done
   line; no side edges, no small labels. */
.unwrap {
  margin: 0 1.125rem;
}
.pcard.uncard.unplain {
  margin-top: 0.75rem;
}
.uncard .unchips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}
.uncard .unfield {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: var(--r-sm);
  background: var(--fill);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--t2);
}
.uncard .unfield input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font: inherit;
  color: var(--t1);
}
.uncard .unrules {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
}
.uncard .unrules li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--t2);
}
.uncard .unrules li.ok {
  color: var(--t1);
}
.uncard .unrules svg {
  flex: none;
  width: 0.8125rem;
  height: 0.8125rem;
  color: var(--green);
}
.uncard .unrules i {
  flex: none;
  width: 0.375rem;
  height: 0.375rem;
  margin: 0 0.21875rem;
  border-radius: 50%;
  background: var(--t3);
}
.uncard .unsaid {
  margin-top: 0.625rem;
  font-size: var(--fs-meta);
  font-weight: 500;
  line-height: 1.45;
  color: var(--t1);
}
.uncard .unconfirm p {
  margin-top: 0.75rem;
  font-size: var(--fs-meta);
  font-weight: 600;
  line-height: 1.45;
}
.uncard .unsteps {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: var(--fs-meta);
  font-weight: 500;
  line-height: 1.4;
}
.uncard[aria-busy="true"] {
  min-height: 5rem;
}
.unline {
  margin: 0.625rem 0 0;
  font-size: var(--fs-meta);
  font-weight: 500;
  line-height: 1.45;
  color: var(--t2);
}
.unline .unlink {
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--accent-ink);
}
.pcard.sharecard {
  margin-top: 0.75rem;
  text-align: center;
}
.sharecard .sharename {
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--t1);
  overflow-wrap: anywhere;
}
.sharecard .sharesub {
  margin-top: 0.125rem;
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--t2);
}
.sharecard .shareqr {
  margin: 0.875rem auto 0;
  width: min(13rem, 70%);
}
.sharecard .shareqr svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-sm);
}
.sharecard .shareqr figcaption {
  margin-top: 0.375rem;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--t2);
}
.sharecard .sharehow {
  margin-top: 0.625rem;
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.45;
  color: var(--t2);
}
.sharecard .rbtns {
  justify-content: center;
}
.sharecard .rbtns button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.sharecard .rbtns svg {
  width: 1rem;
  height: 1rem;
}

/* ── the PIN step, after setup (screens/PinStep.tsx) ─────────────────
   A calm page: one mark, one heading, three short lines, one button. The
   lines sit closer than a normal paragraph run, because they are one
   explanation in three breaths, not three separate points. */
.pinstep .pinmark {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: var(--forest);
  color: var(--lime);
  display: grid;
  place-items: center;
  flex: none;
}
.pinstep .pinmark svg {
  width: 1.5rem;
  height: 1.5rem;
}
.pinstep h1 + p {
  margin-top: 0.875rem;
}
.pinstep p {
  margin-top: 0.375rem;
}
.pinsheet {
  padding-top: 0.25rem;
}

/* ── the first-time tour (screens/Tour.tsx) ──────────────────────────
   One transparent box with a shadow wide enough to dim the whole frame
   around it. Above the tab bar (85) and level with sheets (120), since
   nothing else should open while it runs. */
.tour {
  position: absolute;
  inset: 0;
  z-index: 130;
}
.tourhole {
  position: absolute;
  border-radius: 1.125rem;
  box-shadow: 0 0 0 200vmax rgba(8, 14, 11, 0.66);
  pointer-events: none;
  transition:
    top 260ms var(--ease, ease),
    left 260ms var(--ease, ease),
    width 260ms var(--ease, ease),
    height 260ms var(--ease, ease);
}
.tourtip {
  position: absolute;
  background: var(--card);
  color: var(--t1);
  border-radius: var(--r-lg);
  padding: 0.875rem 0.875rem 0.625rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
  animation: tourin 200ms ease both;
}
.tourtip b {
  display: block;
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tourtip p {
  margin-top: 0.25rem;
  font-size: var(--fs-meta);
  font-weight: 500;
  line-height: 1.45;
  color: var(--t2);
}
.tourrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.tourskip {
  padding: 0.5rem 0.25rem;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--t2);
}
.tourcount {
  flex: 1;
  text-align: center;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--t2);
}
.tournext {
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 0.8125rem;
  background: var(--forest);
  color: #fff;
  font-size: var(--fs-meta);
  font-weight: 700;
}
@keyframes tourin {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Jump, do not glide, for anyone who has asked for less motion. */
@media (prefers-reduced-motion: reduce) {
  .tourhole {
    transition: none;
  }
  .tourtip {
    animation: none;
  }
}

/* ── services and products together (screens/Stock.tsx) ──────────────
   The switch for a business that books AND sells, under the page title
   and above the category chips it narrows. */
.stockside {
  padding: 0.25rem 1.125rem 0.625rem;
}
.stockside .seg .num {
  opacity: 0.7;
  font-weight: 600;
  margin-left: 0.25rem;
}
/* Add product's "Service | Product", first thing on the form, and the
   group's units as one-tap choices under Sold by. */
.segment.addkind {
  margin-bottom: 1rem;
}
.unitchips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
/* ── delete account (screens/DeleteAccount.tsx) ──────────────────────
   Plain paragraphs at reading size, because this is the one screen where
   every word has to be read. The legal line and the co-owner line are
   quieter: true and worth saying, but not the decision itself. */
.delacct {
  padding-top: 1.25rem;
}
.delacct p {
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.5;
  color: var(--t1);
  margin-top: 0.875rem;
}
.delacct p:first-child {
  margin-top: 0;
}
.delacct p.soft {
  font-size: var(--fs-meta);
  color: var(--t2);
}

/* Remy's formatted replies (ui/RichText.tsx): paragraphs, bullets and
   numbering at chat density, so a price list reads as a list. */
.rich > * + * {
  margin-top: 0.5rem;
}
.rich p {
  margin: 0;
}
.rich ul,
.rich ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.25rem;
}
.rich li::marker {
  color: var(--t3);
}
.rich strong {
  font-weight: 700;
}

/* ── sales report (screens/Report.tsx) ─────────────────────────────── */
/* One card shape for every block: the list card's fill, radius and shadow,
   with room inside for a figure or a chart. Charts are a single series in
   the accent ink (forest in light, lime in dark), values and labels in text
   colours, one baseline and nothing else. */
.rp-card {
  margin: 0 1.125rem;
  background: var(--card);
  border-radius: var(--r-xl);
  box-shadow: var(--sh);
  padding: 0.9375rem 1rem 1rem;
}
.rp-card + .rp-card {
  margin-top: 0.75rem;
}
.rp-skel {
  opacity: 0.45;
  margin-top: 0.875rem;
}
.rp-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  padding: 0.75rem 1.125rem 0.625rem;
}
.rp-bar .seg {
  font-size: var(--fs-meta);
}
.rp-range {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-top: 0.625rem;
}
.rp-range label {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--t2);
}
.rp-range input {
  width: 100%;
  min-height: 2.75rem;
  border-radius: var(--r-md);
  background: var(--fill);
  border: 1px solid var(--line);
  color: var(--t1);
  padding: 0 0.625rem;
  font: inherit;
  font-size: var(--fs-input);
  font-variant-numeric: tabular-nums;
}
.rp-range .btn {
  flex: none;
  width: auto;
  min-height: 2.75rem;
  padding: 0 1rem;
}
.rp .cap2 {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--t2);
}
.rp-hero {
  margin-top: 0.25rem;
}
.rp-hero .big {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.05;
  margin-top: 0.125rem;
  color: var(--t1);
}
.rp-hero .big .cur {
  margin-right: 0.06em;
}
.rp-chg {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  margin-top: 0.4375rem;
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--t2);
}
.rp-chg .ar {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--fill);
  color: var(--t2);
}
.rp-chg .ar svg {
  width: 0.75rem;
  height: 0.75rem;
}
/* Up is good news, down is not, and the arrow's direction says so on its
   own: the colour only repeats it. */
.rp-chg.up .ar {
  background: var(--fill);
  color: var(--green);
}
.rp-chg.down .ar {
  background: var(--rose);
  color: var(--red);
}
.rp-chg.down .ar svg {
  transform: rotate(180deg);
}
.rp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.875rem;
}
.rp-stats > div {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
  background: var(--fill);
  border-radius: var(--r-md);
  padding: 0.5625rem 0.625rem;
}
.rp-card > .rp-stats:first-child {
  margin-top: 0;
}
.rp-stats .k {
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--t2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rp-stats .v {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--t1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rp-note {
  margin-top: 0.75rem;
  font-size: var(--fs-meta);
  line-height: 1.45;
  color: var(--t2);
}
.rp-sub {
  margin-top: 0.875rem;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--t2);
}
/* Two parts of one whole. A 2px gap in the card colour between the parts,
   and both named in words underneath. */
.rp-split {
  display: flex;
  gap: 2px;
  height: 0.5rem;
  margin-top: 0.875rem;
  border-radius: 0.25rem;
  overflow: hidden;
  background: var(--fill);
}
.rp-split i {
  display: block;
  height: 100%;
  min-width: 0;
}
.rp-split .pa,
.rp-splitkey .pa {
  background: var(--accent-ink);
}
.rp-split .pb,
.rp-splitkey .pb {
  background: var(--t3);
}
.rp-splitkey {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1rem;
  margin-top: 0.5rem;
  font-size: var(--fs-meta);
  color: var(--t2);
}
.rp-splitkey span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3125rem;
}
.rp-splitkey i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 0.125rem;
  display: inline-block;
  align-self: center;
}
.rp-splitkey b {
  color: var(--t1);
  font-weight: 700;
}
.rp-splitkey em {
  font-style: normal;
  color: var(--t3);
}
/* The readout above a chart: what the chosen bar holds, in words. */
.rp-readout {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
  min-height: 1.25rem;
}
.rp-readout .k {
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 500;
}
.rp-readout .v {
  font-size: var(--fs-body);
  color: var(--t1);
  font-weight: 700;
  text-align: right;
}
.rp-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 7.5rem;
  border-bottom: 1px solid var(--line);
}
.rp-bars.short {
  height: 3rem;
  margin-top: 0.875rem;
}
.rp-b {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
/* Thin marks with room between them, capped so seven days do not become
   seven slabs. Rounded only where the data ends, square on the baseline. */
.rp-b i {
  display: block;
  width: 100%;
  max-width: 1.125rem;
  height: 0;
  min-height: 2px;
  border-radius: 0.25rem 0.25rem 0 0;
  background: color-mix(in srgb, var(--accent-ink) 38%, transparent);
  transition: height 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rp-b.on i {
  background: var(--accent-ink);
}
.rp-b.future i,
.rp-b.zero i {
  background: var(--line);
}
.rp-bars.short .rp-b i {
  background: var(--accent-ink);
}
.rp-bars.dense {
  gap: 1px;
}
.rp-axis {
  display: flex;
  gap: 2px;
  margin-top: 0.3125rem;
}
.rp-axis span {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: var(--fs-label);
  color: var(--t2);
  white-space: nowrap;
  overflow: visible;
}
/* The hours of the day as one strip of 24 cells; how dark a cell is says
   how busy that hour was. */
.rp-heat {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 2px;
}
.rp-heat button {
  height: 2.25rem;
  border-radius: 0.1875rem;
  padding: 0;
  background: var(--fill);
  position: relative;
  overflow: hidden;
}
.rp-heat button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-ink);
  opacity: var(--a, 0);
}
.rp-heat button.on {
  outline: 2px solid var(--t1);
  outline-offset: 1px;
}
.rp-heataxis {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 0;
  margin-top: 0.3125rem;
  font-size: var(--fs-label);
  color: var(--t2);
}
.rp-hbars {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
}
.rp-hbars li {
  display: grid;
  grid-template-columns: 2.25rem 1fr 2.5rem;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-meta);
}
.rp-hbars .k {
  color: var(--t2);
  font-weight: 500;
}
.rp-hbars .track {
  height: 0.5rem;
}
.rp-hbars .track i {
  display: block;
  height: 100%;
  border-radius: 0 0.25rem 0.25rem 0;
  background: color-mix(in srgb, var(--accent-ink) 38%, transparent);
}
.rp-hbars li.on .track i {
  background: var(--accent-ink);
}
.rp-hbars .v {
  text-align: right;
  color: var(--t1);
  font-weight: 600;
}
.rp-toggle {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.1875rem;
  border-radius: var(--r-pill);
  background: var(--fill);
  margin-bottom: 0.75rem;
}
.rp-toggle button {
  padding: 0.375rem 0.75rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--t2);
}
.rp-toggle button.on {
  background: var(--sel);
  color: var(--t1);
  box-shadow: var(--sel-sh);
}
.rp-rank,
.rp-hbars,
.rp-kv {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rp-rank {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.rp-rank li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.rp-rank .n {
  width: 1rem;
  flex: none;
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--t3);
  text-align: center;
}
.rp-rank .tx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
}
.rp-rank .tt {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--t1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rp-rank .meter {
  height: 0.25rem;
  border-radius: 0.125rem;
  background: var(--fill);
  overflow: hidden;
}
.rp-rank .meter i {
  display: block;
  height: 100%;
  border-radius: 0.125rem;
  background: var(--accent-ink);
}
.rp-rank .rt {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.0625rem;
}
.rp-rank .v {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--t1);
}
.rp-rank .s {
  font-size: var(--fs-label);
  color: var(--t2);
}
.rp-kv li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4375rem 0;
  font-size: var(--fs-body);
}
.rp-kv li + li {
  border-top: 1px solid var(--line);
}
.rp-kv .k {
  color: var(--t2);
}
.rp-kv .v {
  color: var(--t1);
  font-weight: 600;
  text-align: right;
}
.rp-kv em {
  font-style: normal;
  font-weight: 500;
  color: var(--t2);
}
.rp-ahead {
  margin-top: 0.75rem;
}
.rp-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.375rem;
}
.rp-two > div {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}
.rp-two .v {
  font-size: var(--fs-head);
  font-weight: 700;
  color: var(--t1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rp-two .k {
  font-size: var(--fs-label);
  color: var(--t2);
}
.rp-nudge {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--r-md);
  background: var(--amber);
  color: var(--t1);
  font-size: var(--fs-meta);
  text-align: left;
  line-height: 1.35;
}
.rp-nudge > svg:first-child {
  width: 1rem;
  height: 1rem;
  flex: none;
  color: var(--orange);
}
.rp-nudge span {
  flex: 1;
}
.rp-listhead {
  padding: 1rem 1.125rem 0.5rem;
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--t2);
}
.rp-ask {
  margin-top: 1.5rem;
}
.rp-foot {
  margin: 0.25rem 1.125rem 0;
  font-size: var(--fs-label);
  line-height: 1.45;
  color: var(--t3);
}

/* ── ask remy, the chat screen (screens/AskLive.tsx, ui/AskComposer.tsx,
   ui/AskMedia.tsx) ───────────────────────────────────────────────────
   Laid out the way ChatGPT's is, because that is the chat screen owners
   already know: a back arrow and a three dots menu up top, and at the
   bottom a "+", a box that grows, and one round button that is the mic
   or send. Built from the thread's own pieces (.asknav, .comp, .fld,
   .mic) so Ask Remy and a customer chat still read as one app. */

/* The three dots, and the menu's action rows. An action row leads with
   its icon and has no tick: nothing in it is "the current value". */
.droprow.act {
  justify-content: flex-start;
  gap: 0.625rem;
  color: var(--t1);
  font-weight: 600;
  padding: 0.6875rem 0.75rem;
}
.droprow.act svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  color: var(--t2);
}
.droprow.act:hover,
.droprow.act:focus-visible {
  background: var(--fill);
}

/* Search, in place of the title. */
.asksearch {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 0.5rem 0 0.875rem;
  border-radius: var(--r-pill);
  background: var(--fill);
  border: 1px solid var(--line);
  color: var(--t2);
}
.asksearch:focus-within {
  border-color: var(--accent-ink);
}
.asksearch > svg {
  width: 1.0625rem;
  height: 1.0625rem;
  flex: none;
}
.asksearch input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  color: var(--t1);
  font-size: var(--fs-input);
  font-weight: 500;
  padding: 0.625rem 0;
}
.asksearch input::-webkit-search-cancel-button {
  display: none;
}
.asksearch button {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--t2);
  flex: none;
}
.asksearch button svg {
  width: 0.9375rem;
  height: 0.9375rem;
}

/* The search results and the day list, where the thread was. */
.askpanel {
  padding-top: 0.25rem;
}
.askpnote {
  font-size: var(--fs-body);
  color: var(--t2);
  line-height: 1.45;
  padding: 0.5rem 0.25rem;
}
.askpnote.bad {
  color: var(--red);
}
.askhits {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.askhit,
.askday {
  display: flex;
  width: 100%;
  padding: 0.75rem 0.875rem;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--t1);
  text-align: left;
}
.askhit {
  flex-direction: column;
  gap: 0.25rem;
}
.askhit .meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: var(--fs-label);
  color: var(--t2);
}
.askhit .meta b {
  color: var(--t1);
  font-weight: 700;
}
.askhit .snip {
  font-size: var(--fs-body);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.askday {
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-body);
  font-weight: 600;
}
.askday span {
  flex: 1;
}
.askday > svg:first-child {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--t2);
  flex: none;
}
.askday .cv {
  width: 0.5rem;
  height: 0.8125rem;
  color: var(--t3);
}
.askday em {
  font-style: normal;
  font-size: var(--fs-meta);
  color: var(--t2);
}
.askhit:disabled,
.askday:disabled {
  opacity: 0.6;
}

/* One of the owner's turns: files first, then the words, right aligned. */
.askmsg.out {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
/* A message a search result pointed at. A lime ring, which is a mark and
   not text, so it reads on light and dark alike. It fades on its own. */
.askmsg .b.out,
.arow .rbub {
  transition: box-shadow 400ms ease;
}
.askmsg.hit .b.out,
.askmsg.hit .askshots,
.arow.hit .rbub {
  box-shadow: 0 0 0 3px var(--lime);
}

/* Remy is on it: the typing bubble while a message is answered (AskLive). */
.rbub.typing {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--t2);
}
.tdots {
  display: inline-flex;
  gap: 0.25rem;
}
.tdots i {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  animation: tdot 1.1s ease-in-out infinite;
}
.tdots i:nth-child(2) {
  animation-delay: 0.15s;
}
.tdots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes tdot {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: none;
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tdots i {
    animation: none;
    opacity: 0.6;
  }
}

/* ── files in the thread ─────────────────────────────────────────── */
.askatt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.375rem;
  margin-bottom: 0.375rem;
  max-width: 80%;
}
.askatt.end {
  align-items: flex-end;
}
.askshots {
  display: grid;
  grid-template-columns: repeat(2, 7.25rem);
  gap: 0.25rem;
  border-radius: var(--r-lg);
}
.askshots.one {
  grid-template-columns: 12rem;
}
.askshot {
  position: relative;
  display: block;
  aspect-ratio: 1;
  width: 100%;
  padding: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--fill);
}
.askshots.one .askshot {
  aspect-ratio: 4 / 5;
}
.askshot img,
.askshot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.askshot .play,
.achip .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(12, 18, 16, 0.6);
  color: #fff;
  display: grid;
  place-items: center;
}
.askshot .play svg {
  width: 1.125rem;
  height: 1.125rem;
  margin-left: 0.125rem;
}
.askshot.gone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: var(--fs-label);
  color: var(--t2);
  text-align: center;
  padding: 0.5rem;
}
.askshot.gone svg {
  width: 1.25rem;
  height: 1.25rem;
}
.askfile {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: var(--r-md);
  background: var(--fill);
  border: 1px solid var(--line);
  color: var(--t1);
  font-size: var(--fs-body);
  font-weight: 600;
  text-decoration: none;
}
.askfile > svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  color: var(--accent-ink);
}
.askfile .nm {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.askfile audio {
  width: 12.5rem;
  max-width: 100%;
  height: 2.25rem;
}
/* A voice note the owner sent: the owner's own bubble colour, a play
   button, bars and its length, like WhatsApp's. What Remy heard sits
   under it, small and muted, to be read, not edited. */
.askvn {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  width: 15rem;
  max-width: 100%;
}
.vnbub {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.4375rem 0.75rem 0.4375rem 0.4375rem;
  border-radius: var(--r-lg);
  border-bottom-right-radius: 0.4375rem;
  background: var(--forest);
  color: #fff;
}
/* A perfect circle whatever the mode: fixed equal width and height (40px), never squeezed by the waveform
   beside it, and exempt from Simple mode's 48px tap floor (sx-free), which made it an oval. */
.vnplay {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 0;
}
.vnplay svg {
  width: 1.125rem;
  height: 1.125rem;
}
.vnplay:disabled {
  opacity: 0.5;
}
.vnwave {
  flex: 1;
  min-width: 0;
  height: 1.5rem;
  display: flex;
  align-items: center;
  gap: 2px;
}
.vnwave i {
  flex: 1;
  min-width: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.45);
}
.vnwave i.on {
  background: #fff;
}
.vntime {
  flex: none;
  font-size: var(--fs-label);
  font-weight: 600;
  opacity: 0.85;
  min-width: 2rem;
  text-align: right;
}
.vntime svg {
  width: 0.875rem;
  height: 0.875rem;
}
.vnheard {
  margin: 0;
  max-width: 100%;
  font-size: var(--fs-label);
  line-height: 1.4;
  color: var(--t2);
  text-align: right;
}
.vnheard .vnlab {
  font-weight: 600;
}
.vnheard .vnlab::after {
  content: ":";
}
/* Inside a card the photos run three across the card's own width. */
.pcard .pmedia {
  margin: 0.5rem 0 0.25rem;
}
.pcard .pmedia .askatt {
  width: 100%;
  max-width: 100%;
  margin: 0;
}
.pcard .pmedia .askshots,
.pcard .pmedia .askshots.one {
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pcard .pmedia .askshots.one .askshot {
  aspect-ratio: 1;
}

/* The "Photo" row of a new item's card or a photo that replaces another: the pictures sit where the value would. */
.pcard .pline.pphoto {
  align-items: center;
}
.pcard .pline.pphoto .ba {
  align-items: center;
  gap: 0.5rem;
}
.pcard .pth {
  position: relative;
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--fill);
  box-shadow: var(--sh);
}
.pcard .pth img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The photo being replaced: faded, with one line across it (the picture's version of a struck value). */
.pcard .pth.was img {
  opacity: 0.5;
  filter: grayscale(1);
}
.pcard .pth.was::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, transparent calc(50% - 1px), var(--t3) calc(50% - 1px), var(--t3) calc(50% + 1px), transparent calc(50% + 1px));
}

/* The full-screen viewer. Black, like a phone's own gallery, whatever the
   theme: a photo is judged against black, not against a card colour. */
.mviewer {
  position: absolute;
  inset: 0;
  z-index: 140;
  background: #000;
  display: grid;
  place-items: center;
}
.mvscrim {
  position: absolute;
  inset: 0;
  background: none;
  border: 0;
}
.mviewer img,
.mviewer video {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.mvx,
.mvnav {
  position: absolute;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  display: grid;
  place-items: center;
}
/* 1rem, not env(safe-area-inset-top): the frame's own top border already
   keeps the viewer clear of the notch, so adding it here would count the
   notch twice. */
.mvx {
  top: 1rem;
  right: 1rem;
}
.mvx svg {
  width: 1.125rem;
  height: 1.125rem;
}
.mvnav {
  top: 50%;
  transform: translateY(-50%);
}
.mvnav.prev {
  left: 0.75rem;
}
.mvnav.next {
  right: 0.75rem;
}
.mvnav svg {
  width: 0.625rem;
  height: 1.0625rem;
}
.mvcount {
  position: absolute;
  top: 1.625rem;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: var(--fs-body);
  font-weight: 600;
  pointer-events: none;
}
.mviewer :focus-visible {
  outline-color: var(--lime);
}
/* An item's photos and videos (lookPhotos.tsx): Move earlier and Move later, on the one glass, at the foot. */
.mvacts {
  position: absolute;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
}
.mvmove {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 2.5rem;
  padding: 0 0.875rem;
  border-radius: 999px;
  color: var(--t1);
  font-size: var(--fs-body);
  font-weight: 600;
  white-space: nowrap;
}
.mvmove:disabled {
  opacity: 0.4;
}
.mvmove svg {
  width: 0.5rem;
  height: 0.875rem;
}

/* ── the composer ─────────────────────────────────────────────────── */
/* A column: a note, the files, then the row. `.comp` keeps its surface,
   border and bottom padding; the row inside does what `.comp` did. */
.comp.askc {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}
.askc .crow {
  display: flex;
  align-items: flex-end;
  gap: 0.5625rem;
}
.askc .fld {
  border-radius: 1.4375rem;
  align-items: flex-end;
}
.askc .fld:focus-within {
  border-color: var(--accent-ink);
}
.askc .fld textarea {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  resize: none;
  color: var(--t1);
  font-size: var(--fs-input);
  font-weight: 500;
  line-height: 1.4;
  padding: 0.71875rem 0;
}
.askc .fld textarea::placeholder {
  color: var(--t2);
}
.askc .plus[aria-expanded="true"] {
  background: var(--forest);
  color: #fff;
}
.askc .plus[aria-expanded="true"] svg {
  transform: rotate(45deg);
}
.askc .plus svg {
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.askc > .btn {
  min-height: 2.875rem;
}

/* A word from the composer: too big, offline, no microphone. */
.acnote {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.625rem 0.5rem 0.625rem 0.875rem;
  border-radius: var(--r-md);
  background: var(--amber);
  color: var(--t1);
  font-size: var(--fs-meta);
  line-height: 1.4;
  font-weight: 500;
}
.acnote span {
  flex: 1;
}
.acnote button {
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--t2);
  margin-top: -0.25rem;
}
.acnote button svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* The files waiting to go, each with its progress and its x. */
.achips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 0.25rem;
}
.achips::-webkit-scrollbar {
  display: none;
}
.achip {
  position: relative;
  flex: none;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--fill);
  border: 1px solid var(--line);
}
.achip img,
.achip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.achip .play {
  width: 1.5rem;
  height: 1.5rem;
}
.achip .play svg {
  width: 0.75rem;
  height: 0.75rem;
}
.achip.document,
.achip.audio {
  width: auto;
  max-width: 11rem;
}
.achip .fname {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  height: 100%;
  padding: 0 2rem 0 0.75rem;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--t1);
}
.achip .fname svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  color: var(--accent-ink);
}
.achip .fname span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Progress along the bottom edge, in lime on a dark track: readable over
   any photo, in either theme. */
.aprog {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.3125rem;
  background: rgba(12, 18, 16, 0.45);
}
.aprog i {
  display: block;
  height: 100%;
  background: var(--lime);
  transition: width 200ms linear;
}
/* A small fixed circle in the thumbnail's top right corner. Its size is its own (no stretching from a parent or from
   Simple mode's 48px button rule: the button carries sx-free); the 32px target is a hit area around it. */
.ax {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  z-index: 2;
  width: 1.375rem;
  height: 1.375rem;
  min-width: 0;
  min-height: 0;
  padding: 0;
  flex: none;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(12, 18, 16, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
}
.ax::before {
  content: "";
  position: absolute;
  inset: -0.3125rem;
  border-radius: 50%;
}
.ax svg {
  width: 0.6875rem;
  height: 0.6875rem;
}
.achip.err {
  border: 2px solid var(--red);
}
.aretry {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  background: rgba(229, 72, 77, 0.86);
  color: #fff;
  font-size: var(--fs-label);
  font-weight: 700;
}
.aretry svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* Recording: Cancel, the time and the level, Done. The level is drawn
   from the microphone, so the owner can see it is hearing them. */
.crow.rec {
  align-items: center;
  min-height: 2.875rem;
}
.rtext {
  flex: none;
  padding: 0.625rem 0.5rem;
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--t2);
  border-radius: var(--r-pill);
}
.rmid {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.875rem;
  padding: 0 0.875rem;
  border-radius: var(--r-pill);
  background: var(--fill);
  color: var(--t2);
  font-size: var(--fs-body);
  font-weight: 500;
}
.rtime {
  color: var(--t1);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.wave {
  flex: 1;
  min-width: 0;
  height: 1.5rem;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: hidden;
}
.wave i {
  flex: 1;
  min-width: 2px;
  border-radius: 1px;
  background: var(--accent-ink);
  transition: height 90ms linear;
}
.rdone {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.875rem;
  padding: 0 1rem;
  border-radius: var(--r-pill);
  background: var(--forest);
  color: #fff;
  font-size: var(--fs-meta);
  font-weight: 700;
}
.rdone svg {
  width: 1rem;
  height: 1rem;
  color: var(--lime);
}
.rspin {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent-ink);
  flex: none;
  animation: askspin 800ms linear infinite;
}
.rspin.light {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}
@keyframes askspin {
  to {
    transform: rotate(360deg);
  }
}

/* A recording kept after it could not be written out. */
.crow.held {
  flex-direction: column;
  align-items: stretch;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--r-lg);
  background: var(--fill);
}
.hwhy {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--fs-meta);
  color: var(--t2);
  line-height: 1.4;
}
.hwhy > svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  color: var(--accent-ink);
  margin-top: 0.0625rem;
}
.hwhy b {
  display: block;
  color: var(--t1);
  font-size: var(--fs-body);
  font-weight: 700;
}
.hbtns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hbtns button {
  padding: 0.5625rem 1rem;
  border-radius: 0.8125rem;
  font-size: var(--fs-meta);
  font-weight: 700;
  background: var(--forest);
  color: #fff;
}
.hbtns button.w {
  background: var(--card);
  color: var(--t1);
  border: 1px solid var(--line);
}

/* "What can Remy do?": examples that fill the box when tapped. */
.askhelp {
  margin-top: 1rem;
}
.askhelp .ghead {
  padding: 0 0 0.5rem;
}
.askhelp button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 0.375rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--r-md);
  background: var(--fill);
  color: var(--t1);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.35;
}
.askhelp button svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  color: var(--t2);
  transform: rotate(45deg);
}
.sheet p.askhelpfoot {
  margin-top: 1rem;
  font-size: var(--fs-meta);
}

@media (prefers-reduced-motion: reduce) {
  .wave i,
  .aprog i,
  .askc .plus svg,
  .askmsg .b.out,
  .arow .rbub {
    transition: none;
  }
  .rspin {
    animation-duration: 2.4s;
  }
  .recdot {
    animation: none;
  }
}

/* ── the report's lime ─────────────────────────────────────────────
   Founder, 2026-09-24: "Insights looks good but cant see a single lime
   green in view". Lime is the brand's loudest colour, so it is spent on
   the few things an owner's eye should land on first: the period they
   are looking at, good news, the bar for now, and money already booked.

   ALWAYS AS A GROUND OR A MARK, NEVER AS TEXT. Lime text on white is
   about 1.2 to 1, unreadable. Lime under forest text is well over 10 to
   1 in both themes, because lime is light in both and --on-lime stays
   forest in dark mode (tokens.css). */

/* The chosen period: a lime pill sliding under forest words. */
.rp-bar .seghi {
  background: var(--lime);
}
.rp-bar .seg.on {
  color: var(--on-lime);
}

/* Up on the span before: the whole chip in lime, so good news is the
   first thing seen under the figure. Down and flat stay quiet. */
.rp-chg.up {
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 700;
  padding: 0.25rem 0.625rem 0.25rem 0.25rem;
  border-radius: var(--r-pill);
}
.rp-chg.up .ar {
  background: var(--on-lime);
  color: var(--lime);
}

/* The bar for now, or the one tapped. In dark mode every bar is already
   lime (--accent-ink), so the chosen one is lime at full strength; in
   light mode it is lime with a forest cap, since a lime bar alone on a
   white card is too faint to find. */
.rp-b.on i {
  background: var(--lime);
  box-shadow: inset 0 3px 0 var(--forest);
}

/* The busiest hours, named in a lime chip above the strip. */
.rp-readout .v.lime {
  background: var(--lime);
  color: var(--on-lime);
  padding: 0.125rem 0.625rem;
  border-radius: var(--r-pill);
}

/* Booked ahead: money already coming. A plain grey card with a lime
   label, the one card on the screen that is about the future (it was pale
   lime until the founder, 2026-10-10, retired every pale green fill). */
.rp-ahead {
  background: var(--fill);
  box-shadow: none;
}
.rp-ahead .cap2 {
  display: inline-block;
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 700;
  padding: 0.125rem 0.625rem;
  border-radius: var(--r-pill);
}
.rp-ahead .rp-bars {
  border-bottom-color: color-mix(in srgb, var(--t1) 12%, transparent);
}

/* ── square cropper (ui/SquareCropper.tsx) ─────────────────────────
   A layer of its own over the phone frame, not a sheet, because a sheet
   leaves on a downward drag and dragging the picture is the whole job.
   The square is as wide as the screen allows up to 22.5rem, so at 390px
   it keeps a 16px gutter each side. touch-action: none hands every
   finger movement on the square to the cropper, so the page does not
   scroll or zoom under a pinch. The fade in is the global reduced motion
   rule's to switch off, like every other transition here. */
.cropwrap {
  position: absolute;
  inset: 0;
  z-index: 130;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1rem max(1.25rem, env(safe-area-inset-bottom));
  background: var(--bg);
  overflow-y: auto;
  animation: cropin 200ms ease-out both;
}
@keyframes cropin {
  from {
    opacity: 0;
  }
}
.crophead {
  width: 100%;
  max-width: 22.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.crophead b {
  font-size: var(--fs-row);
  color: var(--t1);
}
.crophead span {
  font-size: var(--fs-body);
  color: var(--t2);
}
.cropstage {
  position: relative;
  width: min(100%, 22.5rem);
  aspect-ratio: 1;
  flex: none;
  overflow: hidden;
  border-radius: var(--r-xl, 1rem);
  background: repeating-conic-gradient(var(--fill) 0 25%, var(--card) 0 50%) 0 0 / 1.25rem 1.25rem;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.cropstage:active {
  cursor: grabbing;
}
.cropstage:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}
.cropstage img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  pointer-events: none;
}
/* The frame: a thin line on the square's edge, and for a profile picture
   the circle it will be shown in, with everything outside it dimmed. */
.cropguide {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9);
  pointer-events: none;
}
.cropstage.round .cropguide {
  border-radius: 50%;
  box-shadow:
    0 0 0 999px rgba(12, 18, 16, 0.45),
    inset 0 0 0 2px rgba(255, 255, 255, 0.9);
}
.cropzoom {
  width: min(100%, 22.5rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cropzoom input {
  flex: 1;
  min-width: 0;
  accent-color: var(--accent-ink);
}
.cropzoom .hdbtn {
  font-size: var(--fs-head);
  line-height: 1;
}
.cropzoom .hdbtn:disabled {
  opacity: 0.4;
}
.cropacts {
  width: min(100%, 22.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

/* ── Messages you send first (screens/biz/FirstMessages.tsx) ──────────
   A short list with the template actions on top, and each message opened
   as the WhatsApp chat a customer sees. Colours are the app's tokens only,
   so the chat follows light and dark like every other screen. */
.fmacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}
.fmacts .btn {
  min-height: 3rem;
  font-size: var(--fs-body);
  padding: 0 0.5rem;
  text-align: center;
}
@media (max-width: 340px) {
  .fmacts { grid-template-columns: 1fr; }
}
.fmerr { margin: 0.75rem 0 0; text-align: left; }
.fmdetail {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  min-width: 0;
}
/* The group heads inside a message sit in the padded column already. */
.fmdetail .ghead { padding-left: 0; padding-right: 0; margin-bottom: -0.25rem; }
.fmdetail .lc { margin-left: 0; margin-right: 0; }
.fmsgopts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fmseg .chip { flex: 1 1 auto; justify-content: center; }
.fmsgopts .chip:disabled { opacity: 0.6; }

/* The chat: header, wall, bubbles. */
.fmchat {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}
.fmchat-head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  background: var(--forest);
  color: #fff;
}
.fmchat-av {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 700;
  font-size: var(--fs-meta);
}
.fmchat-av img { width: 100%; height: 100%; object-fit: cover; }
.fmchat-who { min-width: 0; display: flex; flex-direction: column; }
.fmchat-who b {
  font-size: var(--fs-body);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fmchat-who span { font-size: var(--fs-label); font-weight: 500; opacity: 0.78; }
/* WhatsApp's wall is a faint pattern on a tint; here, a dot grid drawn
   from the line token on the fill token, so it flips with the theme. */
.fmchat-wall {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.75rem 0.5rem;
  min-height: 11rem;
  background-color: var(--fill);
  background-image: radial-gradient(var(--line) 1px, transparent 1.2px);
  background-size: 0.875rem 0.875rem;
}
.fmday {
  align-self: center;
  background: var(--card);
  color: var(--t2);
  border-radius: 0.5rem;
  padding: 0.25rem 0.625rem;
  font-size: var(--fs-label);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.fmbub {
  align-self: flex-end;
  max-width: 88%;
  padding: 0.625rem 0.8125rem;
  border-radius: var(--r-lg);
  border-bottom-right-radius: 0.375rem;
  background: var(--forest);
  color: #fff;
  font: inherit;
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.42;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.fmbub + .fmbub { margin-top: 0.5rem; }
/* A newer version still waiting: the real bubble, ghosted. */
.fmbub.ghost { opacity: 0.55; }
/* The example values: the parts that change for each customer. Lime on
   forest in both themes, since the bubble does not flip. */
.fmval {
  background: none;
  color: var(--lime);
  font-weight: 700;
  text-decoration: underline dotted;
  text-underline-offset: 0.2em;
}
button.fmbub.tap { cursor: text; border: 0; }
button.fmbub.tap:focus-visible,
.fmbub.editing:focus-within {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}
.fmown {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.6);
}
.fmown.empty { opacity: 0.75; font-style: italic; border-bottom-color: rgba(255, 255, 255, 0.4); }
/* The owner's line, typed straight into the bubble. */
.fmownin {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.25rem 0;
  border: 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #fff;
  font: inherit;
  resize: none;
  outline: none;
}
.fmownin::placeholder { color: rgba(255, 255, 255, 0.6); }
.fmcopy {
  display: block;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-weight: 700;
  color: var(--lime);
}
.fmstamp { margin: 0.3125rem 0.125rem 0.25rem; }
.fmsys {
  align-self: center;
  max-width: 92%;
  margin: 0.5rem 0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: var(--card);
  color: var(--t2);
  font-size: var(--fs-meta);
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

/* Under the chat. */
.fmedit { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.fmeditacts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }
.fmeditacts .btn { min-height: 2.75rem; font-size: var(--fs-body); }
.fmhint { margin: 0; font-size: var(--fs-label); font-weight: 500; color: var(--t2); line-height: 1.45; }
.fmunder { display: flex; flex-direction: column; gap: 0.625rem; }
.fmlock {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--t2);
  line-height: 1.45;
}
.fmlock svg { width: 1rem; height: 1rem; flex: none; margin-top: 0.125rem; color: var(--accent-ink); }
.fmwarn {
  margin: 0;
  padding: 0.625rem 0.75rem;
  border-radius: var(--r-sm);
  background: var(--amber);
  color: var(--t1);
  font-size: var(--fs-meta);
  font-weight: 600;
  line-height: 1.45;
}
.fmstatus { display: flex; flex-direction: column; align-items: flex-start; gap: 0.375rem; }
.fmstatus .why { margin: 0; }
.fmstatus .pill { white-space: normal; line-height: 1.3; }

/* The editor. */
.fmcompose textarea { min-height: 7rem; }
.fmblanks { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.fmblanks .chip { padding: 0.5rem 0.75rem; }
.fmblanks .chip svg { width: 0.875rem; height: 0.875rem; }
.fmnamefixed b { color: var(--t1); overflow-wrap: anywhere; }
.fmsubmit { margin-top: 0.5rem; }
.fmdetail .flabel { margin-bottom: 0.25rem; }

@media (prefers-reduced-motion: reduce) {
  .fmacts .btn,
  .fmeditacts .btn,
  .fmsubmit { transition: none; }
  .fmacts .btn:active,
  .fmeditacts .btn:active,
  .fmsubmit:active { transform: none; }
}

/* ── Broadcast and restock alerts (0088) ───────────────────────────────
   Chips that wrap instead of scrolling: the choices (who gets it, which
   template) are few and must all be seen at 390px, not hidden off the
   edge. The totals use the same tokens as every card, so light and dark
   come for free. */
.bcchoices { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.25rem 0 0.5rem; }
.bcchoices .chip { padding: 0.5625rem 0.875rem; }
.bcchoices .chip svg { width: 0.875rem; height: 0.875rem; }
.bcnone { border: 1px dashed var(--line); border-radius: 1rem; padding: 0.875rem; margin: 0.25rem 0 0.5rem; }
.bcnone .btn { margin-top: 0.25rem; }
.bcsum {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 0.625rem;
  row-gap: 0.25rem;
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
}
.bcsum b { font-size: var(--fs-head); color: var(--t1); }
.bcsum span { color: var(--t2); font-size: var(--fs-meta); }
.bcstats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.375rem; margin: 0.75rem 0; }
.bcstats > div { display: flex; flex-direction: column; align-items: center; padding: 0.625rem 0.25rem; border-radius: 0.875rem; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.bcstats b { font-size: var(--fs-row); color: var(--t1); }
.bcstats span { font-size: var(--fs-label); color: var(--t2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* ── The Brief's updates sheet (screens/Brief.tsx) ─────────────────────
   One block per update: who and when, then each thing they sent. No
   coloured side edge anywhere (the founder's rule); the heard words sit on
   the same quiet fill as the rest of the app's secondary panels. */
.briefnote {
  padding: 0.25rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.briefnote:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}
.briefnote .who {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.briefnote .who b {
  font-size: var(--fs-body);
  font-weight: 700;
}
.briefnote .who span,
.briefnote .muted {
  font-size: var(--fs-meta);
  color: var(--t2);
}
.briefnote .ent {
  margin-bottom: 0.625rem;
}
.briefnote .ent p {
  font-size: var(--fs-body);
  line-height: 1.5;
}
.briefnote .ent img {
  width: 100%;
  max-height: 20rem;
  object-fit: cover;
  border-radius: var(--r-md);
  display: block;
}
.briefnote .ent audio {
  width: 100%;
}
.briefnote .heard {
  background: var(--fill);
  border-radius: var(--r-md);
  padding: 0.625rem 0.75rem;
  margin-top: 0.5rem;
}
.briefnote .heard b {
  display: block;
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 600;
  margin: 0.25rem 0 0.125rem;
}
.briefnote .acts {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* ── Field staff (App.tsx FieldHome): one calm page, one job ─────────── */
.fieldhome {
  padding: 2.5rem 1.375rem 2rem;
  display: grid;
  gap: 1rem;
}
.fieldhome .mark {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: var(--forest);
  color: var(--lime);
  display: grid;
  place-items: center;
}
.fieldhome h1 {
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.fieldhome a.btn {
  text-decoration: none;
}
.fieldhome p {
  color: var(--t2);
  font-size: var(--fs-body);
  line-height: 1.5;
}

/* A message the owner sent from the WhatsApp Business app (Coexistence). */
.stamp .fromphone { font-style: normal; margin-right: 0.375rem; opacity: 0.8; }

/* The Ask Remy dot (ui/RemyDot.tsx): square, so it is sized on both sides,
   a little larger than the old bar mark so the lime dot reads. It is
   Remy's only mark now (founder, 2026-10-10), so every place the bar mark
   stood has a size here.

   A default first, so a place that forgets its rule gets a small dot
   rather than one stretched across the screen. */
.rdot { width: 1.5rem; height: 1.5rem; }
.askbar .mk .rdot { width: 1.75rem; height: 1.75rem; }
button.setupline .rdot { width: 1.375rem; height: 1.375rem; }
.comp .plus .rdot { width: 1.5rem; height: 1.5rem; }
.remybtn .rdot { width: 1.375rem; height: 1.375rem; }
.btn .rdot { width: 1.25rem; height: 1.25rem; }
.droprow .rdot { width: 1.125rem; height: 1.125rem; }
/* Where the bar mark sat on a circle or a tile of its own, the dot IS that
   circle: it fills the space, and the tile behind it steps aside so the
   row shows a round Remy among the square icons, the way a person shows
   as a round photo. */
.asknav .lg .rdot,
.arow .ra .rdot,
.banner .ic .rdot,
.li .ic .rdot,
.qa .ic .rdot,
.pintile .ic .rdot { width: 100%; height: 100%; }
.arow .ra:has(> .rdot),
.banner .ic:has(> .rdot),
.li .ic:has(> .rdot),
.qa .ic:has(> .rdot),
.pintile .ic:has(> .rdot) { background: none; }

/* THE PULSE (RemyDot `live`): once every 15 seconds the lime dot swells a
   little and a faint lime ring leaves it and fades inside the circle,
   1.2 seconds, then rest. Two pseudo-elements over the circle, moved only
   by transform and opacity, which the browser can run off the main thread,
   so the page itself does no work for it. RemyDot gives every live dot's
   animations one shared start time, which keeps them all on the same beat.
   At rest both layers are invisible, so a stopped or reduced-motion dot is
   simply the drawn circle. */
.rlive {
  position: relative;
  display: inline-block;
  flex: none;
  border-radius: 50%;
  vertical-align: middle;
}
.rdot.rlive > svg.rdotg {
  display: block;
  width: 100%;
  height: 100%;
}
.rlive::before,
.rlive::after {
  content: "";
  position: absolute;
  /* The lime dot's own box: r 4.5 on the 24 grid is 37.5% across. */
  inset: 31.25%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation-duration: 15s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.rlive::before {
  background: var(--lime);
  animation-name: rdot-swell;
}
.rlive::after {
  /* A thin ring with soft edges: the outer fifth of the layer's radius. */
  background: radial-gradient(closest-side, transparent 78%, var(--lime) 86%, var(--lime) 91%, transparent 100%);
  animation-name: rdot-ring;
}
/* 8% of 15 seconds is the 1.2 second pulse; the rest of the cycle is still.
   The ring is gone by 7% (1.05s), at 2.4 times the dot, just inside the
   circle's edge; the dot settles back by 8%. Tuned from frames captured at
   4x: a fuller, brighter ring read as a flash, not a breath. */
@keyframes rdot-swell {
  0% {
    opacity: 1;
    transform: scale(1);
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
  3.2% {
    opacity: 1;
    transform: scale(1.15);
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
  8% {
    opacity: 1;
    transform: scale(1);
  }
  8.01%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}
@keyframes rdot-ring {
  0% {
    opacity: 0;
    transform: scale(1);
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  1.2% {
    opacity: 0.55;
    animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
  }
  7%,
  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}
/* Stopped while the tab is hidden (RemyDot sets this on <html>, and starts
   every dot again on the beat when the tab comes back). */
:root[data-rdot-rest] .rlive::before,
:root[data-rdot-rest] .rlive::after {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .rlive::before,
  .rlive::after {
    content: none;
    animation: none;
  }
}

/* ── the new sign-up (screens/SignUp.tsx, screens/TrialPlan.tsx) ──────
   Founder, 2026-10-05 (remy-hq/research/remy-first/signup-flow.md). Sign in's
   pieces again, plus the step count, the tiles, the three team answers, the
   spinner and the plan's specs. WHITE LIFT (founder, 2026-10-10: white
   lift replaces the pale green): the tiles sit on the plain grey and the
   picked one lifts, with a forest tick in its corner. No tint, no coloured
   border, no side edge. */
.su-row { display: flex; align-items: center; justify-content: space-between; margin-top: 0.5rem; }
.su-prog { font-size: var(--fs-label); font-weight: 700; color: var(--t3); letter-spacing: 0.06em; }
.fullpage h1.su-h { font-size: var(--fs-head); }
.su-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; margin-top: 1.25rem; }
.su-tile {
  display: grid; gap: 0.5rem; align-content: start; justify-items: start; text-align: left;
  min-height: 5.5rem; padding: 0.875rem; border-radius: var(--r-md);
  background: var(--fill); border: 1px solid transparent; color: var(--t1);
  position: relative; transition: background 140ms ease, box-shadow 140ms ease;
}
.su-tile svg, .su-opt svg { width: 1.5rem; height: 1.5rem; color: var(--accent-ink); flex: none; }
/* The forest round tile with its white glyph (lime in dark), as in every row. */
.su-ic { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--forest); color: #fff; flex: none; }
.su-tile .su-ic svg, .su-opt .su-ic svg { width: 1.1875rem; height: 1.1875rem; color: inherit; }
:root[data-theme="dark"] .su-ic { color: var(--lime); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .su-ic { color: var(--lime); } }
.su-tile b { font-size: var(--fs-meta); font-weight: 700; line-height: 1.25; }
.su-tile.wide { grid-column: span 2; display: flex; align-items: center; gap: 0.75rem; min-height: 3.5rem; }
.su-tile.on, .su-opt.on { background: var(--sel); box-shadow: var(--sel-sh); }
.su-tile.on::after, .su-opt.on::after {
  content: ""; width: 1.125rem; height: 1.125rem; flex: none; background: var(--accent-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.su-tile.on::after { position: absolute; top: 0.75rem; right: 0.75rem; }
.su-tile.wide.on::after { position: static; margin-left: auto; }
.su-opt.on::after { margin-left: auto; }
.su-opts { display: grid; gap: 0.625rem; margin-top: 1.25rem; }
.su-opt {
  display: flex; align-items: center; gap: 0.875rem; text-align: left; min-height: 4.25rem;
  padding: 0.875rem 1rem; border-radius: var(--r-md); background: var(--fill); border: 1px solid transparent; color: var(--t1);
  transition: background 140ms ease, box-shadow 140ms ease;
}
.su-opt b { display: block; font-size: var(--fs-body); font-weight: 700; }
.su-opt small { display: block; margin-top: 0.125rem; font-size: var(--fs-meta); color: var(--t2); font-weight: 500; }
.su-link { align-self: flex-start; margin-top: 0.5rem; padding: 0.25rem 0; font-size: var(--fs-meta); font-weight: 700; color: var(--accent-ink); }
.fullpage b.su-num { color: var(--t1); }
.textlink.su-tight { padding-top: 0.25rem; }
.su-load { display: grid; place-items: center; gap: 0.75rem; text-align: center; }
.su-load b { font-size: var(--fs-row); font-weight: 600; }
.fullpage .su-load p { margin-top: 0; }
.su-spin { width: 2rem; height: 2rem; border-radius: 50%; border: 3px solid var(--fill); border-top-color: var(--accent-ink); animation: su-spin 0.9s linear infinite; }
@keyframes su-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .su-spin { animation: none; } }
.su-badge {
  align-self: flex-start; display: inline-flex; align-items: center; border-radius: var(--r-pill);
  padding: 0.25rem 0.75rem; background: var(--lime); color: var(--on-lime, #013f32);
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.su-specs { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.75rem; }
.su-specs li { display: flex; gap: 0.625rem; font-size: var(--fs-body); line-height: 1.4; color: var(--t1); font-weight: 500; }
.su-specs li svg { width: 1.125rem; height: 1.125rem; flex: none; margin-top: 0.125rem; color: var(--green); }
.su-paybox { margin-top: 1.25rem; padding: 0.875rem 1rem; border-radius: var(--r-md); background: var(--fill); font-size: var(--fs-meta); line-height: 1.5; color: var(--t2); }
.su-paybox b { color: var(--t1); }
.su-plans { display: grid; gap: 0.625rem; padding-bottom: 0.5rem; }
.su-plan { display: block; text-align: left; width: 100%; padding: 0.875rem 1rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); color: var(--t1); }
.su-plan.on { border-color: var(--accent-ink); }
.su-plan .top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.su-plan .pp { margin-top: 0.25rem; font-weight: 700; }
.su-plan p { margin-top: 0.375rem; font-size: var(--fs-meta); color: var(--t2); line-height: 1.45; }
.su-pick { display: inline-block; margin-top: 0.5rem; font-size: var(--fs-meta); font-weight: 700; color: var(--accent-ink); }
/* "7 free days left" under the greeting on Home: grey, quiet, no banner. */
.greet .trialtx { margin-top: 0.25rem; font-size: var(--fs-meta); color: var(--t3); font-weight: 600; }

/* ── The customer preview (ui/CustomerPreview.tsx, sign-up step 8c) ────
   The app's own chat, seen from the customer's side. Colour only on the
   icons; no side edges anywhere. */
.pview .thnav .who .pvsub {
  color: var(--t2);
}
.pvfrom {
  align-self: flex-start;
  margin: 0.25rem 0.25rem 0.3125rem;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--t2);
}
.pview .b.in strong {
  font-weight: 700;
}
.pview .b.in + .pvnote,
.pview .b.in {
  margin-bottom: 0.5rem;
}
.pvnote {
  align-self: flex-start;
  max-width: 85%;
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  margin: 0 0.25rem 0.75rem;
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.4;
  color: var(--t2);
}
.pvnote.r {
  align-self: flex-end;
}
.pvnote svg {
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  margin-top: 0.0625rem;
  color: var(--green);
}
.pvtyping {
  display: inline-flex;
  align-items: center;
  color: var(--t2);
  min-height: 2.75rem;
}
.pvtyping .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.pverr {
  color: var(--t1);
}
.pvdone {
  flex: none;
  padding: 0.25rem 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}
.pvdone .btn {
  width: 100%;
}
.pvleft {
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--t3);
}
/* The order a preview would create (ui/CustomerPreview.tsx): a plain white card under the answer, the
   figures in the app's own type; no side edges, no pale fills. Nothing here is saved. */
.pvorder {
  align-self: flex-start;
  width: min(85%, 22rem);
  margin: 0 0.25rem 0.75rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--t1);
  font-size: var(--fs-meta);
  line-height: 1.45;
}
.pvorder > b {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 700;
}
.pvorder ul {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
}
.pvorder li,
.pvorder .pvtot {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}
.pvorder p {
  margin: 0 0 0.25rem;
}
.pvorder .pvtot {
  font-weight: 700;
}
.pvorder .pvsmall {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  font-size: var(--fs-label);
  color: var(--t2);
}
.pvorder .pvsmall svg {
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  margin-top: 0.0625rem;
}
.pvtools {
  flex: none;
  padding: 0.25rem 1rem 0.25rem;
  display: flex;
  justify-content: flex-start;
}
/* The offer at the end of Set up with Remy, before Connect. */
.setupdone .pvoffer {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ── The wallet (backend wallet rules, 2026-10-06) ─────────────────────
   "Pay my plan from my wallet each month": one round tick, the words beside
   it. The same box at sign-up, in the wallet sheet and on the Plan screen. */
.autorenew { display: flex; align-items: flex-start; gap: 0.75rem; width: 100%; text-align: left; margin-top: 1rem; padding: 0.875rem 1rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); color: var(--t1); }
.autorenew .tick { margin-top: 0.125rem; }
.autorenew .tx { display: grid; gap: 0.25rem; }
.autorenew .tx b { font-weight: 700; }
.autorenew .tx span { font-size: var(--fs-meta); color: var(--t2); line-height: 1.45; }
.autorenew:disabled { opacity: 0.6; }
.wallet-fig { margin: 0.25rem 0 0.75rem; }
.wallet-fig .big { font-size: var(--fs-display); font-weight: 700; color: var(--t1); }
.wallet-fig .sub { font-size: var(--fs-meta); color: var(--t2); margin-top: 0.25rem; line-height: 1.45; }
.wallet-msg { margin: 0 0 0.625rem; padding: 0.75rem 1rem; border-radius: var(--r-md); background: var(--fill); font-size: var(--fs-meta); line-height: 1.5; color: var(--t1); }
.wallet-msg time { display: block; margin-top: 0.25rem; color: var(--t3); font-size: var(--fs-label); }

/* The shop page row (biz/ShopPageRow.tsx): Copy link beside the switch. */
.shoprow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

/* ── What Relynked handled in your free days (ui/TrialRecapCard.tsx) ───
   The signature Home's money card, as the same forest surface with the one
   bold figure, then the supporting figures and one lime button. No stripe on
   any edge, no badge, no label above a heading: colour only on the figures
   and the button. Shown on Home in the trial's last 2 days and on Plan once
   it ends. */
.trc {
  margin: 0.75rem 1.125rem 0;
  background-color: var(--forest);
  background-image: var(--dash-art);
  background-size: cover;
  background-position: center;
  border-radius: var(--r-2xl);
  padding: 1.125rem 1.125rem 0.875rem;
  color: #fff;
  display: grid;
  gap: 1rem;
}
.trc-cap {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
}
.trc-big {
  margin-top: 0.25rem;
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.trc-big.words {
  font-size: var(--fs-title);
}
.trc-under {
  margin-top: 0.375rem;
  font-size: var(--fs-meta);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}
.trc-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.trc-lines li {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  padding: 0.625rem 0.75rem;
  display: grid;
  gap: 0.125rem;
  align-content: start;
}
.trc-lines b {
  font-size: var(--fs-head);
  font-weight: 700;
  color: var(--lime);
  line-height: 1.15;
}
.trc-lines span {
  font-size: var(--fs-meta);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.35;
}
.trc-foot {
  display: grid;
  gap: 0.625rem;
}
.trc-saved {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: var(--fs-meta);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}
.trc-saved svg {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  color: var(--lime);
}
.trc-note {
  font-size: var(--fs-meta);
  line-height: 1.5;
  color: #fff;
}
.trc .trc-go {
  margin-top: 0.25rem;
}
.trc .trc-go:disabled {
  opacity: 0.7;
}
.trc-link,
.trc-later {
  justify-self: center;
  padding: 0.375rem 0.75rem;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: #fff;
}
.trc-later {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}
.trc-err {
  font-size: var(--fs-meta);
  color: var(--lime);
  text-align: center;
}
/* Home's kind line after the one extension: the setup line's shape, grey, not a button. */
.kindline {
  margin: 0.75rem 1.125rem 0;
  border-radius: 1rem;
  padding: 0.75rem 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--fill);
}
.kindline svg {
  flex: none;
  width: 1.0625rem;
  height: 1.0625rem;
  color: var(--accent-ink);
}
.kindline p {
  flex: 1;
  font-size: var(--fs-meta);
  font-weight: 600;
  line-height: 1.4;
  color: var(--t1);
}

/* ── Instagram (server 0171 to 0173) ──────────────────────────────────
   Instagram's glyph by its brand rules: one solid colour (the text colour),
   29 px or more, nothing drawn around it, the word Instagram beside it on
   cards. In a chat list it marks the channel at the row's end; never a
   coloured side edge. */
.igmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--t1);
}
.igmark .igword {
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.igglyph {
  flex: none;
  display: block;
}
.pcard .ptitle.igtitle {
  display: flex;
  align-items: center;
  margin-bottom: 0.625rem;
}
.chmark {
  flex: none;
  display: inline-flex;
  align-items: center;
  color: var(--t2);
  margin-left: 0.25rem;
}
.thnav .thch {
  flex: none;
  display: inline-flex;
  align-items: center;
  color: var(--t1);
}
.igwin {
  color: var(--t2);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.4;
}
/* The import review card: Remy's card, a list of drafts to tick and price. */
.igimport .igrm {
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  margin-bottom: 0.375rem;
}
.igimport .igrm .rdot {
  width: 1.625rem;
  height: 1.625rem;
  flex: none;
}
.igimport .igrm b {
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.3;
}
.igimport .iglist {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.igimport .iglist li {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  grid-template-areas: "pick thumb tx price" "pick thumb tx x";
  column-gap: 0.625rem;
  row-gap: 0.25rem;
  align-items: center;
  padding: 0.625rem 0;
  border-top: var(--hair) solid var(--line);
}
.igimport .igpick { grid-area: pick; display: flex; align-items: center; }
.igimport .igpick input { width: 1.125rem; height: 1.125rem; accent-color: var(--forest); }
.igimport .igthumb {
  grid-area: thumb;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.625rem;
  object-fit: cover;
  background: var(--fill);
  display: block;
}
.igimport .igtx { grid-area: tx; min-width: 0; display: flex; flex-direction: column; gap: 0.1875rem; }
.igimport .ignm { font-size: var(--fs-meta); font-weight: 600; color: var(--t1); overflow-wrap: anywhere; }
.igimport .ignote { font-size: var(--fs-label); color: var(--t2); line-height: 1.35; }
.igimport .ignote.warn { color: var(--orange); font-weight: 600; }
.igimport .igprice { grid-area: price; display: flex; flex-direction: column; align-items: flex-end; gap: 0.125rem; }
.igimport .igfield {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  width: 7rem;
  padding: 0 0.625rem;
  border-radius: 0.625rem;
  border: var(--hair) solid var(--line);
  background: var(--fill);
}
.igimport .igfield b { font-size: var(--fs-meta); font-weight: 600; color: var(--t2); }
.igimport .igfield input {
  width: 100%;
  min-width: 0;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  outline: none;
  color: var(--t1);
  font-size: var(--fs-input);
  font-weight: 600;
  text-align: right;
}
.igimport .igfield:focus-within { border-color: var(--forest); }
.igimport .igfield:has(input[aria-invalid="true"]) { border-color: var(--orange); }
.igimport .wasub {
  font-size: var(--fs-meta);
  font-weight: 500;
  line-height: 1.45;
  color: var(--t2);
  margin: 0;
}
.igimport .wanote {
  margin-top: 0.625rem;
  font-size: var(--fs-label);
  color: var(--orange);
  font-weight: 600;
}
.igimport .igx {
  grid-area: x;
  justify-self: end;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--t2);
  background: none;
  padding: 0.125rem 0;
}
@media (max-width: 380px) {
  .igimport .igfield { width: 6rem; }
}

/* ── bookable people: dots, the People list, the calendar by person ──────
   A person's colour lives in ONE place: a dot (or the swatch that picks it).
   Never a tinted row, a coloured edge or a coloured block. The dots flip in
   dark mode, where forest and slate would vanish into the page. */
:root {
  --pc-forest: #0b3d2e;
  --pc-ocean: #2f7fd1;
  --pc-plum: #8e4bb5;
  --pc-amber: #e0a020;
  --pc-rose: #e0587a;
  --pc-slate: #6b7a86;
  --pc-teal: #1aa6a0;
  --pc-clay: #c2693e;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pc-forest: #4fb08a;
    --pc-slate: #9aa7b2;
  }
}
:root[data-theme="dark"] {
  --pc-forest: #4fb08a;
  --pc-slate: #9aa7b2;
}
.pdot {
  flex: none;
  display: inline-block;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
}
.pdot.lg {
  width: 0.875rem;
  height: 0.875rem;
}

/* The People list: one white card, a row per person. */
.pp-row {
  display: flex;
  align-items: flex-start;
  gap: 0.8125rem;
  width: 100%;
  padding: 0.875rem 1rem;
  text-align: left;
  color: inherit;
  background: none;
}
.pp-row + .pp-row {
  border-top: 1px solid var(--line);
}
.pp-row .pdot {
  margin-top: 0.4375rem;
}
.pp-row .tx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.pp-row .tt {
  font-size: var(--fs-body);
  font-weight: 700;
}
.pp-row .tt em {
  font-style: normal;
  font-weight: 500;
  color: var(--t2);
  font-size: var(--fs-meta);
}
.pp-row .ds {
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 500;
}
.pp-row .cv {
  align-self: center;
}
.pp-row:active {
  background: var(--fill);
}
.pp-row.off .tt,
.pp-row.off .ds {
  opacity: 0.55;
}
.pp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.pp-chip {
  padding: 0.1875rem 0.5625rem;
  border-radius: var(--r-pill);
  background: var(--fill);
  color: var(--t1);
  font-size: var(--fs-label);
  font-weight: 600;
  white-space: nowrap;
}
.pp-chip.quiet {
  color: var(--t2);
}

/* The sheet. */
.pp-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.pp-sw {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.pp-sw svg {
  width: 1rem;
  height: 1rem;
  opacity: 0;
}
.pp-sw.on {
  transform: scale(1.1);
  box-shadow: 0 0 0 3px var(--card), 0 4px 12px rgba(15, 20, 18, 0.22);
}
.pp-sw.on svg {
  opacity: 1;
}
.pp-week .dayrow + .dayrow {
  margin-top: 0.625rem;
}
.pp-off {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6875rem 0.875rem;
  background: var(--fill);
  border-radius: var(--r-md);
  margin-bottom: 0.5rem;
  font-size: var(--fs-body);
  font-weight: 600;
}
.pp-off span {
  flex: 1;
}
.pp-off button {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  color: var(--t2);
}
.pp-off button svg {
  width: 0.875rem;
  height: 0.875rem;
}
.pp-addoff {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.625rem;
  align-items: center;
}
/* A list of people inside a sheet takes the sheet's own width, not the page's gutters. */
.pp-sheetlist .lc {
  margin-left: 0;
  margin-right: 0;
}
.pp-sheetlist .pinerr {
  text-align: left;
}
.pp-foot {
  margin: 1rem 1.125rem 0;
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 500;
  line-height: 1.5;
}
.pp-note {
  margin: 0.5rem 0 0;
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 500;
  line-height: 1.45;
}

/* The calendar by person: a column per person, scrolling sideways when
   there are more than fit. The hours stay put at the left. */
.bk-grid.pp {
  overflow-x: auto;
  padding-top: 0;
  padding-right: 0;
}
.bkp-in {
  min-width: calc(2.875rem + var(--n) * 5.75rem);
}
.bkp-heads {
  display: flex;
  padding-left: 2.875rem;
  padding-top: 0.75rem;
  padding-bottom: 0.5rem;
}
.bkp-heads span {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0 0.25rem;
  font-size: var(--fs-meta);
  font-weight: 700;
}
.bkp-heads span b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.bkp-heads span.un {
  color: var(--t2);
}
.bkp-in .bk-hours {
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--card);
}
.bk-grid.pp .bk-col + .bk-col {
  border-left: 1px solid var(--line);
}
.bkp-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.1875rem;
  color: var(--t2);
}
.bkp-st {
  align-self: flex-start;
  margin-top: 0.125rem;
  padding: 0.0625rem 0.4375rem;
  border-radius: var(--r-pill);
  background: var(--fill);
  color: var(--t2);
  font-size: var(--fs-label);
  font-weight: 600;
  font-style: normal;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bkp-who {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
}
/* A group's link across the columns: a thin line with a dot at each end,
   laid over the top edge of the blocks it joins. Grey, never a person's colour. */
.bkp-link {
  position: absolute;
  z-index: 2;
  height: 0;
  border-top: 2px dotted var(--t3);
  pointer-events: none;
}
.bkp-link::before,
.bkp-link::after {
  content: "";
  position: absolute;
  top: -0.3125rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--t3);
}
.bkp-link::before { left: -0.25rem; }
.bkp-link::after { right: -0.25rem; }
/* ── hot deals (shop deals) ─────────────────────────────────────────
   The owner sheet "Make a hot deal", the Hot deal button and badge on a
   catalogue row, the tabs above the list, and the Ask Remy hot deal card.
   The colour is --hot and it goes on the flame, the figure and the ends
   line only: never the side edge of a row or a card. The chosen chip or
   segment is the white lift, from .chip.on and .seghi above. */
.sheettitle.withicon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hdflame {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--hot);
  flex: none;
}
.hd {
  display: grid;
  gap: 0.875rem;
  padding-top: 0.25rem;
}
.hd > * {
  min-width: 0;
}
.hdlbl {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--t2);
}
.hdlbl span {
  font-weight: 600;
  color: var(--t3);
}
.hdsel {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 3rem;
  padding: 0 0.875rem;
  border-radius: var(--r-md);
  background: var(--fill);
  border: 1px solid transparent;
  font-size: var(--fs-body);
  font-weight: 600;
}
.hdsel:focus-within {
  border-color: var(--accent-ink);
  background: var(--card);
}
.hdsel select,
.hdsel .gsel {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--t1);
  font: inherit;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  padding: 0.75rem 0;
  text-overflow: ellipsis;
}
.hdsel svg {
  width: 1rem;
  height: 1rem;
  color: var(--t2);
  flex: none;
}
.hdnone {
  margin: 0.5rem 0 0;
  font-size: var(--fs-meta);
}
.hdcalc {
  margin-top: 0.375rem;
  font-size: var(--fs-meta);
  font-weight: 600;
  line-height: 1.4;
}
.hdcalc.good {
  color: var(--green);
}
.hdcalc.bad {
  color: var(--red);
}
.hdcalc.quiet {
  color: var(--t3);
}
.hdchips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hddate {
  margin-top: 0.5rem;
}
.hddate input {
  font-weight: 600;
}
.hdendline {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.625rem;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--hot);
}
.hdendline svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}
.hdsw {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--r-md);
  background: var(--fill);
}
.hdsw .t {
  display: grid;
  gap: 0.0625rem;
  font-size: var(--fs-body);
  font-weight: 700;
}
.hdsw .t small {
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--t2);
}
.hd .acts {
  margin-top: 0.25rem;
}
.hd .btn svg {
  color: inherit;
}
.hd .pinerr {
  margin: 0;
}
.hdlive {
  justify-items: center;
  text-align: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
}
.hdok {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: #fff;
}
.hdok svg {
  width: 1.5rem;
  height: 1.5rem;
}
.hdlivet {
  font-size: var(--fs-head);
  font-weight: 700;
}
.sheet p.hdlivep {
  margin: 0;
  max-width: 30ch;
  font-size: var(--fs-body);
}
.hdbox {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 0.1875rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--r-md);
  background: var(--fill);
}
.hdbox > b {
  font-size: var(--fs-body);
}
.hdprice {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--hot);
}
.hdprice s {
  font-weight: 600;
  font-size: var(--fs-meta);
  color: var(--t2);
}
.hdends {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--hot);
}
.hdends svg {
  width: 0.8125rem;
  height: 0.8125rem;
}
.hdrow2 {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}
.hdrow2 button {
  flex: 1;
  min-height: 3rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: var(--fs-body);
}
.hdrow2 .hdsec {
  background: var(--fill);
  color: var(--t1);
}
.hdrow2 .hdpri {
  background: var(--forest);
  color: #fff;
}
.hdrow2 button:disabled {
  opacity: 0.5;
}

/* The tabs above the catalogue: All, Hot deals, Sold out. The app's own
   segment, so the chosen one is the white lift. */
.dealtabs {
  padding: 0.75rem 1.125rem 0;
}
.dealtabs .seg .num {
  margin-left: 0.25rem;
  color: var(--t3);
  font-weight: 600;
}

/* Hot deal on a catalogue row: a quiet button, and the badge when it is one. */
.hdgh {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 2.125rem;
  padding: 0 0.8125rem;
  border-radius: var(--r-pill);
  background: var(--fill);
  color: var(--t1);
  font-size: var(--fs-meta);
  font-weight: 700;
  cursor: pointer;
}
.hdgh svg,
.hdbadge svg {
  width: 0.9375rem;
  height: 0.9375rem;
  color: var(--hot);
  flex: none;
}
.hdbadge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  height: 1.625rem;
  padding: 0 0.625rem;
  border-radius: var(--r-pill);
  background: var(--hot);
  color: var(--hot-on);
  font-size: var(--fs-micro);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.hdbadge svg {
  width: 0.75rem;
  height: 0.75rem;
  color: inherit;
}
.hdnow {
  color: var(--hot);
}
.hdwas {
  margin-left: 0.375rem;
  font-weight: 500;
  color: var(--t3);
}
.hdendsline {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--hot);
  font-weight: 600;
}
.hdendsline svg {
  width: 0.8125rem;
  height: 0.8125rem;
}

/* The Ask Remy hot deal card body: plain title, the name, was struck and now, the saving, the ends line. */
.pcard .hdcard {
  display: grid;
  gap: 0.1875rem;
  padding: 0.25rem 0 0.125rem;
}
.pcard .hdcard .hdn {
  font-size: var(--fs-body);
  font-weight: 700;
}
.pcard .hdcard .hdparts {
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 500;
}
.pcard .hdcard .hdnums {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.625rem;
}
.pcard .hdcard .hdnums b {
  font-size: var(--fs-head);
  font-weight: 700;
  color: var(--hot);
}
.pcard .hdcard .hdnums s {
  font-size: var(--fs-meta);
  color: var(--t2);
}
.pcard .hdcard .hdnums span {
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--t1);
}
.pcard .hdcard .hdends {
  font-size: var(--fs-meta);
}

/* Listing details in Add item and Edit item: a group above the price. */
.lfgroup {
  margin-top: 0.25rem;
}
.lfhead {
  margin-top: 1.5rem;
  font-size: var(--fs-head);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lfsel {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 3.375rem;
  padding: 0 0.875rem;
  border-radius: var(--r-md);
  background: var(--fill);
  border: 1px solid transparent;
  font-weight: 600;
}
.lfsel:focus-within {
  border-color: var(--accent-ink);
  background: var(--card);
}
.lfsel select,
.lfsel .gsel {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--t1);
  font: inherit;
  font-size: var(--fs-input);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  padding: 0.75rem 0;
}
.lfsel select:invalid,
.lfsel select.empty,
.lfsel .gsel.empty {
  color: var(--t3);
}
.lfsel svg {
  width: 1rem;
  height: 1rem;
  color: var(--t2);
  flex: none;
}
.lfseg {
  width: 100%;
}
.lfseg .seg {
  font-size: var(--fs-meta);
}

/* The shop page's two extra lines (Instagram, where you deliver or come to). */
.spdetails .atp {
  font-weight: 700;
  color: var(--t2);
}
/* "Directions go to my full address" (0597): the switch and the line saying what customers will see. */
.spdir {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
}
.spdir .rt {
  flex: 1;
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.spdir .rt b {
  font-size: var(--fs-row);
}
.spdir .rt small {
  font-size: var(--fs-meta);
  font-weight: 550;
  color: var(--t2);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* ── the shop builder (address, layout, publish) ────────────────────── */
.sb-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; margin: 0.25rem 0 1.25rem; }
.sb-hero .emptyart-img { width: 6rem; height: 6rem; }
.sb-hero p { margin: 0; font-size: var(--fs-meta); font-weight: 500; color: var(--t2); line-height: 1.45; max-width: 22rem; }
.sb-field .unit { font-size: var(--fs-body); }
.sb-field input { text-align: right; padding-right: 0; letter-spacing: 0; }
.sb-line { display: flex; align-items: center; gap: 0.375rem; margin: 0.5rem 0 0; font-size: var(--fs-meta); font-weight: 600; color: var(--t2); line-height: 1.4; }
.sb-line svg { width: 1rem; height: 1rem; flex: none; }
.sb-line.ok { color: var(--accent-ink); }
.sb-line.bad { color: var(--red); }
.sb-ask { margin-top: 1rem; display: grid; gap: 0.5rem; }
.sb-ask p { margin: 0; font-size: var(--fs-meta); font-weight: 600; color: var(--t2); }
.sb-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sb-chip { padding: 0.5rem 0.875rem; border-radius: var(--r-pill); background: var(--fill); border: 1px solid var(--line); font-size: var(--fs-meta); font-weight: 700; color: var(--t1); }
.sb-review { display: grid; gap: 0.75rem; padding-bottom: 0.5rem; }
.sb-addr { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 0.875rem; border-radius: var(--r-md); background: var(--fill); margin-bottom: 0.875rem; }
.sb-addr .k { display: grid; min-width: 0; }
.sb-addr small { font-size: var(--fs-label); font-weight: 600; color: var(--t2); }
.sb-addr b { font-size: var(--fs-body); font-weight: 700; overflow-wrap: anywhere; }
.sb-seg { margin-bottom: 0; }
.sb-phone { margin: 1rem 0 0.5rem; border-radius: 1.5rem; border: 1px solid var(--line); background: var(--card); overflow: hidden; box-shadow: var(--sel-sh); }
.sb-frame { display: block; width: 100%; height: min(62vh, 34rem); border: 0; background: var(--card); }
.sb-sk { border-radius: var(--r-md); background: var(--fill); animation: sbpulse 1.4s ease-in-out infinite; }
.sb-sk1 { height: 4rem; margin-bottom: 0.75rem; }
.sb-sk2 { height: 12rem; }
.sb-skframe { height: min(62vh, 34rem); border-radius: 0; }
@keyframes sbpulse { 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .sb-sk { animation: none; } }
.sb-link { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin: 0.5rem 0 1rem; padding: 0.875rem; border-radius: var(--r-md); background: var(--fill); }
.sb-link svg { width: 1.125rem; height: 1.125rem; flex: none; }
.sb-link b { font-size: var(--fs-row); font-weight: 600; overflow-wrap: anywhere; }
.sb-acts { display: grid; gap: 0.625rem; margin-bottom: 1rem; }

.sb .why { margin: 1rem 0 0; font-size: var(--fs-meta); font-weight: 500; color: var(--t2); line-height: 1.45; }

/* ── Help (screens/Help.tsx): steps, tips, and the support line as text. No side stripes. ── */
.helpsteps { list-style: none; margin: 1rem 1.125rem 0; padding: 0.375rem 0; background: var(--card); border-radius: var(--r-xl); box-shadow: var(--sh); }
.helpsteps li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.6875rem 0.9375rem; font-size: var(--fs-body); font-weight: 500; line-height: 1.45; color: var(--t1); }
.helpsteps .n { flex: none; width: 1.625rem; height: 1.625rem; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: #fff; font-size: var(--fs-meta); font-weight: 700; }
:root[data-theme="dark"] .helpsteps .n { color: var(--lime); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .helpsteps .n { color: var(--lime); } }
.helptips { margin: 0.75rem 1.125rem 0; }
.helptips p { margin: 0 0 0.375rem; font-size: var(--fs-meta); font-weight: 500; line-height: 1.45; color: var(--t2); }
.helpstuck { margin: 1.5rem 1.125rem 1.5rem; padding: 1rem 1.125rem; border-radius: var(--r-xl); background: var(--card); box-shadow: var(--sh); text-align: center; }
.helpstuck b { display: block; font-size: var(--fs-body); font-weight: 700; color: var(--t1); }
.helpstuck p { margin: 0.375rem 0 0; font-size: var(--fs-body); font-weight: 500; line-height: 1.5; color: var(--t2); overflow-wrap: anywhere; }
.helpstuck a { color: var(--t1); font-weight: 700; text-decoration: underline; text-underline-offset: 0.18em; }

/* ICON STYLE D: EVERY TILE IS A FULL CIRCLE (founder, 2026-10-11: the promise
   image, ui-polish-options 2D, is a solid forest ROUND tile; the rows, Home's
   quick actions, the Pin to Home grid and the pickers had stayed rounded
   squares of about 30%). One rule, last in the file, so a context that states
   its own radius above cannot bring a square back: `npm run check:icons`
   reads it. */
.li .ic,
.trio .ic,
.gi .ic,
.bizcard .ic,
.pickrow .pkl .ic,
.pintile .ic,
.qa .ic {
  border-radius: 50%;
}

/* ── Home's room under the last thing (screens/SignatureHome.tsx .sh-endpad) ──
   On a phone the floating tab bar covers the bottom of the screen, so Home ends
   with a block as tall as the bar, its offset (or the home indicator, whichever
   is more) and some air, instead of relying on the scroller's bottom padding,
   which a real phone did not honour for the last item. Pinned, like the bar. */
.sh-endpad {
  height: calc(max(calc(1.625 * var(--fix)), env(safe-area-inset-bottom, 0px)) + 3.75 * var(--fix) + 1.5 * var(--fix));
  flex: none;
}
.scroll.sighome {
  padding-bottom: 0;
}
.shell .sh-endpad {
  display: none;
}
.shell .scroll.sighome {
  padding-bottom: calc(2.5 * var(--fix) + env(safe-area-inset-bottom, 0px));
}

/* ── Remy's one-tap answers (server choices: "Did you mean Bed accessories?", "₦25 or ₦25,000?") ──
   Big buttons under Remy's reply; a tap sends that text back. Every mode, every size: 48px tall at least,
   white on the grey page with a soft shadow, the words in the accent ink. No tint, no side edge. */
.rchoices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0.25rem;
}
.rchoices button {
  min-height: 48px;
  padding: 0.5rem 1.125rem;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--sh);
  border: 1px solid var(--line);
  color: var(--accent-ink);
  font-size: var(--fs-body);
  font-weight: 700;
  text-align: left;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.rchoices button:active {
  transform: scale(0.98);
}

/* ── Ask Remy cards, calmer (founder, 12 October 2026: action cards were eating the chat) ──
   An applied card is ONE line: a tick, what happened, Undo while it can be undone; a tap on the words opens it.
   A discarded card is gone at once and leaves "Discarded · Undo" for five seconds, then fades. Two or more cards in one
   reply get Apply all and Discard all above them. Colour only on the tick; no side edge, no tinted fill. */
.pcard.cdone {
  padding: 0.5rem 0.75rem;
  opacity: 1;
  background: var(--card);
  box-shadow: none;
}
.pcard .cdrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2rem;
}
.pcard .cdline {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  min-width: 0;
  flex: 0 1 auto;
  padding: 0.25rem 0;
  text-align: left;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--t1);
}
.pcard .cdline .ck {
  flex: none;
  display: inline-flex;
  color: var(--accent-ink);
}
.pcard .cdline .ck svg {
  width: 0.875rem;
  height: 0.875rem;
}
.pcard .cdline .ct {
  min-width: 0;
  overflow-wrap: anywhere;
}
.pcard .cdot {
  flex: none;
  color: var(--t3);
}
.pcard .cdundo {
  flex: none;
  padding: 0.375rem 0.25rem;
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--accent-ink);
}
.pcard .cdundo:disabled {
  opacity: 0.6;
}
.pcard .cdhide {
  margin-top: 0.5rem;
  padding: 0.375rem 0;
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--t2);
}
/* ── the applied changes of one reply, one small status line (founder, 13 Oct 2026) ──
   The Remy dot and a few words in the brand forest, smaller than the message, no box, no border, no shadow.
   A tap opens a list of each change with its Undo. */
.cgroup {
  margin: 0.375rem 0 0.125rem;
}
.cgline {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.25rem 0;
  text-align: left;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--accent-ink);
}
.cgline .cgdot {
  width: 0.75rem;
  height: 0.75rem;
  flex: none;
}
.cgline .cgsay {
  min-width: 0;
  overflow-wrap: anywhere;
}
.cglist {
  list-style: none;
  margin: 0.125rem 0 0.25rem 1.125rem;
  padding: 0;
  display: grid;
  gap: 0.125rem;
}
.cgrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--fs-label);
  color: var(--t2);
}
.cgrow .cgtx {
  min-width: 0;
  overflow-wrap: anywhere;
}
.cgrow .cgundo {
  flex: none;
  padding: 0.25rem 0.5rem;
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--accent-ink);
}
.cgrow .cgundo:disabled {
  opacity: 0.6;
}
.cgrow .cgerr {
  flex: 1 0 100%;
  color: var(--red);
}
.pdrop {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  margin-top: 0.5rem;
  padding: 0.25rem 0.25rem;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--t2);
  animation: pdropfade 5s linear forwards;
}
.pdrop button {
  padding: 0.375rem 0.25rem;
  font-weight: 700;
  color: var(--accent-ink);
}
@keyframes pdropfade {
  0%,
  82% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pdrop {
    animation: none;
  }
}
.cardsbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.cardsbar .cbn {
  flex: 1 1 auto;
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--t2);
}
.cardsbar button {
  padding: 0.5rem 1rem;
  border-radius: 0.8125rem;
  font-size: var(--fs-meta);
  font-weight: 700;
  background: var(--forest);
  color: #fff;
}
.cardsbar button.w {
  background: var(--card);
  color: var(--t1);
  border: 1px solid var(--line);
}
.cardsbar button:disabled {
  opacity: 0.6;
}
.cardsnote {
  margin-top: 0.375rem;
}

/* Under a photo Remy could not place: the photo, the question, one-tap answers. */
.pasks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.pask {
  background: var(--card);
  border: var(--hair) solid var(--line);
  border-radius: var(--r-lg);
  padding: 0.625rem 0.75rem 0.5rem;
  box-shadow: var(--sh);
}
.pask-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.pask .pq {
  min-width: 0;
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.35;
}
.pth.big {
  position: relative;
  flex: none;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--fill);
  box-shadow: var(--sh);
}
.pth.big img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pask .rchoices {
  margin: 0.5rem 0 0;
}
.pask .rchoices button {
  min-height: 44px;
  padding: 0.375rem 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--fs-meta);
}
/* The answer chosen: lifted, bold, a forest tick. No fill. */
.pask .rchoices button.on {
  font-weight: 700;
  background: var(--sel);
  box-shadow: var(--sel-sh);
}
.pask .rchoices button svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--accent-ink);
}
/* ── The shop page in the chat (founder, 12 October 2026: "show me my page") ──
   A small card under Remy's line: name, address, whether it is live, a still picture of the real page, the layout and
   colours, and Copy link. The big Open button follows it. No tinted fill and no side edge; colour only on the word. */
.pk {
  margin-top: 0.5rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh);
}
.pk-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.pk-id {
  display: grid;
  min-width: 0;
  gap: 0.125rem;
}
.pk-name {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--t1);
  overflow-wrap: anywhere;
}
.pk-addr {
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--t2);
  overflow-wrap: anywhere;
}
.pk-st {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  flex: none;
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--t2);
}
.pk-st i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--t2);
}
.pk-st.live {
  color: var(--accent-ink);
}
.pk-st.live i {
  background: var(--accent-ink);
}
.pk-st.down {
  color: var(--red);
}
.pk-st.down i {
  background: var(--red);
}
.pk-frame {
  position: relative;
  margin-top: 0.625rem;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--fill);
}
.pk-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  transform-origin: 0 0;
  pointer-events: none;
  background: var(--card);
}
.pk-none {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 0 1rem;
  text-align: center;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--t2);
}
.pk-sk {
  position: absolute;
  inset: 0;
  background: var(--fill);
  animation: sbpulse 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .pk-sk {
    animation: none;
  }
}
.pk-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.625rem;
}
.pk-meta {
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--t2);
}
.pk-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh);
  color: var(--accent-ink);
  font-size: var(--fs-meta);
  font-weight: 700;
}
.pk-copy svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}

/* ══ Sign in, Sign up's social buttons, Forgot password, Add your number ══
   Drawn to the founder's mockups (remy-hq/mockups/sign-in-2026-10-28), in the
   app's OWN tokens only: no colour on this screen is a new one. The one
   deliberate difference from the mockup is the Sign in button: a SOLID fill
   (--accent-ink, forest in light and lime in dark), not a gradient, on the
   founder's instruction of 28 Oct 2026.

   SIZES ARE THE MOCKUP'S OWN PIXELS, drawn at 390 wide. --px is one CSS pixel
   at the person's text size: --fix is 1rem with the design scale divided back
   out (tokens.css), so 16 * --px is the device's own 16px at the default and
   still grows with the text size the person chose. */
:root {
  --px: calc(var(--fix) / 16);
  /* White words on red (a count badge, the danger button): --red is 3.9:1 under white in light and 3.4:1 in
     dark, so these fill with a deeper red, 5.3:1 in both themes. */
  --danger-fill: #c4392d;
  /* A page header's line under the title: --t2 is 4.4:1 on the light page, so one step darker there. */
  --head-sub: #5f676b;
  /* The hairline round a field or a button on these screens: a quiet grey from the app's own muted ink. */
  --si-edge: color-mix(in srgb, var(--t3) 50%, transparent);
}

.fullpage.si {
  --si-bg: var(--card);
  --si-word: var(--forest);
  background: var(--si-bg);
  padding: 0 calc(32 * var(--px)) max(calc(24 * var(--px)), env(safe-area-inset-bottom));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fullpage.si {
    --si-bg: var(--bg);
    --si-word: var(--t1);
  }
}
:root[data-theme="dark"] .fullpage.si {
  --si-bg: var(--bg);
  --si-word: var(--t1);
}
.fullpage.si > *:not(.dd):not(.si-theme) {
  position: relative;
  z-index: 1;
  flex: none;
}
.fullpage.si > .spacer {
  flex: 1;
}

/* ── the doodle backdrop (ui/DoodleBackdrop.tsx) ───────────────────
   Traced from the founder's mockups of 28 Oct 2026, and ONLY in the app's
   own tokens: strokes, never fills, and no colour on it is a new one.

   LIGHT: thin soft green lines on the white page. DARK: mid green lines on
   the near black page, the lime accents as the second voice. Three tones,
   named by how loud they are: a (the main green), b (quiet, for the
   things that should sit back), c (the accent).

   THE FADE is a vertical mask on the wrapper, so the doodles are
   strongest at the very top and gone before half way down the screen,
   with no edge anywhere. It is a mask, not a gradient laid over the
   drawing, because a gradient would be a coloured band that has to match
   the page in both themes and in the middle of a theme change; a mask
   cannot disagree with the background it sits on. */
.fullpage:has(> .dd) {
  /* A stacking context of its own, so the backdrop can sit BEHIND the
     content (z-index -1) without disappearing behind the page colour. */
  isolation: isolate;
}
.dd {
  --dd-a: color-mix(in srgb, var(--green) 34%, transparent);
  --dd-b: color-mix(in srgb, var(--green) 20%, transparent);
  --dd-c: color-mix(in srgb, var(--green) 34%, transparent);
  --dd-d: color-mix(in srgb, var(--green) 24%, transparent);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46%;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  -webkit-mask-image: var(--dd-mask);
  mask-image: var(--dd-mask);
  --dd-mask: linear-gradient(to bottom, #000 0%, #000 14%, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0.32) 45%, rgba(0, 0, 0, 0.14) 60%, rgba(0, 0, 0, 0.04) 80%, transparent 100%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dd {
    --dd-a: color-mix(in srgb, color-mix(in srgb, var(--green) 40%, var(--forest-2)) 90%, var(--t1));
    --dd-b: color-mix(in srgb, var(--t3) 68%, transparent);
    --dd-c: color-mix(in srgb, var(--lime) 60%, var(--forest-2));
    --dd-d: color-mix(in srgb, var(--dd-a) 62%, transparent);
    --dd-mask: linear-gradient(to bottom, #000 0%, #000 14%, rgba(0, 0, 0, 0.66) 30%, rgba(0, 0, 0, 0.38) 45%, rgba(0, 0, 0, 0.18) 60%, rgba(0, 0, 0, 0.05) 80%, transparent 100%);
  }
}
:root[data-theme="dark"] .dd {
  --dd-a: color-mix(in srgb, color-mix(in srgb, var(--green) 40%, var(--forest-2)) 90%, var(--t1));
  --dd-b: color-mix(in srgb, var(--t3) 68%, transparent);
  --dd-c: color-mix(in srgb, var(--lime) 60%, var(--forest-2));
  --dd-d: color-mix(in srgb, var(--dd-a) 62%, transparent);
  --dd-mask: linear-gradient(to bottom, #000 0%, #000 14%, rgba(0, 0, 0, 0.66) 30%, rgba(0, 0, 0, 0.38) 45%, rgba(0, 0, 0, 0.18) 60%, rgba(0, 0, 0, 0.05) 80%, transparent 100%);
}
.dd-svg {
  display: block;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dd-svg path {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.dd-a { stroke: var(--dd-a); }
.dd-b { stroke: var(--dd-b); }
.dd-c { stroke: var(--dd-c); }
.dd-d { stroke: var(--dd-d); }

/* The theme button, top right of Sign in and Sign up. The icon takes the
   quiet ink and the ring is the same hairline the fields wear, so it reads
   as part of the screen rather than something laid on it. */
.si-theme {
  position: absolute;
  top: max(calc(12 * var(--px)), env(safe-area-inset-top));
  right: calc(16 * var(--px));
  z-index: 3;
  display: grid;
  place-items: center;
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
  border-radius: 50%;
  color: var(--t2);
  background: color-mix(in srgb, var(--card) 72%, transparent);
  border: 1px solid var(--si-edge);
  transition: transform 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.si-theme:active {
  transform: scale(0.94);
}
.si-theme svg {
  width: calc(19 * var(--px));
  height: calc(19 * var(--px));
}

.si-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 132 = the old 89 plus 43: the logo block sits BELOW the doodles, as in
     the founder's mockups of 28 Oct 2026, so the pictures are mostly above it. */
  margin-top: calc(132 * var(--px));
}
.si-top.tight {
  margin-top: calc(18 * var(--px));
}
/* Add your number has the backdrop too, so its logo drops the same 43. */
.addnum .si-top.tight {
  margin-top: calc(61 * var(--px));
}
.fullpage.si .si-mk {
  width: calc(51 * var(--px));
  height: calc(51 * var(--px));
}
.si-word {
  margin-top: calc(8 * var(--px));
  font-size: var(--fs-head);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--si-word);
}
.fullpage.si .si-h1 {
  margin-top: calc(28 * var(--px));
  text-align: center;
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--t1);
}
.si-acc {
  color: var(--accent-ink);
}
.fullpage.si p.si-sub {
  margin-top: calc(9 * var(--px));
  text-align: center;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.4;
  color: var(--t2);
}
.fullpage.si p.si-link-note {
  margin-top: calc(10 * var(--px));
  text-align: center;
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.45;
  color: var(--t2);
}
.si-gap {
  height: calc(36 * var(--px));
}

.si-form {
  display: flex;
  flex-direction: column;
  margin-top: calc(35 * var(--px));
}
.si-label {
  display: block;
  margin: 0 0 calc(6 * var(--px));
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--t2);
}
.si-field + .si-label {
  margin-top: calc(18 * var(--px));
}
.si-field {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--px));
  min-height: calc(45.5 * var(--px));
  padding: 0 calc(14 * var(--px));
  border: 1px solid var(--si-edge);
  border-radius: calc(14 * var(--px));
  background: var(--si-bg, var(--card));
  transition: border-color 140ms;
}
.si-field:focus-within {
  border-color: var(--accent-ink);
}
.si-field input {
  flex: 1;
  min-width: 0;
  padding: calc(10 * var(--px)) 0;
  background: none;
  border: 0;
  outline: none;
  font-size: var(--fs-input);
  font-weight: 500;
  color: var(--t1);
}
.si-field input::placeholder {
  color: var(--t2);
  font-weight: 400;
}
.si-cc {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--px));
  color: var(--t2);
}
.si-cc svg:not(.si-flag) {
  width: calc(11 * var(--px));
  height: calc(11 * var(--px));
}
.si-flag {
  border-radius: calc(2 * var(--px));
}
.si-div {
  flex: none;
  width: 1px;
  height: calc(22 * var(--px));
  background: var(--si-edge);
}
.si-code {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--t1);
}
.si-eye {
  flex: none;
  width: calc(36 * var(--px));
  height: calc(36 * var(--px));
  margin-right: calc(-8 * var(--px));
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--t2);
}
.si-eye svg {
  width: calc(18 * var(--px));
  height: calc(18 * var(--px));
}
.si-eye[aria-pressed="true"] {
  color: var(--accent-ink);
}
.si-forgot {
  align-self: flex-end;
  margin-top: calc(6 * var(--px));
  padding: calc(6 * var(--px)) 0;
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--accent-ink);
}

/* THE ONE BIG BUTTON: solid, from the brand token that flips by theme. */
.si-primary,
.si-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(10 * var(--px));
  width: 100%;
  min-height: calc(44.5 * var(--px));
  border-radius: calc(14 * var(--px));
  font-size: var(--fs-body);
  font-weight: 600;
  transition: transform 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.si-primary {
  margin-top: calc(22 * var(--px));
  background: var(--accent-ink);
  color: var(--on-accent);
  box-shadow: var(--sh);
}
.si-secondary {
  margin-top: calc(12 * var(--px));
  background: var(--card);
  color: var(--t1);
  border: 1px solid var(--si-edge);
  font-size: var(--fs-meta);
}
.si-primary:active,
.si-secondary:active {
  transform: scale(0.985);
}
.si-primary:disabled,
.si-secondary:disabled {
  opacity: 0.5;
  pointer-events: none;
}
.si-primary svg {
  width: calc(16 * var(--px));
  height: calc(16 * var(--px));
}
.si-secondary svg {
  width: calc(18 * var(--px));
  height: calc(18 * var(--px));
}
.fullpage.si > .si-primary {
  margin-top: calc(32 * var(--px));
}
.fullpage.si .si-card .si-primary {
  margin-top: calc(18 * var(--px));
}

.pinerr.si-note {
  margin: calc(12 * var(--px)) 0 0;
  font-size: var(--fs-body);
}
.si-hint {
  display: block;
  margin-top: calc(10 * var(--px));
  text-align: center;
  font-size: var(--fs-meta);
  font-weight: 500;
  line-height: 1.45;
  color: var(--t2);
}
.si-diag {
  font-family: ui-monospace, monospace;
  font-size: var(--fs-label);
  opacity: 0.75;
}

/* "or" and the two social buttons. Plain tokens and --px only, so the same
   rules serve Sign in (white or near black screen) and Sign up (the older
   look on --bg). */
.si-or {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--px));
  margin: calc(16 * var(--px)) 0 calc(10 * var(--px));
  font-size: var(--fs-label);
  font-weight: 400;
  color: var(--t2);
}
.si-or::before,
.si-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--t3) 50%, transparent);
}
.si-soc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(10 * var(--px));
}
.si-soc.one {
  grid-template-columns: 1fr;
}
.si-cell {
  position: relative;
  height: calc(42 * var(--px));
  overflow: hidden;
  border-radius: calc(14 * var(--px));
}
.si-sbtn {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--t3) 50%, transparent);
  border-radius: inherit;
  background: var(--si-bg, var(--card));
  color: var(--t1);
  box-shadow: var(--sh);
}
.si-sbtn:active {
  transform: scale(0.985);
}
.si-sbtn:disabled {
  opacity: 0.5;
}
/* Google's own button, see-through, enlarged to cover ours: the tap lands on it. */
.si-gis {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200px;
  height: 40px;
  margin: -20px 0 0 -100px;
  transform: scale(var(--k, 1));
  opacity: 0.01;
  /* Google draws its own white button with the words "Continue with Google"
     inside this box, and at 1% a white button with dark words is still a
     faint ghost of those words on our button. Blacked out, it is one flat
     shape instead, which no one can read; the tap still lands on it. */
  filter: brightness(0);
  z-index: 2;
}

.fullpage.si p.si-foot {
  margin-top: calc(28 * var(--px));
  text-align: center;
  font-size: var(--fs-label);
  font-weight: 400;
  color: var(--t2);
}
.si-foot-link {
  display: block;
  width: 100%;
  padding: calc(12 * var(--px));
  text-align: center;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--accent-ink);
}
.si-foot-link.inline {
  display: inline;
  width: auto;
  padding: 0;
}

/* Add your WhatsApp number: Home's place until the number is proved. */
.si-card {
  margin-top: calc(28 * var(--px));
  padding: calc(18 * var(--px));
  border: 1px solid var(--si-edge);
  border-radius: calc(18 * var(--px));
  background: var(--card);
  box-shadow: var(--sh);
}
.si-card-hd {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
  font-size: var(--fs-row);
  font-weight: 600;
  color: var(--t1);
}
/* Meta's WhatsApp glyph beside the card title: their file in its own green,
   no tile behind it (Meta forbids combining it with other images), and no
   bigger than the title text around it. */
.si-card-wa {
  flex: none;
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
}
.fullpage.si p.si-card-tx {
  margin: calc(12 * var(--px)) 0 calc(16 * var(--px));
  font-size: var(--fs-label);
  font-weight: 400;
  line-height: 1.5;
  color: var(--t2);
}
.fullpage.si p.si-help {
  margin: calc(16 * var(--px)) 0 0;
  text-align: center;
  font-size: var(--fs-label);
  color: var(--t2);
}

.si-help a {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

/* Settings, Security: Add or Remove on the Google and Apple rows. A plain
   outlined pill, one tap target, the app's own tokens. */
.si-rowbtn {
  flex: none;
  min-height: 2.25rem;
  padding: 0 0.875rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--accent-ink);
  font-size: var(--fs-meta);
  font-weight: 700;
}
.si-rowdone {
  margin: 0.5rem 1rem 0.75rem;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--t2);
}

/* ── the phone field (ui/PhoneField.tsx) ─────────────────────────────
   Built on the Sign in field (.si-field): flag, code and chevron in one
   button, a divider, the number, and the WhatsApp mark at the right end.
   Selected rows use the White lift rule: a lifted row with a shadow and a
   bold label, never a pale green fill. In dark there are no shadows, so
   the lift is the next surface up (--fill). */
.pf {
  position: relative;
  display: block;
  --pf-lift: var(--card);
  --pf-lift-sh: var(--sh), inset 0 0 0 1px var(--si-edge);
}
.pf.open {
  z-index: 6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pf,
  :root:not([data-theme="light"]) .pf-sheet {
    --pf-lift: var(--fill);
    --pf-lift-sh: inset 0 0 0 1px var(--si-edge);
  }
}
:root[data-theme="dark"] .pf,
:root[data-theme="dark"] .pf-sheet {
  --pf-lift: var(--fill);
  --pf-lift-sh: inset 0 0 0 1px var(--si-edge);
}
.pf-sheet {
  --pf-lift: var(--card);
  --pf-lift-sh: var(--sh), inset 0 0 0 1px var(--si-edge);
}
.pf-field {
  gap: calc(10 * var(--px));
}
.pf-field.bad {
  border-color: var(--red);
}
.pf-cc {
  flex: none;
  display: flex;
  align-items: center;
  gap: calc(8 * var(--px));
  height: calc(40 * var(--px));
  margin-left: calc(-4 * var(--px));
  padding: 0 calc(4 * var(--px));
  border-radius: calc(10 * var(--px));
  color: var(--t2);
}
.pf-cc svg {
  width: calc(13 * var(--px));
  height: calc(13 * var(--px));
  transition: transform 160ms;
}
.pf.open .pf-cc svg {
  transform: rotate(180deg);
}
.pf-code {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--t1);
}
.pf-flag {
  flex: none;
  display: block;
  width: calc(26 * var(--px));
  height: calc(17.5 * var(--px));
  border-radius: calc(3.5 * var(--px));
  object-fit: cover;
}
.pf-flag-ph {
  display: grid;
  place-items: center;
  background: var(--fill);
  color: var(--t2);
  font-size: var(--fs-label);
  font-weight: 700;
}
.pf-wa {
  flex: none;
  display: grid;
  place-items: center;
}
.pf-wa img {
  width: calc(19 * var(--px));
  height: calc(19 * var(--px));
}
.pf-note {
  display: block;
  margin-top: calc(6 * var(--px));
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.4;
  color: var(--red);
}

/* The small card under the field. */
.pf-card {
  position: absolute;
  top: calc(100% + 4 * var(--px));
  left: 0;
  width: min(100%, calc(290 * var(--px)));
  padding: calc(6 * var(--px));
  border-radius: calc(14 * var(--px));
  /* The surface is the one glass (glass.css). */
}
.pf-row {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
  width: 100%;
  min-height: calc(44 * var(--px));
  padding: 0 calc(10 * var(--px));
  border-radius: calc(10 * var(--px));
  color: var(--t1);
  font-size: var(--fs-body);
  font-weight: 500;
  text-align: left;
}
.pf-row.on {
  background: var(--pf-lift);
  box-shadow: var(--pf-lift-sh);
  font-weight: 700;
}
.pf-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf-dial {
  flex: none;
  color: var(--t2);
  font-weight: 500;
}
.pf-tick {
  flex: none;
  width: calc(18 * var(--px));
  display: grid;
  place-items: center;
  color: var(--accent-ink);
}
.pf-tick svg {
  width: calc(16 * var(--px));
  height: calc(16 * var(--px));
}
.pf-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: calc(42 * var(--px));
  margin-top: calc(4 * var(--px));
  padding: 0 calc(10 * var(--px));
  border-top: 1px solid var(--line);
  border-radius: 0 0 calc(10 * var(--px)) calc(10 * var(--px));
  color: var(--accent-ink);
  font-size: var(--fs-label);
  font-weight: 600;
}
.pf-more svg {
  width: calc(7 * var(--px));
  height: calc(12 * var(--px));
}

/* The full sheet. */
.sheethead .sheetx {
  position: absolute;
  top: calc(2 * var(--px));
  right: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--t1);
}
.pf-search {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--px));
  min-height: calc(46 * var(--px));
  margin: 0 0 calc(10 * var(--px));
  padding: 0 calc(14 * var(--px));
  border: 1px solid transparent;
  border-radius: calc(14 * var(--px));
  background: var(--fill);
  color: var(--t2);
}
.pf-search:focus-within {
  border-color: var(--accent-ink);
}
.pf-search svg {
  width: calc(18 * var(--px));
  height: calc(18 * var(--px));
  flex: none;
}
.pf-search input {
  flex: 1;
  min-width: 0;
  padding: calc(10 * var(--px)) 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--t1);
  font-size: var(--fs-input);
  font-weight: 500;
}
.pf-search input::placeholder {
  color: var(--t2);
  font-weight: 400;
}
.pf-search button {
  display: grid;
  place-items: center;
  width: calc(28 * var(--px));
  height: calc(28 * var(--px));
  margin-right: calc(-6 * var(--px));
  color: var(--t2);
}
.pf-head {
  margin: calc(14 * var(--px)) calc(4 * var(--px)) calc(6 * var(--px));
}
.pf-sheet .pf-row {
  min-height: calc(48 * var(--px));
  font-size: var(--fs-body);
}

/* ── sign up, first screen: left aligned, to the mockup of 28 Oct 2026 ── */
.fullpage.si > .bk2 {
  margin-top: calc(14 * var(--px));
}
.fullpage.si.left .si-top {
  align-items: flex-start;
  /* The logo sits where Sign in's does (132 from the top), under the doodles: the back button above it takes 58 of that. */
  margin-top: calc(74 * var(--px));
}
.fullpage.si.left .si-h1 {
  text-align: left;
  margin-top: calc(24 * var(--px));
  font-size: var(--fs-display);
}
.fullpage.si.left p.si-sub {
  text-align: left;
  font-size: var(--fs-body);
  max-width: calc(290 * var(--px));
}
.fullpage.si.left .si-form {
  margin-top: calc(28 * var(--px));
}
.fullpage.si > .si-form:not(.dd):not(.si-theme) {
  /* Above the buttons and links after it, so the country card opens over them. */
  z-index: 3;
}
.si-label.caps {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--fs-label);
  font-weight: 600;
}
.pf + .si-label,
.si-field + .pf,
.si-field + .si-label {
  margin-top: calc(18 * var(--px));
}
.si-field + .pf {
  margin-top: calc(18 * var(--px));
}
.si-ic {
  flex: none;
  display: grid;
  place-items: center;
  color: var(--t2);
}
.si-ic svg {
  width: calc(19 * var(--px));
  height: calc(19 * var(--px));
}
.fullpage.si.left p.si-link-note {
  text-align: left;
}
.si-field.pf-bad {
  border-color: var(--red);
}
.si-form > .pf-note {
  margin-top: calc(6 * var(--px));
}
/* The wait before another code can be asked for, counting down (CodeSignIn.tsx): calm, not an error. */
.si-hint.si-wait {
  display: block;
  text-align: center;
  margin: 0.25rem 0 0.5rem;
  font-variant-numeric: tabular-nums;
}

/* ── typing on the doodle page: the field above the keypad ─────────────
   Founder, 12 Nov 2026, on nana: the doodles, the logo and the words took
   the top of "Enter your PIN" and the boxes sat under the keys. While a
   field is focused on a touch screen (.typing, ui/AuthPage.tsx useKeypadUp)
   only the back button, the title, the field, its button and its error stay;
   on an iPhone the page takes the visible box above the keys (--auth-top,
   --auth-h), as the brand header page does. Keypad down, nothing changes. */
.fullpage.si.typing {
  top: var(--auth-top, 0px);
  bottom: auto;
  height: var(--auth-h, 100%);
  padding-top: max(calc(8 * var(--px)), env(safe-area-inset-top));
}
.fullpage.si.typing > .dd,
.fullpage.si.typing > .si-theme,
.fullpage.si.typing > .aa.si-aa,
.fullpage.si.typing > .si-top,
.fullpage.si.typing p.si-sub:not(.si-keep),
.fullpage.si.typing p.si-link-note,
.fullpage.si.typing .sc-safe,
.fullpage.si.typing .pincard-lead,
.fullpage.si.typing > .si-or,
.fullpage.si.typing > .si-soc,
.fullpage.si.typing > .pinerr.si-note,
.fullpage.si.typing > .si-foot-link,
.fullpage.si.typing > .si-hint.si-where,
.fullpage.si.typing > .si-help,
.fullpage.si.typing .acct-hero,
.fullpage.si.typing p.si-card-tx {
  display: none;
}
.fullpage.si.typing > .bk2 {
  margin-top: 0;
}
.fullpage.si.typing .si-h1 {
  margin-top: calc(6 * var(--px));
  font-size: var(--fs-title);
}
.fullpage.si.typing > .bk2 + .si-h1,
.fullpage.si.typing > .bk2 + .pincard {
  margin-top: calc(4 * var(--px));
}
.fullpage.si.typing .pincard {
  margin-top: calc(10 * var(--px));
  padding-top: calc(14 * var(--px));
  padding-bottom: calc(10 * var(--px));
}
.fullpage.si.typing .pincard-h {
  margin-bottom: calc(10 * var(--px));
}
.fullpage.si.typing .sc-code,
.fullpage.si.typing .si-form,
.fullpage.si.typing .si-card {
  margin-top: calc(14 * var(--px));
}
.fullpage.si.typing .si-form .si-primary {
  margin-top: calc(14 * var(--px));
}
.fullpage.si.typing > .spacer {
  flex: 0 0 auto;
  min-height: 0;
}
/* The code, its Paste and its line under it, one block (CodeSignIn.tsx). */
.sc-keep {
  display: flex;
  flex-direction: column;
}
/* Brand header pages (ForgotPin, the claim): the same lines go while typing. */
.authpage.typing .pincard-lead,
.authpage.typing .sc-safe {
  display: none;
}

/* The header line under a title in dark: --t2 is 7.6:1 on the dark page. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --head-sub: var(--t2);
  }
}
:root[data-theme="dark"] {
  --head-sub: var(--t2);
}

/* The open asking /auth/me again (openRetry.ts): one quiet line above the tab bar, never the sign in screen. */
.open-retry {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  margin: 0;
  text-align: center;
  font-size: var(--fs-meta);
  color: var(--t2);
  pointer-events: none;
  z-index: 5;
}

/* REPLY TO ONE MESSAGE (server relynked 0580; ui/SwipeBubble.tsx). A bubble follows a swipe right, with a
   round reply mark behind its leading edge that fills in as the pull nears the point where letting go sets
   the reply. The quote inside a bubble is a button: a tap scrolls to the original and lights it briefly. */
/* The mark of a reply: forest on the light theme, lime on the dark, where each reads. */
:root {
  --reply-mark: var(--forest);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --reply-mark: var(--lime);
  }
}
:root[data-theme="dark"] {
  --reply-mark: var(--lime);
}
.b.swb {
  position: relative;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  --sw: 0;
}
.b.swb:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}
.b .swarrow {
  position: absolute;
  inset-inline-start: -2.75rem;
  top: 50%;
  width: 2rem;
  height: 2rem;
  margin-top: -1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bub-in);
  color: var(--t1);
  opacity: var(--sw);
  transform: scale(calc(0.6 + var(--sw) * 0.4));
  pointer-events: none;
}
.b.swb[data-hit] .swarrow {
  background: var(--lime);
  color: #0b0c0d;
}
.b.swb.lit {
  animation: replylit 1.5s ease-out;
}
@keyframes replylit {
  0%,
  35% {
    box-shadow: 0 0 0 3px var(--reply-mark);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .b.swb.lit {
    animation: none;
    box-shadow: 0 0 0 3px var(--reply-mark);
  }
}
button.quoted.tap {
  width: 100%;
  text-align: start;
  font: inherit;
  font-size: var(--fs-meta);
  color: inherit;
  border: 0;
  border-inline-start: 3px solid currentColor;
  cursor: pointer;
}
.quoted.gone {
  font-style: italic;
}
.replystrip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 1rem 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 0.75rem;
  border-inline-start: 3px solid var(--reply-mark);
  border-radius: 0.5rem;
  background: var(--bub-in);
  color: var(--t1);
}
.replystrip .qt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-size: var(--fs-meta);
  line-height: 1.35;
}
.replystrip .qt b {
  font-weight: 700;
}
.replystrip .qt span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--t2);
}
.replystrip .x,
.swipetip .x {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--t2);
}
.swipetip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 1rem 0.5rem;
  padding: 0.25rem 0.25rem 0.25rem 0.875rem;
  border-radius: 999px;
  background: var(--bub-in);
  color: var(--t1);
  font-size: var(--fs-meta);
  font-weight: 600;
}
.swipetip span {
  flex: 1;
}
.jumpnote {
  margin: 0 auto 0.5rem;
}
.msgmenu .glass-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.25rem;
  font: inherit;
  text-align: start;
}
/**
 * Relynked on tablets, laptops and desktops (remy-hq/research/adaptive-layout.md).
 *
 * EVERY RULE HERE IS SCOPED TO THE SHELL, a sheet presentation that only
 * exists from 600px up, or a pane container query. A phone renders no
 * `.shell`, no dialog or panel sheet and no query container, so not one
 * line below reaches it: the phone app stays exactly as it was.
 *
 * Units. The shell's own chrome (rail, sidebar, column caps, dialog widths)
 * is pinned through --fix, like the tab bar and the frame it replaces, so it
 * follows the owner's text size but not the --ui design scale. Pane
 * breakpoints are in rem, which a container query resolves against the
 * root, so they move with the text size too (section 8.2).
 *
 * Colour only on a figure, an icon or a dot. No side stripes anywhere: the
 * rail's hairline is a neutral divider, and a chosen row is a tint.
 */

/* ── the shell ─────────────────────────────────────────────────────── */

/* Compact: the wrapper is not there as far as layout is concerned. */
.shellc {
  display: contents;
}

.shell {
  position: relative;
  display: flex;
  height: 100dvh;
  background: var(--bg);
  color: var(--t1);
  overflow: hidden;
  /* The notch strip, as .frame does it on a phone (app.css). */
  border-top: env(safe-area-inset-top, 0px) solid var(--bg);
}

/* The main pane IS the frame, uncapped. Every screen, portal and absolute
   layer already anchors to `.frame`, so none of them needed to change.
   `container-type` makes it the pane container the screens query, and its
   layout containment makes it the containing block for fixed elements too,
   so `.stickybar` spans the pane instead of the window. */
.shell > .frame.shell-main {
  flex: 1;
  min-width: 0;
  max-width: none;
  height: auto;
  margin: 0;
  border-top: 0;
  border-right: env(safe-area-inset-right, 0px) solid var(--bg);
  container: pane / inline-size;
  /* The readable column for single pane screens: 720px, the design's width
     for detail forms (sections 6.7 and 8.3), so running text stays near 75
     characters a line. */
  --col: calc(45 * var(--fix));
  --gut: max(0px, calc((100% - var(--col)) / 2));
}

/* ── the rail and the sidebar ──────────────────────────────────────── */

.rail {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: calc(5.5 * var(--fix) + env(safe-area-inset-left, 0px));
  padding: calc(0.75 * var(--fix)) 0 max(calc(0.75 * var(--fix)), env(safe-area-inset-bottom, 0px));
  padding-left: env(safe-area-inset-left, 0px);
  background: var(--bg);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  view-transition-name: relynked-rail;
  z-index: 2;
}
.rail::-webkit-scrollbar {
  display: none;
}
.rail.side {
  width: calc(15.5 * var(--fix) + env(safe-area-inset-left, 0px));
  padding-inline: calc(0.75 * var(--fix));
  padding-left: calc(0.75 * var(--fix) + env(safe-area-inset-left, 0px));
}

.rail button {
  font-family: var(--font);
  color: var(--t2);
}
.rail button:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: -2px;
}

/* The Ask Remy dot, in the top slot Material keeps for the main action.
   Founder, 2026-10-10: it was too big. At 56px, with its ring 66px, it
   outweighed everything under it. Now the dot is 36px, a touch taller
   than the 32px tab pills so it still reads as the first thing in the
   rail, in a 48px button (a full touch target); open, its ring makes it
   46px across. */
.railask {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: calc(3 * var(--fix));
  height: calc(3 * var(--fix));
  border-radius: 50%;
  margin-bottom: calc(1 * var(--fix));
  flex: none;
}
.railask .dot {
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: box-shadow 160ms ease;
}
.railask .rdot {
  width: calc(2.25 * var(--fix));
  height: calc(2.25 * var(--fix));
}
.rail .railask:focus-visible {
  outline-offset: 2px;
  border-radius: 50%;
}
/* Open: a lime ring round the circle. */
.railask.on .dot {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--lime);
}
.rail.side .railask {
  align-self: stretch;
  width: auto;
  justify-content: flex-start;
  gap: calc(0.75 * var(--fix));
  padding: calc(0.5 * var(--fix)) calc(0.75 * var(--fix)) calc(0.5 * var(--fix)) calc(0.5 * var(--fix));
  height: calc(3.25 * var(--fix));
  border-radius: var(--r-pill);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh);
}
/* The same 36px dot as the rail, so the two layouts match. */
.rail.side .railask .rdot {
  width: calc(2.25 * var(--fix));
  height: calc(2.25 * var(--fix));
}
.rail.side .railask .lb {
  font-size: var(--fs-row);
  font-weight: 600;
  color: var(--t1);
}
.rail.side .railask.on {
  border-color: var(--lime);
}
.rail.side .railask.on .dot {
  box-shadow: none;
}
.rail.side .railask:focus-visible {
  border-radius: var(--r-pill);
}

.railtabs {
  display: flex;
  flex-direction: column;
  gap: calc(0.75 * var(--fix));
}
.rail.side .railtabs {
  gap: calc(0.25 * var(--fix));
}

/* Rail: icon in a pill, label under it. */
.railtab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(0.25 * var(--fix));
  width: 100%;
  min-height: calc(3.5 * var(--fix));
  padding: calc(0.25 * var(--fix)) 0;
  text-align: center;
}
.railtab .pill {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(3.5 * var(--fix));
  height: calc(2 * var(--fix));
  border-radius: var(--r-pill);
  transition: background-color 140ms ease;
}
.railtab svg {
  width: calc(1.375 * var(--fix));
  height: calc(1.375 * var(--fix));
}
.railtab .lb {
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.1;
}
.railtab.on {
  color: var(--accent-ink);
}
.railtab.on .pill {
  background: var(--lime);
  color: var(--forest);
}
.rail:not(.side) .railtab:focus-visible {
  outline: none;
}
.rail:not(.side) .railtab:focus-visible .pill {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}
/* The tab bar's count, in the same place against the icon. */
.railtab .bg {
  position: absolute;
  top: calc(-0.25 * var(--fix));
  right: calc(0.375 * var(--fix));
  min-width: calc(1.0625 * var(--fix));
  height: calc(1.0625 * var(--fix));
  border-radius: calc(0.53125 * var(--fix));
  background: var(--danger-fill);
  color: #fff;
  font-size: var(--fs-label);
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 calc(0.28125 * var(--fix));
  border: 2px solid var(--bg);
}

/* Sidebar: icon and label on one row; the whole row takes the pill. */
.rail.side .railtab {
  flex-direction: row;
  justify-content: flex-start;
  gap: calc(0.75 * var(--fix));
  min-height: calc(3 * var(--fix));
  padding: 0 calc(0.875 * var(--fix)) 0 calc(0.5 * var(--fix));
  border-radius: var(--r-pill);
  text-align: left;
}
.rail.side .railtab .pill {
  width: calc(2 * var(--fix));
  background: none;
}
.rail.side .railtab .lb {
  font-size: var(--fs-row);
  flex: 1;
  min-width: 0;
}
.rail.side .railtab.on {
  background: var(--lime);
  color: var(--forest);
}
.rail.side .railtab:focus-visible {
  border-radius: var(--r-pill);
}
.rail .n {
  margin-left: auto;
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--red);
}
.rail.side .railtab.on .n {
  color: var(--forest);
}

/* The business's services under Services (extra large). Same rows the
   Services screen draws, one click from anywhere. */
.railsub {
  list-style: none;
  margin: calc(0.25 * var(--fix)) 0 calc(0.375 * var(--fix));
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.railsub button {
  display: flex;
  align-items: center;
  gap: calc(0.625 * var(--fix));
  width: 100%;
  min-height: calc(2.75 * var(--fix));
  padding: 0 calc(0.875 * var(--fix)) 0 calc(1.375 * var(--fix));
  border-radius: var(--r-md);
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--t1);
}
.railsub svg {
  flex: none;
  width: calc(1.125 * var(--fix));
  height: calc(1.125 * var(--fix));
  color: var(--t2);
}
.railsub .lb {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* White lift (founder, 2026-10-10: white lift replaces the pale green). */
.railsub button.on {
  background: var(--sel);
  box-shadow: var(--sel-sh);
  font-weight: 700;
}
.railsub button.on svg {
  color: var(--accent-ink);
}
.railsub button:focus-visible {
  border-radius: var(--r-md);
}

/* Services folds away (founder, 2026-10-09). The list slides open and shut
   on its own height (a grid row from 0fr to 1fr, so no height is guessed),
   and the small chevron turns with it. */
.rail .fold {
  flex: none;
  display: grid;
  place-items: center;
  width: calc(1.25 * var(--fix));
  height: calc(1.25 * var(--fix));
  margin-right: calc(-0.25 * var(--fix));
  color: var(--t2);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rail .fold svg {
  width: calc(1 * var(--fix));
  height: calc(1 * var(--fix));
}
.rail .fold.open {
  transform: rotate(180deg);
}
.rail.side .railtab.on .fold {
  color: var(--forest);
}
.railfold {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 180ms ease;
}
.railfold.open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.railfold-in {
  min-height: 0;
  overflow: hidden;
}
/* A row's keyboard ring, inside the clip that lets the list slide. */
.railfold .railsub button:focus-visible {
  outline-offset: -2px;
}
@media (prefers-reduced-motion: reduce) {
  .rail .fold,
  .railfold {
    transition: none;
  }
}

/* Pin open, or collapse, at the foot. */
.railpin {
  margin-top: auto;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(0.5 * var(--fix));
  width: calc(3 * var(--fix));
  min-height: calc(3 * var(--fix));
  border-radius: var(--r-pill);
  flex: none;
}
.railpin svg {
  width: calc(1.125 * var(--fix));
  height: calc(1.125 * var(--fix));
}
.rail.side .railpin {
  align-self: stretch;
  width: auto;
  justify-content: flex-start;
  padding: 0 calc(0.875 * var(--fix)) 0 calc(0.875 * var(--fix));
  font-size: var(--fs-body);
  font-weight: 600;
}
.rail .railpin:focus-visible {
  border-radius: var(--r-pill);
}

@media (hover: hover) and (pointer: fine) {
  .railtab:not(.on):hover .pill,
  .rail.side .railtab:not(.on):hover,
  .railsub button:not(.on):hover,
  .railpin:hover {
    background: var(--fill);
  }
  .rail.side .railtab:not(.on):hover .pill {
    background: none;
  }
}

/* ── single pane screens: a readable column ────────────────────────── */

/* Padding, not a narrower box, so the wheel scrolls anywhere over the
   pane and the content sits centred in it. Each screen's own margins are
   untouched. */
.shell .scroll {
  padding-left: var(--gut);
  padding-right: var(--gut);
  /* No floating bar to clear. */
  padding-bottom: calc(2.5 * var(--fix) + env(safe-area-inset-bottom, 0px));
}
.shell .fullpage {
  padding-left: calc(var(--gut) + 1.125rem);
  padding-right: calc(var(--gut) + 1.125rem);
}

/* A conversation (Thread) and Ask Remy: the head, the messages and the
   composer line up on the same column; the composer's own surface still
   spans the pane. */
.shell .thnav {
  padding-left: calc(var(--gut) + 0.875rem);
  padding-right: calc(var(--gut) + 0.875rem);
}
.shell .asknav {
  padding-left: calc(var(--gut) + 1.125rem);
  padding-right: calc(var(--gut) + 1.125rem);
}
.shell .thd .msgs {
  padding-left: calc(var(--gut) + 1rem);
  padding-right: calc(var(--gut) + 1rem);
}
.shell .thd .comp {
  padding-left: calc(var(--gut) + 0.875rem);
  padding-right: calc(var(--gut) + 0.875rem);
}
/* The handover line under the head, and the composer's own notices. */
.shell .thd > .banner {
  margin-left: calc(var(--gut) + 1rem);
  margin-right: calc(var(--gut) + 1rem);
}
.shell .thd .qrow,
.shell .thd .achips {
  padding-left: calc(var(--gut) + 1.125rem);
  padding-right: calc(var(--gut) + 1.125rem);
}
.shell .thd > .pad {
  padding-left: calc(var(--gut) + 1.125rem);
  padding-right: calc(var(--gut) + 1.125rem);
}
/* Bubbles stop near 36rem: a line of 80% of a wide pane is unreadable. */
.shell .b {
  max-width: min(80%, calc(36 * var(--fix)));
}

/* The finishing bar: fixed, so it anchors to the pane (see above), and
   lined up on the column. */
.shell .stickybar {
  max-width: none;
  padding-left: calc(var(--gut) + 1.125rem);
  padding-right: calc(var(--gut) + 1.125rem);
}

/* The plus button and its options: bottom right of the column, with no
   tab bar under them. */
.shell .fab {
  right: calc(var(--gut) + 0.875 * var(--fix));
  bottom: calc(1.5 * var(--fix) + env(safe-area-inset-bottom, 0px));
}
.shell .fabstack {
  right: calc(var(--gut) + 0.875 * var(--fix));
  bottom: calc(5.5 * var(--fix) + env(safe-area-inset-bottom, 0px));
}

/* Relynked Staff's toast, with no bar to sit above. */
.shell .staff-toast {
  left: calc(var(--gut) + 0.875rem);
  right: calc(var(--gut) + 0.875rem);
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

/* ── Home (the signature Home) ─────────────────────────────────────── */

/* On a phone the column wrappers are not boxes at all. */
.sh-cols,
.sh-main,
.sh-side {
  display: contents;
}

/* Medium: one column, up to 640px, centred. */
/* --gut is declared again beside --col: a custom property resolves the
   var() inside it where it is declared, so it would keep the pane's column. */
.shell .scroll.sighome {
  --col: calc(40 * var(--fix));
  --gut: max(0px, calc((100% - var(--col)) / 2));
}

/* Two columns once the pane is wide enough for both to stay readable
   (about 832px at the default text size), capped at 1,240px. */
@container pane (min-width: 63rem) {
  .shell .scroll.sighome {
    --col: calc(77.5 * var(--fix));
    --gut: max(0px, calc((100% - var(--col)) / 2));
  }
  .sh-cols {
    display: grid;
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    align-items: start;
  }
  .sh-main,
  .sh-side {
    display: block;
    min-width: 0;
  }
  /* Needs your attention starts level with the money card. */
  .sh-side > :first-child {
    margin-top: 0;
    padding-top: 0;
  }
}

/* ── sheets: a wider sheet, a dialog, a side panel (section 8.4) ───── */

/* Medium: still from the bottom edge, 600px wide and centred. */
.shell .sheetwrap:not(.dialog):not(.panel) {
  align-items: center;
}
.shell .sheetwrap:not(.dialog):not(.panel) > .sheet {
  width: min(100%, calc(37.5 * var(--fix)));
}

/* A short sheet from 840px up: a centred dialog. */
.sheetwrap.dialog {
  justify-content: center;
  align-items: center;
  padding: calc(2 * var(--fix));
}
.sheetwrap.dialog > .sheet {
  width: min(100%, calc(35 * var(--fix)));
  max-height: calc(100% - 2 * var(--fix));
  border-radius: var(--r-2xl);
  padding-bottom: 1.5rem;
  transform: translateY(0.75rem) scale(0.97);
  opacity: 0;
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 200ms ease;
}
.sheetwrap.dialog.in > .sheet {
  transform: none;
  opacity: 1;
}
.sheetwrap.dialog.leaving > .sheet {
  transform: translateY(0.5rem) scale(0.98);
  opacity: 0;
  transition-duration: 200ms;
}

/* A tall sheet from 840px up: a panel down the right hand side, so what
   it is about stays readable beside it. */
.sheetwrap.panel {
  flex-direction: row;
  justify-content: flex-end;
  align-items: stretch;
}
.sheetwrap.panel > .sheet,
.sheetwrap.panel > .sheet.tall {
  width: min(100%, calc(26.25 * var(--fix)));
  height: 100%;
  max-height: none;
  border-radius: var(--r-2xl) 0 0 var(--r-2xl);
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  padding-right: calc(1.125rem + env(safe-area-inset-right, 0px));
  transform: translateX(100%);
}
.sheetwrap.panel.in > .sheet {
  transform: none;
}
.sheetwrap.panel.leaving > .sheet {
  transform: translateX(100%);
  transition-duration: 280ms;
}

/* No grabber on either: a title and a close button instead. */
.sheetwrap.dialog .sheethead,
.sheetwrap.panel .sheethead {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 1.125rem;
  cursor: default;
}
.sheetwrap.dialog .sheettitle,
.sheetwrap.panel .sheettitle {
  flex: 1;
  min-width: 0;
}
.sheetx {
  flex: none;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: calc(2.75 * var(--fix));
  height: calc(2.75 * var(--fix));
  margin-top: calc(-0.375 * var(--fix));
  margin-right: calc(-0.375 * var(--fix));
  border-radius: 50%;
  background: var(--fill);
  color: var(--t2);
}
.sheetx svg {
  width: calc(1.125 * var(--fix));
  height: calc(1.125 * var(--fix));
}
.sheetx:focus-visible {
  border-radius: 50%;
}
@media (hover: hover) and (pointer: fine) {
  .sheetx:hover {
    color: var(--t1);
  }
}

/* ── list and detail side by side (phase 2, shell/split.tsx) ───────── */

/* Two panes in the main area. Each is its own query container, scroller
   and containing block, so a screen drawn in either (and its sticky bar)
   sizes itself to the pane, and the list keeps its place while the detail
   changes. The divider is a neutral hairline, never a coloured edge. */
.panes {
  position: absolute;
  inset: 0;
  display: flex;
}
.panes > .pane {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  container: pane / inline-size;
}
.panes > .pane-list {
  flex: none;
  /* About 360px, never under 300: the list is for finding, the detail for reading. */
  width: clamp(calc(18.75 * var(--fix)), 36%, calc(22.5 * var(--fix)));
  border-right: 1px solid var(--line);
  /* Still while only the detail pane animates. */
  view-transition-name: relynked-list;
}
/* Orders carries its one tap buttons on the row, so its list is wider. */
.panes-orders > .pane-list {
  width: clamp(calc(20 * var(--fix)), 40%, calc(26.25 * var(--fix)));
}
.panes > .pane-detail {
  flex: 1;
}

/* THE CHOSEN ROW LIFTS (founder, 2026-10-10: white lift replaces the pale
   green): the lifted surface and its soft shadow, drawn over the rows round
   it, rounded so it reads as a tile picked up off the card. Never a tint,
   never a stripe. */
.panes .li.on {
  position: relative;
  z-index: 1;
  background: var(--sel);
  box-shadow: var(--sel-sh);
  border-radius: var(--r-md);
}
.panes .li.on .tt {
  font-weight: 700;
}
/* The business and profile cards in Settings are grey: the chosen one lifts. */
.panes .bizcard[aria-current="true"],
.panes .bizcard:has(> .go[aria-current="true"]) {
  background: var(--sel);
  box-shadow: var(--sel-sh);
}
@media (hover: hover) and (pointer: fine) {
  .panes .pane-list button.li:not(.on):hover {
    background: var(--fill);
  }
}

/* Nothing chosen yet: one quiet line where the item will open. No auto
   select, so opening Chats never marks a customer as seen by accident. */
.pane-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  padding: 2rem;
  text-align: center;
}
.pane-empty .ic {
  display: grid;
  place-items: center;
  width: calc(3.5 * var(--fix));
  height: calc(3.5 * var(--fix));
  border-radius: 50%;
  background: var(--fill);
  color: var(--t2);
}
.pane-empty .ic svg {
  width: calc(1.5 * var(--fix));
  height: calc(1.5 * var(--fix));
}
.pane-empty p {
  max-width: 22rem;
  font-size: var(--fs-meta);
  color: var(--t2);
  line-height: 1.45;
}

/* ── Ask Remy docked on the right (phase 3) ────────────────────────── */

/* From 1200px, for owners and managers, open until they close it. The same
   Ask Remy screen, in a 400px column; nothing in it knows the difference
   except its head, which closes instead of going back. */
.shell > .askpanel {
  flex: none;
  position: relative;
  /* 420 until the owner drags it (shell/AppShell.tsx keeps --askw between
     360 and 60% of the window, in the layout's own unit). */
  width: calc(var(--askw, 420) * var(--fix) / 16);
  border-left: 1px solid var(--line);
  border-right: env(safe-area-inset-right, 0px) solid var(--bg);
  background: var(--bg);
  overflow: hidden;
  container: askpane / inline-size;
  view-transition-name: relynked-askpanel;
  /* No reading column to centre on: the panel is the column. */
  --gut: 0px;
}
.shell.asking > .frame.shell-main {
  border-right: 0;
}
/* The close and full view buttons sit with the three dots, the same size
   and fill. */
.askpanel .asknav .askclose,
.askpanel .asknav .askwiden + .ib {
  margin-left: -0.25rem;
}

/* The left edge is a drag handle: a wide, invisible strip over the hairline,
   with a neutral grip that shows on hover, on focus and while dragging. */
.askgrip {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(0.875 * var(--fix));
  z-index: 4;
  display: grid;
  place-items: center;
  cursor: col-resize;
  touch-action: none;
  outline: none;
}
.askgrip .bar {
  width: calc(0.3125 * var(--fix));
  height: calc(2.75 * var(--fix));
  border-radius: var(--r-pill);
  background: var(--t3);
  opacity: 0;
  transition: opacity 140ms ease;
}
.askgrip:focus-visible .bar {
  opacity: 1;
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}
.shell.resizing .askgrip .bar {
  opacity: 1;
  background: var(--t2);
}
@media (hover: hover) and (pointer: fine) {
  .askgrip:hover .bar {
    opacity: 1;
  }
}
/* A finger has no hover: the grip stays faintly in view on a touch screen. */
@media (hover: none) {
  .askgrip .bar {
    opacity: 0.55;
  }
}
/* While dragging, nothing selects and the whole window shows the resize
   cursor, even where the pointer outruns the edge. */
.shell.resizing {
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
}

/* The focused full view: the panel is laid over the main area, from the
   navigation's edge to the window's, and the screen under it is hidden at
   the width it had, so nothing there redraws or loses its place. The
   conversation keeps the same reading column as every other single pane
   screen, so a line never runs the width of a desktop. */
.shell.askfull > .frame.shell-main {
  visibility: hidden;
  margin-right: calc(var(--askw, 420) * var(--fix) / 16);
}
.shell.askfull > .askpanel {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: calc(5.5 * var(--fix) + env(safe-area-inset-left, 0px));
  width: auto;
  border-left: 0;
  z-index: 3;
  --col: calc(45 * var(--fix));
  --gut: max(0px, calc((100% - var(--col)) / 2));
}
.shell.askfull.sided > .askpanel {
  left: calc(15.5 * var(--fix) + env(safe-area-inset-left, 0px));
}
/* Home's Ask bar while the panel is open: the panel's composer is that bar,
   moved to the right, so it is not drawn twice (design 5). */
.shell.asking .sighome .askbar {
  display: none;
}

/* ── the screens before the app: a centred card (phase 3, shell/Entry.tsx) ── */

/* A phone: not there at all. */
.entry {
  display: contents;
}
/* A tablet or a computer: the phone screen they were designed for, centred
   on the brand's forest ground, instead of a strip down the window. */
.entry.wide {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: calc(2 * var(--fix));
  overflow: auto;
  background:
    radial-gradient(90% 70% at 15% 0%, rgba(220, 239, 78, 0.1), transparent 60%),
    radial-gradient(120% 90% at 100% 100%, var(--forest-2), transparent 70%),
    #071a14;
}
.entry.wide > .frame {
  width: 100%;
  max-width: calc(27.5 * var(--fix));
  height: min(calc(100dvh - 4 * var(--fix)), calc(56 * var(--fix)));
  border-top: 0;
  border-radius: var(--r-2xl);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.06);
  /* A finishing bar (position: fixed) spans the card, not the window. */
  contain: layout;
}
/* Relynked Staff's lock, which is drawn alone (web-5), as the same card. */
html[data-size]:not([data-size="compact"]) #root:has(> .frame) {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: calc(2 * var(--fix));
  background: #071a14;
}
html[data-size]:not([data-size="compact"]) #root > .frame {
  height: min(calc(100dvh - 4 * var(--fix)), calc(56 * var(--fix)));
  border-top: 0;
  border-radius: var(--r-2xl);
  contain: layout;
}
/* The splash fills the window, as on a phone. */
.entry.wide.full {
  padding: 0;
}
.entry.wide.full > .frame {
  max-width: none;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
}

/* ── the on-screen keyboard on a tablet (shell/keyboard.ts) ────────── */

/* iPad Safari, which does not resize the layout for the keyboard: the shell
   and the sign in card take the height that is still visible. */
html[data-kb] .shell {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--kb-top, 0px);
  height: var(--kb-h, 100dvh);
}
html[data-kb] .entry.wide {
  top: var(--kb-top, 0px);
  bottom: auto;
  height: var(--kb-h, 100dvh);
}
/* A row's keyboard ring, inside its card's rounded clip. */
.panes .lc .li:focus-visible {
  outline-offset: -2px;
}

/* The free trial recap on a wide pane: the figure and what to do on the
   left, the supporting figures on the right, three to a row. */
@container pane (min-width: 63rem) {
  .trc {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "head lines" "foot lines";
    column-gap: 1.75rem;
    padding: 1.5rem 1.5rem 1.125rem;
    align-items: start;
  }
  .trc-head { grid-area: head; }
  .trc-lines { grid-area: lines; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trc-foot { grid-area: foot; }
  .trc-big { font-size: var(--fs-display); }
}
/**
 * SIMPLE MODE SIZES (simplicity review 1, simp-2).
 *
 * The design scale --ui (tokens.css) shrinks every rem to 82.5%, which put
 * the root near 13px, Quick action labels near 9.5px, the bell at 33px and
 * View report about 24px tall. In Simple mode the shrink goes: --ui is 1,
 * so type, icons and buttons are drawn at the size they were designed at,
 * and the person's own text size (--ts, and the phone's setting under it)
 * still multiplies on top. (Now 85%: full size and then 92% read too big on a real phone.) The pinned regions read --fix, which divides
 * --ui back out, so the money card and the tab bar do not move.
 *
 * TAP TARGETS: every button, link and field is at least 48px tall, and
 * icon buttons 48px wide, at the default size. Checked by
 * scripts/simple-check.mjs and measured on screen by the shots harness.
 *
 * LABELS: nothing is smaller than 12px whatever the scale.
 *
 * Only under html[data-simple] (simpleMode.ts), so the normal app is
 * unchanged.
 */

html[data-simple] {
  /* 85% (founder, 12 October 2026, after trying simple.relynked.com twice:
     full size, then 92%, both read too big on a real phone). The 48px
     targets and the 12px label floor below hold whatever the scale. */
  --ui: 0.85;
  /* The type scale (tokens.css) is in device px and does not follow --ui; its one step under 12px is lifted. */
  --t-cap: max(var(--fs-label), 12px);
  --t-xs: max(var(--fs-label), 12px);
  --fs-micro: max(var(--fs-label), 12px);
  --tap: 48px;
}

/* ── the 48px floor ───────────────────────────────────────────────── */

html[data-simple] :is(button, a[href], [role="button"], select, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]), textarea):not(.sx-free) {
  min-height: var(--tap);
}

/* A hint is a labelled pill, never a bare round dot (Hint.tsx). */
html[data-simple] .hintbtn.lab {
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: 0 1rem 0 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--t2);
}
html[data-simple] .hintbtn.lab.on {
  color: #fff;
}

/* Icon buttons: square, so the width is a target too. */
html[data-simple] :is(.tbar .ib, .tbar .pf, .sales .eyebtn, .hintbtn, .hdbtn, .bk, .bk2, .crow .plus, .ib, .sheetx, .mic, .send) {
  min-width: var(--tap);
  min-height: var(--tap);
}
html[data-simple] .tbar .ib,
html[data-simple] .tbar .pf {
  width: var(--tap);
  height: var(--tap);
}

/* SWITCHES (founder, 12 Oct 2026): the track keeps its pill (about 44 x 26 at this
   scale) and its round knob. The floor above stretched the track itself to 48px tall,
   a rounded square with a small knob; Toggle (ui/Bits.tsx) carries sx-free, and the
   48px target is a clear hit area around the track instead. Checked by check:simple I
   and measured on screen by the shots harness. */
html[data-simple] .tog2 {
  min-height: 0;
  min-width: 0;
}
html[data-simple] .tog2::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, var(--tap));
  height: var(--tap);
  transform: translate(-50%, -50%);
  border-radius: var(--tap);
}

/* ROWS WITH MORE THAN ONE ACTION (founder, 12 Oct 2026; Shop page: Layout, Details,
   Copy link and the switch sat on top of the title and the address). The actions go
   on their own line under the text, the title and the words above get the full
   width, and nothing overlaps. One action (a switch, Copy link) stays on the right.
   Checked at 360px by the shots harness (rowOverlap). */
html[data-simple] .li:has(> :is(.shoprow, .rowacts) > :nth-child(2)) {
  flex-wrap: wrap;
  row-gap: 0.625rem;
}
html[data-simple] .li:has(> :is(.shoprow, .rowacts) > :nth-child(2)) > .tx {
  flex: 1 1 0;
  min-width: 0;
}
html[data-simple] .li > :is(.shoprow, .rowacts):has(> :nth-child(2)) {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
html[data-simple] .li:not(.noic) > :is(.shoprow, .rowacts):has(> :nth-child(2)) {
  padding-left: calc(2.625rem + 0.8125rem);
}
html[data-simple] .li > :is(.shoprow, .rowacts):has(> :nth-child(2)) > .tog2 {
  margin-left: auto;
}
/* An address under a row's title: one line, cut with an ellipsis. */
html[data-simple] .li .ds .oneline {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Wrappers that only hold a row and must not grow a second time. */
html[data-simple] :is(.li, .qa, .askbar, .setupline, .substat) :is(button, a[href]) {
  min-height: 0;
}
html[data-simple] .li > :is(.ra, .act, button.act) {
  min-height: var(--tap);
  min-width: var(--tap);
}

/* Rows: one thumb, one row. */
html[data-simple] .li {
  min-height: 3.75rem;
}

/* Chips and pills: still pills, just taller. */
html[data-simple] .chip {
  min-height: var(--tap);
  padding-inline: 1rem;
}

/* ── Simple Home ──────────────────────────────────────────────────── */

/* The money card follows the Simple scale too (it is pinned to full size in the normal app):
   the figure, its caption and the card shrink together with everything else. */
html[data-simple] .sales.sx-tap,
html[data-simple] .sighome .sales {
  --fix: 1rem;
}

/* The money card is one target: the whole card opens the report. */
html[data-simple] .sales.sx-tap {
  cursor: pointer;
}
html[data-simple] .sales.sx-tap:active {
  transform: scale(0.99);
}
html[data-simple] .sales .eyebtn {
  width: var(--tap);
  height: var(--tap);
}

/* Four tiles across at most, each at least 48px tall with a 12px label. */
html[data-simple] .qgrid.sx-tiles {
  grid-template-columns: repeat(var(--sx-n, 4), minmax(0, 1fr));
}
html[data-simple] .qgrid.sx-tiles .qa {
  min-height: 5.5rem;
}
html[data-simple] .qgrid.sx-tiles .qa .lb {
  font-size: var(--fs-label);
  -webkit-line-clamp: 2;
}

/* What needs you: straight under the money, before the tiles. */
.sx-needs {
  margin: 0.25rem 0 0.5rem;
}
.sx-needs .sx-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: calc(100% - 2.25rem);
  margin: 0 1.125rem 0.75rem;
  min-height: var(--tap);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--sh);
  font-weight: 600;
  font-size: var(--fs-body);
  color: var(--accent-ink);
}
.sx-needs .sx-all svg {
  width: 1rem;
  height: 1rem;
}

/* The Undo bar after Done on a handover (simp-17): the walk-in sale's 4 seconds. */
.sx-undo {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: calc(5.5 * var(--fix) + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-radius: var(--r-lg);
  background: var(--t1);
  color: var(--bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: var(--fs-body);
  font-weight: 500;
}
.sx-undo p {
  flex: 1;
  margin: 0;
  min-width: 0;
}
.sx-undo button {
  min-height: var(--tap);
  min-width: 5rem;
  padding: 0 1rem;
  border-radius: var(--r-md);
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 700;
}

/* Settings: Show everything, and the way back. */
.sx-mode-note {
  margin: 0 1.125rem 0.75rem;
  color: var(--t2);
  font-size: var(--fs-meta);
}

/* ── the floating Remy dot (Remy Everywhere, phase 1) ─────────────── */

.rfloat {
  position: absolute;
  z-index: 45;
  width: 3.5rem;
  height: 3.5rem;
  min-width: var(--tap);
  min-height: var(--tap);
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 6px 18px rgba(11, 61, 46, 0.32), 0 1px 3px rgba(0, 0, 0, 0.18);
  animation: rfloat-bob 4s ease-in-out infinite;
  transition: left 0.22s ease, top 0.22s ease, opacity 0.18s ease;
}
.rfloat .rdot,
.rfloat .rdotg {
  width: 100%;
  height: 100%;
}
.rfloat.drag {
  animation: none;
  transition: none;
  transform: scale(1.06);
}
.rfloat.gone {
  opacity: 0;
  pointer-events: none;
}
@keyframes rfloat-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .rfloat {
    animation: none;
  }
}
[data-rdot-rest] .rfloat {
  animation-play-state: paused;
}

/* The first visit's one line from the dot. */
.rfloat-hint {
  position: absolute;
  z-index: 46;
  max-width: 15rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--r-lg);
  background: var(--card);
  color: var(--t1);
  box-shadow: var(--sel-sh);
  font-size: var(--fs-body);
  line-height: 1.35;
}
.rfloat-hint p {
  margin: 0 0 0.5rem;
}
.rfloat-hint button {
  min-height: var(--tap);
  padding: 0 1.125rem;
  border-radius: var(--r-md);
  background: var(--forest);
  color: #fff;
  font-weight: 700;
}

/* ── Ask over the screen ──────────────────────────────────────────── */

.askover .ao-about {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: var(--r-lg);
  background: var(--sel);
  box-shadow: var(--sel-sh);
}
.askover .ao-about .ao-pic {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-md);
  background: var(--fill);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
}
.askover .ao-about .ao-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.askover .ao-about .ao-tx {
  flex: 1;
  min-width: 0;
}
.askover .ao-about .ao-tx b {
  display: block;
  font-size: var(--fs-body);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.askover .ao-about .ao-tx span {
  font-size: var(--fs-meta);
  color: var(--t2);
}
.askover .ao-about .ao-x {
  width: var(--tap);
  height: var(--tap);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--t2);
  flex: none;
}
.askover .ao-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}
.askover .ao-chips button {
  min-height: var(--tap);
  padding: 0 0.875rem;
  border-radius: var(--r-pill);
  background: var(--fill);
  color: var(--t1);
  font-size: var(--fs-body);
  font-weight: 600;
}
/* The box is Ask Remy's own composer (AskComposer: the text box and the mic), set into the sheet. */
.askover .ao-box .comp {
  padding: 0.375rem;
  border: 0;
  border-radius: var(--r-xl);
  background: var(--fill);
}
.askover .ao-box .comp .fld {
  background: transparent;
}
.askover .ao-box .acnote {
  margin-bottom: 0.5rem;
}
.askover .ao-heard {
  margin: 0 0 0.75rem;
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--t2);
  font-style: italic;
}
.askover .ao-reply {
  margin: 0.75rem 0;
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--t1);
}
.askover .ao-wait {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0.75rem 0;
  color: var(--t2);
}
.askover .ao-wait .rdot,
.askover .ao-wait .rdotg {
  width: 1.5rem;
  height: 1.5rem;
}
.askover .ao-err {
  margin: 0.75rem 0;
  color: var(--red);
  font-size: var(--fs-body);
}
.askover .ao-full {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  min-height: var(--tap);
  color: var(--accent-ink);
  font-weight: 600;
}

/* ── quick price change (simp-12) ─────────────────────────────────── */

.sx-price {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0 0.25rem;
  border-radius: var(--r-md);
  font-weight: 700;
  color: var(--t1);
}
.sx-price:active {
  background: var(--fill);
}
.sx-price-edit {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.sx-price-edit input {
  width: 6.5rem;
  min-height: var(--tap);
  padding: 0 0.625rem;
  border-radius: var(--r-md);
  border: 0;
  background: var(--sel);
  box-shadow: var(--sel-sh);
  color: var(--t1);
  font: inherit;
  font-weight: 700;
  text-align: right;
}
.sx-price-edit button {
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0 0.75rem;
  border-radius: var(--r-md);
  background: var(--forest);
  color: #fff;
  font-weight: 700;
}

/* ── Remy's action cards (approve, book, count, sell, tools, pay, orders, pause) ── */

.pcard .ptitle .pact-ic {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  vertical-align: middle;
}
.pcard .ptitle .pact-ic svg {
  width: 1rem;
  height: 1rem;
}
.pcard .ptitle .pact-ic .rdot {
  width: 100%;
  height: 100%;
}
html[data-simple] .pcard .rbtns button {
  min-height: var(--tap);
}

/* Simple Home: the greeting on one line, so What needs you and the Ask bar come up the screen. */
html[data-simple] .greet.sx-greet {
  padding: 0.25rem 1.125rem 0.625rem;
}
html[data-simple] .greet.sx-greet .tx {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.375rem;
}
html[data-simple] .greet.sx-greet .hi {
  font-size: var(--fs-row);
}
html[data-simple] .greet.sx-greet .nm {
  font-size: var(--fs-row);
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
}
html[data-simple] .greet.sx-greet .trialtx {
  flex-basis: 100%;
}

/* Simple Home: today's money, not the week. The week's bars are one tap away on the report, and at the
   biggest text the pinned card has no room for them beside the figure. */
html[data-simple] .sales.sx-tap .wk {
  display: none;
}

/* The Ask bar's hint is a whole suggestion: two lines rather than cut short at the biggest text. */
html[data-simple] .askbar .hint {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3;
}

/* What needs you at the biggest text: the name keeps a sensible width and Done drops to its own line, at the right,
   instead of squeezing the name to one word a line. At ordinary sizes it stays on the row. */
html[data-simple] .sx-needs .li {
  flex-wrap: wrap;
  row-gap: 0.5rem;
}
html[data-simple] .sx-needs .li > .tx {
  flex: 1 1 8.5rem;
  min-width: 0;
}
html[data-simple] .sx-needs .li > .act {
  margin-left: auto;
}

/* A banner above the greeting (Connect your WhatsApp, set up with Remy, the trial line) gets a little air before "Good morning". */
html[data-simple] .sighome > :not(.tbar) + .greet.sx-greet {
  padding-top: 0.875rem;
}
/**
 * Instant loading (2026-10-07): the skeletons (ui/Skeleton.tsx, and the
 * first frame in next.html) and the "as of" line (ui/AsOf.tsx).
 *
 * A skeleton is the screen's own boxes with pale bars for the text, so these
 * rules only colour things; every size comes from the real classes in
 * app.css. The house "not yet": the shape, lower opacity, no shimmer, no
 * colour. Colour only on a dot, never a side edge.
 */

/* A bar on a text line: inline, so the line keeps the text's own height. */
.skl {
  display: inline-block;
  vertical-align: middle;
  height: 0.72em;
  max-width: 100%;
  border-radius: 0.36em;
  background: var(--fill);
}
/* A block that holds a real box's place (an avatar, an icon tile, the back circle). */
.skb {
  background: var(--fill) !important;
  color: transparent !important;
}
.skel-screen .lc,
.skel-screen .chip {
  opacity: 0.6;
}
.skel-screen .skrow .tt,
.skel-screen .skrow .ds {
  white-space: nowrap;
  overflow: hidden;
}
.skchip {
  min-width: 3.25rem;
}
.skel-screen .bigt .d1,
.skel-screen .pageh .d1 {
  color: var(--t1);
}
/* A chat while its messages come: bubbles on both sides, no words. */
.skthread {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.25rem 1.125rem;
}
.skbubble {
  height: 2.75rem;
  border-radius: var(--r-lg);
  background: var(--fill);
  opacity: 0.7;
}
.skbubble.me {
  align-self: flex-end;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── the "as of" line, while there is no network ─────────────────────── */
/* Floats above the tab bar (or the bottom edge on a pushed screen), so it
   never pushes the screen down: nothing under it moves when it comes or goes. */
.asof {
  position: absolute;
  left: calc(0.875 * var(--fix));
  right: calc(0.875 * var(--fix));
  bottom: calc(max(calc(1.625 * var(--fix)), env(safe-area-inset-bottom)) + 4.375 * var(--fix));
  z-index: 86;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--r-lg);
  background: var(--card);
  border: var(--hair) solid var(--line);
  box-shadow: var(--sh);
  font-size: var(--fs-meta);
  line-height: 1.4;
  color: var(--t1);
  pointer-events: none;
}
.asof.away {
  bottom: max(calc(1 * var(--fix)), env(safe-area-inset-bottom));
}
.asof .tx {
  flex: 1;
  min-width: 0;
}
.asof .dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--t3);
}

/* ── the first frame, before the app's script has run (next.html) ─────── */
/* Two shapes, chosen by the tiny script in next.html before the first paint:
   a signed-in phone sees Home's outline, anyone else the splash ground. React
   replaces both on its first render. */
.boot {
  display: none;
}
html[data-boot="home"] .boot.home,
html[data-boot="splash"] .boot.splash {
  display: block;
}
.boot.splash {
  position: fixed;
  inset: 0;
  background: #071a14;
}
.boot.home .tabs {
  pointer-events: none;
}
.boot.home .tabs span {
  display: block;
  flex: 1;
  margin: 0.25rem;
  border-radius: var(--r-pill);
}
.boot.home .tabs span:first-child {
  background: var(--lime);
  opacity: 0.55;
}
/*
 * EVERY PAGE'S HEAD (founder, 11 Nov 2026, marked on screenshots, modelled on WhatsApp's own Settings screen):
 * the title only, no line of explanation under it, and a thin line the full width of the screen under the head,
 * in light and in dark. One rule for every kind of head the app draws: a pushed page (.pageh, ui/Bits.tsx
 * PageHead), a tab's big title (.bigt: Chats, Services), the catalogue tab (.sa-cat-head), Settings
 * (.sa-set-title, .oa-title), and Ask Remy (.asknav).
 *
 * ":root" in front lifts these over the heads' own padding wherever their sheets load (one.css and
 * small-app.css arrive with lazy screens, after this one).
 */
:root {
  --head-line: #e1e4e4;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --head-line: #2a2e2f;
  }
}
:root[data-theme="dark"] {
  --head-line: #2a2e2f;
}

/*
 * ONE HEIGHT FOR EVERY HEAD (founder, 11 Nov 2026, marked "Height" on Chats and Services: "Make top height the same
 * across all pages.. find the mean height between all pages and keep the height constant... that add service button
 * should reduce if needed"). Measured at 390 wide, top of the page to the line: Chats 46, Services 73, Settings 63,
 * Ask Remy 54, a pushed page 54 (Sales report, Business profile, Getting paid, Connect), Approval PIN 61. The mean of
 * those nine pages is 57, so every head is exactly 57 (in the person's own pixels, so it still follows their text
 * size), the title centred in it, the line at its foot. A title too long for one line ends in "..." rather than
 * making its head taller. Every button in a head fits inside 57 as it is (the catalogue's + 44, back 36 to 44, Ask
 * Remy's buttons 35 to 43), so none had to shrink and the 44px taps stay.
 */
:root {
  --head-h: calc(57 * var(--px));
}
:root .pageh,
:root .bigt,
:root .sa-cat-head,
:root .sa-set-title,
:root .oa-title,
:root .asknav {
  box-sizing: border-box;
  height: var(--head-h);
  min-height: var(--head-h);
  max-height: var(--head-h);
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex: none;
  border-bottom: 1px solid var(--head-line);
}
:root .bigt .btns {
  padding-top: 0;
}
:root .pageh .tx,
:root .bigt .tx,
:root .asknav .tx,
:root .sa-cat-head h1,
:root .sa-set-title h1,
:root .oa-title h1 {
  flex: 1;
  min-width: 0;
}
:root .pageh .tx .d1,
:root .bigt .tx .d1,
:root .asknav .tx b,
:root .sa-cat-head h1,
:root .sa-set-title h1,
:root .oa-title h1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Whatever is drawn beside a title stays inside the head: never more than the head is tall. */
:root .pageh > *,
:root .bigt > *,
:root .sa-cat-head > *,
:root .asknav > * {
  max-height: var(--head-h);
}

/* What a page still has to say once the line under its title went (a live count, Loading, an error, which item
   this is): the first thing under the head's line, as content. */
.pageh-note {
  padding: 0.75rem 1.125rem 0;
  color: var(--head-sub, var(--t2));
  font-size: var(--fs-body);
  font-weight: 500;
}
.pageh-note:empty {
  display: none;
}

/*
 * EVERY HEAD STAYS ON TOP (founder, 13 Nov 2026, Business profile and Connect: the title scrolled away with the
 * page). The 57px head (back, title, Save or whatever sits on its right, the line under it) is pinned to the top of
 * the screen's own scroller and the content passes UNDER it. Fixed here once for every kind of head, so no screen
 * has to remember it. The notch is already cleared by the frame's top border (app.css .frame), so top is 0.
 * The page colour behind it, so nothing shows through; over the chat wallpaper too, as WhatsApp's own bar is solid.
 * z-index 50: above the content's own little stacks (cards, pills, the bars below at 30 and 40), under the tab bar
 * (85), the glass sheets (118 and up) and every overlay.
 */
:root .pageh,
:root .bigt,
:root .sa-cat-head,
:root .sa-set-title,
:root .oa-title,
:root .asknav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--head-bg, var(--bg));
}
/* A bar a screen pins under its head (Bookings' view and period, Sales report's period, Stock's chips and search)
   stops under the head instead of sliding beneath it. */
:root :is(.scroll, .oa-scroll):has(> :is(.pageh, .bigt, .sa-cat-head, .sa-set-title, .oa-title)) :is(.bk-bar, .rp-bar, .stickhead) {
  top: var(--head-h);
}
/* ══ THE CONTROL SCALE (founder, 13 Nov 2026: "our buttons and highlighters of selected options look off... the Add
   button at the corner looking like it's dragging with Listings for size").
   A control is sized to its words and never competes with the page title (22, tokens.css):
     header action (Add, Save)   36 tall, 14 semibold, 14 across, radius 11
     filter chip                 32 tall, 13 medium, 12 across; its count lighter; the chosen one solid at chip size
     segmented, grid or list     32 tall
     icon button                 36 drawn, inside a 44 target (an invisible ring, never a bigger visual)
     full-width primary          48 tall, 15 semibold
   The chosen chip stays SOLID (forest, lime in dark) at chip size rather than a pale green tint: the founder ruled out
   every pale green surface on 10 Oct 2026 (tokens.css, WHITE LIFT).
   Every rule is under :root so it wins whichever screen's sheet loads after it; colours stay the screens' own.
   Checked by scripts/type-check.mjs. ══ */

/* ── header actions ── */
:root :is(.lk-add, .lk-save) {
  position: relative;
  height: var(--ctl-head);
  min-height: 0;
  min-width: 0;
  padding: 0 calc(14 * var(--fs-u));
  gap: calc(6 * var(--fs-u));
  border-radius: calc(11 * var(--fs-u));
  font-size: var(--fs-body);
  font-weight: 600;
}
:root .lk-add svg {
  width: calc(16 * var(--fs-u));
  height: calc(16 * var(--fs-u));
}

/* ── chips ── */
:root :is(.lk-chip, .chip) {
  position: relative;
  height: var(--ctl-chip);
  min-height: 0;
  padding: 0 calc(12 * var(--fs-u));
  gap: calc(6 * var(--fs-u));
  font-size: var(--fs-meta);
  font-weight: 500;
  line-height: 1;
}
:root .ls-chip {
  border-radius: calc(10 * var(--fs-u));
  font-weight: 500;
}
:root :is(.lk-chip, .chip).on {
  font-weight: 600;
}
:root .ls-chip .ls-n {
  font-weight: 400;
}
:root .chip b {
  font-weight: 600;
}
:root .sa-chip {
  font-weight: 500;
}
:root .cv-chips .cv-choice {
  min-height: var(--ctl-chip);
  padding: 0 calc(12 * var(--fs-u));
  font-size: var(--fs-meta);
  font-weight: 500;
}

/* ── segmented controls: the grid or list toggle, the old .seg ── */
:root .lk-seg button,
:root .ls-cat .lk-seg button {
  position: relative;
  width: calc(44 * var(--fs-u));
  height: var(--ctl-chip);
  min-height: 0;
  border-radius: calc(10 * var(--fs-u));
}
:root .lk-seg svg {
  width: calc(17 * var(--fs-u));
  height: calc(17 * var(--fs-u));
}
:root .ls-cat .lk-seg {
  gap: calc(4 * var(--fs-u));
}
:root .seg {
  font-weight: 600;
}
:root .lk-sort {
  font-size: var(--fs-meta);
}
:root .lk-sort svg {
  width: calc(13 * var(--fs-u));
  height: calc(13 * var(--fs-u));
}

/* ── the search field and the icon buttons beside it ── */
:root .lk-find {
  height: calc(40 * var(--fs-u));
  min-height: 40px;
}
:root .lk-find input {
  font-size: var(--fs-input);
}
:root .lk-find svg {
  width: calc(17 * var(--fs-u));
  height: calc(17 * var(--fs-u));
}
:root :is(.ls-filter, .lk-scan, .sa-x, .hdbtn) {
  position: relative;
  width: var(--ctl-icon);
  height: var(--ctl-icon);
  min-width: 0;
  min-height: 0;
}
:root .ls-filter {
  align-self: center;
  border-radius: calc(10 * var(--fs-u));
}
:root .ls-filter svg,
:root .lk-scan svg {
  width: calc(18 * var(--fs-u));
  height: calc(18 * var(--fs-u));
}
:root .sa-x {
  border-radius: 50%;
}
:root .sa-x svg {
  width: calc(15 * var(--fs-u));
  height: calc(15 * var(--fs-u));
}

/* ── THE 44px TARGET: an invisible ring round every control drawn smaller than 44 ── */
:root :is(.lk-add, .lk-save, .lk-chip, .chip, .lk-seg button, .ls-filter, .lk-scan, .sa-x, .hdbtn, .cv-chips .cv-choice)::after {
  content: "";
  position: absolute;
  /* Two pixels past half the difference: a chip's 1px border and rounding never leave the target under 44. */
  inset: min(0px, calc((var(--ctl-chip) - var(--tap-min)) / 2 - 2px));
  border-radius: inherit;
  /* Behind the control's own words and buttons (a chip can hold a button), so it only catches taps just outside. */
  z-index: -1;
}
:root :is(.lk-add, .lk-save, .lk-chip, .chip, .lk-seg button, .ls-filter, .lk-scan, .sa-x, .hdbtn, .cv-chips .cv-choice) {
  isolation: isolate;
}
:root :is(.ls-filter, .lk-scan, .sa-x, .hdbtn, .lk-add, .lk-save)::after {
  inset: min(0px, calc((var(--ctl-icon) - var(--tap-min)) / 2 - 1px));
}
/* A chip's ring reaches up and down only, so neighbours' rings do not overlap sideways. */
:root :is(.lk-chip, .chip, .cv-chips .cv-choice)::after {
  left: 0;
  right: 0;
}

/* ── full-width primary buttons ── */
:root .btn,
:root :is(.si-primary, .si-secondary) {
  min-height: var(--ctl-primary);
  font-size: var(--fs-row);
  font-weight: 600;
  border-radius: calc(12 * var(--fs-u));
}
:root .lk-btn {
  min-height: var(--ctl-primary);
  font-size: var(--fs-row);
  font-weight: 600;
  border-radius: calc(12 * var(--fs-u));
}
:root .btn svg,
:root .lk-btn .ico {
  width: calc(18 * var(--fs-u));
  height: calc(18 * var(--fs-u));
}

/* ── a list's filters, dropped out of the sliders button (ui/DropPanel.tsx) ── */
.droppanel {
  position: absolute;
  z-index: 119;
  width: min(calc(300 * var(--fs-u)), calc(100% - 16px));
  display: grid;
  gap: calc(8 * var(--fs-u));
  padding: calc(14 * var(--fs-u));
  border-radius: calc(16 * var(--fs-u));
  /* The surface is the one glass (glass.css). */
  transform-origin: top right;
  animation: dropin 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.droppanel .dp-acts {
  display: flex;
  justify-content: flex-end;
  gap: calc(8 * var(--fs-u));
  margin-top: calc(6 * var(--fs-u));
}
.droppanel :is(.dp-go, .dp-clear) {
  all: unset;
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  height: var(--ctl-head);
  padding: 0 calc(14 * var(--fs-u));
  border-radius: calc(11 * var(--fs-u));
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-body);
  font-weight: 600;
  cursor: pointer;
}
.droppanel :is(.dp-go, .dp-clear)::after {
  content: "";
  position: absolute;
  inset: min(0px, calc((var(--ctl-head) - var(--tap-min)) / 2)) 0;
  z-index: -1;
}
.droppanel .dp-go {
  background: var(--forest);
  color: #fff;
}
.droppanel .dp-clear {
  color: var(--t1);
  background: var(--fill);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .droppanel .dp-go {
    background: var(--lime);
    color: var(--forest);
  }
}
:root[data-theme="dark"] .droppanel .dp-go {
  background: var(--lime);
  color: var(--forest);
}
:root .lk-chips {
  /* Room for the chips' rings above and below; the extra at the foot is where a scroller keeps its (hidden) bar. */
  padding: 8px 0 12px;
  margin-top: calc(6 * var(--fs-u));
  margin-bottom: -4px;
}

/* ── the chat wallpaper: the sign in doodles behind Ask Remy, the Chats list and a chat (ui/DoodleBackdrop.tsx). On
   the screen's own box, never the scrolled content, so it holds still while the chat moves; bubbles, cards and the
   bar you type in keep their own solid fills. ── */
.dwp {
  background-image: var(--dwp-light);
  background-repeat: repeat;
  /* A third bigger than the sign in drawing, so the scatter reads sparse, as the mockups draw it: the 390 by 520
     tile of ui/doodleTile.ts, evenly spread and seamless, so it repeats without a hollow at any size or length. */
  background-size: calc(520 * var(--fs-u)) calc(693.33 * var(--fs-u));
  background-position: center top;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dwp {
    background-image: var(--dwp-dark);
  }
}
:root[data-theme="dark"] .dwp {
  background-image: var(--dwp-dark);
}

/* ── the bar you type in, over the wallpaper (founder, 13 Nov 2026, Ask Remy marked above and below the input): no
   strip behind it, so the doodles run to the very bottom edge and show around the composer; the pill and the round
   buttons keep their own fills. Down by the phone's own nav bar, with the SAME space above the pill as below it,
   plus the phone's bottom inset below only. Ask Remy and every chat thread (.thd.dwp). The messages end above it,
   so the last one still scrolls fully clear. ── */
:root .thd.dwp .comp {
  --comp-gap: calc(10 * var(--fs-u));
  background: transparent;
  border-top: 0;
  padding-top: var(--comp-gap);
  padding-bottom: calc(var(--comp-gap) + env(safe-area-inset-bottom, 0px));
}

/* ── the money card's head: Today's Revenue and the View report pill on ONE line, centred (founder, 13 Nov 2026);
   at a narrow width the pill gives up its padding before either word wraps. ── */
:root .sales .hd {
  flex-wrap: nowrap;
  gap: calc(8 * var(--fs-u));
  min-width: 0;
}
:root .sales .hd .ttl {
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
:root .sales .hdr {
  flex: none;
}
:root .sales .rep {
  white-space: nowrap;
  padding-left: clamp(6px, 2.4vw, calc(12 * var(--fs-u)));
  padding-right: clamp(4px, 1.8vw, calc(10 * var(--fs-u)));
}

/* ── a row of filter chips above a list (founder, 13 Nov 2026, Chats: Needs you and Orders sat flush on the first
   chat card): the page's section gap under the chips, so they never touch or overlap what follows. Every page level
   chip row (Chats, Orders, Needs, Brief, Bookings, the loading skeleton); the rows inside Stock's sticky bar and
   inside forms keep their own spacing. ── */
:root :is(.scroll, .oa-scroll) > .chiprow {
  padding-bottom: calc(14 * var(--fs-u));
}

/* ── the head of a chat, frosted (founder, 13 Nov 2026: Ask Remy's bar and a customer chat's bar are glass, not a
   see-through strip): the messages and the doodles scroll UNDER it and show only blurred. The glass itself is in
   styles/glass.css with every other glass surface; this is only where the head sits. The head
   is lifted out of the column's flow by its own height, so the list starts at the top of the screen and its first
   line is padded clear of the glass; anything drawn between the head and the list (a handover line, a pause notice)
   simply starts under the head. ── */
:root .thd.dwp > :is(.asknav, .thnav) {
  position: relative;
  z-index: 50;
  min-height: var(--head-h);
  margin-bottom: calc(-1 * var(--head-h));
  /* Its surface is the one glass: styles/glass.css "the head of a chat". */
}
:root .thd.dwp > .thnav {
  box-sizing: border-box;
  height: var(--head-h);
  max-height: var(--head-h);
  padding-top: 0;
  padding-bottom: 0;
  align-items: center;
}
:root .thd.dwp > :is(.asknav, .thnav) + :not(.msgs) {
  margin-top: var(--head-h);
}
:root .thd.dwp > :is(.asknav, .thnav) + .msgs {
  padding-top: calc(var(--head-h) + 0.75rem);
}
/* ── Remy's orb (ui/RemyOrb.tsx) ──────────────────────────────────────
   Brought over from Vettar (founder, 13 Nov 2026), in Relynked's forest
   and lime. A sphere from one off centre radial gradient, two inner
   shadows and a drop shadow, with a glowing lime dot that carries the
   state. The outer span is a size container, so every measure below is a
   share of the orb (cqw) and the place it sits only sets its width and
   height. Keyframes are named ro-* so they meet nothing else. */

/* Only the orb: `.ro[data-ro]`, never a bare `.ro`, because "ro" is also the read-only field's class (.lk-field.ro on the
   business profile) and the orb's square, size-container rules collapsed that field to a sliver (13 Nov 2026). */
/* A default size only, at no specificity, so every placement rule wins. */
:where(.ro[data-ro]) {
  width: 1.5rem;
  height: 1.5rem;
}
.ro[data-ro] {
  --ro-lit: #1f7357;
  --ro-base: var(--forest);
  --ro-edge: #06281e;
  --ro-in: rgba(0, 0, 0, 0.25);
  --ro-shine: rgba(255, 255, 255, 0.08);
  --ro-drop: rgba(11, 61, 46, 0.22);
  --ro-lime: #dcef4e;
  position: relative;
  display: inline-block;
  flex: none;
  vertical-align: middle;
  aspect-ratio: 1;
  border-radius: 50%;
  container-type: size;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ro[data-ro] {
    --ro-lit: #24795b;
    --ro-base: var(--forest-2);
    --ro-edge: #05241a;
    --ro-in: rgba(0, 0, 0, 0.4);
    --ro-shine: rgba(255, 255, 255, 0.1);
    --ro-drop: rgba(0, 0, 0, 0.484);
  }
}
:root[data-theme="dark"] .ro[data-ro] {
  --ro-lit: #24795b;
  --ro-base: var(--forest-2);
  --ro-edge: #05241a;
  --ro-in: rgba(0, 0, 0, 0.4);
  --ro-shine: rgba(255, 255, 255, 0.1);
  --ro-drop: rgba(0, 0, 0, 0.484);
}

.ro-ball {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, var(--ro-lit) 0%, var(--ro-base) 56%, var(--ro-edge) 100%);
  box-shadow:
    inset 0 -7cqw 18cqw var(--ro-in),
    inset 0 4.5cqw 7cqw var(--ro-shine),
    0 9cqw 32cqw var(--ro-drop);
  animation: ro-breathe 5s ease-in-out infinite;
}
.ro[data-still] .ro-ball {
  animation: none;
}
.ro-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30%;
  height: 30%;
  margin: -15%;
  border-radius: 50%;
  background: var(--ro-lime);
  box-shadow: 0 0 22cqw rgba(220, 239, 78, 0.55);
}

/* ALIVE: one soft pulse every 15 seconds, at the start of the cycle
   (RemyOrb puts every live orb on one shared start time). */
.ro-live .ro-dot {
  animation: ro-live-dot 15s ease-in-out infinite;
}
.ro-live::after {
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  border: max(1px, 4cqw) solid rgba(220, 239, 78, 0.65);
  opacity: 0;
  pointer-events: none;
  animation: ro-live-ring 15s ease-out infinite;
}
:root[data-rdot-rest] .ro-live .ro-dot,
:root[data-rdot-rest] .ro-live::after {
  animation: none;
}

/* THINK: the dot shrinks and circles while the reply is on its way. */
.ro[data-ro="think"] .ro-dot {
  width: 22%;
  height: 22%;
  margin: -11%;
  animation: ro-orbit 1.1s linear infinite;
}
/* SPEAK: four quick pulses as a message lands. */
.ro[data-ro="speak"] .ro-dot {
  animation: ro-speak 0.42s ease-in-out 4 alternate;
}
/* LISTEN: the dot swells and two lime rings leave the orb. */
.ro[data-ro="listen"] .ro-dot {
  animation: ro-listen 0.8s ease-in-out infinite alternate;
}
.ro[data-ro="listen"]::before,
.ro[data-ro="listen"]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: max(1px, 4cqw) solid rgba(220, 239, 78, 0.55);
  opacity: 0;
  pointer-events: none;
  animation: ro-ripple 1.9s ease-out infinite;
}
.ro[data-ro="listen"]::after {
  animation-delay: 0.95s;
}

@keyframes ro-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}
@keyframes ro-live-dot {
  0%,
  8%,
  100% {
    transform: scale(1);
  }
  4% {
    transform: scale(1.35);
  }
}
@keyframes ro-live-ring {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  2% {
    opacity: 0.9;
  }
  9%,
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}
@keyframes ro-orbit {
  from {
    transform: rotate(0deg) translateX(20cqw);
  }
  to {
    transform: rotate(360deg) translateX(20cqw);
  }
}
@keyframes ro-speak {
  to {
    transform: scale(0.7);
  }
}
@keyframes ro-listen {
  to {
    transform: scale(1.45);
  }
}
@keyframes ro-ripple {
  from {
    transform: scale(1);
    opacity: 0.8;
  }
  to {
    transform: scale(2);
    opacity: 0;
  }
}

/* Reduced motion: a still orb in every state. */
@media (prefers-reduced-motion: reduce) {
  .ro[data-ro] .ro-ball,
  .ro[data-ro] .ro-dot {
    animation: none !important;
  }
  .ro[data-ro]::before,
  .ro[data-ro]::after {
    content: none !important;
  }
}

/* The big orb on the empty Ask Remy (screens/ask/HeroSlot.tsx) fills its place. */
.askhero-orb .ro[data-ro] {
  width: 100%;
  height: 100%;
}
/* The bigger Home's Ask Remy card (home/sections.tsx): the orb fills its 40px place. */
.oa-ask .orb .ro[data-ro] {
  width: 100%;
  height: 100%;
}
/* ══ One Relynked: the header, Home's sections, the switcher, the password
   step, Services and Settings (remy-hq plans/relynked-one-app-plan-2026-11.md,
   drawn to the founder's mockups of 7 Nov 2026).

   The app's OWN tokens only, light and dark: no colour here is new except the
   business tiles' pairs, which are a business's own mark, not the app's.
   SIZES ARE THE MOCKUP'S PIXELS at 390 wide: --px (app.css) is one CSS pixel
   at the person's text size, so they still grow with it. Every tap target is
   at least 44px. */

:root {
  /* A row's line icon on its grey tile: the dark grey in light (Vettar's #4A524D), lime in dark (founder, 9 Nov 2026). */
  --ac-icon: var(--oa-ico);
  /* The pale lime behind an icon, and its dark-theme twin. */
  --oa-tint: color-mix(in srgb, var(--lime) 30%, var(--card));
  /* The grey line under a Settings heading or row: --t2 is 4.4:1 on the light page, so one step darker there. */
  --oa-sub: #5f676b;
  /* Settings in Vettar's look: the hairline round a card and between its rows
     (Vettar's #E5E5E0 in our cooler grey; --line is too faint to edge a card
     with no shadow), and Sign out's light red card with its tile (--rose in
     light; in dark --rose sinks into the card, so the tile steps up). */
  --oa-edge: #e4e7e7;
  /* A row's line icon on its grey tile (Vettar's #4A524D and #B4C2BB; the tile is --fill). */
  --oa-ico: #4a524d;
  --oa-out-bg: #fdf0ef;
  --oa-out-edge: #f3d4d2;
  --oa-out-tile: var(--rose);
  --oa-out-ink: #c0392b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ac-icon: var(--lime);
    --oa-sub: var(--t2);
    --oa-tint: color-mix(in srgb, var(--lime) 14%, var(--card));
    --oa-edge: #2a2e2f;
    --oa-ico: #b4c2bb;
    --oa-out-bg: #1f1415;
    --oa-out-edge: #432725;
    --oa-out-tile: #3b2321;
    --oa-out-ink: #f08a80;
  }
}
:root[data-theme="dark"] {
  --ac-icon: var(--lime);
  --oa-sub: var(--t2);
  --oa-tint: color-mix(in srgb, var(--lime) 14%, var(--card));
  --oa-edge: #2a2e2f;
  --oa-ico: #b4c2bb;
  --oa-out-bg: #1f1415;
  --oa-out-edge: #432725;
  --oa-out-tile: #3b2321;
  --oa-out-ink: #f08a80;
}

/* ── a business's tile: its logo, or its initials on its own colours ── */
.oa-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: calc(36 * var(--px));
  height: calc(36 * var(--px));
  border-radius: calc(11 * var(--px));
  font-weight: 600;
  font-size: var(--fs-row);
  overflow: hidden;
  background: var(--forest);
  color: var(--lime);
}
.oa-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.oa-tile.lg {
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
  border-radius: calc(12 * var(--px));
}
.oa-tile.xl {
  width: calc(56 * var(--px));
  height: calc(56 * var(--px));
  border-radius: calc(16 * var(--px));
  font-size: var(--fs-head);
}
.oa-tile.rust { background: #7c2d12; color: #fde7d3; }
.oa-tile.violet { background: #6d28d9; color: #ede4ff; }
.oa-tile.navy { background: #1e3a8a; color: #dbe6ff; }
.oa-tile.teal { background: #115e59; color: #ccfbf1; }
.oa-tile.plum { background: #701a75; color: #fae8ff; }

/* ── the screen ── */
.oa-scroll {
  background: var(--bg);
  color: var(--t1);
}
.oa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(10 * var(--px));
  padding: calc(18 * var(--px)) calc(16 * var(--px)) calc(10 * var(--px));
}
.oa-biz {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: calc(10 * var(--px));
  min-height: 44px;
  min-width: 0;
  padding: calc(4 * var(--px)) 0;
  cursor: pointer;
  color: var(--t1);
}
.oa-biz:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: calc(12 * var(--px));
}
.oa-biz .tx {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.oa-biz .nm {
  font-size: var(--fs-row);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oa-biz .rl {
  font-size: var(--fs-label);
  color: var(--oa-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oa-biz .ico {
  width: calc(18 * var(--px));
  height: calc(18 * var(--px));
  color: var(--oa-sub);
  flex: none;
}
.oa-bell {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.oa-bell .ico {
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
}
.oa-count {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 4px;
  box-sizing: border-box;
  background: var(--hot);
  color: var(--hot-on);
  font-size: var(--fs-micro);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Home: the sections, in the server's order ── */
.oa-home {
  display: flex;
  flex-direction: column;
  gap: calc(14 * var(--px));
  padding: calc(4 * var(--px)) calc(16 * var(--px)) 0;
}
/* The signature dashboard and Needs you come from the October Home, which
   pads itself for a full page; inside a section they sit on the column. */
.oa-home .sh-part > .sales {
  margin-left: 0;
  margin-right: 0;
}
.oa-home .oa-needs .ghead,
.oa-home .oa-needs .shead {
  margin-left: 0;
  margin-right: 0;
}
.oa-home .oa-needs > .lc,
.oa-home .oa-needs .card {
  margin-left: 0;
  margin-right: 0;
}
.oa-endpad {
  height: calc(100 * var(--px) + env(safe-area-inset-bottom));
  flex: none;
}

.oa-card {
  background: var(--card);
  border-radius: calc(20 * var(--px));
  padding: calc(14 * var(--px)) calc(16 * var(--px));
  color: var(--t1);
  box-shadow: var(--sh);
}
.oa-card h2 {
  margin: 0;
  font-size: var(--fs-row);
  font-weight: 600;
}
button.oa-card,
a.oa-card {
  all: unset;
  box-sizing: border-box;
  background: var(--card);
  border-radius: calc(20 * var(--px));
  padding: calc(14 * var(--px)) calc(16 * var(--px));
  color: var(--t1);
  box-shadow: var(--sh);
  cursor: pointer;
  min-height: 44px;
}
button.oa-card:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}

/* Today's total, the one figure a sales person may see. */
.oa-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(16 * var(--px));
}
.oa-total .lb {
  font-size: var(--fs-meta);
  color: var(--oa-sub);
}
.oa-total .fig {
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Ask Remy, with the orb. */
/* After the reset on button.oa-card and a.oa-card, so it wins over it. */
.oa-card.oa-ask {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
  text-decoration: none;
}
.oa-ask .orb {
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
  flex: none;
  display: grid;
}
.oa-ask .orb svg {
  width: 100%;
  height: 100%;
}
.oa-ask .tx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.oa-ask b {
  font-size: var(--fs-row);
  font-weight: 600;
}
.oa-ask .sub {
  font-size: var(--fs-meta);
  color: var(--oa-sub);
}
.oa-chev {
  width: calc(18 * var(--px));
  height: calc(18 * var(--px));
  color: var(--oa-sub);
  flex: none;
}

/* New sale: lime under a dashboard, the big forest card when it leads Home. */
.oa-sale {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(12 * var(--px));
  min-height: 44px;
  cursor: pointer;
  border-radius: calc(20 * var(--px));
  padding: calc(16 * var(--px));
  background: var(--lime);
  color: var(--forest);
}
.oa-sale:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}
.oa-sale .tx {
  display: flex;
  flex-direction: column;
}
.oa-sale b {
  font-size: var(--fs-row);
  font-weight: 600;
}
.oa-sale .sub {
  font-size: var(--fs-meta);
  font-weight: 500;
}
.oa-sale .go {
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  display: grid;
  place-items: center;
  flex: none;
}
.oa-sale .go .ico {
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
}
.oa-sale.lead {
  background: var(--forest);
  color: #fff;
  border-radius: calc(22 * var(--px));
  padding: calc(22 * var(--px)) calc(18 * var(--px));
}
.oa-sale.lead b {
  font-size: var(--fs-head);
}
.oa-sale.lead .tx {
  gap: calc(4 * var(--px));
}
.oa-sale.lead .sub {
  color: color-mix(in srgb, #fff 78%, var(--forest));
  font-weight: 400;
}
.oa-sale.lead .go {
  width: calc(48 * var(--px));
  height: calc(48 * var(--px));
  background: var(--lime);
  color: var(--forest);
}

/* Customers waiting. */
.oa-list {
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--px));
}
.oa-person {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
  padding: calc(8 * var(--px)) 0;
  border-top: 1px solid var(--line);
  min-height: 44px;
  cursor: pointer;
  color: var(--t1);
}
.oa-person:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}
.oa-av {
  width: calc(36 * var(--px));
  height: calc(36 * var(--px));
  border-radius: 50%;
  background: var(--fill);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-size: var(--fs-meta);
  font-weight: 700;
  flex: none;
}
.oa-person .tx,
.oa-row .tx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.oa-person b,
.oa-row b {
  font-size: var(--fs-body);
  font-weight: 600;
}
.oa-person .sub,
.oa-row .sub {
  font-size: var(--fs-label);
  color: var(--oa-sub);
}
/* Nobody waiting: the small magnifier under the card's heading (ui/Bits.tsx Empty). */
.oa-list .emptyart {
  margin: calc(4 * var(--px)) 0 0;
  padding: calc(10 * var(--px)) 0 calc(4 * var(--px));
  border-top: 1px solid var(--line);
}

/* Orders and low stock, two tiles. */
.oa-tiles2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(12 * var(--px));
}
.oa-tiles2 .oa-card {
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--px));
  padding: calc(14 * var(--px));
}
.oa-tiles2 .n {
  font-size: var(--fs-title);
  font-weight: 700;
}
.oa-tiles2 .n.warn {
  color: var(--orange);
}
.oa-tiles2 .lb {
  font-size: var(--fs-meta);
  color: var(--oa-sub);
}

/* My day. */
.oa-day h1 {
  margin: calc(4 * var(--px)) 0 0;
  font-size: var(--fs-title);
  font-weight: 700;
}
.oa-day .date {
  font-size: var(--fs-body);
  color: var(--oa-sub);
  margin-top: calc(-8 * var(--px));
}
.oa-next {
  background: var(--forest);
  color: #fff;
  border-radius: calc(22 * var(--px));
  padding: calc(18 * var(--px));
  display: flex;
  flex-direction: column;
  gap: calc(6 * var(--px));
}
.oa-next .when {
  font-size: var(--fs-meta);
  color: var(--lime);
  font-weight: 700;
  text-transform: uppercase;
}
.oa-next .what {
  font-size: var(--fs-title);
  font-weight: 700;
}
.oa-next .how {
  font-size: var(--fs-body);
  color: color-mix(in srgb, #fff 78%, var(--forest));
}
.oa-slots {
  padding: calc(6 * var(--px)) calc(16 * var(--px));
  display: flex;
  flex-direction: column;
}
.oa-slot {
  display: flex;
  gap: calc(14 * var(--px));
  padding: calc(12 * var(--px)) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-body);
  align-items: baseline;
}
.oa-slot:last-child {
  border-bottom: 0;
}
.oa-slot .t {
  width: calc(52 * var(--px));
  font-weight: 700;
  flex: none;
}
.oa-slot .s {
  flex: 1;
  min-width: 0;
}
.oa-slot .m {
  font-size: var(--fs-label);
  color: var(--oa-sub);
}
.oa-slot.done {
  color: var(--t3);
}
.oa-slot.done .s {
  text-decoration: line-through;
}
.oa-slot.done .m {
  color: var(--t3);
}
.oa-slot.next .s {
  font-weight: 600;
}
.oa-slot.next .m {
  color: var(--accent-ink);
  font-weight: 700;
}

/* ── the switcher ──
   The glass, the rows, the tick and the pill are styles/glass.css (the
   founder's reference, 13 Nov 2026). Here only the sizes of its words. */
.oa-sw {
  display: flex;
  flex-direction: column;
  gap: calc(14 * var(--px));
  padding-top: calc(6 * var(--px));
}
.oa-mem b {
  font-size: var(--fs-row);
}
.oa-mem .sub {
  font-size: var(--fs-meta);
  color: var(--oa-sub);
}
.oa-sw .glass-pill {
  font-size: var(--fs-row);
}
.oa-note {
  margin: calc(2 * var(--px)) calc(4 * var(--px)) 0;
  font-size: var(--fs-label);
  color: var(--oa-sub);
  line-height: 1.45;
}

/* ── the password step, into a business you own ── */
.oa-pw {
  min-height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: calc(18 * var(--px)) calc(20 * var(--px)) max(calc(32 * var(--px)), env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--t1);
}
.oa-back {
  all: unset;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--accent-ink);
}
.oa-back .ico {
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
}
.oa-pw .top {
  margin-top: calc(48 * var(--px));
  display: flex;
  flex-direction: column;
  gap: calc(14 * var(--px));
}
.oa-pw h1 {
  margin: 0;
  font-size: var(--fs-title);
  font-weight: 700;
  line-height: 1.2;
}
.oa-pw .lead {
  margin: 0;
  font-size: var(--fs-row);
  color: var(--t2);
  line-height: 1.5;
}
.oa-pw form {
  margin-top: calc(28 * var(--px));
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
}
.oa-pw label {
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--t2);
  text-transform: uppercase;
}
.oa-field {
  display: flex;
  align-items: center;
  height: calc(52 * var(--px));
  min-height: 44px;
  border-radius: calc(15 * var(--px));
  border: 1.5px solid var(--accent-ink);
  background: var(--card);
  padding: 0 calc(6 * var(--px)) 0 calc(16 * var(--px));
  box-sizing: border-box;
}
.oa-field input {
  all: unset;
  flex: 1;
  min-width: 0;
  font-size: var(--fs-input);
  color: var(--t1);
}
.oa-field .peek svg {
  width: calc(22 * var(--px));
  height: calc(22 * var(--px));
}
.oa-field .peek {
  all: unset;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--t2);
}
.oa-link {
  all: unset;
  align-self: flex-start;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--accent-ink);
  cursor: pointer;
}
.oa-err {
  font-size: var(--fs-meta);
  color: var(--red);
}
.oa-pw .foot {
  margin-top: auto;
  padding-top: calc(20 * var(--px));
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
}
.oa-primary,
.oa-secondary {
  all: unset;
  box-sizing: border-box;
  height: calc(54 * var(--px));
  min-height: 44px;
  border-radius: 999px;
  font-size: var(--fs-row);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(8 * var(--px));
  cursor: pointer;
}
.oa-primary {
  background: var(--accent-ink);
  color: var(--on-accent);
}
.oa-secondary {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--accent-ink);
}
.oa-primary:disabled,
.oa-secondary:disabled {
  opacity: 0.55;
  cursor: default;
}
.oa-secondary .ico {
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
}
.oa-pw .small {
  margin: calc(4 * var(--px)) 0 0;
  font-size: var(--fs-label);
  color: var(--oa-sub);
  text-align: center;
  line-height: 1.45;
}

/* ── Services and Settings: a title, then the grid or the rows ── */
.oa-title {
  padding: calc(22 * var(--px)) calc(16 * var(--px)) calc(8 * var(--px));
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--px));
}
.oa-title h1 {
  margin: 0;
  font-size: var(--fs-title);
  font-weight: 700;
}
.oa-title .sub {
  font-size: var(--fs-meta);
  color: var(--oa-sub);
}
.oa-grid {
  padding: calc(8 * var(--px)) calc(16 * var(--px)) 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(10 * var(--px));
}
.oa-svc {
  all: unset;
  box-sizing: border-box;
  background: var(--card);
  border-radius: calc(18 * var(--px));
  padding: calc(14 * var(--px)) calc(8 * var(--px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(8 * var(--px));
  font-size: var(--fs-meta);
  font-weight: 600;
  text-align: center;
  min-height: 44px;
  cursor: pointer;
  color: var(--t1);
  box-shadow: var(--sh);
  overflow-wrap: anywhere;
}
.oa-svc:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}
.oa-svc .ic {
  width: calc(44 * var(--px));
  height: calc(44 * var(--px));
  border-radius: calc(14 * var(--px));
  background: var(--oa-tint);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
}
.oa-svc .ic .ico {
  width: calc(22 * var(--px));
  height: calc(22 * var(--px));
}
.oa-svc .n {
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--hot);
}

.oa-set {
  padding: calc(8 * var(--px)) calc(16 * var(--px)) 0;
  display: flex;
  flex-direction: column;
  gap: calc(14 * var(--px));
}
.oa-group {
  background: var(--card);
  border-radius: calc(20 * var(--px));
  padding: calc(4 * var(--px)) calc(16 * var(--px));
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh);
}
.oa-group .gh {
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--oa-sub);
  padding: calc(10 * var(--px)) 0 calc(4 * var(--px));
  text-transform: uppercase;
}
.oa-row {
  all: unset;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(12 * var(--px));
  padding: calc(12 * var(--px)) 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-row);
  min-height: 44px;
  cursor: pointer;
  color: var(--t1);
}
.oa-row:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}
.oa-row .val {
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--accent-ink);
}
.oa-row.danger {
  color: var(--red);
}
.oa-row .tog {
  flex: none;
}

/* ── Settings (screens/SettingsOne.tsx), in Vettar's look (founder, walk on
   nana, 8 Nov 2026; Vettar's one17/profileview.css): the photo card, then
   sections with a bold heading, a grey line and one card of rows; Sign out
   its own light red card at the foot. Hairline cards, radius 16, no shadows.
   The other settings pages keep .oa-set and .oa-group above. ── */
.ost {
  padding: calc(8 * var(--px)) calc(16 * var(--px)) 0;
  display: flex;
  flex-direction: column;
}
.ost-top {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  gap: calc(18 * var(--px));
  padding: calc(16 * var(--px));
  background: var(--card);
  border: 1px solid var(--oa-edge);
  border-radius: calc(16 * var(--px));
  color: var(--t1);
  cursor: pointer;
  min-height: 44px;
}
.ost-top:focus-visible,
.ost-row:focus-visible,
.ost-out:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}
.ost-row:focus-visible {
  outline-offset: -2px;
}
/* The photo, or the initials on forest; a small forest camera at its foot,
   ringed in the card's colour. Decoration on the card's own button. */
.ost-ava {
  position: relative;
  flex: none;
  width: calc(88 * var(--px));
  height: calc(88 * var(--px));
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.ost-ava > img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.ost-cam {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: calc(28 * var(--px));
  height: calc(28 * var(--px));
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  border: 2px solid var(--card);
  display: grid;
  place-items: center;
}
.ost-cam .lico {
  width: calc(14 * var(--px));
  height: calc(14 * var(--px));
}
.ost-who {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: calc(2 * var(--px));
}
.ost-who b {
  font-size: var(--fs-row);
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.ost-who span {
  font-size: var(--fs-body);
  color: var(--oa-sub);
}
.ost-sec {
  margin-top: calc(22 * var(--px));
}
.ost-top + .ost-sec {
  margin-top: calc(18 * var(--px));
}
.ost-h {
  margin: 0 calc(4 * var(--px));
  font-size: var(--fs-row);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--t1);
  overflow-wrap: anywhere;
}
/* The plan, first and on its own under the photo card (as WhatsApp's Subscriptions). */
.ost-top + .ost-first {
  margin-top: calc(18 * var(--px));
}
.ost-card {
  margin-top: calc(10 * var(--px));
  background: var(--card);
  border: 1px solid var(--oa-edge);
  border-radius: calc(16 * var(--px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ost-row {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
  padding: calc(11 * var(--px)) calc(14 * var(--px));
  border-bottom: 1px solid var(--oa-edge);
  color: var(--t1);
  cursor: pointer;
  min-height: 44px;
}
.ost-row:last-child {
  border-bottom: 0;
}
/* The tile: a line icon (ui/LineIcon.tsx) at 20 on the plain grey. */
.ost-tile {
  flex: none;
  width: calc(38 * var(--px));
  height: calc(38 * var(--px));
  border-radius: calc(11 * var(--px));
  background: var(--fill);
  color: var(--ac-icon);
  display: grid;
  place-items: center;
}
.ost-tile .lico {
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
}
.ost-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--px));
}
/* The row's two lines (founder, 9 Nov 2026): the title bold, a step larger; the line under it regular, a step smaller. */
.ost-main b {
  font-size: var(--fs-row);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.ost-main span {
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--oa-sub);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ost-chev {
  flex: none;
  width: calc(16 * var(--px));
  height: calc(16 * var(--px));
  color: var(--t3);
}
/* The theme row is the switch, the whole row of it; the track is only its picture. */
.ost-row .tog2 {
  pointer-events: none;
}
/* A row that holds its own control (remy-does-everything B0): the Pause Remy switch, the text sizes. The switch in it
   is a real button (ui/Bits.tsx Toggle), so it takes the taps; the row around it does not. */
.ost-row.ost-still {
  cursor: default;
}
.ost-row.ost-still .tog2 {
  pointer-events: auto;
  cursor: pointer;
}
/* The switch's track stays a pill; its tap area reaches 44px around it. */
.ost-row.ost-still .tog2::before {
  content: "";
  position: absolute;
  inset: -0.4rem -0.3rem;
}
.ost-line {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
}
.ost-row.ost-stack {
  flex-direction: column;
  align-items: stretch;
  gap: calc(10 * var(--px));
  padding-bottom: calc(13 * var(--px));
}
/* Fine, Bigger, Biggest: three pills under the Text size line, the one in use filled. */
.ost-segs {
  display: flex;
  gap: calc(8 * var(--px));
  padding-left: calc(50 * var(--px));
}
.ost-segs button {
  all: unset;
  box-sizing: border-box;
  flex: 1;
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: calc(12 * var(--px));
  border: 1px solid var(--oa-edge);
  background: var(--card);
  color: var(--t1);
  font-weight: 600;
  cursor: pointer;
}
.ost-segs button:nth-child(1) {
  font-size: var(--fs-body);
}
.ost-segs button:nth-child(2) {
  font-size: var(--fs-row);
}
.ost-segs button:nth-child(3) {
  font-size: var(--fs-body);
}
.ost-segs button.on {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}
.ost-segs button:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}
/* The Remy is down line above the business's part: the banner's own look, inside the page's gutter. */
.ost-down .banner {
  width: 100% !important;
  margin: calc(18 * var(--px)) 0 0;
  box-sizing: border-box;
}
.ost-out {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  margin-top: calc(22 * var(--px));
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
  padding: calc(11 * var(--px)) calc(14 * var(--px));
  background: var(--oa-out-bg);
  border: 1px solid var(--oa-out-edge);
  border-radius: calc(16 * var(--px));
  color: var(--oa-out-ink);
  cursor: pointer;
  min-height: 44px;
}
.ost-out .ost-tile {
  background: var(--oa-out-tile);
  color: var(--oa-out-ink);
}
.ost-out .ost-lt {
  flex: 1;
  font-size: var(--fs-row);
  font-weight: 600;
}
.ost-out .ost-chev {
  color: var(--oa-out-ink);
}
/* Delete account: centred red words under Sign out, no card, as in Vettar
   (founder, 8 Nov 2026: "No delete account button???"). Opens the existing
   /account/delete screen, which explains everything before anything goes. */
.ost-del {
  all: unset;
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: calc(10 * var(--px));
  padding: calc(12 * var(--px));
  text-align: center;
  color: var(--oa-out-ink);
  font-size: var(--fs-row);
  font-weight: 600;
  cursor: pointer;
}
.ost-del:focus-visible {
  outline: 2px solid var(--oa-out-ink);
  outline-offset: 2px;
  border-radius: calc(12 * var(--px));
}

/* ── 44px everywhere on the one-app Home: the October pieces drawn inside
   it keep their look, and grow only their tap area here ── */
/* The small app's Home draws the same card the same way (home/SmallHome.tsx, .sa-cards; the founder, 9 Nov 2026: "we
   must retain this dashboard"). */
.oa-home .sales .hd,
.sa-cards > .sales .hd {
  align-items: center;
  min-height: 44px;
}
/* The eye and View report: no ring and no pill, and up in the card's top
   right corner, above the title's line (founder, walk on nana, 8 Nov 2026).
   Lifted out of the row, so the title and the figure stay where they were;
   each keeps its 44px tap area. */
.oa-home .sales .hdr,
.sa-cards > .sales .hdr {
  position: absolute;
  top: 0;
  right: calc(0.25 * var(--fix));
  gap: 0;
}
.oa-home .sales .eyebtn,
.oa-home .sales .rep,
.sa-cards > .sales .eyebtn,
.sa-cards > .sales .rep {
  min-height: 44px;
  border: 0;
}
.oa-home .sales .eyebtn,
.sa-cards > .sales .eyebtn {
  width: 44px;
  height: 44px;
}
.oa-home .nyall {
  min-height: 44px;
}
/* The theme row is the switch, the whole 44px of it; the track inside is only its picture. */
.oa-row .tog2 {
  pointer-events: none;
}

/* The proof step's smaller lines. */
.oa-hint {
  font-size: var(--fs-meta);
  color: var(--oa-sub);
}
.oa-err-alone {
  margin: calc(28 * var(--px)) 0 0;
}

/* A manager's branch today (dashboard source branch_day, GET /venues/:venueId/day). */
.oa-branch {
  background: var(--forest);
  color: #fff;
  border-radius: calc(22 * var(--px));
  padding: calc(18 * var(--px));
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
}
.oa-branch .when {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: color-mix(in srgb, #fff 78%, var(--forest));
}
.oa-branch .fig {
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.oa-branch .stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(8 * var(--px));
}
.oa-branch .stats span {
  display: flex;
  flex-direction: column;
  gap: calc(2 * var(--px));
  font-size: var(--fs-label);
  color: color-mix(in srgb, #fff 78%, var(--forest));
}
.oa-branch .stats b {
  font-size: var(--fs-head);
  font-weight: 700;
  color: #fff;
}
.oa-tiles2.one {
  grid-template-columns: minmax(0, 1fr);
}

/* The money eye on the one-app Home's own figures (remy-does-everything B0): Today's total on the light card, and a
   manager's branch on the forest one. 44px to tap, no ring. */
.oa-total .eyebtn,
.oa-branch .eyebtn {
  width: 44px;
  height: 44px;
  border: 0;
  flex: none;
}
.oa-total .eyebtn {
  color: var(--t2);
}
.oa-bhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(8 * var(--px));
  margin: calc(-10 * var(--px)) calc(-10 * var(--px)) calc(-6 * var(--px)) 0;
}
/* ══ The account screens drawn to the founder's mockups of 9 Nov 2026: PIN and fingerprint
   (screens/SecuritySettings.tsx), Devices (screens/Devices.tsx), Sign in with Google or Apple
   (screens/SignInMethods.tsx) and the Business profile (screens/biz/NameAddress.tsx).

   THE APP'S OWN TOKENS, LIGHT AND DARK. The accent is --accent-ink (forest in light, lime in dark:
   founder, 9 Nov 2026, "see the use of lime green instead of your mixing of forest green and dark
   theme"); the few --ac-* tokens below are only where light and dark need different values, each with
   both dark selectors. No pale green fill in light (founder, 10 Oct 2026). Sizes through --px (app.css),
   so they grow with the person's text size; every tap target is at least 44px. ══ */

:root {
  /* Words under a title: --t2 in dark, one step darker in light for 4.5:1 on the grey fill. */
  --ac-sub: #5f676b;
  /* The small uppercase label inside a card. */
  --ac-label: color-mix(in srgb, var(--t1) 72%, var(--card));
  /* The note card (Stay safe, About devices, What this does): the grey fill in light, a faint lime in dark. */
  --ac-note-bg: var(--fill);
  --ac-note-edge: transparent;
  /* The main button and an "on" chip: forest with white words in light, lime with dark words in dark. */
  --ac-primary: var(--forest);
  --ac-on-primary: #fff;
  /* A switch that is on. */
  --ac-toggle-on: var(--forest);
  /* This device's tile: the grey fill in light, a faint lime in dark. */
  --ac-tile-on: var(--fill);
  /* An amber chip's words, on --amber. */
  --ac-amber-ink: #6b3f00;
  /* A small outlined button's edge. */
  --ac-btn-edge: color-mix(in srgb, var(--t1) 28%, var(--card));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ac-sub: var(--t2);
    --ac-note-bg: color-mix(in srgb, var(--lime) 6%, var(--card));
    --ac-note-edge: color-mix(in srgb, var(--lime) 34%, var(--card));
    --ac-primary: var(--lime);
    --ac-on-primary: var(--on-lime);
    --ac-toggle-on: var(--lime);
    --ac-tile-on: color-mix(in srgb, var(--lime) 12%, var(--card));
    --ac-amber-ink: #f5c16c;
    --ac-btn-edge: color-mix(in srgb, var(--t1) 34%, var(--card));
  }
}
:root[data-theme="dark"] {
  --ac-sub: var(--t2);
  --ac-note-bg: color-mix(in srgb, var(--lime) 6%, var(--card));
  --ac-note-edge: color-mix(in srgb, var(--lime) 34%, var(--card));
  --ac-primary: var(--lime);
  --ac-on-primary: var(--on-lime);
  --ac-toggle-on: var(--lime);
  --ac-tile-on: color-mix(in srgb, var(--lime) 12%, var(--card));
  --ac-amber-ink: #f5c16c;
  --ac-btn-edge: color-mix(in srgb, var(--t1) 34%, var(--card));
}

.ac-body {
  padding: calc(16 * var(--px)) calc(16 * var(--px)) 0;
  display: flex;
  flex-direction: column;
  gap: calc(16 * var(--px));
}
.ac .btn.dark {
  background: var(--ac-primary);
  color: var(--ac-on-primary);
}
.ac .tog2.on {
  background: var(--ac-toggle-on);
}
.ac .capn {
  color: var(--ac-sub);
}

/* A section heading outside the cards ("This device", "Other devices"). */
.ac-h {
  margin: calc(6 * var(--px)) calc(4 * var(--px)) calc(-6 * var(--px));
  font-size: var(--fs-head);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--t1);
}

/* ── a card of rows, its small label inside at the top ── */
.ac-card {
  background: var(--card);
  border: 1px solid var(--oa-edge);
  border-radius: calc(18 * var(--px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ac-label {
  padding: calc(16 * var(--px)) calc(16 * var(--px)) calc(2 * var(--px));
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ac-label);
}
.ac-row {
  all: unset;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  min-height: calc(72 * var(--px));
  padding: calc(13 * var(--px)) calc(16 * var(--px));
  display: flex;
  align-items: center;
  gap: calc(14 * var(--px));
  color: var(--t1);
}
button.ac-row {
  cursor: pointer;
}
.ac-row + .ac-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(16 * var(--px));
  right: calc(16 * var(--px));
  height: 1px;
  background: var(--oa-edge);
}
.ac-row:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: -2px;
}
.ac-tile {
  flex: none;
  width: calc(46 * var(--px));
  height: calc(46 * var(--px));
  border-radius: calc(13 * var(--px));
  background: var(--fill);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
}
.ac-tile svg {
  width: calc(23 * var(--px));
  height: calc(23 * var(--px));
}
.ac-tile.brand {
  color: var(--t1);
}
.ac-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--px));
}
.ac-main > b {
  font-size: var(--fs-row);
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.ac-main > span {
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ac-sub);
  overflow-wrap: anywhere;
}
.ac-chev {
  flex: none;
  width: calc(18 * var(--px));
  height: calc(18 * var(--px));
  color: var(--t3);
}
.ac-err {
  margin: 0 calc(16 * var(--px)) calc(12 * var(--px));
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--oa-out-ink);
}

/* A small outlined button at a row's end (Add, Remove, Sign out). */
.ac-mini {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  flex: none;
  min-height: 44px;
  min-width: calc(72 * var(--px));
  padding: 0 calc(16 * var(--px));
  border-radius: calc(14 * var(--px));
  border: 1.5px solid var(--ac-btn-edge);
  color: var(--t1);
  font-size: var(--fs-row);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(8 * var(--px));
}
.ac-mini:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}
.ac-mini:disabled {
  opacity: 0.6;
}
.ac-mini svg {
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
}

/* ── the note card: an icon, a thin line, the words ── */
.ac-note {
  background: var(--ac-note-bg);
  border: 1px solid var(--ac-note-edge);
  border-radius: calc(18 * var(--px));
  padding: calc(16 * var(--px));
  display: flex;
  gap: calc(16 * var(--px));
  align-items: flex-start;
}
.ac-note > svg {
  flex: none;
  width: calc(28 * var(--px));
  height: calc(28 * var(--px));
  color: var(--accent-ink);
  margin-top: calc(2 * var(--px));
}
.ac-vdiv {
  flex: none;
  align-self: stretch;
  width: 1px;
  background: var(--oa-edge);
}
.ac-note .tx {
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--px));
  min-width: 0;
}
.ac-note .tx b {
  font-size: var(--fs-row);
  font-weight: 600;
}
.ac-note .tx span {
  font-size: var(--fs-row);
  line-height: 1.45;
  color: var(--ac-sub);
}

/* ── Devices ── */
.ac-dev {
  display: flex;
  align-items: center;
  gap: calc(14 * var(--px));
  padding: calc(16 * var(--px));
  position: relative;
}
.ac-dev + .ac-dev::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(16 * var(--px));
  right: calc(16 * var(--px));
  height: 1px;
  background: var(--oa-edge);
}
.ac-dev .ac-tile {
  width: calc(56 * var(--px));
  height: calc(56 * var(--px));
  border-radius: calc(15 * var(--px));
}
.ac-dev .ac-tile.on {
  background: var(--ac-tile-on);
}
.ac-dev .ac-main {
  gap: calc(6 * var(--px));
}
.ac-chips {
  display: flex;
  flex-wrap: wrap;
  gap: calc(8 * var(--px));
}
.ac-chip {
  display: inline-flex;
  align-items: center;
  min-height: calc(26 * var(--px));
  padding: 0 calc(10 * var(--px));
  border-radius: calc(13 * var(--px));
  font-size: var(--fs-body);
  font-weight: 700;
}
.ac-chip.on {
  background: var(--ac-primary);
  color: var(--ac-on-primary);
}
.ac-chip.line {
  border: 1.5px solid var(--accent-ink);
  color: var(--accent-ink);
}
.ac-chip.amb {
  background: var(--amber);
  color: var(--ac-amber-ink);
}
.ac-empty {
  padding: calc(28 * var(--px)) calc(16 * var(--px));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: calc(8 * var(--px));
}
.ac-empty svg {
  width: calc(56 * var(--px));
  height: calc(56 * var(--px));
  color: var(--ac-sub);
  margin-bottom: calc(6 * var(--px));
}
.ac-empty b {
  font-size: var(--fs-head);
  font-weight: 700;
}
.ac-empty span {
  font-size: var(--fs-row);
  color: var(--ac-sub);
}

/* ── the Business profile's fields ── */
.ac-field {
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
}
.ac-field > label,
.ac-field > .lb {
  font-size: var(--fs-row);
  font-weight: 600;
  color: var(--t1);
}
.ac-input {
  box-sizing: border-box;
  width: 100%;
  min-height: calc(54 * var(--px));
  padding: calc(14 * var(--px)) calc(16 * var(--px));
  border-radius: calc(14 * var(--px));
  border: 1px solid var(--oa-edge);
  background: var(--card);
  color: var(--t1);
  font: inherit;
  font-size: var(--fs-row);
  font-weight: 500;
}
textarea.ac-input {
  min-height: calc(96 * var(--px));
  resize: vertical;
  line-height: 1.45;
}
.ac-input:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 1px;
}
.ac-input[readonly] {
  cursor: default;
}
.ac-logo {
  background: var(--card);
  border: 1px solid var(--oa-edge);
  border-radius: calc(18 * var(--px));
  padding: calc(14 * var(--px));
  display: flex;
  align-items: center;
  gap: calc(16 * var(--px));
  flex-wrap: wrap;
}
.ac-logo .pic {
  flex: none;
  width: calc(96 * var(--px));
  height: calc(96 * var(--px));
  border-radius: calc(16 * var(--px));
  overflow: hidden;
  background: var(--fill);
  color: var(--ac-sub);
  display: grid;
  place-items: center;
}
.ac-logo .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ac-logo .pic svg {
  width: calc(30 * var(--px));
  height: calc(30 * var(--px));
}
.ac-logo .acts {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: calc(14 * var(--px));
}
.ac-logo .ac-vdiv {
  height: calc(28 * var(--px));
  align-self: center;
}
.ac-plain {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  min-height: 44px;
  padding: 0 calc(6 * var(--px));
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--px));
  font-size: var(--fs-row);
  font-weight: 600;
  color: var(--ac-sub);
}
.ac-plain svg {
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
}
.ac-plain:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: calc(8 * var(--px));
}

/* The filled Connect: the first channel not yet connected. */
.ac-mini.on {
  background: var(--ac-primary);
  color: var(--ac-on-primary);
  border-color: transparent;
}
.ac-tile .bm {
  width: calc(28 * var(--px));
  height: calc(28 * var(--px));
}
/* How it works: a plain row at the foot, no card. */
.ac-how {
  padding-left: calc(4 * var(--px));
  padding-right: calc(4 * var(--px));
}
.ac-how > .lico:first-child {
  flex: none;
  width: calc(26 * var(--px));
  height: calc(26 * var(--px));
  color: var(--t1);
}

/* ── Connect your WhatsApp (ui/ConnectWhatsAppCard.tsx), with less to read (founder, 9 Nov 2026) ── */
:root {
  --ac-pick-bg: var(--sel);
  --ac-pick-sh: var(--sel-sh);
  --ac-opt-bg: var(--fill);
  --ac-opt-edge: transparent;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ac-pick-bg: color-mix(in srgb, var(--lime) 7%, var(--card));
    --ac-pick-sh: 0 0 0 2px var(--lime);
    --ac-opt-bg: var(--card);
    --ac-opt-edge: var(--oa-edge);
  }
}
:root[data-theme="dark"] {
  --ac-pick-bg: color-mix(in srgb, var(--lime) 7%, var(--card));
  --ac-pick-sh: 0 0 0 2px var(--lime);
  --ac-opt-bg: var(--card);
  --ac-opt-edge: var(--oa-edge);
}
.wacard.ac .wahead2 {
  margin-top: calc(14 * var(--px));
  font-size: var(--fs-row);
  font-weight: 600;
  color: var(--t1);
}
.wa-picks {
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
  margin-top: calc(10 * var(--px));
}
.wa-pick {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  width: 100%;
  min-height: calc(64 * var(--px));
  padding: calc(14 * var(--px)) calc(16 * var(--px));
  border-radius: calc(16 * var(--px));
  background: var(--ac-opt-bg);
  box-shadow: inset 0 0 0 1px var(--ac-opt-edge);
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
  color: var(--t1);
  transition: background 160ms ease, box-shadow 160ms ease;
}
.wa-pick.on {
  background: var(--ac-pick-bg);
  box-shadow: var(--ac-pick-sh);
}
.wa-pick:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}
.pl-dot2 {
  flex: none;
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
  border-radius: 50%;
  box-sizing: border-box;
  border: 2px solid color-mix(in srgb, var(--t3) 70%, var(--card));
  display: grid;
  place-items: center;
}
.pl-dot2 svg {
  width: calc(13 * var(--px));
  height: calc(13 * var(--px));
  visibility: hidden;
}
.wa-pick.on .pl-dot2 {
  border: 0;
  background: var(--accent-ink);
  color: var(--on-accent);
}
.wa-pick.on .pl-dot2 svg {
  visibility: visible;
}
.waready2 {
  list-style: none;
  margin: calc(10 * var(--px)) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
}
.waready2 li {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
  font-size: var(--fs-row);
  line-height: 1.4;
  color: var(--t1);
}
.waready2 li svg {
  flex: none;
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
  color: var(--accent-ink);
}
.wa-line {
  margin: calc(14 * var(--px)) 0 0;
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--ac-sub);
}
/* "Bring in my last 6 months of chats and contacts" (founder, 11 Nov 2026): a real checkbox, drawn as a rounded
   box in the accent when ticked; the whole box and the words tick it, What this means opens the facts. */
.wa-check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: calc(12 * var(--px));
  margin: calc(14 * var(--px)) 0 0;
  font-size: var(--fs-row);
  line-height: 1.45;
  color: var(--t1);
}
.wa-check-in {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.wa-check-box {
  flex: none;
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
  border-radius: calc(7 * var(--px));
  border: 2px solid var(--t3);
  display: grid;
  place-items: center;
  color: transparent;
  box-sizing: border-box;
}
.wa-check-box svg {
  width: calc(14 * var(--px));
  height: calc(14 * var(--px));
}
.wa-check-in:checked + .wa-check-box {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: var(--on-accent);
}
.wa-check-in:focus-visible + .wa-check-box {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}
.wa-check-tx label {
  cursor: pointer;
  font-weight: 600;
}
.pl-a2 {
  all: unset;
  cursor: pointer;
  font-weight: 700;
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pl-a2:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: 4px;
}
.wa-acts {
  margin-top: calc(16 * var(--px));
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
}
.wa-lock {
  margin: 0;
  display: flex;
  gap: calc(8 * var(--px));
  align-items: flex-start;
  font-size: var(--fs-meta);
  line-height: 1.45;
  color: var(--ac-sub);
}
.wa-lock svg {
  flex: none;
  width: calc(15 * var(--px));
  height: calc(15 * var(--px));
  margin-top: calc(2 * var(--px));
}
.pl-link2 {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-row);
  font-weight: 600;
  color: var(--accent-ink);
}
.wa-facts {
  margin: 0;
  padding: 0 0 0 calc(18 * var(--px));
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
  font-size: var(--fs-row);
  line-height: 1.5;
  color: var(--t1);
}
/* ───────────────────────────────────────────────────────────────────────────
   WALK-IN SALE (Option D, founder-approved 2026-10-11).

   Drawn from the approved mockup (Relynked Pro/Screens/walkin-options): a bottom
   sheet with a search bar that is always on screen, a short Top 8 grid, and the
   whole sale folded into one sticky bar. Tokens are the app's own; the classes
   are prefixed wk- so nothing here can touch another screen.

   RULES THAT SHOW HERE
   - A chosen thing LIFTS (white, shadow, bold label, forest tick). No pale
     green anywhere, no coloured side edge on a row or card.
   - The ONE exception, by the founder's own word: the chosen payment method is
     the brand lime with forest text and a forest tick.
   - Every icon is an Icon in a round forest tile; the glyph is white in light
     and lime in dark (the shared .ic.neutral).
   - Every thing that is tapped is at least 44px, the payment buttons 56px.
   ─────────────────────────────────────────────────────────────────────────── */

.sheet.wk {
  display: flex;
  flex-direction: column;
  height: 88dvh;
  padding: 0 1.125rem;
  padding-bottom: 0;
  overflow: hidden;
}
.sheet.wk.basket {
  height: 70dvh;
}
.sheet.wk.small {
  height: auto;
  max-height: 88dvh;
}
.sheet.wk .sheethead {
  flex: none;
  padding-bottom: 0.125rem;
}
.wk-note {
  z-index: 2;
  position: absolute;
  top: 1.5rem;
  right: 1.125rem;
  font-size: var(--fs-label);
  color: var(--t2);
  font-weight: 500;
}
.wk-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 0.75rem;
}
.wk-foot {
  position: relative;
  flex: none;
  padding: 0.625rem 0 1.25rem;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  background: var(--card);
}

/* search */
.wk-sbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.625rem;
  margin-top: 0.375rem;
  padding: 0.125rem 0.125rem 0.125rem 0.9375rem;
  border-radius: var(--r-pill);
  background: var(--sel);
  box-shadow: var(--sel-sh);
}
.wk-sbar > .ico {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--t2);
  flex: none;
}
.wk-sbar input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: var(--fs-input);
  font-weight: 600;
  color: var(--t1);
}
.wk-sbar input::placeholder {
  color: var(--t3);
  font-weight: 500;
}
.wk-sbar .clr {
  flex: none;
  width: 36px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--t2);
}
.wk-sbar .clr .ico {
  width: 0.9375rem;
  height: 0.9375rem;
}
.wk-sbar .scanb {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: grid;
  place-items: center;
}
.wk-sbar .scanb .ico {
  width: 1.25rem;
  height: 1.25rem;
}
:root[data-theme="dark"] .wk-sbar .scanb {
  color: var(--lime);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wk-sbar .scanb {
    color: var(--lime);
  }
}

.wk .chiprow {
  padding: 0.375rem 0 0;
  overflow-x: auto;
  flex-wrap: nowrap;
}
.wk-flabel {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: var(--fs-body);
  font-weight: 700;
  margin: 0.875rem 0 0.4375rem;
}
.wk-flabel em,
.wk-flabel button {
  font-style: normal;
  font-weight: 500;
  color: var(--t2);
  font-size: var(--fs-label);
}
.wk-flabel button {
  min-height: 44px;
  margin: -0.75rem -0.5rem -0.75rem 0;
  padding: 0 0.5rem;
  font-weight: 600;
}
.wk-hint {
  font-size: var(--fs-label);
  color: var(--t2);
  font-weight: 500;
  margin-top: 0.4375rem;
  line-height: 1.35;
}

/* the Top 8 tiles */
.wk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}
.wk-it {
  position: relative;
  min-width: 0;
  min-height: 6.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3125rem;
  padding: 0.75rem 0.25rem 0.5rem;
  border-radius: var(--r-lg);
  background: var(--fill);
  text-align: center;
  transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.wk-it:active {
  transform: scale(0.97);
}
.wk-it .ic {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.wk-it .ic .ico {
  width: 1.125rem;
  height: 1.125rem;
}
.wk-it .nm {
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}
.wk-it .pr {
  font-size: var(--fs-label);
  color: var(--t2);
  font-weight: 500;
}
.wk-it .lf {
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1;
}
.lo {
  color: var(--orange);
}
.zr {
  color: var(--red);
}
.wk-it.on {
  background: var(--sel);
  box-shadow: var(--sel-sh);
}
.wk-it.on .nm {
  font-weight: 700;
}
.wk-it .tk {
  position: absolute;
  top: 0.4375rem;
  left: 0.4375rem;
  width: 0.75rem;
  height: 0.75rem;
  color: var(--accent-ink);
}
.wk-it .q,
.wk-rrow .inn {
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.3125rem;
  border-radius: 999px;
  background: var(--accent-ink);
  color: var(--on-accent);
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.125rem;
  text-align: center;
  font-style: normal;
}
.wk-it .q {
  position: absolute;
  top: 0.3125rem;
  right: 0.3125rem;
}

/* search results */
.wk-resbox {
  margin-top: 0.5rem;
  background: var(--fill);
  border-radius: var(--r-lg);
  padding: 0.1875rem 0.25rem;
}
.wk-rrow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-radius: var(--r-md);
}
.wk-rrow + .wk-rrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 1px;
  background: var(--line);
}
.wk-rrow.on {
  background: var(--sel);
  box-shadow: var(--sel-sh);
  margin: 0.125rem 0;
}
.wk-rrow.on::before,
.wk-rrow.on + .wk-rrow::before {
  display: none;
}
.wk-rrow .ic {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.wk-rrow .ic .ico {
  width: 1.0625rem;
  height: 1.0625rem;
}
.wk-rrow .tx {
  flex: 1;
  min-width: 0;
}
.wk-rrow .tt {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.25;
}
.wk-rrow.on .tt {
  font-weight: 700;
}
.wk-rrow .tt .tick {
  width: 0.8125rem;
  height: 0.8125rem;
  color: var(--accent-ink);
  flex: none;
}
.wk-rrow .ds {
  display: block;
  font-size: var(--fs-label);
  color: var(--t2);
  font-weight: 500;
  margin-top: 0.0625rem;
}
.wk-rrow .ds.lo,
.wk-ln .ds.lo {
  color: var(--orange);
}
.wk-rrow .ds.zr,
.wk-ln .ds.zr {
  color: var(--red);
}
.wk-rrow .am {
  font-size: var(--fs-body);
  font-weight: 700;
  flex: none;
}
.wk-rrow .addb {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
:root[data-theme="dark"] .wk-rrow .addb {
  color: var(--lime);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wk-rrow .addb {
    color: var(--lime);
  }
}
.wk-rrow .addb .ico {
  width: 0.875rem;
  height: 0.875rem;
}
.wk-nores {
  padding: 1rem 0.75rem;
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 500;
}
.wk-nores button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 700;
  color: var(--t1);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.wk-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.wk-strip::-webkit-scrollbar {
  display: none;
}
.wk-strip .chip {
  min-height: 44px;
  gap: 0.5rem;
}
.wk-strip .chip .p {
  color: var(--t2);
  font-weight: 500;
}

/* the scan card */
.wk-scan {
  position: relative;
  height: 11rem;
  margin-top: 0.5rem;
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, #0f4a38, #06241b);
  overflow: hidden;
  color: #fff;
}
.wk-scan video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wk-scan .cn {
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border: 3px solid var(--lime);
}
.wk-scan .cn.a { top: 0.75rem; left: 0.75rem; border-right: 0; border-bottom: 0; border-top-left-radius: 0.5rem; }
.wk-scan .cn.b { top: 0.75rem; right: 0.75rem; border-left: 0; border-bottom: 0; border-top-right-radius: 0.5rem; }
.wk-scan .cn.c { bottom: 0.75rem; left: 0.75rem; border-right: 0; border-top: 0; border-bottom-left-radius: 0.5rem; }
.wk-scan .cn.d { bottom: 0.75rem; right: 0.75rem; border-left: 0; border-top: 0; border-bottom-right-radius: 0.5rem; }
.wk-scan .beam {
  position: absolute;
  left: 2.25rem;
  right: 2.25rem;
  top: 50%;
  height: 2px;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  border-radius: 2px;
}
.wk-scan .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.4rem;
  text-align: center;
  font-size: var(--fs-label);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.wk-scan .stop {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
}
.wk-scan .stop .ico {
  width: 1rem;
  height: 1rem;
}
.wk-scanmsg {
  margin-top: 0.5rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--r-md);
  background: var(--fill);
  font-size: var(--fs-meta);
  color: var(--t1);
  font-weight: 500;
  line-height: 1.4;
}
.wk-scanmsg button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* the one bar */
.wk-dock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 0.4375rem 0.4375rem 0.625rem;
  border-radius: var(--r-lg);
  background: var(--sel);
  box-shadow: var(--sel-sh);
}
.wk-open {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-align: left;
}
.wk-open .ic {
  position: relative;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.wk-open .ic .ico {
  width: 1.1875rem;
  height: 1.1875rem;
}
.wk-open .ic i {
  position: absolute;
  top: -0.25rem;
  right: -0.3125rem;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.3125rem;
  border-radius: 999px;
  background: var(--accent-ink);
  color: var(--on-accent);
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.125rem;
  text-align: center;
  font-style: normal;
  box-shadow: 0 0 0 2px var(--sel);
}
.wk-open .dt {
  flex: 1;
  min-width: 0;
}
.wk-open .dt b {
  display: block;
  font-size: var(--fs-body);
  line-height: 1.2;
  white-space: nowrap;
}
.wk-open .dt span {
  display: block;
  font-size: var(--fs-label);
  color: var(--t2);
  font-weight: 500;
}
.wk-open .up {
  width: 1rem;
  height: 1rem;
  color: var(--t2);
  flex: none;
  transform: rotate(-90deg);
}
.wk-take {
  flex: none;
  min-height: 3rem;
  padding: 0 1.125rem;
  border-radius: var(--r-md);
  background: var(--forest);
  color: #fff;
  font-size: var(--fs-body);
  font-weight: 700;
}
.wk-take:disabled {
  opacity: 0.42;
}

/* the Undo bar, for four seconds after any add or removal */
.wk-undo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 0.125rem);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.25rem 0 0.875rem;
  border-radius: var(--r-md);
  background: #0f1412;
  color: #fff;
  font-size: var(--fs-meta);
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(15, 20, 18, 0.28);
}
:root[data-theme="dark"] .wk-undo {
  background: #3a3f41;
  color: #f2f4f4;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wk-undo {
    background: #3a3f41;
    color: #f2f4f4;
  }
}
.wk-undo button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.875rem;
  font-weight: 700;
  color: #dcef4e;
  font-size: var(--fs-meta);
}

/* the basket */
.wk-basket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wk-basket-head .cnt {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--t2);
  margin-left: 0.375rem;
  letter-spacing: 0;
}
.wk-closeb {
  position: absolute;
  top: 0.75rem;
  right: 0.5rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--t2);
}
.wk-closeb .ico {
  width: 1.0625rem;
  height: 1.0625rem;
  transform: rotate(90deg);
}
.wk-lines {
  background: var(--fill);
  border-radius: var(--r-lg);
  padding: 0.25rem 0;
  margin-top: 0.25rem;
  overflow: hidden;
}
.wk-lw {
  position: relative;
  touch-action: pan-y;
  overflow: hidden;
}
.wk-lw + .wk-lw::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 1px;
  background: var(--line);
  z-index: 1;
}
.wk-swbg {
  position: absolute;
  inset: 0;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1rem;
  font-size: var(--fs-meta);
  font-weight: 700;
}
.wk-ln {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  min-height: 3rem;
  background: var(--fill);
  transition: transform 160ms ease;
}
.wk-ln.drag {
  transition: none;
}
.wk-ln .ic {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.wk-ln .ic .ico {
  width: 1rem;
  height: 1rem;
}
.wk-ln .tx {
  flex: 1;
  min-width: 0;
}
.wk-ln .tt {
  display: block;
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.25;
}
.wk-ln .ds {
  display: block;
  font-size: var(--fs-label);
  color: var(--t2);
  font-weight: 500;
  margin-top: 0.0625rem;
}
.wk-ln .am {
  font-size: var(--fs-body);
  font-weight: 700;
  flex: none;
  min-width: 3.4rem;
  text-align: right;
}
.wk-stp {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: none;
}
.wk-stp .sb {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  position: relative;
}
/* A 44px target around a 28px button. */
.wk-stp .sb::after {
  content: "";
  position: absolute;
  inset: -0.5rem -0.125rem;
}
.wk-stp .sb .ico {
  width: 0.75rem;
  height: 0.75rem;
}
.wk-stp .n {
  min-width: 1rem;
  text-align: center;
  font-weight: 700;
  font-size: var(--fs-body);
}
.wk-rm {
  flex: none;
  width: 44px;
  height: 44px;
  margin: -0.5rem -0.375rem -0.5rem -0.25rem;
  display: grid;
  place-items: center;
  color: var(--red);
  border-radius: 50%;
}
.wk-rm .ico {
  width: 1rem;
  height: 1rem;
}
.wk-rm:active {
  background: var(--card);
}
.wk-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0.25rem 0;
  font-size: var(--fs-body);
  font-weight: 600;
}
.wk-total.sub {
  padding-top: 0.25rem;
  font-weight: 500;
  color: var(--t2);
}
.wk-total b {
  font-size: var(--fs-row);
}

/* payment: Cash, Transfer, POS */
.wk-payrow {
  display: flex;
  gap: 0.4375rem;
}
.wk-pm {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.4375rem 0.25rem;
  border-radius: var(--r-md);
  background: var(--sel);
  box-shadow: var(--sel-sh);
  color: var(--t1);
  font-size: var(--fs-meta);
  font-weight: 600;
  line-height: 1.1;
  transition: background 140ms ease, transform 140ms ease;
}
.wk-pm:active {
  transform: scale(0.98);
}
.wk-pm .ico {
  width: 1.375rem;
  height: 1.375rem;
  color: var(--t2);
}
/* Founder, 2026-10-11: the chosen payment method is the brand lime, for this
   picker only. Dark forest text and a forest tick, in light and in dark. */
.wk-pm.on {
  background: var(--lime);
  color: #0b3d2e;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(15, 20, 18, 0.12);
}
.wk-pm.on .ico {
  color: #0b3d2e;
}
.wk-pm.on .tk {
  position: absolute;
  top: 0.3125rem;
  right: 0.375rem;
  width: 0.875rem;
  height: 0.875rem;
  color: #0b3d2e;
}
.wk-pm.off {
  opacity: 0.5;
  box-shadow: none;
  background: var(--fill);
}
.wk-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3.375rem;
  margin-top: 0.625rem;
  border-radius: var(--r-md);
  font-size: var(--fs-body);
  font-weight: 700;
}
.wk-btn.dark {
  background: var(--forest);
  color: #fff;
}
.wk-btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--t1);
}
.wk-btn:disabled {
  opacity: 0.42;
}
.wk-btn .ico {
  width: 1.125rem;
  height: 1.125rem;
}
.wk-offnote {
  margin-top: 0.5rem;
  font-size: var(--fs-label);
  color: var(--t2);
  font-weight: 500;
  line-height: 1.35;
}
.wk-err {
  margin: 0.5rem 0 0;
  padding: 0.625rem 0.875rem;
  border-radius: var(--r-md);
  background: var(--fill);
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--t1);
  line-height: 1.4;
}

/* waiting for a transfer or a card machine */
.wk-wait {
  text-align: center;
  padding-top: 1.25rem;
}
.wk-wait .big {
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.wk-wait .sm {
  color: var(--t2);
  font-size: var(--fs-meta);
  font-weight: 500;
  margin-top: 0.25rem;
  line-height: 1.4;
}
.wk-acct {
  margin-top: 1rem;
  background: var(--fill);
  border-radius: var(--r-lg);
  padding: 1rem;
  text-align: center;
}
.wk-acct .bank {
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--t2);
}
.wk-acct .num {
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0.25rem 0;
  font-variant-numeric: tabular-nums;
}
.wk-acct .nm {
  font-size: var(--fs-body);
  font-weight: 600;
}
.wk-acct .ex {
  font-size: var(--fs-label);
  color: var(--t2);
  font-weight: 500;
  margin-top: 0.375rem;
}
.wk-pulse {
  display: inline-block;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--accent-ink);
  margin-right: 0.5rem;
  animation: wk-pulse 1.4s ease-in-out infinite;
}
@keyframes wk-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .wk-pulse { animation: none; }
}
.wk-machines {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}
.wk-machines button {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--r-md);
  background: var(--sel);
  box-shadow: var(--sel-sh);
  font-size: var(--fs-body);
  font-weight: 700;
  text-align: left;
}

/* after Take */
.wk-done {
  text-align: center;
  padding-top: 1.5rem;
}
.wk-done .ic {
  width: 3.75rem;
  height: 3.75rem;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.wk-done .ic .ico {
  width: 1.75rem;
  height: 1.75rem;
}
.wk-done .big {
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 0.875rem;
}
.wk-done .sm {
  color: var(--t2);
  font-size: var(--fs-meta);
  font-weight: 500;
  margin-top: 0.25rem;
}
.wk-notes {
  margin-top: 1.125rem;
  background: var(--fill);
  border-radius: var(--r-lg);
  padding: 0.25rem 0;
  text-align: left;
}
.wk-note-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
}
.wk-note-row + .wk-note-row {
  border-top: 1px solid var(--line);
}
.wk-note-row .ic {
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.wk-note-row .ic .ico {
  width: 0.9375rem;
  height: 0.9375rem;
}
.wk-note-row .tt {
  display: block;
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.25;
}
.wk-note-row .ds {
  display: block;
  font-size: var(--fs-label);
  color: var(--t2);
  font-weight: 500;
}
.wk-note-row .ds.lo { color: var(--orange); }
.wk-note-row .ds.zr { color: var(--red); }
.wk-phonef {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--fill);
  border-radius: var(--r-md);
  padding: 0 0.875rem;
  min-height: 3.125rem;
}
.wk-phonef:focus-within {
  background: var(--sel);
  box-shadow: var(--sel-sh);
}
.wk-phonef input {
  flex: 1;
  min-width: 0;
  height: 44px;
  background: none;
  border: 0;
  outline: 0;
  padding: 0;
  font: inherit;
  font-size: var(--fs-input);
  font-weight: 600;
  color: var(--t1);
}
.wk-phonef input::placeholder {
  color: var(--t3);
  font-weight: 500;
}
.wk-phonef .ico {
  width: 1.0625rem;
  height: 1.0625rem;
  color: var(--t2);
}
.wk-sent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: var(--fs-meta);
  font-weight: 600;
}
.wk-sent .ico {
  width: 1rem;
  height: 1rem;
  color: var(--accent-ink);
}

/* empty */
.wk-empty {
  padding-top: 1rem;
}
.wk-empty .btn {
  margin-top: 0.75rem;
}

/* the Top 8 editor */
.wk-pinlist {
  background: var(--fill);
  border-radius: var(--r-lg);
  padding: 0.25rem 0;
  margin-top: 0.5rem;
}
.wk-pinrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3rem;
  padding: 0.25rem 0.25rem 0.25rem 0.75rem;
}
.wk-pinrow + .wk-pinrow {
  border-top: 1px solid var(--line);
}
.wk-pinrow .tt {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-body);
  font-weight: 600;
}
.wk-pinrow .n {
  width: 1.5rem;
  color: var(--t2);
  font-weight: 700;
  font-size: var(--fs-meta);
}

/* the count beside the basket's title, clear of the close button */
.sheet.wk.basket .wk-note {
  right: 3.5rem;
}

/* ───────────────────────────────────────────────────────────────────────────
   TILL CHANGES (the manager's quiet count, ui/TillChanges.tsx) and the
   OFFLINE NOTE (walkin/offline.ts). Same rules as above: a chosen day lifts
   (white, shadow, bold, forest tick), nothing is tinted pale green, no row or
   card has a coloured side edge, colour only on a figure, icon or dot.
   ─────────────────────────────────────────────────────────────────────────── */
.sheet.tc {
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}
.tc-days {
  margin: 0 -1.125rem;
  padding-top: 0.25rem;
  padding-bottom: 0.5rem;
}
.tc-sub {
  margin: 0.375rem 0 0.75rem;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--t1);
  line-height: 1.4;
}
.tc-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1rem 0 0;
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--t2);
  line-height: 1.4;
}
.tc-note .ico {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.0625rem;
}

/* Sales saved on this phone while there was no network. */
.wk-saved {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  margin: 0.5rem 0 0;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-md);
  background: var(--fill);
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--t1);
  line-height: 1.35;
}
.wk-saved .ic {
  flex: none;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.wk-saved .ic .ico {
  width: 0.9375rem;
  height: 0.9375rem;
}
.wk-saved .tx {
  flex: 1;
  min-width: 0;
}
.wk-saved .tx b {
  display: block;
  font-size: var(--fs-body);
  font-weight: 700;
}
.wk-saved .tx span {
  display: block;
  color: var(--t2);
  font-weight: 500;
}
.wk-saved .n {
  flex: none;
  min-width: 1.5rem;
  padding: 0.125rem 0.5rem;
  border-radius: var(--r-pill);
  background: var(--card);
  font-size: var(--fs-body);
  font-weight: 700;
  text-align: center;
}
.wk-saved button {
  flex: none;
  min-height: 44px;
  padding: 0 0.5rem;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--t2);
}
.wk-saved.home {
  margin: 0 1.125rem 0.625rem;
}

/* NICKNAMES on the item's edit screen (ui/NicknameField.tsx): a grey chip with a remove mark, and an Add button inside the box. */
.chip.nick {
  padding-right: 0.25rem;
  gap: 0.125rem;
}
.chip.nick button {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin: -0.25rem 0;
  border-radius: 50%;
  color: var(--t2);
}
.chip.nick button .ico {
  width: 0.875rem;
  height: 0.875rem;
}
.phonef .nickadd {
  flex: none;
  min-height: 44px;
  margin-right: -0.5rem;
  padding: 0 0.75rem;
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--accent-ink);
}
.phonef .nickadd:disabled {
  color: var(--t3);
}

/* Inside the Till changes sheet the lists sit flush with the sheet's own padding, on the grey fill, so the white sheet is not white on white. */
.sheet.tc .lc {
  margin: 0;
  background: var(--fill);
  box-shadow: none;
}
.sheet.tc .shead {
  padding-left: 0;
  padding-right: 0;
}
.sheet.tc .tc-days {
  padding-left: 1.125rem;
  padding-right: 1.125rem;
}
/* ── Needs you (founder, 5 Nov 2026): Home's See all, the full list's
   controls, the select bar. Tokens only, so light and dark both follow
   tokens.css. ─────────────────────────────────────────────────────────── */

.nyall {
  margin: 0.5rem 1.125rem 0;
  width: calc(100% - 2.25rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--t1);
  font-size: var(--fs-input);
  font-weight: 700;
}
.nyall svg {
  width: 0.5rem;
  height: 0.875rem;
  color: var(--t3);
}

.nysheet {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.nysheet p {
  font-size: var(--fs-meta);
  line-height: 1.45;
  color: var(--t2);
}
.nysheet p b {
  color: var(--t1);
}
.nysheet .perr {
  color: var(--red);
  font-weight: 600;
}
.nysheet button.w {
  padding: 0.75rem;
  border-radius: 0.8125rem;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--t1);
  font-weight: 700;
}
.nygo {
  padding: 0.8125rem;
  border-radius: 0.8125rem;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  text-align: center;
  justify-content: center;
}
.nygo:disabled {
  opacity: 0.6;
}

/* The full list. */
.nysel {
  padding: 0.5rem 0.875rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--t1);
  font-size: var(--fs-meta);
  font-weight: 700;
}
.nyctl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  padding: 0.75rem 1.125rem 0;
}
.nyseg {
  display: flex;
  padding: 0.1875rem;
  border-radius: var(--r-pill);
  background: var(--fill);
  min-width: 0;
}
.nyseg button {
  padding: 0.4375rem 0.8125rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--t2);
  white-space: nowrap;
}
.nyseg button.on {
  background: var(--card);
  color: var(--t1);
  box-shadow: var(--sh);
}
.nysort {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--t2);
  flex: none;
}
.nysort svg {
  width: 1rem;
  height: 1rem;
}
.nysort select {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--t1);
  border-radius: var(--r-pill);
  padding: 0.4375rem 0.75rem;
  font: inherit;
  font-size: var(--fs-input);
  font-weight: 700;
}

.nymore {
  margin: 0.5rem 1.125rem 0;
  width: calc(100% - 2.25rem);
  padding: 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--t1);
  font-size: var(--fs-meta);
  font-weight: 700;
}

.nybox {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 0.4375rem;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--on-lime);
}
.nybox.on {
  background: var(--lime);
  border-color: var(--lime);
}
.nybox.off {
  border-style: dashed;
  opacity: 0.5;
}
.nybox svg {
  width: 0.75rem;
  height: 0.75rem;
}

.nybar {
  position: sticky;
  bottom: 0;
  margin: 0 0.75rem 0.75rem;
  padding: 0.625rem 0.625rem 0.625rem 1rem;
  border-radius: 1.125rem;
  background: var(--forest);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: var(--sh);
}
.nybar span {
  font-size: var(--fs-meta);
  font-weight: 600;
  opacity: 0.85;
}
.nybar button {
  padding: 0.6875rem 1rem;
  border-radius: 0.8125rem;
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 700;
  font-size: var(--fs-meta);
}
.nybar button:disabled {
  opacity: 0.55;
}

/* A Needs you row: the words first, the actions on their own line under them. */
.li.nyrow {
  align-items: flex-start;
  cursor: pointer;
}
.li.nyrow > .cv {
  align-self: center;
}
.nymeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.nyago {
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 500;
}
.nytag {
  font-size: var(--fs-label);
  font-weight: 700;
  border-radius: 0.625rem;
  padding: 0.125rem 0.5rem;
  background: var(--fill);
  color: var(--t2);
}
.nytag.warn {
  background: var(--rose);
  color: var(--red);
}
.nyact {
  padding: 0.4375rem 0.8125rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--t1);
  font-size: var(--fs-label);
  font-weight: 700;
}
.nyact.main {
  background: var(--mint);
  color: var(--accent-ink);
  border-color: transparent;
}
.nyact:disabled {
  opacity: 0.6;
}

/* The group being looked at, as a chip that lets it go again. */
.chip.nyfilter {
  max-width: 100%;
  min-width: 0;
}
.chip.nyfilter svg {
  width: 0.75rem;
  height: 0.75rem;
  flex: none;
}
.chip.nyfilter span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* An opened group's one action, under its chip. */
.nygroupact {
  display: flex;
  padding: 0.625rem 1.125rem 0;
}
.nygroupact .nygo {
  flex: 1;
}
/* ── TODAY'S REVENUE ON THE SMALL HOME, RETRACED (the founder, 13 Nov 2026; screens/homes/RevenueArt.tsx) ──────────
   The base is painted here and fills any width: a yellow green glow in the top left corner over a diagonal from green
   to deep green. The two lighter shapes are RevenueArt's SVG, pinned to the top right at a fixed size, so a wider card
   only grows the base. Green in both themes. The old raster art, the sheen and the green tint over it are not used on
   this card. */
.sales.rv-card {
  background-color: #017632;
  background-image:
    radial-gradient(130% 150% at 0% 0%, #72cf24 0%, #45b326 13%, #129a2e 27%, rgba(2, 128, 50, 0) 45%),
    linear-gradient(112deg, #058a35 0%, #017b32 35%, #017230 58%, #016a2c 78%, #025a24 100%);
  background-size: auto;
  /* The reference's thin lighter rim along the bottom. */
  box-shadow: inset 0 -1px 0 rgba(60, 200, 70, 0.3);
  isolation: isolate;
}
.sales.rv-card::before {
  content: none;
}
.sales.rv-card > .rv-art {
  position: absolute;
  top: 0;
  right: 0;
  width: 170px;
  height: 100px;
  z-index: 0;
  pointer-events: none;
}
.sales.rv-card > :not(.rv-art, .rv-open) {
  z-index: 1;
}

/* Today's Revenue a little higher (the founder: "shift Today's revenue up a bit"): the head no longer holds View
   report, so it is only as tall as its words, and the space comes back above the figure to keep the card's balance. */
.sa-cards > .sales.rv-card {
  padding-top: calc(0.875 * var(--fix));
}
.sa-cards > .sales.rv-card .hd {
  min-height: 0;
}
.sa-cards > .sales.rv-card .bot {
  margin-top: calc(0.875 * var(--fix));
}

/* THE WHOLE CARD OPENS THE REPORT: one real button the size of the card, under the words. The words let a tap through;
   the money figure takes its own. */
.sales.rv-tap > .rv-open {
  all: unset;
  position: absolute;
  inset: 0;
  z-index: 0;
  cursor: pointer;
  border-radius: inherit;
  -webkit-tap-highlight-color: transparent;
}
.sales.rv-tap > .rv-open:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -3px;
}
.sales.rv-tap > :not(.rv-art, .rv-open) {
  pointer-events: none;
}
.sales.rv-tap .figtap {
  pointer-events: auto;
}
/* Pressed: the card gives a little, as the Simple card does. */
.sales.rv-tap {
  transition: transform 120ms ease, filter 120ms ease;
}
.sales.rv-tap:has(> .rv-open:active) {
  transform: scale(0.985);
  filter: brightness(0.94);
}
@media (prefers-reduced-motion: reduce) {
  .sales.rv-tap {
    transition: none;
  }
}

/* A narrow phone (320): the count line wraps under itself rather than running into the week's rings. */
.sales.rv-card .fig {
  flex: 1 1 0;
}
.sales.rv-card .meta {
  flex: 0 1 auto;
  min-width: 0;
  white-space: normal;
}
.sales.rv-card .meta .lines {
  min-width: 0;
}
/* The install screens' shared parts (./parts.tsx), for Relynked Staff
   (staff/screens/InstallStep.tsx) and Relynked (next/screens/InstallApp.tsx).
   Moved here unchanged from staff-app.css on 2026-10-10; Relynked's own
   screen, pill and banner are ./install-owner.css. The app's own tokens
   throughout. Colour on icons, dots and figures only, never a side edge.
   Every movement stops under reduced motion. */

/* The Home screen step. */
.instl-steps,
.iosguide {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.625rem;
}
.instl-steps li {
  font-size: var(--t-bd);
  color: var(--t2);
  line-height: 1.45;
}
.iosguide li {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--r-lg);
  background: var(--card);
  border: var(--hair) solid var(--line);
  font-size: var(--t-bd);
  line-height: 1.4;
  color: var(--t2);
  transition: transform 400ms ease, color 400ms ease, box-shadow 400ms ease;
}
.iosguide li b {
  color: var(--t1);
}
.iosguide li .g {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-md);
  background: var(--forest);
  color: #fff;
}
.iosguide li .g .lg {
  width: 2.5rem;
  height: 2.5rem;
}
.iosguide li.on {
  color: var(--t1);
  transform: scale(1.02);
  box-shadow: var(--sh);
}
.iosguide li.on .g {
  color: var(--lime);
}

/* Installing: calm, on the brand's forest, until Chrome says it is done. */
.instl-busy {
  position: absolute;
  inset: 0;
  z-index: 130;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  background: #0a3f32;
  color: #fff;
  text-align: center;
}
.instl-busy h1 {
  margin: 1.25rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.instl-busy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--t-bd);
}
.instl-mark {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
}
.instl-mark .mk {
  width: 100%;
  height: 100%;
}
.instl-mark .lg-bar-1 {
  animation: instl-bar 1.8s ease-in-out infinite;
  transform-origin: 16% 35%;
}
.instl-mark .lg-bar-2 {
  animation: instl-bar 1.8s ease-in-out 0.3s infinite;
  transform-origin: 16% 65%;
}
.instl-ring {
  position: absolute;
  inset: -0.75rem;
  border-radius: 2rem;
  border: 0.1875rem solid rgba(226, 228, 26, 0.18);
  border-top-color: #e2e41a;
  animation: instl-spin 1.4s linear infinite;
}
@keyframes instl-bar {
  0%,
  100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(0.72);
  }
}
@keyframes instl-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .instl-mark .lg-bar-1,
  .instl-mark .lg-bar-2,
  .instl-ring {
    animation: none;
  }
  .iosguide li {
    transition: none;
  }
}
/* Relynked's own install screen, the pill on a computer and the banner on
   Home (next/screens/InstallApp.tsx, next/ui/InstallOffer.tsx), on top of the
   shared parts in ./install.css. Relynked only: Relynked Staff never loads
   this file. The app's own tokens throughout. Colour on icons, dots and
   figures only, never a side edge. Every movement stops under reduced motion. */

/* ── Relynked's own install screen (next/screens/InstallApp.tsx) ───────
   The first thing a phone or tablet browser shows, before sign in or sign
   up: the mark and the word, one line on why, one big button and a quiet
   way past it. Centred, because there is one thing to do here. */
.instl-page {
  align-items: stretch;
}
/* In a wide main area (a tablet opening it from Home's banner) the same
   column a phone has, centred, rather than a button the width of the window. */
.fullpage.instl-page {
  padding-left: max(1.125rem, calc((100% - 28rem) / 2));
  padding-right: max(1.125rem, calc((100% - 28rem) / 2));
}
.instl-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.instl-hero .instl-tile {
  width: 5rem;
  height: 5rem;
  flex: none;
  /* The tile's corners are in the drawing, so the shadow follows the
     drawing, not the square box around it. */
  filter: drop-shadow(0 0.75rem 1.5rem rgba(10, 63, 50, 0.28));
}
.instl-word {
  margin-top: 1.125rem;
  font-size: 2.375rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--t1);
}
.instl-word sup {
  font-size: 0.3em;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: top;
  position: relative;
  top: 0.2em;
  margin-left: 0.1em;
  color: var(--t2);
}
.fullpage p.instl-why {
  margin-top: 0.875rem;
  max-width: 20rem;
  font-size: 1.0625rem;
  line-height: 1.45;
  text-wrap: balance;
}
.instl-act {
  display: flex;
  flex-direction: column;
}
.btn.instl-go {
  min-height: 3.75rem;
  font-size: 1.0625rem;
  gap: 0.625rem;
}
.btn.instl-go svg {
  width: 1.375rem;
  height: 1.375rem;
}
/* Where this browser cannot install: what it is, then the steps. */
.fullpage p.instl-say {
  margin: 0 0 0.25rem;
  font-size: var(--t-bd);
  line-height: 1.45;
  color: var(--t2);
  text-align: center;
  text-wrap: balance;
}
.instl-say b {
  color: var(--t1);
}
.instl-act .iosguide {
  margin: 0.625rem 0 1rem;
}
.instl-act .iosguide li .g svg:not(.lg) {
  width: 1.25rem;
  height: 1.25rem;
}
/* The mark, the word, the line and then the button arrive in turn. */
@keyframes instl-rise {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes instl-land {
  0% {
    opacity: 0;
    transform: translateY(-0.5rem) scale(0.86);
  }
  60% {
    opacity: 1;
    transform: translateY(0.125rem) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
.instl-hero .instl-tile {
  animation: instl-land 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.instl-hero .instl-word {
  animation: instl-rise 520ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms both;
}
.instl-hero .instl-why {
  animation: instl-rise 520ms cubic-bezier(0.2, 0.8, 0.2, 1) 200ms both;
}
.instl-act {
  animation: instl-rise 520ms cubic-bezier(0.2, 0.8, 0.2, 1) 300ms both;
}

/* ── the pill on a computer (ui/InstallOffer.tsx) ──────────────────────
   Small and closable, in Home's top bar, or in the corner of the forest
   ground behind sign in. Never a screen in the way. */
.instl-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  height: 2.25rem;
  padding: 0 0.25rem 0 0.25rem;
  border-radius: var(--r-pill);
  background: var(--fill);
  color: var(--t1);
  flex: none;
}
.instl-pill button {
  padding: 0;
  font: inherit;
  color: inherit;
}
.instl-pill .go {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  height: 100%;
  padding: 0 0.375rem 0 0.625rem;
  font-size: var(--t-sm);
  font-weight: 700;
  white-space: nowrap;
}
.instl-pill .go svg {
  width: 1.0625rem;
  height: 1.0625rem;
  color: var(--accent-ink);
}
.instl-pill .x {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--t2);
}
.instl-pill .x svg {
  width: 0.875rem;
  height: 0.875rem;
}
.instl-pill .go:focus-visible,
.instl-pill .x:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 1px;
  border-radius: var(--r-pill);
}
.instl-pill.ground {
  position: absolute;
  top: calc(1.25 * var(--fix));
  right: calc(1.5 * var(--fix));
  z-index: 2;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}
.instl-pill.ground .go svg {
  color: var(--lime);
}
.instl-pill.ground .x {
  color: rgba(255, 255, 255, 0.72);
}
.instl-pill.ground .go:focus-visible,
.instl-pill.ground .x:focus-visible {
  outline-color: var(--lime);
}

/* ── the banner on Home, later (ui/InstallOffer.tsx) ───────────────────
   A browser user who chose to carry on there: after three opens and never
   more than once a week. A card, the tile, two lines, Install and a close. */
.instl-banner {
  margin: 0.75rem 1.125rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.375rem 0.75rem 0.875rem;
  border-radius: 1rem;
  background: var(--card);
  border: var(--hair) solid var(--line);
  box-shadow: var(--sh);
}
.instl-banner .lg {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
}
.instl-banner .tx {
  flex: 1;
  min-width: 0;
}
.instl-banner .tx b {
  display: block;
  font-size: var(--t-sm);
  font-weight: 700;
  line-height: 1.3;
  color: var(--t1);
}
.instl-banner .tx span {
  display: block;
  margin-top: 0.125rem;
  font-size: var(--t-xs);
  line-height: 1.35;
  color: var(--t2);
}
.instl-banner .go {
  flex: none;
  height: 2.25rem;
  padding: 0 0.9375rem;
  border-radius: var(--r-pill);
  background: var(--forest);
  color: #fff;
  font-size: var(--t-13);
  font-weight: 700;
}
.instl-banner .x {
  flex: none;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--t2);
}
.instl-banner .x svg {
  width: 0.875rem;
  height: 0.875rem;
}

@media (prefers-reduced-motion: reduce) {
  .instl-hero .instl-tile,
  .instl-hero .instl-word,
  .instl-hero .instl-why,
  .instl-act {
    animation: none;
  }
}

/* ── an app's own browser, above the password (ui/InAppNote.tsx) ───────
   Security review 2026-10-10, web-21: on Sign in and Sign up inside
   Instagram, Facebook or TikTok, one line on where the password is safer,
   and the way out. Amber like every caution, on the whole card, never an
   edge. */
.inapp-note {
  margin: 0.25rem 0 1rem;
  padding: 0.75rem 0.875rem 0.875rem;
  border-radius: var(--r-lg);
  background: var(--amber);
  text-align: left;
}
/* Classed, so a sheet's or a Remy card's own paragraph rules do not reach it. */
.inapp-note .inapp-line {
  margin: 0;
  font-size: var(--t-sm);
  font-weight: 600;
  line-height: 1.4;
  color: var(--t1);
}
.btn.inapp-go {
  margin-top: 0.625rem;
  min-height: 2.75rem;
  font-size: var(--t-sm);
}
/* ══ Jobs and quotes (server B12): Home's Jobs due card, the jobs list, and the bell's item sheet, drawn to the
   founder's dark mockups (lime #dcef4e on near black, bold row titles, grey #a3aaae lines, no words under headings)
   and the approved small-app board "A mechanic: a car ready to collect" (MechanicReady). Light and dark from the app's
   own tokens; the few --wk-* tokens are only where they differ, each with both dark selectors. Sizes through --px, so
   they grow with Text size; every tap target is at least 44px. ══ */

:root {
  --wk-edge: var(--line);
  --wk-sub: #5f676b;
  --wk-primary: var(--forest);
  --wk-on-primary: #fff;
  --wk-second-edge: color-mix(in srgb, var(--t1) 26%, var(--card));
  --wk-ready: var(--forest);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wk-edge: #2a2e2f;
    --wk-sub: #a3aaae;
    --wk-primary: var(--lime);
    --wk-on-primary: #0b0c0d;
    --wk-second-edge: #3a3f41;
    --wk-ready: var(--lime);
  }
}
:root[data-theme="dark"] {
  --wk-edge: #2a2e2f;
  --wk-sub: #a3aaae;
  --wk-primary: var(--lime);
  --wk-on-primary: #0b0c0d;
  --wk-second-edge: #3a3f41;
  --wk-ready: var(--lime);
}

/* Home: Jobs due, one card, rows inside. */
.wk-due {
  all: unset;
  box-sizing: border-box;
  display: block;
  background: var(--card);
  border: var(--hair, 1px) solid var(--wk-edge);
  border-radius: calc(18 * var(--px));
  overflow: hidden;
  color: var(--t1);
  box-shadow: var(--sh);
  cursor: pointer;
}
.wk-due:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}
.wk-due-head {
  display: flex;
  align-items: baseline;
  gap: calc(8 * var(--px));
  padding: calc(14 * var(--px)) calc(16 * var(--px)) calc(10 * var(--px));
}
.wk-due-head b {
  flex: 1;
  font-size: var(--fs-head);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.wk-due-head .n {
  font-size: var(--fs-row);
  font-weight: 600;
  color: var(--wk-sub);
}
.wk-row {
  display: flex;
  flex-direction: column;
  gap: calc(3 * var(--px));
  padding: calc(12 * var(--px)) calc(16 * var(--px));
  border-top: var(--hair, 1px) solid var(--wk-edge);
  min-height: calc(44 * var(--px));
  box-sizing: border-box;
}
.wk-row b {
  font-size: var(--fs-row);
  font-weight: 600;
}
.wk-row span {
  font-size: var(--fs-body);
  color: var(--wk-sub);
}
.wk-row .ready {
  color: var(--wk-ready);
  font-weight: 700;
}
.wk-empty {
  padding: 0 calc(16 * var(--px)) calc(14 * var(--px));
  font-size: var(--fs-body);
  color: var(--wk-sub);
}

/* The jobs list. */
.wk-page {
  padding: calc(8 * var(--px)) calc(16 * var(--px)) calc(24 * var(--px));
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--px));
}
.wk-list {
  background: var(--card);
  border: var(--hair, 1px) solid var(--wk-edge);
  border-radius: calc(18 * var(--px));
  overflow: hidden;
}
.wk-list .wk-row:first-child {
  border-top: 0;
}

/* The bell's item sheet (1.9.3): the question as the title, at most two grey lines, two buttons. */
.wk-sheet {
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
  padding: calc(4 * var(--px)) calc(4 * var(--px)) calc(8 * var(--px));
}
.wk-sheet h1 {
  margin: 0;
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.wk-sheet .lines {
  font-size: var(--fs-row);
  color: var(--wk-sub);
  line-height: 1.4;
}
.wk-sheet .warn {
  font-size: var(--fs-body);
  font-weight: 600;
}
.wk-sheet .done {
  font-size: var(--fs-row);
  font-weight: 600;
  color: var(--wk-ready);
}
.wk-buttons {
  margin-top: calc(14 * var(--px));
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
}
.wk-first,
.wk-second,
.wk-reason {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 calc(14 * var(--px));
  min-height: calc(52 * var(--px));
  border-radius: calc(14 * var(--px));
  font-family: inherit;
  font-size: var(--fs-row);
  cursor: pointer;
}
.wk-first {
  border: 0;
  background: var(--wk-primary);
  color: var(--wk-on-primary);
  font-weight: 700;
}
.wk-second,
.wk-reason {
  border: var(--hair, 1px) solid var(--wk-second-edge);
  background: transparent;
  color: var(--t1);
  font-weight: 600;
}
.wk-first:disabled,
.wk-second:disabled {
  opacity: 0.6;
}
.wk-reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(10 * var(--px));
}
.wk-error {
  font-size: var(--fs-body);
  font-weight: 600;
}
/* ══ The small app (assistant-first B3): Home's cards, the bell, its hover card, the bell sheet, item sheets, the
   catalogue tab, Settings and the tab bar, drawn to the founder's boards of 9 Nov 2026 (near black ground, #17191a
   cards with a #2a2e2f edge, bold white row titles, grey #a3aaae lines, one lime primary).
   MOCKUP PARITY (the founder on nana: "The UI you gave is not the same as what we agreed"): every size, radius, padding,
   font size and weight below is the board's own, read from its markup (small-app/project/*.dc.html). The app's tokens,
   so light mode follows them; the few --sa-* tokens hold the boards' own dark greys where no app token matches, each
   under both dark selectors (as styles/work.css does).
   SIZES ARE THE BOARDS' PIXELS at 390 wide, in --px so they grow with the person's text size. Every tap target is at
   least 44px: where the board draws a smaller control, an invisible ring takes it to 44. */

:root {
  --sa-edge: var(--oa-edge, #e4e7e7);
  --sa-chip: var(--fill);
  --sa-money: var(--forest-2);
  /* The boards' grey line, their button outline, the hairline under a sheet's header, the hover card, the tab bar. */
  --sa-sub: var(--t2);
  --sa-line: var(--sa-edge);
  --sa-hair: var(--sa-edge);
  --sa-pop: var(--card);
  --sa-chev: var(--t3);
  --sa-out: var(--oa-out-ink, var(--red));
  --sa-bar: var(--glass);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sa-money: var(--forest);
    --sa-sub: #a3aaae;
    --sa-line: #3a3f41;
    --sa-hair: #1f2223;
    --sa-pop: #1d2021;
    --sa-chev: #8a9296;
    --sa-out: #ff8a80;
    --sa-bar: rgba(23, 25, 26, 0.92);
    --sa-sug: #161a12;
    --sa-sug-edge: #4d5a1c;
  }
}
:root[data-theme="dark"] {
  --sa-money: var(--forest);
  --sa-sub: #a3aaae;
  --sa-line: #3a3f41;
  --sa-hair: #1f2223;
  --sa-pop: #1d2021;
  --sa-chev: #8a9296;
  --sa-out: #ff8a80;
  --sa-bar: rgba(23, 25, 26, 0.92);
  --sa-sug: #161a12;
  --sa-sug-edge: #4d5a1c;
}
/* Remy suggests on the small Home in dark (styles/suggests.css), in the boards' own olive and edge (board Main). Set
   on Home itself, so it wins over the app-wide tokens whichever sheet loads last. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sa-home {
    --sg-bg: var(--sa-sug);
    --sg-edge: var(--sa-sug-edge);
  }
}
:root[data-theme="dark"] .sa-home {
  --sg-bg: var(--sa-sug);
  --sg-edge: var(--sa-sug-edge);
}
/* Its buttons as the boards draw every one: the near black ink on lime, Not now in the boards' outline grey. */
.sa-home .sg-yes {
  color: #0b0c0d;
}
.sa-home .sg-no {
  border-color: var(--sa-line);
}

/* ── the tab bar: the boards' bar and pill with today's glyphs (the founder, 11 Nov 2026: "keep the current icons where
   possible just make sure everything else is 1:1"). ICONS ONLY since 12 Nov 2026 (the founder: "Remove name of pages
   from nav bar, that way the nav bar should become slimmer as its so fat right now"): 52 high, not the board's 62; each
   tab's word is its aria-label. Every tab is still a 44px target the width of its column (52 - 2 border - 2 x 3
   padding); the lime pill is drawn round the icon alone (60 by 40), not across the whole column. No counts: no board
   draws one. The catalogue tab's word and glyph by what the business is about: shell/catalogueTab.ts. ── */
.tabs.plain {
  left: calc(14 * var(--fix) / 16);
  right: calc(14 * var(--fix) / 16);
  bottom: calc(20 * var(--fix) / 16);
  bottom: max(calc(20 * var(--fix) / 16), env(safe-area-inset-bottom));
  height: calc(52 * var(--fix) / 16);
  border-radius: calc(26 * var(--fix) / 16);
  background: var(--sa-bar);
  border: 1px solid var(--sa-edge);
  box-shadow: none;
  padding: calc(3 * var(--fix) / 16);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(var(--sa-tabs, 4), minmax(0, 1fr));
}
.tabs.plain button {
  flex-direction: column;
  min-height: 44px;
  border-radius: calc(22 * var(--fix) / 16);
  color: var(--sa-sub);
  min-width: 0;
  isolation: isolate;
}
/* The pill: round the icon, behind it, the column keeps the tap. */
.tabs.plain button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(60 * var(--fix) / 16);
  max-width: 100%;
  height: calc(40 * var(--fix) / 16);
  transform: translate(-50%, -50%);
  border-radius: calc(20 * var(--fix) / 16);
  background: transparent;
  z-index: -1;
}
.tabs.plain button.on {
  background: none;
  color: #0b0c0d;
}
.tabs.plain button.on::before {
  background: var(--lime);
}
.tabs.plain button:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: -2px;
}

/* ── the header and the bell ── */
.sa-head {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
  padding: calc(18 * var(--px)) calc(16 * var(--px)) calc(6 * var(--px));
}
.sa-biz {
  all: unset;
  box-sizing: border-box;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
  min-height: 44px;
  cursor: pointer;
}
.sa-tile {
  flex: none;
  width: calc(44 * var(--px));
  height: calc(44 * var(--px));
  border-radius: calc(14 * var(--px));
  /* The boards' tile: the forest square with the lime initials, for every business. */
  background: var(--forest);
  color: var(--lime);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: var(--fs-row);
  font-weight: 600;
}
.sa-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sa-biz .tx {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sa-biz .nm {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--px));
  font-size: var(--fs-head);
  font-weight: 700;
  color: var(--t1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sa-role {
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--sa-sub);
  background: var(--fill);
  border-radius: calc(8 * var(--px));
  padding: calc(3 * var(--px)) calc(8 * var(--px));
}
.sa-biz .rl {
  font-size: var(--fs-meta);
  color: var(--sa-sub);
}
.sa-bell {
  all: unset;
  box-sizing: border-box;
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--card);
  color: var(--t1);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
}
.sa-bell .ico {
  width: 20px;
  height: 20px;
}
.sa-bell-n {
  position: absolute;
  top: -3px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  box-sizing: border-box;
  border-radius: 11px;
  border: 2px solid var(--bg);
  background: var(--lime);
  color: #0b0c0d;
  font-size: var(--fs-micro);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.sa-bellsheet .sa-said {
  margin: 0 0 calc(12 * var(--px));
}
.sa-said {
  margin: calc(4 * var(--px)) calc(16 * var(--px)) 0;
  padding: calc(10 * var(--px)) calc(14 * var(--px));
  border-radius: calc(14 * var(--px));
  background: var(--card);
  color: var(--t1);
  font-size: var(--fs-body);
}

/* ── the cards ── */
.sa-cards {
  display: flex;
  flex-direction: column;
  gap: calc(16 * var(--px));
  padding: calc(10 * var(--px)) calc(16 * var(--px)) 0;
}
.sa-money {
  position: relative;
  line-height: 1.2;
  background: var(--sa-money);
  color: #f2f4f4;
  border-radius: calc(22 * var(--px));
  padding: calc(18 * var(--px));
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--px));
}
/* THE DASHBOARD is the signature Home's own money card (screens/homes/SalesCard.tsx, styles/app.css .sales; the
   founder, 9 Nov 2026: "we must retain this dashboard"), its forest art and white words in both themes. It pads itself
   for a full page there; here it sits on the column like every card under it. */
.sa-cards > .sales {
  margin-left: 0;
  margin-right: 0;
}
/* The counter's own figure (board TundeHome): the grey card, a little tighter. */
.sa-money.plain {
  background: var(--card);
  color: var(--t1);
  border: 1px solid var(--sa-edge);
  padding: calc(16 * var(--px)) calc(18 * var(--px));
  gap: calc(6 * var(--px));
}
.sa-m-top {
  display: flex;
  align-items: center;
  font-size: var(--fs-body);
  opacity: 0.82;
}
.sa-money.plain .sa-m-top,
.sa-money.plain .sa-m-fig span {
  opacity: 1;
  color: var(--sa-sub);
}
.sa-money.plain .sa-m-fig b {
  font-size: var(--fs-hero);
}
/* The money eye, kept and made small (the board has none): a bare 16px eye in the card's top right corner, out of the
   flow so the card keeps the board's height; its tap area is 44px all the same. */
.sa-eye {
  position: absolute;
  top: calc(14 * var(--px));
  right: calc(14 * var(--px));
}
.sa-eye .eyebtn {
  width: 24px;
  height: 24px;
  border: 0;
  color: inherit;
  opacity: 0.82;
}
.sa-eye .eyebtn::after {
  inset: -10px;
}
.sa-eye .eyebtn svg {
  width: 16px;
  height: 16px;
}
.sa-money.plain .sa-eye .eyebtn {
  color: var(--sa-sub);
  opacity: 1;
}
.sa-m-fig {
  display: flex;
  align-items: baseline;
  gap: calc(10 * var(--px));
  flex-wrap: wrap;
}
/* A figure the money eye can hide (ui/Money.tsx .mv) sits on the line, so the card keeps the board's height. */
.sa-money .mv {
  vertical-align: top;
}
.sa-m-fig b {
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.sa-m-fig span,
.sa-m-week {
  font-size: var(--fs-row);
  opacity: 0.82;
}
/* New sale on the counter's Home (board TundeHome): one lime button, 56 high. */
.sa-sale {
  all: unset;
  box-sizing: border-box;
  height: calc(56 * var(--px));
  border-radius: calc(16 * var(--px));
  background: var(--lime);
  color: #0b0c0d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(10 * var(--px));
  font-size: var(--fs-row);
  font-weight: 600;
  cursor: pointer;
}
.sa-sale svg {
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
}
.sa-sale:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}
.sa-m-week {
  font-size: var(--fs-meta);
}

.sa-ask {
  background: var(--card);
  border: 1px solid var(--sa-edge);
  border-radius: calc(22 * var(--px));
  padding: calc(14 * var(--px)) calc(16 * var(--px));
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--px));
}
.sa-ask-box {
  all: unset;
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
  cursor: pointer;
  font-size: var(--fs-row);
  color: var(--sa-sub);
}
/* 36 high as on the board; its tap area reaches 44. */
.sa-ask-box::after {
  content: "";
  position: absolute;
  inset: -4px 0;
}
/* Remy on the board: the forest circle with the lime dot. */
.sa-ask-box .orb {
  width: calc(36 * var(--px));
  height: calc(36 * var(--px));
  border-radius: 50%;
  background: var(--forest);
  display: grid;
  place-items: center;
  flex: none;
}
.sa-ask-box .orb i {
  width: calc(12 * var(--px));
  height: calc(12 * var(--px));
  border-radius: 50%;
  background: var(--lime);
}
.sa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: calc(8 * var(--px));
}
.sa-chip {
  all: unset;
  box-sizing: border-box;
  position: relative;
  font-size: var(--fs-meta);
  line-height: 1.2;
  padding: calc(8 * var(--px)) calc(12 * var(--px));
  border-radius: calc(16 * var(--px));
  background: var(--sa-chip);
  color: var(--t1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
/* The board's chip is 32 high; its tap area reaches 44. */
.sa-chip::after {
  content: "";
  position: absolute;
  inset: -6px 0;
}

.sa-list {
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
}
.sa-lhead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 calc(4 * var(--px));
}
.sa-lhead b {
  font-size: var(--fs-head);
  font-weight: 700;
  color: var(--t1);
}
.sa-see {
  all: unset;
  position: relative;
  cursor: pointer;
  font-size: var(--fs-meta);
  color: var(--accent-ink);
}
/* The board's words alone; the tap area is 44 around them. */
.sa-see::after {
  content: "";
  position: absolute;
  inset: -14px -10px;
}
.sa-date {
  font-size: var(--fs-meta);
  color: var(--sa-sub);
}
.sa-rows {
  background: var(--card);
  border: 1px solid var(--sa-edge);
  border-radius: calc(18 * var(--px));
  overflow: hidden;
}
.sa-brow,
.sa-irow,
.sa-row {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  gap: calc(14 * var(--px));
  padding: calc(13 * var(--px)) calc(16 * var(--px));
  border-bottom: 1px solid var(--sa-edge);
  min-height: 52px;
  color: var(--t1);
}
button.sa-brow,
button.sa-irow,
.sa-row {
  cursor: pointer;
}
.sa-rows > :last-child {
  border-bottom: 0;
}
.sa-brow .t {
  width: calc(64 * var(--px));
  flex: none;
  font-size: var(--fs-row);
}
.sa-brow .w,
.sa-irow .w {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sa-brow .w b,
.sa-irow .w b {
  font-size: var(--fs-row);
  font-weight: 600;
}
.sa-brow .w span {
  font-size: var(--fs-meta);
  color: var(--sa-sub);
}
.sa-brow .p {
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--sa-sub);
}
/* Running low's count (board TundeHome): "6 left", 16 and bold. */
.sa-brow > b.num:not(.t) {
  font-size: var(--fs-row);
  font-weight: 600;
}
.sa-in,
.sa-off {
  font-size: var(--fs-meta);
  font-weight: 700;
  padding: calc(6 * var(--px)) calc(14 * var(--px));
  border-radius: calc(10 * var(--px));
}
.sa-in {
  background: var(--lime);
  color: #0b0c0d;
}
.sa-off {
  background: var(--fill);
  color: var(--sa-sub);
}
.sa-empty-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--sa-edge);
  border-radius: calc(18 * var(--px));
  padding: calc(16 * var(--px));
  color: var(--sa-sub);
  font-size: var(--fs-row);
}
.sa-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--card);
  border: 1px solid var(--sa-edge);
  border-radius: calc(18 * var(--px));
  overflow: hidden;
}
.sa-tiles button {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: calc(2 * var(--px));
  padding: calc(14 * var(--px)) calc(12 * var(--px));
  border-right: 1px solid var(--sa-edge);
}
.sa-tiles button:last-child {
  border-right: 0;
}
.sa-tiles b {
  font-size: var(--fs-title);
  font-weight: 700;
  color: var(--t1);
}
.sa-tiles span {
  font-size: var(--fs-meta);
  color: var(--sa-sub);
}
.sa-owed {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--sa-edge);
  border-radius: calc(18 * var(--px));
  padding: calc(14 * var(--px)) calc(16 * var(--px));
  color: var(--t1);
}
.sa-owed > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sa-owed span span {
  font-size: var(--fs-meta);
  color: var(--sa-sub);
}
.sa-owed b.num {
  font-size: var(--fs-head);
}

/* ── the hover card: over Home, under the bell; it shrinks into the bell when closed ── */
/* The board JoeOpens: the header stays clear (the dim starts under it), the card drops from under the bell. No notch
   (founder, 13 Nov 2026: it showed as a detached diamond): a small gap, and a short fade and scale from the bell. */
.sa-hover-dim {
  position: absolute;
  inset: calc(80 * var(--px)) 0 0;
  /* The one glass's shade (glass.css): the screen stays clear behind the card. */
  background: var(--gl-scrim);
  /* Over the tab bar, under any sheet (.sheetwrap is 120). */
  z-index: 100;
  animation: sa-fade 200ms ease-out both;
}
.sa-hover {
  position: absolute;
  top: calc(78 * var(--px));
  left: calc(12 * var(--px));
  right: calc(12 * var(--px));
  z-index: 101;
  /* The surface is the one glass (glass.css). */
  border-radius: calc(22 * var(--px));
  overflow: hidden;
  /* From the bell: its centre is about 30px in from the right, 26px above the card. */
  transform-origin: calc(100% - 30px) -26px;
  animation: sa-pop 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.sa-hover.out {
  animation: sa-tuck 250ms ease-in both;
}
.sa-hover-dim.out {
  animation: sa-fade 250ms ease-in reverse both;
}
/* A compact glance, not a page (founder, 13 Nov 2026): the title a step under a section head, the rows tight, the X a
   28px circle inside the header row, centred with the title. */
.sa-hover header {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--px));
  padding: calc(12 * var(--px)) calc(12 * var(--px)) calc(10 * var(--px)) calc(14 * var(--px));
}
.sa-hover header b {
  flex: 1;
  font-size: var(--fs-row);
  font-weight: 600;
  color: var(--t1);
}
.sa-hover header .sa-x {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
/* The tap area stays 44px around the small circle. */
.sa-hover header .sa-x::after {
  content: "";
  position: absolute;
  inset: -8px;
}
.sa-hover header .sa-x svg {
  width: 13px;
  height: 13px;
}
.sa-hover .sa-hrow {
  gap: calc(2 * var(--px));
  padding: calc(10 * var(--px)) calc(14 * var(--px));
}
.sa-hover .sa-hrow b {
  font-size: var(--fs-body);
  font-weight: 500;
}
.sa-hover .sa-hrow span {
  font-size: var(--fs-label);
}
.sa-hover .sa-all {
  height: 44px;
  padding: 0 calc(14 * var(--px));
  font-size: var(--fs-meta);
}
.sa-x {
  all: unset;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--fill);
  color: var(--t1);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.sa-x svg {
  width: 18px;
  height: 18px;
}
.sa-hrow {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: calc(3 * var(--px));
  padding: calc(12 * var(--px)) calc(16 * var(--px));
  border-top: 1px solid var(--sa-edge);
  cursor: pointer;
  min-height: 44px;
}
.sa-hrow b,
.sa-row b {
  font-size: var(--fs-row);
  font-weight: 600;
  color: var(--t1);
}
.sa-hrow span,
.sa-row span {
  font-size: var(--fs-body);
  color: var(--sa-sub);
}
.sa-all {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  height: calc(48 * var(--px));
  min-height: 44px;
  padding: 0 calc(16 * var(--px));
  border-top: 1px solid var(--sa-edge);
  font-size: var(--fs-row);
  font-weight: 600;
  color: var(--accent-ink);
  cursor: pointer;
}
@keyframes sa-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes sa-pop {
  from { opacity: 0; transform: scale(0.92) translateY(-4px); }
  to { opacity: 1; transform: none; }
}
@keyframes sa-tuck {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: scale(0.06); }
}
@media (prefers-reduced-motion: reduce) {
  .sa-hover,
  .sa-hover.out {
    animation: sa-fade 200ms linear both;
  }
  .sa-hover.out {
    animation-direction: reverse;
  }
}

/* ── the bell sheet ── */
.sa-bellsheet {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.sa-bellsheet header {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--px));
  padding: calc(16 * var(--px)) calc(16 * var(--px)) calc(12 * var(--px));
  border-bottom: 1px solid var(--sa-hair);
}
.sa-bellsheet header .sa-x {
  background: var(--card);
}
.sa-bellsheet h1 {
  flex: 1;
  margin: 0;
  font-size: var(--fs-head);
  font-weight: 700;
  color: var(--t1);
}
.sa-select {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  font-size: var(--fs-row);
  font-weight: 600;
  color: var(--accent-ink);
  height: 44px;
  padding: 0 calc(14 * var(--px));
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
}
.sa-bellsheet main {
  padding: calc(16 * var(--px));
  display: flex;
  flex-direction: column;
  gap: calc(14 * var(--px));
}
.sa-row {
  flex-direction: column;
  align-items: flex-start;
  gap: calc(3 * var(--px));
  padding: calc(14 * var(--px)) calc(16 * var(--px));
}
.sa-empty {
  color: var(--sa-sub);
  font-size: var(--fs-row);
  padding: calc(8 * var(--px)) calc(16 * var(--px));
}

/* ── an item: the question, two grey lines, two answers ── */
.sa-item-body {
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--px));
  padding-bottom: calc(6 * var(--px));
}
.sa-item-body h2 {
  margin: 0;
  font-size: var(--fs-title);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--t1);
}
.sa-grey {
  margin: 0;
  font-size: var(--fs-row);
  line-height: 1.4;
  color: var(--sa-sub);
}
.sa-err {
  margin: 0;
  font-size: var(--fs-body);
  color: var(--red);
}
.sa-two {
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
  margin-top: calc(14 * var(--px));
}
.sa-yes,
.sa-no,
.sa-soft {
  all: unset;
  box-sizing: border-box;
  min-height: calc(52 * var(--px));
  border-radius: calc(14 * var(--px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(10 * var(--px));
  font-size: var(--fs-row);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  padding: 0 calc(12 * var(--px));
}
.sa-yes {
  background: var(--lime);
  color: #0b0c0d;
}
.sa-yes svg {
  width: 20px;
  height: 20px;
}
.sa-no {
  border: 1px solid var(--sa-line);
  color: var(--t1);
  font-weight: 600;
}
.sa-soft {
  background: var(--fill);
  color: var(--accent-ink);
}
.sa-yes:disabled,
.sa-no:disabled {
  opacity: 0.5;
}
.sa-link {
  all: unset;
  align-self: flex-start;
  cursor: pointer;
  font-size: var(--fs-row);
  font-weight: 600;
  color: var(--accent-ink);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.sa-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--fs-body);
  color: var(--sa-sub);
}
.sa-field input {
  font: inherit;
  font-size: var(--fs-input);
  color: var(--t1);
  background: var(--card);
  border: 1px solid var(--sa-edge);
  border-radius: calc(12 * var(--px));
  padding: calc(12 * var(--px));
  min-height: 48px;
  box-sizing: border-box;
}
.sa-warn {
  all: unset;
  box-sizing: border-box;
  display: flex;
  gap: calc(10 * var(--px));
  align-items: flex-start;
  padding: calc(12 * var(--px));
  border-radius: calc(12 * var(--px));
  /* The attention colour, never red (payments plan 3.3): a check is something to look at, not an accusation. */
  border: 1px solid var(--orange);
  color: var(--t1);
  font-size: var(--fs-body);
  cursor: pointer;
}
.sa-warn svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--orange);
}
/* Ticked means "I have looked at this", never "paid": no green. */
.sa-warn.on svg {
  color: var(--t1);
}
.sa-warn-line {
  display: block;
}
.sa-warn-line + .sa-warn-line {
  margin-top: calc(6 * var(--px));
}

/* Remy's own receipt card (3.2.2 rule 6; the founder's PaymentItem board): the customer's claim, never proof. The name
   is large, the bank is a neutral two letter badge with its name (D2: no logos, no brand colours), nothing is green. */
.sa-receipt {
  display: flex;
  flex-direction: column;
  gap: calc(14 * var(--px));
  background: var(--card);
  border: 1px solid var(--sa-edge);
  border-radius: calc(20 * var(--px));
  padding: calc(18 * var(--px)) calc(18 * var(--px)) calc(6 * var(--px));
  margin-top: calc(6 * var(--px));
}
.sa-r-from {
  font-size: var(--fs-meta);
  color: var(--sa-sub);
}
.sa-r-name {
  font-size: var(--fs-title);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--t1);
  overflow-wrap: anywhere;
}
.sa-receipt:not(.read) .sa-r-name {
  font-size: var(--fs-title);
}
.sa-r-bank {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
  font-size: var(--fs-head);
  font-weight: 600;
  color: var(--t1);
}
.sa-r-badge {
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
  border-radius: calc(12 * var(--px));
  background: var(--sa-edge);
  color: var(--t1);
  font-size: var(--fs-body);
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: none;
}
.sa-r-money {
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--px));
  padding-top: calc(14 * var(--px));
  border-top: 1px solid var(--sa-edge);
}
.sa-r-amt {
  font-size: var(--fs-title);
  font-weight: 700;
  color: var(--t1);
}
.sa-r-meta {
  font-size: var(--fs-row);
  color: var(--sa-sub);
  display: flex;
  align-items: center;
  gap: calc(8 * var(--px));
}
.sa-r-note {
  font-size: var(--fs-body);
  color: var(--sa-sub);
}
.sa-r-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sa-sub);
  flex: none;
  animation: sa-r-pulse 1.2s ease-in-out infinite;
}
@keyframes sa-r-pulse {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sa-r-pulse {
    animation: none;
  }
}
.sa-photo {
  width: 100%;
  border-radius: calc(12 * var(--px));
}

/* ── a payment, as its own page (board PaymentItem): the back button, the question large, Remy's receipt card, two grey
   lines, A different amount came in, and the two answers at the foot ── */
.sa-page {
  position: absolute;
  inset: 0;
  /* Over the bell sheet (100) and the hover (101), under every sheet (.sheetwrap is 120): the PIN and the photo open over it. */
  z-index: 110;
  background: var(--bg);
  color: var(--t1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--px));
  padding: calc(16 * var(--px)) calc(16 * var(--px)) calc(22 * var(--px));
  box-sizing: border-box;
  animation: sa-fade 180ms ease-out both;
}
.sa-page:focus {
  outline: none;
}
.sa-back {
  all: unset;
  box-sizing: border-box;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--card);
  color: var(--t1);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.sa-back svg {
  width: 18px;
  height: 18px;
}
.sa-back:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}
.sa-page .sa-item-body {
  flex: 1;
  gap: calc(12 * var(--px));
  padding: 0;
}
.sa-page .sa-item-body h2 {
  padding: calc(20 * var(--px)) calc(4 * var(--px)) 0;
  font-size: var(--fs-title);
  line-height: 1.15;
}
.sa-page .sa-receipt {
  margin-top: calc(6 * var(--px));
}
.sa-page .sa-lines {
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--px));
  padding: calc(2 * var(--px)) calc(4 * var(--px)) 0;
}
.sa-page .sa-lines .sa-grey {
  font-size: var(--fs-row);
  line-height: 1.3;
}
.sa-page .sa-item-body > .sa-link,
.sa-page .sa-item-body > .sa-field,
.sa-page .sa-item-body > .sa-warn {
  margin-left: calc(4 * var(--px));
}
.sa-page .sa-two {
  margin-top: auto;
  padding-top: calc(14 * var(--px));
}

/* ── the catalogue tab ── */
/* Board Services (and Listings): the title and the lime +, the search, then each group's heading and one card of rows
   with hairlines between them, then Add more. 16 between each, as the board's column. */
.sa-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(18 * var(--px)) calc(16 * var(--px)) 0;
}
.sa-cat-head h1 {
  margin: 0;
  font-size: var(--fs-title);
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.02em;
}
.sa-plus {
  all: unset;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--lime);
  color: #0b0c0d;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.sa-plus svg {
  width: 22px;
  height: 22px;
}
.sa-search {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--px));
  margin: calc(16 * var(--px)) calc(16 * var(--px)) 0;
  padding: 0 calc(14 * var(--px));
  height: calc(46 * var(--px));
  min-height: 44px;
  box-sizing: border-box;
  background: var(--card);
  border: 1px solid var(--sa-edge);
  border-radius: calc(14 * var(--px));
  color: var(--sa-sub);
}
.sa-search svg {
  width: 18px;
  height: 18px;
}
.sa-search input {
  all: unset;
  flex: 1;
  min-width: 0;
  font-size: var(--fs-input);
  color: var(--t1);
}
.sa-search input::placeholder {
  color: var(--sa-sub);
}
.sa-side {
  padding: 0 calc(16 * var(--px));
}
.sa-side-h {
  margin: calc(14 * var(--px)) calc(4 * var(--px)) 0;
  font-size: var(--fs-head);
  font-weight: 700;
  color: var(--t1);
}
.sa-group {
  margin-top: calc(16 * var(--px));
}
.sa-group h3 {
  margin: 0 calc(4 * var(--px)) calc(10 * var(--px));
  font-size: var(--fs-row);
  font-weight: 600;
  color: var(--sa-sub);
}
/* One item's row: its name, its time or count, and its price; "Not today" greys the price. */
.sa-irow {
  gap: calc(12 * var(--px));
  padding: calc(14 * var(--px)) calc(16 * var(--px));
}
.sa-irow .w {
  gap: calc(4 * var(--px));
}
.sa-irow .w b {
  font-size: var(--fs-row);
}
.sa-irow .w span {
  font-size: var(--fs-body);
  color: var(--sa-sub);
}
.sa-irow .e {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--px));
  flex: none;
}
.sa-irow .e b {
  font-size: var(--fs-row);
  font-weight: 600;
}
.sa-irow .e b.off {
  color: var(--sa-sub);
}
.sa-badge {
  font-size: var(--fs-label);
  font-weight: 700;
  padding: calc(4 * var(--px)) calc(9 * var(--px));
  border-radius: calc(8 * var(--px));
}
.sa-badge.available {
  background: var(--lime);
  color: #0b0c0d;
}
.sa-badge.held {
  border: 1px solid var(--lime);
  color: var(--accent-ink);
}
.sa-badge.sold {
  background: var(--fill);
  color: var(--sa-sub);
}
.sa-badge {
  flex: none;
  border-radius: calc(10 * var(--px));
  font-weight: 700;
}

/* ── the agency's listings (board Listings): each its own card, the first with its picture large ── */
.sa-lists {
  display: flex;
  flex-direction: column;
  gap: calc(14 * var(--px));
  padding: calc(14 * var(--px)) calc(16 * var(--px)) 0;
}
.sa-lcard {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
  padding: calc(12 * var(--px)) calc(14 * var(--px));
  background: var(--card);
  border: 1px solid var(--sa-edge);
  border-radius: calc(18 * var(--px));
  color: var(--t1);
}
button.sa-lcard {
  cursor: pointer;
}
.sa-lcard:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}
.sa-lpic {
  flex: none;
  width: calc(64 * var(--px));
  height: calc(64 * var(--px));
  border-radius: calc(12 * var(--px));
  background: var(--fill);
  color: var(--t3);
  display: grid;
  place-items: center;
}
.sa-lpic svg {
  width: calc(26 * var(--px));
  height: calc(26 * var(--px));
}
.sa-lcard .w {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: calc(3 * var(--px));
}
.sa-lcard .w b:first-child {
  font-size: var(--fs-row);
  font-weight: 600;
}
.sa-lcard .w > span:not(.top) {
  font-size: var(--fs-body);
  color: var(--sa-sub);
}
.sa-lcard .w b.pr {
  font-size: var(--fs-row);
  font-weight: 600;
}
.sa-lcard.big {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.sa-lcard.big .sa-lpic {
  width: auto;
  height: calc(120 * var(--px));
  border-radius: 0;
}
.sa-lcard.big .sa-lpic svg {
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
}
.sa-lcard.big .w {
  padding: calc(12 * var(--px)) calc(14 * var(--px));
  gap: calc(4 * var(--px));
}
.sa-lcard.big .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(10 * var(--px));
}
.sa-lcard.big .w b.pr {
  font-size: var(--fs-row);
}
/* Add more (board Services): a dashed card, its heading, Add by hand and Send Remy a price list side by side. */
.sa-more {
  margin: calc(16 * var(--px)) calc(16 * var(--px)) 0;
  padding: calc(14 * var(--px)) calc(16 * var(--px));
  background: var(--card);
  border: 1px dashed var(--sa-line);
  border-radius: calc(18 * var(--px));
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
  color: var(--t1);
}
.sa-lists + .sa-more {
  margin-top: calc(14 * var(--px));
}
.sa-more > b {
  font-size: var(--fs-row);
}
.sa-two-row {
  display: flex;
  gap: calc(10 * var(--px));
}
.sa-add {
  all: unset;
  box-sizing: border-box;
  flex: 1;
  min-width: 0;
  min-height: calc(44 * var(--px));
  padding: calc(4 * var(--px)) calc(8 * var(--px));
  border-radius: calc(12 * var(--px));
  border: 1px solid var(--sa-line);
  color: var(--t1);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.sa-add.remy {
  border: 0;
  background: var(--fill);
  color: var(--accent-ink);
}
.sa-add:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}

/* ── Settings (boards Settings and StaffSettings): the round avatar, each section one card with its name inside it in
   small grey capitals, rows with icon tiles, the switch in lime, Sign out an outlined button. The same rows as the
   classic Settings (screens/SettingsOne.tsx), only drawn as the board. ── */
.sa-set-title {
  padding: calc(18 * var(--px)) calc(16 * var(--px)) 0;
}
.sa-set-title h1 {
  margin: 0;
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--t1);
}
.sa-set .ost {
  padding: calc(14 * var(--px)) calc(16 * var(--px)) 0;
  gap: calc(14 * var(--px));
}
.sa-set .ost-top {
  gap: calc(14 * var(--px));
  padding: calc(14 * var(--px)) calc(16 * var(--px));
  border-radius: calc(18 * var(--px));
  border-color: var(--sa-edge);
}
/* The card holds two buttons (12 Nov 2026): the avatar with Vettar's pencil (styles/my-photo.css .set-ava), then the
   name, which opens Your profile. */
.sa-set .sa-me {
  cursor: default;
}
.sa-me-open {
  all: unset;
  box-sizing: border-box;
  flex: 1;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: calc(14 * var(--px));
  cursor: pointer;
}
.sa-me-open:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}
.sa-set .sa-me .set-edit {
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
  right: -4px;
  bottom: -4px;
  border-color: var(--card);
}
.sa-set .sa-me .set-edit .ico {
  width: calc(12 * var(--px));
  height: calc(12 * var(--px));
}
.sa-set .ost-ava {
  width: calc(52 * var(--px));
  height: calc(52 * var(--px));
  font-size: var(--fs-head);
  letter-spacing: 0;
  overflow: hidden;
}
.sa-set .ost-who {
  gap: calc(3 * var(--px));
}
.sa-set .ost-who b {
  font-size: var(--fs-row);
  letter-spacing: 0;
}
.sa-set .ost-who span {
  font-size: var(--fs-body);
  color: var(--sa-sub);
}
.sa-set .ost-sec,
.sa-set .ost-top + .ost-sec {
  margin-top: 0;
}
.sa-set .ost-card {
  margin-top: 0;
  border-radius: calc(18 * var(--px));
  border-color: var(--sa-edge);
}
.sa-cap {
  margin: 0;
  padding: calc(12 * var(--px)) calc(16 * var(--px)) calc(2 * var(--px));
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sa-sub);
}
.sa-set .ost-row {
  gap: calc(12 * var(--px));
  padding: calc(12 * var(--px)) calc(16 * var(--px));
  border-bottom-color: var(--sa-edge);
}
.sa-set .ost-tile {
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
  border-radius: calc(12 * var(--px));
  background: var(--fill);
  color: var(--ac-icon, var(--lime));
}
.sa-set .ost-tile .lico {
  stroke-width: 1.8;
}
.sa-set .ost-main {
  gap: calc(3 * var(--px));
}
.sa-set .ost-main span {
  color: var(--sa-sub);
  white-space: normal;
}
.sa-set .ost-chev {
  width: 18px;
  height: 18px;
  color: var(--sa-chev);
}
/* The board's switch: a lime track with the dark knob at its end when on. */
.sa-set .tog2 {
  width: calc(50 * var(--px));
  height: calc(30 * var(--px));
  border-radius: calc(15 * var(--px));
  background: var(--sa-edge);
}
.sa-set .tog2 i {
  top: calc(3 * var(--px));
  left: calc(3 * var(--px));
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
  background: var(--sa-sub);
  box-shadow: none;
}
.sa-set .tog2.on {
  background: var(--lime);
}
.sa-set .tog2.on i {
  left: calc(23 * var(--px));
  background: #0b0c0d;
}
.sa-out {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  height: calc(48 * var(--px));
  min-height: 44px;
  border-radius: calc(14 * var(--px));
  border: 1px solid var(--sa-line);
  color: var(--sa-out);
  font-size: var(--fs-row);
  font-weight: 600;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.sa-out:focus-visible {
  outline: 2px solid var(--sa-out);
  outline-offset: 2px;
}
.sa-set .ost-del {
  margin-top: 0;
}
/* An item's grey lines (MechanicReady: one under the other, no gap), 15px whatever a sheet's own paragraphs are. */
.sa-lines {
  display: flex;
  flex-direction: column;
}
.sheet .sa-lines p.sa-grey {
  margin: 0;
  font-weight: 400;
  font-size: var(--fs-row);
  line-height: 1.4;
  color: var(--sa-sub);
}

/* ── the team's Home cards (server B7b, home/TeamSections.tsx), drawn as the boards KemiHome and BisiWhoIsIn ── */
/* A booked person's dashboard: the grey card, "5 clients" large, "2 done" and the next client in grey. */
.sa-money.plain.day .sa-m-fig b {
  font-size: var(--fs-hero);
}
.sa-money.plain .td-next {
  font-size: var(--fs-body);
  color: var(--sa-sub);
}
.sa-rows .td-tag {
  flex: none;
  font-size: var(--fs-label);
  font-weight: 700;
  padding: calc(4 * var(--px)) calc(9 * var(--px));
  border-radius: calc(10 * var(--px));
  background: transparent;
  color: var(--sa-sub);
}
.sa-rows .td-tag.next {
  background: var(--lime);
  color: #0b0c0d;
}
/* "Asked for you" is lime words; "New" an outlined pill. */
.sa-rows .td-tag.asked {
  padding: 0;
  color: var(--accent-ink);
}
.sa-rows .td-tag.new {
  border: 1px solid var(--sa-line);
  color: var(--t1);
}
/* Who is in today: the name, the grey line, In or Off and the board's switch (52 by 32, lime, the dark knob). */
.sa-rows .tw-row {
  border-bottom-color: var(--sa-edge);
}
.sa-rows .tw-row:last-child {
  border-bottom: 0;
}
.tw-who span {
  color: var(--sa-sub);
}
.tw-row .tog2 {
  width: calc(52 * var(--px));
  height: calc(32 * var(--px));
  border-radius: calc(16 * var(--px));
  border: 0;
  background: var(--sa-edge);
}
.tw-row .tog2 i {
  top: calc(4 * var(--px));
  left: calc(4 * var(--px));
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
  background: var(--sa-sub);
  box-shadow: none;
}
.tw-row .tog2.on {
  background: var(--lime);
}
.tw-row .tog2.on i {
  left: calc(24 * var(--px));
  background: #0b0c0d;
}
.tw-state {
  color: var(--sa-sub);
}
.tw-said span {
  color: var(--sa-sub);
}
.sa-rows .fr-row {
  border-bottom-color: var(--sa-edge);
}

/* ══ THE HOME LOOK OF 13 NOV 2026 (founder's mockup): Remy's own mark on the Ask card (the forest circle with the lime
   dot, back in place of the face doodle, the founder later that day), chips with their icons on one line, an icon
   before each section's head, a tick before an empty row. ══ */
.sa-ask-box .rdot {
  flex: none;
  width: calc(44 * var(--px));
  height: calc(44 * var(--px));
}
.sa-ask .sa-chips {
  flex-wrap: nowrap;
  overflow: hidden;
  padding: 6px 0;
  margin: -6px 0;
}
.sa-ask .sa-chip {
  min-width: 0;
  flex: 0 1 auto;
  gap: calc(5 * var(--px));
  padding-left: calc(10 * var(--px));
  padding-right: calc(10 * var(--px));
  border: 1px solid var(--sa-line);
  background: transparent;
}
.sa-ask .sa-chip .ico,
.sa-ask .sa-chip svg {
  flex: none;
  width: calc(15 * var(--px));
  height: calc(15 * var(--px));
}
.sa-ask .sa-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sa-hd {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--px));
  font-size: var(--fs-head);
  font-weight: 700;
  color: var(--t1);
}
.sa-hd .ico,
.sa-hd svg {
  flex: none;
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
  color: var(--t2);
}
.sa-see {
  font-weight: 600;
}
.sa-empty-card {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
  color: var(--t1);
  font-size: var(--fs-body);
}
.sa-empty-card::before {
  content: "";
  flex: none;
  width: calc(30 * var(--px));
  height: calc(30 * var(--px));
  border-radius: 50%;
  background-color: var(--fill);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c7478' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5l7.5 -8'/%3E%3C/svg%3E");
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
}
/* Dark Home sits a step darker so the doodles around the cards read (the cards keep their own fill). */
.sa-home {
  background-color: var(--bg-deep);
}
/* The first suggestion keeps its words; the second is the one that shortens. */
.sa-ask .sa-chip:first-child {
  flex: none;
}
/* ══ Home's Today for a business that takes bookings (home/TodayFlow.tsx; the founder, 12 Nov 2026, on the references
   he sent: a flow line down the left, a circle per booking, the one to handle now in the accent). Sizes at 390 wide in
   --px. Dark: lime card, near black ink. Light: forest card, white ink. */

:root {
  --tf-on: var(--forest);
  --tf-on-ink: #ffffff;
  --tf-line: var(--sa-edge, #e4e7e7);
  --tf-past: var(--t3);
  --tf-ring: var(--forest);
  --tf-card: var(--card);
  --tf-edge: var(--sa-edge, #e4e7e7);
  --tf-sub: var(--sa-sub, var(--t2));
  --tf-now: var(--forest);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --tf-on: #dcef4e;
    --tf-on-ink: #0b0c0d;
    --tf-line: #2a2e2f;
    --tf-past: #5e6669;
    --tf-ring: #dcef4e;
    --tf-card: #17191a;
    --tf-edge: #2a2e2f;
    --tf-sub: #a3aaae;
    --tf-now: #dcef4e;
  }
}
:root[data-theme="dark"] {
  --tf-on: #dcef4e;
  --tf-on-ink: #0b0c0d;
  --tf-line: #2a2e2f;
  --tf-past: #5e6669;
  --tf-ring: #dcef4e;
  --tf-card: #17191a;
  --tf-edge: #2a2e2f;
  --tf-sub: #a3aaae;
  --tf-now: #dcef4e;
}

.tf {
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
}
.tf-date {
  margin-left: calc(6 * var(--px));
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--tf-sub);
}
.tf-line {
  list-style: none;
  margin: 0;
  padding: 0 0 0 calc(30 * var(--px));
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
}
/* The line, from the first circle to the last. */
.tf-line::before {
  content: "";
  position: absolute;
  left: calc(10 * var(--px));
  top: calc(24 * var(--px));
  bottom: calc(24 * var(--px));
  width: 2px;
  background: var(--tf-line);
}
.tf-row {
  position: relative;
}
.tf-dot {
  position: absolute;
  left: calc(-30 * var(--px) + 11 * var(--px) - 5px);
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  box-sizing: border-box;
  background: var(--bg);
  border: 2px solid var(--tf-sub);
}
.tf-row.past .tf-dot {
  background: var(--tf-past);
  border-color: var(--tf-past);
  width: 8px;
  height: 8px;
  margin-top: -4px;
  left: calc(-30 * var(--px) + 11 * var(--px) - 4px);
}
.tf-row.active .tf-dot {
  width: 18px;
  height: 18px;
  margin-top: -9px;
  left: calc(-30 * var(--px) + 11 * var(--px) - 9px);
  background: var(--tf-ring);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 2px var(--tf-ring);
}
/* Now, when the next one has not started: a short lime mark on the line just above it. */
.tf-now {
  position: absolute;
  left: calc(-30 * var(--px) + 11 * var(--px) - 7px);
  top: calc(-5 * var(--px) - 1px);
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--tf-now);
}
.tf-card {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
  padding: calc(12 * var(--px)) calc(16 * var(--px));
  border-radius: calc(16 * var(--px));
  background: var(--tf-card);
  border: 1px solid var(--tf-edge);
  color: var(--t1);
}
.tf-card .w {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tf-card .w b {
  font-size: var(--fs-row);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tf-card .w span {
  font-size: var(--fs-meta);
  color: var(--tf-sub);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tf-card .tm {
  flex: none;
  font-size: var(--fs-body);
  font-weight: 700;
}
.tf-row.past .tf-card {
  opacity: 0.6;
}
.tf-row.active .tf-card {
  background: var(--tf-on);
  border-color: var(--tf-on);
  color: var(--tf-on-ink);
  padding-top: calc(16 * var(--px));
  padding-bottom: calc(16 * var(--px));
}
.tf-row.active .tf-card .w span {
  color: var(--tf-on-ink);
  opacity: 0.75;
}
.tf-row.active .tf-card .w b {
  font-size: var(--fs-row);
}
.tf-none {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-row);
  color: var(--tf-sub);
}
/* An empty day: the line through its one hollow circle, and the one short line. */
.tf-line:has(.tf-row.blank)::before {
  top: 0;
  bottom: 0;
}
.tf-more {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--accent-ink);
}
/* ══ Remy suggests on Home (server B8; the board Main: "Remy suggests", one line, two buttons, "Why?"). Under the
   dashboard and Ask Remy, never above them. A faint lime card with a lime edge in dark, the forest's in light; one
   lime primary, an outlined Not now, Why? as a link. The app's own tokens only. Every tap target is at least 44px. */

:root {
  --sg-bg: color-mix(in srgb, var(--forest) 5%, var(--card));
  --sg-edge: color-mix(in srgb, var(--forest) 30%, var(--card));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sg-bg: color-mix(in srgb, var(--lime) 6%, var(--card));
    --sg-edge: color-mix(in srgb, var(--lime) 34%, var(--card));
  }
}
:root[data-theme="dark"] {
  --sg-bg: color-mix(in srgb, var(--lime) 6%, var(--card));
  --sg-edge: color-mix(in srgb, var(--lime) 34%, var(--card));
}

.sg-card {
  background: var(--sg-bg);
  border: 1px solid var(--sg-edge);
  border-radius: calc(18 * var(--px));
  padding: calc(14 * var(--px)) calc(16 * var(--px));
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
}
.sg-label {
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--accent-ink);
}
.sg-line {
  font-size: var(--fs-row);
  line-height: 1.4;
  color: var(--t1);
}
.sg-why {
  font-size: var(--fs-meta);
  line-height: 1.4;
  color: var(--t2);
}
.sg-acts {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--px));
}
.sg-yes,
.sg-no {
  all: unset;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 calc(14 * var(--px));
  border-radius: calc(12 * var(--px));
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-body);
  cursor: pointer;
}
.sg-yes {
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 700;
}
.sg-no {
  border: 1px solid color-mix(in srgb, var(--t1) 24%, var(--card));
  color: var(--t1);
  font-weight: 600;
}
.sg-yes:disabled,
.sg-no:disabled {
  opacity: 0.6;
  cursor: default;
}
.sg-whylink {
  all: unset;
  box-sizing: border-box;
  margin-left: auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--accent-ink);
  /* Underlined, as the board Main draws its link. */
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.sg-yes:focus-visible,
.sg-no:focus-visible,
.sg-whylink:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}
.sg-err,
.sg-note {
  font-size: var(--fs-meta);
  color: var(--t2);
  margin: 0;
}
/*
 * The team's cards and Home sections (server B7a and B7b; boards KemiAsks, KemiHome, TundeCounter, TundeHome,
 * FemiAsks, JoeAnswers, JoeAddsTunde, JoeRemoves, BisiWhoIsIn). The founder's mockups: lime on near black in the dark
 * theme, bold row titles, grey lines, no explanation under a heading. Every colour is a token (tokens.css).
 */
.tc-list { display: flex; flex-direction: column; gap: 10px; align-self: stretch; margin-top: 8px; max-width: 520px; }
.tc { box-sizing: border-box; color: var(--t1); font-family: var(--font); }
.tc-receipt { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.tc-receipt.undone { opacity: 0.7; }
.tc-tick { width: 32px; height: 32px; border-radius: 16px; background: var(--lime); color: #0b0c0d; display: grid; place-items: center; flex: none; }
.tc-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-row); }
.tc-tx b { font-size: var(--fs-row); }
.tc-tx span { font-size: var(--fs-meta); color: var(--t2); }
.tc-ghost { min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--t3); background: transparent; color: var(--t1); font: inherit; font-size: var(--fs-meta); font-weight: 700; }
.tc-ask { align-self: flex-start; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 22px; display: flex; gap: 10px; align-items: center; font-size: var(--fs-row); color: var(--t2); }
.tc-ask .tc-tx { font-size: var(--fs-row); color: var(--t2); flex: none; }
.tc-ring { width: 12px; height: 12px; border-radius: 6px; border: 2px solid var(--t2); box-sizing: border-box; flex: none; }
.tc-ring.done { background: var(--lime); border-color: var(--lime); }
.tc-card { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.tc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tc-title { font-size: var(--fs-head); line-height: 1.3; }
.tc-grey { margin: 0; font-size: var(--fs-meta); color: var(--t2); }
.tc-err { margin: 0; font-size: var(--fs-meta); color: var(--red); }
.tc-lines { display: flex; flex-direction: column; gap: 4px; }
.tc-line { display: flex; justify-content: space-between; font-size: var(--fs-body); color: var(--t2); }
.tc-line b { color: var(--t1); }
.tc-can { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tc-can li { display: flex; gap: 10px; align-items: center; font-size: var(--fs-body); }
.tc-can li svg { color: var(--accent-ink); flex: none; width: 16px; height: 16px; }
.tc-can li.no { color: var(--t2); }
.tc-can li.no svg { color: var(--t3); }
.tc-link { align-self: flex-start; min-height: 32px; padding: 0; border: 0; background: transparent; color: var(--accent-ink); font: inherit; font-size: var(--fs-meta); font-weight: 700; }
.tc-two { display: flex; gap: 10px; margin-top: 4px; }
/* The boards' two answers (JoeAddsTunde, JoeRemoves, JoeAnswers): 44 high, 12 round, the second outlined. */
.tc-yes, .tc-no { flex: 1; min-height: 44px; border-radius: 12px; font: inherit; font-size: var(--fs-row); font-weight: 600; display: grid; place-items: center; text-align: center; }
.tc-yes { border: 0; background: var(--lime); color: #0b0c0d; }
.tc-no { border: 1px solid var(--line); background: transparent; color: var(--t1); font-weight: 600; }
.tc-yes:disabled, .tc-no:disabled { opacity: 0.6; }
.tc-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tc-chip { min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--line); background: var(--fill); color: var(--t1); font: inherit; font-size: var(--fs-body); font-weight: 700; }
@media (prefers-color-scheme: dark) { .tc-can li svg { color: var(--lime); } .tc-link { color: var(--lime); } }
:root[data-theme="dark"] .tc-can li svg, :root[data-theme="dark"] .tc-link { color: var(--lime); }

/* ── Home: who is in today, a booked person's day, From Remy ─────────────────────────────────────────────────── */
.tw-row { padding: 8px 12px 8px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.tw-row:last-child { border-bottom: 0; }
.tw-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tw-who b { font-size: var(--fs-row); }
.tw-who span { font-size: var(--fs-meta); color: var(--t2); }
.tw-who span.later { color: var(--accent-ink); font-weight: 700; }
.tw-state { font-size: var(--fs-body); font-weight: 700; color: var(--t2); }
.tw-state.on { color: var(--t1); }
.tw-said { padding: 0 4px; display: flex; align-items: center; gap: 10px; }
.tw-dot { width: 24px; height: 24px; border-radius: 12px; background: var(--forest-2); display: grid; place-items: center; flex: none; }
.tw-dot i { width: 8px; height: 8px; border-radius: 4px; background: var(--lime); display: block; }
.tw-said span { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-body); color: var(--t2); }
.tw-said b { color: var(--t1); }
.tw-said button { margin-left: auto; }
.td-next { font-size: var(--fs-row); color: rgba(255, 255, 255, 0.82); }
.td-tag { font-size: var(--fs-label); font-weight: 700; padding: 3px 8px; border-radius: 8px; background: var(--fill); color: var(--t2); }
.td-tag.next { background: var(--lime); color: #0b0c0d; }
.td-tag.asked, .td-tag.new { color: var(--accent-ink); }
.fr-row { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.fr-row:last-child { border-bottom: 0; }
.fr-row .tw-who b { font-size: var(--fs-row); }

/* ── a staff member's own Ask Remy (boards KemiAsks, TundeCounter) ───────────────────────────────────────────── */
.ta-screen { display: flex; flex-direction: column; height: 100%; background: var(--bg); color: var(--t1); }
.ta-head { padding: 16px 16px 12px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.ta-head .orb { width: 36px; height: 36px; border-radius: 18px; background: var(--forest-2); display: grid; place-items: center; }
/* Remy as the board KemiAsks draws it: the lime dot. */
.ta-head .orb i { width: 12px; height: 12px; border-radius: 6px; background: var(--lime); display: block; }
.ta-head b { flex: 1; font-size: var(--fs-head); }
.ta-close { width: 44px; height: 44px; border-radius: 22px; border: 0; background: var(--card); color: var(--t1); display: grid; place-items: center; }
.ta-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.ta-me { align-self: flex-end; max-width: 80%; background: var(--forest-2); color: #fff; border-radius: 18px 18px 4px 18px; padding: 10px 14px; font-size: var(--fs-row); line-height: 1.4; }
.ta-remy { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ta-bub { max-width: 86%; background: var(--card); border-radius: 18px 18px 18px 4px; padding: 10px 14px; font-size: var(--fs-row); line-height: 1.4; }
.ta-remy .tc-receipt, .ta-remy .tc-card { width: 86%; }
.ta-compose { padding: 10px 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.ta-compose input { flex: 1; height: 48px; border-radius: 24px; border: 1px solid var(--line); background: var(--card); color: var(--t1); padding: 0 16px; font: inherit; font-size: var(--fs-input); min-width: 0; }
.ta-send { width: 48px; height: 48px; border-radius: 24px; border: 0; background: var(--lime); color: #0b0c0d; display: grid; place-items: center; flex: none; }
.ta-send:disabled { opacity: 0.5; }
.ta-typing { color: var(--t2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* A row Remy opened a screen on (?focus=, ../focusTarget.ts). */
.focus-lit { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: var(--r-md); transition: outline-color 0.4s; }
@media (prefers-reduced-motion: reduce) { .focus-lit { transition: none; } }
/*
 * THE NEW LOOK: THE CATALOGUE AND ITS FORMS (founder, 13 Nov 2026, reference screenshots Services, Add Service,
 * Products, Add Product). Measured off the references at 390 wide. Every size goes through --px, so it follows the
 * person's text size like the rest of the app.
 *
 * Light is the reference: near white page, white cards with a hairline, forest buttons, a pale green chosen chip, a
 * green switch, the count left in green. Dark keeps the app's dark tokens in the same shapes and places: lime where light
 * is green, the dark card on the near black page.
 *
 * Page heads are not touched here (styles/headers.css: 57 high, the title, the line under it).
 */
:root {
  --lk-btn: #0f4c3a;
  --lk-btn-ink: #ffffff;
  --lk-link: #1f6b45;
  --lk-chip: #eef0ef;
  --lk-chip-ink: var(--t1);
  --lk-chip-on: #dcefd8;
  --lk-chip-on-ink: #0f3b22;
  --lk-switch: #38a043;
  --lk-switch-off: #dfe2e1;
  --lk-knob: #ffffff;
  --lk-card: #ffffff;
  --lk-edge: #ebedec;
  --lk-tile: #f1f3f2;
  --lk-tile-ink: #2b302e;
  --lk-sum: #f1f2f1;
  --lk-cover: #e7ebe8;
  --lk-count: #2f8a3c;
  --lk-sub: #6b7070;
  --lk-ph: #8f9594;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lk-btn: var(--lime);
    --lk-btn-ink: #0b0c0d;
    --lk-link: var(--lime);
    --lk-chip: var(--fill);
    --lk-chip-on: var(--lime);
    --lk-chip-on-ink: #0b0c0d;
    --lk-switch: var(--lime);
    --lk-switch-off: #3a3f40;
    --lk-knob: #ffffff;
    --lk-card: var(--card);
    --lk-edge: var(--line);
    --lk-tile: var(--fill);
    --lk-tile-ink: var(--t1);
    --lk-sum: var(--card);
    --lk-cover: var(--fill);
    --lk-count: var(--green);
    --lk-sub: #a3aaae;
    --lk-ph: #6f7679;
  }
}
:root[data-theme="dark"] {
  --lk-btn: var(--lime);
  --lk-btn-ink: #0b0c0d;
  --lk-link: var(--lime);
  --lk-chip: var(--fill);
  --lk-chip-on: var(--lime);
  --lk-chip-on-ink: #0b0c0d;
  --lk-switch: var(--lime);
  --lk-switch-off: #3a3f40;
  --lk-knob: #ffffff;
  --lk-card: var(--card);
  --lk-edge: var(--line);
  --lk-tile: var(--fill);
  --lk-tile-ink: var(--t1);
  --lk-sum: var(--card);
  --lk-cover: var(--fill);
  --lk-count: var(--green);
  --lk-sub: #a3aaae;
  --lk-ph: #6f7679;
}

/* ── the green + Add in the catalogue's head (the head itself is headers.css's) ── */
.lk-add {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--px));
  height: calc(40 * var(--px));
  min-height: 40px;
  padding: 0 calc(16 * var(--px)) 0 calc(13 * var(--px));
  border-radius: calc(12 * var(--px));
  background: var(--lk-btn);
  color: var(--lk-btn-ink);
  font-size: var(--fs-row);
  font-weight: 600;
  cursor: pointer;
  flex: none;
}
.lk-add svg {
  width: calc(18 * var(--px));
  height: calc(18 * var(--px));
}
.lk-add:focus-visible,
.lk-save:focus-visible,
.lk-card:focus-visible,
.lk-gcard:focus-visible {
  outline: 2px solid var(--lk-switch);
  outline-offset: 2px;
}

.lk-cat {
  --lk-gut: calc(16 * var(--px));
}
.lk-side {
  padding: 0 var(--lk-gut);
}
.lk-sideh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: calc(18 * var(--px)) 0 0;
}
.lk-sideh h2 {
  margin: 0;
  font-size: var(--fs-head);
  font-weight: 700;
  color: var(--t1);
}
.lk-addsm {
  all: unset;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  border-radius: calc(10 * var(--px));
  display: grid;
  place-items: center;
  background: var(--lk-chip);
  color: var(--t1);
  cursor: pointer;
}
.lk-addsm svg {
  width: 18px;
  height: 18px;
}

/* ── chips: All / Active / Draft, and a shop's groups ── */
.lk-chips {
  display: flex;
  gap: calc(6 * var(--px));
  margin-top: calc(14 * var(--px));
  overflow-x: auto;
  scrollbar-width: none;
}
.lk-chips::-webkit-scrollbar {
  display: none;
}
.lk-chip {
  all: unset;
  box-sizing: border-box;
  flex: none;
  height: calc(34 * var(--px));
  min-height: 32px;
  padding: 0 calc(20 * var(--px));
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--lk-chip);
  color: var(--lk-chip-ink);
  font-size: var(--fs-body);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.lk-chip.on {
  background: var(--lk-chip-on);
  color: var(--lk-chip-on-ink);
  font-weight: 600;
}

/* ── a card: the thumbnail, the name and its grey line, the switch, the dots ── */
.lk-list {
  display: grid;
  gap: calc(6 * var(--px));
  margin-top: calc(14 * var(--px));
}
.lk-card {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
  min-height: calc(76 * var(--px));
  padding: calc(12 * var(--px)) calc(6 * var(--px)) calc(12 * var(--px)) calc(12 * var(--px));
  background: var(--lk-card);
  border: 1px solid var(--lk-edge);
  border-radius: calc(14 * var(--px));
  color: var(--t1);
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.lk-card.sa-irow {
  cursor: default;
  padding-right: calc(14 * var(--px));
}
.lk-thumb {
  flex: none;
  width: calc(50 * var(--px));
  height: calc(50 * var(--px));
  border-radius: calc(12 * var(--px));
  background: var(--lk-tile);
  color: var(--lk-tile-ink);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.lk-thumb svg {
  width: calc(26 * var(--px));
  height: calc(26 * var(--px));
}
.lk-thumb img,
.lk-gpic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lk-cardw,
.lk-roww {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: calc(4 * var(--px));
}
.lk-cardw b {
  font-size: var(--fs-row);
  font-weight: 600;
  line-height: 1.25;
  color: var(--t1);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.lk-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--lk-sub);
}
/* "3-4 hours . ₦250,000": a middle dot between each, as the reference writes it. */
.lk-sub > span + span::before {
  content: "\00b7";
  margin: 0 calc(7 * var(--px));
  font-weight: 700;
}
.lk-card.off .lk-cardw b,
.lk-gcard.off .lk-gw b {
  color: var(--lk-sub);
}

/* The on and off switch (the app's Toggle): 42 by 25, the knob white, green on, grey off. */
.lk-switch {
  flex: none;
  display: inline-flex;
}
.lk-switch .tog2 {
  width: calc(42 * var(--px));
  height: calc(25 * var(--px));
  border-radius: 999px;
  background: var(--lk-switch-off);
}
.lk-switch .tog2 i {
  top: calc(2.5 * var(--px));
  left: calc(2.5 * var(--px));
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}
.lk-switch .tog2.on {
  background: var(--lk-switch);
}
.lk-switch .tog2.on i {
  left: calc(19.5 * var(--px));
}
.lk-switch .tog2:disabled {
  opacity: 0.5;
}
.lk-dots {
  all: unset;
  box-sizing: border-box;
  flex: none;
  width: 36px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--t1);
  cursor: pointer;
}
.lk-dots svg {
  width: 20px;
  height: 20px;
}

/* ── the count at the foot: "5 services", "4 active . 1 draft" ── */
.lk-sum {
  display: flex;
  align-items: center;
  gap: calc(14 * var(--px));
  margin-top: calc(14 * var(--px));
  padding: calc(13 * var(--px)) calc(16 * var(--px)) calc(13 * var(--px)) calc(18 * var(--px));
  border-radius: calc(14 * var(--px));
  background: var(--lk-sum);
  color: var(--t1);
}
.lk-sumic {
  flex: none;
  color: var(--t1);
  display: grid;
}
.lk-sumic svg {
  width: calc(26 * var(--px));
  height: calc(26 * var(--px));
}
.lk-roww b {
  font-size: var(--fs-row);
  font-weight: 600;
  color: var(--t1);
}
.lk-roww em {
  font-style: normal;
  font-weight: 500;
  color: var(--lk-sub);
}
.lk-roww > span {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--lk-sub);
}
.lk-empty {
  margin: calc(8 * var(--px)) calc(4 * var(--px));
  font-size: var(--fs-body);
  color: var(--lk-sub);
}
.lk-remyline {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: calc(10 * var(--px));
  margin: calc(14 * var(--px)) var(--lk-gut) 0;
  width: calc(100% - 2 * var(--lk-gut));
  min-height: 44px;
  padding: 0 calc(6 * var(--px));
  color: var(--lk-link);
  font-size: var(--fs-body);
  font-weight: 600;
  cursor: pointer;
}
.lk-remyline span {
  flex: 1;
}
.lk-remyline svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.lk-note {
  margin: calc(10 * var(--px)) var(--lk-gut) 0;
  padding: calc(10 * var(--px)) calc(14 * var(--px));
  border-radius: calc(12 * var(--px));
  background: var(--lk-chip);
  color: var(--t1);
  font-size: var(--fs-body);
  font-weight: 500;
}

/* ── goods: the search and the barcode button, the groups, grid or list and the sort ── */
.lk-findrow {
  display: flex;
  gap: calc(10 * var(--px));
  margin-top: calc(14 * var(--px));
}
.lk-find {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: calc(10 * var(--px));
  height: calc(42 * var(--px));
  min-height: 40px;
  padding: 0 calc(14 * var(--px));
  border-radius: calc(14 * var(--px));
  background: var(--lk-chip);
  color: var(--t1);
  box-sizing: border-box;
}
.lk-find svg {
  width: 19px;
  height: 19px;
  flex: none;
}
.lk-find input {
  all: unset;
  flex: 1;
  min-width: 0;
  font-size: var(--fs-input);
  color: var(--t1);
}
.lk-find input::placeholder {
  color: var(--lk-ph);
}
.lk-scan {
  all: unset;
  box-sizing: border-box;
  flex: none;
  width: calc(44 * var(--px));
  min-width: 42px;
  height: calc(42 * var(--px));
  min-height: 40px;
  border-radius: calc(14 * var(--px));
  background: var(--lk-chip);
  color: var(--t1);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lk-scan svg {
  width: 24px;
  height: 24px;
}
.lk-gchips {
  display: flex;
  align-items: flex-start;
  gap: calc(6 * var(--px));
}
.lk-gchips .lk-chips {
  flex: 1;
  min-width: 0;
}
.lk-gchips.wrap .lk-chips {
  flex-wrap: wrap;
}
.lk-gmore {
  all: unset;
  box-sizing: border-box;
  flex: none;
  margin-top: calc(14 * var(--px));
  width: calc(46 * var(--px));
  height: calc(34 * var(--px));
  min-height: 32px;
  border-radius: 999px;
  background: var(--lk-chip);
  color: var(--t1);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lk-gmore svg {
  width: 16px;
  height: 16px;
  transition: transform 160ms;
}
.lk-gmore.open svg {
  transform: rotate(180deg);
}
.lk-viewrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: calc(14 * var(--px));
  padding-bottom: calc(12 * var(--px));
  border-bottom: 1px solid var(--lk-edge);
}
.lk-seg {
  display: inline-flex;
  padding: 0;
  border-radius: calc(12 * var(--px));
  background: var(--lk-chip);
}
.lk-seg button {
  all: unset;
  box-sizing: border-box;
  width: calc(62 * var(--px));
  height: calc(34 * var(--px));
  min-height: 32px;
  display: grid;
  place-items: center;
  border-radius: calc(12 * var(--px));
  color: var(--t1);
  cursor: pointer;
}
.lk-seg button.on {
  background: var(--lk-chip-on);
  color: var(--lk-chip-on-ink);
}
.lk-seg svg {
  width: 19px;
  height: 19px;
}
.lk-sort {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--px));
  min-height: 40px;
  padding: 0 calc(4 * var(--px));
  color: var(--t1);
  font-size: var(--fs-row);
  font-weight: 500;
  cursor: pointer;
}
.lk-sort svg {
  width: 15px;
  height: 15px;
}
.lk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(12 * var(--px));
  margin-top: calc(14 * var(--px));
}
.lk-gcard {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--lk-card);
  border: 1px solid var(--lk-edge);
  border-radius: calc(14 * var(--px));
  overflow: hidden;
  color: var(--t1);
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.lk-gcard.sa-irow {
  cursor: default;
}
.lk-gpic {
  height: calc(106 * var(--px));
  background: var(--lk-tile);
  color: var(--lk-tile-ink);
  display: grid;
  place-items: center;
}
.lk-gpic svg {
  width: calc(34 * var(--px));
  height: calc(34 * var(--px));
  opacity: 0.85;
}
.lk-gw {
  display: grid;
  gap: calc(3 * var(--px));
  padding: calc(10 * var(--px)) calc(14 * var(--px)) calc(12 * var(--px));
}
.lk-gw b {
  font-size: var(--fs-row);
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lk-price {
  font-size: var(--fs-row);
  font-weight: 500;
  color: var(--t1);
}
.lk-count {
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--lk-count);
}
.lk-count.out {
  color: var(--lk-sub);
}
/* The dots on a photo card sit in its top right corner, on the picture. */
.lk-gcard .lk-dots {
  position: absolute;
  top: 0;
  right: 2px;
  height: 36px;
}
.lk-gpic.pic + .lk-gw + .lk-dots {
  color: #1b1f1d;
}

/*
 * A PHOTO CARD IN THE GRID (founder, 14 Nov 2026: "a little semi-transparent bar at the bottom of the image dark grey
 * but quite semi transparent so texts can show better and make texts a bit smaller and shift them down... thats only
 * for grid view"). The photo fills the card, square, and the name, the price and the count sit on a see-through dark
 * grey bar across its foot, the same in light and dark. A card with no photo keeps its glyph tile with the words
 * under it, and the list view is untouched.
 */
.lk-cat {
  --lk-cap: rgba(18, 18, 18, 0.55);
}
.lk-gpic.pic {
  display: block;
  flex: 1 0 auto;
  height: auto;
  aspect-ratio: 1;
  overflow: hidden;
}
.lk-gpic.pic + .lk-gw {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  gap: calc(1 * var(--px));
  padding: calc(6 * var(--px)) calc(12 * var(--px)) calc(7 * var(--px));
  background: var(--lk-cap);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.lk-gpic.pic + .lk-gw b {
  font-size: var(--fs-meta);
  line-height: 1.2;
  color: #ffffff;
}
.lk-gpic.pic + .lk-gw .lk-price {
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
}
.lk-gpic.pic + .lk-gw .lk-count {
  font-size: var(--fs-label);
  line-height: 1.2;
  color: #9be7a6;
}
.lk-gpic.pic + .lk-gw .lk-count.out,
.lk-gcard.off .lk-gpic.pic + .lk-gw b {
  color: rgba(255, 255, 255, 0.78);
}

/* ═══════════════════════ the add and edit forms ═══════════════════════ */

/* The head: Cancel where the back arrow was, the title in the middle, Save on the right. The head's own height and
   line are headers.css's; the title keeps the type every page title has. */
.lk-formhead {
  gap: calc(10 * var(--px));
}
.lk-formhead .tx {
  text-align: center;
}
.lk-cancel {
  all: unset;
  box-sizing: border-box;
  flex: none;
  min-width: calc(66 * var(--px));
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--lk-link);
  font-size: var(--fs-row);
  font-weight: 500;
  cursor: pointer;
}
.lk-save {
  all: unset;
  box-sizing: border-box;
  flex: none;
  min-width: calc(66 * var(--px));
  height: calc(40 * var(--px));
  min-height: 40px;
  padding: 0 calc(18 * var(--px));
  border-radius: calc(12 * var(--px));
  background: var(--lk-btn);
  color: var(--lk-btn-ink);
  font-size: var(--fs-row);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lk-save:disabled {
  opacity: 0.5;
  cursor: default;
}

.lk-form {
  display: grid;
  gap: calc(14 * var(--px));
  padding: calc(16 * var(--px)) calc(16 * var(--px)) 0;
}
.lk-form .two,
.lk-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(12 * var(--px));
}

/* The cover box: pale, the picture-plus glyph and "Add cover image"; with a picture, the picture and "Change cover". */
.lk-cover {
  all: unset;
  box-sizing: border-box;
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: calc(8 * var(--px));
  width: 100%;
  height: calc(118 * var(--px));
  border-radius: calc(16 * var(--px));
  background: var(--lk-cover);
  color: var(--t1);
  overflow: hidden;
  cursor: pointer;
  font-size: var(--fs-row);
  font-weight: 500;
}
.lk-cover > svg {
  width: calc(32 * var(--px));
  height: calc(32 * var(--px));
}
.lk-cover img,
.lk-cover video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lk-cover .lk-change {
  position: absolute;
  left: 50%;
  bottom: calc(12 * var(--px));
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--px));
  padding: calc(6 * var(--px)) calc(14 * var(--px));
  border-radius: calc(10 * var(--px));
  background: rgba(20, 22, 21, 0.62);
  color: #ffffff;
  font-size: var(--fs-body);
  font-weight: 500;
  white-space: nowrap;
}
.lk-cover .lk-change svg {
  width: 17px;
  height: 17px;
}

/* A product's photos: square tiles, the first with a pencil, then "Add more". */
.lk-photos {
  display: flex;
  gap: calc(12 * var(--px));
  overflow-x: auto;
  scrollbar-width: none;
}
.lk-photos::-webkit-scrollbar {
  display: none;
}
.lk-ptile {
  all: unset;
  box-sizing: border-box;
  position: relative;
  flex: none;
  width: calc(130 * var(--px));
  height: calc(106 * var(--px));
  border-radius: calc(14 * var(--px));
  background: var(--lk-tile);
  overflow: hidden;
  display: grid;
  place-items: center;
  align-content: center;
  gap: calc(6 * var(--px));
  color: var(--t1);
  cursor: pointer;
  font-size: var(--fs-body);
  font-weight: 500;
}
.lk-ptile.more {
  width: calc(104 * var(--px));
  color: var(--lk-sub);
}
.lk-ptile.more svg {
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
  color: var(--t1);
}
.lk-ptile img,
.lk-ptile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lk-ptile .lk-pen,
.lk-ptile .lk-rm {
  position: absolute;
  right: calc(8 * var(--px));
  bottom: calc(8 * var(--px));
  width: calc(32 * var(--px));
  height: calc(32 * var(--px));
  border-radius: 50%;
  background: #ffffff;
  color: #1b1f1d;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
.lk-ptile .lk-rm {
  top: calc(6 * var(--px));
  right: calc(6 * var(--px));
  bottom: auto;
  width: calc(26 * var(--px));
  height: calc(26 * var(--px));
}
/* Photos or videos on every item (14 Nov 2026): the whole tile opens the viewer; the pencil and the x sit above it. */
.lk-ptile .lk-open {
  all: unset;
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}
.lk-ptile .lk-open:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -2px;
}
.lk-ptile .lk-pen,
.lk-ptile .lk-rm {
  z-index: 2;
}
.lk-ptile .lk-play,
.lk-cover .lk-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(34 * var(--px));
  height: calc(34 * var(--px));
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.lk-ptile .lk-play svg,
.lk-cover .lk-play svg {
  width: calc(14 * var(--px));
  height: calc(14 * var(--px));
  margin-left: 2px;
}
.lk-ptile .lk-dur,
.lk-cover .lk-dur {
  position: absolute;
  left: calc(6 * var(--px));
  bottom: calc(6 * var(--px));
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: var(--fs-label);
  font-weight: 600;
  pointer-events: none;
}
.lk-mcount {
  margin: calc(2 * var(--px)) calc(2 * var(--px)) 0;
  font-size: var(--fs-label);
  color: var(--lk-sub);
}
.lk-ptile .lk-pen svg,
.lk-ptile .lk-rm svg {
  width: 15px;
  height: 15px;
}

/* One boxed field: white, a hairline, the label inside on top, the value under it. */
.lk-box {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: calc(10 * var(--px));
  width: 100%;
  min-height: calc(64 * var(--px));
  padding: calc(10 * var(--px)) calc(16 * var(--px)) calc(10 * var(--px)) calc(16 * var(--px));
  background: var(--lk-card);
  border: 1px solid var(--lk-edge);
  border-radius: calc(14 * var(--px));
  color: var(--t1);
  text-align: left;
  transition: border-color 140ms;
}
.lk-box.tap {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: calc(10 * var(--px));
  width: 100%;
  min-height: calc(64 * var(--px));
  padding: calc(10 * var(--px)) calc(16 * var(--px));
  background: var(--lk-card);
  border: 1px solid var(--lk-edge);
  border-radius: calc(14 * var(--px));
  color: var(--t1);
  cursor: pointer;
}
.lk-box:focus-within {
  border-color: var(--lk-link);
}
.lk-boxw {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: calc(4 * var(--px));
}
.lk-boxl {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--t1);
}
.lk-boxl em {
  font-style: normal;
  color: var(--lk-sub);
}
.lk-box input,
.lk-box textarea,
.lk-box select,
.lk-box .gsel,
.lk-boxv {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  font-size: var(--fs-input);
  font-weight: 500;
  color: var(--t1);
  line-height: 1.35;
}
.lk-box textarea {
  white-space: pre-wrap;
  min-height: calc(44 * var(--px));
  resize: none;
}
.lk-box input::placeholder,
.lk-box textarea::placeholder,
.lk-boxv.empty {
  color: var(--lk-ph);
  font-weight: 400;
}
.lk-box input:disabled {
  opacity: 0.5;
}
.lk-boxv {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* An icon in front of the value (Duration's clock, Price's tag), and a chevron or scan button at the end. */
.lk-inl {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--px));
  min-width: 0;
}
.lk-inl > svg {
  flex: none;
  width: calc(19 * var(--px));
  height: calc(19 * var(--px));
  color: var(--t1);
}
.lk-inl select,
.lk-inl .gsel {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.lk-inl .lk-caret {
  flex: none;
  width: 15px;
  height: 15px;
  pointer-events: none;
}
.lk-end {
  flex: none;
  color: var(--t1);
  display: grid;
}
.lk-end svg {
  width: 17px;
  height: 17px;
}
.lk-box .lk-scan {
  width: 40px;
  min-width: 40px;
  height: 40px;
  background: none;
  margin-right: calc(-8 * var(--px));
}

/* A row that opens more (What's included, More details): an icon, the bold title, its grey line, a chevron. */
.lk-row {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: calc(16 * var(--px));
  width: 100%;
  min-height: calc(64 * var(--px));
  padding: calc(12 * var(--px)) calc(16 * var(--px)) calc(12 * var(--px)) calc(18 * var(--px));
  background: var(--lk-card);
  border: 1px solid var(--lk-edge);
  border-radius: calc(14 * var(--px));
  color: var(--t1);
  cursor: pointer;
}
.lk-rowic {
  flex: none;
  display: grid;
  color: var(--t1);
}
.lk-rowic svg {
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
}
.lk-rowchev {
  flex: none;
  display: grid;
  color: var(--t1);
}
.lk-rowchev svg {
  width: 9px;
  height: 15px;
  transition: transform 160ms;
}
.lk-rowchev.open svg {
  transform: rotate(90deg);
}
.lk-swrow {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: calc(14 * var(--px));
  min-height: calc(64 * var(--px));
  padding: calc(12 * var(--px)) calc(14 * var(--px)) calc(12 * var(--px)) calc(18 * var(--px));
  background: var(--lk-card);
  border: 1px solid var(--lk-edge);
  border-radius: calc(14 * var(--px));
}
.lk-swrow .lk-switch .tog2 {
  width: calc(46 * var(--px));
  height: calc(28 * var(--px));
}
.lk-swrow .lk-switch .tog2 i {
  width: calc(23 * var(--px));
  height: calc(23 * var(--px));
}
.lk-swrow .lk-switch .tog2.on i {
  left: calc(20.5 * var(--px));
}

/* What sits inside More details keeps the app's own fields, drawn as the boxes above. */
.lk-more {
  display: grid;
  gap: calc(14 * var(--px));
}
.lk-more .flabel {
  margin: 0;
}
.lk-err {
  margin: 0;
  color: var(--red);
  font-size: var(--fs-body);
  font-weight: 600;
}
.lk-hintline {
  margin: calc(-6 * var(--px)) calc(4 * var(--px)) 0;
  font-size: var(--fs-meta);
  color: var(--lk-sub);
  font-weight: 500;
}
.lk-kind {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(6 * var(--px));
  padding: calc(4 * var(--px));
  border-radius: 999px;
  background: var(--lk-chip);
}
.lk-kind button {
  all: unset;
  box-sizing: border-box;
  height: calc(36 * var(--px));
  min-height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: var(--fs-row);
  font-weight: 600;
  color: var(--t1);
  cursor: pointer;
}
.lk-kind button[aria-checked="true"] {
  background: var(--lk-chip-on);
  color: var(--lk-chip-on-ink);
}
.lk-draft {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--px));
  padding: calc(10 * var(--px)) calc(14 * var(--px));
  border-radius: calc(12 * var(--px));
  background: var(--lk-chip);
  font-size: var(--fs-body);
  font-weight: 500;
}
.lk-draft span {
  flex: 1;
}
.lk-draft button {
  all: unset;
  color: var(--lk-link);
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.lk-remyask {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: calc(8 * var(--px));
  min-height: 40px;
  color: var(--lk-link);
  font-size: var(--fs-body);
  font-weight: 600;
  cursor: pointer;
}
.lk-remyask.lk-delete {
  color: var(--red);
}
.lk-remyask.lk-delete svg {
  width: 18px;
  height: 18px;
}
.lk-inl select,
.lk-inl .gsel,
.lk-inl input {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* `all: unset` above would undo `hidden` on the camera's file input inside a box. */
.lk-box input[hidden],
.lk-form input[hidden] {
  display: none;
}
/*
 * LISTINGS V2 (mockup boards 1 to 4: Remy makes the listing, Listings, Add or edit a listing, Area). Measured off the
 * boards at 390 wide; every size goes through --px so it follows the person's text size. Light is the board: white
 * cards with a hairline on near white, forest buttons and chips, the pale green type pill. Dark keeps the app's dark
 * tokens in the same shapes (lime where light is forest), as styles/look-catalogue.css does.
 *
 * Page heads are not touched here (styles/headers.css: 57 high, the title, the line under it).
 */
:root {
  --ls-pill: #e3f2e6;
  --ls-pill-ink: #1f6b37;
  --ls-vid: #3b5a4b;
  --ls-sub: #555a58;
  --ls-hair: #f0f0ec;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ls-pill: rgba(220, 239, 78, 0.14);
    --ls-pill-ink: var(--lime);
    --ls-vid: #24332c;
    --ls-sub: #a3aaae;
    --ls-hair: var(--line);
  }
}
:root[data-theme="dark"] {
  --ls-pill: rgba(220, 239, 78, 0.14);
  --ls-pill-ink: var(--lime);
  --ls-vid: #24332c;
  --ls-sub: #a3aaae;
  --ls-hair: var(--line);
}

/* ═════════════════════ the Listings tab (board 2) ═════════════════════ */

.ls-body .lk-findrow {
  margin-top: calc(12 * var(--px));
}
.ls-body .lk-find {
  height: calc(46 * var(--px));
  border-radius: calc(12 * var(--px));
}
.ls-filter {
  all: unset;
  box-sizing: border-box;
  position: relative;
  flex: none;
  width: calc(46 * var(--px));
  min-width: 44px;
  height: calc(46 * var(--px));
  min-height: 44px;
  border-radius: calc(12 * var(--px));
  border: 1px solid var(--lk-edge);
  background: var(--lk-card);
  color: var(--t1);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.ls-filter svg {
  width: 20px;
  height: 20px;
}
.ls-filter i {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lk-btn);
}
.ls-chips {
  margin-top: calc(12 * var(--px));
  gap: calc(8 * var(--px));
}
.ls-chip {
  height: calc(38 * var(--px));
  padding: 0 calc(14 * var(--px));
  gap: calc(6 * var(--px));
  border-radius: calc(12 * var(--px));
  background: var(--lk-card);
  border: 1px solid var(--lk-edge);
  font-weight: 600;
}
.ls-chip .ls-n {
  color: var(--ls-sub);
  font-weight: 600;
}
.ls-chip.on {
  background: var(--lk-btn);
  border-color: var(--lk-btn);
  color: var(--lk-btn-ink);
  font-weight: 700;
}
.ls-chip.on .ls-n {
  color: inherit;
  opacity: 0.8;
}
.ls-cat .lk-viewrow {
  margin-top: calc(12 * var(--px));
  padding-bottom: 0;
  border-bottom: 0;
}
.ls-cat .lk-seg {
  gap: calc(8 * var(--px));
  background: none;
}
.ls-cat .lk-seg button {
  width: calc(50 * var(--px));
  height: calc(38 * var(--px));
  border-radius: calc(10 * var(--px));
  background: var(--lk-chip);
}
.ls-cat .lk-seg button.on {
  background: var(--lk-btn);
  color: var(--lk-btn-ink);
}

.ls-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: calc(10 * var(--px));
  margin-top: calc(12 * var(--px));
}
.ls-card {
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  display: flex;
  gap: calc(12 * var(--px));
  padding: calc(10 * var(--px));
  background: var(--lk-card);
  border: 1px solid var(--lk-edge);
  border-radius: calc(16 * var(--px));
  color: var(--t1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ls-card:not([role]) {
  cursor: default;
}
.ls-card:focus-visible {
  outline: 2px solid var(--lk-switch);
  outline-offset: 2px;
}
.ls-card.small {
  align-items: center;
  padding: calc(8 * var(--px));
}
.ls-thumb {
  position: relative;
  flex: none;
  width: calc(108 * var(--px));
  height: calc(104 * var(--px));
  border-radius: calc(12 * var(--px));
  background: var(--lk-tile);
  color: var(--lk-tile-ink);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ls-thumb.sm {
  width: calc(56 * var(--px));
  height: calc(56 * var(--px));
  border-radius: calc(10 * var(--px));
}
.ls-thumb > svg {
  width: 40%;
  height: 40%;
}
.ls-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ls-thumb.vid,
.ls-rthumb.vid {
  background: var(--ls-vid);
}
.ls-play {
  position: relative;
  width: calc(36 * var(--px));
  height: calc(36 * var(--px));
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  display: grid;
  place-items: center;
}
.ls-play svg {
  width: 45%;
  height: 45%;
}
.ls-play.sm {
  position: absolute;
  left: 6px;
  bottom: 6px;
  width: 22px;
  height: 22px;
}
.ls-w {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--px));
  padding-right: calc(28 * var(--px));
}
.ls-rcard .ls-w {
  padding-right: 0;
}
.ls-title {
  font-size: var(--fs-row);
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ls-place {
  display: flex;
  align-items: center;
  gap: calc(4 * var(--px));
  min-width: 0;
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--ls-sub);
}
.ls-place > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ls-pin {
  flex: none;
  width: calc(12 * var(--px));
  height: calc(12 * var(--px));
}
.lk-inl > .ls-pin {
  width: calc(19 * var(--px));
  height: calc(19 * var(--px));
}
.ls-tags {
  display: flex;
  flex-wrap: wrap;
  gap: calc(6 * var(--px));
}
.ls-pill,
.ls-st {
  display: inline-flex;
  align-items: center;
  height: calc(22 * var(--px));
  padding: 0 calc(9 * var(--px));
  border-radius: 999px;
  background: var(--ls-pill);
  color: var(--ls-pill-ink);
  font-size: var(--fs-label);
  font-weight: 700;
  white-space: nowrap;
}
.ls-st {
  background: var(--lk-chip);
  color: var(--ls-sub);
}
.ls-price {
  font-size: var(--fs-row);
  font-weight: 600;
}
.ls-card.small .ls-tags,
.ls-card.small .ls-place {
  display: none;
}
.ls-card.small .ls-price {
  font-size: var(--fs-body);
}
.ls-dots {
  position: absolute;
  top: calc(2 * var(--px));
  right: calc(2 * var(--px));
}
.ls-empty {
  margin-top: calc(18 * var(--px));
  font-size: var(--fs-body);
  color: var(--ls-sub);
}
.ls-empty p {
  margin: 0 calc(4 * var(--px));
}
.ls-empty .lk-remyline {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}
.ls-flabel {
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--ls-sub);
  margin-top: calc(6 * var(--px));
}
.ls-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: calc(6 * var(--px));
  margin-top: 0;
}

/* ═══════════ Ask Remy: the attach sheet and the listing card (board 1) ═══════════ */

.ls-attach {
  display: grid;
  gap: calc(8 * var(--px));
}
.ls-attach button {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: calc(14 * var(--px));
  min-height: calc(56 * var(--px));
  padding: calc(8 * var(--px)) calc(14 * var(--px));
  border-radius: calc(14 * var(--px));
  background: var(--lk-card);
  border: 1px solid var(--lk-edge);
  color: var(--t1);
  cursor: pointer;
}
.ls-attach .ic {
  width: calc(38 * var(--px));
  height: calc(38 * var(--px));
  border-radius: 50%;
  background: var(--lk-chip);
  display: grid;
  place-items: center;
}
.ls-attach .ic svg {
  width: 20px;
  height: 20px;
}
.ls-attach b {
  font-size: var(--fs-row);
  font-weight: 600;
}
.ls-attach .ls-form {
  justify-content: center;
  min-height: 44px;
  background: none;
  border: 0;
  color: var(--lk-link);
  font-size: var(--fs-row);
  font-weight: 600;
}

.ls-rcard {
  border-radius: calc(18 * var(--px));
}
.ls-rtop {
  display: flex;
  gap: calc(12 * var(--px));
  padding: calc(12 * var(--px));
}
.ls-rthumb {
  flex: none;
  width: calc(86 * var(--px));
  height: calc(86 * var(--px));
  border-radius: calc(12 * var(--px));
  background: var(--lk-tile);
  color: var(--lk-tile-ink);
  display: grid;
  place-items: center;
}
.ls-rthumb > svg {
  width: 40%;
  height: 40%;
}
.ls-terms {
  margin: 0;
  padding: calc(10 * var(--px)) calc(12 * var(--px));
  border-top: 1px solid var(--ls-hair);
  display: grid;
  gap: calc(6 * var(--px));
  font-size: var(--fs-label);
}
.ls-terms > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: calc(12 * var(--px));
}
.ls-terms dt {
  color: var(--ls-sub);
  display: flex;
  align-items: flex-start;
  gap: calc(4 * var(--px));
}
.ls-terms dt svg {
  width: 13px;
  height: 13px;
  flex: none;
  margin-top: 2px;
}
.ls-terms dd {
  margin: 0;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ls-terms dd small {
  display: block;
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--ls-sub);
}
.ls-ask {
  padding: calc(10 * var(--px)) calc(12 * var(--px));
  border-top: 1px solid var(--ls-hair);
  display: grid;
  gap: calc(8 * var(--px));
}
.ls-askq {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.4;
}
.ls-rcard .cv-cant {
  padding-bottom: calc(4 * var(--px));
}
.ls-racts {
  display: flex;
  gap: calc(8 * var(--px));
  padding: calc(10 * var(--px)) calc(12 * var(--px)) calc(4 * var(--px));
  border-top: 1px solid var(--ls-hair);
}
.ls-racts > button {
  flex: 1;
}
/* The See all sheet's Save listing and Change: the same buttons, no hairline above (founder, 14 Nov). */
.ls-racts.ls-sheetacts {
  border-top: 0;
  padding: calc(4 * var(--px)) 0 0;
}
.ls-all {
  display: block;
  margin: 0 auto calc(6 * var(--px));
  min-height: 36px;
}

/* ═══════════════════ Add or edit a listing (board 3) ═══════════════════ */

.ls-form .lk-form {
  gap: calc(10 * var(--px));
  padding-top: calc(12 * var(--px));
}
/* The shared photos and videos box (ui/lookPhotos.tsx) inside the form's grid: its row scrolls, the form never widens. */
.ls-media {
  min-width: 0;
}
.ls-media .lk-photos {
  min-width: 0;
}
.ls-media .lk-ptile {
  width: calc(112 * var(--px));
  height: calc(92 * var(--px));
  border-radius: calc(12 * var(--px));
}
.ls-media .lk-ptile.more {
  flex: 1;
  min-width: calc(100 * var(--px));
  font-size: var(--fs-label);
}
.ls-media .lk-ptile.more:disabled {
  opacity: 0.5;
  cursor: default;
}
.ls-seg-box {
  display: grid;
  gap: calc(6 * var(--px));
  padding: calc(8 * var(--px)) calc(10 * var(--px)) calc(10 * var(--px));
  background: var(--lk-card);
  border: 1px solid var(--lk-edge);
  border-radius: calc(14 * var(--px));
}
.ls-seg-box .lk-boxl {
  margin: 0 calc(2 * var(--px));
  color: var(--ls-sub);
  font-size: var(--fs-label);
}
.ls-seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(6 * var(--px));
}
.ls-seg button {
  all: unset;
  box-sizing: border-box;
  height: calc(36 * var(--px));
  min-height: 34px;
  border-radius: calc(10 * var(--px));
  border: 1.5px solid transparent;
  background: var(--lk-chip);
  display: grid;
  place-items: center;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--t1);
  cursor: pointer;
  white-space: nowrap;
}
.ls-seg button[aria-checked="true"] {
  background: var(--ls-pill);
  border-color: var(--ls-pill-ink);
  color: var(--ls-pill-ink);
  font-weight: 700;
}
.ls-seg.three button {
  font-size: var(--fs-label);
}
/* The form's boxes are the catalogue form's (look-catalogue.css). look-settings.css also names a `.lk-box` (its amber
   note), and once Settings has been opened its rule wins over the form's: the form keeps its own here. */
.ls-form .lk-box,
.ls-fee .lk-box {
  min-height: calc(56 * var(--px));
  padding: calc(8 * var(--px)) calc(16 * var(--px));
  background: var(--lk-card);
  color: var(--t1);
  font-size: inherit;
  line-height: normal;
}
.ls-form .lk-boxl,
.ls-fee .lk-boxl {
  font-size: var(--fs-label);
  color: var(--ls-sub);
}
.ls-terms-box {
  display: grid;
  gap: calc(2 * var(--px));
  padding: calc(10 * var(--px)) calc(12 * var(--px)) calc(4 * var(--px));
  background: var(--lk-card);
  border: 1px solid var(--lk-edge);
  border-radius: calc(14 * var(--px));
}
.ls-th {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--px));
  margin-bottom: calc(4 * var(--px));
  font-size: var(--fs-row);
}
.ls-th svg {
  width: 18px;
  height: 18px;
  color: var(--lk-link);
}
.ls-trow {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(12 * var(--px));
  min-height: calc(36 * var(--px));
  font-size: var(--fs-meta);
  color: var(--t1);
}
.ls-trow > span {
  color: var(--ls-sub);
}
.ls-trow.tap {
  cursor: pointer;
}
.ls-trow b {
  font-weight: 600;
  text-align: right;
}
.ls-trow input {
  all: unset;
  box-sizing: border-box;
  width: calc(70 * var(--px));
  padding: calc(4 * var(--px)) calc(8 * var(--px));
  border-radius: calc(8 * var(--px));
  background: var(--lk-chip);
  text-align: right;
  font-weight: 600;
}
.ls-addfee {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--px));
  min-height: 40px;
  color: var(--lk-link);
  font-size: var(--fs-body);
  font-weight: 600;
  cursor: pointer;
}
.ls-addfee svg {
  width: 15px;
  height: 15px;
}
.ls-mini-sw {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(8 * var(--px));
  padding: calc(8 * var(--px)) calc(10 * var(--px)) calc(8 * var(--px)) calc(14 * var(--px));
  background: var(--lk-card);
  border: 1px solid var(--lk-edge);
  border-radius: calc(14 * var(--px));
  font-size: var(--fs-body);
  font-weight: 600;
}
.ls-h2 {
  margin: calc(4 * var(--px)) calc(2 * var(--px)) 0;
  font-size: var(--fs-body);
  font-weight: 700;
}
.ls-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: calc(6 * var(--px));
}
.ls-tile {
  all: unset;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(2 * var(--px));
  padding: calc(8 * var(--px)) calc(2 * var(--px));
  background: var(--lk-card);
  border: 1px solid var(--lk-edge);
  border-radius: calc(12 * var(--px));
  color: var(--t1);
  cursor: pointer;
}
.ls-tile:focus-within,
.ls-tile:focus-visible {
  border-color: var(--lk-link);
}
.ls-tic {
  display: grid;
  color: var(--ls-sub);
}
.ls-tic svg {
  width: 20px;
  height: 20px;
}
.ls-tile input,
.ls-tv {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  text-align: center;
  font-size: var(--fs-input);
  font-weight: 700;
  line-height: 1.2;
}
.ls-tile input::placeholder {
  color: var(--lk-ph);
}
.ls-tl {
  font-size: var(--fs-label);
  color: var(--ls-sub);
}
.ls-tags-edit {
  display: flex;
  flex-wrap: wrap;
  gap: calc(6 * var(--px));
}
.ls-tag {
  display: inline-flex;
  align-items: center;
  gap: calc(2 * var(--px));
  height: calc(32 * var(--px));
  padding: 0 calc(4 * var(--px)) 0 calc(12 * var(--px));
  border-radius: 999px;
  background: var(--ls-pill);
  color: var(--ls-pill-ink);
  font-size: var(--fs-meta);
  font-weight: 600;
}
.ls-tag button {
  all: unset;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.ls-tag svg {
  width: 12px;
  height: 12px;
}
.ls-tagadd {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: calc(6 * var(--px));
  height: calc(42 * var(--px));
  padding: 0 calc(4 * var(--px)) 0 calc(14 * var(--px));
  background: var(--lk-card);
  border: 1px solid var(--lk-edge);
  border-radius: calc(12 * var(--px));
}
.ls-tagadd input {
  all: unset;
  flex: 1;
  min-width: 0;
  font-size: var(--fs-input);
}
.ls-tagadd input::placeholder {
  color: var(--lk-ph);
}
.ls-tagadd button {
  all: unset;
  width: 36px;
  height: 36px;
  border-radius: calc(10 * var(--px));
  display: grid;
  place-items: center;
  color: var(--lk-link);
  cursor: pointer;
}
.ls-tagadd button:disabled {
  opacity: 0.4;
}
.ls-tagadd svg {
  width: 17px;
  height: 17px;
}
.ls-private .lk-boxl {
  display: flex;
  align-items: center;
  gap: calc(4 * var(--px));
}
.ls-private .lk-boxl svg {
  width: 13px;
  height: 13px;
}
.ls-fee {
  display: grid;
  gap: calc(10 * var(--px));
}
.ls-fee .acts {
  margin-top: calc(4 * var(--px));
}

/* ═══════════════════ the Area page (board 4) ═══════════════════ */

.ls-near {
  display: grid;
  background: var(--lk-card);
  border: 1px solid var(--lk-edge);
  border-radius: calc(14 * var(--px));
  overflow: hidden;
}
.ls-nrow {
  display: flex;
  justify-content: space-between;
  gap: calc(12 * var(--px));
  padding: calc(11 * var(--px)) calc(14 * var(--px));
  font-size: var(--fs-body);
  border-bottom: 1px solid var(--ls-hair);
}
.ls-nrow:last-child {
  border-bottom: 0;
}
.ls-nrow b {
  font-weight: 700;
}
.ls-nrow.muted {
  color: var(--ls-sub);
}
.ls-lockline {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--px));
  margin: 0 calc(2 * var(--px));
  font-size: var(--fs-label);
  color: var(--ls-sub);
}
.ls-lockline svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.ls-apick {
  display: grid;
  gap: calc(6 * var(--px));
}
.ls-acity {
  display: grid;
}
.ls-arow {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 calc(6 * var(--px));
  border-bottom: 1px solid var(--ls-hair);
  font-size: var(--fs-row);
  color: var(--t1);
  cursor: pointer;
}
.ls-arow.on {
  font-weight: 700;
  color: var(--lk-link);
}
.ls-arow svg {
  width: 17px;
  height: 17px;
}

/* A one line note in a list ("Nothing matches."). Not .lk-empty: look-settings.css draws that as a big empty state. */
.ls-none {
  margin: calc(10 * var(--px)) calc(4 * var(--px));
  font-size: var(--fs-body);
  color: var(--ls-sub);
}
.ls-rmfee {
  justify-content: center;
}
/* GOES WELL WITH (ui/GoesWellWith.tsx): the chips on an item's screen, and the search inside its glass sheet. The sheet
   and its rows are the one glass (glass.css); only the chips' small differences and the search field live here. */
.gw-chips {
  margin-top: 0.375rem;
}
.chip.nick.gw-chip .gw-name {
  display: inline;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0 0.125rem 0 0;
  border-radius: 0;
  font: inherit;
  color: inherit;
}
.chip.nick.gw-chip .gw-name:disabled {
  color: inherit;
}
.chip.gw-add {
  color: var(--accent-ink);
  font-weight: 700;
}
.chip.gw-idea {
  border: 1px dashed var(--t3);
  background: transparent;
  color: var(--t2);
}
.chip.gw-add .ico,
.chip.gw-idea .ico {
  width: 0.875rem;
  height: 0.875rem;
}
.gw-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin: 0 0 0.75rem;
  padding: 0 0.875rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--gl-hair);
  color: var(--t2);
}
.gw-search .ico {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
}
.gw-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: var(--fs-body);
  color: var(--t1);
}
.gw-list {
  max-height: 46vh;
  overflow-y: auto;
}
.gw-quiet {
  margin: 0;
  padding: 0.875rem 1rem;
  font-size: var(--fs-meta);
  color: var(--t2);
}
.gw-off {
  margin-top: 0.75rem;
}
/* The executive, manager, accountant and partner Homes, and Approvals
   (wave 2 D). Built from the app's own tokens so the four Homes read as
   the same app as the operator Home. */

.ov-period {
  margin: 0 1.125rem 0.75rem;
}

/* The group line: one big figure and its comparison, nothing else. */
.ov-group {
  margin: 0 1.125rem 0.875rem;
  background: var(--card);
  border-radius: var(--r-xl);
  box-shadow: var(--sh);
  padding: 1rem 1.0625rem 1.0625rem;
}
.ov-group .fig {
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.ov-group .fig small {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--t2);
  letter-spacing: 0;
  margin-left: 0.375rem;
}
.ov-group .cmp {
  margin-top: 0.3125rem;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--t2);
}
.ov-group .cmp.up { color: var(--green); }
.ov-group .cmp.down { color: var(--red); }

/* A venue row: name and money on the left, health on the right. */
.ov-venue {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.8125rem 0.9375rem;
  position: relative;
  background: none;
  border: 0;
  color: inherit;
}
.ov-venue + .ov-venue::before {
  content: "";
  position: absolute;
  left: 0.9375rem;
  right: 0;
  top: 0;
  height: var(--hair);
  background: var(--line);
}
.ov-venue .top {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.ov-venue .nm {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: var(--fs-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ov-venue .sub {
  margin-top: 0.1875rem;
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 500;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.ov-venue .sub b {
  color: var(--t1);
  font-weight: 700;
}
.ov-venue .sub .up { color: var(--green); }
.ov-venue .sub .down { color: var(--red); }

.hp {
  border-radius: 1rem;
  padding: 0.25rem 0.625rem;
  font-size: var(--fs-label);
  font-weight: 700;
  flex: none;
  white-space: nowrap;
}
.hp.healthy { background: var(--mint); color: var(--green); }
.hp.look { background: var(--amber); color: var(--orange); }
.hp.needs_you { background: var(--rose); color: var(--red); }
.hp.no_data { background: var(--grey); color: var(--t2); }
.hp.learning { background: var(--blue); color: var(--forest); }

/* The Why list, only under 100. */
.ov-why {
  margin-top: 0.625rem;
  border-radius: var(--r-md);
  background: var(--fill);
  padding: 0.25rem 0.75rem;
}
.ov-why .ln {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.5625rem 0;
  font-size: var(--fs-meta);
  line-height: 1.35;
}
.ov-why .ln + .ln { border-top: var(--hair) solid var(--line); }
.ov-why .ln p { flex: 1; }
.ov-why .ln .pts {
  color: var(--t2);
  font-weight: 700;
  font-size: var(--fs-label);
  padding-top: 0.125rem;
  white-space: nowrap;
}
.ov-why .ask {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0.25rem 0 0.5rem;
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--lime);
  border-radius: var(--r-pill);
  padding: 0.375rem 0.75rem;
}

.ov-fold {
  margin: 0.5rem 1.125rem 0;
  font-size: var(--fs-meta);
  color: var(--t2);
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0.375rem 0;
}

/* "Waiting for you · 3" */
.ov-wait {
  margin: 0.875rem 1.125rem 0;
  width: calc(100% - 2.25rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--forest);
  color: #fff;
  border: 0;
  border-radius: var(--r-xl);
  padding: 0.875rem 1rem;
  text-align: left;
}
.ov-wait .n {
  min-width: 2rem;
  height: 2rem;
  border-radius: 1rem;
  background: var(--lime);
  color: var(--forest);
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 0.5rem;
}
.ov-wait p { flex: 1; font-weight: 700; }
.ov-wait p span { display: block; font-weight: 500; font-size: var(--fs-meta); opacity: 0.8; }
.ov-wait svg { width: 0.5rem; height: 0.875rem; }

.ov-badge {
  display: inline-block;
  margin-left: 0.375rem;
  font-size: var(--fs-micro);
  font-weight: 700;
  color: var(--t2);
  background: var(--fill);
  border-radius: var(--r-pill);
  padding: 0.125rem 0.5rem;
  vertical-align: middle;
}

/* Small figures in a row: Came in today, the manager's floor. */
.ov-grid {
  margin: 0 1.125rem 0.875rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
}
.ov-grid .c {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  padding: 0.8125rem 0.875rem;
  text-align: left;
  border: 0;
  color: inherit;
}
.ov-grid .c .k {
  font-size: var(--fs-label);
  color: var(--t2);
  font-weight: 600;
}
.ov-grid .c .v {
  margin-top: 0.25rem;
  font-size: var(--fs-head);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ov-grid .c .v.warn { color: var(--red); }

/* Approvals */
.ap-item {
  padding: 0.875rem 0.9375rem;
  position: relative;
}
.ap-item + .ap-item::before {
  content: "";
  position: absolute;
  left: 0.9375rem;
  right: 0;
  top: 0;
  height: var(--hair);
  background: var(--line);
}
.ap-item .t {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}
.ap-item .t b { flex: 1; font-size: var(--fs-body); }
.ap-item .t span { font-size: var(--fs-label); color: var(--t2); white-space: nowrap; }
.ap-item .t span.late { color: var(--red); font-weight: 700; }
.ap-item .d {
  margin-top: 0.25rem;
  font-size: var(--fs-meta);
  color: var(--t2);
  line-height: 1.4;
}
.ap-item .btns {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.625rem;
}
.ap-item .btns button {
  border-radius: var(--r-pill);
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: var(--fs-meta);
  border: 0;
}
.ap-item .btns .yes { background: var(--forest); color: #fff; }
.ap-item .btns .no { background: var(--fill); color: var(--t1); }
.ap-item .btns .open { background: var(--lime); color: var(--forest); }
.ap-item .btns button:disabled { opacity: 0.6; }
.ap-item .msg { margin-top: 0.5rem; font-size: var(--fs-meta); color: var(--red); }
.ap-item textarea {
  margin-top: 0.625rem;
  width: 100%;
  min-height: 3.5rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--fill);
  color: var(--t1);
  padding: 0.5rem 0.625rem;
  font: inherit;
  font-size: var(--fs-input);
}
.ap-batch {
  margin: 0 1.125rem 0.75rem;
  width: calc(100% - 2.25rem);
  border: 0;
  border-radius: var(--r-pill);
  padding: 0.75rem;
  font-weight: 700;
  background: var(--lime);
  color: var(--forest);
}
/* The orb is sized by height, as on the Ask bar. */
.ov-why .ask .rmk {
  width: auto;
  height: 0.8125rem;
}
/* ══ YOUR PHOTO AND THE LOGO, PORTED FROM VETTAR (the founder, 12 Nov 2026: "port exactly that setup"). The rules are
   Vettar's own, from release/vettar-app-pilot: the avatar and its pencil (vb2.css .set-ava, .set-edit), the cropper and
   the picture sheet (vb2.css .crop, .pc), the full-screen viewer (one17/chatthread.css and groups.css .ct-light, .gv) and
   its clear photo (one17/clearPhoto.css .clr). Changed: Vettar's tokens for Relynked's (--ink is --t1, --ink2 --t2,
   --brand-ink --accent-ink, its named reds the same colours), and the hidden file input (.vh) kept to these pieces.
   Used by ui/MyPhotoButton.tsx, ui/MyPhotoViewer.tsx, ui/PhotoCropper.tsx and screens/biz/NameAddress.tsx. ══ */

/* ── the avatar and its pencil ── */
.set-ava {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  color: inherit;
  flex: none;
  min-width: 44px;
  min-height: 44px;
}
.set-ava:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}
.set-edit {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 30px;
  height: 30px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  border: 2px solid var(--bg);
  color: var(--t1);
  display: grid;
  place-items: center;
}
.set-edit .ico {
  width: 14px;
  height: 14px;
}
.set-photo-err {
  margin: 0 4px 8px;
  color: var(--red);
  font-size: var(--fs-body);
}
.mp-pad {
  padding: 6px 20px 24px;
}
.pc .vh,
.gv .vh {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ── the cropper (PhotoCropper.tsx): the whole picture, a square frame with corners and edges to drag ── */
.crop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 4px 0 8px;
}
.crop-pic {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.crop-pic img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.crop-box {
  position: absolute;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  outline: 2px solid var(--card);
  cursor: move;
}
.crop-box[data-shape="circle"]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85);
  pointer-events: none;
}
.crop-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent calc(33.33% - 0.5px), rgba(255, 255, 255, 0.45) calc(33.33% - 0.5px), rgba(255, 255, 255, 0.45) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255, 255, 255, 0.45) calc(66.66% - 0.5px), rgba(255, 255, 255, 0.45) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)),
    linear-gradient(to bottom, transparent calc(33.33% - 0.5px), rgba(255, 255, 255, 0.45) calc(33.33% - 0.5px), rgba(255, 255, 255, 0.45) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255, 255, 255, 0.45) calc(66.66% - 0.5px), rgba(255, 255, 255, 0.45) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px));
}
/* Each handle is a 40px target; the corners draw an L, the edges a short bar. */
.crop-h {
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 2;
}
.crop-h::before {
  content: "";
  position: absolute;
  border-color: var(--card);
  border-style: solid;
  border-width: 0;
}
.crop-nw { left: -20px; top: -20px; cursor: nwse-resize; }
.crop-ne { right: -20px; top: -20px; cursor: nesw-resize; }
.crop-sw { left: -20px; bottom: -20px; cursor: nesw-resize; }
.crop-se { right: -20px; bottom: -20px; cursor: nwse-resize; }
.crop-nw::before, .crop-ne::before, .crop-sw::before, .crop-se::before {
  width: 18px;
  height: 18px;
}
.crop-nw::before { left: 20px; top: 20px; border-left-width: 4px; border-top-width: 4px; }
.crop-ne::before { right: 20px; top: 20px; border-right-width: 4px; border-top-width: 4px; }
.crop-sw::before { left: 20px; bottom: 20px; border-left-width: 4px; border-bottom-width: 4px; }
.crop-se::before { right: 20px; bottom: 20px; border-right-width: 4px; border-bottom-width: 4px; }
.crop-n, .crop-s { left: calc(50% - 20px); cursor: ns-resize; }
.crop-n { top: -20px; }
.crop-s { bottom: -20px; }
.crop-e, .crop-w { top: calc(50% - 20px); cursor: ew-resize; }
.crop-w { left: -20px; }
.crop-e { right: -20px; }
.crop-n::before, .crop-s::before {
  left: 10px;
  width: 20px;
  height: 4px;
  background: var(--card);
  border-radius: 2px;
}
.crop-n::before { top: 20px; }
.crop-s::before { bottom: 20px; }
.crop-e::before, .crop-w::before {
  top: 10px;
  width: 4px;
  height: 20px;
  background: var(--card);
  border-radius: 2px;
}
.crop-w::before { left: 20px; }
.crop-e::before { right: 20px; }
.crop-acts {
  width: 100%;
  display: flex;
  gap: 10px;
}
.crop-btn {
  flex: 1;
  height: 48px;
  border: 0;
  background: none;
  color: var(--t2);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.crop-use {
  color: var(--accent-ink);
  font-weight: 700;
}
.crop-btn:disabled {
  opacity: 0.55;
}

/* ── the picture sheet's choices (PhotoCropper.tsx PicChoice): Close, title, Delete, then plain rows ── */
.pc-head {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  margin: 0 -6px 6px;
}
.pc-head b {
  text-align: center;
  font-size: var(--fs-row);
  font-weight: 600;
  color: var(--t1);
}
.pc-ic {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--t1);
  cursor: pointer;
}
.pc-ic .ico {
  width: 24px;
  height: 24px;
}
.pc-row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 6px;
  color: var(--t1);
  font-size: var(--fs-row);
  cursor: pointer;
}
.pc-row .ico {
  width: 26px;
  height: 26px;
  color: var(--t2);
}
.pc-row[aria-disabled] {
  opacity: 0.5;
  pointer-events: none;
}

/* ── the full-screen viewer (MyPhotoViewer.tsx): edge to edge, the options sliding up on it ── */
.ct-light {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
}
.ct-light > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px;
  color: #fff;
}
.ct-light > header button {
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-weight: 600;
  height: 44px;
  min-width: 44px;
  cursor: pointer;
}
.ct-light > header .ct-light-edit {
  width: 44px;
  display: grid;
  place-items: center;
}
.ct-light > header .ct-light-edit .ico {
  width: 22px;
  height: 22px;
}
.gv {
  overflow: hidden;
}
.gv-scrim {
  position: absolute;
  inset: 0;
  background: var(--gl-scrim);
}
.gv-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  /* The surface is the one glass (glass.css). */
  color: var(--t1);
  border-bottom: 0;
  border-radius: 1.75rem 1.75rem 0 0;
  padding: 10px 8px calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  animation: gv-up 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes gv-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gv-sheet {
    animation: none;
  }
}
.gv-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 54px;
  padding: 0 14px;
  border: 0;
  background: none;
  color: var(--t1);
  font: inherit;
  font-size: var(--fs-row);
  text-align: left;
  cursor: pointer;
}
.gv-row .ico {
  width: 24px;
  height: 24px;
}
.gv-row[aria-disabled] {
  opacity: 0.5;
  pointer-events: none;
}
.gv-danger,
.gv-danger .ico {
  color: var(--red);
}
.gv-cancel {
  margin: 6px 6px 0;
  height: 50px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--fill);
  color: var(--t1);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.gv-ask {
  margin: 8px 14px 8px;
  font-size: var(--fs-body);
  line-height: 1.35;
  color: var(--t2);
}
.gv .grp-err {
  color: #ff8a80;
  margin: 8px 14px 0;
}
.gv-crop {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 12px calc(12px + env(safe-area-inset-bottom, 0px));
  --t1: #fff;
  --t2: #d1d1d6;
  --t3: #aeaeb2;
  --card: #2c2c2e;
  --line: #48484a;
  color: #fff;
}
.gv-crop .crop-btn {
  color: #fff;
}
.gv-crop .crop-use {
  color: var(--lime);
}

/* ── the clear photo (ClearPhoto.tsx): the small square at once, the big copy fading in over it, one box ── */
.ct-light > .clr {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
}
.clr > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.clr-small {
  opacity: 1;
  transition: opacity 0.24s ease;
}
.clr-small[data-shown="no"] {
  opacity: 0;
}
.clr-full {
  animation: clr-in 0.24s ease both;
}
@keyframes clr-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* Quiet: a thin ring at the bottom, only when the big copy is slow. */
.clr-spin {
  position: absolute;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  width: 22px;
  height: 22px;
  margin-left: -11px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.7);
  animation: clr-turn 0.9s linear infinite;
}
@keyframes clr-turn {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .clr-small {
    transition: none;
  }
  .clr-full {
    animation: none;
  }
}
@media (min-width: 900px) {
  .ct-light > .clr {
    max-width: 900px;
    align-self: center;
  }
}
/*
 * THE NEW LOOK FOR SETTINGS (founder, 13 Nov 2026, reference screens 136 to 142: "adjust our pages to look like it...
 * the buttons and position etc", with the nav bar and each page's title head left as they are). Used by Business
 * profile, Connect, the WhatsApp connect flow and its connected view, Your profile and its email, Your account (the
 * bank account) and the Subscription page. The pieces are in ui/lookRows.tsx.
 *
 * Sizes are the reference's, measured at 390 wide, in the person's own pixels (--px follows their text size).
 * Light is the reference: white rounded cards with a hairline on the page grey, forest green buttons, pale green
 * pills. Dark keeps the app's dark tokens in the same shapes and places: cards on --card, lime buttons.
 */
:root {
  --lk-page: #f7f7f8;
  --lk-card: #ffffff;
  --lk-edge: #e9eaec;
  --lk-ink: #111413;
  --lk-ink2: #6b7075;
  --lk-icon: #2a2e30;
  --lk-tile: #f2f3f4;
  --lk-btn: #0d4a2c;
  --lk-btn-ink: #ffffff;
  --lk-pill: #e2f4e1;
  --lk-pill-ink: #1d6a2e;
  --lk-red: #e5322d;
  --lk-red-soft: #fde8e7;
  --lk-amber: #fdf0d8;
  --lk-amber-ink: #8a5300;
  --lk-shadow: 0 1px 2px rgba(17, 20, 19, 0.03);
  --lk-sel: #0d4a2c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lk-page: var(--bg);
    --lk-card: var(--card);
    --lk-edge: #26292a;
    --lk-ink: var(--t1);
    --lk-ink2: var(--t2);
    --lk-icon: #d6dadb;
    --lk-tile: var(--fill);
    --lk-btn: var(--lime);
    --lk-btn-ink: #0b0c0d;
    --lk-pill: #1d2e1c;
    --lk-pill-ink: var(--lime);
    --lk-red: #ff5a52;
    --lk-red-soft: #3a1918;
    --lk-amber: #2e2210;
    --lk-amber-ink: #ffb340;
    --lk-shadow: none;
    --lk-sel: var(--lime);
  }
}
:root[data-theme="dark"] {
  --lk-page: var(--bg);
  --lk-card: var(--card);
  --lk-edge: #26292a;
  --lk-ink: var(--t1);
  --lk-ink2: var(--t2);
  --lk-icon: #d6dadb;
  --lk-tile: var(--fill);
  --lk-btn: var(--lime);
  --lk-btn-ink: #0b0c0d;
  --lk-pill: #1d2e1c;
  --lk-pill-ink: var(--lime);
  --lk-red: #ff5a52;
  --lk-red-soft: #3a1918;
  --lk-amber: #2e2210;
  --lk-amber-ink: #ffb340;
  --lk-shadow: none;
  --lk-sel: var(--lime);
}

/* ── the page ─────────────────────────────────────────────────────── */
.lk {
  color: var(--lk-ink);
}
.scroll.lk {
  background: var(--lk-page);
}
.lk-body {
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
  padding: calc(20 * var(--px)) calc(20 * var(--px)) calc(28 * var(--px));
}
.lk-body.center {
  align-items: stretch;
}
.lk-gap {
  height: calc(8 * var(--px));
}

/* ── a card, and a row in it ──────────────────────────────────────── */
.lk-card {
  background: var(--lk-card);
  border: 1px solid var(--lk-edge);
  border-radius: calc(16 * var(--px));
  box-shadow: var(--lk-shadow);
  overflow: hidden;
}
.lk-card > .lk-row + .lk-row,
.lk-card > .lk-use + .lk-use,
.lk-card > * + .lk-row.sep {
  border-top: 1px solid var(--lk-edge);
}
.lk-card.flat > .lk-row + .lk-row {
  border-top: 0;
}
.lk-row {
  display: flex;
  align-items: center;
  gap: calc(14 * var(--px));
  width: 100%;
  min-height: calc(58 * var(--px));
  padding: calc(12 * var(--px)) calc(16 * var(--px));
  text-align: left;
  color: var(--lk-ink);
  background: none;
  border: 0;
  font: inherit;
}
button.lk-row,
label.lk-row {
  cursor: pointer;
}
button.lk-row:active {
  background: var(--lk-tile);
}
button.lk-row:disabled {
  opacity: 0.5;
}
.lk-row.tall {
  min-height: calc(64 * var(--px));
}
.lk-row .lk-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: calc(26 * var(--px));
  color: var(--lk-icon);
}
.lk-row .lk-ic .ico {
  width: calc(23 * var(--px));
  height: calc(23 * var(--px));
}
.lk-row .lk-tx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: calc(3 * var(--px));
}
.lk-row .lk-lb {
  font-size: var(--fs-meta);
  line-height: 1.25;
  color: var(--lk-ink2);
  font-weight: 500;
}
.lk-row .lk-val {
  font-size: var(--fs-row);
  line-height: 1.3;
  font-weight: 500;
  color: var(--lk-ink);
  overflow-wrap: anywhere;
}
.lk-row .lk-tt {
  font-size: var(--fs-row);
  line-height: 1.3;
  font-weight: 600;
  color: var(--lk-ink);
}
.lk-row .lk-sub {
  font-size: var(--fs-body);
  line-height: 1.35;
  color: var(--lk-ink2);
}
.lk-row.danger,
.lk-row.danger .lk-tt,
.lk-row.danger .lk-ic {
  color: var(--lk-red);
}
.lk-row .lk-chev {
  flex: none;
  width: calc(16 * var(--px));
  height: calc(16 * var(--px));
  color: var(--lk-ink2);
}
.lk-row .lk-right {
  flex: none;
  display: flex;
  align-items: center;
  gap: calc(10 * var(--px));
}

/* A field in its own card: the small grey label, the value under it (Business profile, Add bank account). */
.lk-field {
  display: flex;
  align-items: center;
  gap: calc(14 * var(--px));
  background: var(--lk-card);
  border: 1px solid var(--lk-edge);
  border-radius: calc(16 * var(--px));
  padding: calc(11 * var(--px)) calc(16 * var(--px));
  min-height: calc(58 * var(--px));
  box-shadow: var(--lk-shadow);
}
.lk-field:focus-within {
  border-color: var(--lk-sel);
  box-shadow: 0 0 0 1px var(--lk-sel);
}
.lk-field.ro {
  background: var(--lk-card);
}
.lk-field .lk-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: calc(26 * var(--px));
  color: var(--lk-icon);
}
.lk-field .lk-ic .ico {
  width: calc(23 * var(--px));
  height: calc(23 * var(--px));
}
.lk-field .lk-tx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: calc(3 * var(--px));
}
.lk-field label,
.lk-field .lk-lb {
  font-size: var(--fs-meta);
  color: var(--lk-ink2);
  font-weight: 500;
}
.lk-field input,
.lk-field textarea,
.lk-field .lk-val {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0;
  margin: 0;
  background: none;
  font: inherit;
  font-size: var(--fs-input);
  font-weight: 500;
  line-height: 1.3;
  color: var(--lk-ink);
  resize: none;
  text-align: left;
}
.lk-field input::placeholder,
.lk-field textarea::placeholder {
  color: var(--lk-ink2);
  font-weight: 400;
}
.lk-field button.lk-val {
  cursor: pointer;
}
.lk-field .lk-val.empty {
  color: var(--lk-ink2);
  font-weight: 400;
}
.lk-field .lk-chev {
  flex: none;
  width: calc(18 * var(--px));
  height: calc(18 * var(--px));
  color: var(--lk-ink);
}

/* ── pills ────────────────────────────────────────────────────────── */
.lk-pill {
  display: inline-flex;
  align-items: center;
  gap: calc(5 * var(--px));
  height: calc(26 * var(--px));
  padding: 0 calc(10 * var(--px));
  border-radius: calc(9 * var(--px));
  background: var(--lk-pill);
  color: var(--lk-pill-ink);
  font-size: var(--fs-meta);
  font-weight: 600;
  white-space: nowrap;
  flex: none;
}
.lk-pill .ico {
  width: calc(14 * var(--px));
  height: calc(14 * var(--px));
}
.lk-pill.amber {
  background: var(--lk-amber);
  color: var(--lk-amber-ink);
}
.lk-pill.red {
  background: var(--lk-red-soft);
  color: var(--lk-red);
}
.lk-pill.grey {
  background: var(--lk-tile);
  color: var(--lk-ink2);
}

/* ── buttons ──────────────────────────────────────────────────────── */
.lk-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(10 * var(--px));
  width: 100%;
  min-height: calc(52 * var(--px));
  border: 0;
  border-radius: calc(14 * var(--px));
  background: var(--lk-btn);
  color: var(--lk-btn-ink);
  font: inherit;
  font-size: var(--fs-row);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.lk-btn .ico {
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
}
.lk-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.lk-btn:active:not(:disabled) {
  transform: scale(0.985);
}
.lk-btn.red {
  background: var(--lk-red);
  color: #fff;
}
.lk-btn.grey {
  background: var(--lk-tile);
  color: var(--lk-ink);
}
/* The small outlined Connect, beside a channel. */
.lk-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(30 * var(--px));
  padding: 0 calc(14 * var(--px));
  border-radius: calc(15 * var(--px));
  border: 1px solid var(--lk-edge);
  background: var(--lk-card);
  color: var(--lk-ink);
  font: inherit;
  font-size: var(--fs-row);
  font-weight: 500;
  flex: none;
}
/* The small filled Save in a page's head. */
.lk-save {
  flex: none;
  height: calc(36 * var(--px));
  padding: 0 calc(18 * var(--px));
  border: 0;
  border-radius: calc(12 * var(--px));
  background: var(--lk-btn);
  color: var(--lk-btn-ink);
  font: inherit;
  font-size: var(--fs-row);
  font-weight: 600;
}
.lk-save:disabled {
  opacity: 0.45;
}
/* The foot of a page: its one button, held at the bottom above the tab bar. */
.lk-foot {
  margin-top: auto;
  padding: calc(12 * var(--px)) calc(20 * var(--px)) calc(4 * var(--px));
}
/* A page whose one button sits at its foot: the page is a column (.scroll with display flex) and this fills it. */
.lk-flex {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
.lk-flex > .lk-body {
  flex: 1;
}

/* ── words ────────────────────────────────────────────────────────── */
.lk-h {
  margin: 0;
  font-size: var(--fs-title);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--lk-ink);
}
.lk-h.c {
  text-align: center;
}
.lk-h2 {
  margin: 0;
  font-size: var(--fs-head);
  line-height: 1.25;
  font-weight: 700;
  color: var(--lk-ink);
}
.lk-note {
  display: flex;
  gap: calc(10 * var(--px));
  align-items: flex-start;
  margin: 0;
  padding: 0 calc(4 * var(--px));
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--lk-ink2);
}
.lk-note .ico {
  flex: none;
  width: calc(18 * var(--px));
  height: calc(18 * var(--px));
  margin-top: calc(1 * var(--px));
}
.lk-note.c {
  justify-content: center;
  text-align: center;
}
.lk-note button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--lk-pill-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lk-err {
  margin: 0;
  padding: 0 calc(4 * var(--px));
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--lk-red);
}
.lk-ok {
  margin: 0;
  padding: 0 calc(4 * var(--px));
  font-size: var(--fs-body);
  color: var(--lk-pill-ink);
  font-weight: 600;
}
.lk-box {
  border-radius: calc(14 * var(--px));
  padding: calc(14 * var(--px)) calc(16 * var(--px));
  font-size: var(--fs-body);
  line-height: 1.45;
  background: var(--lk-amber);
  color: var(--lk-ink);
}
.lk-box b {
  display: block;
  margin-bottom: calc(2 * var(--px));
}

/* ── the empty state: a big grey tile, a bold line, a grey line ───── */
.lk-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: calc(10 * var(--px));
  padding: calc(40 * var(--px)) calc(12 * var(--px));
}
.lk-empty .lk-big {
  display: grid;
  place-items: center;
  width: calc(96 * var(--px));
  height: calc(96 * var(--px));
  border-radius: calc(24 * var(--px));
  background: var(--lk-tile);
  color: var(--lk-icon);
  margin-bottom: calc(14 * var(--px));
}
.lk-empty .lk-big .ico {
  width: calc(44 * var(--px));
  height: calc(44 * var(--px));
}
.lk-empty b {
  font-size: var(--fs-head);
  font-weight: 700;
  color: var(--lk-ink);
}
.lk-empty p {
  margin: 0;
  font-size: var(--fs-row);
  line-height: 1.45;
  color: var(--lk-ink2);
  max-width: 19rem;
}

/* ── the big picture: a logo or your photo, with its badge ─────────── */
.lk-pic {
  position: relative;
  align-self: center;
  width: calc(116 * var(--px));
  height: calc(116 * var(--px));
  margin: calc(4 * var(--px)) 0 calc(12 * var(--px));
}
.lk-pic > .lk-pic-in {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: calc(30 * var(--px));
  overflow: hidden;
  background: var(--lk-tile);
  color: var(--lk-ink2);
  border: 0;
  padding: 0;
  font: inherit;
  font-size: var(--fs-display);
  font-weight: 700;
}
.lk-pic > .lk-pic-in img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lk-pic > .lk-pic-in .ico {
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
}
.lk-pic > .lk-badge {
  position: absolute;
  right: calc(-6 * var(--px));
  bottom: calc(-6 * var(--px));
  display: grid;
  place-items: center;
  width: calc(38 * var(--px));
  height: calc(38 * var(--px));
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--lk-card);
  color: var(--lk-ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}
.lk-pic > .lk-badge .ico {
  width: calc(19 * var(--px));
  height: calc(19 * var(--px));
}
.lk-who {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--px));
  margin-bottom: calc(14 * var(--px));
}
.lk-who b {
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.lk-who span {
  font-size: var(--fs-row);
  color: var(--lk-ink2);
}

/* ── a channel's mark, in its own rounded tile ────────────────────── */
.lk-brand {
  flex: none;
  display: grid;
  place-items: center;
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
  border-radius: calc(11 * var(--px));
  overflow: hidden;
}
.lk-brand .bm {
  width: 62%;
  height: 62%;
}
.lk-brand.wa {
  background: #25d366;
}
.lk-brand.wa .bm {
  fill: #fff;
}
.lk-brand.wa .bm path:last-child {
  fill: #fff;
}
.lk-brand.ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  color: #fff;
}
.lk-brand.big {
  width: calc(72 * var(--px));
  height: calc(72 * var(--px));
  border-radius: calc(18 * var(--px));
  align-self: center;
}
.lk-brand.mid {
  width: calc(52 * var(--px));
  height: calc(52 * var(--px));
  border-radius: calc(14 * var(--px));
}
.lk-tile {
  flex: none;
  display: grid;
  place-items: center;
  width: calc(42 * var(--px));
  height: calc(42 * var(--px));
  border-radius: calc(12 * var(--px));
  background: var(--lk-tile);
  color: var(--lk-icon);
  font-size: var(--fs-body);
  font-weight: 700;
}
.lk-tile .ico {
  width: calc(22 * var(--px));
  height: calc(22 * var(--px));
}

/* ── a choice: the radio card, and the checkbox ───────────────────── */
.lk-choice {
  display: flex;
  align-items: center;
  gap: calc(14 * var(--px));
  width: 100%;
  padding: calc(16 * var(--px));
  border-radius: calc(16 * var(--px));
  border: 1px solid var(--lk-edge);
  background: var(--lk-card);
  text-align: left;
  font: inherit;
  color: var(--lk-ink);
  box-shadow: var(--lk-shadow);
}
.lk-choice.on {
  border: 2px solid var(--lk-sel);
  padding: calc(15 * var(--px));
}
.lk-choice .lk-ic {
  flex: none;
  color: var(--lk-icon);
}
.lk-choice .lk-ic .ico {
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
}
.lk-radio {
  flex: none;
  width: calc(22 * var(--px));
  height: calc(22 * var(--px));
  border-radius: 50%;
  border: 2px solid var(--lk-ink2);
  display: grid;
  place-items: center;
}
.lk-choice.on .lk-radio {
  border-color: var(--lk-sel);
}
.lk-choice.on .lk-radio::after {
  content: "";
  width: calc(11 * var(--px));
  height: calc(11 * var(--px));
  border-radius: 50%;
  background: var(--lk-sel);
}
.lk-box-check {
  flex: none;
  position: relative;
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
}
.lk-box-check input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.lk-box-check > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: calc(6 * var(--px));
  border: 2px solid var(--lk-ink2);
  color: transparent;
  pointer-events: none;
}
.lk-box-check input:checked + span {
  background: var(--lk-sel);
  border-color: var(--lk-sel);
  color: var(--lk-btn-ink);
}
.lk-box-check input:disabled + span {
  opacity: 0.55;
}
.lk-box-check input:focus-visible + span {
  outline: 2px solid var(--lk-sel);
  outline-offset: 2px;
}
.lk-box-check .ico {
  width: calc(15 * var(--px));
  height: calc(15 * var(--px));
}

/* The "have these ready" card: a heading with its icon, then ticked lines. */
.lk-ready {
  background: var(--lk-tile);
  border-radius: calc(16 * var(--px));
  padding: calc(16 * var(--px));
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--px));
}
.lk-ready .hd {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
  font-size: var(--fs-head);
  font-weight: 700;
}
.lk-ready .hd .ico {
  width: calc(22 * var(--px));
  height: calc(22 * var(--px));
}
.lk-ready ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--px));
}
.lk-ready li {
  display: flex;
  gap: calc(12 * var(--px));
  align-items: flex-start;
  font-size: var(--fs-row);
  line-height: 1.4;
}
.lk-ready li .ico {
  flex: none;
  width: calc(18 * var(--px));
  height: calc(18 * var(--px));
  margin-top: calc(1 * var(--px));
  color: var(--lk-pill-ink);
}

/* ── sheets drawn in this look ────────────────────────────────────── */
.lk-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(12 * var(--px));
  margin: 0 0 calc(12 * var(--px));
}
.lk-sheet-head b {
  font-size: var(--fs-head);
  font-weight: 700;
  color: var(--lk-ink);
}
.lk-x {
  flex: none;
  display: grid;
  place-items: center;
  width: calc(34 * var(--px));
  height: calc(34 * var(--px));
  border-radius: 50%;
  border: 0;
  background: var(--lk-tile);
  color: var(--lk-ink);
}
.lk-x .ico {
  width: calc(17 * var(--px));
  height: calc(17 * var(--px));
}
.lk-label.lk-row {
  position: relative;
}
.lk-label .vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.lk-label[aria-disabled] {
  opacity: 0.5;
  pointer-events: none;
}
/* The confirm sheet: a round tinted mark, a bold question, a grey line, two stacked buttons. */
.lk-ask {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: calc(10 * var(--px));
  padding: calc(6 * var(--px)) 0 0;
}
.lk-ask .mk {
  display: grid;
  place-items: center;
  width: calc(60 * var(--px));
  height: calc(60 * var(--px));
  border-radius: 50%;
  background: var(--lk-red-soft);
  color: var(--lk-red);
}
.lk-ask .mk .ico {
  width: calc(28 * var(--px));
  height: calc(28 * var(--px));
}
.lk-ask b {
  font-size: var(--fs-title);
  font-weight: 700;
  color: var(--lk-ink);
}
.lk-ask p {
  margin: 0 0 calc(10 * var(--px));
  font-size: var(--fs-row);
  line-height: 1.45;
  color: var(--lk-ink2);
}
.lk-ask .lk-btn + .lk-btn {
  margin-top: calc(4 * var(--px));
}

/* ── the WhatsApp connected head ──────────────────────────────────── */
.lk-chead {
  display: flex;
  align-items: center;
  gap: calc(14 * var(--px));
  padding: calc(2 * var(--px)) calc(2 * var(--px)) calc(6 * var(--px));
}
.lk-chead .tx {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(6 * var(--px));
}
.lk-chead b {
  font-size: var(--fs-title);
  font-weight: 700;
}

/* ── the current plan banner (founder, 13 Nov 2026: the lime banner of the Subscription mockup, for every plan, free,
   pilot and paid alike, in both themes): YOUR PLAN, the plan's name large, its price a period when it has one, the
   state in a white pill, and the hand-drawn crown with its sparkle (ui/DoodleBackdrop.tsx CrownDoodle). Lime in both
   themes, so its ink is the near black in both. ── */
.lk-plan {
  position: relative;
  overflow: hidden;
  border-radius: calc(20 * var(--px));
  background: linear-gradient(135deg, #dcef4e 0%, #c9e64a 100%);
  color: #0b0c0d;
  padding: calc(20 * var(--px)) calc(20 * var(--px)) calc(18 * var(--px));
  isolation: isolate;
  min-height: calc(132 * var(--px));
}
.lk-plan .crown {
  position: absolute;
  top: 50%;
  right: calc(20 * var(--px));
  /* The same units for every crown (Pilot's box is 196 wide at 112px), so each tier keeps its size from the sheet. */
  width: calc(var(--vbw, 196) * 112 / 196 * var(--px));
  height: auto;
  transform: translateY(-50%);
  color: #0b0c0d;
}
.lk-plan .k {
  display: block;
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0b0c0d;
}
.lk-plan .nm {
  display: block;
  margin-top: calc(2 * var(--px));
  font-size: var(--fs-display);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-right: calc(130 * var(--px));
}
.lk-plan .pr {
  display: block;
  margin-top: calc(2 * var(--px));
  font-size: var(--fs-row);
  color: rgba(11, 12, 13, 0.72);
}
.lk-plan .pr b {
  font-weight: 700;
  color: #0b0c0d;
}
.lk-plan .st {
  display: inline-flex;
  align-items: center;
  gap: calc(7 * var(--px));
  margin-top: calc(12 * var(--px));
  height: calc(30 * var(--px));
  padding: 0 calc(14 * var(--px));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0b0c0d;
  font-size: var(--fs-body);
  font-weight: 600;
}
.lk-plan .st::before {
  content: "";
  width: calc(6 * var(--px));
  height: calc(6 * var(--px));
  border-radius: 50%;
  background: #2f6b1f;
}
.lk-plan .st.warn {
  background: #fff3dc;
  color: #6b4200;
}
.lk-plan .st.warn::before {
  background: #e08600;
}
.lk-plan .st.off {
  background: rgba(255, 255, 255, 0.92);
  color: #3a3f42;
}
.lk-plan .st.off::before {
  background: #8a9094;
}

/* ── the Subscription page's usage card and rows, as the mockup draws them ── */
.lk-use.drawn {
  position: relative;
}
.lk-use .lk-use-dd {
  position: absolute;
  top: calc(12 * var(--px));
  right: calc(14 * var(--px));
  width: calc(50 * var(--px));
  height: auto;
  color: var(--lk-ink2);
  opacity: 0.8;
}
.pl.lk .lk-use .lk-ic {
  align-self: flex-start;
  color: var(--accent-ink);
}
.pl.lk .lk-use .lk-ic .ico {
  width: calc(32 * var(--px));
  height: calc(32 * var(--px));
}
.lk-use.drawn .tth {
  justify-content: flex-start;
  padding-right: calc(56 * var(--px));
}
.lk-use.drawn .fig b {
  font-size: var(--fs-title);
  font-weight: 700;
}
.lk-use.drawn .bar {
  height: calc(8 * var(--px));
}
.pl.lk .lk-row .lk-ic {
  width: calc(44 * var(--px));
  height: calc(44 * var(--px));
  border-radius: calc(12 * var(--px));
  background: var(--lk-tile);
  color: var(--lk-ink);
}
.pl.lk .lk-row .lk-ic .ico {
  width: calc(22 * var(--px));
  height: calc(22 * var(--px));
}
.pl.lk .lk-row {
  min-height: calc(72 * var(--px));
}

/* ── the usage card: label, figure and share, then the bar ────────── */
.lk-use {
  display: flex;
  gap: calc(14 * var(--px));
  padding: calc(16 * var(--px));
}
.lk-use .lk-ic {
  flex: none;
  color: var(--lk-icon);
  padding-top: calc(1 * var(--px));
}
.lk-use .lk-ic .ico {
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
}
.lk-use .main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: calc(6 * var(--px));
}
.lk-use .tt {
  font-size: var(--fs-row);
  font-weight: 600;
}
/* The title and its (i) on the right (reference 141). */
.lk-use .tth {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(8 * var(--px));
  min-height: calc(24 * var(--px));
}
.lk-use .lk-info {
  flex: none;
  display: grid;
  place-items: center;
  width: calc(32 * var(--px));
  height: calc(32 * var(--px));
  margin: calc(-4 * var(--px)) calc(-6 * var(--px)) calc(-4 * var(--px)) 0;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: none;
  color: var(--lk-ink2);
}
.lk-use .lk-info .ico {
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
}
.lk-use .lk-info:active {
  background: var(--lk-tile);
}
.lk-use .fig {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: calc(8 * var(--px));
}
.lk-use .fig b {
  font-size: var(--fs-row);
  font-weight: 600;
}
.lk-use .fig span {
  font-size: var(--fs-body);
  color: var(--lk-ink2);
}
.lk-use .bar {
  display: block;
  height: calc(9 * var(--px));
  border-radius: calc(5 * var(--px));
  background: var(--lk-tile);
  overflow: hidden;
  margin-top: calc(2 * var(--px));
}
.lk-use .bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--lk-btn);
}
.lk-use.near .bar > i {
  background: #e08600;
}
.lk-use.at .bar > i,
.lk-use.over .bar > i {
  background: var(--lk-red);
}
.lk-use.over .fig b {
  color: var(--lk-red);
}
/* One allowance for the account (server 0575): the server's line, then each business and its chats, this one bold. */
.lk-use .pool {
  display: flex;
  flex-direction: column;
  margin-top: calc(4 * var(--px));
}
.lk-use .pool .pw {
  font-size: var(--fs-body);
  color: var(--lk-ink2);
  padding-bottom: calc(4 * var(--px));
}
.lk-use .pool .pb {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: calc(12 * var(--px));
  padding: calc(8 * var(--px)) 0;
  border-top: 1px solid var(--lk-edge);
}
.lk-use .pool .pn {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-row);
}
.lk-use .pool .pb.here .pn,
.lk-use .pool .pb b {
  font-weight: 600;
}

/* ── the Subscription page in this look (screens/Plan.tsx) ─────────── */
.pl.lk .lk-plan {
  margin: calc(16 * var(--px)) calc(20 * var(--px)) 0;
}
.pl.lk .pl-top.lk-below {
  margin: calc(10 * var(--px)) calc(20 * var(--px)) 0;
  border-radius: calc(16 * var(--px));
  background: var(--lk-card);
  border: 1px solid var(--lk-edge);
  box-shadow: var(--lk-shadow);
  color: var(--lk-ink);
  padding: calc(16 * var(--px));
  gap: calc(12 * var(--px));
}
.pl.lk .pl-top.lk-below.late {
  border: 1.5px solid var(--pl-amber-edge, #e9b25a);
}
.pl.lk .pl-top.lk-below .btn.lime,
.pl.lk .pl-top.lk-below .btn.dark {
  background: var(--lk-btn);
  color: var(--lk-btn-ink);
  border: 0;
}
.pl.lk .pl-top.lk-below .btn.ghost {
  background: var(--lk-card);
  border: 1px solid var(--lk-edge);
  color: var(--lk-ink);
}
.pl.lk .pl-top.lk-below .pl-wait {
  background: var(--lk-tile);
}
.pl.lk .pl-top.lk-below .pl-bar {
  background: var(--lk-tile);
}
.pl.lk .pl-top.lk-below .pl-bar > i {
  background: var(--lk-btn);
}
.pl.lk .lk-sect {
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
  margin: calc(12 * var(--px)) calc(20 * var(--px)) 0;
}
.pl.lk .lk-links {
  display: flex;
  gap: calc(18 * var(--px));
  padding: calc(4 * var(--px)) calc(16 * var(--px)) calc(14 * var(--px)) calc(56 * var(--px));
}
.pl.lk .lk-links button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: var(--fs-row);
  font-weight: 600;
  color: var(--lk-pill-ink);
}
.pl.lk .lk-sect-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: calc(10 * var(--px)) calc(4 * var(--px)) 0;
}
.pl.lk .lk-sect-h span {
  font-size: var(--fs-body);
  color: var(--lk-ink2);
}

/* A channel's row (Connect, reference 137): tighter, so the name, the pill and the chevron sit on one line. */
.lk-row:has(> .lk-brand) {
  padding: calc(12 * var(--px)) calc(12 * var(--px));
  gap: calc(12 * var(--px));
}
.lk-row:has(> .lk-brand) .lk-brand {
  width: calc(38 * var(--px));
  height: calc(38 * var(--px));
}
.lk-row:has(> .lk-brand) .lk-tt {
  font-size: var(--fs-row);
  font-weight: 600;
}
.lk-row:has(> .lk-brand) .lk-tt,
.lk-row:has(> .lk-brand) .lk-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lk-row:has(> .lk-brand) .lk-right {
  gap: calc(8 * var(--px));
}
.lk-row:has(> .lk-brand) .lk-pill {
  padding: 0 calc(8 * var(--px));
  gap: calc(4 * var(--px));
  font-size: var(--fs-label);
}
.lk-row.danger .lk-val {
  color: var(--lk-red);
}
/* A card of plain facts (the connected number, the business, the day): closer lines, no rule between. */
.lk-card.flat > .lk-row {
  min-height: calc(46 * var(--px));
  padding-top: calc(8 * var(--px));
  padding-bottom: calc(8 * var(--px));
}
.lk-card.flat > .lk-row:first-child {
  padding-top: calc(14 * var(--px));
}
.lk-card.flat > .lk-row:last-child {
  padding-bottom: calc(14 * var(--px));
}
.lk-card.flat .lk-val {
  font-size: var(--fs-row);
}

/* ── the bank's name for the account, large, to confirm (Bank account, number first, 13 Nov 2026) ── */
.lk-named {
  display: flex;
  flex-direction: column;
  gap: calc(6 * var(--px));
  padding: calc(16 * var(--px));
  border-radius: calc(16 * var(--px));
  background: var(--lk-card);
  border: 1px solid var(--lk-edge);
  box-shadow: var(--lk-shadow);
}
.lk-named .lk-lb {
  font-size: var(--fs-meta);
  color: var(--lk-ink2);
}
.lk-named-name {
  font-size: var(--fs-title);
  line-height: 1.2;
  font-weight: 700;
  color: var(--lk-ink);
  overflow-wrap: anywhere;
}
.lk-named .lk-sub {
  font-size: var(--fs-body);
  color: var(--lk-ink2);
}
.lk-named .lk-pill {
  align-self: flex-start;
  margin-top: calc(6 * var(--px));
}
.lk-named-ask {
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--px));
  margin-top: calc(8 * var(--px));
}
/* A settings card that stays a stack of rows wherever styles/look-catalogue.css (whose own .lk-card is a flex row) is
   loaded too: both files name .lk-card, .lk-box and .lk-sub, and whichever loads last wins. Used by Bank account
   (.lk-bank), which also keeps its warning boxes and its grey lines as this file draws them. */
.lk-bank .lk-box {
  display: block;
  min-height: 0;
  border: 0;
}
.lk-bank .lk-row .lk-sub {
  display: block;
}
.lk-card.lk-stack {
  display: block;
  min-height: 0;
  padding: 0;
  gap: 0;
  cursor: auto;
  border-radius: calc(16 * var(--px));
}
/*
 * KEPT APART FROM THE CATALOGUE'S LOOK (13 Nov 2026). styles/look-catalogue.css has its own global .lk-card (a flex
 * row with padding), .lk-sub (a wrapping flex line), .lk-note (a grey box) and .lk-save (all: unset). Once it is
 * loaded (after Stock, or by any screen using ui/lookBits.tsx), whichever file came last won, and on a settings page
 * the cards' rows sat side by side ("Payments and receipts" beside "Payment method", founder's screenshot) and a phone
 * number under a name was cut. Every settings page has .lk on its root and the catalogue never does, so these win.
 */
.lk .lk-card {
  display: block;
  gap: 0;
  min-height: 0;
  padding: 0;
  color: inherit;
  cursor: auto;
  text-align: inherit;
  border-radius: calc(16 * var(--px));
}
.lk .lk-row .lk-sub {
  display: block;
  font-weight: 400;
}
/* A row inside a card is square: the card rounds the corners (older page styles round every button, which bent the lines). */
.lk .lk-card > .lk-row {
  border-radius: 0;
}
.lk .lk-note {
  display: flex;
  margin: 0;
  padding: 0 calc(4 * var(--px));
  border-radius: 0;
  background: none;
  color: var(--lk-ink2);
  font-size: var(--fs-body);
  font-weight: 400;
}
.lk .lk-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  height: calc(36 * var(--px));
  padding: 0 calc(18 * var(--px));
  border-radius: calc(12 * var(--px));
  font-size: var(--fs-row);
  font-weight: 600;
}

/* The Pilot plan's banner opens its own page (screens/Plan.tsx FreeView). */
.lk-plan.tap {
  cursor: pointer;
}
.lk-plan.tap:active {
  filter: brightness(0.96);
}

/* The free plan's page (reference 141, left): the crown in its tile, the heading, one line, the rows, See plans. */
.pl.lk .pl-free {
  align-items: center;
  text-align: center;
  padding-top: calc(28 * var(--px));
}
.pl-free .pl-free-crown {
  display: grid;
  place-items: center;
  width: calc(96 * var(--px));
  height: calc(96 * var(--px));
  border-radius: calc(26 * var(--px));
  background: var(--lk-tile);
  color: var(--lk-ink);
  margin-bottom: calc(10 * var(--px));
}
.pl-free .pl-free-crown .ico {
  width: calc(44 * var(--px));
  height: calc(44 * var(--px));
}
.pl-free .pl-free-h {
  margin: 0;
  font-size: var(--fs-title);
  line-height: 1.2;
  font-weight: 700;
  color: var(--lk-ink);
}
.pl-free .pl-free-p {
  margin: 0 0 calc(10 * var(--px));
  font-size: var(--fs-row);
  line-height: 1.45;
  color: var(--lk-ink2);
}
.pl-free .pl-free-list {
  align-self: stretch;
  list-style: none;
  margin: 0 0 calc(14 * var(--px));
  padding: 0 calc(8 * var(--px));
  display: flex;
  flex-direction: column;
  gap: calc(18 * var(--px));
  text-align: left;
}
.pl-free .pl-free-list li {
  display: flex;
  align-items: center;
  gap: calc(18 * var(--px));
  font-size: var(--fs-row);
  font-weight: 500;
  color: var(--lk-ink);
}
.pl-free .pl-free-list .ico {
  flex: none;
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
  color: var(--lk-icon);
}
.pl-free .lk-btn {
  align-self: stretch;
}

/* What a usage row's (i) says. */
.pl-info {
  margin: 0;
  padding: 0 calc(4 * var(--px)) calc(12 * var(--px));
  font-size: var(--fs-row);
  line-height: 1.5;
  color: var(--t1);
}
/* The Subscription page's Help, an outlined pill as the mockup draws it (13 Nov 2026). */
.pl.lk .helpb {
  background: transparent;
  border: 1px solid var(--lk-edge);
  height: var(--ctl-head);
  padding: 0 calc(14 * var(--px));
  color: var(--t1);
  font-weight: 600;
}
/* ══ The Plan screen and its sheets (subscriptions redesign, founder 8 Nov
   2026; remy-hq plans/subscriptions-redesign-2026-11.md): Subscription, Choose
   a plan, Compare plans, Payments and receipts, Cancel, and the sheets for
   Pay, Upgrade, Move to a smaller plan, Pause and Cancel's confirm.

   THE APP'S OWN TOKENS, LIGHT AND DARK. The mockup's hex colours are the light
   theme; here every colour is a token from tokens.css or one.css, so dark mode
   follows. The few --pl-* tokens below exist only where a shared token is too
   faint for 4.5:1 text in light mode (--t2 is 4.4:1 on the page and 4.2:1 on
   the grey fill; --red is 3.9:1 on white), each with its dark twin.

   SELECTED IS LIFTED, NEVER OUTLINED (founder, "White lift", 10 Oct 2026, and
   again on the cancel reasons, 8 Nov 2026): the others sit on the grey --fill,
   the chosen one on --sel with --sel-sh, a bolder label and a tick. No green
   border and no pale green fill anywhere here.

   SIZES ARE THE MOCKUP'S PIXELS at 390 wide through --px (app.css), so they
   still grow with the person's text size. Every tap target is at least 44px. */

:root {
  /* Secondary words: --t2 in dark, one step darker in light for 4.5:1 on the page and the grey fill. */
  --pl-sub: #5f676b;
  --pl-ink2: #3d4447;
  /* An amber chip's words (on --amber), and the late card's edge. */
  --pl-amber-ink: #6b3f00;
  --pl-amber-edge: #e8a33a;
  /* The dark grey card: Remy is off (paused, or the plan ended). White words on it in both themes. */
  --pl-off: #2a2f31;
  /* Cancel's button (white words on it) and red words on a card. */
  --pl-danger: #b42318;
  --pl-danger-ink: var(--oa-out-ink);
  /* The "Done" line at the top of the screen. White words on it in both themes. */
  --pl-toast: #0f1412;
  /* The ring of a choice not picked. */
  --pl-ring: #c9cfd1;
  /*
   * THE ACCENT, LIGHT AND DARK (founder, 9 Nov 2026: "see the use of lime green instead of your mixing of
   * forest green and dark theme"). Light keeps forest accents and the white lift, never a green outline (the
   * White lift rule of 10 Oct). Dark is lime: the main button lime with dark words, ticks lime, a picked
   * choice ringed in lime on a faint lime tint, the cycle switch's pick a lime pill.
   */
  --pl-primary: var(--forest);
  --pl-on-primary: #fff;
  --pl-tick: var(--green);
  --pl-pick-bg: var(--sel);
  --pl-pick-sh: var(--sel-sh);
  --pl-opt-bg: var(--fill);
  --pl-opt-edge: transparent;
  --pl-seg-bg: var(--fill);
  --pl-seg-edge: transparent;
  --pl-seg-on: var(--sel);
  --pl-seg-on-ink: var(--t1);
  --pl-seg-on-sh: var(--sel-sh);
  --pl-seg-tag: var(--accent-ink);
  --pl-seg-div: transparent;
  /* The top card for anything but an active plan (pilot, trial): forest in light, a bordered dark card in dark. */
  --pl-soft-bg: var(--forest);
  --pl-soft-edge: transparent;
  --pl-soft-ink: #fff;
  --pl-soft-sub: rgba(255, 255, 255, 0.86);
  --pl-soft-chip: rgba(255, 255, 255, 0.14);
  --pl-soft-btn: transparent;
  --pl-soft-btn-ink: #fff;
  --pl-soft-btn-edge: rgba(255, 255, 255, 0.5);
  --pl-off-edge: transparent;
  /* Compare's head row. */
  --pl-cmp-head: var(--forest);
  --pl-cmp-head-ink: #fff;
  --pl-cmp-head-sub: rgba(255, 255, 255, 0.84);
  --pl-cmp-mine: var(--forest-2);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pl-sub: var(--t2);
    --pl-ink2: #c3c9cb;
    --pl-amber-ink: #f5c16c;
    --pl-amber-edge: #9a6a1e;
    --pl-off: var(--card);
    --pl-danger: #c4392d;
    --pl-toast: #2b2f30;
    --pl-ring: #4a5154;
    --pl-primary: var(--lime);
    --pl-on-primary: var(--on-lime);
    --pl-tick: var(--lime);
    --pl-pick-bg: color-mix(in srgb, var(--lime) 7%, var(--card));
    --pl-pick-sh: 0 0 0 2px var(--lime);
    --pl-opt-bg: var(--card);
    --pl-opt-edge: var(--oa-edge);
    --pl-seg-bg: var(--card);
    --pl-seg-edge: var(--oa-edge);
    --pl-seg-on: var(--lime);
    --pl-seg-on-ink: var(--on-lime);
    --pl-seg-on-sh: none;
    --pl-seg-tag: var(--t2);
    --pl-seg-div: var(--oa-edge);
    --pl-soft-bg: var(--card);
    --pl-soft-edge: var(--oa-edge);
    --pl-soft-ink: var(--t1);
    --pl-soft-sub: var(--t2);
    --pl-soft-chip: var(--fill);
    --pl-soft-btn: var(--lime);
    --pl-soft-btn-ink: var(--on-lime);
    --pl-soft-btn-edge: transparent;
    --pl-off-edge: var(--oa-edge);
    --pl-cmp-head: var(--fill);
    --pl-cmp-head-ink: var(--t1);
    --pl-cmp-head-sub: var(--t2);
    --pl-cmp-mine: color-mix(in srgb, var(--lime) 12%, var(--fill));
  }
}
:root[data-theme="dark"] {
  --pl-sub: var(--t2);
  --pl-ink2: #c3c9cb;
  --pl-amber-ink: #f5c16c;
  --pl-amber-edge: #9a6a1e;
  --pl-off: var(--card);
  --pl-danger: #c4392d;
  --pl-toast: #2b2f30;
  --pl-ring: #4a5154;
  --pl-primary: var(--lime);
  --pl-on-primary: var(--on-lime);
  --pl-tick: var(--lime);
  --pl-pick-bg: color-mix(in srgb, var(--lime) 7%, var(--card));
  --pl-pick-sh: 0 0 0 2px var(--lime);
  --pl-opt-bg: var(--card);
  --pl-opt-edge: var(--oa-edge);
  --pl-seg-bg: var(--card);
  --pl-seg-edge: var(--oa-edge);
  --pl-seg-on: var(--lime);
  --pl-seg-on-ink: var(--on-lime);
  --pl-seg-on-sh: none;
  --pl-seg-tag: var(--t2);
  --pl-seg-div: var(--oa-edge);
  --pl-soft-bg: var(--card);
  --pl-soft-edge: var(--oa-edge);
  --pl-soft-ink: var(--t1);
  --pl-soft-sub: var(--t2);
  --pl-soft-chip: var(--fill);
  --pl-soft-btn: var(--lime);
  --pl-soft-btn-ink: var(--on-lime);
  --pl-soft-btn-edge: transparent;
  --pl-off-edge: var(--oa-edge);
  --pl-cmp-head: var(--fill);
  --pl-cmp-head-ink: var(--t1);
  --pl-cmp-head-sub: var(--t2);
  --pl-cmp-mine: color-mix(in srgb, var(--lime) 12%, var(--fill));
}

/* ── the screen's own look for the shared pieces it holds ── */
.pl .capn,
.pl-sheet .capn,
.pl .li .ds,
.pl-sheet .li .ds {
  color: var(--pl-sub);
}
.pl .ghead {
  padding: calc(22 * var(--px)) calc(4 * var(--px) + 1.125rem) calc(10 * var(--px));
  font-size: var(--fs-row);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--t1);
}
.pl .lc {
  background: var(--card);
  border: 1px solid var(--oa-edge);
  border-radius: calc(16 * var(--px));
  box-shadow: none;
}
/* Help: the icon and the word, no pill (founder, 9 Nov 2026: "NO NEED FOR BUBBLE"), still 44px to tap. */
.pl .helpb {
  min-height: 44px;
  min-width: 44px;
  background: transparent;
  padding: 0 calc(4 * var(--px));
}

/* A section heading with a short line on its right ("What you are using", "Resets 8 Dec"). */
.pl-gh {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: calc(12 * var(--px));
  padding: calc(22 * var(--px)) calc(4 * var(--px) + 1.125rem) calc(10 * var(--px));
}
.pl-gh h2 {
  margin: 0;
  font-size: var(--fs-row);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--t1);
}
.pl-gh span {
  font-size: var(--fs-meta);
  color: var(--pl-sub);
}

/* ── the "Done" line ── */
.pl-flash {
  margin: calc(12 * var(--px)) 1.125rem 0;
  background: var(--pl-toast);
  color: #fff;
  border-radius: calc(14 * var(--px));
  padding: calc(14 * var(--px)) calc(16 * var(--px));
  display: flex;
  align-items: center;
  gap: calc(10 * var(--px));
  font-size: var(--fs-body);
  line-height: 1.4;
}
.pl-flash svg {
  flex: none;
  width: calc(18 * var(--px));
  height: calc(18 * var(--px));
  color: var(--lime);
}

/* ── the top card ── */
.pl-top {
  margin: calc(16 * var(--px)) 1.125rem 0;
  border-radius: calc(24 * var(--px));
  padding: calc(20 * var(--px));
  display: flex;
  flex-direction: column;
  gap: calc(14 * var(--px));
  color: var(--t1);
  background: var(--card);
  border: 1px solid var(--oa-edge);
}
.pl-top.forest {
  background: var(--forest);
  border-color: transparent;
  color: #fff;
}
.pl-top.off {
  background: var(--pl-off);
  border-color: var(--pl-off-edge);
  color: #fff;
}
/* Pilot and trial: forest in light; in dark a bordered dark card with a lime button (the founder's mockup, 9 Nov 2026). */
.pl-top.forest.soft {
  background: var(--pl-soft-bg);
  border-color: var(--pl-soft-edge);
  color: var(--pl-soft-ink);
}
.pl-top.forest.soft .pl-chip {
  background: var(--pl-soft-chip);
  color: var(--pl-soft-ink);
}
.pl-top.forest.soft .pl-text {
  color: var(--pl-soft-sub);
}
.pl-top.forest.soft .btn.ghost {
  background: var(--pl-soft-btn);
  color: var(--pl-soft-btn-ink);
  border-color: var(--pl-soft-btn-edge);
}
.pl-top.late {
  border: 1.5px solid var(--pl-amber-edge);
}
.pl-chips {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(8 * var(--px));
  flex-wrap: wrap;
}
.pl-chip,
.pl-badge {
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--px));
  font-size: var(--fs-meta);
  padding: calc(6 * var(--px)) calc(12 * var(--px));
  border-radius: calc(14 * var(--px));
  line-height: 1.2;
}
.pl-chip {
  font-weight: 600;
  background: var(--fill);
  color: var(--t1);
}
.pl-top.forest .pl-chip,
.pl-top.off .pl-chip {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.pl-badge {
  font-weight: 700;
}
.pl-badge svg {
  width: calc(14 * var(--px));
  height: calc(14 * var(--px));
}
.pl-badge.lime {
  background: var(--lime);
  color: var(--on-lime);
}
.pl-badge.amber {
  background: var(--amber);
  color: var(--pl-amber-ink);
}
.pl-badge.grey {
  background: var(--fill);
  color: var(--t1);
}
.pl-badge.white {
  background: #fff;
  color: #2a2f31;
}
.pl-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: calc(6 * var(--px));
}
.pl-price b {
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.pl-price span {
  font-size: var(--fs-row);
  color: rgba(255, 255, 255, 0.82);
}
.pl-found {
  font-size: var(--fs-meta);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  margin-top: calc(-8 * var(--px));
}
.pl-title {
  margin: 0;
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.pl-text {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--pl-sub);
}
.pl-top.forest .pl-text,
.pl-top.off .pl-text {
  color: rgba(255, 255, 255, 0.86);
}
.pl-renew {
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--px));
}
.pl-renew .ln {
  display: flex;
  justify-content: space-between;
  gap: calc(8 * var(--px));
  font-size: var(--fs-body);
}
.pl-renew .ln b {
  font-weight: 600;
}
.pl-renew .ln span {
  color: rgba(255, 255, 255, 0.82);
}
.pl-bar {
  height: calc(6 * var(--px));
  border-radius: calc(3 * var(--px));
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.pl-bar i {
  display: block;
  height: 100%;
  border-radius: calc(3 * var(--px));
  background: var(--lime);
}
.pl-acts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: calc(10 * var(--px));
  margin-top: calc(4 * var(--px));
}
.pl-acts.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pl-top .btn {
  min-height: 48px;
  border-radius: calc(14 * var(--px));
  font-size: var(--fs-row);
}
.pl-top.forest .btn.ghost,
.pl-top.off .btn.ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  background: transparent;
}
.pl-top.off .btn.dark,
.pl-top.forest .btn.dark {
  background: var(--lime);
  color: var(--on-lime);
}
/* A change waiting inside the card: a smaller plan, another cycle, a pause that has not started. */
.pl-wait {
  background: rgba(255, 255, 255, 0.1);
  border-radius: calc(14 * var(--px));
  padding: calc(12 * var(--px)) calc(14 * var(--px));
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
}
.pl-wait .tx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: calc(2 * var(--px));
}
.pl-wait b {
  font-size: var(--fs-row);
  font-weight: 600;
}
.pl-wait span {
  font-size: var(--fs-meta);
  color: rgba(255, 255, 255, 0.84);
}
.pl-top.plain .pl-wait,
.pl-top.late .pl-wait {
  background: var(--fill);
}
.pl-top.plain .pl-wait span,
.pl-top.late .pl-wait span {
  color: var(--pl-sub);
}
.pl-top.forest .pl-link,
.pl-top.off .pl-link {
  color: #fff;
}
.pl-undo {
  flex: none;
  min-height: 44px;
  padding: 0 calc(16 * var(--px));
  border-radius: calc(12 * var(--px));
  background: var(--lime);
  color: var(--on-lime);
  font-size: var(--fs-body);
  font-weight: 700;
}
.pl-undo:disabled {
  opacity: 0.7;
}
.pl-err {
  margin: calc(8 * var(--px)) 0 0;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--pl-danger-ink);
}
.pl-top.forest .pl-err,
.pl-top.off .pl-err {
  color: #fff;
}

/* A link in a sentence or on its own line (Compare everything in each plan). */
.pl-a {
  all: unset;
  cursor: pointer;
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pl-a:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Billing rows, and the one Cancel or pause row (Settings' row look, one.css .ost-*) ── */
.pl-card {
  margin: 0 1.125rem;
  background: var(--card);
  border: 1px solid var(--oa-edge);
  border-radius: calc(16 * var(--px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pl-row {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  min-height: calc(68 * var(--px));
  padding: calc(12 * var(--px)) calc(16 * var(--px));
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
  color: var(--t1);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
div.pl-row {
  cursor: default;
}
.pl-row:last-child {
  border-bottom: 0;
}
.pl-row:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: -2px;
}
.pl-row .tile {
  flex: none;
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
  border-radius: calc(12 * var(--px));
  background: var(--fill);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
}
.pl-row .tile .lico {
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
}
.pl-row .main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--px));
}
.pl-row .main b {
  font-size: var(--fs-row);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.pl-row .main span {
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--pl-sub);
  overflow-wrap: anywhere;
}
.pl-row .chev {
  flex: none;
  width: calc(18 * var(--px));
  height: calc(18 * var(--px));
  color: var(--t3);
}
.pl-row .tag {
  flex: none;
  font-size: var(--fs-label);
  font-weight: 700;
  padding: calc(4 * var(--px)) calc(8 * var(--px));
  border-radius: calc(10 * var(--px));
  background: var(--lime);
  color: var(--on-lime);
}
.pl-row.danger .main b {
  color: var(--pl-danger-ink);
}
.pl-card.pl-stop {
  margin-top: calc(16 * var(--px));
}
.pl-card.pl-stop .pl-row {
  min-height: calc(56 * var(--px));
}

/* ── lifted choices: plans, cycles, pay lengths, upgrade ways, pause lengths, reasons ── */
.pl-seg {
  margin: calc(16 * var(--px)) 1.125rem 0;
  display: grid;
  gap: calc(4 * var(--px));
  padding: calc(4 * var(--px));
  background: var(--pl-seg-bg);
  box-shadow: inset 0 0 0 1px var(--pl-seg-edge);
  border-radius: calc(14 * var(--px));
}
.pl-seg button {
  position: relative;
  min-height: 44px;
  border-radius: calc(11 * var(--px));
  background: transparent;
  color: var(--t1);
  font-size: var(--fs-body);
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: calc(4 * var(--px));
}
.pl-seg button.on {
  background: var(--pl-seg-on);
  color: var(--pl-seg-on-ink);
  box-shadow: var(--pl-seg-on-sh);
  font-weight: 700;
}
.pl-seg button small {
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--pl-seg-tag);
}
.pl-seg button.on small {
  color: var(--pl-seg-on-ink);
}
/* A thin line between two choices that are not picked (dark). */
.pl-seg button:not(.on) + button:not(.on)::before {
  content: "";
  position: absolute;
  left: calc(-2 * var(--px) - 0.5px);
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: var(--pl-seg-div);
}
/* The sliding highlight (founder, 13 Nov 2026): one lime pill behind the choices that moves to the picked one, on a tap,
   an arrow key or a swipe on the plans. --n is how many choices, --i the picked one (Plan.tsx ChooseView). */
.pl-seg.slide {
  position: relative;
}
.pl-seg-thumb {
  position: absolute;
  top: calc(4 * var(--px));
  bottom: calc(4 * var(--px));
  left: calc(4 * var(--px));
  width: calc((100% - 8 * var(--px) - (var(--n) - 1) * 4 * var(--px)) / var(--n));
  border-radius: calc(11 * var(--px));
  background: var(--pl-seg-on);
  box-shadow: var(--pl-seg-on-sh);
  transform: translateX(calc(var(--i) * (100% + 4 * var(--px))));
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.pl-seg.slide button {
  z-index: 1;
  transition: color 200ms ease;
}
.pl-seg.slide button.on {
  background: transparent;
  box-shadow: none;
}
.pl-plans {
  margin: calc(16 * var(--px)) 1.125rem 0;
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--px));
}
/* Swiping between cycles: vertical moves stay the browser's scroll, sideways ones come to the screen. The cards then
   slide in from the side they move toward (left swipe, the next cycle, comes in from the right). */
.pl-plans.pl-swipe {
  touch-action: pan-y;
}
.pl-plans.in-next {
  animation: pl-in-next 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pl-plans.in-prev {
  animation: pl-in-prev 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes pl-in-next {
  from {
    transform: translateX(28%);
    opacity: 0;
  }
}
@keyframes pl-in-prev {
  from {
    transform: translateX(-28%);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pl-seg-thumb,
  .pl-seg.slide button {
    transition: none;
  }
  .pl-plans.in-next,
  .pl-plans.in-prev {
    animation: none;
  }
}
.pl-plan {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  cursor: pointer;
  background: var(--pl-opt-bg);
  box-shadow: inset 0 0 0 1px var(--pl-opt-edge);
  border-radius: calc(18 * var(--px));
  padding: calc(16 * var(--px));
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
  color: var(--t1);
  transition: background 160ms ease, box-shadow 160ms ease;
}
.pl-plan.on {
  background: var(--pl-pick-bg);
  box-shadow: var(--pl-pick-sh);
}
.pl-plan:focus-visible,
.pl-opt:focus-visible,
.pl-reason:focus-visible,
.pl-seg button:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}
.pl-plan .hd {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--px));
}
.pl-plan .hd b {
  font-size: var(--fs-head);
  font-weight: 700;
}
.pl-plan.on .hd b {
  font-weight: 700;
}
.pl-plan .mine {
  font-size: var(--fs-label);
  font-weight: 700;
  padding: calc(3 * var(--px)) calc(8 * var(--px));
  border-radius: calc(10 * var(--px));
  background: color-mix(in srgb, var(--t1) 9%, transparent);
  color: var(--t1);
}
.pl-plan .hd .sp {
  flex: 1;
}
/* The round mark: an empty ring, or the accent with a tick when picked. */
.pl-dot {
  flex: none;
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
  border-radius: 50%;
  box-sizing: border-box;
  border: 2px solid var(--pl-ring);
  display: grid;
  place-items: center;
}
.on > .pl-dot,
.on > .hd > .pl-dot {
  border: 0;
  background: var(--accent-ink);
  color: var(--on-accent);
}
.pl-dot svg {
  width: calc(13 * var(--px));
  height: calc(13 * var(--px));
  visibility: hidden;
}
.on > .pl-dot svg,
.on > .hd > .pl-dot svg {
  visibility: visible;
}
.pl-plan .pr {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: calc(8 * var(--px));
}
.pl-plan .pr b {
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pl-plan .pr span,
.pl-plan .billed {
  font-size: var(--fs-body);
  color: var(--pl-sub);
}
.pl-plan .pr s {
  font-size: var(--fs-body);
  color: var(--pl-sub);
}
.pl-plan .billed {
  font-size: var(--fs-meta);
  margin-top: calc(-6 * var(--px));
}
.pl-lines {
  display: flex;
  flex-direction: column;
  gap: calc(6 * var(--px));
  margin: 0;
  padding: 0;
  list-style: none;
}
.pl-lines > span {
  display: flex;
  gap: calc(8 * var(--px));
  align-items: flex-start;
  font-size: var(--fs-body);
  line-height: 1.35;
}
.pl-lines svg {
  flex: none;
  width: calc(16 * var(--px));
  height: calc(16 * var(--px));
  margin-top: 1px;
  color: var(--pl-tick);
}
.pl-lines.down svg {
  color: var(--orange);
}
.pl-lines > span.keep svg {
  color: var(--pl-tick);
}
.pl-center {
  display: flex;
  justify-content: center;
  margin: calc(12 * var(--px)) 1.125rem 0;
}
.pl-center .pl-a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-row);
  text-decoration: none;
}

/* The bar at the foot of Choose a plan: Due today, what follows, and the one button. */
/* Its scroller drops the room kept for the tab bar (none shows over a pushed page), or the
   sticky bar would stop that far above the foot of the screen with the list showing under it. */
.scroll.pl.pl-choosing {
  padding-bottom: 0;
  /* The plans sliding in from the side never open a sideways scroll. */
  overflow-x: clip;
}
.pl-foot {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: calc(20 * var(--px));
  background: var(--card);
  border-top: 1px solid var(--oa-edge);
  padding: calc(14 * var(--px)) 1.125rem calc(22 * var(--px) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
}
.pl-due {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: calc(12 * var(--px));
}
.pl-due span {
  font-size: var(--fs-body);
  color: var(--pl-sub);
}
.pl-due b {
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: right;
}
.pl-foot .pl-due span {
  font-size: var(--fs-row);
  font-weight: 600;
  color: var(--t1);
}
.pl-foot .pl-due b {
  font-size: var(--fs-title);
}
.pl-foot .sub {
  margin: calc(-4 * var(--px)) 0 0;
  font-size: var(--fs-meta);
  line-height: 1.4;
  color: var(--pl-sub);
}
.pl-same {
  min-height: 52px;
  border-radius: calc(14 * var(--px));
  background: var(--fill);
  color: var(--pl-sub);
  font-size: var(--fs-row);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Compare plans ── */
.pl-cmp {
  margin: calc(16 * var(--px)) 1.125rem 0;
  background: var(--card);
  border: 1px solid var(--oa-edge);
  border-radius: calc(18 * var(--px));
  overflow: hidden;
}
.pl-cmp .hdr {
  display: grid;
  background: var(--pl-cmp-head);
  color: var(--pl-cmp-head-ink);
  text-align: center;
}
.pl-cmp .hdr > div {
  padding: calc(14 * var(--px)) calc(6 * var(--px));
  display: flex;
  flex-direction: column;
  gap: calc(3 * var(--px));
  min-width: 0;
}
.pl-cmp .hdr > div.mine {
  background: var(--pl-cmp-mine);
}
.pl-cmp .hdr b {
  font-size: var(--fs-row);
  overflow-wrap: anywhere;
}
.pl-cmp .hdr span {
  font-size: var(--fs-label);
  color: var(--pl-cmp-head-sub);
}
.pl-cmp .hdr .mine span {
  color: var(--pl-mine-ink, var(--lime));
  font-weight: 600;
}
.pl-cmp .rw {
  padding: calc(12 * var(--px)) calc(12 * var(--px)) calc(14 * var(--px));
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--px));
}
.pl-cmp .rw > span {
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--pl-ink2);
}
.pl-cmp .cells {
  display: grid;
  text-align: center;
  font-size: var(--fs-body);
  font-weight: 600;
  align-items: center;
}
.pl-cmp .cells > span {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(22 * var(--px));
  overflow-wrap: anywhere;
}
.pl-cmp .cells svg {
  width: calc(18 * var(--px));
  height: calc(18 * var(--px));
  color: var(--pl-tick);
}
.pl-cmp .none {
  display: block;
  width: calc(12 * var(--px));
  height: 2px;
  background: var(--pl-ring);
}
.pl-note {
  margin: calc(16 * var(--px)) calc(4 * var(--px) + 1.125rem) 0;
  font-size: var(--fs-meta);
  line-height: 1.45;
  color: var(--pl-sub);
}
.pl-btnrow {
  margin: calc(16 * var(--px)) 1.125rem 0;
}

/* ── buttons: the main one is forest in light, lime with dark words in dark ── */
.pl .btn.dark,
.pl-sheet .btn.dark {
  background: var(--pl-primary);
  color: var(--pl-on-primary);
}
.btn.pl-outline {
  background: transparent;
  border: 1.5px solid var(--accent-ink);
  color: var(--accent-ink);
}
.btn.pl-red {
  background: var(--pl-danger);
  color: #fff;
}
.pl-link {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-row);
  font-weight: 600;
  color: var(--accent-ink);
}
.pl-link:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: calc(12 * var(--px));
}

/* ── Payments and receipts ── */
.pl-sum {
  margin: calc(16 * var(--px)) 1.125rem 0;
  background: var(--card);
  border: 1px solid var(--oa-edge);
  border-radius: calc(16 * var(--px));
  padding: calc(16 * var(--px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(12 * var(--px));
}
.pl-sum > div {
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--px));
  min-width: 0;
}
.pl-sum span {
  font-size: var(--fs-meta);
  color: var(--pl-sub);
}
.pl-sum b {
  font-size: var(--fs-head);
  font-weight: 700;
}
.pl-sum small {
  font-size: var(--fs-label);
  color: var(--pl-sub);
}
.pl-paid-row {
  min-height: calc(72 * var(--px));
}
.pl-paid-row .amt {
  flex: none;
  font-size: var(--fs-row);
  font-weight: 600;
}
.pl-wallet {
  margin: calc(16 * var(--px)) 1.125rem 0;
  background: var(--card);
  border: 1px solid var(--oa-edge);
  border-radius: calc(16 * var(--px));
  padding: calc(14 * var(--px)) calc(16 * var(--px));
  display: flex;
  gap: calc(12 * var(--px));
  align-items: flex-start;
}
.pl-wallet .tile {
  flex: none;
  width: calc(36 * var(--px));
  height: calc(36 * var(--px));
  border-radius: calc(10 * var(--px));
  background: var(--fill);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
}
.pl-wallet .tile svg {
  width: calc(18 * var(--px));
  height: calc(18 * var(--px));
}
.pl-wallet .tx {
  display: flex;
  flex-direction: column;
  gap: calc(3 * var(--px));
  min-width: 0;
}
.pl-wallet b {
  font-size: var(--fs-row);
  font-weight: 600;
}
.pl-wallet span {
  font-size: var(--fs-meta);
  line-height: 1.4;
  color: var(--pl-sub);
}

/* ── Cancel subscription, the one sheet: what happens, one line each ── */
.pl-points {
  display: flex;
  flex-direction: column;
  gap: calc(14 * var(--px));
  margin-top: calc(4 * var(--px));
}
.pl-points .pt {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
}
.pl-points .pt i {
  flex: none;
  width: calc(10 * var(--px));
  height: calc(10 * var(--px));
  border-radius: 50%;
  background: var(--accent-ink);
}
.pl-points .pt i.go {
  background: var(--green);
}
.pl-points .pt i.stop {
  background: var(--orange);
}
.pl-points .pt b {
  font-size: var(--fs-row);
  font-weight: 600;
}
.pl-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: calc(8 * var(--px));
}
.pl-reason {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  min-height: 44px;
  padding: 0 calc(16 * var(--px));
  border-radius: 22px;
  background: var(--pl-opt-bg);
  box-shadow: inset 0 0 0 1px var(--pl-opt-edge);
  color: var(--t1);
  font-size: var(--fs-body);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--px));
  transition: background 160ms ease, box-shadow 160ms ease;
}
.pl-reason.on {
  background: var(--pl-pick-bg);
  box-shadow: var(--pl-pick-sh);
  font-weight: 700;
}
.pl-reason svg {
  width: calc(15 * var(--px));
  height: calc(15 * var(--px));
  color: var(--accent-ink);
}

/* ── the sheets ── */
.pl-sheet .pl-box {
  background: var(--bg);
  border-radius: calc(16 * var(--px));
  padding: calc(14 * var(--px)) calc(16 * var(--px));
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
  margin-top: calc(12 * var(--px));
}
.pl-sheet .pl-box > b {
  font-size: var(--fs-meta);
  font-weight: 700;
  color: var(--pl-ink2);
}
.pl-sheet .pl-lead {
  margin: 0;
  font-size: var(--fs-row);
  line-height: 1.45;
  color: var(--t1);
}
.pl-sheet .pl-q {
  display: block;
  margin-top: calc(16 * var(--px));
  font-size: var(--fs-row);
  font-weight: 600;
}
.pl-sheet .pl-lbl {
  display: block;
  margin-top: calc(14 * var(--px));
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--pl-ink2);
}
.pl-opts {
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--px));
  margin-top: calc(10 * var(--px));
}
.pl-opt {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  width: 100%;
  min-height: calc(60 * var(--px));
  background: var(--pl-opt-bg);
  box-shadow: inset 0 0 0 1px var(--pl-opt-edge);
  color: var(--t1);
  border-radius: calc(16 * var(--px));
  padding: calc(14 * var(--px)) calc(16 * var(--px));
  display: flex;
  gap: calc(12 * var(--px));
  align-items: flex-start;
  transition: background 160ms ease, box-shadow 160ms ease;
}
.pl-opt.on {
  background: var(--pl-pick-bg);
  box-shadow: var(--pl-pick-sh);
}
.pl-opt .pl-dot {
  width: calc(22 * var(--px));
  height: calc(22 * var(--px));
  margin-top: calc(2 * var(--px));
}
.pl-opt .tx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--px));
}
.pl-opt .tx > b {
  display: flex;
  gap: calc(8 * var(--px));
  align-items: center;
  flex-wrap: wrap;
  font-size: var(--fs-row);
  font-weight: 600;
}
.pl-opt.on .tx > b {
  font-weight: 700;
}
.pl-opt .tx > b small {
  font-size: var(--fs-label);
  font-weight: 700;
  padding: calc(3 * var(--px)) calc(7 * var(--px));
  border-radius: calc(9 * var(--px));
  background: var(--lime);
  color: var(--on-lime);
}
.pl-opt .tx > span {
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--pl-ink2);
}
.pl-opt .tx > span.cap2 {
  font-size: var(--fs-meta);
  color: var(--pl-sub);
}
.pl-sheet .pl-due {
  margin-top: calc(16 * var(--px));
  padding: 0 calc(4 * var(--px));
}
.pl-sheet .acts {
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
}
.pl-sheet .fine {
  margin: 0;
  text-align: center;
  font-size: var(--fs-label);
  color: var(--pl-sub);
}
.pl-sheet .pl-err {
  text-align: center;
}
.pl-facts {
  margin-top: calc(12 * var(--px));
  background: var(--bg);
  border-radius: calc(16 * var(--px));
  padding: calc(4 * var(--px)) calc(16 * var(--px));
  display: flex;
  flex-direction: column;
}
.pl-facts > div {
  min-height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(12 * var(--px));
  border-bottom: 1px solid var(--oa-edge);
  font-size: var(--fs-row);
}
.pl-facts > div:last-child {
  border-bottom: 0;
}
.pl-facts span {
  color: var(--pl-ink2);
}
.pl-facts b {
  text-align: right;
}
.pl-how {
  margin-top: calc(12 * var(--px));
  font-size: var(--fs-meta);
  color: var(--pl-sub);
}
.pl-how summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--accent-ink);
}
.pl-how div {
  line-height: 1.5;
}

/* The Pay sheet keeps its .paypick look (app.css: the grey fill, the white lift) in light, and follows the
   accent in dark: the picked length ringed in lime, its tick lime. */
.pl-sheet .paypick .plancard {
  background: var(--pl-opt-bg);
  box-shadow: inset 0 0 0 1px var(--pl-opt-edge);
}
.pl-sheet .paypick .plancard.on {
  background: var(--pl-pick-bg);
  box-shadow: var(--pl-pick-sh);
}
.pl-sheet .paypick .tick {
  background: var(--accent-ink);
  color: var(--on-accent);
}
.pl-sheet .paypick .plancard .fts {
  color: var(--pl-sub);
}
.pl-with {
  margin-top: calc(10 * var(--px));
  border: 1px solid var(--oa-edge);
  border-radius: calc(14 * var(--px));
  min-height: calc(60 * var(--px));
  padding: calc(10 * var(--px)) calc(14 * var(--px));
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
}
.pl-with .tile {
  flex: none;
  width: calc(36 * var(--px));
  height: calc(36 * var(--px));
  border-radius: calc(10 * var(--px));
  background: var(--fill);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
}
.pl-with .tile .lico {
  width: calc(18 * var(--px));
  height: calc(18 * var(--px));
}
.pl-with .tx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: calc(2 * var(--px));
}
.pl-with b {
  font-size: var(--fs-row);
}
.pl-with span {
  font-size: var(--fs-meta);
  color: var(--pl-sub);
}

/* ── Payment received ── */
.pl-paid {
  margin: calc(16 * var(--px)) 1.125rem 0;
  display: flex;
  flex-direction: column;
  gap: calc(18 * var(--px));
}
.pl-paid .hd {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: calc(12 * var(--px));
  padding-top: calc(20 * var(--px));
}
.pl-paid .big {
  width: calc(88 * var(--px));
  height: calc(88 * var(--px));
  border-radius: 50%;
  background: var(--lime);
  color: var(--on-lime);
  display: grid;
  place-items: center;
}
.pl-paid .big svg {
  width: calc(44 * var(--px));
  height: calc(44 * var(--px));
}
.pl-paid h2 {
  margin: 0;
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pl-paid .hd p {
  margin: 0;
  max-width: calc(320 * var(--px));
  font-size: var(--fs-row);
  line-height: 1.45;
  color: var(--pl-ink2);
}
.pl-paid .pl-facts {
  background: var(--card);
  border: 1px solid var(--oa-edge);
  margin-top: 0;
}
.pl-paid .acts {
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
}

/* Back from the payment page: the status card, or Payment received in place of the page. */
.pl-ret {
  margin-top: calc(16 * var(--px));
}
.pl-ret .payret {
  margin-bottom: 0;
}
.pl-ret .pl-paid {
  margin-top: 0;
}
/* A line under the waiting upgrade, in the screen's gutter. */
.pl #plan-pay > .capn {
  margin: 0.5rem 1.125rem 0;
}

/* ── Usage (ui/PlanUsageCard.tsx), drawn clean (founder's mockup, 9 Nov 2026): an icon tile, a
   short label, "used of included", a green bar under them, a thin line between rows, See plans at
   the foot. The bar is --green (3.4:1 on the light card, bright in dark) on a neutral track; the
   words keep the ordinary text colours, and only past the limit does the figure turn red. ── */
.pu-list {
  display: flex;
  flex-direction: column;
}
.pu-row {
  display: flex;
  align-items: center;
  gap: calc(14 * var(--px));
  padding: calc(14 * var(--px)) calc(16 * var(--px));
}
.pu-row + .pu-row,
.pu-links {
  border-top: 1px solid var(--oa-edge);
}
.pu-tile {
  flex: none;
  width: calc(42 * var(--px));
  height: calc(42 * var(--px));
  border-radius: calc(12 * var(--px));
  background: var(--fill);
  color: var(--t1);
  display: grid;
  place-items: center;
}
.pu-tile .lico {
  width: calc(23 * var(--px));
  height: calc(23 * var(--px));
}
.pu-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: calc(9 * var(--px));
}
.pu-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: calc(12 * var(--px));
}
.pu-label {
  min-width: 0;
  font-size: var(--fs-head);
  font-weight: 700;
  color: var(--t1);
}
.pu-fig {
  flex: none;
  font-size: var(--fs-row);
  font-weight: 600;
  color: var(--t1);
  white-space: nowrap;
}
.pu-row.over .pu-fig {
  color: var(--pl-danger-ink);
}
.pu-bar {
  display: block;
  height: calc(5 * var(--px));
  border-radius: calc(3 * var(--px));
  background: color-mix(in srgb, var(--t3) 45%, var(--card));
  overflow: hidden;
}
.pu-bar i {
  display: block;
  height: 100%;
  min-width: calc(5 * var(--px));
  border-radius: calc(3 * var(--px));
  background: var(--green);
}
.pu-links {
  display: flex;
  gap: calc(20 * var(--px));
  padding: calc(4 * var(--px)) calc(16 * var(--px));
}
.pu-link {
  all: unset;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-row);
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pu-link:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: 4px;
}

/* The Help pill in the founder's mockup: a question-circle line icon and "Help", in the ordinary text colour. */
.pl .helpb {
  color: var(--t1);
}
.pl .helpb .lico {
  width: calc(18 * var(--px));
  height: calc(18 * var(--px));
}

/* ── Ask Remy on Lite (screens/LiteAsk.tsx): one plain line under what Lite includes, then Upgrade ── */
.lite-ask-note {
  margin: calc(18 * var(--px)) calc(4 * var(--px) + 1.125rem) 0;
  font-size: var(--fs-row);
  font-weight: 600;
  color: var(--t1);
}
.lite-ask .pl-acts {
  padding: calc(14 * var(--px)) 1.125rem 0;
}
/* ══ The setup interview and the setup animation (screens/SetupChat.tsx with relynked B9's interview,
   screens/SetupReveal.tsx; remy-hq plans/business-structure-design.md 7, 7.9, 3.2.1, 3.2.2), drawn to the boards
   Interview, SetupSecondSide, SetupTeam and Animation (founder, 9 Nov 2026): near black, a hairline card, a bold title,
   grey lines, the lime answer with dark words, two chips under the question and never more.

   LIGHT AND DARK FROM THE APP'S OWN TOKENS. The --iv-* tokens are only where light and dark differ, each with both
   dark selectors. In light the main answer is forest with white words (never a pale green fill); in dark it is the
   mockups' lime. Sizes through --px, so they grow with Text size; every tap target is at least 44px. Nothing moves
   under prefers-reduced-motion. ══ */

:root {
  --iv-edge: var(--line);
  --iv-sub: #5f676b;
  --iv-main: var(--forest);
  --iv-on-main: #fff;
  --iv-btn-edge: color-mix(in srgb, var(--t1) 26%, var(--card));
  --iv-chip: var(--card);
  --iv-chip-edge: color-mix(in srgb, var(--t1) 18%, var(--card));
  --iv-track: var(--fill);
  --iv-wait: color-mix(in srgb, var(--t1) 14%, var(--card));
  --iv-orb: var(--forest-2);
  --iv-ring: color-mix(in srgb, var(--forest) 10%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --iv-edge: #2a2e2f;
    --iv-sub: #a3aaae;
    --iv-main: var(--lime);
    --iv-on-main: #0b0c0d;
    --iv-btn-edge: #3a3f41;
    --iv-chip: #17191a;
    --iv-chip-edge: #2a2e2f;
    --iv-track: #1f2223;
    --iv-wait: #2a2e2f;
    --iv-orb: #0f4a38;
    --iv-ring: rgba(220, 239, 78, 0.08);
  }
}
:root[data-theme="dark"] {
  --iv-edge: #2a2e2f;
  --iv-sub: #a3aaae;
  --iv-main: var(--lime);
  --iv-on-main: #0b0c0d;
  --iv-btn-edge: #3a3f41;
  --iv-chip: #17191a;
  --iv-chip-edge: #2a2e2f;
  --iv-track: #1f2223;
  --iv-wait: #2a2e2f;
  --iv-orb: #0f4a38;
  --iv-ring: rgba(220, 239, 78, 0.08);
}

/* ── two chips under the question, never more (3.2.2) ── */
.iv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: calc(8 * var(--px));
  margin: calc(4 * var(--px)) 0 calc(10 * var(--px)) calc(44 * var(--px));
}
.iv-chips button {
  min-height: 44px;
  padding: calc(9 * var(--px)) calc(14 * var(--px));
  border-radius: calc(22 * var(--px));
  border: var(--hair, 1px) solid var(--iv-chip-edge);
  background: var(--iv-chip);
  color: var(--t1);
  font: inherit;
  font-size: var(--fs-body);
}
.iv-chips button.on {
  border-color: transparent;
  background: var(--iv-main);
  color: var(--iv-on-main);
  font-weight: 700;
}
/* One way to put it off ("Later", "Not now"): a quiet link, not a chip row. */
.iv-skip {
  display: block;
  min-height: 44px;
  margin: 0 0 calc(6 * var(--px)) calc(44 * var(--px));
  padding: 0 calc(4 * var(--px));
  border: 0;
  background: none;
  color: var(--iv-sub);
  font: inherit;
  font-size: var(--fs-body);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── the read-back and the first catalogue: one card ── */
.iv-cardrow .col {
  width: 100%;
  max-width: calc(330 * var(--px));
}
.iv-card {
  margin-top: calc(4 * var(--px));
  background: var(--card);
  border: var(--hair, 1px) solid var(--iv-edge);
  border-radius: calc(18 * var(--px));
  overflow: hidden;
  color: var(--t1);
}
.iv-card-h {
  margin: 0;
  padding: calc(14 * var(--px)) calc(14 * var(--px)) calc(4 * var(--px));
  font-size: var(--fs-head);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.iv-card-lines {
  padding: calc(4 * var(--px)) calc(14 * var(--px)) calc(12 * var(--px));
  display: flex;
  flex-direction: column;
  gap: calc(6 * var(--px));
}
.iv-card-lines p {
  margin: 0;
  font-size: var(--fs-row);
  line-height: 1.45;
}
.iv-card-lines p + p {
  color: var(--iv-sub);
}
.iv-card-acts {
  display: flex;
  gap: calc(10 * var(--px));
  padding: calc(10 * var(--px)) calc(14 * var(--px)) calc(12 * var(--px));
  border-top: var(--hair, 1px) solid var(--iv-edge);
}
.iv-card-acts button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  border-radius: calc(12 * var(--px));
  font: inherit;
  font-size: var(--fs-row);
}
.iv-yes {
  border: 0;
  background: var(--iv-main);
  color: var(--iv-on-main);
  font-weight: 700;
}
.iv-no {
  border: var(--hair, 1px) solid var(--iv-btn-edge);
  background: transparent;
  color: var(--t1);
  font-weight: 600;
}
.iv-card-acts button:disabled {
  opacity: 0.5;
}
.iv-group {
  padding: 0 calc(14 * var(--px)) calc(8 * var(--px));
}
.iv-group-h {
  padding-top: calc(6 * var(--px));
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--iv-sub);
}
.iv-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.iv-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(10 * var(--px));
  min-height: calc(40 * var(--px));
  border-bottom: var(--hair, 1px) solid var(--iv-edge);
  font-size: var(--fs-row);
}
.iv-list li:last-child {
  border-bottom: 0;
}
.iv-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.iv-name b {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.iv-name span {
  font-size: var(--fs-meta);
  color: var(--iv-sub);
}
.iv-price {
  flex: none;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.iv-price.empty {
  color: var(--iv-sub);
  font-weight: 500;
}
.iv-note {
  margin: 0;
  padding: calc(4 * var(--px)) 0 calc(6 * var(--px));
  font-size: var(--fs-meta);
  color: var(--iv-sub);
}
.iv-list > .iv-note {
  padding: 0 calc(14 * var(--px)) calc(10 * var(--px));
}

/* ── the box: Ask Remy's own, clear of the locked tabs, as the setup chat's was ── */
.iv-comp {
  flex: none;
}
.iv-comp > .comp {
  padding-bottom: calc(6.25 * var(--fix));
}
/* THE ROUND BUTTON (mic, send) IS LIME, as Ask Remy's (askflow.css, B2c; the founder's rule and mockups): near-black
   ink in dark, the forest ink of the app's other lime pills in light. On the new interview's screen only, the name,
   number and email boxes too; the setup chat without it is unchanged. */
[data-interview="v2"] .comp .mic {
  background: var(--lime);
  color: var(--on-lime);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-interview="v2"] .comp .mic {
    color: #0b0c0d;
  }
}
:root[data-theme="dark"] [data-interview="v2"] .comp .mic {
  color: #0b0c0d;
}
[data-interview="v2"] .comp .mic .rspin.light {
  border-color: rgba(11, 12, 13, 0.25);
  border-top-color: currentColor;
}

/* ── the setup animation (7.9; the board Animation.dc.html) ── */
.iv-reveal {
  min-height: 100dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: calc(24 * var(--px));
  padding: max(calc(48 * var(--px)), env(safe-area-inset-top)) calc(24 * var(--px)) max(calc(28 * var(--px)), env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--t1);
  max-width: calc(480 * var(--px));
  margin: 0 auto;
  width: 100%;
}
.iv-rv-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(14 * var(--px));
  text-align: center;
}
.iv-rv-orb {
  width: calc(80 * var(--px));
  height: calc(80 * var(--px));
  border-radius: 50%;
  background: var(--iv-orb);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 calc(10 * var(--px)) var(--iv-ring);
}
.iv-rv-orb i {
  width: calc(26 * var(--px));
  height: calc(26 * var(--px));
  border-radius: 50%;
  background: var(--lime);
}
.iv-rv-head h1 {
  margin: 0;
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.iv-rv-sub {
  font-size: var(--fs-row);
  color: var(--iv-sub);
}
.iv-rv-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--iv-track);
  overflow: hidden;
  flex: none;
}
.iv-rv-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--iv-main);
}
.iv-rv-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
}
.iv-rv-step {
  display: flex;
  align-items: center;
  gap: calc(14 * var(--px));
  padding: calc(12 * var(--px)) calc(16 * var(--px));
  border-radius: calc(16 * var(--px));
  background: var(--card);
  border: var(--hair, 1px) solid var(--iv-edge);
  opacity: 0.25;
  transform: translateY(6px);
}
.iv-rv-step[data-on] {
  opacity: 1;
  transform: none;
}
.iv-rv-tick {
  flex: none;
  width: calc(32 * var(--px));
  height: calc(32 * var(--px));
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--iv-wait);
  color: var(--iv-on-main);
}
.iv-rv-step[data-on] .iv-rv-tick {
  background: var(--iv-main);
}
.iv-rv-tick svg {
  width: calc(16 * var(--px));
  height: calc(16 * var(--px));
}
.iv-rv-tx {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.iv-rv-tx b {
  font-size: var(--fs-row);
}
.iv-rv-tx span {
  font-size: var(--fs-meta);
  color: var(--iv-sub);
  overflow-wrap: anywhere;
}
.iv-rv-open {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: max(52px, calc(52 * var(--px)));
  border: 0;
  border-radius: calc(14 * var(--px));
  background: var(--iv-main);
  color: var(--iv-on-main);
  font: inherit;
  font-size: var(--fs-row);
  font-weight: 600;
}
.iv-rv-skip {
  align-self: center;
  min-height: 44px;
  padding: 0 calc(16 * var(--px));
  border: 0;
  background: transparent;
  color: var(--iv-sub);
  font: inherit;
  font-size: var(--fs-body);
  font-weight: 600;
}
@media (prefers-reduced-motion: no-preference) {
  .iv-rv-step {
    transition:
      opacity 400ms ease,
      transform 400ms ease;
  }
  .iv-rv-step .iv-rv-tick {
    transition: background-color 400ms ease;
  }
  .iv-rv-bar i {
    transition: width 500ms ease;
  }
}
