/* shared/base_colors.css */
/* base_colors.css — the colour library: descriptive names mapped to values,
   and nothing else. Nothing outside colors.css should reference these; a
   component asks for a semantic token (--accent, --line), never a hue.

   The cornflower system from the July 2026 design workshop
   (docs/design-system.md). Neutrals are cool-biased, never flat grey. */
:root {
  --white: #ffffff;
  --gray-25: #fafbfd;
  --gray-50: #f8f9fb;
  /* Between the canvas and the first line colour: the ground the event
     shell's floating pane sits ON, so it has to be deeper than --bg and
     still well clear of --line, or the hairlines inside the sidebar would
     land on a value close to their own. See --shell-ground. */
  --gray-75: #eef0f6;
  --gray-100: #e4e6ee;
  --gray-150: #dbdee8;
  --gray-200: #d5d8e3;
  --gray-300: #a5a9b7;
  --gray-350: #9a9dab;
  --gray-400: #949aad;
  --gray-450: #767b8d;
  --gray-500: #666a76;
  --mist: #e2e6f0;
  /* The dark neutrals sit off the floor on purpose. A canvas at #0b0c0f left
     no room beneath the card, so surface-vs-canvas measured 1.09:1 and the
     "subtler" surface-2 1.04:1 — steps the eye cannot find. Lifting the whole
     ramp buys that room back and drops body text from 15.42:1 to 13.32:1,
     which stops near-white on near-black blooming for astigmatic readers.
     The scale is ordered: a higher number is always darker — which is what
     --slate-600 is doing at a new value: --line-strong's lifted colour sits
     between --field-line and --line, and the old #4d5366 was left with no
     consumers when --field-line moved up to --slate-550. */
  /* The two lightest sit off the top of the ramp and are for
     `prefers-contrast: more` only, where every border is pushed well past the
     WCAG non-text floor — at rest nothing reaches up here. */
  --slate-400: #868da1;
  --slate-450: #767d90;
  --slate-550: #646a78;
  --slate-600: #545a6c;
  --slate-700: #383c4a;
  --slate-800: #1b1e27;
  --slate-850: #15171e;
  --slate-900: #101219;
  /* The one value BELOW the canvas, and the only place the ramp is allowed
     to go back down toward the floor the lift moved it off: it is the ground
     OUTSIDE the event pane, never a surface under body text. The pane keeps
     --bg, so nothing that carries reading text moves. See --shell-ground. */
  --slate-950: #0a0b10;
  --ink: #1b1c22;
  --midnight: #0a1022;

  --cornflower-700: #1d4fd7;
  --cornflower-600: #2563eb;
  --cornflower-400: #7aa8ff;
  --cornflower-300: #8ab5ff;
  --cornflower-250: #9dbfff;

  /* EVERY status hue is split in two, not just amber (which was the first to
     be caught). The mid value paints SURFACES — tints, borders, dots — and in
     light mode is far too pale to carry a word; the -800 stop is the ink for
     words and icons, and clears AA on every tint its own hue makes. The
     measured table lives beside --ok-ink in colors.css.

     Dark mode needs no second value for green or amber: the bright stop is
     comfortable on its own tint (5.6:1 and 5.9:1), so --ok/--warn and their
     inks coincide there. Rose is the exception both ways round — it is the
     tightest pair in the set, and --rose-400 on its own 14% tint measures
     4.54:1, which passes by 0.04. --rose-350 is that headroom. */
  --emerald-600: #1f9d63;
  --emerald-400: #43c489;
  --emerald-800: #146c43;

  --amber-500: #eab308;
  --amber-400: #f2a33c;
  --amber-800: #8a5200;

  --rose-600: #d5484f;
  --rose-400: #ef6a71;
  --rose-350: #f4868c;
  --rose-800: #b3262c;

  --shade-soft: rgb(20 20 30 / 5%);
  --shade: rgb(20 20 30 / 7%);
  --shade-pop: rgb(20 20 30 / 8%);
  --shade-pop-far: rgb(20 20 30 / 14%);
  --night-soft: rgb(0 0 0 / 40%);
  --night: rgb(0 0 0 / 45%);
  --night-pop: rgb(0 0 0 / 50%);
  --night-pop-far: rgb(0 0 0 / 55%);

  /* Flat black veils; the suffix is the alpha percent. These carry the
     elevation levels that were written as literals at their call sites long
     enough to hide a real bug — the same value in both themes, which reads
     in light and contributes nothing at all against a #0b0c0f canvas. They
     are kept (light mode is tuned around them) and every level that uses one
     now opens with --rim, which is the layer dark mode can actually see. */
  --soot-3: rgb(0 0 0 / 3%);
  --soot-6: rgb(0 0 0 / 6%);
  --soot-8: rgb(0 0 0 / 8%);
  --soot-12: rgb(0 0 0 / 12%);
  --soot-15: rgb(0 0 0 / 15%);
  --soot-25: rgb(0 0 0 / 25%);
  --soot-30: rgb(0 0 0 / 30%);
  --soot-35: rgb(0 0 0 / 35%);
  /* The rim's own light: a hairline of the page's brightest value, laid on
     the outer edge of anything raised. Dark mode only — see --rim. */
  --sheen-8: rgb(255 255 255 / 8%);
}

/* shared/colors.css */
/* colors.css — semantic tokens mapped to base_colors.css, and the one place
   light and dark are decided. `color-scheme: light dark` plus `light-dark()`
   means one declaration per token instead of a light block and a duplicate
   dark block: change a colour here and both themes follow.

   The theme toggle stamps data-theme on <html>; pinning color-scheme there
   is what makes light-dark() (and bare native widgets — the .mx matrix
   checkboxes) follow the choice rather than the OS. Because those two rules
   only set color-scheme, every token below is authored exactly once. */
:root {
  color-scheme: light dark;

  --bg: light-dark(var(--gray-50), var(--slate-900));
  --surface: light-dark(var(--white), var(--slate-800));
  --surface-2: light-dark(var(--gray-25), var(--slate-850));

  --line: light-dark(var(--gray-100), var(--slate-700));
  --line-strong: light-dark(var(--gray-200), var(--slate-600));
  /* An input's outline is the ONLY thing that says "this is a control", so it
     is a non-text contrast target (WCAG 2.2 SC 1.4.11) and owes 3:1 — not the
     decorative hairline budget --line spends. Dark was #4d5366, which
     measured 2.34:1 against --surface and failed; --slate-550 clears it.
     Note the margin is thin now: --slate-550 was picked against the old
     #16171c surface, where it measured 3.30:1. Lifting --surface to #1b1e27
     takes it to 3.07:1 — still over the 3:1 floor, but anything that lifts
     --surface again has to lift --field-line with it. */
  --field-line: light-dark(var(--gray-150), var(--slate-550));
  /* Shell-level edges ONLY — the sidebar against the canvas, and the same
     edge turned horizontal in the ≤800px top bar. Not for card dividers or
     table rows: those are --line, and the whole point of this token is that
     the admin's primary navigation frame should not be drawn at the weight
     of a divider between two table rows.

     Dark mode is the reason it exists, and the palette lift did NOT solve it:
     the lift moved the whole ramp together, so --surface-2 on --bg is still a
     1.05:1 fill difference. No fill can fix that — --surface-2 is sandwiched
     between --surface and --bg, so any value dark enough to read as recessed
     against a card lands back on top of the canvas. The edge has to carry the
     boundary alone, and --line carries it at 1.70:1.

     It shares --slate-600 with --line-strong rather than reaching past
     --field-line, and the ordering is worth stating because it looks wrong at
     a glance: --field-line is HIGHER (3.45:1) not because a form input
     outranks the app's frame, but because an input's border is a control
     boundary owing 3:1 under WCAG 1.4.11. That is a compliance floor, not a
     statement of visual weight. Chasing it here would put a full-height rule
     above 3.5:1, which reads as a seam splitting the window rather than an
     edge — and 1.4.11 does not govern a structural edge, only boundaries
     needed to IDENTIFY a control. So this sits deliberately below it, and
     `prefers-contrast: more` at the foot of this file is where that trade is
     taken the other way. Sharing a value with --line-strong today is fine:
     they are different jobs and either can move alone.

     Light is unchanged (same value as --line): the hairline already reads
     there, so light has no problem to solve. */
  --line-structural: light-dark(var(--gray-100), var(--slate-600));
  /* The ground the EVENT shell floats its content pane on — the account
     shell keeps the rule above and never paints this. It sits one step
     BELOW --bg in both themes, which is what lets the pane keep --bg as its
     own fill: every card inside is levelled against exactly the surface it
     was levelled against before, so the whole change is outside the pane.
     Dark leans on --rim as much as on the fill step (the pane over this
     ground is 1.06:1, and no darker ground would help much — see
     --slate-950), which is the same argument --rim was introduced for. */
  --shell-ground: light-dark(var(--gray-75), var(--slate-950));

  --text: light-dark(var(--ink), var(--mist));
  --text-muted: light-dark(var(--gray-500), var(--gray-300));
  /* NOT FOR TEXT — svg icons, border-colors and background tints only, where
     the floor is WCAG 1.4.11's 3:1 and this clears it (4.00:1 on --bg at its
     worst). It cannot carry words: in LIGHT it measured 4.00:1 on --bg and
     4.21:1 on --surface, both under the 4.5:1 AA needs, and every text use in
     the admin was moved to --text-muted on 2026-08-06. (Dark was always fine —
     5.93:1 to 6.67:1.)

     The reason this is a rule and not a darker value: there is no room on this
     palette for two text greys. Clearing 4.5:1 on --bg needs about #6d7285,
     which lands 1.13:1 from --text-muted — invisible. The old pair was only
     1.28:1 apart to begin with, so the "two tiers" the token seemed to give
     were never being read as two: the quiet look of a stat label or a column
     head comes from 11.5px + uppercase + .05em tracking, not from the grey.
     Darkening the token instead would also have dragged the ten non-text
     consumers below with it, none of which had a problem.

     Two of the moved uses could not have been fixed by any faint grey anyway:
     .lg-row.pinned .lsub and a checked .nc-pick's .nc-cap sit on --accent-weak,
     where the best a faint value reaches is 4.35:1 and --text-muted gives
     4.77:1. Note --text-muted's own floor while you are here: it is 4.31:1 on
     --accent-weak-2, so that tint must never carry muted text. */
  --text-faint: light-dark(var(--gray-450), var(--gray-400));

  /* --on-accent flips to dark ink in dark mode so primary buttons clear AA
     in both themes. */
  --accent: light-dark(var(--cornflower-600), var(--cornflower-400));
  --accent-strong: light-dark(var(--cornflower-700), var(--cornflower-300));
  /* TEXT ON A TINT IS ALWAYS --accent-ink, NEVER --accent. --accent is a text
     colour for --bg / --surface and a fill colour for solid accent objects;
     the moment it sits on --accent-weak or --accent-weak-2 it is too close to
     its own tint to clear AA. Measured live in light mode (composited
     backgrounds, browser-level scheme emulation), --accent on a tint passes in
     exactly one of six real placements and only by 0.06:

       over --bg        weak 4.32  weak-2 3.93     ink 5.57 / 5.07
       over --surface   weak 4.56  weak-2 4.13     ink 5.88 / 5.32
       over --surface-2 weak 4.40  weak-2 3.97     ink 5.67 / 5.12

     Ink clears all six with room, and it is the stronger pick in dark too
     (7.01-8.07 against --accent's 5.09-6.32). Which surface a tint happens to
     land on is not something a rule can know, so there is no case-by-case
     version of this. TestAccentOnTintIsInk (styles_test.go) holds the line for
     same-rule pairings; a background and a colour set in two different rules
     is on the reviewer. */
  --accent-ink: light-dark(var(--cornflower-700), var(--cornflower-250));
  --on-accent: light-dark(var(--white), var(--midnight));
  /* The weak tints mix their own hue into transparent, and dark mode needs a
     HIGHER percentage to read against a dark surface. light-dark() substitutes
     colours, not <percentage>s (same limit the shadow geometry hits below), so
     the pick has to wrap the whole color-mix() — `var(--accent) light-dark(9%,
     14%)` parses as nothing, which invalidates the token and silently drops
     every consumer to its property's initial value (transparent for a
     background, BLACK for an SVG fill — how this last broke, #322). */
  --accent-weak: light-dark(
    color-mix(in srgb, var(--accent) 9%, transparent),
    color-mix(in srgb, var(--accent) 14%, transparent));
  /* Dark sits at 18%, not the 24% you'd expect from the --accent-weak
     pattern above, and it is capped by a text contrast rather than by how
     the tint looks: --accent on a 24% tint over --surface measures 4.44:1,
     under AA (a.lbadge:hover is the live case). 18% brings that to 5.03:1
     while still reading as a selected fill. The palette lift did not fix
     this one — it moved --accent to #7aa8ff and the surface with it, and the
     pair came out at 4.41:1 before and 4.44:1 after. If it ever needs to go
     back up, the other way out is --accent-ink for the text (5.67:1 at 24%),
     not a brighter tint — which is now the standing rule for BOTH themes, see
     --accent-ink above; a.lbadge:hover takes ink and no longer sets this cap
     on its own. */
  --accent-weak-2: light-dark(
    color-mix(in srgb, var(--accent) 16%, transparent),
    color-mix(in srgb, var(--accent) 18%, transparent));

  /* A STATUS-COLOURED WORD IS ALWAYS THE INK, NEVER THE BASE — and unlike
     --accent-ink above, that holds on a plain page as well as on a tint,
     because these three hues are not text colours in light mode at all. They
     paint surfaces: tints, borders, dots, the toggle track. Measured live in
     the styleguide (composited backgrounds, browser-level scheme emulation),
     light mode, worst of the three real bases (--bg / --surface / --surface-2)
     against the strongest tint each hue makes and against bare page:

                     on its own tint     on a plain surface
       --ok           2.76 - 3.06         3.29 - 3.46
       --warn-ink     4.24 - 4.52         4.67 - 4.92     (the old #a16207)
       --danger       3.32 - 3.79         4.09 - 4.31
       --ok-ink       5.13 - 5.69         6.12 - 6.45
       --warn-ink     5.51 - 5.86         6.06 - 6.39     (the new #8a5200)
       --danger-ink   5.01 - 5.71         6.17 - 6.50

     So green fails everywhere, red fails everywhere, and amber — already
     split once, which is how the pattern got its name — was still short on
     every tint it paints. The inks clear AA with room in all of it.

     Dark mode is the mirror image: the bright stops sit ON dark tints and are
     comfortable (--ok 5.57-6.72, --warn 5.91-7.09), so green and amber ink is
     the same value as its base, exactly as amber has always done. Only rose
     gets a second dark value, because --danger on its own 14% tint measures
     4.54:1 — a pass by 0.04, and the palette lift has eaten a margin that
     size before (see --danger-weak below). --rose-350 takes it to 5.62.

     Which surface a word lands on is not something a rule can know, so this is
     flat like the accent rule: every status-coloured word asks for the ink.
     TestStatusWordsTakeTheInk holds the line — and because the base hue is
     never text anywhere, that guard needs no pairing and so has none of
     TestAccentOnTintIsInk's blind spot. */
  --ok: light-dark(var(--emerald-600), var(--emerald-400));
  --ok-ink: light-dark(var(--emerald-800), var(--emerald-400));
  --ok-weak: light-dark(
    color-mix(in srgb, var(--ok) 11%, transparent),
    color-mix(in srgb, var(--ok) 16%, transparent));
  --warn: light-dark(var(--amber-500), var(--amber-400));
  --warn-ink: light-dark(var(--amber-800), var(--amber-400));
  --warn-weak: light-dark(
    color-mix(in srgb, var(--warn) 13%, transparent),
    color-mix(in srgb, var(--warn) 16%, transparent));
  --danger: light-dark(var(--rose-600), var(--rose-400));
  --danger-ink: light-dark(var(--rose-800), var(--rose-350));
  /* Rose on its own tint is the tightest pair in the status set, so the
     lifted dark surface is what forces 16% down to 14%: at 16% the pill's
     own text measured 4.41:1, under AA. At 14% it is 4.56:1. That cap is
     belt-and-braces now — the words on it take --danger-ink, which clears
     AA at 16% too — but it stays, because the tint also has to keep its
     distance from the surface it sits on. */
  --danger-weak: light-dark(
    color-mix(in srgb, var(--danger) 10%, transparent),
    color-mix(in srgb, var(--danger) 14%, transparent));
  /* The badges paint a stronger tint than the --*-weak fills and .badge-soldout
     spells its own out, so it does NOT inherit --danger-weak above and needs
     the same dark-mode step down here. Light mode keeps 16% in both places.
     --ok and --warn badges stay at 16% (5.60:1 and 5.88:1 after the lift —
     both DARK-mode numbers; in light these badges were the worst text in the
     product until their words moved to the inks above). */
  --danger-badge: light-dark(
    color-mix(in srgb, var(--danger) 16%, transparent),
    color-mix(in srgb, var(--danger) 14%, transparent));
  --neutral-pill: light-dark(var(--gray-500), var(--gray-350));

  /* --rim is the separation channel dark mode never had. In light, a raised
     thing is set apart from the canvas TWICE: by a lightness step and by a
     drop shadow. In dark the shadow does nothing — a drop shadow works by
     darkening, and --slate-900 has nothing left to darken, so every elevation
     shadow in the product measures about 1.03:1 against it — which left dark
     mode running structure on the lightness step alone. So the raised edge
     catches a hairline of light instead, and light mode takes a transparent
     ring and changes in no way at all. (Lifting the canvas off #0b0c0f to
     #101219 did not give the shadow its job back; it only gave the rim room.)
     (8%, down from the 10% it landed at: the two extra points were there to
     carry the rim against the old #16171c surface. That surface is #1b1e27
     now, so the rim reads at 8% and 10% starts to look like a drawn border
     rather than a caught edge.) */
  --rim: light-dark(transparent, var(--sheen-8));

  /* The elevation ladder. Every level opens with --rim, and no level's own
     layers changed: they are the values each surface was tuned to in light,
     lifted out of the eleven components that had inlined them — which is
     exactly how a whole theme's worth of no-op shadows went unnoticed, since
     a literal in a component is a value nobody is looking at. Levels stay
     distinct rather than collapsing to three, because collapsing them would
     retune light. TestElevationShadowsUseTokens keeps them here. */
  --shadow: 0 0 0 1px var(--rim),
    0 1px 2px light-dark(var(--shade-soft), var(--night-soft)),
    0 8px 24px light-dark(var(--shade), var(--night));
  /* The one token light-dark() can't fold on its own: the far layer's blur
     and offset differ between themes, and light-dark() substitutes colours,
     not lengths. So the geometry — and only the geometry — is picked per
     scheme, and the two theme hooks below re-pick it. */
  --shadow-pop-far: 0 12px 32px var(--shade-pop-far);
  --shadow-pop: 0 0 0 1px var(--rim),
    0 4px 10px light-dark(var(--shade-pop), var(--night-pop)), var(--shadow-pop-far);
  /* A segmented control's selected pill (seg-tabs, the export panel's). */
  --shadow-pill: 0 0 0 1px var(--rim), 0 1px 2px var(--soot-8);
  /* The buyer journey's weightless cards, at rest and lifted on hover. */
  --shadow-hairline: 0 0 0 1px var(--rim), 0 1px 2px var(--soot-3);
  --shadow-hairline-lift: 0 0 0 1px var(--rim), 0 2px 10px var(--soot-6);
  /* Menus that hang off a control: the admin's, then the buyer journey's
     quieter one. */
  --shadow-menu: 0 0 0 1px var(--rim), 0 6px 20px var(--soot-30);
  --shadow-menu-soft: 0 0 0 1px var(--rim), 0 6px 20px var(--soot-25);
  /* The buyer journey's page card, and the admin modal above everything. */
  --shadow-journey: 0 0 0 1px var(--rim),
    0 20px 35px -5px var(--soot-15), 0 12px 15px -4px var(--soot-12);
  --shadow-modal: 0 0 0 1px var(--rim), 0 20px 60px var(--soot-35);

  /* Legacy aliases (buttons were restyled to the accent system; these keep
     stray rules working until the sweep finishes). */
  --accent-btn: var(--accent);
  --btn-shadow: none;
  --btn-primary-bg: var(--accent);
  --btn-primary-fg: var(--on-accent);
  --fg: var(--text);
  --muted: var(--text-muted);
  --accent-fg: var(--on-accent);
  --nav-text: var(--text-muted);
}
/* Font smoothing is the other thing that is a per-scheme decision rather than
   a colour, so it is picked here beside the geometry. A light stroke on a
   dark ground blooms (irradiation), so the type renders about half a weight
   step heavier than authored — and this UI is weight-heavy (64 rules at 600,
   31 at 550, a tail up to 900), which is a large part of why a dense dark
   screen reads as muddy. Antialiased strokes give that half-step back. It is
   DARK ONLY: in light mode the same declaration thins text and makes it
   worse, so the light hook spends a declaration putting `auto` back rather
   than leaving the media query to win. */
