/* ============================================================
   PAVO — WEB APP THEME (plus-app.io, App v2 pages, pay pages)
   Tokens: the --pv-* block below (pavo-web-handoff, 2026-10-05).
   The legacy --indigo/--ink/--canvas names stay as aliases so the
   parked pages keep rendering. Do NOT invent new colors, radii or
   shadows — everything ships from here. No raw hex outside :root.
   ============================================================ */

/* Pavo design tokens — v1.0, Oct 5, 2026. Source of truth: Docs/BRAND.md (pavo-web-handoff §4–§6). */
@font-face{font-family:'Familjen Grotesk';font-weight:400;font-display:swap;src:url('/assets/fonts/familjen-grotesk-latin-400-normal.woff2') format('woff2')}
@font-face{font-family:'Familjen Grotesk';font-weight:500;font-display:swap;src:url('/assets/fonts/familjen-grotesk-latin-500-normal.woff2') format('woff2')}
@font-face{font-family:'Familjen Grotesk';font-weight:600;font-display:swap;src:url('/assets/fonts/familjen-grotesk-latin-600-normal.woff2') format('woff2')}
@font-face{font-family:'Familjen Grotesk';font-weight:700;font-display:swap;src:url('/assets/fonts/familjen-grotesk-latin-700-normal.woff2') format('woff2')}

:root {
  /* ---- Pavo brand ---- */
  --pv-ink: #1D1730;          /* text, dark backgrounds */
  --pv-violet: #6E4AD1;       /* THE accent: one primary action per screen */
  --pv-violet-hover: #5F3DC0; /* primary hover (~6% darker) */
  --pv-violet-active: #5536AE;/* primary active (~12% darker) */
  --pv-violet-dark: #A98BF0;  /* accent in dark mode */
  --pv-violet-soft: #C9B9F5;  /* second half of the mark on violet only */
  --pv-lilac: #F2EFFA;        /* app background, chips, secondary buttons */
  --pv-white: #FFFFFF;        /* cards */
  --pv-violet-rgb: 110, 74, 209;
  /* ---- Status ---- */
  --pv-paid: #177F5D;         /* success only, white text */
  --pv-on-paid: #FFFFFF;
  --pv-pending-bg: var(--pv-lilac); --pv-pending-text: var(--pv-ink);
  --pv-declined-bg: #FBE9E7; --pv-declined-text: #8C2318;
  --pv-danger: var(--pv-declined-text); /* error text and destructive actions on a card; flips in dark */
  --pv-border-control: #8F88A8; /* edges of inputs, selects and switches: 3:1 against the card */
  --pv-inverse-bg: var(--pv-ink); /* the dark card and the toast; never the page colour */
  --pv-scrim: rgba(29, 23, 48, .5);
  --pv-danger-fill: #B3261E; --pv-on-danger: #FFFFFF; /* the one filled destructive button */
  /* ---- Neutrals ---- */
  --pv-caption: #5B5574;      /* secondary text on light */
  --pv-caption-dark: #B9B3CF; /* secondary text on ink */
  --pv-hairline: #E4DFF3;     /* borders, dividers, input outlines */
  --pv-chip: #E4DFF3;         /* pill buttons on lilac */
  --pv-ink-surface: #2B2444;  /* cards / pills on ink */
  --pv-border-dark: #3A3256;
  /* ---- Semantic (light) — the only names the Pavo pages use for surfaces/text ---- */
  --pv-bg: var(--pv-lilac); --pv-surface: var(--pv-white); --pv-text: var(--pv-ink);
  --pv-text-muted: var(--pv-caption); --pv-accent: var(--pv-violet); --pv-on-accent: #FFFFFF;
  --pv-border: var(--pv-hairline); --pv-chip-bg: var(--pv-lilac); --pv-row-divider: var(--pv-lilac);
  /* Violet washes for things that sit on a card: they stack, so an avatar still shows on a hovered row. */
  --pv-tint: rgba(var(--pv-violet-rgb), .10); --pv-row-hover: rgba(var(--pv-violet-rgb), .13); --pv-row-active: rgba(var(--pv-violet-rgb), .2);
  --pv-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%235B5574' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.5l4.5 4.5 4.5-4.5'/%3E%3C/svg%3E");
  /* ---- Type ---- */
  --pv-font: 'Familjen Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pv-fs-amount: 76px; --pv-fs-hero: 64px; --pv-fs-hero-mobile: 40px; --pv-fs-h2: 36px;
  --pv-fs-stat: 32px; --pv-fs-h1-app: 28px; --pv-fs-keypad: 28px; --pv-fs-wordmark-nav: 24px;
  --pv-fs-lead: 20px; --pv-fs-button: 18px; --pv-fs-body: 16px; --pv-fs-small: 15px;
  --pv-fs-caption: 13px; --pv-fs-tab: 12px;
  --pv-tracking-display: -0.04em; --pv-tracking-wordmark: -0.03em; --pv-tracking-eyebrow: 0.12em;
  /* ---- Radii ---- */
  --pv-r-input: 14px; --pv-r-card: 20px; --pv-r-button: 16px; --pv-r-button-lg: 18px;
  --pv-r-panel: 24px; --pv-r-pill: 999px;
  /* ---- Spacing (4-pt base) ---- */
  --pv-s1: 4px; --pv-s2: 8px; --pv-s3: 12px; --pv-s4: 16px; --pv-s5: 20px; --pv-s6: 24px;
  --pv-s8: 32px; --pv-s10: 40px; --pv-s12: 48px; --pv-s16: 64px; --pv-s18: 72px;
  /* ---- Layout ---- */
  --pv-max-w: 1200px; --pv-rail-w: 240px; --pv-gutter: 24px; --pv-gutter-mobile: 20px;
  --pv-touch: 44px; --pv-button-h: 56px; --pv-input-h: 52px;

  /* ---- Legacy App v2 names (every existing page reads these). Static light values:
          the parked pages were never checked in dark, so they do not follow the theme. ---- */
  --indigo: var(--pv-violet);               /* primary actions, active nav, links */
  --indigo-grad: var(--pv-violet);          /* no gradients in Pavo */
  --logo-grad: var(--pv-violet);
  --indigo-wash: var(--pv-lilac);
  --indigo-tint: var(--pv-lilac);
  --indigo-deep: var(--pv-violet);          /* violet on lilac 5.19:1 */
  --ink: var(--pv-ink);
  --ink-2: var(--pv-caption);
  --ink-3: var(--pv-caption);
  --ink-4: #8F88A8;                         /* placeholders, faint */
  --chevron: #B6ABD8;
  --disabled-track: var(--pv-chip);
  --canvas: var(--pv-lilac);
  --card: var(--pv-white);
  --field: var(--pv-lilac);
  --hairline: var(--pv-hairline);
  --border: var(--pv-hairline);
  --seg-track: var(--pv-lilac);
  --row-selected: var(--pv-lilac);
  --skeleton: var(--pv-chip);
  --skeleton-2: var(--pv-hairline);
  --scrim: rgba(29, 23, 48, .5);
  --green: var(--pv-paid);  --green-tint: #DFF3EA;
  --orange: var(--pv-declined-text); --orange-tint: var(--pv-declined-bg);
  --cat-wellness: var(--pv-paid);
  --cat-classes: var(--pv-violet); --cat-classes-tint: var(--pv-lilac);
  --sh-card: 0 0 0 1px rgba(29,23,48,.04);
  --sh-pill: 0 0 0 1px rgba(29,23,48,.05);
  --sh-btn: none;
  --sh-lux: none;
  --sh-toast: 0 16px 40px rgba(29,23,48,.22);
  --sh-modal: 0 30px 80px rgba(29,23,48,.35);
  --sh-receipt: 0 14px 34px rgba(29,23,48,.14);
  --sh-seg: 0 1px 3px rgba(29,23,48,.12);
  --r-card: 20px;   --r-modal: 20px;  --r-hero-card: 24px;
  --r-field: 14px;  --r-nav: 14px;    --r-tile: 12px;
  --r-pill: 999px;
  --font: var(--pv-font);
  --mono: ui-monospace, Menlo, monospace;
  --sidebar-w: 240px;
  --rail-w: 316px;
  --subnav-w: 190px;
  --content-pad: 26px 36px;
}
/* Dark mode: system preference, or a manual choice stored as data-theme on <html>
   (Settings → Appearance). Only the semantic --pv-* names flip. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pv-bg: var(--pv-ink); --pv-surface: var(--pv-ink-surface); --pv-text: var(--pv-lilac);
    --pv-text-muted: var(--pv-caption-dark); --pv-accent: var(--pv-violet-dark); --pv-on-accent: var(--pv-ink);
    --pv-border: var(--pv-border-dark); --pv-chip-bg: var(--pv-border-dark); --pv-row-divider: var(--pv-border-dark);
    --pv-declined-bg: #4A2622; --pv-declined-text: #F3A79B; --pv-border-control: #8A82A8;
    --pv-inverse-bg: var(--pv-border-dark); --pv-scrim: rgba(0, 0, 0, .6);
    --pv-violet-rgb: 169, 139, 240;
    --pv-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23B9B3CF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.5l4.5 4.5 4.5-4.5'/%3E%3C/svg%3E");
  }
}
:root[data-theme="dark"] {
  --pv-bg: var(--pv-ink); --pv-surface: var(--pv-ink-surface); --pv-text: var(--pv-lilac);
  --pv-text-muted: var(--pv-caption-dark); --pv-accent: var(--pv-violet-dark); --pv-on-accent: var(--pv-ink);
  --pv-border: var(--pv-border-dark); --pv-chip-bg: var(--pv-border-dark); --pv-row-divider: var(--pv-border-dark);
  --pv-declined-bg: #4A2622; --pv-declined-text: #F3A79B; --pv-border-control: #8A82A8;
  --pv-inverse-bg: var(--pv-border-dark); --pv-scrim: rgba(0, 0, 0, .6);
  --pv-violet-rgb: 169, 139, 240;
  --pv-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23B9B3CF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.5l4.5 4.5 4.5-4.5'/%3E%3C/svg%3E");
}
.pv-amount { font-family: var(--pv-font); font-weight: 700; letter-spacing: var(--pv-tracking-display); font-variant-numeric: tabular-nums; line-height: 1; }

/* ============ Base ============ */
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--font); font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--indigo); font-weight: 700; text-decoration: none; }
a:hover:not(.btn) { color: var(--indigo-deep); }

/* Money is ALWAYS tabular + heavy. No exceptions. */
.money { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -.02em; }
.money-hero  { font-size: 54px; letter-spacing: -1.5px; line-height: 1.05; } /* Home hero */
.money-panel { font-size: 30px; letter-spacing: -.8px; }                     /* rails, balances */
.money-modal { font-size: 44px; letter-spacing: -1.2px; }                    /* sale detail, checkout */
.money-pos { color: var(--green); }   /* incoming: prefix + */
.money-neg { color: var(--ink); }     /* expenses: prefix − (U+2212) */