@media (prefers-color-scheme: dark) {
  :root {
    --shadow-pop-far: 0 16px 40px var(--night-pop-far);
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --shadow-pop-far: 0 12px 32px var(--shade-pop-far);
  -moz-osx-font-smoothing: auto;
  -webkit-font-smoothing: auto;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --shadow-pop-far: 0 16px 40px var(--night-pop-far);
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

/* ---- The floor: browsers with no light-dark() ----
   Every token above is one light-dark() call, and a browser that doesn't know
   the function doesn't fall back per-scheme — it fails to parse, invalidating
   the custom property and dropping every consumer to its property's initial
   value. That is not a degraded theme, it is no theme: surfaces go
   transparent, borders vanish, and the admin sidebar's switcher panel lands
   unreadably on top of the nav behind it. light-dark() is Safari 17.5+ /
   Chrome 123+, so anyone older got exactly that (reported 2026-08-06).

   This is DELIBERATELY NOT a second palette. Duplicating all 41 tokens would
   reintroduce the light/dark block pair this file exists to abolish, and the
   copy would drift. It restores only what decides whether the admin can be
   READ and NAVIGATED — surfaces, edges, text, accent, and the status colours,
   because "this button is destructive" is meaning and not decoration. Anything
   omitted degrades to plain rather than to broken: shadows resolve to none
   (every level opens with var(--rim), so they are invalid here whatever we do)
   and the elevation is carried by the borders instead.

   Light values only — an old browser gets the reference theme, not the OS's
   choice, which is the honest trade for a fallback nobody will be looking at.
   TestLightDarkFallbackTracksTokens keeps the names in step with the block
   above. Everything here is plain colour or color-mix() (Safari 16.2+), so the
   effective floor this buys back is roughly Safari 16.2. */
@supports not (color: light-dark(#fff, #000)) {
  :root {
    --bg: var(--gray-50);
    --surface: var(--white);
    --surface-2: var(--gray-25);
    --shell-ground: var(--gray-75);

    --line: var(--gray-100);
    --line-strong: var(--gray-200);
    --field-line: var(--gray-150);
    --line-structural: var(--gray-100);
    /* Light's --rim is transparent, and it has to be DECLARED rather than left
       out: it is the first layer of every --shadow*, so an invalid --rim takes
       the whole ladder with it even in a browser that could paint the rest. */
    --rim: transparent;

    --text: var(--ink);
    --text-muted: var(--gray-500);
    --text-faint: var(--gray-450);

    --accent: var(--cornflower-600);
    --accent-strong: var(--cornflower-700);
    --accent-ink: var(--cornflower-700);
    --on-accent: var(--white);
    --accent-weak: color-mix(in srgb, var(--accent) 9%, transparent);
    --accent-weak-2: color-mix(in srgb, var(--accent) 16%, transparent);

    --ok: var(--emerald-600);
    --ok-weak: color-mix(in srgb, var(--ok) 11%, transparent);
    --warn: var(--amber-500);
    --warn-ink: var(--amber-700);
    --warn-weak: color-mix(in srgb, var(--warn) 13%, transparent);
    --danger: var(--rose-600);
    --danger-weak: color-mix(in srgb, var(--danger) 10%, transparent);
    --danger-badge: color-mix(in srgb, var(--danger) 16%, transparent);
    --neutral-pill: var(--gray-500);
  }
}

/* The escape hatch for anyone who finds our borders too quiet — and dark
   mode is where it earns its keep, because that is where every one of these
   sits below the 3:1 non-text floor at rest.
   Re-pointed at the TOKENS, so no component needs a rule of its own; the
   values clear 3:1 against every surface they can land on (--bg, --surface,
   --surface-2) in both themes. The hierarchy above survives: the shell edge
   stays a step clear of the borders inside it.
   These are re-declared with light-dark() rather than as a dark-only block
   because color-scheme is already pinned on :root, so one declaration still
   serves both themes — the same reason every token above is authored once.
   Component-level contrast rules (qty.css) still stand on their own. */
@media (prefers-contrast: more) {
  :root {
    --line: light-dark(var(--gray-450), var(--slate-450));
    --line-strong: light-dark(var(--gray-450), var(--slate-450));
    --field-line: light-dark(var(--gray-450), var(--slate-450));
    --line-structural: light-dark(var(--gray-500), var(--slate-400));
  }
}

/* shared/type_scale.css */
/* type_scale.css — the one type scale (rem): .75 .8125 .875 1 1.125 1.375 2
   2.75. Steps are named by weight, never by use, so a component asks for a
   step rather than inventing a number. */
:root {
  --fs-3xs: .75rem;
  --fs-2xs: .8125rem;
  --fs-xs: .875rem;
  --fs-s: 1rem;
  --fs-m: 1.125rem;
  --fs-l: 1.375rem;
  --fs-xl: 2rem;
  --fs-2xl: 2.75rem;
}

/* shared/reset.css */
* { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Dragging over text fell to the browser default, which is a heavy opaque
   blue that swallows dark-mode text. Ours is the accent at a tint that
   reads as a highlight over both themes, with the ink left alone so text
   keeps whatever colour it already had (and whatever contrast it was
   authored for) instead of being forced to one selection foreground.
   Authored once, in both bundles — the standalone event page is its own
   bundle on the account's --custom-* palette and has no --accent to spend. */
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

/* shared/page.css */
body { background: var(--bg); color: var(--fg); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  margin: 0; }
main { margin: 0 auto; max-width: 620px; padding: 2.5rem 1.25rem 4rem; }

/* shared/typography.css */
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 .35rem; }
h2 { font-size: 1.1rem; margin: 2rem 0 .75rem; }
p { margin: .5rem 0; }
a { color: var(--accent); }
.muted { color: var(--muted); }

/* shared/meta_icon.css */
.meta-icon { fill: currentColor; height: 1em; vertical-align: -.125em; width: 1.125em; }

/* shared/row.css */
.rows { border-top: 1px solid var(--line); margin-top: 1.25rem; }
.row { align-items: center; border-bottom: 1px solid var(--line); display: flex;
  gap: 1rem; padding: .8rem 0; }
.row .grow { flex: 1; }
/* A label used as a row's main text (the order-edit quantity rows) reads as
   body text, not as the small muted form label. */
.row > label.grow { color: inherit; font-size: inherit; margin: 0; }

/* shared/page_header.css */
.page-header { align-items: baseline; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-bottom: .35rem; }
.page-header h1 { margin-bottom: 0; }
.page-sub { margin-top: 0; }

/* shared/price.css */
.price { font-variant-numeric: tabular-nums; }

/* shared/input_number.css */
input[type=number] { background: transparent; border: 1px solid var(--line); border-radius: 6px;
  color: inherit; font: inherit; padding: .4rem .5rem; width: 4.5rem; }

/* shared/button.css */
/* Buttons (workshop reference): quiet neutral default — surface fill,
   line-strong hairline, no shadow; the primary is the one cornflower fill,
   with --on-accent text so it clears AA in both themes. */
button, a.button { align-items: center; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 7px; color: var(--text);
  cursor: pointer; display: inline-flex; font: inherit; font-size: .8125rem;
  font-weight: 550; gap: .35rem; line-height: 1.4; margin-top: 1.25rem;
  padding: .38rem .8rem; text-decoration: none; transition: border-color .12s, background .1s, transform .05s; }
button:hover, a.button:hover { border-color: var(--text-faint); }
button:active, a.button:active { transform: translateY(.5px); }
button:disabled { cursor: default; opacity: .5; }

/* shared/ref_mono.css */
.ticket, body.buyer-journey .share-link a { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .95rem; }

/* shared/status_text.css */
.ok { color: var(--ok-ink); font-weight: 600; }

/* shared/pill.css */
.pill { border: 1px solid var(--line); border-radius: 99px; color: var(--muted);
  display: inline-block; font-size: .8rem; padding: .1rem .55rem; text-decoration: none;
  white-space: nowrap; }

/* shared/qty.css */
.qty { align-items: center; display: flex; gap: .35rem; }
/* The input matches the step buttons' 2rem height — a taller box between
   two smaller squares reads as broken, not as a control. The selector
   out-specifies the journey-wide input padding (0,1,2): WebKit refuses to
   shrink an input below its padding box, so the padding must actually be
   0 here, not merely overridden on height. */
.qty input[type=number],
body.buyer-journey form:not([data-checkout]) .qty input[type=number] { box-sizing: border-box; height: 2rem; margin: 0; padding: 0 .3rem; text-align: center; }
/* touch-action: manipulation — rapid +/- taps must never read as a
   double-tap-to-zoom gesture; manipulation keeps pinch-zoom intact. */
button.step { align-items: center; border-radius: 8px; box-sizing: border-box; display: inline-flex; flex: none;
  height: 2rem; justify-content: center; line-height: 1; font-size: 1.1rem;
  margin: 0; padding: 0; touch-action: manipulation; width: 2rem; }
button.step:disabled { cursor: default; filter: none; opacity: .35; }
/* A quiet round wash, matching the event page's — it was wearing the accent
   fill and competing with the page's actual primary action. No outline: the
   fill is the affordance, and a ring around every ± made the row read as a
   toolbar. Same bargain as the fields — the boundary appears only when the
   reader has asked their OS for more contrast. */
body.buyer-journey button.step { background: color-mix(in srgb, var(--fg) 6%, var(--journey-card));
  border: 0; border-radius: 999px; color: var(--fg); font-weight: 400; }
@media (prefers-contrast: more) {
  body.buyer-journey button.step { border: 1px solid var(--control-line); }
}
input.stepped { appearance: textfield; -moz-appearance: textfield; text-align: center; }
input.stepped::-webkit-outer-spin-button, input.stepped::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0; }

/* shared/button_busy.css */
button.busy { color: transparent; pointer-events: none; position: relative; }
button.busy::after { animation: spin .6s linear infinite; border: 2px solid var(--text-muted); border-top-color: transparent; border-radius: 50%;
  content: ""; height: 1em; inset: 0;
  margin: auto; position: absolute;
  width: 1em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* shared/button_variants.css */
button.primary, a.button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
button.primary:hover, a.button.primary:hover { border-color: var(--accent); filter: brightness(1.07); }
/* Destructive buttons darken the danger token so white text clears AA in both
   themes (the light --danger is a text tone, too light for a solid fill). */
button.danger, a.button.danger { background: color-mix(in srgb, var(--danger), #000 28%); border-color: transparent; color: #fff; }
button.danger:hover, a.button.danger:hover { background: color-mix(in srgb, var(--danger), #000 34%); }
button.subtle, a.button.subtle { background: transparent; border-color: var(--line-strong); color: var(--text); }
button.subtle:hover, a.button.subtle:hover { background: var(--surface-2); color: var(--text); }
button.ghost, a.button.ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
button.ghost:hover, a.button.ghost:hover { background: var(--accent-weak); color: var(--text); }
.pill.danger, a.danger { color: var(--danger-ink); }
.pill.primary { background: var(--accent-btn); border-color: var(--accent-btn); color: var(--on-accent); }

/* shared/form_fields.css */
input[type=text], input[type=email], input[type=password], input[type=search],
input[type=date], input[type=time], input[type=datetime-local], input[type=url], input[type=tel],
textarea, select { background: transparent;
  border: 1px solid var(--line); border-radius: 6px; color: inherit;
  font: inherit; padding: .45rem .6rem; }
textarea { min-height: 9rem; resize: vertical; width: 100%; }
/* File pickers wear the same frame as every other field, with the native
   browse control restyled as a small ghost button. */
input[type=file] { background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  color: inherit; font: inherit; padding: .45rem .6rem; width: 100%; }
input[type=file]::file-selector-button { background: transparent; border: 1px solid var(--line-strong);
  border-radius: 6px; color: inherit; cursor: pointer; font: inherit; margin-right: .7rem; padding: .2rem .7rem; }
input[type=file]::file-selector-button:hover { border-color: var(--accent); }

/* shared/select.css */
/* Native <select> matches our inputs: no OS double-arrow, a --text-muted
   chevron, a --surface fill so it never reads transparent-on-canvas. Focus
   ring comes from the shared :focus-visible. This styling alone (zero JS)
   fixes the ugly native arrow; searchable-select.js layers a typeahead on
   top. A [multiple] select keeps its native list box. The chevron ships as
   two data-URIs (light/dark), swapped on the theme so it stays legible in
   both; the combobox input (.ss-input) borrows the same look. */
select:not([multiple]), .ss-combo > .ss-input {
  background-color: var(--surface); background-repeat: no-repeat;
  background-position: right .6rem center; background-size: .8rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398a2b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  padding-right: 2rem; }
@media (prefers-color-scheme: light) { select:not([multiple]), .ss-combo > .ss-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6579' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); } }
:root[data-theme="dark"] select:not([multiple]), :root[data-theme="dark"] .ss-combo > .ss-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398a2b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
:root[data-theme="light"] select:not([multiple]), :root[data-theme="light"] .ss-combo > .ss-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6579' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
select:not([multiple]) { appearance: none; -webkit-appearance: none; -moz-appearance: none; cursor: pointer; }

/* shared/label.css */
label { color: var(--muted); display: block; font-size: .85rem; margin: .8rem 0 .2rem; }

/* shared/summary_disclosure.css */
details[data-summary] { margin-top: .25rem; }
details[data-summary] summary { align-items: center; border-bottom: 1px solid var(--line); cursor: pointer;
  display: flex; font-weight: 600; gap: .6rem; list-style: none;
  padding: .8rem 0; }
details[data-summary] summary::-webkit-details-marker { display: none; }
details[data-summary] summary::before { color: var(--muted); content: "▸";
  font-size: .8em; transition: transform .15s; }
details[data-summary][open] summary::before { transform: rotate(90deg); }
details[data-summary] [data-breakdown] .row { color: var(--muted); }

/* shared/caret.css */
/* caret — the shared FA disclosure marker (replaces the old "▾"/"▸" glyphs
   everywhere, Vicky 2026-07-23). Rotates with its details.

   Lifted out of admin/list_dropdown.css and into shared/ on 2026-08-03: the
   name field is a buyer-journey component that needs the same marker the
   admin menus use, and a component in shared/ cannot depend on a rule that
   only ships in the admin bundle. Nothing about the rule changed. */
.caret { align-items: center; color: var(--text-faint); display: inline-flex; font-size: .8em; margin-left: .3rem; transition: transform .15s; }
.caret svg, .caret i { display: block; }
details[open] > summary > .caret { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
  .caret { transition: none; }
}

/* shared/name_field.css */
.name-row { display: grid; gap: .8rem; grid-template-columns: 1fr 1fr; }
/* The ultimate name field. The input is the field; the reading unit beneath
   it annotates how the name will be read — one labelled line per detected
   part, hairline-ruled like a footnote. Where the split was a guess the row
   it doubts carries the runner-up inline, one tap away. The correction
   itself lives one step down behind the house ▸ disclosure (same bones as
   details[data-summary], sized as supporting text). */
.namefield-read { font-size: var(--bj-support, .85rem); margin: .45rem 0 0; max-width: 30rem; }
/* Author display rules outrank the UA's [hidden] — restate it. */
.namefield-read[hidden], .namefield-details > summary[hidden], .namefield-words[hidden] { display: none; }
/* Baseline, not start: the row carrying the one-tap offer is a little
   taller than the others, and top-aligning left its label floating above
   its own value. */
.namefield-read dl { align-items: baseline; border-left: 2px solid var(--hairline, var(--line)); display: grid; gap: .1rem 1rem; grid-template-columns: max-content 1fr; margin: 0; padding: .15rem 0 .15rem .75rem; }
.namefield-read dt { color: var(--muted, var(--text-muted)); font-weight: 400; }
.namefield-read dd { margin: 0; }

/* The one-tap alternative: quiet enough to ignore, plainly an offer. Dashed
   underline so it reads as "or this?" rather than as the current value. */
/* Dashed UNDERLINE, not a border: a border-bottom gives the button a taller
   box, which made the one row carrying an offer sit lower than its
   neighbours in the reading. text-decoration costs no height. */
button.namefield-alt, body.buyer-journey button.namefield-alt {
  background: none; border: 0; border-radius: 3px; box-shadow: none;
  color: var(--journey-link, var(--accent)); cursor: pointer; display: inline; font: inherit; line-height: inherit;
  margin: 0 0 0 .5rem; min-height: 0; padding: 0; text-decoration: underline dashed;
  text-decoration-color: color-mix(in srgb, var(--journey-link, var(--accent)) 55%, transparent);
  text-underline-offset: .25em; width: auto; }
button.namefield-alt:hover, body.buyer-journey button.namefield-alt:hover {
  background: var(--accent-weak, rgba(37,99,235,.09)); text-decoration-color: var(--journey-link, var(--accent)); }
.namefield-applied { align-items: center; color: var(--ok-ink); display: inline-flex; gap: .25rem; margin-inline-start: .5rem; }

/* Anchored under the rows it changes, and it says what it opens — an
   unlabelled pencil floating off to the right did neither (Vicky, 2026-08-03). */
button.namefield-edit, body.buyer-journey button.namefield-edit {
  align-items: center; background: none; border: 0; border-radius: 5px; box-shadow: none;
  color: var(--journey-link, var(--accent)); cursor: pointer; display: inline-flex; font: inherit;
  font-size: var(--bj-support, .85rem); gap: .4rem; line-height: 1.4; margin: .45rem 0 0 .85rem;
  min-height: 0; padding: .15rem .25rem .15rem 0; text-decoration: underline;
  text-underline-offset: .15em; width: auto; }
button.namefield-edit:hover, body.buyer-journey button.namefield-edit:hover {
  background: var(--accent-weak, rgba(37,99,235,.09)); }
.namefield-edit svg { flex: none; }
.namefield-live { block-size: 1px; clip-path: inset(50%); inline-size: 1px; overflow: hidden; position: absolute; }

.namefield-details { margin: .45rem 0 0; }
/* The disclosure marker is the house .caret (shared/caret.css) — the same
   one the admin menus use — not a text glyph (Vicky, 2026-08-03). */
.namefield-details > summary, .namefield-all > summary { align-items: center; color: var(--muted, var(--text-muted)); cursor: pointer; display: flex; font-size: var(--bj-support, .85rem); list-style: none; width: fit-content; }
.namefield-details > summary::-webkit-details-marker, .namefield-all > summary::-webkit-details-marker { display: none; }
.namefield-details[open] > summary, .namefield-all[open] > summary { margin-bottom: .35rem; }
/* "View all name fields" is the way further down, not the next thing to
   read: it sits at the right edge, out of the reading order the words and
   the reading above it establish (Vicky, 2026-08-03). */
.namefield-all > summary { margin-left: auto; }
/* A tighter, deliberate rhythm inside the BUYER field. The page-wide label
   margin is set for standalone form rows; stacked two-up rows inside a
   disclosure read as drifting apart at that spacing (Vicky, 2026-08-03).
   The admin variant keeps the house rhythm — it IS a standalone form. */
.namefield-details .name-row label { margin-top: 0; }
.namefield-details .name-row + .name-row { margin-top: .55rem; }

/* Admin: six fields in a form, so they breathe like the rest of one. The
   pairs sit closer to each other than to the field above and below, so a
   row reads as one thing rather than two loose columns. */
.namefield-plain .name-row { gap: 1.1rem 1rem; }
.namefield-plain .name-row + .name-row { margin-top: 1.1rem; }
.namefield-plain .name-row label { margin-top: 0; margin-bottom: .3rem; }
.namefield-plain { margin-bottom: 1.4rem; }
.namefield-all { border-top: 1px solid var(--hairline, var(--line)); margin-top: .8rem; padding-top: .7rem; }
/* Only once the fields are actually showing: a rule between them and
   whatever the form asks for next, so the name stops being one continuous
   run of inputs with the email. */
.namefield-all[open] { border-bottom: 1px solid var(--hairline, var(--line)); padding-bottom: 1rem; }

/* Tap the words that make up the last name. Word chips are deliberately
   NOT buttons-sized — hairline outline, supporting-text weight — because a
   row of big buttons reads as the primary action of the page rather than a
   quiet correction. Still ≥1.5rem tall, for WCAG 2.2 target size. */
.namefield-words { margin: .1rem 0 .2rem; }
.namefield-taphint { color: var(--muted, var(--text-muted)); font-size: var(--bj-support, .85rem); margin: 0 0 .45rem; }
.namefield-wordrow { display: flex; flex-wrap: wrap; gap: .35rem; }
button.namefield-word, body.buyer-journey button.namefield-word {
  align-items: center; background: transparent; border: 1px solid var(--hairline, var(--line));
  border-radius: 7px; box-shadow: none; color: var(--fg, var(--text)); cursor: pointer; display: inline-flex;
  font: inherit; font-size: var(--bj-support, .85rem); gap: .3rem; margin: 0; min-height: 1.75rem;
  padding: .15rem .55rem .15rem .4rem; transition: background .13s, border-color .13s, color .13s; width: auto; }
button.namefield-word:hover, body.buyer-journey button.namefield-word:hover {
  border-color: var(--control-line, var(--line-strong)); }
button.namefield-word[aria-pressed="true"], body.buyer-journey button.namefield-word[aria-pressed="true"] {
  background: var(--accent-weak, rgba(37,99,235,.09)); border-color: color-mix(in srgb, var(--journey-link, var(--accent)) 32%, transparent);
  color: var(--accent-ink, var(--journey-link, var(--accent))); font-weight: 550; }
/* Every chip carries a mark: a faint cross when the word is not part of the
   last name, the accent tick when it is. Blank space on one side read as an
   alignment bug rather than a state (Vicky, 2026-08-03), and rendering both
   at the same size keeps the row from shifting under the finger.  */
.namefield-tick { display: inline-flex; line-height: 0; transition: color .12s; }
.namefield-tick.is-off { color: var(--muted, var(--text-muted)); opacity: .5; }
.namefield-tick.is-on { color: var(--journey-link, var(--accent)); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .namefield-tick, button.namefield-word { transition: none; }
}

/* shared/phone_field.css */
/* A phone answer is two controls, one question: the country (its calling
   code) and the national number share a row. The select stays as narrow as
   its chosen option; the number input takes the room — it's the part being
   typed. min-width:0 lets both shrink inside narrow columns instead of
   overflowing them. */
.field-phone { display: flex; gap: .5rem; }
.field-phone select { flex: 0 1 auto; min-width: 0; max-width: 45%; }
.field-phone input { flex: 1 1 auto; min-width: 0; }

/* shared/footer.css */
footer { color: var(--muted); display: flex; font-size: .8rem; gap: 1rem; margin-top: 3rem; }

/* shared/detail_list.css */
.detail-list { display: grid; gap: .35rem 1.5rem; grid-template-columns: max-content 1fr; margin: 1.5rem 0; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; }

.detail-list { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; gap: 0; margin: 1rem 0; padding: 0 1rem; }
/* Inside a .box the card chrome comes from the box — a bordered detail-list
   there reads as a double frame. */
.box > .detail-list { background: transparent; border: 0; border-radius: 0; margin: 0; padding: 0; }
/* Same reasoning under a card — and there the list is joined to the bar above
   it, so it keeps the bar's own horizontal padding rather than losing it. */
.card > .detail-list { background: transparent; border: 0; border-radius: 0; margin: 0; padding: 0 .85rem; }
.detail-list dt, .detail-list dd { border-top: 1px solid var(--line); padding: .6rem 0; }
.detail-list dd { padding-left: 1.5rem; }
.detail-list dt:first-of-type, .detail-list dd:first-of-type { border-top: 0; }
.detail-list dd { font-weight: 500; text-align: right; }

/* A ledger walks one figure down to another, so two rows need a rank the flat
   list doesn't have. `.sub` comes OFF the figure above it — indented, and its
   <small> names what it was. `.rule` is what the rows above it add up to:
   the heavier hairline is the line you'd draw with a pen. */
.detail-list dt.sub { padding-left: 1.1rem; }
.detail-list dt small { color: var(--text-muted); display: block; font-size: 12px; font-weight: 400; }
.detail-list dt.rule { color: var(--text); font-weight: 600; }
.detail-list dt.rule, .detail-list dt.rule + dd { border-top-color: var(--line-strong); font-weight: 600; }

/* focus mode — edit/create views get modal manners without a modal: the
   save footer pins to the bottom of the scroll. The column keeps the
   standard width, so show ↔ edit never jumps. All CSS; a normal form POST
   underneath. (The sidebar used to fade here too — dropped, it read as a
   rendering glitch.) */

/* shared/sr_only.css */
.sr-only { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

/* shared/callout.css */
/* Callouts & alerts (from #69, re-toned to our palette). An in-flow block that
   draws the eye without stealing it: info (our blue, default), success (green),
   warning (amber), danger (red) — all our tokens, quiet tints in the same
   family as .notice. One callout vocabulary, three sizes: .notice is the
   one-line "Saved." confirmation chip, .form-error the inline field-validation
   line, <callout> the block-level alert with an icon + optional <strong> title
   + body. A danger callout reporting a live problem gets role="alert" in the
   markup; colour is never the only signal — the text (and icon) carry it too
   (WCAG 2.2 AA).
   Icon alignment (the fix over #69): the row is top-aligned and .co-ic is a
   line-box the height of the content's FIRST line with the SVG centered in it,
   so the icon's optical centre lands ON the first text line — level with the
   title when there is one, with the body line when there isn't — never floating
   centered over the whole block. */
callout { align-items: flex-start; background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line)); border-radius: 11px;
  display: flex; gap: .6rem; margin: 1rem 0; padding: .85rem 1rem; }
callout > .co-ic { align-items: center; color: var(--accent); display: inline-flex; flex: none;
  height: 1.5rem; justify-content: center; width: 1.25rem; } /* height = first-line line-height */
callout > .co-ic svg { display: block; height: 1.25rem; width: 1.25rem; }
callout > .co-body { line-height: 1.5; min-width: 0; }
callout > .co-body > strong { display: block; font-weight: 600; }
callout > .co-body > p { color: var(--muted); margin: .15rem 0 0; }
callout > .co-body > p:only-child { color: inherit; margin: 0; }
/* A callout body may carry a short list (e.g. CSV rows to fix) — same
   register as its paragraphs: muted, tight. */
callout > .co-body > ul { color: var(--muted); margin: .15rem 0 0; padding-left: 1.1rem; }
callout > .co-body > ul > li { margin: .15rem 0; }
callout[tone=success] { background: color-mix(in srgb, var(--ok) 10%, var(--bg)); border-color: color-mix(in srgb, var(--ok) 34%, var(--line)); }
callout[tone=success] > .co-ic { color: var(--ok-ink); }
callout[tone=warning] { background: color-mix(in srgb, var(--warn) 13%, var(--bg)); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
callout[tone=warning] > .co-ic { color: var(--warn-ink); }
callout[tone=danger] { background: color-mix(in srgb, var(--danger) 9%, var(--bg)); border-color: color-mix(in srgb, var(--danger) 34%, var(--line)); }
callout[tone=danger] > .co-ic { color: var(--danger-ink); }
/* A link inside the danger callout takes the tone's INK, for the same reason
   the icon above it does: --accent on this tint measures 4.37 in light, which
   is under AA for body text, and the link is part of the danger message
   rather than a stray blue thing sitting in it. Measured 6.2 after. Only
   danger has one today (the Workflows list's "See what happened"); the other
   two tones get the same rule when they earn it, not before. */
callout[tone=danger] > .co-body a { color: var(--danger-ink); }
/* ...and the default (info) tone has now earned it, which is why the note
   above says "not before" rather than "never". The events list's series
   invitation is the first link in an untoned callout, and --accent on the
   8% accent tint measures 4.40 in light — the same near-miss, from the same
   cause (CLAUDE.md's rule: text on a tint is always --accent-ink). Measured
   5.68 light / 9.00 dark after. Success and warning still have no body link. */
callout:not([tone]) > .co-body a { color: var(--accent-ink); }

/* shared/form_extras.css */
.full { width: 100%; }
input.short { width: 6.5rem; }

/* shared/money_input.css */
/* money-input: a price box with its currency pinned in a leading cell — an
   amount in it always reads as flat money, never a percentage. The house
   pattern for every admin price/amount input (money-field partial). The
   ring treats the whole control as one field, like the screenshot pattern. */
.money-input { border: 1px solid var(--line); border-radius: 6px; display: inline-flex; }
.money-input > .cur { align-items: center; background: var(--surface-2); border-right: 1px solid var(--line); border-radius: 5px 0 0 5px; color: var(--text-muted); display: flex; padding: 0 .6rem; }
.money-input > input { border: 0; width: 6.5rem; }
.money-input:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.money-input > input:focus-visible { outline: none; }
input.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; width: 11ch; }

/* shared/path_input.css */
/* path-input: a web-address box with the part the organizer doesn't type
   pinned in a leading cell — the series an event sits under (event_path.go).
   Deliberately the money-input pattern, borrowed rather than reinvented: the
   ring treats the whole control as one field, and the cell is quiet enough to
   read as context rather than as a second input. */
.path-input { border: 1px solid var(--line); border-radius: 6px; display: flex; width: 100%; }
.path-input > .pre { align-items: center; background: var(--surface-2); border-radius: 5px 0 0 5px; border-right: 1px solid var(--line); color: var(--text-muted); display: flex; padding: 0 .6rem; white-space: nowrap; }
.path-input > .pre[hidden] { display: none; }
.path-input > input { border: 0; flex: 1; min-width: 0; }
.path-input:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.path-input > input:focus-visible { outline: none; }

/* shared/check_label.css */
label.check { align-items: center; color: inherit; display: flex; font-size: 1rem; gap: .45rem; margin: .8rem 0 .2rem; }
/* field-desc: an organizer's explainer under a custom-field question —
   quieter than the label, tight to the control it introduces. Inside a
   check label it stacks under the question text, so the label, description
   and box are one hit area (the label wraps the input). */
.field-desc { color: var(--muted); display: block; font-size: .8rem; font-weight: 400; }
/* A checkbox QUESTION is a form field, not an action row — its title
   matches the sibling field labels, not the 1rem check voice. */
label.check.check-field { color: var(--muted); font-size: .85rem; }
p.field-desc { margin: -.1rem 0 .3rem; }
label .field-desc { margin: .15rem 0 0; }
label.check:has(.field-desc) { align-items: flex-start; }
label.check:has(.field-desc) > input { margin-top: .3rem; }
/* Inside the 13.5px admin shell a 1rem check label towers over body text. */
app-shell label.check { font-size: inherit; }
/* Form voice, admin: a label is a question — text-coloured and clearly
   heavier than its hint, tight to its own control (.3rem) with the breathing
   room above (1.15rem), so each field reads as one unit and the gap between
   fields is unmistakably bigger than the gap inside one. Check/switch rows
   and toggle-block heads carry values, not questions — they stay quiet. */

/* shared/form_actions.css */
/* Save sits bottom-right everywhere (Vicky, 2026-07-23): actions right-align
   and the escape hatch (Cancel, an <a>) orders before the primary. */
.form-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .9rem; justify-content: flex-end; margin-top: 1.75rem; }
.form-actions button, .form-actions a.button { margin-top: 0; }
.form-actions > a { order: -1; }

/* shared/matrix_wrap.css */
/* .matrix-wrap is for tables that are genuinely WIDER than the box they sit
   in: the Team tab's capability matrix on phones, the CSV sample preview (one
   column per CSV column, so it scales with the file), and the API key list,
   which wants ~649px inside the 614px settings panel on a 1280px desktop.
   They scroll inside their own container, never the page.

   It is NOT a wrapper to reach for by default, because a scroll container on
   one axis is a scroll container on BOTH: per CSS Overflow 3, overflow-x:auto
   forces a visible overflow-y to compute to auto. So a .matrix-wrap clips
   anything a child paints outside its box — an open dropdown, a popover —
   at every viewport, not just the phone width the scroll was written for.
   A table of form controls gets .flow-table instead: the same block box (so
   margins collapse the same way and spacing is unchanged) with no clipping. */
.matrix-wrap { overflow-x: auto; }
.flow-table { display: flow-root; }
.num { font-variant-numeric: tabular-nums; text-align: right; }

/* shared/blank_art.css */
/* blank-art — the section's menu icon over a soft blob. Every colour is a
   theme token, so light and dark come free (no per-theme SVG variants). */
.blank-art { display: block; height: 132px; margin: 0 auto 1rem; position: relative; width: 165px; }
.blank-art .blob { display: block; height: 100%; width: 100%; }
.blank-art .blob .b1 { fill: var(--accent-weak); }
.blank-art .blob .b2 { fill: var(--accent-weak-2); }
.blank-art > svg:last-child { color: var(--accent); height: 52px; inset: 0; margin: auto; position: absolute; width: 52px; }
/* The art breathes — the top blob swells on a slow loop and the dots drift,
   so an empty section reads as dormant rather than dead. The offset blob
   copy keeps its SVG attribute transform (a CSS transform would clobber
   it), so only the top copy and the dots move. */
.blank-art .blob path.b1:last-of-type { animation: blob-breathe 7s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.blank-art .blob .b2 { animation: dot-drift 5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.blank-art .blob circle.b2:nth-of-type(2) { animation-delay: -2s; animation-duration: 6.5s; }
.blank-art .blob circle.b2:nth-of-type(3) { animation-delay: -3.5s; animation-duration: 4.5s; }
.blank-art > svg:last-child { animation: icon-bob 7s ease-in-out infinite alternate; }
@keyframes blob-breathe { to { transform: scale(1.1) rotate(-4deg); } }
@keyframes dot-drift { to { transform: translate(2px, -8px); } }
@keyframes icon-bob { to { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .blank-art .blob path.b1:last-of-type, .blank-art .blob .b2, .blank-art > svg:last-child { animation: none; } }

/* shared/box.css */
/* ---- Design-system component vocabulary (docs/design-system.md §Component
   vocabulary). Structural components (box, toolbar, overlay, accordion,
   master-detail, app-shell) are classes/elements; leaf components (field*,
   status-pill, badge, pagination, page-header, empty-state, page-loader) are
   partials in admin_partials.html. All use the semantic tokens. */

/* box — the universal container. A screen is a stack of "section header + card":
   the .box-head sits ABOVE its .box (a sibling just before it), so the card holds
   only its own content. */
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  margin: 1rem 0; padding: 1.1rem 1.25rem; }
.box > :first-child { margin-top: 0; }
.box > :last-child { margin-bottom: 0; }
/* box-head — a standalone section header above a card: title (fs-m) + optional
   right-aligned action on one baseline-aligned row. The larger top margin sets
   the vertical rhythm between stacked sections; the smaller bottom margin is the
   gap down to this section's own card, which sits flush beneath it. A box-head
   that opens its container (first child, e.g. a dash-card) needs no top margin. */
.box-head { align-items: baseline; display: flex; gap: 1rem; justify-content: space-between;
  margin: 1.5rem 0 .5rem; }
.box-head:first-child { margin-top: 0; }
.box-head + .box { margin-top: 0; }
.box-head h2 { font-size: var(--fs-m); margin: 0; }
/* A box-head's action is a real (compact) button — a .pill there reads as a
   status chip, not a way in (Vicky, 2026-07-23). Quiet "All X →" nav links
   stay pills. */
.box-head a.button { font-size: 12.5px; margin-top: 0; padding: .22rem .65rem; }
.box-foot { border-top: 1px solid var(--line); color: var(--text-muted); margin-top: 1rem; padding-top: .75rem; }

/* list-row — a standalone (outside master-detail) row: swatch/dot, primary
   text, meta, right value/pill; selected = accent-weak fill + accent left bar
   (no full outline ring). */

/* shared/badge.css */
/* badge — small, uppercase, tabular: LIVE, Test mode, Secret, Sold out. */
.badge { border: 1px solid var(--line); border-radius: 5px; color: var(--text-muted);
  display: inline-block; font-size: var(--fs-3xs); font-variant-numeric: tabular-nums;
  font-weight: 700; letter-spacing: .04em; padding: .05rem .4rem; text-transform: uppercase; white-space: nowrap; }
.badge-live { background: color-mix(in srgb, var(--ok) 16%, transparent); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); color: var(--ok-ink); }
.badge-test { background: color-mix(in srgb, var(--warn) 16%, transparent); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); color: var(--warn-ink); }
.badge-secret { color: var(--neutral-pill); }
.badge-soldout { background: var(--danger-badge); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); color: var(--danger-ink); }

/* shared/notice.css */
/* ---- Admin standard vocabulary ----
   The CSS half of admin_partials.html: one way to say back-nav, notice,
   error, form row, confirm actions, table. Alphabetical-ish by concern. */
.back-nav { margin: 0 0 .75rem; }
.back-nav a { color: var(--muted); text-decoration: none; }
.back-nav a:hover { color: inherit; text-decoration: underline; }
.notice { background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 8px; display: inline-block; padding: .45rem .9rem; }
.form-error { color: var(--danger-ink); font-weight: 600; }

/* shared/email_check.css */
/* email-check.js: an inline spinner on the input itself (on-blur check is
   quiet by design — no button, no busy state) plus a note below for the
   verdict. Reuses --danger, which is already themed per light/dark, so no
   separate dark-mode override is needed here. */
.email-check-note { font-size: .875rem; margin: .25rem 0 0; }
.email-check-note.err { color: var(--danger-ink); }
.email-check-note button { font: inherit; }
input.email-checking { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6' fill='none' stroke='%23888' stroke-width='2' stroke-dasharray='28' stroke-dashoffset='10'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 8 8' to='360 8 8' dur='0.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") right 8px center / 16px no-repeat; }

/* public/journey_text.css */
body.buyer-journey li ticket-row label.grow,
body.buyer-journey .row label.grow, body.buyer-journey ticket-row label.grow,
body.buyer-journey .row label, body.buyer-journey ticket-row label,
body.buyer-journey :where(li, .row, ticket-row) :where(.grow > strong, .grow > span:first-child) {
  color: var(--fg); font-size: var(--bj-body); font-weight: 500; margin-bottom: 0; }

/* public/public_brand.css */
.public-brand { font-weight: 700; margin-bottom: 2rem; }
.public-brand a { color: inherit; text-decoration: none; }

/* public/journey_tokens.css */
/* ---- Sponsor portal (portal.html) ----
   The sponsor's window front: precision minimalism. Hairlines, not borders;
   the allocation number is the one loud thing; everything else whispers.
   All colour derives from the organizer palette (--p-accent = link colour),
   so it themes per account and per scheme. */
body.buyer-journey { --p-accent: var(--journey-link, var(--accent));
  /* A divider is a fraction of a field outline, never its equal: at the same
     weight the page reads as a grid of boxes instead of a hierarchy. Derived
     from --control-line so the two can never drift apart. */
  --hairline: color-mix(in srgb, var(--control-line) 65%, var(--journey-card));
  /* A CONTROL's boundary is not decoration: WCAG 1.4.11 wants 3:1, which the
     organizer's own --line (a decorative hairline colour) never reaches.
     Computed in Go (eventDesign.ControlLine) as the LIGHTEST blend that still
     clears it against this card — a flat percentage was far too heavy on a
     near-black palette and barely enough on a mid-tone one. */
  /* Stripe's move, and the reason the line can be this quiet: depth carries
     as much of the "this is a field" signal as the border does. */
  --control-shadow: 0 1px 1px color-mix(in srgb, var(--fg) 5%, transparent),
    0 2px 5px -2px color-mix(in srgb, var(--fg) 7%, transparent);
  /* The journey's type scale. Three sizes of prose and nothing else: body,
     the supporting line under it, and the micro-caps eyebrow. Everything that
     does the same job uses the same token — that is the whole system. */
  --bj-body: 1rem; --bj-support: .875rem; --bj-micro: .75rem;
  --bj-h1: 1.6rem; --bj-h2: 1.125rem; --bj-h3: 1rem;
  /* The one number or name a page is about: an amount due, an order
     total, the holder on a ticket. One size, one weight, everywhere. */
  --bj-display: 1.35rem; --bj-display-weight: 640; --bj-display-ink: var(--journey-heading, var(--fg));
  /* Hierarchy comes from space first and rules second. */
  --bj-section: 2.25rem; --bj-after-heading: .75rem; }

/* public/journey_headings.css */
/* Headings own the space above them and give the copy below room to breathe.
   Before this the journey leaned on hairlines to separate sections, which put
   a rule the same weight as a field outline between every block. */
body.buyer-journey :where(h1, h2, h3) { margin-block: var(--bj-section) var(--bj-after-heading); }
body.buyer-journey > main > :first-child, body.buyer-journey :where(h1, h2, h3):first-child { margin-block-start: 0; }
body.buyer-journey h1 { font-size: var(--bj-h1); line-height: 1.2; }
body.buyer-journey h2 { font-size: var(--bj-h2); }
body.buyer-journey h3 { font-size: var(--bj-h3); }

/* public/journey_support.css */
/* One supporting-text recipe. An add-on's description, a bundle note, a field
   hint and a ticket's meta line are the same job and now read the same. */
body.buyer-journey :where(.field-desc, .addon-desc, .tk-meta, .hint, .bj-support),
body.buyer-journey :where(li, .row, ticket-row, .change-row, .tkt-stub, .tkt-scan) :where(.muted, small) {
  color: var(--muted); font-size: var(--bj-support); }
/* An aside offering a different route (register as a buyer, sign in) is a
   change of subject — it needs the same air a new section gets, not the
   paragraph gap it was inheriting. */
body.buyer-journey .bj-aside { margin-block-start: var(--bj-section); }
p.lead { font-size: 1.35rem; font-weight: 600; margin: .35rem 0; }

/* public/journey_divider.css */
/* One divider colour on a buyer page. .rows/.row and friends drew theirs
   straight from the organizer's --line, which lands heavier than the field
   outline; a rule that outweighs a control inverts the hierarchy. */
body.buyer-journey :where(.rows, .row, .door-types li, hr) { border-color: var(--hairline); }
body.buyer-journey hr { background: var(--hairline); block-size: 1px; border: 0; margin-block: var(--bj-section); }

/* public/journey_row_form.css */
/* Row forms keep their controls on the row. The journey-wide width:100% is
   right for a stacked form and wrong here: it broke the add-on row into three
   lines with the button orphaned at the left. */
body.buyer-journey form:where(.row, .change-row) { align-items: center; }
body.buyer-journey form:where(.row, .change-row) :where(input:not([type=checkbox]):not([type=radio]), select, textarea) {
  width: auto; }
body.buyer-journey form:where(.row, .change-row) select { flex: 1 1 9rem; min-inline-size: 7rem; }
body.buyer-journey form:where(.row, .change-row) > button[type=submit] { margin-inline-start: auto; }

/* public/journey_field.css */
/* A labelled control with its hint: one block, so the label, the control and
   the explanation travel together instead of floating as three loose lines. */
body.buyer-journey .bj-field { margin: 1.5rem 0; }
/* The exclusions are the labels that are not field NAMES: a checkbox's
   sentence, a row's own text, a ticket-choice card. A card carries its layout
   (.reg-ticket: a flex row, radio then name then price flush right) and this
   rule's display:block would quietly take it apart — the border and padding
   survive, so all you see is a price that stopped being flush right and a
   radio dropped to the text baseline. Scoping by ANCESTOR is what let that
   through: .portal-register exempted the portal's cards while the invitation
   page's identical cards, in a form with no such class, were not. The class
   itself is the honest test. */
body.buyer-journey label:not(.check):not(.rowhit):not(.grow):not(.reg-ticket):not(.ps-choice):not(.mode-body label):not(.pi-manage label):not(.portal-register label) { color: var(--fg); display: block;
  font-size: var(--bj-support); font-weight: 600; margin-bottom: .4rem; }
/* A checkbox's label is the sentence you agree to: body copy, not a field
   name. One recipe, whether or not it carries a description. */
body.buyer-journey label.check, body.buyer-journey label.check.check-field {
  color: var(--fg); font-size: var(--bj-support); font-weight: 400; }
body.buyer-journey label.check .field-desc { font-weight: 400; }
body.buyer-journey .bj-field > .hint { margin: .4rem 0 0; }

/* public/back_link.css */
/* Going back to a screen you came from is navigation, not an action: a link,
   never a button (Vicky, 2026-07-31). */
body.buyer-journey a.back-link { background: none; border: 0; color: var(--journey-link, var(--accent));
  display: inline-block; font-size: var(--bj-body); font-weight: 400; margin-top: 1.5rem;
  padding: 0; text-decoration: underline; text-underline-offset: .15em; }
body.buyer-journey a.back-link::before { content: "\2039\00a0"; text-decoration: none; }

/* public/alloc_card.css */
/* Allocation: no box — a quiet stanza between hairlines. The eyebrow
   whispers what it is; number and noun share one baseline; the covered
   types are hairline chips; used/remaining anchor the bar's two ends. */
.alloc-card { border-block: 1px solid var(--hairline); margin: 1.6rem 0 2rem; padding: 1.3rem 0 1.25rem; }
.alloc-label { color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .1em; margin: 0 0 .55rem; text-transform: uppercase; }
.alloc-bar { background: var(--hairline); border-radius: 99px; height: 4px; margin-top: 1.1rem; overflow: hidden; }
.alloc-bar i { background: var(--p-accent); border-radius: 99px; display: block; height: 100%; min-width: 2px; transition: width .4s ease; }
.alloc-stats { align-items: baseline; display: flex; justify-content: space-between; }
.alloc-stats div { display: flex; flex-direction: column; gap: .15rem; }
.alloc-stats strong { font-size: 1.7rem; font-weight: 640; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.alloc-stats small { color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.alloc-mid { align-items: center; text-align: center; }
.alloc-remaining { align-items: flex-end; text-align: right; }
.alloc-remaining strong { color: var(--p-accent); }
/* A per-type allocation runs out per type, so the card carries a line each:
   name left, what is left of that type right, on the same hairline rhythm as
   the stanza above it. */
.alloc-types { border-top: 1px solid var(--hairline); list-style: none; margin: 1.1rem 0 0; padding: .85rem 0 0; }
.alloc-types li { display: flex; font-size: .9rem; gap: 1rem; justify-content: space-between; padding: .18rem 0; }
.alloc-types .at-left { color: var(--muted); font-variant-numeric: tabular-nums; }

/* public/dl_list.css */
/* Files the organiser hands out. Same hairline rhythm as the allocation
   stanza above it — no boxes, no card shadows — but each row is a real hit
   target with a kind chip on the left and a download glyph on the right, so
   what a click does is legible before it happens. */
.dl-list { list-style: none; margin: .9rem 0 0; padding: 0; }
.dl-list li + li { border-top: 1px solid var(--hairline); }
.dl-list a { align-items: center; color: inherit; display: flex; gap: .85rem; padding: .8rem .35rem; text-decoration: none; }
.dl-list a:hover { background: color-mix(in oklab, var(--p-accent) 6%, transparent); }
.dl-list a:focus-visible { outline: 2px solid var(--p-accent); outline-offset: -2px; }
/* The chip carries the extension, not an icon font: it stays legible with no
   network, and a file kind we have never seen still reads as itself. */
.dl-kind {
  align-items: center; background: var(--hairline); border-radius: 7px; color: var(--muted);
  display: flex; flex: none; font-size: .62rem; font-weight: 700; height: 34px; justify-content: center;
  letter-spacing: .04em; width: 34px;
}
.dl-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.dl-text strong { font-size: .95rem; font-weight: 560; overflow-wrap: anywhere; }
.dl-text small { color: var(--muted); font-size: .78rem; }
/* What the organiser says the file is. It sits above the download/size line
   and takes ordinary text colour, because it is the sentence that tells a
   holder whether this is the file they need — the filename frequently isn't. */
.dl-text small.dl-desc { color: inherit; font-size: .82rem; overflow-wrap: anywhere; }
.dl-arrow { color: var(--muted); flex: none; margin-left: auto; }
.dl-list a:hover .dl-arrow { color: var(--p-accent); }

/* public/mode_card.css */
/* Mode cards: weightless — hairline + breath of shadow; hover lifts. */
.mode-card { background: var(--journey-card, transparent); border: 1px solid var(--hairline);
  border-radius: 14px; box-shadow: var(--shadow-hairline); margin: .7rem 0;
  transition: border-color .2s, box-shadow .2s; }
.mode-card:hover, .mode-card[open] { border-color: color-mix(in srgb, var(--p-accent) 35%, transparent);
  box-shadow: var(--shadow-hairline-lift); }
.mode-card > summary { align-items: center; cursor: pointer; display: flex; gap: .9rem; list-style: none; padding: 1rem 1.15rem; position: relative; }
.mode-card > summary::-webkit-details-marker { display: none; }
.mode-card > summary::after { border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  content: ""; height: 7px; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-65%) rotate(45deg);
  transition: transform .2s; width: 7px; }
.mode-card[open] > summary::after { transform: translateY(-35%) rotate(225deg); }
.mode-icon { color: var(--p-accent); display: flex; flex: none; opacity: .9; }
.mode-text { display: flex; flex-direction: column; gap: .12rem; padding-right: 1.75rem; }
.mode-text strong { font-weight: 600; }
.mode-text small { color: var(--muted); }
.mode-card .mode-body { border-top: 1px solid var(--hairline); padding: .4rem 1.15rem 1.15rem; }

/* Form voice: quiet labels, hairline fields that sharpen on focus. */
body.buyer-journey .mode-body label, body.buyer-journey .pi-manage label,

/* public/portal_register.css */
/* The page's FIELD labels — the micro-caps over Name and Email address.
   .reg-ticket is excused because it is not one: it is a label that lays its
   own children out, and journey_field.css's :not() chain already excuses it
   from the block-label rule for exactly that reason. This selector is more
   specific than that one, so without the same exclusion it quietly undid the
   fix — .reg-ticket's display:flex never fired, which is why align-items and
   gap did nothing and the radio sat above its own words. It also meant a
   ticket NAME was rendered as a field label: muted, letter-spaced and
   uppercased, unlike the identical rows on the invitation claim page. */
body.buyer-journey .portal-register label:not(.reg-ticket) {
  color: var(--muted); display: block; font-size: var(--bj-micro); font-weight: 600;
  letter-spacing: .08em; margin: .9rem 0 .3rem; text-transform: uppercase; }
.mode-body input:where([type=text], [type=email], [type=number], [type=file]),
.pi-manage input:where([type=text], [type=email]),
.portal-register input:where([type=text], [type=email]) {
  background: transparent; border: 1px solid var(--control-line); border-radius: 9px;
  font: inherit; padding: .55rem .7rem; transition: border-color .15s; width: 100%; }
.mode-body input:focus-visible, .pi-manage input:focus-visible, .portal-register input:focus-visible {
  border-color: var(--p-accent); outline: none; }
.mode-body input[type=number] { width: 6.5rem; }
.mode-body .mono { display: inline-block; margin: .5rem 0; overflow-wrap: anywhere; }

/* public/journey_actions.css */
.mode-body .actions, .pi-manage .actions, .portal-register .actions {
  display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.15rem; }
body.buyer-journey :where(.mode-body, .pi-manage, .portal-register) button {
  border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: .92rem;
  font-weight: 600; padding: .58rem 1.35rem; transition: filter .15s, transform .1s; }
body.buyer-journey :where(.mode-body, .pi-manage, .portal-register) button:hover { filter: brightness(1.08); }
body.buyer-journey :where(.mode-body, .pi-manage, .portal-register) button:active { transform: translateY(.5px); }
/* The portal's ghosts sit beside copy-buttons and pill-links; without this
   they inherited the generic button's radius and weight and read as a third
   kind of secondary on one page. */
body.buyer-journey :where(.mode-body, .pi-manage) button.ghost,
body.buyer-journey a.button.ghost { background: transparent; border: 1px solid var(--control-line);
  border-radius: 999px; color: var(--fg); font-size: .85rem; font-weight: 600; padding: .42rem 1rem; }

/* The shareable address: a hairline field holding the link and its copy
   button — the admin's grey .mono chip reads as a glitch out here. */
body.buyer-journey .mode-body .mono, body.buyer-journey .portal-register .mono { background: transparent; color: var(--p-accent); padding: 0; }

/* public/share_link.css */
.share-link { align-items: center; border: 1px solid var(--hairline); border-radius: 10px;
  display: flex; gap: .7rem; justify-content: space-between; margin: .55rem 0 .2rem; padding: .5rem .5rem .5rem .75rem; }
.share-link a { color: var(--p-accent); font-size: .95rem; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  overflow-wrap: anywhere; text-decoration: none; }
.share-link a:hover { text-decoration: underline; }
body.buyer-journey .copy-btn { background: transparent; border: 1px solid var(--control-line); border-radius: 999px;
  color: var(--fg); cursor: pointer; flex: none; font: inherit; font-size: .85rem; font-weight: 600;
  padding: .42rem 1rem; transition: border-color .15s, color .15s; }
body.buyer-journey .copy-btn:hover { border-color: var(--p-accent); color: var(--p-accent); }
body.buyer-journey .copy-btn.done { border-color: var(--p-accent); color: var(--p-accent); }

/* Success: a slim confirmation line, not a slab. */

/* public/portal_flash.css */
.portal-flash { align-items: center; color: var(--p-accent); display: flex; font-size: .9rem;
  font-weight: 600; gap: .45rem; margin: .8rem 0 0; }
.portal-flash::before { background: var(--p-accent); border-radius: 50%; content: ""; height: 6px; width: 6px; }

/* Issued: a hairline ledger, not boxes. */

/* public/portal_package.css */
/* The holder page's header: who this is (the event line), whose it is (the
   name), and what they bought (the package). One block, one set of gaps.

   It used to be three loose children of <main> held together by an
   `h1:has(+ .portal-package)` rule — which worked while the package line was
   the only thing that could follow the name. There is a summary under the
   allocation now, so the header is a real <header> that owns its own spacing
   rather than an adjacency that has to guess.

   Colour and size for the package line come from .bj-support, the journey's
   one supporting-text recipe; this file owns nothing but the spacing. */
body.buyer-journey .portal-head { margin-block-end: 0; }
body.buyer-journey .portal-head > p { margin-block: 0; }
/* The name sits under the event line, not a section away from it, and the
   package sits tighter still under the name. */
body.buyer-journey .portal-head h1 { margin-block: .1rem 0; }
body.buyer-journey .portal-head .portal-package { margin-block-start: .2rem; }

/* public/portal_overview.css */
/* The holder's overview (portal_overview.go): the short list a busy portal
   opens with. Same vocabulary as the allocation stanza directly above it —
   a micro-caps eyebrow, hairline rules, no box — because a second card here
   would read as a second thing to deal with rather than the index of the one
   below. Rows borrow the download row's anatomy (glyph, two lines, chevron)
   so the page speaks one language whichever section you land in.

   Every colour derives from the organizer's palette, so this survives an
   account whose background_color is near-black. */
/* The holder's page is the one buyer-journey page that is a DASHBOARD rather
   than a linear form: an allocation, a summary, three issuing modes, a store,
   two question blocks, a file list and an issued list, all on one screen. The
   journey's 510px is sized for a checkout that should be read top to bottom;
   at that width every summary row wraps its status line and the store's
   name/price/quantity columns fight each other. So this page — and only this
   page — takes the Classic skin's wider measure.
   Selected by the page's own header rather than a flag threaded through the
   layout: :has() is already the journey's idiom, and a browser too old for it
   simply gets today's 510px, which is not a broken page. */
body.buyer-journey > main:has(> .portal-head) { max-width: 680px; }

body.buyer-journey .ov-block { margin-block: 0 var(--bj-section); }
body.buyer-journey .ov-label {
  color: var(--muted); font-size: var(--bj-micro); font-weight: 600;
  letter-spacing: .1em; margin: 0 0 .3rem; text-transform: uppercase; }
body.buyer-journey .ov {
  border-block-start: 1px solid var(--hairline); list-style: none;
  margin: 0; padding: 0; }
body.buyer-journey .ov li { border-block-end: 1px solid var(--hairline); }
body.buyer-journey .ov a {
  align-items: center; color: inherit; display: flex; gap: .85rem;
  padding: .8rem .25rem; text-decoration: none;
  transition: background .15s; }
/* A whisper, not the download row's outline: these rows have no border of
   their own, so the fill IS the row and anything heavier reads as selected. */
body.buyer-journey .ov a:hover { background: color-mix(in srgb, var(--p-accent) 5%, transparent); }
body.buyer-journey .ov a:focus-visible { outline: 2px solid var(--p-accent); outline-offset: -2px; }
body.buyer-journey .ov-ic { color: var(--p-accent); display: flex; flex: none; }
body.buyer-journey .ov-txt {
  display: flex; flex: 1; flex-direction: column; gap: .1rem; min-width: 0; }
body.buyer-journey .ov-txt strong { font-size: var(--bj-body); font-weight: 600; }
body.buyer-journey .ov-txt small { color: var(--muted); font-size: var(--bj-support); }
/* The amber flag. It never carries meaning on its own — the line above it
   always says the state in words — so this is emphasis, not the message.
   --warn-ink is the journey's own per-scheme amber (layout.html), which is
   what keeps it legible on a dark account palette where the shared token
   would not be. */
body.buyer-journey .ov-chip {
  background: var(--warn-weak);
  border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--line));
  border-radius: 99px; color: var(--warn-ink); flex: none;
  font-size: var(--bj-micro); font-weight: 650; letter-spacing: .02em;
  padding: .16rem .55rem; }
body.buyer-journey .ov-arrow { color: var(--muted); flex: none; }

/* public/portal_issued.css */
.portal-issued { list-style: none; margin: .4rem 0 0; padding: 0; }
.portal-issued li { border-bottom: 1px solid var(--hairline); }
.portal-issued li:first-child { border-top: 1px solid var(--hairline); }
.portal-issued li.is-revoked { opacity: .5; }
/* One line per guest: name left, count right; manageable rows are the
   summary of their own edit form, cued by the mode-card chevron. */
.pi-row { align-items: baseline; display: flex; gap: 1rem; justify-content: space-between; padding: .6rem .1rem; }
.pi-name { flex: 1; font-weight: 550; overflow-wrap: anywhere; }
.pi-name em { color: var(--muted); font-size: .8rem; font-style: normal; }
.pi-count { color: var(--muted); flex: none; font-size: .84rem; font-variant-numeric: tabular-nums; }
summary.pi-row { cursor: pointer; list-style: none; }
summary.pi-row::-webkit-details-marker { display: none; }
.pi-row::after { align-self: center; border-right: 1.5px solid transparent;
  border-bottom: 1.5px solid transparent; content: ""; flex: none; height: .38em; transform: rotate(45deg); transition: transform .18s ease; width: .38em; }
summary.pi-row::after { border-color: var(--muted); }
.pi-manage[open] > summary.pi-row::after { transform: rotate(225deg); }
.pi-manage[open] { padding-bottom: 1rem; }

/* public/portal_doc.css */
/* One document on the portal holder's page (templates/portal.html): the
   question, its state and deadline, whatever is already uploaded, and the
   file input that replaces it. A rule rather than a card — the whole form is
   a list of these, and boxing each one would out-shout the ticket sections
   above it, which are what the portal is actually for.

   The rule needs EQUAL air on both sides or it stops being a divider (Vicky,
   2026-08-07). It used to sit 4px under the previous document's last field
   and 29px above the next document's label — so on a question that asks for
   an expiry date it read as a second underline on the date input, and a form
   of four documents looked like a page of stray rules. The padding is
   symmetric now, and the first label's own top margin is dropped so it cannot
   put the gap back on one side only. */
body.buyer-journey .portal-doc { border-top: 1px solid var(--hairline); padding: 1.35rem 0; }
body.buyer-journey .portal-doc:first-of-type { border-top: 0; padding-top: 0; }
body.buyer-journey .portal-doc > label { display: block; }
body.buyer-journey .portal-doc > label:first-child { margin-top: 0; }
/* The state line sits directly under the question, tight to it, because it
   is about that question and not a hint for the input below. */
body.buyer-journey .portal-doc .form-help { margin: .2rem 0 .5rem; }
/* The covers line is this holder's own answer, so it sits under the state
   rather than beside it. Flagged, it takes the warning's ink — never the only
   carrier of the meaning, since the sentence names both dates. */
body.buyer-journey .portal-doc .covers { margin-top: -.3rem; }
body.buyer-journey .portal-doc .covers-flag { color: var(--warn-ink); }
body.buyer-journey .portal-doc .file-list { margin: 0 0 .5rem; }

/* public/portal_store.css */
/* The portal store: what comes with the package and what can be ordered on
   top of it, in ONE list. Rows share the issued list's hairline rhythm so the
   holder's page reads as one page rather than two components — name left,
   price and quantity flush right, an included row carrying a chip where a
   stepper would be. */
.portal-store { list-style: none; margin: .4rem 0 0; padding: 0; }
.portal-store li { align-items: baseline; border-bottom: 1px solid var(--hairline);
  display: flex; gap: 1rem; padding: .7rem .1rem; }
.portal-store li:first-child { border-top: 1px solid var(--hairline); }
/* A group heading inside the list, not above it: the whole point is that
   included and extra sit in the same column. */
.portal-store li.ps-head { border-bottom: 0; color: var(--muted); font-size: .78rem;
  letter-spacing: .04em; padding-bottom: .2rem; padding-top: 1.1rem; text-transform: uppercase; }
.ps-main { display: flex; flex: 1; flex-direction: column; gap: .12rem; overflow-wrap: anywhere; }
.ps-name { font-weight: 500; }
.ps-main small { color: var(--muted); font-size: .82rem; }
.ps-cap { font-variant-numeric: tabular-nums; }
.ps-price { flex: none; font-variant-numeric: tabular-nums; }
.ps-note { color: var(--muted); flex: none; font-size: .84rem; }
/* Included: the chip is the whole answer, so it is the row's only control. */
.ps-chip { background: color-mix(in srgb, var(--p-accent) 12%, transparent); border-radius: 999px;
  color: var(--p-accent); flex: none; font-size: .76rem; font-weight: 550; padding: .16rem .5rem; }
/* A label that lays its own children out has to be excused from the buyer
   journey's block-label rule (journey_field.css's :not() chain) — that
   selector outranks this one, so display:flex here is inert without it, and
   align-items never fires. .reg-ticket is on that list for the same reason.
   The margin reset is the second half: a UA radio carries an asymmetric
   margin, and centring the MARGIN box leaves the control off its own words. */
.ps-choice { align-items: center; cursor: pointer; display: flex; gap: .5rem; }
.ps-choice input { accent-color: var(--p-accent); margin: 0; }
.ps-qty { align-items: center; display: flex; flex: none; gap: .3rem; }
.ps-qty input { text-align: center; width: 3.4rem; }
.ps-window { font-size: .84rem; margin-top: .8rem; }

/* public/reg_tickets.css */
/* Registration page: ticket choices as the same weightless cards. */
.reg-tickets { border: 0; margin: 0 0 .5rem; padding: 0; }
.reg-tickets legend { font-weight: 650; margin-bottom: .45rem; }
.reg-ticket { align-items: center; border: 1px solid var(--hairline); border-radius: 12px;
  box-shadow: var(--shadow-hairline); cursor: pointer; display: flex; gap: .7rem;
  margin: .45rem 0; padding: .7rem .9rem; transition: border-color .15s, box-shadow .15s; }
.reg-ticket:hover { border-color: color-mix(in srgb, var(--p-accent) 35%, transparent); }
.reg-ticket:has(input:checked) { border-color: var(--p-accent); box-shadow: 0 0 0 1px var(--p-accent) inset; }
/* A UA radio carries an asymmetric margin (WebKit's is 3px 3px 0 5px), and
   align-items centres the MARGIN box, so without this reset the control sits
   off its own words. Same pairing .ps-choice has carried since it was
   written. Note this reset is not what fixed the register page's radios —
   there, display:flex was not firing at all, so nothing was being centred;
   see portal_register.css. */
.reg-ticket input { accent-color: var(--p-accent); margin: 0; }
.reg-ticket small { color: var(--muted); }
/* Invitation variant: the name grows, the price sits flush right. */
.reg-ticket .grow { flex: 1; }
.reg-ticket .price { font-variant-numeric: tabular-nums; }
.reg-single { margin: .4rem 0 .8rem; }
@media (prefers-reduced-motion: reduce) {
  .mode-card, .mode-card > summary::after, .alloc-bar i, .reg-ticket,
  .namefield-details > summary::before,
  body.buyer-journey :where(.mode-body, .pi-manage, .portal-register) button { transition: none; }
}

/* public/lang_switch.css */
.lang-switch { font-size: .85rem; position: absolute; right: 1rem; top: 1rem; z-index: 30; }
.lang-switch > summary { align-items: center; background: var(--surface, #fff); border: 1px solid var(--line, #d9d9e0); border-radius: 99px; cursor: pointer; display: flex; gap: .35rem; list-style: none; padding: .35rem .8rem; }
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary > svg { flex: none; }
.lang-switch .lang-caret { opacity: .6; }
.lang-switch > nav { background: var(--surface, #fff); border: 1px solid var(--line, #d9d9e0); border-radius: .5rem; box-shadow: var(--shadow-menu-soft); display: flex; flex-direction: column; margin-top: .35rem; min-width: 10rem; padding: .3rem; position: absolute; right: 0; }
.lang-switch > nav :is(a, [aria-current]) { border-radius: .3rem; color: inherit; padding: .35rem .55rem; text-decoration: none; white-space: nowrap; }
.lang-switch > nav a:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.lang-switch > nav [aria-current] { font-weight: 700; }

/* Buyer capability and checkout-adjacent pages follow the event design too.
   Root mode consumes the constrained Classic pair; the account host gets the
   richer Pro palette. The printable ticket deliberately remains independent. */

/* public/journey_form.css */
/* ---- Buyer order & ticket pages ----
   Same dialect as the sponsor portal: hairlines, micro-caps eyebrows, pill
   ghosts. The one loud thing on the ticket page is the ticket card itself. */
/* The buyer skin is single-scheme — the organizer's palette, not the OS's.
   The card's luminance decides which side it is on (eventDesign.Scheme, a
   two-value enum stamped on <body data-scheme>), so a dark-OS buyer never
   gets a light chevron on a light card, or vice versa. Both glyphs are
   static: a url() whose value carries a template action puts
   html/template's escaper into an ambiguous URL context. */
body.buyer-journey select:not([multiple]), body.buyer-journey .ss-combo > .ss-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6579' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
body.buyer-journey[data-scheme="dark"] select:not([multiple]),
body.buyer-journey[data-scheme="dark"] .ss-combo > .ss-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398a2b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
body.buyer-journey select { max-width: 100%; }
body.buyer-journey form:not([data-checkout]) :where(input:not([type=checkbox]):not([type=radio]):not([type=number]), select, textarea) { box-sizing: border-box; width: 100%; }
body.buyer-journey form:not([data-checkout]) :where(input:not([type=checkbox]):not([type=radio]), select, textarea) {
  background-color: transparent; border: 1px solid var(--control-line); border-radius: 8px; color: var(--fg);
  font: inherit; padding: .55rem .65rem; }
body.buyer-journey form:not([data-checkout]) select:not([multiple]) { padding-right: 2rem; }
/* Checkboxes and radios are targets, not glyphs: the browser default is 13px,
   under half the 24px WCAG 2.2 asks for. The label around them carries the
   rest of the target. */
body.buyer-journey :where(input[type=checkbox], input[type=radio]) {
  accent-color: var(--accent); block-size: 1.25rem; inline-size: 1.25rem; margin: 0; }
body.buyer-journey label.check { align-items: center; display: flex; gap: .55rem; min-block-size: 1.75rem; }
/* Every control on a buyer page, checkout included: the global input rule
   paints borders with the organizer's decorative --line, which measured
   1.23–1.48:1 against the card. WCAG 1.4.11 wants 3:1 for a control's own
   boundary, and a checkout field is not the place to make that exception. */
body.buyer-journey :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea) {
  border-color: var(--control-line); box-shadow: var(--control-shadow); }
body.buyer-journey form:not([data-checkout]) :where(input, select, textarea):focus-visible {
  border-color: var(--p-accent); outline: 2px solid var(--accent-weak-2); outline-offset: 1px; }
/* Primary submits: full width and properly dressed, the journey's own
   convention (the event page's checkout button styles itself). */
body.buyer-journey form:not([data-checkout]) button[type=submit] {
  background: var(--accent); border: 0; border-radius: 10px; color: var(--accent-fg);
  font-size: .95rem; font-weight: 600; justify-content: center; padding: .7rem 1.2rem; }
body.buyer-journey form:not([data-checkout]) > button[type=submit] { width: 100%; }

/* public/bj_actions.css */
.bj-eyebrow { color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .1em;
  margin: 0 0 .3rem; text-transform: uppercase; }
/* order-actions / ticket-actions are the two named rows a theme may style
   (docs/themes.md §The CSS contract); .bj-actions is the same shape wherever
   a buyer page needs it without being one of those two, and stays internal. */
order-actions, ticket-actions, .bj-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0; }
ticket-actions { justify-content: center; }
body.buyer-journey order-actions a.pill-link,
body.buyer-journey ticket-actions a.pill-link,
body.buyer-journey .bj-actions a.pill-link { background: transparent; border: 1px solid var(--control-line);
  border-radius: 999px; color: var(--fg); display: inline-block; font-size: .85rem; font-weight: 600;
  padding: .42rem 1rem; text-decoration: none; transition: border-color .15s, color .15s; }
body.buyer-journey order-actions a.pill-link:hover,
body.buyer-journey ticket-actions a.pill-link:hover,
body.buyer-journey .bj-actions a.pill-link:hover { border-color: var(--p-accent); color: var(--p-accent); }
order-actions a.pill-link svg, ticket-actions a.pill-link svg,
.bj-actions a.pill-link svg { margin-right: .35rem; vertical-align: -.18em; }
/* A secondary action that has to POST rather than navigate — declining the
   free-seat offer carries the whole cart with it — wears the same pill. The
   [type=submit] keeps it ahead of the primary-submit rule in journey_form. */
body.buyer-journey .bj-actions button.pill-link[type=submit] { background: transparent;
  border: 1px solid var(--control-line); border-radius: 999px; color: var(--fg); cursor: pointer;
  font-size: .85rem; font-weight: 600; padding: .42rem 1rem;
  transition: border-color .15s, color .15s; }
body.buyer-journey .bj-actions button.pill-link[type=submit]:hover {
  border-color: var(--p-accent); color: var(--p-accent); }
/* The public error page: empty-state composition inside the journey card. */
.error-state { padding: 1rem 0; text-align: center; }
.error-state .bj-actions { justify-content: center; margin-bottom: 0; }
/* Checkout details: one soft card per attendee; legends whisper. */

/* public/checkout_attendee.css */
fieldset.co-attendee { border: 1px solid var(--hairline); border-radius: 12px; margin: 1rem 0; padding: .35rem 1rem 1.1rem; }
fieldset.co-attendee legend { color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .1em; padding: 0 .4rem; text-transform: uppercase; }
/* Organizer-only note on a public page: quiet, clearly not for buyers. */

/* public/journey_misc.css */
.admin-note { background: var(--accent-weak); border-radius: 10px; color: var(--fg); font-size: .85rem; margin: 1rem 0; padding: .7rem .9rem; }
body.buyer-journey footer { justify-content: center; text-align: center; }

/* public/doc_lines.css */
.doc-lines .row { border-bottom: 1px solid var(--hairline); }
.doc-refunded { opacity: .55; text-decoration: line-through; }
.doc-tax { text-align: right; }
.doc-total { font-size: 1.15rem; text-align: right; }
body.buyer-journey .doc-total { color: var(--bj-display-ink); font-size: var(--bj-display); font-weight: var(--bj-display-weight); }
@media print { body.buyer-journey { padding: 0; } body.buyer-journey > main { box-shadow: none; } order-actions, ticket-actions, .bj-actions, .lang-switch, footer { display: none; } }

/* public/email_fix.css */
.email-line { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; gap: .35rem; margin: .3rem 0 0; }
.email-fix { display: inline; }
.email-fix > summary { align-items: center; border: 1px solid var(--hairline); border-radius: 99px;
  color: var(--muted); cursor: pointer; display: inline-flex; height: 1.6rem;
  justify-content: center; list-style: none; transition: border-color .15s, color .15s;
  width: 1.6rem; }
.email-fix form { flex-basis: 100%; }
.email-fix > summary:hover, .email-fix[open] > summary { border-color: var(--p-accent); color: var(--p-accent); }
.email-fix > summary svg { height: 12px; width: 12px; }
.email-fix > summary::-webkit-details-marker { display: none; }
.email-fix form { align-items: stretch; display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0 .2rem; }
.email-fix input[type=email] { flex: 1 1 0; min-width: 9rem; width: 0; }
.email-fix form button { flex: none; white-space: nowrap; }
.email-fix form label { flex-basis: 100%; margin: 0 0 -.35rem; }
/* Composite rows: field and button share one height, one baseline. */
.email-fix form :where(input, button),

/* public/head_edit.css */
/* head-edit — the small circular pencil beside a section heading, for a
   section the buyer may go and change ("Your details" → the order's checkout
   answers). Visually the same control the email line above it already uses
   (email_fix.css), as a LINK rather than a disclosure: this one goes to a
   page instead of opening a field in place.

   It lives in the heading rather than the order's action row because the
   action row is documents and the calendar, and a fifth pill there wrapped
   onto a second line (Vicky, 2026-08-10). An icon-only control, so the
   template owes it an aria-label. */
/* Qualified `body.buyer-journey a.head-edit`, the same shape back_link.css
   uses and for the same reason: `body.buyer-journey a` (journey_shell.css)
   paints every link --journey-link, which outranks a lone class and would
   leave this pencil purple three lines below an identical grey one. */
body.buyer-journey a.head-edit { align-items: center; border: 1px solid var(--hairline);
  border-radius: 99px; color: var(--muted); display: inline-flex; height: 1.6rem;
  justify-content: center; margin-left: .35rem;
  transition: border-color .15s, color .15s; vertical-align: middle; width: 1.6rem; }
body.buyer-journey a.head-edit:hover { border-color: var(--p-accent); color: var(--p-accent); }
.head-edit svg { height: 12px; width: 12px; }

/* public/change_row.css */
.change-row :where(select, button) { block-size: 2.6rem; box-sizing: border-box; margin: 0; padding-block: 0; }
.change-row { align-items: center; border-bottom: 1px solid var(--hairline); display: grid;
  gap: .6rem .8rem;
  grid-template-columns: minmax(8rem, 1fr) minmax(0, 1.4fr) 7.5rem; margin: 0; padding: .7rem 0; }
.change-row .cr-what { font-weight: 550; overflow-wrap: anywhere; }
.change-row .cr-what small { color: var(--muted); display: block; font-weight: 400; }
.change-row select { max-width: none; width: 100%; }
.change-row button[type=submit] { min-width: 0; width: 100%; }
@media (max-width: 480px) { .change-row { grid-template-columns: 1fr; } }
/* The ticket card: what you show at the door. Two halves, each with its own
   border, corner-masked at the join — real punched notches the border can't
   cross (an overflow-hidden bite left the outer border line intact). */

/* public/order_flash.css */
.order-flash { color: var(--fg); font-weight: 550; margin: .6rem 0; }
.order-flash::before { color: var(--p-accent); content: "● "; font-size: .7em; vertical-align: .15em; }
/* Door (on-site sales): the lead line is the amount being charged; the
   type picker is a quiet label/quantity ledger, same bones as .tix-list. */

/* public/door_types.css */
.door-types { list-style: none; margin: 1rem 0; padding: 0; }
.door-types li { align-items: center; border-bottom: 1px solid var(--line); display: flex;
  gap: 1rem; justify-content: space-between; padding: .55rem 0; }
.door-types li:first-child { border-top: 1px solid var(--line); }
.door-types label { flex: 1; margin: 0; }
.door-types input { margin: 0; width: 5rem; }
/* Tickets as a quiet ledger: holder (or type) left, meta right, whole row a link. */

/* public/tix_list.css */
.tix-list { list-style: none; margin: .3rem 0 0; padding: 0; }
.tix-list li { border-bottom: 1px solid var(--hairline); }
.tix-list li:first-child { border-top: 1px solid var(--hairline); }
body.buyer-journey a.tix-row { align-items: center; color: var(--fg); display: flex; gap: 1rem;
  justify-content: space-between; padding: .65rem .1rem; text-decoration: none; }
a.tix-row .tx-who { flex: 1; font-weight: 550; overflow-wrap: anywhere; }
a.tix-row .tx-who small { color: var(--muted); display: block; font-weight: 400; }
a.tix-row .tx-meta { color: var(--muted); flex: none; font-size: var(--bj-support, .875rem); }
a.tix-row::after { align-self: center; border-bottom: 1.5px solid var(--muted);
  border-right: 1.5px solid var(--muted); content: ""; flex: none; height: .38em; transform: rotate(-45deg); width: .38em; }
a.tix-row:hover .tx-who { color: var(--p-accent); }
/* Aligned self-service rows (type changes, add-ons): one grid, no drift. */
/* One aligned table: name column, select column, button column — every
   row's controls share the same widths. */

/* public/series_page.css */
/* The series page's fold of finished events: a quiet disclosure under the
   ledger, never a second list competing with what is on sale. The rows
   inside are the shared tix-list — only the summary is new here. */
.past-events { margin-block-start: var(--bj-section, 2.25rem); }
.past-events > summary { color: var(--p-accent); cursor: pointer; font-size: var(--bj-support, .875rem);
  font-weight: 550; }
.past-events[open] > summary { margin-block-end: var(--bj-after-heading, .75rem); }
/* A finished event is still a link, and still readable — dimming it would
   cost the contrast the rest of the page keeps. Only the weight steps back. */
.past-events a.tix-row .tx-who { font-weight: 500; }

/* public/ticket_card.css */
.tkt-card { margin: 1.4rem auto; max-width: 360px; }
/* The pad is deliberately NOT the page background and NOT a customizer
   token: a loud --bg turned the credential the same colour as the surround
   (seen with a strong green palette). Derived instead — the card nudged 7%
   toward the text colour — so it reads as a quiet neutral on light and dark
   card themes alike, and the palette's text stays readable on it. */
body.buyer-journey :where(.tkt-stub, .tkt-scan) .tk-ref { font-size: .95rem; }
.tkt-stub, .tkt-scan { background: color-mix(in srgb, var(--journey-card, var(--bg)) 93%, var(--fg)); border: 1px solid var(--hairline); }
.tkt-stub { -webkit-mask-image: radial-gradient(circle 10px at 0 100%, transparent 9.5px, #000 10px),
    radial-gradient(circle 10px at 100% 100%, transparent 9.5px, #000 10px); border-bottom: 0; border-radius: 18px 18px 0 0;
  mask-image: radial-gradient(circle 10px at 0 100%, transparent 9.5px, #000 10px),
    radial-gradient(circle 10px at 100% 100%, transparent 9.5px, #000 10px);
  -webkit-mask-size: 51% 100%;
  mask-size: 51% 100%; -webkit-mask-position: left, right;
  mask-position: left, right; -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat; padding: 1.15rem 1.25rem 1rem; }
.tkt-stub .tk-event { color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .1em;
  margin: 0 0 .35rem; text-transform: uppercase; }
.tkt-stub .tk-holder { color: var(--bj-display-ink); font-size: var(--bj-display); font-weight: var(--bj-display-weight);
  letter-spacing: -.01em; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.tkt-stub .tk-meta { color: var(--muted); font-size: var(--bj-support); margin: .3rem 0 0; }
.tkt-scan { -webkit-mask-image: radial-gradient(circle 10px at 0 0, transparent 9.5px, #000 10px),
    radial-gradient(circle 10px at 100% 0, transparent 9.5px, #000 10px); border-radius: 0 0 18px 18px;
  border-top: 2px dashed var(--hairline); mask-image: radial-gradient(circle 10px at 0 0, transparent 9.5px, #000 10px),
    radial-gradient(circle 10px at 100% 0, transparent 9.5px, #000 10px);
  -webkit-mask-size: 51% 100%;
  mask-size: 51% 100%;
  -webkit-mask-position: left, right; mask-position: left, right;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  padding: 1.15rem 1.25rem 1.05rem; text-align: center; }
.tkt-scan img { background: #fff; border-radius: 12px; height: auto; max-width: min(232px, 70vw); padding: 12px; }
.tkt-scan .tk-ref { color: var(--muted); font-size: .95rem; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .82rem; letter-spacing: .12em; margin: .5rem 0 0; }
.tkt-scan .tk-state { margin: .35rem 0 0; }

/* public/journey_shell.css */
body.buyer-journey { background: var(--bg); min-height: 100dvh; padding: 3rem 1.25rem; }
body.buyer-journey > main { background: var(--journey-card); border-radius: var(--journey-radius);
  box-shadow: var(--shadow-journey);
  color: var(--fg); max-width: 510px; padding: 2rem; }
body.buyer-classic > main { max-width: 760px; }
body.buyer-journey h1, body.buyer-journey h2 { color: var(--journey-heading); }
body.buyer-journey a { color: var(--journey-link); }
body.buyer-journey button { background: var(--accent); color: var(--accent-fg); }
/* A destructive journey confirm keeps its danger dress — the accent repaint
   above must not make "Cancel this quote" look like any other primary. */
body.buyer-journey button.danger,
body.buyer-journey form:not([data-checkout]) button[type=submit].danger {
  background: color-mix(in srgb, var(--danger), #000 28%); color: #fff; }
body.buyer-journey button.danger:hover,
body.buyer-journey form:not([data-checkout]) button[type=submit].danger:hover {
  background: color-mix(in srgb, var(--danger), #000 34%); }
/* A journey button opting out of the accent (e.g. the dashboard's sign-out):
   same quiet dress as the pill-link doors. */
body.buyer-journey button.subtle,
body.buyer-journey form:not([data-checkout]) button[type=submit].subtle {
  background: transparent; border: 1px solid var(--control-line); color: var(--fg); }
/* A submit inside a repeated row is a row action, not the page's action:
   the inline pill, and never full width. */
body.buyer-journey form:where(.row, .change-row):not([data-checkout]) button[type=submit].subtle,
body.buyer-journey form:where(.row, .change-row):not([data-checkout]) > button[type=submit].subtle {
  border-radius: 999px; font-size: .85rem; padding: .42rem 1rem; width: auto; }
body.buyer-journey button.subtle:hover,
body.buyer-journey form:not([data-checkout]) button[type=submit].subtle:hover {
  border-color: var(--p-accent); color: var(--p-accent); }
.journey-logo { display: block; margin: 0 0 1.5rem; max-height: 72px; max-width: 140px; object-fit: contain; }
@media (max-width: 599px) {
  body.buyer-journey { padding: 0; }
  body.buyer-journey > main { border-radius: 0; box-shadow: none; min-height: 100dvh; padding: 1.25rem; }
}

/* public/doc_head.css */
/* ---- Money documents & pay page (quotes / bank-transfer polish) ----
   doc-head: the document masthead — title block left, seller identity
   right (invoice); collapses gracefully when there's no right column. */
.doc-head { align-items: flex-start; display: flex; gap: 1rem; justify-content: space-between; }
.doc-head .doc-seller { text-align: right; }
/* An address is typed as several lines and has to print as several lines —
   a postal address run together on one line is wrong on a document somebody
   sends to their finance office. Both addresses on an invoice (the seller's
   and the buyer's) are one free-text field, so both take this. */
.doc-addr { display: inline-block; white-space: pre-line; }

/* public/pay_amount.css */
body.buyer-journey hr { border: 0; border-top: 1px solid var(--hairline); margin: 1.6rem 0; }
body.buyer-journey .pay-amount { color: var(--bj-display-ink); font-size: var(--bj-display); font-weight: var(--bj-display-weight); margin: .4rem 0 1rem; }
/* bj-split: a matched pair of secondary doors under the primary — equal
   halves, dressed like the journey's bordered ghosts. */

/* public/bj_split.css */
body.buyer-journey .bj-split { display: flex; gap: .6rem; margin: .9rem 0; }
body.buyer-journey .bj-split a.button { background: transparent; border: 1px solid var(--hairline);
  border-radius: 10px; color: var(--fg); flex: 1; font-size: .875rem; font-weight: 600;
  justify-content: center; margin-top: 0; padding: .55rem 1rem; text-decoration: none;
  transition: border-color .15s, color .15s; }
body.buyer-journey .bj-split a.button:hover { border-color: var(--p-accent); color: var(--p-accent); }

/* public/journey_callout.css */
/* Journey callouts whisper: the default (informational) tone drops the
   accent tint for a faint wash and hairline — the buyer card is quiet, so
   a loud box reads as an error. Warning/danger tones keep their colour. */
body.buyer-journey callout:not([tone]) { background: color-mix(in srgb, var(--fg) 4%, transparent);
  border-color: var(--hairline); border-radius: 10px; }
body.buyer-journey callout:not([tone]) > .co-body > p:only-child { color: var(--muted); }
/* Admin quote composer rows: catalogue left, labelled amounts right — one
   grid so every row's controls share the same columns (the change-row
   idea, admin-side). Labels are quiet column captions, not field labels. */

/* public/promo_note.css */
/* Promo-code feedback on the checkout details step (yste-coupons session):
   the details render prices an event-page-entered code so the buyer sees it
   working — or fixes it — before paying. */
.promo-note { font-size: .85rem; margin: .35rem 0 0; }
.promo-note.ok { color: var(--ok-ink, #2e7d32); }
.promo-note.bad { color: var(--danger-ink, #b3261e); }
</style>

/* public/file_field.css */
/* File-upload field (file-field.js + templates/file_field.html): the plain
   input is the zero-JS baseline; the module turns the block into a dropzone
   with chips and a progress bar. Focus/keyboard behavior is the native
   input's — the zone only decorates. */
body.buyer-journey .file-field { border: 1px dashed var(--border, currentColor); border-radius: .5rem; padding: .75rem; }
body.buyer-journey .file-field.dragging { background: color-mix(in srgb, currentColor 8%, transparent); border-style: solid; }
body.buyer-journey .file-field .file-drop-hint { font-size: var(--bj-support); margin: .35rem 0 0; }
body.buyer-journey .file-field progress { display: block; margin-top: .5rem; width: 100%; }
/* An author display rule beats the UA's [hidden] { display: none } — this
   restores it, or the retired progress bar would stay on screen forever. */
body.buyer-journey .file-field progress[hidden] { display: none; }
body.buyer-journey .file-field .file-status { font-size: var(--bj-support); margin: .35rem 0 0; }
body.buyer-journey .file-field .file-error { color: var(--danger-ink, #b00020); font-size: var(--bj-support); margin: .35rem 0 0; }
body.buyer-journey .file-chips { list-style: none; margin: .35rem 0 0; padding: 0; }
body.buyer-journey .file-chips .file-chip { align-items: center; display: flex; gap: .5rem; margin: .25rem 0; }
body.buyer-journey .file-chips .file-chip button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; padding: .25rem; }
body.buyer-journey .file-list { list-style: none; margin: 0 0 .5rem; padding: 0; }

/* public/embed.css */
/* The embed widget — the buyer journey rendered inside somebody else's
   website. Narrow by assumption: a 320px box in a stranger's sidebar is a
   different design problem from a full event page, so the row stacks below
   the sidebar width rather than squeezing. Everything reads from the
   journey tokens, because looking like the account is the whole point. */

/* The frame is a CARD ON SOMEBODY ELSE'S PAGE, never a page of ours.
   Without this it is both: the buyer shell paints the account's page
   background across the whole document (journey_shell.css), and the card
   sits on top of it filling the frame almost exactly — so the only pixels
   that background reaches are the ones the card's rounded corners leave
   over. Four dark notches and a hairline along the bottom, which on the
   organiser's own white page reads as a broken outline rather than as
   anything anybody chose (reported on a real site, 2026-08-05). Above
   599px it stops being subtle: the shell's page padding comes back and
   the box gets a dark band on all four sides.

   Transparent, so what shows through the corners is THEIR page — which is
   also what makes true the thing the palette already tells organisers,
   that the page background is not a colour this widget paints
   (embeds_setup.go's paletteTokens).

   Scoped by :has(tito-embed) rather than a class on the body, because that
   element is what MAKES a document the widget — a theme shipping its own
   embed view cannot forget to opt in, and this file rides the public
   bundle every buyer page loads, where an unscoped body rule would repaint
   all of them. */
body.buyer-journey:has(tito-embed) {
  background: transparent;
  min-height: 0;
  padding: 0;
}

tito-embed {
  background: var(--journey-card);
  border: 1px solid var(--control-line, var(--line));
  border-radius: var(--journey-radius, 12px);
  color: var(--fg);
  display: block;
  padding: 1rem;
}

.embed-types {
  display: grid;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.embed-type {
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  justify-content: space-between;
  padding: .6rem 0;
}

.embed-type:last-child { border-bottom: 0; }

.et-main { display: grid; gap: .15rem; min-width: 0; }
.et-name { font-weight: 600; }

.et-desc {
  color: var(--muted);
  font-size: .875rem;
}

.et-side {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  white-space: nowrap;
}

.et-price { font-variant-numeric: tabular-nums; }

.et-tax {
  color: var(--muted);
  font-size: .8125rem;
}

.et-left,
.et-gone {
  color: var(--muted);
  font-size: .8125rem;
}

body.buyer-journey .embed-cta {
  background: var(--accent);
  border-radius: calc(var(--journey-radius, 12px) / 2);
  color: var(--accent-fg);
  display: block;
  font-weight: 600;
  margin-top: .9rem;
  padding: .7rem 1rem;
  text-align: center;
  text-decoration: none;
}

body.buyer-journey .embed-cta:hover { filter: brightness(1.06); }

.embed-none {
  color: var(--muted);
  margin: 0;
  text-align: center;
}

.embed-secured {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: .75rem;
  gap: .3rem;
  justify-content: center;
  margin: .75rem 0 0;
}

body.buyer-journey .embed-secured a { color: inherit; }

/* The refusal state: shown when the widget has been made too small or
   invisible to read (embed-frame.js). It says what happened rather than
   rendering nothing, so an organiser whose own CSS squeezed the box has
   something to go on. */
.embed-obscured {
  padding: .5rem;
  text-align: center;
}

.eo-title {
  font-weight: 600;
  margin: 0 0 .25rem;
}

.eo-body {
  color: var(--muted);
  font-size: .875rem;
  margin: 0;
}

/* Button shape: the widget collapses to a single button until it is
   pressed, then the parent lifts the whole frame over the page
   (embed.js) and the same ticket list is revealed in place. */
.embed-open {
  background: var(--accent);
  border: 0;
  border-radius: calc(var(--journey-radius, 12px) / 2);
  color: var(--accent-fg);
  cursor: pointer;
  display: block;
  font: inherit;
  font-weight: 600;
  padding: .7rem 1rem;
  text-align: center;
  width: 100%;
}

.embed-close {
  background: none;
  border: 1px solid var(--line);
  border-radius: calc(var(--journey-radius, 12px) / 2);
  color: var(--muted);
  cursor: pointer;
  display: block;
  font: inherit;
  margin-top: .9rem;
  padding: .5rem 1rem;
  width: 100%;
}

/* Both buttons carry their own `display`, which beats the user agent's
   `[hidden] { display: none }` — so `el.hidden = true` alone left the
   collapsed widget showing Get tickets AND Close at once. The attribute is
   how embed-frame.js swaps the two states (and how ?state=open renders the
   opened one), so it has to win here. */
.embed-open[hidden],
.embed-close[hidden] {
  display: none;
}

/* Expanded, the frame owns the viewport, so the card fills it and scrolls
   its own content rather than the page behind it. */
tito-embed[data-shape="button"]:has(.embed-close:not([hidden])) {
  max-height: 100dvh;
  overflow-y: auto;
}

/* public/embed_check.css */
/* The public "is it working?" page the hand-off email links to
   (embeds_handoff.go). A buyer-journey page, because it renders on the
   account's own host in the account's own design — but its reader is the
   organiser's web person, so it is three short lines and the code. */

.ec-state {
  font-size: 1.05rem;
  margin: 0 0 .5rem;
}

.ec-state.ok {
  color: var(--ok-ink, currentColor);
  font-weight: 600;
}

/* Wrap, never scroll: a snippet you cannot see the end of reads as
   truncated, and comparing it with what was pasted is the whole point of
   showing it here. */
.ec-code {
  background: var(--journey-card, transparent);
  border: 1px solid var(--line, currentColor);
  border-radius: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  overflow-wrap: anywhere;
  padding: .85rem 1rem;
  white-space: pre-wrap;
}

.ec-code code {
  font: inherit;
}

/* public/apply.css */
/* The public application form (applications.go). Almost everything on this
   page is ordinary buyer-journey furniture; the only thing that needs its own
   rule is the line saying applying costs nothing, which has to read as a
   reassurance rather than as small print. */
.apply-note {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: .93rem;
  margin: 1.1rem 0 0;
  padding: .7rem .85rem;
}

.apply-closes { font-size: .9rem; margin-top: 1rem; text-align: center; }