/* ============ Typography ============ */
.page-title   { font-size: 28px; font-weight: 700; letter-spacing: -.6px; color: var(--ink); }
.section-title{ font-size: 17px; font-weight: 700; color: var(--ink); }
.card-label   { font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--ink-3); text-transform: uppercase; }
.row-title    { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.row-sub      { font-size: 12.5px; color: var(--ink-3); }
.helper       { font-size: 12px; color: var(--ink-4); }
.mono-footer  { font: 11.5px var(--mono); color: var(--ink-4); letter-spacing: .02em; text-transform: uppercase; }

/* ============ Buttons (all pill) ============ */
/* Kill UA button chrome — production uses <button>, handoff mocks used <div>s */
button, .btn, .chip, .charge-copy-chip, .charge-item-card, .segmented > * {
  -webkit-appearance: none; appearance: none; border: 0;
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; border-radius: var(--r-pill); font-family: var(--font);
  font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--indigo); color: #fff; height: 44px; padding: 0 22px; box-shadow: var(--sh-btn); }
.btn-primary:hover,
.btn-primary:focus-visible { color: #fff; }
.btn-primary.lg { height: 48px; font-size: 14.5px; }
.btn-secondary { background: var(--card); color: var(--ink); height: 44px; padding: 0 22px; box-shadow: var(--sh-pill); }
.btn-ghost { background: var(--field); color: var(--ink); height: 40px; padding: 0 18px; font-size: 13.5px; }
.btn-header { height: 38px; font-size: 13.5px; padding: 0 18px; }   /* page-header size */
.btn-danger-text { background: none; color: var(--orange); font-size: 13px; font-weight: 700; padding: 0; }
/* Social auth buttons are the ONLY rectangular (r12) buttons */
.btn-auth { width: 100%; height: 46px; border-radius: var(--r-field); gap: 10px; }
.btn-auth.apple { background: #111; color: #fff; overflow: visible; }
.btn-auth.google,
.btn-auth.quickbooks { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.auth-oauth-stack .btn-auth,
.auth-provider-lockup {
  overflow: visible;
}
.auth-provider-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.auth-provider-text { line-height: 1; }
.btn-auth .auth-provider-mark {
  flex: none;
  display: block;
  object-fit: contain;
  overflow: visible;
  width: 20px;
  height: 20px;
}
.btn-auth .auth-provider-mark--apple {
  width: 18px;
  height: 20px;
  overflow: visible;
  line-height: 0;
  color: inherit;
}
.btn-auth .auth-provider-mark--apple svg {
  display: block;
  width: 18px;
  height: 20px;
  overflow: visible;
}
body.emmber-dark .btn-auth.google,
body.emmber-dark .btn-auth.quickbooks {
  background: var(--card);
  color: var(--ink);
  border-color: var(--border);
}

/* ============ Cards ============ */
.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-card); }
.card-pad { padding: 18px 22px; }
.card-hero { border-radius: var(--r-hero-card); padding: 44px 44px 36px; box-shadow: var(--sh-card); background: var(--card); } /* centered auth/gate cards, w 440 */
.card-selected { background: var(--indigo-wash); border: 2px solid var(--indigo); }  /* + r18 */
.lux-card { border-radius: 20px; background: var(--indigo-grad); box-shadow: var(--sh-lux); padding: 18px 20px; color: #fff; }
.lux-hint { background: var(--indigo-tint); border-radius: 12px; padding: 11px 13px;
  font-size: 12.5px; line-height: 1.45; color: var(--indigo-deep); font-weight: 600; } /* prefix copy with ✦ */
.dashed-zone { border: 2px dashed #D8D8E4; border-radius: var(--r-card); } /* empty states */

/* ============ Sidebar ============ */
.sidebar { width: var(--sidebar-w); flex: none; background: var(--card);
  border-right: 1px solid var(--hairline); display: flex; flex-direction: column; padding: 20px 12px 14px; }
.nav-row { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px;
  border-radius: var(--r-nav); color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; }
.nav-row.active { background: var(--indigo-tint); color: var(--indigo); font-weight: 700; }
.nav-row .badge { margin-left: auto; min-width: 20px; height: 20px; border-radius: var(--r-pill);
  background: var(--indigo); color: #fff; font-size: 11.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.nav-row .badge[hidden] { display: none; }
.sidebar-footer { margin-top: auto; border-top: 1px solid var(--hairline); padding: 12px 8px 0;
  display: flex; align-items: center; gap: 10px; }  /* avatar 32 + name/business + gear icon */
a.sidebar-footer { text-decoration: none; color: inherit; }
a.sidebar-footer:hover .plus-web-gear { color: var(--ink-2); }

/* ============ Settings sub-nav ============ */
.subnav { width: var(--subnav-w); flex: none; display: flex; flex-direction: column; gap: 2px; }
.subnav-row { height: 36px; display: flex; align-items: center; padding: 0 12px;
  border-radius: var(--r-nav); color: var(--ink-2); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.subnav-row.active { background: var(--indigo-tint); color: var(--indigo); font-weight: 700; }
a.subnav-row { text-decoration: none; color: inherit; }
.settings-page-title { margin: 0 0 22px; }
.plus-web-header-row .settings-page-title { margin: 0; }
.plus-web-header-row + .settings-shell { margin-top: 22px; }
/* Order: Profile · Business · Payouts · Taxes · Receipts · Notifications · Lux · Plan & billing */

/* ============ Header pieces ============ */
.search-pill { display: flex; align-items: center; gap: 8px; background: #fff;
  border-radius: var(--r-pill); height: 38px; padding: 0 8px 0 14px; box-shadow: var(--sh-pill); min-width: 250px; }
.kbd { font-size: 11px; font-weight: 600; color: var(--ink-3); background: var(--hairline);
  border-radius: 6px; padding: 3px 7px; }

/* ============ Chips / pills ============ */
.chip { height: 30px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600;
  display: inline-flex; align-items: center; padding: 0 14px; background: var(--card);
  color: var(--ink-2); box-shadow: var(--sh-pill); cursor: pointer;
  border: 0; font-family: var(--font); }
.chip.active { background: #111; color: #fff; font-weight: 700; }
.status-pill { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); }
.status-pill.paid    { background: var(--green-tint); color: var(--green); }
.status-pill.overdue { background: var(--orange-tint); color: var(--orange); }
.status-pill.sent    { background: var(--indigo-tint); color: var(--indigo-deep); }
.status-pill.default { background: var(--hairline); color: var(--ink-2); }
.trend-pill { display: inline-flex; align-items: center; background: var(--green-tint);
  color: var(--green); font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: var(--r-pill); }

/* ============ Segmented control ============ */
.segmented { display: inline-flex; background: var(--seg-track); border-radius: var(--r-pill); padding: 3px; }
.segmented > * { height: 32px; display: flex; align-items: center; justify-content: center;
  padding: 0 22px; font-size: 13px; font-weight: 600; color: var(--ink-2);
  border-radius: var(--r-pill); cursor: pointer; border: 0; background: transparent; font-family: var(--font); }
.segmented > .active { background: #fff; box-shadow: 0 1px 3px rgba(30,30,80,.12); font-weight: 700; color: var(--ink); }

/* ============ Inputs ============ */
.field-label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; display: block; }
.input { height: 46px; border-radius: var(--r-field); background: var(--field); border: 0;
  display: flex; align-items: center; padding: 0 16px; font-size: 14.5px; color: var(--ink);
  width: 100%; font-family: var(--font); }
.input::placeholder { color: var(--ink-4); }
.input:focus, .input.focused { outline: none; background: #fff; border: 2px solid var(--indigo); }
/* 2FA / login codes: 46×54 boxes, r12, 20/800 mono digits; active box = white + 2px indigo + caret */

/* ============ Toggle (44×26) ============ */
.toggle { width: 44px; height: 26px; border-radius: var(--r-pill); background: var(--disabled-track);
  position: relative; cursor: pointer; flex: none; transition: background .15s ease; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .15s ease; }
.toggle.on { background: var(--indigo); }
.toggle.on::after { left: 21px; }

/* ============ List rows / tables ============ */
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; }
.list-divider { height: 1px; background: var(--hairline); margin-left: 66px; } /* inset past icon */
.icon-tile { flex: none; width: 36px; height: 36px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; }
.icon-tile.indigo { background: var(--indigo-tint); color: var(--indigo); }
.icon-tile.green  { background: var(--green-tint); }
.icon-tile.orange { background: var(--orange-tint); color: var(--orange); font-size: 16px; font-weight: 700; }
.avatar { border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.avatar.indigo { background: var(--indigo-tint); color: var(--indigo); }
/* Avatar tint rotation for lists: brand → orange-tint/#8A2208 → green-tint/#177245 → #FBEAF6/#B0489C */
.table-header { display: flex; align-items: center; gap: 14px; padding: 12px 18px 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--ink-3); }
.table-row-selected { background: var(--indigo-wash); border-left: 3px solid var(--indigo); }

/* ============ Modals (App v2 / auth only — do not restyle Bootstrap .modal) ============ */
.plus-web-body .plus-web-modal-host .modal-backdrop,
.plus-web-modal-host .modal-backdrop,
.auth-body .plus-web-modal-host .modal-backdrop {
  position: fixed; inset: 0; background: var(--scrim);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.plus-web-body .modal,
.plus-web-modal-host .modal,
.auth-body .modal {
  background: var(--card); border-radius: var(--r-modal); box-shadow: var(--sh-modal); padding: 26px 28px 24px;
}
/* Widths: forms 480 · detail 520 · composer/chase/palette 560–580. Center at top:~15%. */

/* ============ Toast (live payment) ============ */
.plus-web-body .toast,
.auth-body .toast {
  position: fixed; top: 22px; right: 28px; display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: 16px; box-shadow: var(--sh-toast); padding: 14px 18px;
}

/* ============ Timeline (invoice chase) ============ */
.tl-row { display: flex; gap: 12px; }
.tl-gutter { display: flex; flex-direction: column; align-items: center; width: 12px; flex: none; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--indigo); margin-top: 4px; }
.tl-dot.orange { background: var(--orange); }
.tl-dot.pending { background: #fff; border: 2.5px solid var(--indigo); }
.tl-line { width: 2px; flex: 1; background: var(--skeleton-2); }

/* ============ Receipt (500 page, receipt preview) ============ */
.receipt { background: var(--card); border-radius: 10px; box-shadow: var(--sh-receipt);
  padding: 22px 24px; font-family: var(--mono); transform: rotate(-1.2deg); }
.receipt .dash { border-top: 1.5px dashed #D8D8E4; }

/* ============ Skeletons ============ */
.skeleton { background: var(--skeleton); border-radius: var(--r-card); }
.skeleton.sm { background: var(--skeleton-2); border-radius: var(--r-nav); }
.skeleton-line { height: 14px; border-radius: var(--r-nav); margin: 10px 0; }
.skeleton-shimmer {
  background: linear-gradient(90deg, var(--skeleton) 0%, var(--skeleton-2) 50%, var(--skeleton) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.skeleton-table-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.skeleton-table-row .skeleton-avatar { width: 38px; height: 38px; border-radius: 12px; flex: none; }
.skeleton-table-row .skeleton-lines { flex: 1; }

/* ============ Spinner ring (under review) ============ */
.spinner { width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--indigo-tint); border-top-color: var(--indigo);
  animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ App shell layout (Phase 1) ============ */
.plus-web-app { display: flex; min-height: 100vh; }
.plus-web-content { flex: 1; min-width: 0; padding: var(--content-pad); }
.plus-web-header-row { display: flex; align-items: center; gap: 14px; }
.plus-web-header-title { margin: 0; }
.plus-web-header-action { margin-left: auto; }
.plus-web-header-search {
  margin-left: auto; border: 0; cursor: pointer; font-family: var(--font);
  background: var(--card); color: var(--ink);
}
/* Search owns the auto-margin; keep the primary CTA flush beside it */
.plus-web-header-search + .plus-web-header-action,
.plus-web-header-search + .btn-header { margin-left: 0; }
.plus-web-header-search:hover { box-shadow: var(--sh-card); }
.plus-web-header-search-text { font-size: 13.5px; color: var(--ink-3); flex: 1; text-align: left; }
.plus-web-header-search .plus-icon { color: var(--ink-3); }
.plus-web-hero-row { display: flex; align-items: flex-end; gap: 28px; margin-top: 24px; flex-wrap: wrap; }
.plus-web-hero-money { margin-top: 2px; }
.plus-web-hero-trend { margin-bottom: 10px; }
.plus-web-section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 2px 10px; }
.plus-web-see-all { font-size: 13.5px; font-weight: 700; }
.plus-web-recent-card { padding: 4px 0; }
.plus-web-empty-dashed { padding: 52px 40px; text-align: center; margin-top: 26px; }
.plus-web-empty-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; }
.plus-web-empty-title { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.plus-web-empty-copy { font-size: 14px; color: var(--ink-3); margin-bottom: 20px; }
.plus-web-lux-see-all { font-size: 13px; font-weight: 600; opacity: .85; color: #fff; text-decoration: none; }
.plus-web-quick-chevron { color: var(--chevron); font-size: 15px; }
.plus-web-quick-title { flex: 1; font-size: 14px; }
.plus-web-quick-icon { width: 34px; height: 34px; }
.plus-web-quick-divider { margin-left: 62px; }
.plus-web-row-status { font-size: 12.5px; font-weight: 600; margin-top: 1px; }
.plus-web-row-amount { font-size: 14.5px; font-weight: 700; }
.plus-web-icon-green { color: var(--green); }
.plus-web-icon-indigo { color: var(--indigo); }
.plus-web-icon-white { color: #fff; }
.plus-web-day-one { margin-bottom: 10px; }
.plus-web-grid { display: grid; grid-template-columns: 1fr var(--rail-w); gap: 24px; margin-top: 26px; align-items: start; }
.plus-web-rail { display: flex; flex-direction: column; gap: 16px; padding-top: 33px; }
.plus-web-app svg.plus-icon { display: block; flex-shrink: 0; }
.plus-web-body { background: var(--canvas); }
.plus-web-logo-mark { display: block; flex: none; width: 28px; height: 28px; }
.plus-web-sidebar-logo { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; }
.plus-web-sidebar-logo span { font-size: 22px; font-weight: 700; letter-spacing: var(--pv-tracking-wordmark); text-transform: lowercase; color: var(--ink); }
.plus-web-sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.plus-web-sidebar-divider { height: 1px; background: var(--hairline); margin: 14px 8px; flex: none; }
.plus-web-sidebar-lux { flex: none; }
.plus-web-lux-glyph { color: var(--indigo); flex: none; display: inline-flex; align-items: center; line-height: 0; }
.plus-web-lux-glyph lux-mark[data-variant="mono"] { color: inherit; }
.lux-page-mark { flex: none; display: inline-flex; align-items: center; line-height: 0; }
.plus-web-sidebar-avatar { width: 32px; height: 32px; font-size: 13px; flex: none; }
.plus-web-sidebar-footer-meta { flex: 1; min-width: 0; }
.plus-web-sidebar-footer-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.plus-web-sidebar-footer-biz { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.plus-web-nav-link { text-decoration: none; color: inherit; width: 100%; box-sizing: border-box; }
a.plus-web-nav-link.nav-row:hover:not(.active) { background: var(--row-selected); color: var(--ink); }
.nav-row svg.plus-icon { color: var(--ink-2); flex-shrink: 0; }
.plus-web-gear { color: var(--ink-3); transition: color .15s ease; flex: none; }
.plus-web-lux-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.18); font-size: 11px; font-weight: 700; letter-spacing: .5px; padding: 4px 10px; border-radius: 99px; }
.plus-web-lux-badge .plus-icon,
.plus-web-lux-badge lux-mark { flex: none; color: #fff; }
.plus-web-lux-badge lux-mark [data-lux-arc],
.plus-web-lux-badge lux-mark [data-lux-track] { stroke: #fff; }
.plus-web-lux-badge lux-mark [data-lux-dots] { fill: #fff; }
.plus-web-lux-card-head { display: flex; align-items: center; justify-content: space-between; }
.plus-web-lux-msg { margin-top: 12px; font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.plus-web-lux-actions { display: flex; gap: 8px; margin-top: 14px; }
/* `display: flex` beats the hidden attribute; Quiet and Later hide Review / Later. */
.plus-web-lux-actions[hidden] { display: none; }
.plus-web-lux-btn-white { flex: 1; height: 38px; background: #fff; color: var(--indigo); font-size: 13.5px; border: 0; border-radius: var(--r-pill); font-weight: 700; cursor: pointer; font-family: var(--font); }
.plus-web-lux-btn-ghost { height: 38px; background: rgba(255,255,255,.16); color: #fff; font-size: 13.5px; padding: 0 18px; border: 0; border-radius: var(--r-pill); font-weight: 700; cursor: pointer; font-family: var(--font); }
.plus-web-quick-row { padding: 11px 16px; cursor: pointer; text-decoration: none; color: inherit; display: flex; align-items: center; gap: 12px; }
.plus-web-quick-row:hover { background: var(--row-selected); }
.plus-web-sparkline { margin-left: auto; margin-bottom: 4px; flex-shrink: 0; }
.plus-web-sparkline:empty,
.plus-web-sparkline[hidden] { display: none; }
.plus-web-recent-loading { padding: 32px 18px; text-align: center; color: var(--ink-3); font-size: 13px; }
.plus-web-hidden { display: none; }

/* Command palette — hidden until JS removes [hidden] */
.plus-web-palette { position: fixed; inset: 0; z-index: 9000; display: none; justify-content: center; padding-top: 110px; }
.plus-web-palette:not([hidden]) { display: flex; }
.plus-web-palette-backdrop { position: absolute; inset: 0; background: var(--scrim); }
.plus-web-palette-panel { position: relative; width: 580px; max-width: calc(100vw - 32px); background: #fff; border-radius: var(--r-modal); box-shadow: var(--sh-modal); overflow: hidden; }

/* Generic full-screen overlay (e.g. Charge custom amount) */
.plus-web-overlay { position: fixed; inset: 0; z-index: 9000; display: none; justify-content: center; padding-top: 110px; }
.plus-web-overlay:not([hidden]) { display: flex; }
.plus-web-overlay-backdrop { position: absolute; inset: 0; background: var(--scrim); }

body.plus-web-overlay-open { overflow: hidden; }
.plus-web-cmd-search { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--hairline); background: #fff; }
.plus-web-cmd-search input { flex: 1; border: 0; font-size: 15px; font-family: var(--font); outline: none; background: #fff; color: var(--ink); }
.plus-web-cmd-search input::placeholder { color: var(--ink-3); }
.plus-web-cmd-results { background: #fff; max-height: min(420px, calc(100vh - 240px)); overflow-y: auto; }
.plus-web-cmd-group-label { font-size: 10.5px; font-weight: 700; letter-spacing: .4px; color: var(--ink-3); padding: 10px 18px 6px; text-transform: uppercase; }
.plus-web-cmd-row { display: flex; align-items: center; gap: 12px; padding: 10px 18px; cursor: pointer; }
.plus-web-cmd-row:hover, .plus-web-cmd-row.selected { background: var(--indigo-wash); border-left: 3px solid var(--indigo); padding-left: 15px; }
.plus-web-cmd-row-status { cursor: default; }
.plus-web-cmd-row-status:hover, .plus-web-cmd-row-status.selected { background: transparent; border-left: 0; padding-left: 18px; }
.plus-web-cmd-row-body { flex: 1; min-width: 0; }
.plus-web-cmd-avatar { width: 32px; height: 32px; font-size: 12px; flex: none; }
.plus-web-cmd-tile { width: 32px; height: 32px; flex: none; }
.plus-web-cmd-sub-overdue { color: var(--orange); font-weight: 600; }
.plus-web-cmd-sub-muted { color: var(--ink-3); }
.plus-web-cmd-footer { background: #FAFAFD; border-top: 1px solid var(--hairline); padding: 10px 18px; font-size: 11.5px; color: var(--ink-3); }

@media (max-width: 960px) {
  .plus-web-grid { grid-template-columns: 1fr; }
  .plus-web-rail { padding-top: 0; }
  .sidebar { display: none; }
  .plus-web-content { padding: 20px 16px; }
  .charge-item-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Active nav icon tint */
a.plus-web-nav-link.nav-row.active svg { color: var(--indigo); }

/* ============ Charge screen ============ */
.charge-main-grid { display: grid; grid-template-columns: 1fr var(--rail-w); gap: 24px; margin-top: 26px; align-items: start; }
.charge-frequent-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.charge-item-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.charge-item-card {
  min-height: 148px; border-radius: 18px; padding: 16px 16px 14px; background: var(--card);
  box-shadow: var(--sh-card); cursor: pointer; position: relative; border: 2px solid transparent;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch;
  text-align: left; color: inherit; font: inherit; width: 100%;
}
.charge-item-card:hover { box-shadow: var(--sh-pill); }
.charge-item-card:focus { outline: none; }
.charge-item-card:focus-visible { border-color: var(--indigo); box-shadow: var(--sh-pill); }
.charge-item-card.card-selected { background: var(--indigo-wash); border-color: var(--indigo); padding-top: 40px; }
.charge-item-card.charge-custom-card { border: 2px dashed var(--border); box-shadow: none; }
.charge-item-icon {
  width: 36px; height: 36px; border-radius: var(--r-tile); background: var(--indigo-tint);
  color: var(--indigo); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; flex: none; align-self: center;
}
.charge-item-card.card-selected .charge-item-icon { background: var(--indigo); color: #fff; }
.charge-cat-label { font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; margin-bottom: 6px; }
.charge-cat-label.wellness { color: var(--cat-wellness); }
.charge-cat-label.classes { color: var(--cat-classes); }
.charge-cat-label.default { color: var(--ink-3); }
.charge-item-name { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.25; margin-bottom: 4px; }
.charge-item-sub { font-size: 12.5px; color: var(--ink-4); }
.charge-qty-stepper {
  position: absolute; top: 8px; right: 8px; display: flex; align-items: center; gap: 4px; z-index: 1;
}
.charge-qty-btn {
  width: 24px; height: 24px; border-radius: 50%; background: var(--indigo); color: #fff;
  font-size: 14px; font-weight: 700; line-height: 1; display: flex; align-items: center;
  justify-content: center; cursor: pointer; padding: 0; font-family: var(--font);
}
.charge-qty-btn:focus { outline: none; }
.charge-qty-btn:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--indigo); }
.charge-qty-value {
  min-width: 22px; text-align: center; font-size: 12px; font-weight: 700; color: var(--indigo);
}
.charge-rail-card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-card); padding: 20px 22px; }
.charge-rail-total { margin: 4px 0 2px; }
.charge-rail-count { font-size: 12.5px; color: var(--ink-3); margin-bottom: 16px; }
.charge-segment-wrap { margin-bottom: 16px; }
.charge-link-pill {
  display: flex; align-items: center; gap: 8px; background: var(--field); border-radius: var(--r-pill);
  padding: 8px 10px 8px 14px; margin-top: 12px;
}
.charge-link-pill code { flex: 1; font: 12.5px var(--mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; background: transparent; }
.charge-copy-chip { height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: #fff; border: 0; font-size: 12.5px; font-weight: 700; cursor: pointer; box-shadow: var(--sh-pill); font-family: var(--font); }
.charge-qr-wrap { text-align: center; margin-top: 12px; }
.charge-qr-box { width: 150px; height: 150px; margin: 0 auto; border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.charge-qr-caption { font-size: 12px; color: var(--ink-3); margin-top: 10px; line-height: 1.4; }
.charge-cash-note { font-size: 13px; color: var(--ink-2); line-height: 1.45; margin-top: 12px; }
.charge-panel-actions { margin-top: 14px; }
.charge-panel-actions .btn-primary { width: 100%; }
.charge-panel-actions .btn-primary:disabled {
  background: var(--field); color: var(--ink-4); box-shadow: none; cursor: default;
}

/* Payment toast */
.plus-web-toast-host { position: fixed; top: 22px; right: 28px; z-index: 8000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }

/* ============ Invoices / Records tables ============ */
.web-table-card { padding: 4px 0; }
.invoice-overdue-banner {
  display: flex; align-items: center; gap: 12px; background: var(--orange-tint);
  border-radius: var(--r-card); padding: 14px 18px; margin-bottom: 14px;
}
.invoice-overdue-icon { width: 36px; height: 36px; flex: none; }
.invoice-overdue-title { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.invoice-overdue-sub { font-size: 13px; font-weight: 700; color: var(--orange); margin-top: 2px; }
.invoice-empty-copy { max-width: 360px; margin-left: auto; margin-right: auto; }
.invoice-empty-dashed { padding: 52px 40px; text-align: center; margin-top: 8px; min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.invoice-empty-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.invoice-main-empty { grid-template-columns: 1fr; }
.invoice-main-empty .plus-web-rail { display: none; }
.plus-web-cmd-caret { width: 2px; height: 18px; background: var(--indigo); border-radius: 1px; flex: none; animation: cmd-caret-blink 1s step-end infinite; }
.plus-web-cmd-amount { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
@keyframes cmd-caret-blink { 50% { opacity: 0; } }
.help-page-title { margin: 0 0 22px; }
.help-hero-title { font-size: 18px; font-weight: 700; }
.help-hero-copy { margin: 8px 0 14px; font-size: 14px; line-height: 1.45; opacity: .92; }
.help-ask-btn { margin-top: 14px; background: #fff; color: var(--indigo); height: 38px; }
.help-topic-icon { flex: none; }
.gate-page { min-height: 100vh; position: relative; }
.gate-logo { position: absolute; top: 26px; left: 32px; }
.gate-title { font-size: 24px; margin-bottom: 10px; text-align: center; }
.gate-sub { text-align: center; margin-bottom: 22px; }
.gate-card { text-align: left; margin-bottom: 18px; }
.gate-step-done { color: var(--green); text-decoration: line-through; }
.gate-step-active { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px; background: var(--row-selected); border-radius: 12px; }
.gate-step-pending { margin-top: 12px; color: var(--ink-4); }
.gate-hint { text-align: left; margin-bottom: 18px; }
.gate-actions { display: inline-flex; align-items: center; justify-content: center; width: 100%; margin-bottom: 10px; text-decoration: none; }
.gate-footer-note { margin-top: 20px; text-align: center; }
.invoice-table-head {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--ink-3); text-transform: uppercase;
}
.invoice-table-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px; cursor: pointer;
  border-left: 3px solid transparent;
}
.invoice-table-row:hover { background: var(--row-selected); }
.invoice-col-client { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.invoice-col-invoice { width: 88px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.invoice-col-due { width: 72px; font-size: 13px; color: var(--ink-3); }
.invoice-col-status { width: 92px; display: flex; justify-content: flex-end; }
.invoice-client-name { font-size: 14.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.web-table-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px; cursor: pointer;
  border-left: 3px solid transparent;
}
.web-table-row:hover { background: var(--row-selected); }
.web-table-row.selected { background: var(--indigo-wash); border-left-color: var(--indigo); }
.web-table-head {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--ink-3); text-transform: uppercase;
}
.web-table-head .col-money, .web-table-row .col-money { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; }
.web-avatar {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex: none;
}
.web-avatar.tint-indigo { background: var(--indigo-tint); color: var(--indigo); }
.web-avatar.tint-orange { background: var(--orange-tint); color: var(--orange); }
.web-avatar.tint-green { background: var(--green-tint); color: var(--green); }
.web-avatar.tint-pink { background: var(--cat-classes-tint); color: var(--cat-classes); }
.web-letter-tile {
  width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; flex: none;
}
.records-tab-segment { margin-top: 18px; }
.records-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.records-rail-card { min-height: 120px; }
.records-table-head {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--ink-3); text-transform: uppercase;
}
.records-table-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px; cursor: pointer;
  border-left: 3px solid transparent;
}
.records-table-row:hover { background: var(--row-selected); }
.records-table-row.selected { background: var(--indigo-wash); border-left-color: var(--indigo); }
.records-col-client { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.records-col-stack { flex: 1; min-width: 0; }
.records-col-last { width: 120px; font-size: 13px; color: var(--ink-2); flex: none; }
.records-col-visits { width: 60px; text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; flex: none; }
.records-col-lifetime { width: 90px; text-align: right; font-size: 14px; flex: none; }
.records-col-item { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.records-col-category { width: 120px; flex: none; }
.records-col-price { width: 80px; text-align: right; font-size: 14px; flex: none; }
.records-col-sold { width: 60px; text-align: right; font-size: 13px; flex: none; }
.records-col-expense { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.records-col-date { width: 90px; font-size: 13px; color: var(--ink-2); flex: none; }
.records-col-amount { width: 90px; text-align: right; font-size: 14px; flex: none; }
.records-cat-pill { background: var(--hairline); color: var(--ink-2); font-size: 10.5px; font-weight: 700; letter-spacing: .3px; }
.records-expense-icon { width: 38px; height: 38px; background: var(--field); flex: none; }
.records-overdue-pill { margin-left: 6px; vertical-align: middle; }
.records-rail-avatar { width: 52px; height: 52px; font-size: 18px; margin-bottom: 10px; }
.records-rail-name { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.records-rail-sub { margin-bottom: 14px; }
.records-rail-actions { display: flex; gap: 8px; margin-bottom: 14px; }
.records-rail-btn-full { width: 100%; text-decoration: none; text-align: center; }
.records-rail-btn-stack { width: 100%; margin-bottom: 8px; text-decoration: none; text-align: center; }
.web-letter-tile.tint-indigo { background: var(--indigo-tint); color: var(--indigo); }
.web-letter-tile.tint-orange { background: var(--orange-tint); color: var(--orange); }
.web-letter-tile.tint-green { background: var(--green-tint); color: var(--green); }
.web-letter-tile.tint-pink { background: var(--cat-classes-tint); color: var(--cat-classes); }
.web-filter-row { display: flex; align-items: center; gap: 8px; margin: 14px 0 12px; flex-wrap: wrap; }
.web-filter-row .count-text { margin-left: auto; font-size: 12.5px; color: var(--ink-3); }
.records-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.records-stat-grid .stat-val { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.records-stat-grid .stat-label { font-size: 10.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .4px; }

/* ============ Lux page ============ */
.lux-page-wrap { max-width: 680px; margin: 0 auto; }
.lux-page-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.lux-page-header h1 { font-size: 20px; font-weight: 700; margin: 0; }
.lux-page-search { margin-left: auto; }
.lux-todo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.lux-todo-mini { border-radius: 16px; padding: 14px 16px; }
.lux-todo-mini.white { background: var(--card); box-shadow: var(--sh-card); }
.lux-todo-mini.grad { background: var(--indigo-grad); color: #fff; box-shadow: var(--sh-lux); }
.lux-todo-label-on-grad { color: rgba(255,255,255,.75); }
.lux-todo-msg { margin-top: 8px; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.lux-todo-action { margin-top: 12px; height: 34px; padding: 0 16px; }
.lux-inbox { display: flex; flex-direction: column; gap: 0; margin-bottom: 22px; background: var(--card); box-shadow: var(--sh-card); border-radius: 16px; overflow: hidden; }
.lux-inbox-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 14px 16px; border: 0; border-bottom: 1px solid var(--hairline);
  background: transparent; cursor: pointer; font-family: var(--font); color: inherit; text-decoration: none;
}
.lux-inbox-row:last-child { border-bottom: 0; }
.lux-inbox-num {
  width: 24px; height: 24px; border-radius: 99px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--indigo-tint); color: var(--indigo); font-size: 12px; font-weight: 700;
}
.lux-inbox-dot {
  width: 8px; height: 8px; border-radius: 99px; background: var(--indigo); flex: none; margin: 0 8px;
}
.lux-inbox-body { flex: 1; min-width: 0; }
.lux-inbox-chevron { color: var(--ink-3); font-size: 18px; }
.lux-inbox-empty-title { margin-top: 6px; }
.lux-done-today { margin-top: 16px; padding: 12px 16px 4px; }
.lux-todo-grid .lux-done-today { grid-column: 1 / -1; }
.lux-done-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.lux-done-check { color: var(--green); font-weight: 700; width: 16px; }
.lux-review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.lux-review-lead { font-size: 16px; font-weight: 600; line-height: 1.4; margin: 0 0 6px; }
.lux-review-help { margin: 0 0 14px; }
.lux-review-list { background: var(--field); border-radius: 14px; padding: 4px 12px; margin-bottom: 16px; max-height: 320px; overflow: auto; }
.lux-review-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--hairline); cursor: pointer; }
.lux-review-item:last-child { border-bottom: 0; }
.lux-review-item.is-gated { opacity: .55; cursor: not-allowed; }
.lux-review-item.is-sent { opacity: .7; cursor: default; }
.lux-review-item.is-sent .row-sub { color: var(--green); }
.lux-review-check { margin-top: 4px; accent-color: var(--indigo); }
.lux-review-body { flex: 1; min-width: 0; }
.lux-review-status { margin: 0 0 10px; color: var(--orange); }
.lux-review-dock { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lux-review-primary { flex: 1; min-width: 140px; }
.lux-chat-area { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; min-height: 200px; }
.lux-date-divider { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .3px; }
.lux-bubble-user {
  align-self: flex-end; max-width: 85%; background: #111; color: #fff; font-size: 14.5px; line-height: 1.45;
  padding: 12px 16px; border-radius: 18px; border-bottom-right-radius: 6px;
}
.lux-bubble-assistant {
  align-self: flex-start; max-width: 90%; background: var(--card); box-shadow: var(--sh-card);
  font-size: 14.5px; line-height: 1.5; padding: 12px 16px; border-radius: 18px; border-bottom-left-radius: 6px;
}
.lux-composer {
  display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: var(--r-pill);
  padding: 6px 6px 6px 18px; box-shadow: var(--sh-pill);
}
.lux-composer input {
  flex: 1; border: 0; background: transparent; font-size: 14.5px; font-family: var(--font); outline: none;
}
.lux-send-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--indigo); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none;
}
.lux-suggestion-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lux-suggestion-chips button {
  height: 34px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--border);
  background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font);
}
.lux-chart-card {
  align-self: flex-start; max-width: 100%; background: var(--card); box-shadow: var(--sh-card);
  border-radius: 16px; padding: 14px 16px;
}
.lux-chart-label { font-size: 10.5px; font-weight: 700; letter-spacing: .5px; color: var(--ink-3); margin-bottom: 12px; }
.lux-chart-bars { display: flex; flex-direction: column; gap: 10px; }
.lux-chart-row { display: flex; align-items: center; gap: 10px; }
.lux-chart-month { width: 32px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.lux-chart-track { flex: 1; height: 12px; background: var(--hairline); border-radius: 99px; overflow: hidden; }
.lux-chart-fill { height: 100%; border-radius: 99px; }
.lux-chart-val { width: 72px; text-align: right; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ============ Auth layout (design 23a split) ============ */
.auth-body { min-height: 100vh; background: var(--canvas); margin: 0; }
.auth-split {
  display: flex;
  min-height: 100vh;
  width: 100%;
}
.auth-brand-panel {
  flex: 0 0 41%;
  max-width: 560px;
  position: relative;
  overflow: hidden;
  background: var(--pv-violet);
  color: #fff;
  padding: 44px 52px;
}
.auth-brand-panel::before,
.auth-brand-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.auth-brand-panel::before {
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -80px;
}
.auth-brand-panel::after {
  width: 280px;
  height: 280px;
  right: 40px;
  bottom: 120px;
}
.auth-brand-panel-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 520px;
}
.auth-logo-brand { gap: 10px; }
.auth-logo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.auth-logo-tile img { display: block; width: 22px; height: 22px; }
.auth-wordmark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: var(--pv-tracking-wordmark);
  text-transform: lowercase;
  color: #fff;
}
.auth-brand-copy {
  margin-top: auto;
  margin-bottom: auto;
  padding: 48px 0;
  max-width: 380px;
}
.auth-brand-headline {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  color: #fff;
}
.auth-brand-sub {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}
.auth-brand-proofs {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-brand-proofs li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}
.auth-brand-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 1px;
}
.auth-split-form {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: #fff;
}
.auth-form-col { width: 400px; max-width: 100%; }
.auth-logo-lockup { display: flex; align-items: center; gap: 9px; }
.auth-logo-lockup span { font-size: 22px; font-weight: 700; letter-spacing: var(--pv-tracking-wordmark); text-transform: lowercase; color: var(--ink); }
.auth-logo-brand .auth-wordmark { color: #fff; font-size: 22px; }
.auth-logo-abs { position: absolute; top: 26px; left: 32px; z-index: 2; margin-bottom: 0; }
.auth-heading { font-size: 26px; font-weight: 700; letter-spacing: -1px; margin: 0; color: var(--ink); }
.auth-sub { font-size: 14px; color: var(--pv-text-muted); margin: 6px 0 0; line-height: 1.45; text-wrap: pretty; overflow-wrap: break-word; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--pv-text-muted); font-size: 13px; font-weight: 600; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--pv-border); }
.auth-oauth-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; width: 100%; }
.auth-oauth-stack .btn-auth {
  margin-top: 0;
  text-decoration: none;
  height: 48px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.15px;
}
.auth-email-form { display: flex; flex-direction: column; width: 100%; position: relative; }
/* .plus-web-hidden is declared earlier, so it loses to display:flex above without this. */
.auth-email-form.plus-web-hidden { display: none; }
.auth-email-form > .field-label {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--pv-text-muted);
}
.auth-email-form > .input {
  margin-top: 7px;
  width: 100%;
  height: 50px;
  border-radius: 12px;
  background: var(--field);
}
.auth-email-form .auth-submit,
.auth-email-form .btn-primary.lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
  height: 50px;
  border-radius: 999px;
  box-shadow: none;
  position: relative;
}
.auth-submit.is-challenged,
.auth-submit.is-challenged:disabled {
  background: var(--pv-border);
  color: var(--pv-text-muted);
  box-shadow: none;
  cursor: default;
}
.auth-submit-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-bottom-color: transparent;
  animation: auth-spin 0.7s linear infinite;
}
.auth-submit.is-challenged .auth-submit-spinner { display: none; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-waitlist-form > .field-label + .input + .field-label { margin-top: 16px; }
/* /signup "Where is your business?" — sits between the heading and either panel. */
.auth-country-step { margin-top: 22px; }
.auth-waitlist-panel { margin-top: 18px; }
.auth-waitlist-form select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: var(--pv-select-chevron);
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.auth-text-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink-3);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.auth-text-btn:hover { color: var(--indigo); }
.auth-helper { font-size: 13px; color: var(--pv-text-muted); text-align: center; margin: 14px 0 0; line-height: 1.5; }
.auth-switch { font-size: 13.5px; color: var(--ink-2); text-align: center; margin: 22px 0 0; }
.auth-switch a { color: var(--indigo); font-weight: 700; text-decoration: none; }
.auth-terms { font-size: 13px; color: var(--pv-text-muted); text-align: center; margin-top: 14px; line-height: 1.45; }
.auth-terms a { color: var(--indigo); font-weight: 600; text-decoration: none; }
.auth-error { background: transparent; color: var(--pv-danger); border-radius: 0; padding: 0; font-size: 13px; font-weight: 600; margin: 0 0 12px; }
.auth-status { background: var(--indigo-tint); color: var(--indigo-deep); border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.auth-notice { background: var(--pv-tint); color: var(--pv-text); border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.auth-skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.auth-skip-link:focus { position: fixed; left: 16px; top: 16px; width: auto; height: auto; padding: 10px 14px; background: var(--card); color: var(--ink); z-index: 9999; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.auth-gate-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 80px 24px 48px; position: relative; }
.auth-hero-card { width: 400px; max-width: 100%; }
.auth-trust-footer { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.auth-security-line { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 0; font-size: 11px; color: var(--ink-4); font-weight: 600; }
.auth-security-line a { font-size: 11px; font-weight: 600; color: var(--ink-3); text-decoration: none; }

/* Turnstile — parked off-screen until challenged (never display:none) */
.auth-turnstile-slot:not(.is-visible) {
  position: absolute;
  left: -10000px;
  top: 0;
  width: 300px;
  height: 65px;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.auth-turnstile-slot.is-visible {
  position: static;
  width: 100%;
  height: auto;
  margin-top: 14px;
  margin-bottom: 0;
  overflow: visible;
  opacity: 1;
  pointer-events: auto;
}
/* Dedicated /signin|signup/human page — no outer chrome; CF widget sits on the card */
.auth-turnstile-slot--page {
  margin: 22px 0 0;
}
.auth-turnstile-slot--page .auth-turnstile-challenge {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}
.auth-turnstile-slot--page.is-failed .auth-turnstile-challenge {
  background: transparent;
  border: none;
}
.auth-turnstile-slot--page .auth-turnstile-challenge-row {
  justify-content: center;
}
.auth-turnstile-slot--page .auth-turnstile-host {
  flex: none;
  width: 100%;
  min-height: 65px;
  justify-content: center;
}
.auth-turnstile-slot--page .auth-turnstile-host:empty {
  width: 100%;
  max-width: 300px;
  height: 65px;
}
.auth-turnstile-slot--page .auth-turnstile-error {
  text-align: center;
}
.auth-human-panel .auth-human-form { margin-top: 8px; }
.auth-human-panel .auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  height: 50px;
  border-radius: 999px;
  box-shadow: none;
  position: relative;
}
.auth-human-panel .auth-submit:disabled {
  background: var(--pv-border);
  color: var(--pv-text-muted);
  box-shadow: none;
  cursor: default;
}
.auth-human-panel .auth-submit:disabled .auth-submit-spinner {
  border-color: currentColor;
  border-bottom-color: transparent;
}
.auth-turnstile-challenge {
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
}
.auth-turnstile-slot.is-failed .auth-turnstile-challenge {
  border-color: var(--pv-danger);
  background: var(--pv-declined-bg);
}
.auth-turnstile-challenge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 28px;
  flex-wrap: wrap;
}
.auth-turnstile-label {
  margin: 0;
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.auth-turnstile-cf { flex: none; opacity: 0.9; line-height: 0; }
.auth-turnstile-host { display: flex; align-items: center; flex: none; min-height: 0; line-height: 0; }
.auth-turnstile-host:empty { width: 20px; height: 20px; }
.auth-turnstile-error {
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pv-danger);
}

/* Code entry */
.auth-code-panel { text-align: center; }
.auth-code-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--pv-accent);
  color: var(--pv-on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.auth-code-icon svg { display: block; }
.auth-code-heading { font-size: 26px; text-align: center; margin-top: 18px; letter-spacing: -1px; }
.auth-code-sub { text-align: center; margin-top: 10px; line-height: 1.5; max-width: 360px; margin-left: auto; margin-right: auto; color: var(--ink-2); }
.auth-change-email { margin: 8px 0 0; font-size: 13.5px; }
.auth-change-email a { color: var(--indigo); font-weight: 700; text-decoration: none; }
.auth-code-form { margin-top: 22px; position: relative; }
.auth-code-row { display: flex; gap: 8px; justify-content: center; margin-top: 0; }
.auth-code-row.is-shaking { animation: auth-code-shake 0.45s ease; }
@keyframes auth-code-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}
.auth-code-box {
  width: 52px;
  height: 62px;
  border-radius: 14px;
  background: var(--field);
  border: 2px solid transparent;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font);
  caret-color: var(--indigo);
}
.auth-code-box.has-digit { color: var(--indigo); }
.auth-code-box.focused,
.auth-code-box:focus {
  outline: none;
  background: var(--card);
  border-color: var(--indigo);
}
.auth-code-autosubmit { margin-top: 14px; }
.auth-inbox-shortcuts {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.auth-inbox-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.auth-inbox-pill:hover { color: var(--indigo); border-color: var(--indigo); }
.auth-resend-line {
  margin: 22px 0 0;
  font-size: 13.5px;
  color: var(--pv-text-muted);
  text-align: center;
}
.auth-resend-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--indigo);
  cursor: pointer;
}
.auth-magic-fallback {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13.5px;
}
.auth-magic-fallback a { color: var(--indigo); font-weight: 700; text-decoration: none; }
.auth-check-helper { margin-top: 14px; margin-bottom: 0; }
.auth-steps {
  list-style: decimal;
  margin: 20px auto 0;
  padding: 0 0 0 1.25rem;
  max-width: 340px;
  text-align: left;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.auth-steps li { margin: 0 0 10px; padding-left: 4px; }
.auth-steps li:last-child { margin-bottom: 0; }
.auth-steps a { color: var(--indigo); font-weight: 700; text-decoration: none; }
.auth-check-actions {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-top: 28px; padding-top: 4px;
}
.auth-check-action {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 4px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  background: none; border: 0; cursor: pointer; font-family: var(--font);
  text-decoration: none; line-height: 1.35;
}
.auth-check-action-primary { color: var(--indigo); font-weight: 700; }
.auth-check-action:disabled { opacity: .55; cursor: default; }
.auth-check-action:not(:disabled):hover { color: var(--indigo-deep); }
.auth-icon-circle { width: 64px; height: 64px; border-radius: 50%; background: var(--indigo-tint); display: flex; align-items: center; justify-content: center; margin: 0 auto; }

@media (max-width: 1023px) {
  .auth-split { flex-direction: column; min-height: 100vh; }
  .auth-brand-panel {
    flex: none;
    max-width: none;
    width: 100%;
    min-height: 72px;
    padding: 18px 20px;
  }
  .auth-brand-panel::before,
  .auth-brand-panel::after { display: none; }
  .auth-brand-panel-inner { min-height: 0; }
  .auth-brand-copy { display: none; }
  .auth-split-form { padding: 32px 20px 48px; align-items: flex-start; }
  .auth-form-col { width: 100%; max-width: 400px; margin: 0 auto; }
  .auth-email-form > .input,
  .auth-oauth-stack .btn-auth,
  .auth-email-form .auth-submit { min-height: 48px; height: 48px; }
  .auth-code-box { width: 44px; height: 54px; font-size: 22px; border-radius: 12px; }
  .auth-code-row { gap: 6px; }
}

/* ---- Signed-out pages follow the theme (web UI audit, 2026-10-11) ----
   /signin, /signup, the waitlist, the emailed-code pages, /link-expired, /maintenance and
   /gate-paused are built from the legacy names. Under .auth-body (and .gate-page) those names
   point at the semantic --pv-* tokens, which flip in dark, so these pages match /login. */
.auth-body, .gate-page {
  --canvas: var(--pv-bg); --card: var(--pv-surface); --field: var(--pv-bg);
  --ink: var(--pv-text); --ink-2: var(--pv-text-muted); --ink-3: var(--pv-text-muted); --ink-4: var(--pv-text-muted);
  --border: var(--pv-border); --hairline: var(--pv-border);
  --indigo: var(--pv-accent); --indigo-deep: var(--pv-accent); --indigo-tint: var(--pv-tint); --indigo-wash: var(--pv-tint);
  --orange: var(--pv-danger);
  background: var(--pv-bg); color: var(--pv-text);
}
/* .plus-web-hidden is declared before the display rules above, so on its own it loses to them:
   "Open Gmail" and "Open Outlook" used to show for every address. */
.auth-inbox-shortcuts.plus-web-hidden, .auth-inbox-pill.plus-web-hidden { display: none; }
.auth-body .btn-primary, .auth-body .btn-primary:hover, .auth-body .btn-primary:focus-visible { color: var(--pv-on-accent); }
.auth-body .btn-secondary { box-shadow: 0 0 0 1px var(--pv-border); }
.auth-body a:focus-visible, .auth-body button:focus-visible, .auth-body .btn:focus-visible { outline: 2px solid var(--pv-accent); outline-offset: 2px; }
.auth-heading:focus { outline: none; }
/* Google keeps its white button in both themes; Apple's is white on dark (their guidelines), as on /login. */
.auth-body .btn-auth.google, .auth-body .btn-auth.quickbooks { background: var(--pv-white); color: var(--pv-ink); }
html[data-theme="dark"] .auth-body .btn-auth.apple { background: var(--pv-white); color: var(--pv-ink); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .auth-body .btn-auth.apple { background: var(--pv-white); color: var(--pv-ink); }
}
/* The edge is always there (transparent), so focus and errors do not nudge the text. */
.auth-body .input { border: 2px solid transparent; }
.auth-body .input:focus, .auth-body .input.focused { background: var(--pv-surface); border-color: var(--pv-accent); }
.auth-body .input.is-invalid { border-color: var(--pv-danger); }
.auth-body .field-label { font-size: 13px; }
.auth-field-error { margin: 8px 0 0; text-align: left; }
.auth-switch a:hover, .auth-terms a:hover, .auth-change-email a:hover, .auth-magic-fallback a:hover, .auth-steps-alt a:hover, .auth-resend-link:hover { text-decoration: underline; }
/* Emailed code: boxes shrink on a narrow phone instead of spilling out of the card. */
.auth-body .auth-code-box { flex: 1 1 0; min-width: 0; max-width: 52px; padding: 0; }
.auth-code-row.is-checking .auth-code-box { opacity: .5; cursor: progress; }
.auth-code-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 18px; }
.auth-code-actions > p { margin: 0; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.auth-steps-alt { margin: 16px auto 0; max-width: 340px; text-align: left; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.auth-steps-alt a { color: var(--indigo); font-weight: 700; text-decoration: none; }
.gate-page .gate-next { margin: 10px 0 22px; }
.gate-logout { margin-top: 6px; }
.gate-logout a, .auth-expired-back a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 767px) {
  /* iOS zooms into any field under 16px. */
  .auth-body .input, .auth-body select.input { font-size: 16px; }
  /* Text-sized links still get a full-height tap target. */
  .auth-body .auth-change-email a, .auth-body .auth-resend-link, .auth-body .auth-magic-fallback a,
  .auth-body .auth-switch a, .auth-body .auth-steps-alt a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 479px) {
  .auth-body .auth-gate-wrap { padding: 76px 16px 32px; align-items: flex-start; }
  .auth-body .auth-hero-card { padding: 28px 24px 24px; }
  .auth-body .gate-wrap { padding: 88px 20px 40px; align-items: flex-start; }
  .auth-body .auth-logo-abs, .auth-body .gate-logo { top: 24px; left: 20px; }
}
/* Cookie banner (includes/cookie-consent.php) on phones: tighter, and the page keeps its last
   control clear of it. The banner's script sets .cookie-banner-open and --cookie-banner-h. */
@media (max-width: 767px) {
  .cookie-banner-open {
    --cookie-pad: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); --cookie-gap: 8px;
    --cookie-font: 13px; --cookie-leading: 1.35;
    --cookie-actions-flex: 1 1 100%; --cookie-btn-flex: 1 1 0; --cookie-btn-pad: 12px 16px;
  }
  .cookie-banner-open .auth-gate-wrap, .cookie-banner-open .gate-wrap,
  .cookie-banner-open .pv-login-side { padding-bottom: calc(24px + var(--cookie-banner-h, 130px)); }
}
/* Last, so it also beats the display rules in the blocks above (a hidden "Resend code" stays hidden). */
.auth-body .plus-web-hidden { display: none; }

/* ============ Settings ============ */
.settings-shell { display: flex; gap: 28px; align-items: flex-start; }
.settings-content { flex: 1; max-width: 620px; min-width: 0; }
.settings-content > .card { margin-bottom: 14px; }
.settings-kv-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.settings-kv-label { font-size: 13.5px; color: var(--ink-2); }
.settings-kv-value { font-size: 14px; font-weight: 600; text-align: right; }
.settings-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.settings-toggle-row:last-child { border-bottom: 0; }
.settings-two-col { display: grid; grid-template-columns: 1fr 230px; gap: 20px; align-items: start; }
.settings-card { margin-bottom: 14px; }
.settings-logo-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.settings-logo-tile { width: 52px; height: 52px; border-radius: 14px; font-size: 20px; }
.settings-hairline { height: 1px; background: var(--hairline); margin: 16px 0; }
.settings-field-gap { margin-top: 6px; }
.settings-industry-row { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.settings-industry-chip { background: var(--field); border: 0; font-size: 13.5px; font-weight: 700; height: auto; min-height: 34px; padding: 8px 14px; }
.settings-save-btn { margin-top: 16px; }
.settings-save-btn-full { margin-top: 16px; width: 100%; }
.settings-payout-balance { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
.settings-bank-row { display: flex; align-items: center; gap: 12px; }
.settings-bank-icon { width: 38px; height: 38px; color: var(--indigo); }
.settings-bank-icon svg { color: inherit; }
.settings-payout-history-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.settings-payout-history-row:last-child { border-bottom: 0; }
.settings-payout-date { width: 70px; flex: none; font-size: 13px; color: var(--ink-2); }
.settings-payout-amt { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
.trial-banner { margin-bottom: 14px; background: var(--indigo-tint); border-radius: 18px; border: 0; }
.trial-banner-title { font-size: 15px; font-weight: 700; color: var(--indigo-deep); }
.trial-banner-copy { margin-top: 4px; color: var(--indigo-deep); }
.plan-card { min-height: 220px; position: relative; }
.plan-rec-pill { position: absolute; top: -10px; right: 12px; background: var(--indigo); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 99px; }
.plan-name { font-size: 16px; font-weight: 700; }
.plan-price { font-size: 22px; margin: 4px 0 10px; }
.plan-feat { margin-bottom: 4px; }
.plan-choose-btn { width: 100%; margin-top: 12px; }
.settings-quiet-capsule { margin-top: 10px; background: var(--field); height: auto; min-height: 34px; padding: 8px 14px; border: 0; }
.settings-lux-brief-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.settings-lux-brief-row:last-child { border-bottom: 0; }
.settings-lux-capsule { background: var(--field); height: auto; min-height: 34px; padding: 6px 12px; font-size: 13px; font-weight: 600; border: 0; }
.settings-data-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0; }
.receipt-preview-mini { width: 230px; padding: 16px 18px; font-size: 11px; line-height: 1.5; }
.receipt-book-again { color: var(--indigo); font-weight: 700; font-size: 11px; margin-top: 10px; text-align: center; }
.settings-tax-rate { font-size: 22px; margin: 6px 0 12px; font-variant-numeric: tabular-nums; }
.settings-tax-link { color: var(--indigo); font-weight: 600; text-decoration: none; }
.settings-payment-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.settings-payment-tile { width: 38px; height: 38px; border-radius: 10px; background: var(--field); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--ink-3); }

/* ============ Modal polish ============ */
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head-tight { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.modal-title { margin: 0; font-size: 19px; font-weight: 700; }
.modal-title-sm { margin: 0; font-size: 17px; font-weight: 700; }
.modal-close { height: 32px; padding: 0 12px; }
.modal-field-box { background: var(--field); padding: 14px 16px; border-radius: 14px; }
.modal-field-box-tight { background: var(--field); padding: 12px 14px; border-radius: 12px; margin-bottom: 10px; }
.modal-inv-client-row { display: flex; gap: 10px; align-items: center; margin: 6px 0 14px; }
.modal-inv-client-chip { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; background: var(--field); border-radius: var(--r-pill); padding: 6px 12px 6px 6px; }
.modal-inv-client-avatar { width: 28px; height: 28px; font-size: 11px; border-radius: 50%; flex: none; }
.modal-inv-client-name { border: 0; background: transparent; padding: 0; height: auto; box-shadow: none; }
.modal-inv-item-row { background: var(--field); padding: 10px 12px; border-radius: 12px; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.modal-inv-item-body { flex: 1; min-width: 0; }
.modal-inv-item-name { margin-bottom: 6px; }
.modal-inv-footer { display: flex; gap: 10px; margin-top: 18px; align-items: center; }
.modal-inv-total { font-size: 17px; margin-right: auto; font-variant-numeric: tabular-nums; }
.modal-sale-center { text-align: center; margin-bottom: 12px; }
.modal-sale-sub { text-align: center; margin: 6px 0 14px; }
.modal-sale-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
.modal-chase-footer { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.modal-chase-send { flex: 1; min-width: 140px; }
.modal-chase-preview { height: 30px; padding: 0 12px; font-size: 12px; background: var(--indigo-tint); color: var(--indigo); }
.modal-client-promo { background: var(--indigo-tint); padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.modal-client-promo-text { color: var(--indigo-deep); }
.modal-client-import { color: var(--indigo); }
.modal-actions-row { display: flex; gap: 10px; margin-top: 14px; }
.modal-actions-primary { flex: 1; }
.modal-expense-divider { text-align: center; margin-bottom: 14px; }
.modal-expense-grid-2 { display: grid; grid-template-columns: 140px 1fr; gap: 10px; margin-bottom: 10px; }
.modal-expense-grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.modal-expense-field { margin-top: 6px; }
.modal-expense-save { flex: 1; }
.modal-expense-browse { background: var(--card); color: var(--indigo); cursor: pointer; display: inline-flex; height: 34px; padding: 0 16px; align-items: center; }
.modal-expense-browse input { display: none; }
.lux-consent-title { text-align: center; margin: 0 0 6px; font-size: 24px; font-weight: 700; }
.lux-consent-sub { text-align: center; margin: 0 0 18px; }
.lux-consent-box { background: var(--field); padding: 12px 14px; border-radius: 14px; margin-bottom: 18px; }
.lux-consent-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.lux-consent-row:last-child { border-bottom: 0; }
.lux-consent-on { width: 100%; }
.lux-consent-skip { width: 100%; margin-top: 10px; }
.lux-consent-helper { text-align: center; margin-top: 12px; }
.brief-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.brief-head-label { flex: 1; margin: 0; }
.brief-headline { font-size: 21px; font-weight: 700; line-height: 1.35; margin: 0 0 16px; }
.brief-box { background: var(--field); padding: 4px 14px; border-radius: 14px; margin-bottom: 16px; }
.brief-footer { display: flex; gap: 10px; }
.brief-footer-btn { flex: 1; }
.industry-picker-search { margin-bottom: 12px; }
.industry-picker-emoji { font-size: 18px; width: 28px; flex: none; }
.industry-picker-check { width: 22px; height: 22px; border-radius: 50%; background: var(--indigo); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.industry-save-btn { width: 100%; }
.pay-tip-summary { margin-top: 16px; margin-bottom: 14px; }
.pay-tip-summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.pay-tip-pay-btn { width: 100%; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.receipt-preview { margin-top: 8px; transform: rotate(1.2deg); }

/* ============ Help ============ */
.help-wrap { max-width: 680px; }
.help-hero { margin-bottom: 0; }
.help-hero-inner { display: flex; align-items: flex-start; gap: 14px; }
.help-hero-body { flex: 1; min-width: 0; }
.help-topics-card { margin-top: 16px; }
.help-topics-label { margin-bottom: 12px; }
.help-contact-card { margin-top: 16px; }
.help-contact-row { display: flex; gap: 14px; align-items: center; }
.help-contact-copy { flex: 1; min-width: 0; }
.help-lux-mark { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.2); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.help-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.help-chips span { height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: rgba(255,255,255,.16); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; }
.help-topic-row { text-decoration: none; color: inherit; }

/* ============ Modals host ============ */
.plus-web-modal-host { position: fixed; inset: 0; z-index: 9500; display: none; align-items: flex-start; justify-content: center; padding-top: 8vh; }
.plus-web-modal-host:not([hidden]) { display: flex; }
.plus-web-modal-slot { position: relative; z-index: 1; max-height: calc(100vh - 12vh); overflow: auto; }
.modal-w-480 { width: 480px; max-width: calc(100vw - 32px); }
.modal-w-520 { width: 520px; max-width: calc(100vw - 32px); }
.modal-w-560 { width: 560px; max-width: calc(100vw - 32px); }

/* ============ Gate pages ============ */
.gate-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.gate-col { width: 460px; max-width: 100%; text-align: center; }
.gate-icon { width: 72px; height: 72px; border-radius: 22px; background: var(--indigo-tint); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 28px; }
.gate-icon.orange { background: var(--orange-tint); color: var(--orange); }

@media (max-width: 960px) {
  .settings-shell { flex-direction: column; }
  .settings-two-col, .plan-grid { grid-template-columns: 1fr; }
}

/* ============ Welcome onboarding ============ */
.welcome-page { min-height: 100vh; background: #fff; padding: 80px 24px 48px; display: flex; flex-direction: column; align-items: center; }
.welcome-progress { display: flex; gap: 8px; margin-bottom: 10px; }
.welcome-bar { width: 36px; height: 5px; border-radius: 99px; background: var(--seg-track); }
.welcome-bar.done, .welcome-bar.current { background: var(--indigo); }
.welcome-step-label { font-size: 12px; font-weight: 700; color: var(--ink-3); margin: 0 0 24px; }
.welcome-col { width: 480px; max-width: 100%; }
.welcome-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.welcome-chips .chip { height: auto; min-height: 34px; padding: 8px 14px; border: 2px solid transparent; }
.welcome-chips .chip.card-selected { border-color: var(--indigo); background: var(--indigo-wash); color: var(--indigo-deep); font-weight: 700; }
.welcome-custom-chip { border: 2px dashed #D8D8E4 !important; background: transparent !important; box-shadow: none !important; }
.welcome-bank-card { background: var(--card); border-radius: 16px; }
.maintenance-dots { display: flex; gap: 10px; justify-content: center; }
.maintenance-dots span { width: 16px; height: 16px; border-radius: 50%; background: var(--indigo); }
.maintenance-dots span:nth-child(1) { opacity: 1; }
.maintenance-dots span:nth-child(2) { opacity: .7; }
.maintenance-dots span:nth-child(3) { opacity: .45; }
.maintenance-dots span:nth-child(4) { opacity: .2; }

/* ============ Error pages (19c) ============ */
.error-web-col { padding-top: 8px; }
.error-web-title { font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.error-web-desc { max-width: 380px; margin: 0 auto 22px; line-height: 1.55; }
.error-web-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.error-web-actions .error-web-btn { width: 100%; justify-content: center; text-decoration: none; }
.error-web-footer { margin-top: 28px; }
.error-web-btn.is-disabled { opacity: .55; pointer-events: none; cursor: default; }
.error-cooldown-bar { width: 100%; max-width: 280px; height: 4px; background: var(--seg-track); border-radius: 2px; margin: 0 auto 16px; overflow: hidden; }
.error-cooldown-fill { height: 100%; background: var(--indigo); border-radius: 2px; width: 100%; transition: width 1s linear; }
.home-empty-grid { grid-template-columns: 1fr var(--rail-w, 316px); }
.plus-web-row-body { flex: 1; min-width: 0; }
.plus-web-row-status { font-size: 12.5px; font-weight: 600; margin-top: 1px; }
.plus-web-row-icon { width: 14px; height: 14px; }
.toast-icon-tile { width: 36px; height: 36px; flex: none; }
.toast-check-icon { width: 14px; height: 14px; color: var(--green); }
.toast-meta { font-size: 12px; margin-top: 2px; }
.charge-item-price { font-size: 15px; }
.setup-checklist-card { margin-top: 14px; }
.setup-step { display: flex; align-items: center; gap: 10px; padding: 10px 0; text-decoration: none; color: inherit; }
.setup-step + .setup-step { border-top: 1px solid var(--hairline); }
.setup-step-label { font-size: 13.5px; font-weight: 700; flex: 1; }
.setup-step-done .setup-step-label { color: var(--ink-3); text-decoration: line-through; }
.setup-step-icon { width: 24px; height: 24px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.setup-step-icon.done { background: var(--green-tint); color: var(--green); }
.setup-step-icon.pending { border: 1.5px dashed var(--ink-4); background: transparent; }
.setup-step-chevron { color: var(--ink-3); font-size: 18px; line-height: 1; }
.settings-industry-hint { margin: 4px 0 8px; }
.settings-industry-field { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 0; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--field); cursor: pointer; text-align: left; font: inherit; }
.settings-industry-value { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.settings-industry-change { font-size: 13px; font-weight: 700; color: var(--indigo); }
.modal-inv-item-field { background: var(--field); padding: 10px 12px; border-radius: 12px; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.modal-inv-item-qty-sub { margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.modal-inv-client-email { font-size: 13.5px; color: var(--ink-3); flex: none; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-error-bang { font-size: 24px; line-height: 1; font-weight: 700; color: var(--pv-danger); }
.modal-inv-email-input { flex: 1; min-width: 140px; }
.modal-inv-item-edit-row { display: none; gap: 8px; margin-top: 6px; }
.modal-inv-item-field:focus-within .modal-inv-item-edit-row,
.modal-inv-item-field.modal-inv-item-empty .modal-inv-item-edit-row { display: flex; }
.modal-inv-qty-input { width: 64px; height: 34px; padding: 0 10px; font-size: 13px; }
.modal-inv-rate-input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; font-size: 13px; }
.modal-inv-item-amt { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; min-width: 72px; text-align: right; }
.modal-inv-due-hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.error404-gag { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 0 auto 8px; }
.error404-grid { display: grid; grid-template-columns: repeat(2, 22px); gap: 6px; transform: rotate(45deg); }
.error404-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--indigo); display: block; }
.error404-dot.ghost { background: transparent; border: 2px dashed #C8C8DC; }
.error404-escape { display: flex; align-items: center; gap: 8px; }
.error404-lines { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.error404-lines span { display: block; height: 3px; border-radius: 99px; background: var(--indigo); }
.error404-lines span:nth-child(1) { width: 22px; opacity: 1; }
.error404-lines span:nth-child(2) { width: 16px; opacity: .65; }
.error404-lines span:nth-child(3) { width: 10px; opacity: .35; }
.error404-dot.escaped { flex: none; }
.error404-num { font-size: 96px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; margin: 0 0 12px; color: var(--ink); }
.error-receipt { width: 320px; max-width: 100%; margin: 0 auto 22px; text-align: left; font-size: 13px; line-height: 1.65; }
.error-receipt-brand { font-size: 13px; font-weight: 700; letter-spacing: .25em; text-align: center; margin-bottom: 6px; }
.error-receipt-meta { font-size: 11px; color: var(--ink-3); text-align: center; margin-bottom: 10px; }
.error-receipt-safe { color: var(--green); font-weight: 700; }
.error-receipt-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; }
.error-receipt-note { font-size: 12px; color: var(--ink-2); margin: 10px 0; line-height: 1.45; }
.error-receipt-barcode { height: 30px; margin: 12px 0 8px; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 5px); opacity: .85; }
.error-receipt-code { font-size: 11px; letter-spacing: .08em; text-align: center; color: var(--ink-3); }

/* ============ Auth verify / expired ============ */
.auth-verify-icon { margin: 0 auto 18px; }
.auth-code-heading { font-size: 22px; text-align: center; }
.auth-code-sub { text-align: center; }
.auth-verify-submit { width: 100%; margin-top: 8px; text-decoration: none; display: inline-flex; justify-content: center; }
.auth-verify-links { text-align: center; margin-top: 14px; }
.auth-expired-card { text-align: center; max-width: 420px; margin: 0 auto; }
.auth-expired-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--orange-tint); color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 16px; }
.auth-expired-heading { margin-bottom: 10px; }
.auth-expired-copy { margin-bottom: 18px; }
.auth-expired-btn { width: 100%; }
.auth-expired-back { margin-top: 14px; }

/* Magic-link confirm interstitial (mfa-verify.php) */
.auth-signing-card { text-align: center; }
.auth-signing-spinner-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--indigo-tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.auth-signing-form { margin-top: 22px; }
.auth-signing-btn { width: 100%; }
.auth-signing-email {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 8px 0 0;
  word-break: break-all;
}
.auth-code-panel > .auth-error,
.auth-code-panel > .auth-notice { margin-top: 16px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ Maintenance gate ============ */
.maintenance-col { padding-top: 12px; }
.maintenance-title { font-size: 26px; font-weight: 700; margin: 18px 0 12px; }
.maintenance-copy { max-width: 420px; margin: 0 auto 20px; line-height: 1.55; }
.maintenance-status { text-decoration: none; display: inline-flex; }
.maintenance-footer { margin-top: 28px; }

/* ============ Welcome onboarding fields ============ */
.welcome-field-gap { margin: 6px 0 16px; }
.welcome-field-gap-sm { margin: 6px 0 12px; }
.welcome-price-field { margin-bottom: 16px; width: 140px; }
.welcome-action-full { width: 100%; margin-top: 20px; }
.welcome-action-full-tight { width: 100%; }
.welcome-skip-btn { width: 100%; margin-top: 12px; }
.welcome-bank-btn { width: 100%; text-align: left; margin-bottom: 12px; border: 2px solid var(--indigo); cursor: pointer; }
.welcome-bank-row { display: flex; align-items: center; gap: 12px; }
.welcome-bank-chevron { color: var(--indigo); }
.welcome-manual-card { opacity: .7; }
.welcome-bank-helper { margin: 14px 0; text-align: center; }

.industry-picker-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; cursor: pointer; border: 0; background: transparent; width: 100%; text-align: left; font-family: var(--font); }
.industry-picker-row:hover, .industry-picker-row.selected { background: var(--row-selected); }
.industry-picker-row.selected .row-title { font-weight: 700; }

/* ============ Customer pay pages ============ */
/* Checkout, tip step, receipt and the end states follow the theme (2026-10-11).
   The legacy names that the shared classes on these pages read (.row-sub,
   .row-title, .avatar, .btn-primary, .auth-heading) are pointed at the semantic
   --pv-* tokens for the payer pages only, so they flip in dark with /@handle. */
.pay-customer-body { --canvas: var(--pv-bg); --card: var(--pv-surface); --ink: var(--pv-text); --ink-2: var(--pv-text-muted); --ink-3: var(--pv-text-muted); --hairline: var(--pv-border); --border: var(--pv-border); --field: var(--pv-tint); --indigo: var(--pv-accent); --indigo-deep: var(--pv-accent); --indigo-tint: var(--pv-tint); margin: 0; min-height: 100vh; background: var(--canvas); font-family: var(--font); color: var(--ink); }
/* Top-aligned, so the card does not jump as tip rows and messages appear. */
.pay-customer-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 48px 20px 48px; }
.pay-nowrap { white-space: nowrap; }
/* Button states for the payer pages; the shared .btn-primary is left alone. */
.pay-customer-body .btn-primary { background: var(--pv-accent); color: var(--pv-on-accent); font-family: inherit; }
.pay-customer-body .btn-primary:hover { color: var(--pv-on-accent); filter: brightness(.94); }
.pay-customer-body .btn-primary:active { filter: brightness(.86); }
.pay-customer-body .btn-primary:disabled { opacity: .5; cursor: default; filter: none; }
.pay-customer-body .btn-primary[aria-busy="true"] { cursor: progress; }
.pay-customer-body .btn-primary:focus-visible,
.pay-customer-body .pv-btn-lg:focus-visible,
.pay-customer-body .pv-btn-outline:focus-visible,
.pay-customer-body .pay-tip-card:focus-visible,
.pay-customer-body .pay-tip-links button:focus-visible { outline: 2px solid var(--pv-accent); outline-offset: 2px; }
.pay-inline-error { margin: 0 0 12px; text-align: center; font-size: 14px; line-height: 1.4; }
/* Error text reads --pv-danger here, the token meant to flip in dark. */
.pay-customer-body .pv-error { color: var(--pv-danger); }
.pay-customer-body .pv-input--error { border-color: var(--pv-danger); }
.pay-customer-card { width: 460px; max-width: calc(100vw - 32px); background: var(--card); border-radius: 24px; padding: 32px 36px; border: 1px solid var(--hairline); }
.pay-merchant-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pay-merchant-header-solo { justify-content: center; margin-bottom: 24px; }
.pay-merchant-avatar { width: 44px; height: 44px; font-size: 16px; flex: none; }
.pay-merchant-name { font-size: 16px; }
.pay-amount { text-align: center; margin: 8px 0 16px; }
.pay-apple-btn { width: 100%; height: 48px; border: 0; border-radius: 12px; background: #111; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--font); }
.pay-apple-btn:disabled { opacity: .6; cursor: wait; }
.pay-secure { font-size: 12px; color: var(--ink-3); text-align: center; margin: 14px 0 0; line-height: 1.45; }
.pay-powered { font-size: 12px; color: var(--ink-3); margin-top: 20px; text-align: center; }
.pay-billboard { font-size: 13px; color: var(--ink-2); margin-top: 8px; text-align: center; }
.pay-billboard a { color: var(--indigo); font-weight: 600; }
.pay-loading { padding: 48px; text-align: center; }
.pay-pay-btn-full { width: 100%; margin-top: 16px; }
.pay-receipt-actions { width: 100%; margin-top: 20px; }
.pay-receipt-download { width: 100%; margin-top: 10px; min-height: 44px; font-family: inherit; }
.pay-receipt-email { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; text-align: left; }
.pay-receipt-email-row { display: flex; gap: 8px; }
.pay-receipt-email-row .pv-input { flex: 1; min-width: 0; font-size: 16px; }
.pay-receipt-send { flex: none; height: 52px; padding: 0 20px; border-radius: 14px; font-size: 15px; }
.pay-receipt-status { margin: 0; font-size: 13px; line-height: 1.4; color: var(--pv-text-muted); }
.pay-receipt-status-error { color: var(--pv-danger); }
.pay-error-card { text-align: center; padding: 40px 32px; }
.pay-error-icon { background: var(--pv-declined-bg); margin: 0 auto 16px; }
.pay-error-heading { font-size: 20px; letter-spacing: -.01em; line-height: 1.3; }
.pay-error-sub { font-size: 15px; color: var(--pv-text-muted); margin-top: 8px; }
.pay-error-card .pay-pay-btn-full { margin-top: 24px; }
.pay-error-card .pay-paid-icon { margin-bottom: 16px; }
.pay-tip-heading { font-size: 21px; font-weight: 700; margin: 0 0 4px; }
.pay-tip-sub { margin-bottom: 14px; }
.pay-hairline { height: 1px; background: var(--hairline); margin: 18px 0; }
/* Card step (PavoPayPage): Stripe's fields inside the card. */
.pay-card-tip { text-align: center; margin: -8px 0 0; }
.pay-card-express { margin-bottom: 14px; }
.pay-card-or { text-align: center; font-size: 13px; color: var(--pv-text-muted); margin: 0 0 14px; }
.pay-card-email { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; text-align: left; }
.pay-card-email .pv-input { font-size: 16px; }
.pay-card-element { min-height: 120px; margin-bottom: 18px; }
.pay-card-back { display: block; width: 100%; min-height: 44px; margin-top: 8px; border: 0; background: none; color: var(--pv-text-muted); font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.pay-card-back:hover { color: var(--pv-text); }
.pay-card-back:focus-visible { outline: 2px solid var(--pv-accent); outline-offset: 2px; border-radius: 14px; }
.pay-checkout-hairline { height: 1px; background: var(--hairline); margin: 16px 0; }
.pay-email-field { margin-top: 6px; }
.pay-email-label { margin-top: 12px; display: block; }
.pay-paid-meta { text-align: center; margin: 8px 0 20px; }
.pay-summary-left { text-align: left; }
.pay-summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.pay-summary-box .pay-summary-row:last-child { margin-bottom: 0; }
.pay-item-price { font-size: 14px; flex: none; white-space: nowrap; }
.pay-summary-total .row-title { font-size: 15px; font-weight: 700; }
.pay-paid-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--pv-paid); color: var(--pv-on-paid); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; margin: 0 auto 10px; }
.pay-paid-label { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; color: var(--pv-text); margin-bottom: 6px; }
.pay-summary-box { background: var(--field); border-radius: 14px; padding: 14px 16px; }
.pay-summary-dash { height: 1px; background: var(--hairline); margin: 12px 0; }
.pay-receipt-card { text-align: center; }
.pay-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ink-3); font-size: 12.5px; }
.pay-divider::before, .pay-divider::after { content: ''; flex: 1; height: 1px; background: var(--hairline); }
.pay-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 10px; }
/* Tip boxes are <button>s: without an explicit color they took the UA's
   buttontext, which is white when the device is in dark mode, on this white
   card (2026-10-08). Ink on white 17.2:1; caption on white 7.0:1; violet on
   lilac 5.2:1 (AA). */
.pay-tip-card { border: 1.5px solid var(--hairline); border-radius: 16px; padding: 14px 8px; text-align: center; cursor: pointer; background: var(--card); color: var(--ink); font-family: var(--font); }
.pay-tip-card.selected { border-color: var(--indigo); background: var(--indigo-tint); }
.pay-tip-pct { font-size: 15px; font-weight: 700; color: var(--ink); }
.pay-tip-amt { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; font-variant-numeric: tabular-nums; }
.pay-tip-card.selected .pay-tip-pct,
.pay-tip-card.selected .pay-tip-amt { color: var(--indigo-deep); font-weight: 700; }
/* "No tip" and "Custom amount" are chips like the percent boxes (2026-10-11): 44px tall, 15px text. */
.pay-tip-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.pay-tip-links button { min-height: 44px; border: 1.5px solid var(--hairline); border-radius: 14px; background: var(--card); color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer; padding: 6px 8px; font-family: var(--font); }
.pay-tip-links button.selected { border-color: var(--indigo); background: var(--indigo-tint); color: var(--indigo-deep); font-weight: 700; }
.pay-tip-card:hover, .pay-tip-links button:hover { border-color: var(--indigo); }
.pay-tip-custom { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; text-align: left; }
.pay-tip-custom-box { position: relative; }
.pay-tip-custom-sign { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 18px; font-weight: 700; color: var(--pv-text-muted); pointer-events: none; }
.pay-tip-custom-box .pv-input { padding-left: 32px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pay-stripe-mount { margin: 12px 0; min-height: 44px; }
.pay-card-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.pay-visa-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--ink-3); }
/* Pay anyone: /@handle (2026-10-06). Semantic --pv-* tokens, so dark mode follows. */
.pay-handle-card { display: flex; flex-direction: column; gap: 20px; }
.pay-handle-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.pv-avatar.pay-handle-avatar { width: 64px; height: 64px; font-size: 26px; margin-bottom: 4px; }
.pay-handle-title { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.25; color: var(--pv-text); }
.pay-handle-sub { margin: 0; font-size: 14px; color: var(--pv-text-muted); }
.pay-handle-amount { position: relative; }
.pay-handle-amount-sign { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 18px; font-weight: 700; color: var(--pv-text-muted); pointer-events: none; }
.pay-handle-amount .pv-input { padding-left: 32px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pay-handle-optional { font-weight: 400; color: var(--pv-text-muted); }
.pay-handle-turnstile:empty { display: none; }
.pay-handle-fine { margin: 0; text-align: center; }
.pay-handle-help { margin: 0; }
.pay-handle-unavailable { text-align: center; padding-top: 40px; padding-bottom: 40px; }
/* The page itself follows the Pavo semantic tokens too (2026-10-06): the shared
   pay frame above uses fixed light tokens, which left lilac text on a white card
   in dark mode. */
.pay-handle-body { background: var(--pv-bg); color: var(--pv-text); }
.pay-handle-body .pay-customer-card { background: var(--pv-surface); border-color: var(--pv-border); }
.pay-handle-body .pay-powered { color: var(--pv-text-muted); }
/* The body is not .pv-body, so the button fell back to the system font. */
.pay-handle-body .pv-btn-lg { font-family: inherit; }
@media (min-width: 700px) {
  .pay-customer-wrap { padding-top: 96px; }
}
@media (max-width: 480px) {
  .pay-customer-wrap { padding: 24px 16px 40px; }
  .pay-customer-card { padding: 28px 20px; }
}
/* A printed or saved receipt: white paper, no buttons, no promo. */
@media print {
  .pay-customer-body { --pv-bg: white; --pv-surface: white; --pv-text: black; --pv-text-muted: black; --pv-border: transparent; --pv-tint: transparent; background: white; color: black; }
  .pay-customer-wrap { min-height: 0; padding: 0; }
  .pay-customer-card { width: auto; max-width: none; border: 0; padding: 0; }
  .pay-summary-box { padding-left: 0; padding-right: 0; }
  .pay-receipt-email, .pay-receipt-download, .pay-billboard { display: none; }
}
.money-modal { font-size: 34px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mono-footer { font-size: 11px; color: var(--ink-3); letter-spacing: .04em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.lux-consent-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--indigo-tint); color: var(--indigo); display: flex; align-items: center; justify-content: center; flex: none; font-size: 16px; }
.lux-consent-orb { width: 72px; height: 72px; border-radius: 22px; background: var(--indigo); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.brief-lux-dot { width: 26px; height: 26px; border-radius: 8px; background: var(--indigo); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.lux-consent-orb lux-mark [data-lux-arc],
.lux-consent-orb lux-mark [data-lux-track],
.brief-lux-dot lux-mark [data-lux-arc],
.brief-lux-dot lux-mark [data-lux-track] { stroke: #fff; }
.lux-consent-orb lux-mark [data-lux-dots],
.brief-lux-dot lux-mark [data-lux-dots] { fill: #fff; }
.brief-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.brief-row:last-child { border-bottom: 0; }
.expense-drop { background: var(--indigo); border-radius: 16px; padding: 20px; color: #fff; text-align: center; margin-bottom: 16px; }
.expense-drop-inner { border: 2px dashed rgba(255,255,255,.45); border-radius: 12px; padding: 18px 14px; }

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

/* ============================================================
   Pavo shell (2026-10-05) — pavo-web-handoff §6–§9. Every value
   below reads a --pv-* token so dark mode follows the semantic set.
   ============================================================ */
.pv-body { background: var(--pv-bg); color: var(--pv-text); font-family: var(--pv-font); font-size: 16px; line-height: 1.5; margin: 0; -webkit-font-smoothing: antialiased; }
/* :where keeps this at element weight, so .pv-link, .pv-tab and the button classes set their own colour. */
:where(.pv-body) a { color: inherit; font-weight: inherit; }
.pv-help a, .pv-empty a, .pv-settings-sub a { color: var(--pv-accent); font-weight: 600; text-decoration: underline; }
.pv-error a { color: inherit; font-weight: 600; text-decoration: underline; }
.pv-body button { font-family: inherit; }
.pv-app { display: flex; min-height: 100vh; min-height: 100dvh; }
/* Keyboard users jump the rail: off-screen until it has focus. */
.pv-body .pv-skip { position: absolute; left: 16px; top: 16px; z-index: 80; padding: 12px 18px; border-radius: var(--pv-r-pill); background: var(--pv-accent); color: var(--pv-on-accent); font-weight: 600; text-decoration: none; transform: translateY(-300%); }
.pv-body a.pv-skip:focus { transform: none; }
.pv-body a.pv-skip:hover { color: var(--pv-on-accent); }
/* The skip link's target and an open sheet take focus from script; neither is a control, so no ring. */
.pv-main:focus, .pv-sheet:focus { outline: none; }
/* The hidden attribute must beat the display:flex classes it sits on (steps, rail payout, errors). */
.pv-app [hidden], .pv-login [hidden], .pv-scrim [hidden] { display: none; }
.pv-rail { flex: 0 0 var(--pv-rail-w); width: var(--pv-rail-w); background: var(--pv-surface); border-right: 1px solid var(--pv-border); padding: 24px 16px; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 0; height: 100vh; height: 100dvh; box-sizing: border-box; }
.pv-rail-logo { display: flex; align-items: center; gap: 10px; padding: 8px 12px 24px; color: var(--pv-text); }
.pv-wordmark { font-weight: 700; letter-spacing: var(--pv-tracking-wordmark); line-height: 1; text-transform: lowercase; }
.pv-rail-logo .pv-wordmark { font-size: 22px; }
.pv-rail-logo--flat { padding: 0; }
.pv-mark { display: block; flex: none; }
.pv-nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; font-weight: 500; font-size: 16px; color: var(--pv-text); min-height: 44px; box-sizing: border-box; }
.pv-nav-item svg { color: var(--pv-text); flex: none; }
.pv-nav-item[aria-current="page"] { background: var(--pv-chip-bg); font-weight: 600; }
.pv-nav-item[aria-current="page"] svg { color: var(--pv-accent); }
.pv-rail-payout { margin-top: auto; padding: 14px; border-radius: 14px; background: var(--pv-chip-bg); display: flex; flex-direction: column; gap: 4px; }
.pv-rail-payout-label { font-size: 13px; color: var(--pv-text-muted); }
.pv-rail-payout-amount { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pv-main { flex: 1 1 auto; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 24px; max-width: var(--pv-max-w); margin-inline: auto; box-sizing: border-box; }
.pv-page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.pv-h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
.pv-h2 { margin: 0; font-size: 18px; font-weight: 600; }
.pv-mobile-only { display: none; }
.pv-btn-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: var(--pv-r-pill); padding: 12px 20px; font-size: 15px; font-weight: 600; min-height: 44px; background: var(--pv-accent); color: var(--pv-on-accent); text-decoration: none; }
.pv-btn-pill:hover { color: var(--pv-on-accent); }
.pv-btn-pill:disabled { background: var(--pv-border); color: var(--pv-text-muted); cursor: default; }
.pv-btn-pill--secondary { background: var(--pv-chip-bg); color: var(--pv-text); font-weight: 500; }
.pv-btn-pill--secondary:hover { color: var(--pv-text); }
/* On the page background the chip colour disappears, so page-level secondary pills sit on the card colour. */
.pv-page-head .pv-btn-pill--secondary { background: var(--pv-surface); }
.pv-btn-lg { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; height: 56px; border: 0; border-radius: 16px; background: var(--pv-accent); color: var(--pv-on-accent); font-size: 18px; font-weight: 600; cursor: pointer; }
.pv-btn-lg--danger { background: var(--pv-danger-fill); color: var(--pv-on-danger); }
/* Disabled is a flat grey with readable text, not a faded violet. */
.pv-btn-lg:disabled { background: var(--pv-border); color: var(--pv-text-muted); cursor: default; }
.pv-btn-outline { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; height: var(--pv-button-h); border: 1.5px solid var(--pv-border); border-radius: 16px; background: var(--pv-surface); color: var(--pv-text); font-size: 16px; font-weight: 500; cursor: pointer; text-decoration: none; box-sizing: border-box; }
.pv-btn-text { background: none; border: 0; color: var(--pv-accent); font: inherit; font-weight: 600; cursor: pointer; padding: 4px 0; }
.pv-btn-text--danger { color: var(--pv-danger); }
.pv-btn-outline:disabled, .pv-btn-text:disabled { color: var(--pv-text-muted); cursor: default; }
.pv-btn-text:hover:not(:disabled), .pv-link:hover { text-decoration: underline; }
@media (hover: hover) {
  .pv-btn-pill:hover:not(:disabled), .pv-btn-lg:hover:not(:disabled) { filter: brightness(.94); }
  .pv-btn-pill--secondary:hover:not(:disabled), .pv-btn-outline:hover:not(:disabled), .pv-sheet-close:hover, .pv-key:hover, .pv-nav-item:hover { background: var(--pv-row-hover); filter: none; }
}
.pv-btn-pill:active:not(:disabled), .pv-btn-lg:active:not(:disabled) { filter: brightness(.88); }
/* One keyboard focus ring for every control. */
:is(.pv-btn-pill, .pv-btn-lg, .pv-btn-outline, .pv-btn-text, .pv-link, .pv-nav-item, .pv-tab, .pv-sheet-close, .pv-key, .pv-charge-card, .pv-rail-logo, .pv-login-card .btn-auth):focus-visible { outline: 2px solid var(--pv-accent); outline-offset: 2px; }
.pv-settings-row:focus-visible { outline: 2px solid var(--pv-accent); outline-offset: -2px; }
.pv-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.pv-card { background: var(--pv-surface); border-radius: var(--pv-r-card); padding: 22px; display: flex; flex-direction: column; gap: 4px; color: var(--pv-text); }
.pv-card-label { font-size: 13px; color: var(--pv-text-muted); }
.pv-stat { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.pv-list-card { background: var(--pv-surface); border-radius: var(--pv-r-card); padding: 8px; display: flex; flex-direction: column; }
.pv-list-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 10px; gap: 12px; }
.pv-list-title { font-size: 18px; font-weight: 600; }
h2.pv-list-title { margin: 0; line-height: 1.5; letter-spacing: normal; }
.pv-link { color: var(--pv-accent); font-weight: 500; background: none; border: 0; cursor: pointer; font: inherit; font-size: 14px; padding: 0; }
.pv-row { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border: 0; border-top: 1px solid var(--pv-row-divider); color: var(--pv-text); text-align: left; width: 100%; background: none; cursor: pointer; font: inherit; min-height: 68px; box-sizing: border-box; text-decoration: none; }
.pv-row:hover { color: var(--pv-text); }
div.pv-row { cursor: default; }
@media (hover: hover) { button.pv-row:hover, a.pv-row:hover { background: var(--pv-row-hover); } }
button.pv-row:active, a.pv-row:active { background: var(--pv-row-active); }
.pv-row:focus-visible { outline: 2px solid var(--pv-accent); outline-offset: -2px; }
/* In a list card the highlight is an inset rounded block, and the dividers start at the text. */
.pv-list-card .pv-row { border-top: 0; border-radius: 14px; padding: 12px 14px; position: relative; transition: background-color .12s ease; }
.pv-list-card .pv-row + .pv-row::before { content: ""; position: absolute; top: 0; left: 68px; right: 14px; height: 1px; background: var(--pv-border); }
/* Rows with no avatar (payout history) are not pressable: full-width divider, no hover. */
.pv-list-card div.pv-row + .pv-row::before { left: 14px; }
.pv-list-card :is(button, a).pv-row:is(:hover, :active, :focus-visible)::before, .pv-list-card :is(button, a).pv-row:is(:hover, :active, :focus-visible) + .pv-row::before { background: transparent; }
.pv-avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--pv-tint); display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--pv-accent); flex: none; font-size: 14px; }
.pv-avatar svg { display: block; }
.pv-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pv-row-name { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-row-meta { font-size: 13px; color: var(--pv-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The status in words at the start of the meta line: phones only, where the badge is hidden. */
.pv-row-status { display: none; font-weight: 600; }
.pv-row-status--refunded, .pv-row-status--declined, .pv-row-status--failed, .pv-row-status--canceled { color: var(--pv-danger); }
.pv-row-amount { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pv-row-amount--muted { color: var(--pv-text-muted); }
/* Money that did not stay: refunded in full, or never charged (declined is also struck through). */
.pv-row-amount--void { color: var(--pv-text-muted); }
.pv-row-amount--declined { text-decoration: line-through; }
.pv-badge { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pv-badge--paid { background: var(--pv-paid); color: var(--pv-on-paid); }
.pv-badge--pending { background: var(--pv-tint); color: var(--pv-text); }
/* One badge width, so the amounts line up down the list. */
.pv-row .pv-badge { min-width: 76px; box-sizing: border-box; text-align: center; }
.pv-badge--declined, .pv-badge--refunded { background: var(--pv-declined-bg); color: var(--pv-declined-text); }
.pv-empty { padding: 28px 14px; color: var(--pv-text-muted); font-size: 15px; line-height: 1.5; }
.pv-skeleton { background: var(--pv-border); border-radius: 10px; min-height: 20px; animation: pvPulse 1.2s ease-in-out infinite; }
.pv-skeleton--stat { display: block; height: 32px; width: 60%; margin: 6px 0; }
.pv-skeleton--row { height: 56px; border-radius: 14px; margin: 4px 0; }
@keyframes pvPulse { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .pv-skeleton { animation: none; } }
.pv-notice { background: var(--pv-declined-bg); color: var(--pv-declined-text); border-radius: 16px; padding: 14px 18px; font-size: 15px; line-height: 1.45; }
.pv-notice--info { background: var(--pv-surface); color: var(--pv-text); border: 1px solid var(--pv-border); }
.pv-notice a { color: inherit; text-decoration: underline; }
/* A notice with one obvious next step: the text, then a pill. */
.pv-notice--action { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.pv-notice--action > span { flex: 1 1 260px; }
.pv-notice a.pv-btn-pill, .pv-notice a.pv-btn-pill:hover { color: var(--pv-on-accent); text-decoration: none; flex: none; }
.pv-notice a.pv-btn-pill--secondary, .pv-notice a.pv-btn-pill--secondary:hover { color: var(--pv-text); background: var(--pv-tint); }
/* Home on a phone: the next payout, which the rail shows on wider screens. */
.pv-payout-line { align-items: center; justify-content: space-between; gap: 12px; background: var(--pv-surface); border-radius: 16px; padding: 14px 18px; font-size: 15px; color: var(--pv-text-muted); }
.pv-payout-line strong { font-weight: 600; color: var(--pv-text); font-variant-numeric: tabular-nums; }
.pv-charge-card { background: var(--pv-inverse-bg); color: var(--pv-lilac); border-radius: 20px; padding: 18px 20px; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; }
.pv-charge-card-title, .pv-charge-card-sub { display: block; }
.pv-charge-card:hover { color: var(--pv-lilac); }
.pv-charge-card-title { font-size: 16px; font-weight: 600; color: #FFFFFF; }
.pv-charge-card-sub { font-size: 13px; color: var(--pv-caption-dark); }
.pv-charge-card svg { color: var(--pv-violet-dark); flex: none; }
.pv-field { display: flex; flex-direction: column; gap: 8px; }
.pv-label { font-size: 14px; font-weight: 600; }
.pv-input { height: 52px; border: 1.5px solid var(--pv-border-control); border-radius: 14px; padding: 0 16px; font-size: 18px; color: var(--pv-text); background: var(--pv-surface); font-family: inherit; box-sizing: border-box; width: 100%; }
.pv-input::placeholder { color: var(--pv-text-muted); }
.pv-input:focus { outline: none; border-color: var(--pv-accent); box-shadow: 0 0 0 3px rgba(var(--pv-violet-rgb), .2); }
.pv-input--error { border-color: var(--pv-danger); }
.pv-select { height: 44px; border: 1.5px solid var(--pv-border-control); border-radius: 999px; padding: 0 36px 0 16px; font-size: 15px; color: var(--pv-text); background: var(--pv-surface) var(--pv-select-chevron) no-repeat right 14px center; font-family: inherit; -webkit-appearance: none; appearance: none; cursor: pointer; }
.pv-select:focus-visible { outline: none; border-color: var(--pv-accent); box-shadow: 0 0 0 3px rgba(var(--pv-violet-rgb), .2); }
.pv-error { font-size: 13px; color: var(--pv-danger); }
.pv-help { font-size: 13px; color: var(--pv-text-muted); line-height: 1.45; }
.pv-help--body { font-size: 15px; color: var(--pv-text); margin: 0; }
/* "New to Pavo? Sign up" / "Already have an account? Log in" under the /login and /signup card. */
.pv-login-switch { font-size: 15px; color: var(--pv-text-muted); text-align: center; padding-top: 4px; }
.pv-login-switch a { color: var(--pv-accent); font-weight: 600; text-decoration: none; }
.pv-login-switch a:hover { text-decoration: underline; }
/* Helper lines under the /login and /signup form (email link, Terms) center like the switch line. */
.pv-login-card .pv-help { text-align: center; }
/* Fast sign-in buttons inside the Pavo log-in card (shared .btn-auth component). */
.pv-login-card .auth-oauth-stack { margin-top: 0; }
.pv-login-card .btn-auth { height: 52px; border-radius: 16px; font-size: 16px; font-weight: 600; }
/* Apple's guidelines: a white Apple button on dark backgrounds. */
html[data-theme="dark"] .pv-login-card .btn-auth.apple { background: var(--pv-white); color: var(--pv-ink); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .pv-login-card .btn-auth.apple { background: var(--pv-white); color: var(--pv-ink); }
}
.pv-agree { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--pv-text); cursor: pointer; }
.pv-agree input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--pv-accent); cursor: pointer; }
.pv-agree a { color: var(--pv-accent); }
.pv-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pv-filters .pv-input { height: 44px; font-size: 15px; width: auto; min-width: 200px; flex: 1 1 220px; border-radius: 999px; }
.pv-section-label { font-size: 13px; font-weight: 600; color: var(--pv-text-muted); padding: 12px 22px 4px; }
.pv-list-card .pv-section-label { padding: 18px 14px 6px; }
.pv-list-card .pv-section-label:first-child { padding-top: 10px; }
.pv-scrim { position: fixed; inset: 0; background: var(--pv-scrim); display: flex; align-items: flex-end; justify-content: center; z-index: 60; }
.pv-sheet { background: var(--pv-surface); color: var(--pv-text); border: 1px solid var(--pv-border); border-radius: 24px 24px 0 0; padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 0px)); width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 20px; max-height: 92vh; max-height: 92dvh; overflow: auto; overscroll-behavior: contain; box-sizing: border-box; }
/* A tall sheet scrolls; its rows never squash. */
.pv-sheet > * { flex-shrink: 0; }
.pv-sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pv-sheet-title { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.pv-sheet-close { width: 44px; height: 44px; border: 0; background: var(--pv-chip-bg); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--pv-text); }
.pv-amount-display { text-align: center; font-size: 56px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; padding: 12px 0; }
.pv-amount-display--empty { color: var(--pv-text-muted); }
.pv-keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.pv-key { height: 60px; border: 0; background: transparent; border-radius: 999px; font-size: 28px; font-weight: 500; color: var(--pv-text); cursor: pointer; touch-action: manipulation; }
.pv-key:active, .pv-key:focus-visible { background: var(--pv-chip-bg); }
.pv-key--muted { color: var(--pv-text-muted); font-size: 22px; }
.pv-fee-line { font-size: 13px; color: var(--pv-text-muted); text-align: center; }
.pv-breakdown { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--pv-border); padding-top: 12px; font-size: 15px; }
.pv-breakdown-row { display: flex; justify-content: space-between; gap: 12px; }
.pv-breakdown-row strong { font-weight: 600; }
/* One plain sentence under a payment's status ("The card was declined. Nothing was charged."). */
.pv-sheet-note { text-align: center; }
/* The copy fallback's off-screen textarea. */
.pv-copy-buffer { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
.pv-link-box { display: flex; align-items: center; gap: 10px; background: var(--pv-chip-bg); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.pv-link-box span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); }
.pv-stack { display: flex; flex-direction: column; gap: 10px; }
.pv-page-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* Charge in person (2026-10-09): the code sits on a white tile in both themes so every camera reads it. */
.pv-qr { align-self: center; background: var(--pv-white); padding: 16px; border-radius: 20px; line-height: 0; }
.pv-qr canvas, .pv-qr img { display: block; max-width: 100%; height: auto; }
/* Phone browsers: no grey flash on tap, no double-tap zoom on controls. */
.pv-row, .pv-tab, .pv-key, .pv-settings-row, .pv-charge-card, .pv-btn-lg, .pv-btn-pill, .pv-btn-outline, .pv-btn-text, .pv-link { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
/* Inverts with the theme, so it never matches the page; fit-content between the gutters, not half the screen. */
.pv-toast { position: fixed; left: 20px; right: 20px; bottom: 24px; margin-inline: auto; width: fit-content; max-width: min(440px, calc(100vw - 40px)); background: var(--pv-text); color: var(--pv-bg); border-radius: 14px; padding: 12px 18px; font-size: 15px; z-index: 70; box-sizing: border-box; }
.pv-toast[hidden] { display: none; }
/* With a sheet open the toast moves to the top, clear of the sheet's buttons. */
.pv-toast.pv-toast--over-sheet { top: calc(16px + env(safe-area-inset-top, 0px)); bottom: auto; }
.pv-toast:empty { opacity: 0; }
.pv-settings-group { background: var(--pv-surface); border-radius: var(--pv-r-card); display: flex; flex-direction: column; overflow: hidden; }
.pv-settings-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 20px; border: 0; border-top: 1px solid var(--pv-row-divider); font-size: 16px; font-weight: 500; color: var(--pv-text); background: none; width: 100%; text-align: left; cursor: pointer; min-height: 52px; box-sizing: border-box; text-decoration: none; }
.pv-settings-row:first-child { border-top: 0; }
.pv-settings-row:hover { background: var(--pv-chip-bg); color: var(--pv-text); }
.pv-settings-row--static { cursor: default; }
.pv-settings-row--static:hover { background: none; }
.pv-settings-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.pv-settings-sub { font-size: 13px; color: var(--pv-text-muted); font-weight: 400; }
.pv-settings-value { font-size: 15px; color: var(--pv-text-muted); font-weight: 400; white-space: nowrap; }
.pv-toggle { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 999px; background: var(--pv-border-control); position: relative; cursor: pointer; flex: none; border: 0; margin: 0; }
.pv-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 999px; background: var(--pv-white); transition: left .15s; }
.pv-toggle:checked { background: var(--pv-accent); }
.pv-toggle:checked::after { left: 23px; background: var(--pv-on-accent); }
.pv-toggle:focus-visible { outline: 2px solid var(--pv-accent); outline-offset: 2px; }
/* Settings (2026-10-11 audit): one wrapper per section so every label sits the same distance above its card. */
.pv-settings-section { display: flex; flex-direction: column; gap: 8px; }
.pv-settings-section .pv-section-label { margin: 0; padding: 0 20px; }
.pv-settings-row > svg { flex: none; }
.pv-settings-row--static > svg { display: none; }
.pv-settings-row:disabled { cursor: default; opacity: .6; }
.pv-settings-row.pv-btn-text--danger, .pv-settings-row.pv-btn-text--danger:hover { color: var(--pv-danger); }
.pv-settings-seg { display: inline-flex; flex: none; flex-wrap: nowrap; gap: 4px; padding: 4px; border-radius: var(--pv-r-pill); background: var(--pv-chip-bg); }
.pv-settings-seg-btn { border: 0; background: none; border-radius: var(--pv-r-pill); min-height: 44px; padding: 0 16px; font: inherit; font-size: 15px; font-weight: 500; color: var(--pv-text-muted); cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.pv-settings-seg-btn:hover { color: var(--pv-text); }
.pv-settings-seg-btn--on { background: var(--pv-tint); box-shadow: inset 0 0 0 2px var(--pv-accent); color: var(--pv-text); font-weight: 600; }
.pv-settings-seg-btn:focus-visible { outline: 2px solid var(--pv-accent); outline-offset: 2px; }
.pv-settings-prefix { position: relative; }
.pv-settings-prefix::before { content: "@"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--pv-text-muted); pointer-events: none; }
.pv-settings-prefix .pv-input { padding-left: 38px; }
.pv-settings-prefix ~ .pv-help:empty { display: none; }
.pv-settings-sheet-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; }
.pv-settings-sheet-links .pv-btn-text { min-height: 44px; }
.pv-settings-payout-note { color: var(--pv-danger); white-space: normal; }
/* People (2026-10-11 audit): a person's history as plain dated lines, and a full-size retry. */
.pv-people-actions { margin-top: 12px; }
.pv-people-history { display: flex; flex-direction: column; }
.pv-people-history-label { margin: 0; font-size: 13px; font-weight: 600; color: var(--pv-text-muted); }
.pv-people-hrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 0; border: 0; border-top: 1px solid var(--pv-row-divider); background: none; color: var(--pv-text); font: inherit; text-align: left; cursor: pointer; box-sizing: border-box; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.pv-people-hrow:first-of-type { border-top: 0; }
@media (hover: hover) { .pv-people-hrow:hover .pv-row-name { color: var(--pv-accent); } }
.pv-footnote { font-size: 12px; color: var(--pv-text-muted); text-align: center; padding: 8px 0 24px; }
.pv-login { min-height: 100vh; min-height: 100dvh; display: flex; flex-wrap: wrap; background: var(--pv-bg); }
.pv-login-panel { flex: 1 1 420px; background: var(--pv-violet); color: #FFFFFF; padding: 48px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 480px; }
.pv-login-panel a { color: #FFFFFF; }
.pv-login-panel .pv-wordmark { font-size: 26px; color: #FFFFFF; }
.pv-login-headline { font-size: 48px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.pv-login-sub { font-size: 18px; color: var(--pv-hairline); line-height: 1.5; }
.pv-login-side { flex: 1 1 420px; padding: 48px 24px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.pv-login-card { width: 100%; max-width: 400px; background: var(--pv-surface); border-radius: 24px; padding: 36px; box-sizing: border-box; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 2px 0 var(--pv-border); }
.pv-login-title { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 0; }
.pv-login-lead { font-size: 15px; color: var(--pv-text-muted); }
.pv-login-mobile-logo { display: none; }
/* /login steps (web UI audit, 2026-10-11): the two text actions under a step, the "(optional)" tag,
   and the red edge on the code boxes when the code is wrong. */
.pv-login-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; justify-content: space-between; }
.pv-login-actions--center { justify-content: center; }
.pv-login-optional { font-weight: 400; color: var(--pv-text-muted); }
.pv-code-box.pv-input--error { border-color: var(--pv-danger); }
/* Tablet portrait: the violet panel stacked on top and pushed the form under the fold. */
@media (max-width: 899px) {
  .pv-login-panel { display: none; }
  .pv-login-mobile-logo { display: flex; align-items: center; gap: 8px; color: var(--pv-text); }
  .pv-login-mobile-logo .pv-wordmark { font-size: 22px; }
}
@media (max-width: 767px) {
  .pv-login-card form .pv-help a, .pv-login-switch a { display: inline-flex; align-items: center; min-height: 44px; }
}
.pv-divider { display: flex; align-items: center; gap: 12px; color: var(--pv-text-muted); font-size: 13px; }
.pv-divider::before, .pv-divider::after { content: ""; flex: 1; height: 1px; background: var(--pv-border); }
.pv-code-row { display: flex; gap: 8px; justify-content: space-between; }
.pv-code-box { width: min(46px, 12vw); height: 56px; border: 1.5px solid var(--pv-border-control); border-radius: 14px; text-align: center; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--pv-surface); color: var(--pv-text); padding: 0; }
.pv-code-box:focus { outline: none; border-color: var(--pv-accent); box-shadow: 0 0 0 3px rgba(var(--pv-violet-rgb), .2); }
.pv-mobile-head { display: none; }
.pv-tabs { display: none; }
@media (max-width: 767px) {
  .pv-app { display: block; }
  .pv-rail { display: none; }
  .pv-mobile-only { display: flex; }
  .pv-desktop-only { display: none; }
  .pv-main { padding: 8px max(20px, env(safe-area-inset-right, 0px)) calc(96px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); gap: 16px; }
  .pv-mobile-head { display: flex; align-items: center; justify-content: space-between; padding: max(16px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 12px max(20px, env(safe-area-inset-left, 0px)); background: var(--pv-bg); position: sticky; top: 0; z-index: 5; }
  .pv-mobile-head .pv-wordmark { font-size: 22px; }
  .pv-mobile-head .pv-btn-pill { padding: 10px 16px; font-size: 14px; }
  .pv-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; background: var(--pv-surface); border-top: 1px solid var(--pv-border); padding: 10px max(8px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 10px)) max(8px, env(safe-area-inset-left, 0px)); z-index: 10; }
  .pv-tab { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; font-size: 12px; font-weight: 500; color: var(--pv-text-muted); text-decoration: none; min-height: 44px; }
  .pv-tab svg { color: var(--pv-text-muted); }
  .pv-tab[aria-current="page"] { color: var(--pv-accent); font-weight: 600; }
  .pv-tab[aria-current="page"] svg { color: var(--pv-accent); }
  .pv-tab:hover { color: var(--pv-accent); }
  .pv-h1 { font-size: 24px; }
  .pv-stat-grid { display: flex; flex-direction: column; }
  .pv-stat-grid .pv-card--desktop { display: none; }
  .pv-stat { font-size: 40px; letter-spacing: -0.04em; }
  .pv-row { padding: 12px 18px; gap: 12px; min-height: 62px; }
  .pv-list-card .pv-row { padding: 10px; }
  .pv-list-card .pv-row + .pv-row::before { left: 60px; right: 10px; }
  .pv-list-card div.pv-row + .pv-row::before { left: 10px; }
  .pv-list-head { padding: 12px 10px 8px; }
  .pv-list-card .pv-section-label { padding-left: 10px; padding-right: 10px; }
  .pv-avatar { width: 38px; height: 38px; }
  .pv-row-name { font-size: 15px; }
  .pv-row-meta { font-size: 12px; }
  .pv-row-status { display: inline; }
  .pv-row-amount { font-size: 15px; }
  .pv-row .pv-badge { display: none; }
  .pv-list-card--recent .pv-row:nth-child(n+4) { display: none; }
  .pv-sheet { max-width: none; }
  /* Text-sized controls still get a full-height tap target. */
  .pv-link, .pv-btn-text { min-height: 44px; display: inline-flex; align-items: center; }
  /* A link inside a sentence stays on the line; the tap area grows around it without moving the text. */
  .pv-empty .pv-link, .pv-help .pv-link, .pv-error .pv-link { display: inline; min-height: 0; position: relative; }
  .pv-empty .pv-link::after, .pv-help .pv-link::after, .pv-error .pv-link::after { content: ""; position: absolute; inset: -10px 0; }
  .pv-toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  /* iOS zooms into any field under 16px. */
  .pv-select, .pv-filters .pv-input { font-size: 16px; }
  .pv-filters--search { gap: 8px; }
  .pv-filters--search .pv-input { flex: 1 1 100%; min-width: 0; }
  .pv-filters--search .pv-select { flex: 1 1 auto; padding: 0 32px 0 14px; background-position: right 12px center; }
  .pv-qr { padding: 12px; }
  .pv-login-panel { display: none; }
  .pv-login-side { padding: 24px 20px; align-items: flex-start; }
  .pv-login-card { box-shadow: none; background: transparent; padding: 0; max-width: none; gap: 24px; }
  .pv-login-mobile-logo { display: flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--pv-text); }
  .pv-login-mobile-logo .pv-wordmark { font-size: 22px; }
  .pv-login-title { font-size: 36px; letter-spacing: -0.04em; }
  .pv-login-card .pv-input { height: 56px; font-size: 20px; border-radius: 16px; }
}
/* A phone on its side: the sheet is short, so keep the amount and the QR code in view. */
@media (max-height: 480px) {
  .pv-sheet { gap: 10px; padding-top: 16px; }
  .pv-sheet .pv-amount-display { font-size: 36px; padding: 4px 0; }
  .pv-sheet .pv-key { height: 44px; font-size: 22px; }
}
@media (min-width: 768px) {
  .pv-scrim { align-items: center; }
  .pv-sheet { border-radius: 24px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .pv-rail { flex-basis: 72px; width: 72px; padding: 24px 12px; }
  .pv-rail .pv-wordmark, .pv-rail-payout { display: none; }
  /* Icon-only rail: the label stays for screen readers. */
  .pv-nav-item span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pv-filters--search .pv-input { flex-basis: 100%; }
  .pv-filters--search .pv-select { flex: 1 1 0; min-width: 0; }
  .pv-nav-item { justify-content: center; padding: 12px; }
}

/* Payment setup (web-app-pavo-setup.js, 2026-10-14): the iOS setup cover as a full page.
   One question per screen in a 480px column; the page behind is covered and does not scroll. */
html.pv-setup-open, html.pv-setup-open body { overflow: hidden; }
.pv-setup { position: fixed; inset: 0; z-index: 900; background: var(--pv-bg); color: var(--pv-text); overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; font-family: var(--pv-font); }
.pv-setup > * { flex-shrink: 0; }
.pv-setup-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px var(--pv-gutter); max-width: 1120px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.pv-setup-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; color: var(--pv-text); }
.pv-setup-later { font-size: 15px; font-weight: 600; min-height: 44px; padding: 0 4px; }
.pv-setup-progress { height: 4px; background: var(--pv-border); max-width: 480px; width: calc(100% - 2 * var(--pv-gutter-mobile)); margin: 8px auto 0; border-radius: 999px; overflow: hidden; }
.pv-setup-progress span { display: block; height: 100%; background: var(--pv-accent); border-radius: inherit; transition: width .25s ease; }
.pv-setup-body { width: 100%; max-width: 480px; margin: 0 auto; padding: 40px var(--pv-gutter-mobile) 64px; box-sizing: border-box; display: flex; flex-direction: column; gap: 20px; }
.pv-setup-title { font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: var(--pv-tracking-display); margin: 0; outline: none; }
.pv-setup-sub { font-size: 17px; line-height: 1.5; color: var(--pv-text-muted); margin: -8px 0 0; }
.pv-setup-form { display: flex; flex-direction: column; gap: 16px; }
.pv-setup-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pv-setup-row--3 { grid-template-columns: 1.4fr 1fr 1fr; }
.pv-setup-select { -webkit-appearance: none; appearance: none; background: var(--pv-surface) var(--pv-select-chevron) no-repeat right 14px center; padding-right: 36px; cursor: pointer; }
.pv-setup-secret { -webkit-text-security: disc; letter-spacing: 0.2em; }
.pv-setup-lock { display: flex; align-items: center; gap: 6px; margin: -4px 0 0; }
.pv-setup-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.pv-setup-list li { display: flex; align-items: center; gap: 12px; }
.pv-setup-list svg { flex: none; color: var(--pv-accent); }
.pv-setup-review { border: 1px solid var(--pv-border); border-radius: var(--pv-r-card); background: var(--pv-surface); }
.pv-setup-kv { display: grid; grid-template-columns: 120px 1fr auto; align-items: baseline; gap: 12px; padding: 14px 16px; font-size: 15px; }
.pv-setup-kv + .pv-setup-kv { border-top: 1px solid var(--pv-row-divider); }
.pv-setup-kv > span { color: var(--pv-text-muted); }
.pv-setup-kv > strong { font-weight: 600; overflow-wrap: anywhere; }
.pv-setup-terms { font-size: 13px; }
.pv-setup-terms a { color: var(--pv-accent); }
.pv-setup-links { display: flex; justify-content: center; gap: 28px; }
.pv-setup-links .pv-link { min-height: 44px; font-size: 15px; }
.pv-setup-center { text-align: center; }
@media (max-width: 560px) {
  .pv-setup-bar { padding: 14px var(--pv-gutter-mobile); }
  .pv-setup-body { padding-top: 28px; }
  .pv-setup-title { font-size: 26px; }
  .pv-setup-row, .pv-setup-row--3 { grid-template-columns: 1fr; }
  .pv-setup-kv { grid-template-columns: 1fr auto; }
  .pv-setup-kv > span { grid-column: 1 / -1; }
}
