/* @version 20261003c */
/* Shared layout + site theme tokens.
   Site default = light / purple (same tokens as event scheme `light-purple`).
   Public event/series pages override via applyColorScheme() on <html>. */
:root {
  /* One measure for every page. Widths were set page by page and ranged from
     400px on a ticket to 1180px on an event, so no two screens lined up with
     each other. Change it here, not in twenty stylesheets. */
  --ot-measure: 1000px;
  --ot-measure-pad: 32px;
  --ot-gutter: 20px;
  --ot-gutter-sm: 16px;
  /* The site header's height. Anything else that sticks to the top has to
     clear it, and three places need the same number, so it lives here rather
     than being typed out three times and drifting. */
  --ot-header-h: 60px;

  /* Surface - white base */
  --ot-bg: #ffffff;
  --ot-surface: #ffffff;
  --ot-surface-2: #fdf2ee;
  --ot-text: #111827;
  --ot-muted: #374151;
  --ot-faint: #4b5563;
  --ot-border: #e5e7eb;
  --ot-border-strong: #d1d5db;
  /* Control boundary, held apart from the decorative borders above: a field edge
     is the only thing identifying the input, so it needs 3:1 (WCAG 1.4.11). */
  --ot-field-border: #6b7280;
  --ot-input-bg: #ffffff;
  --ot-chip: rgba(194, 83, 54, 0.10);
  --ot-success: #047857;
  /* Success as a *surface*, held apart from --ot-success above, which is a
     text colour on a light ground and correct as it is.
     #047857 behind the #06281c label these buttons use is 2.88:1 - under even
     the 3:1 floor for large text, and the reason the hover state was the only
     legible one. This is 9.45:1, and the hover below is 8.10:1, so the
     affordance does not cost the contrast. */
  --ot-success-surface: #4be0ab;
  --ot-success-surface-hover: #38d19b;
  --ot-success-ink: #06281c;
  --ot-danger: #b91c1c;
  --ot-danger-bg: #fef2f2;
  /* A status that is neither good nor bad: waiting, held, marked as spam.
     Not invented - #9a3412 on #fff7ed is what dashboard.html and orders.html
     were already writing inline for exactly these states, in four places
     between them. Named so the fifth does not pick its own amber. */
  --ot-warn: #9a3412;
  --ot-warn-bg: #fff7ed;
  /* The tint beside --ot-success, so a good badge can be a tint like a bad
     one is. --ot-success-surface is a solid mint meant for a button, and a
     column of three hundred solid mint pills is a column you cannot read
     past. */
  --ot-success-bg: #ecfdf5;
  --ot-color-scheme: light;
  --ot-skel-mid: #e5e7eb;
  --ot-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);

  /* Elevation, as a scale rather than a value per component.
     Each level is layered: a hairline ring that draws the edge, a tight
     contact shadow, and a broad ambient one. A single blur reads as a sticker;
     two read as an object above a surface.

     --ot-shadow above is left exactly as it was. Every page that uses it keeps
     the look it has - these are additive, and only what opts in moves. */
  --ot-elev-1:
    0 0 0 1px rgba(16, 24, 40, 0.05),
    0 1px 3px rgba(16, 24, 40, 0.07);
  --ot-elev-2:
    0 0 0 1px rgba(16, 24, 40, 0.05),
    0 2px 6px rgba(16, 24, 40, 0.06),
    0 12px 24px -8px rgba(16, 24, 40, 0.18);
  --ot-elev-3:
    0 0 0 1px rgba(16, 24, 40, 0.04),
    0 2px 6px rgba(16, 24, 40, 0.06),
    0 22px 44px -12px rgba(16, 24, 40, 0.28);

  /* The rail, and the ground the app stands on.
   *
   * Both come from /lab/foundations-7c41a9, where they were switches you
   * could flip against identical markup. Two things they are not: a theme,
   * and a decision any one page gets to make.
   *
   * THE RAIL IS DARK. It is chrome, not content - a column of destinations
   * you navigate by and do not read. Light grey put it at the same value as
   * the page, so the eye had to find the edge to know where one stopped and
   * the other began, and the workspace never quite looked like the thing in
   * front.
   *
   * Mixed from the accent rather than set to a navy, so it belongs to
   * whichever of the ten schemes the organiser chose instead of fighting
   * nine of them. At 14% the hue is barely nameable and the value is what
   * does the work.
   *
   * THE GROUND IS TINTED. A card on white needs a border to be a card. On a
   * ground a shade off it, the card has an edge for free - which is why
   * nothing in ot-app.css needs a shadow. 3% of the accent into --ot-surface-2
   * is about as far as it can go before it reads as a colour rather than as
   * paper.
   *
   * It is --ot-app-bg, not --ot-bg: the public pages - an event, a ticket, a
   * profile somebody was sent a link to - stay white. This is the ground of
   * the place you work, not of the place you sell. */
  --ot-rail-bg: color-mix(in oklab, var(--ot-accent) 14%, #0d1017);
  --ot-rail-edge: color-mix(in oklab, var(--ot-accent) 20%, #202634);
  --ot-rail-ink: #e7eaf1;
  --ot-rail-ink-dim: color-mix(in oklab, var(--ot-accent) 14%, #a8b0be);
  --ot-rail-hover: rgba(255, 255, 255, 0.07);
  /* The row you are on. Measured at 1.34:1 against the rail on the first
     pass, which is a step you have to look for; the white label carries most
     of the state and the block should carry the rest. */
  --ot-rail-active: color-mix(in oklab, var(--ot-accent) 42%, #262e42);
  --ot-rail-active-ink: #ffffff;

  --ot-app-bg: color-mix(in oklab, var(--ot-accent) 3%, var(--ot-surface-2-base, #f4f4f5));
  /* A box inside a card: one step further from the card than the card is from
     the page, so page / card / box reads as three planes. */
  --ot-nest-bg: color-mix(in oklab, var(--ot-accent) 5%, var(--ot-surface-2-base, #f4f4f5));

  /* The face everything else is set in.
   *
   * Not a new decision: 159 of the 160 font-family declarations in the tree
   * already say exactly this. It is written down so that the figure face
   * below has something to be the exception TO - without it, a rule that
   * wants to go back to the body face has nothing to name and has to
   * hardcode the stack a third time. */
  --ot-font-body: 'Figtree', system-ui, sans-serif;

  /* The face figures are set in.
   *
   * A number in the body face is a number that looks like prose. Set in a
   * mono face it looks like data, and a column of money lines up whether or
   * not the cell next to it has a decimal point - which is the difference
   * between a table you can scan and one you have to read.
   *
   * The system stack, not a webfont. ui-monospace is SF Mono on Apple and the
   * rest of the list covers everything else; a Google Font for numerals would
   * be another request and another flash of the wrong face on every public
   * ticket page, to gain a little character on a figure. If that trade ever
   * looks worth making, this is the one line that changes.
   *
   * Pair it with font-variant-numeric: tabular-nums. Most mono faces are
   * tabular anyway; the fallbacks at the end of the stack are not. */
  --ot-font-fig: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* Radius, tied to size: the bigger the surface, the rounder its corner. A
     9px button inside a 16px card is the kind of mismatch that reads as an
     accident, because it is one. */
  --ot-r-sm: 8px;    /* controls under 40px: chips, small buttons */
  --ot-r-md: 12px;   /* fields, buttons, list rows */
  --ot-r-lg: 16px;   /* cards, popovers */
  --ot-r-xl: 20px;   /* modal sheets */

  /* One duration and one easing, so a popover and a sheet feel like the same
     product opening two different things. */
  --ot-t-pop: 120ms;
  --ot-t-sheet: 240ms;
  --ot-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* The scrim. Lighter than a blackout, and blurred, so the page behind is
     pushed back rather than hidden - you can still see what you were working
     on, which is half of what tells you the sheet is temporary. */
  --ot-scrim: rgba(9, 14, 24, 0.38);
  --ot-icon-well: #f3f4f6;

  /* A loading bar and the light that sweeps along it. Translucent, not a
     flat grey: the bars sit on three different grounds - a white card, the
     tinted nest boxes inside a panel, the page itself - and one flat colour
     cannot be a step off all of them. #e9eaee was 1.20 against a card and
     1.09 against a nest box, which is close enough to invisible. This is the
     same step off whatever it lands on, 1.24 in every case.
     A skeleton wants to be SEEN and not READ, so a step is all it is. */
  --ot-skel: rgba(9, 14, 24, 0.10);
  --ot-skel-sheen: rgba(255, 255, 255, 0.90);

  /* Accent - coral, One Ticket's own colour */
  --ot-link: #c2410c;
  --ot-link-hover: #9a3412;
  /* Solid, with white on it - the same shape every scheme now draws.
     The default is coral, so these are coral's light recipe. */
  --ot-cta: #c25336;
  --ot-cta-hover: #a8442b;
  --ot-cta-ink: #ffffff;
  --ot-accent: #c25336;
  --ot-accent-soft: rgba(194, 83, 54, 0.12);
  --ot-accent-veil: rgba(194, 83, 54, 0.58);
  --ot-header: linear-gradient(180deg, #fff5f0 0%, #ffffff 72%);
  --ot-focus-ring: #b1441f;

  /* Cards / subscribe tiles */
  --ot-card-0: #ffffff;
  --ot-card-1: #fafafa;
  --ot-card-2: #f8fafc;
  --ot-card-3: #f9fafb;
  --ot-card-4: #f5f5f4;
  --ot-card-ink: #111827;
  --ot-card-muted: #374151;
  --ot-card-border: #e5e7eb;
  --ot-subscribe-card: linear-gradient(145deg, #ffffff 0%, #fffaf7 48%, #fff5f0 100%);

  /* Legacy aliases */
  --ot-pop: var(--ot-cta);
  --ot-pop-hover: var(--ot-cta-hover);
  --ot-pop-ink: var(--ot-cta-ink);
}

/* Make all form controls use a white fill for consistency across the app.
   Uses !important to override inline styles that previously set var(--ot-surface).
*/
/* :not(.ne-toggle) - a switch is an input with appearance:none whose whole
   look is its own background and border, and this rule sets both with
   !important, so it painted the track white with a hairline round it and left
   the knob invisible on top.

   :not(.ot-check) is there for the same reason and a checkbox has it worse: it
   has no appearance:none of its own to opt out with, so this rule paints over
   the native widget and accent-color is left with nothing to tint. The box
   then reads the same checked as unchecked - which is the whole of what a
   checkbox says. The arms below name text-like types, so nothing else here
   needs excluding. */
input:not(.ne-toggle):not(.ot-toggle):not(.ot-check), textarea, select, .es-input, .es-modal input, .tk-modal input, .pass-actions input, input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"] {
  background: var(--ot-input-bg, #ffffff) !important;
  color: var(--ot-text, #111827) !important;
  border: 1px solid var(--ot-field-border, #6b7280) !important;
}
input::placeholder, textarea::placeholder {
  color: var(--ot-faint, #4b5563) !important;
}

/* Invalid fields. The rule above sets every input border with !important, which
   silently defeated the inline red "bad" border each page was already computing
  , so an invalid field looked identical to a valid one. Driving the error state
   off aria-invalid fixes it in one place and keeps the marker and the assistive
   -tech signal in step. The ring is deliberate: border colour alone is a single
   cue, and a shape change carries for anyone who cannot separate red from grey. */
/* Scoped by [data-ot-surface] as well as bare, because some pages carry their
   own `[data-ot-surface="light"] input { border-color: ... !important }` in an
   inline <style>. That has the same specificity as a bare input[aria-invalid]
   rule but loads later, so it would win the tie and keep invalid fields grey. */
[data-ot-surface] input[aria-invalid="true"],
[data-ot-surface] textarea[aria-invalid="true"],
[data-ot-surface] select[aria-invalid="true"],
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: var(--ot-danger, #b91c1c) !important;
  box-shadow: 0 0 0 3px var(--ot-danger-bg, #fef2f2) !important;
}

/* Keyboard focus. Every interactive element used to fall back to the browser's
   default ring, and inputs suppressed it outright, so there was no consistent
   focus state anywhere. One accent ring, offset so it reads on both light and
   dark surfaces. :focus-visible keeps it off mouse clicks. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--ot-focus-ring, #b1441f) !important;
  outline-offset: 2px !important;
  border-radius: 4px;
}

/* Skip link: off-screen until focused, then pinned over the header. */
.ot-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
}
.ot-skip-link:focus {
  left: 12px;
  top: 12px;
  background: var(--ot-surface, #ffffff);
  color: var(--ot-text, #111827);
  border: 1px solid var(--ot-border-strong, #d1d5db);
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
}

html {
  color-scheme: var(--ot-color-scheme, light);
  background: var(--ot-bg, #ffffff);
  /* iOS Safari "autosizes" text in blocks it judges too small to read, which
     turned 12 and 14px sheet text into 16 and 18 on a phone - the scale said
     one thing and the screen another. The sizes are chosen; keep them. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Date and time fields fit their box, everywhere.
 *
 * Safari on iOS lays a native date field out at its own intrinsic width and
 * then ignores width:100%, so in a dialog on a phone it ran past the right
 * edge of everything around it (Expires at, on Promo codes). The builder had
 * its own fix; this is the same fix for every page. The appearance reset is
 * iOS only - it is the part that stops the intrinsic sizing, and a desktop
 * browser's field is fine as it is. */
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"] {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
@supports (-webkit-touch-callout: none) {
  input[type="date"],
  input[type="datetime-local"],
  input[type="time"],
  input[type="month"] {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    min-height: 40px;
    text-align: left;
    /* Centred by padding, not by height. With the native appearance gone,
       Safari puts the value at the top of the box and ignores line-height
       and alignment, so a 40px field read "4 Oct 2026" along its top edge.
       Padding moves the top of that box down: 9px, then one 20px line, in a
       40px field with a 1px border, puts the date in the middle. The field's
       own height is left as it is, so nothing around it moves. */
    padding-top: 9px;
    padding-bottom: 9px;
    line-height: 20px;
  }
  input::-webkit-date-and-time-value { text-align: left; margin-top: 0; margin-bottom: 0; }
}

body {
  background: var(--ot-bg, #ffffff);
  color: var(--ot-text, #111827);
}

@media (max-width: 860px) {
  :root {
    --ot-gutter: 16px;
    --ot-gutter-sm: 16px;
  }
}

@media (max-width: 480px) {
  :root {
    --ot-gutter: 16px;
  }
}

/* Native date/time controls have large intrinsic min-widths on iOS/WebKit and
   will overhang padded columns unless width is forced to the container. */
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: none;
}
[data-ot-surface="light"] {
  color-scheme: light;
}
[data-ot-surface="dark"] {
  color-scheme: dark;

  /* On a dark page the rail cannot be dark in the same way, or the two merge
     into one sheet. It goes slightly LIGHTER than the ground here, which is
     the same idea as on light - the rail is a different plane, and which way
     it differs matters less than that it does. */
  --ot-rail-bg: color-mix(in oklab, var(--ot-accent) 16%, #151a24);
  --ot-rail-edge: color-mix(in oklab, var(--ot-accent) 22%, #2a3142);
  --ot-rail-active: color-mix(in oklab, var(--ot-accent) 34%, #1e2534);
  /* The app ground on dark is the page's own - a tint of a dark ground is a
     muddier dark, and the separation is already there. */
  --ot-app-bg: var(--ot-bg);
  /* Lighter on dark, because there is nowhere darker to go. */
  --ot-nest-bg: color-mix(in oklab, var(--ot-accent) 8%, #1b2130);

  /* Elevation has to be re-stated on a dark ground, not reused. A black
     shadow over near-black is invisible, so the ambient layers go darker and
     wider; and the hairline ring inverts, because on dark an edge reads as a
     lighter line rather than a darker one. */
  --ot-elev-1:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.45);
  --ot-elev-2:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 2px 6px rgba(0, 0, 0, 0.45),
    0 12px 24px -8px rgba(0, 0, 0, 0.6);
  --ot-elev-3:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.5),
    0 22px 44px -12px rgba(0, 0, 0, 0.7);
  --ot-scrim: rgba(2, 5, 12, 0.6);
  /* Lighter than the card rather than darker: on a dark ground a hole reads
     as a hole, and what is coming is text, which is light. Same idea and the
     same 1.25-1.45 step off card, nest and page alike. */
  --ot-skel: rgba(255, 255, 255, 0.10);
  --ot-skel-sheen: rgba(255, 255, 255, 0.08);
}
[data-ot-surface="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-ot-surface="dark"] input[type="time"]::-webkit-calendar-picker-indicator,
[data-ot-surface="dark"] input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
}

/* The outer wrapper a signed-in page draws around itself.
   On its own it owns the viewport and wants the full height, so a short page
   still pushes its footer to the bottom. Inside the app shell it owns nothing:
   the shell holds the viewport, the rail sits beside it and the bar sits under
   it, and a full-height child in that row is a page taller than the window it
   is in. Embedded, it fills the space it is given instead.

   The flex column was an inline style repeated on each page before this. */
.ot-page-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  /* The Gradient surface's wash, on the shared shell too: without this the
     four pages using this class stay flat while the public ones carry it.
     --ot-bg stays a colour, because it is read as one elsewhere. */
  background-color: var(--ot-bg, #ffffff);
  background-image: var(--ot-bg-image, none);
  background-repeat: no-repeat;
  color: var(--ot-text, #111827);
}
.ot-page-shell.is-embedded {
  min-height: 0;
  /* Basis auto, so the page's own height is what the shell's scroller
     measures. With a basis of 0 a long page reports no height and the frame
     has nothing to scroll. */
  flex: 1 0 auto;
}

@media (max-width: 720px) {
  html, body {
    overflow-x: clip;
  }
  img, video, canvas, svg {
    max-width: 100%;
  }
}

/* Stop iOS zooming the page when a field is focused.
 *
 * Safari on iPhone zooms in whenever a focused input's text is under 16px, and
 * does not zoom back out, so the page is left scrolled sideways and the next
 * field is off screen. Every form in the app was doing it: the event editor
 * alone has forty-five fields at 13 to 14px, so creating an event on a phone
 * meant the page lurching on every single tap.
 *
 * Only on small screens, so the denser type on desktop is untouched. It needs
 * !important because most of these sizes are inline styles inside the x-dc
 * templates, which a stylesheet cannot otherwise outrank; the alternative is
 * editing several hundred individual declarations and hoping none are missed.
 *
 * Checkboxes, radios and the like are excluded - font-size does not set their
 * text and can alter their box in some browsers.
 */
@media (max-width: 768px) {
  :root{ --ot-header-h: 56px; }

  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* ── The day-grouped timeline ──────────────────────────────────────────────
 * Shared by the organiser page and the series page. It lived in organiser.html
 * and the series page wanted the same thing; two copies of it would have been
 * two copies to keep in step, and the whole point is that they look alike.
 *
 * Dates are headings said once, with the rows under them carrying only their
 * time - the grid this replaced repeated the full date on every card, so a
 * fortnightly series was twelve dates differing by one number.
 */
  .ot-tl-note{display:flex;align-items:center;gap:7px;font-size:12.5px;color:var(--ot-faint);font-weight:500;margin:0 0 14px;}
  .ot-tl{position:relative;padding-left:20px;}
  .ot-tl::before{content:'';position:absolute;left:4px;top:10px;bottom:10px;width:1px;background:var(--ot-border);}
  .ot-tl-day{position:relative;display:flex;align-items:baseline;gap:8px;margin:26px 0 12px;}
  .ot-tl-day:first-child{margin-top:0;}
  .ot-tl-day-dot{position:absolute;left:-20px;top:5px;width:9px;height:9px;border-radius:999px;background:var(--ot-border-strong);}
  .ot-tl-day-dot.is-next{background:var(--ot-accent);}
  .ot-tl-day-t{font-size:15px;font-weight:800;color:var(--ot-text);}
  .ot-tl-day-s{font-size:12.5px;color:var(--ot-faint);font-weight:500;}
  /* A card each, not rows divided by a hairline. Flush rows with a 1px rule
     between them read as a table; the events are separate things, and at a
     glance the card is what says so. Kept quiet: one border, no shadow until
     the row is hovered, and only where the row is a link. */
  /* Lighter than the page it sits on, and still the colour the page is.
     On a light scheme the ground and the panels are the same tint on purpose,
     with the borders doing the separating - which is right for a table or a
     form, both of which are part of the page. A card in a list of cards is
     not: it wants to sit above the page rather than beside it, and at one
     tint the only thing saying so was a 1px border.

     Mixed toward white rather than set to it, so what comes out is a paler
     wash of whatever the organiser chose - teal stays teal - instead of a
     white slab on a coloured page. The flat background in front of it is what
     a browser without color-mix keeps. */
  .ot-tl-row{display:grid;grid-template-columns:minmax(0,1fr) 72px;gap:16px;align-items:center;
    padding:16px 18px;margin:0 0 10px;background:var(--ot-surface);
    background:color-mix(in srgb, #ffffff 55%, var(--ot-surface));
    border:1px solid var(--ot-border);
    /* The edge does the separating on the light grounds, because the card
       cannot do it: --ot-bg is already near white there, so the 55% white mix
       above lands at 1.03:1 against it and has nowhere further to go. The
       border was 1.14:1 on top of that - a card you had to look for. Darkened
       to 1.57:1, which is the figure the dark ground was taken to, so both
       read the same. --ot-border itself is left alone: it rules tables and
       fields, where a hairline is the right answer.
       The flat declaration in front is what a browser without color-mix keeps,
       and the dark override below replaces both. */
    border-color:var(--ot-border-strong);
    border-color:color-mix(in srgb, #000000 14%, var(--ot-border));
    border-radius:16px;
    text-decoration:none;color:var(--ot-text);
    transition:border-color .15s ease, box-shadow .15s ease;}
  /* White has nowhere lighter to go, so it keeps the flat card above.

     Dark was supposed to lift its panels off its ground and did not. Measured:
     --ot-surface against --ot-bg is 1.04:1 and --ot-border against that card is
     1.27:1, so the page read as one flat sheet with the cards implied by their
     contents and nothing else. Every dark scheme shares those two neutrals, so
     it was every dark series page and every dark ticket list.

     The card is lifted to 1.31:1 off the ground with an edge at 1.56:1, and
     hover brighter again at 2.48:1 so it still has somewhere to go - it did not
     before, because --ot-border-strong on dark (#2a3a5f) is dimmer against a
     lifted card than the resting border needs to be.

     Mixed rather than named, so it stays derived from whatever ground the
     scheme sets rather than pinned to today's neutrals. The flat declaration
     in front of each is what a browser without color-mix keeps. */
  [data-ot-surface="dark"] .ot-tl-row{
    background:var(--ot-surface-2);
    background:color-mix(in srgb, #ffffff 9%, var(--ot-surface));
    border-color:var(--ot-border-strong);
    border-color:color-mix(in srgb, #ffffff 14%, var(--ot-border));
  }
  .ot-tl-row:last-child{margin-bottom:0;}
  a.ot-tl-row:hover{border-color:var(--ot-border-strong);box-shadow:var(--ot-shadow);}
  [data-ot-surface="dark"] a.ot-tl-row:hover{
    border-color:color-mix(in srgb, #ffffff 28%, var(--ot-border));
  }
  a.ot-tl-row:hover .ot-tl-row-title{color:var(--ot-link-hover);}
  .ot-tl-row-body{display:flex;flex-direction:column;gap:2px;min-width:0;}
  .ot-tl-row-when{font-size:12px;font-weight:700;color:var(--ot-link);}
  .ot-tl-row-title{font-size:16px;font-weight:800;line-height:1.25;overflow-wrap:anywhere;}
  .ot-tl-row-place{font-size:13px;color:var(--ot-muted);overflow-wrap:anywhere;}
  .ot-tl-row-price{display:inline-flex;align-self:flex-start;margin-top:6px;padding:3px 9px;border-radius:999px;
    font-size:12px;font-weight:700;background:var(--ot-accent-soft);color:var(--ot-link);}
  .ot-tl-row-thumb{width:72px;height:72px;flex:0 0 72px;border-radius:12px;object-fit:cover;display:block;background:var(--ot-surface-2);}
  .ot-tl-row-thumb.is-blank{display:grid;place-items:center;font-size:24px;font-weight:800;color:var(--ot-link);border:1px solid var(--ot-border);}
  .ot-tl-hosts{display:flex;align-items:center;gap:7px;margin-top:4px;}
  .ot-tl-host-stack{display:inline-flex;}
  .ot-tl-host{width:18px;height:18px;border-radius:999px;border:1.5px solid var(--ot-surface);background:var(--ot-accent-soft);
    color:var(--ot-link);display:grid;place-items:center;font-size:9px;font-weight:800;overflow:hidden;position:relative;}
  .ot-tl-host + .ot-tl-host{margin-left:-6px;}
  .ot-tl-host img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
  .ot-tl-hosts-by{font-size:12.5px;color:var(--ot-muted);font-weight:500;}

  /* Phones. Smaller thumbnail and tighter type, but the card keeps its padding
     - these numbers were written when a row was a flush line of text with a
     rule under it, and 'padding:11px 0' put the thumbnail against the border. */
  @media (max-width:720px){
    .ot-tl-row{grid-template-columns:minmax(0,1fr) 58px;gap:12px;padding:13px 14px;}
    .ot-tl-row-thumb{width:58px;height:58px;flex:0 0 58px;border-radius:10px;}
    .ot-tl-row-title{font-size:15px;}
  }
/* ── Component placeholders ───────────────────────────────────────────────
 *
 * support.js draws a box while a component loads, and its own styling for it
 * is theme-agnostic: an 8% currentColor fill inside a *50%* currentColor
 * border. On these pages currentColor is near-black body text, so the header
 * announced itself as a full-width 60px rectangle in a hard dark outline,
 * every navigation, before the real header replaced it.
 *
 * The runtime prepends its stylesheet (document.head.prepend) precisely so
 * pages can override it. `html` on the selector is belt and braces in case a
 * future build appends instead.
 */
html .sc-placeholder {
  background: var(--ot-surface-2);
  border-color: transparent;
  border-radius: 10px;
}

/* The header and footer are chrome, not content: their space is already
 * reserved by hint-size, so nothing shifts when they arrive. A skeleton for
 * them only draws attention to a gap that is about to close - the title
 * attribute carries the component name, which is what makes this targetable.
 */
html .sc-placeholder[title="Header"],
html .sc-placeholder[title="Footer"] {
  background: transparent;
  border-color: transparent;
}

/* Except for the header's own bar. The header is a component, so on a fresh
 * document it does not exist until support.js has fetched and mounted it - and
 * a cross-document view transition snapshots the new page before that. The bar
 * therefore vanished on every navigation and came back a moment later, which
 * is the one thing that gives away that a page was loaded.
 *
 * Painting the placeholder as the bar itself keeps it there across the join:
 * same surface, same 60px, same hairline. Only its contents fill in.
 *
 * It also claims the transition name, which the real header gives up while it
 * is absent - the two never exist at the same moment, so the name is never
 * held twice, and every frame of the navigation has exactly one header-shaped
 * thing to match against.
 */
html .sc-placeholder[title="Header"] {
  background: var(--ot-surface-2);
  border-bottom: 1px solid var(--ot-border);
  border-radius: 0;
  view-transition-name: ot-header;
}

/* The skeleton lives HERE and not in ot-app.css, where it started.
 * ot-app.css is the app shell's layer and eleven of the pages that wait on
 * data do not link it - the ticket, the subscription, the public series page.
 * Waiting is not an app-shell thing. .sc-placeholder above is the framework's
 * own answer to the same question, and it sits here for the same reason.
 */
/* ── Loading ───────────────────────────────────────────────────────────────
 *
 * The shape of what is coming, rather than a sentence about it.
 *
 * Both report pages opened on one line of grey text in the middle of an empty
 * column - "Working out the numbers..." - and then the whole page arrived at
 * once and pushed it away. A report is four figures and a stack of panels; a
 * line of text says nothing about that, reserves none of it, and makes a slow
 * query look like a page that has not started.
 *
 * The skeleton is built from the REAL classes - .ot-stat-grid, .ot-card
 * .ot-stat, .ot-panel, .ot-nest-grid - with a bar where each piece of text
 * goes. So the tiles are the size the tiles are, the panels break to one
 * column where the panels do, and the two cannot drift apart: change the grid
 * and the skeleton changes with it. Only the bars belong to this file.
 *
 * It is aria-hidden and a live region carries the sentence instead. A screen
 * reader has no use for the shape of a thing, and eleven empty boxes read out
 * as nothing at all.
 */
.ot-skel {
  display: block;
  border-radius: 6px;
  background: var(--ot-skel);
  /* Its own stacking context for the sweep, which is absolutely positioned
     inside it and would otherwise paint over whatever came after. */
  position: relative;
  overflow: hidden;
}
.ot-skel::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--ot-skel-sheen), transparent);
  animation: ot-skel-sweep 1.4s ease-in-out infinite;
}
@keyframes ot-skel-sweep { to { transform: translateX(100%); } }
/* A sweep repeating every 1.4s for as long as a query takes is exactly the
   kind of thing this setting is for. The bars stay; only the light stops. */
@media (prefers-reduced-motion: reduce) { .ot-skel::after { animation: none; } }

/* Each bar the size of the text it stands in for, so nothing jumps when the
   real thing lands. Never all the same length, because a column of identical
   bars reads as a table of nothing rather than as text about to arrive.

   Fixed widths, capped. A percentage needs something to be a percentage OF,
   and .ot-panel-head's first child is a shrink-to-fit flex item whose width
   comes from the heading inside it - so a head made only of percentage-width
   bars measured 0 and the panel loaded with an empty band across its top. */
.ot-skel-k { width: 88px; max-width: 100%; height: 11px; }
.ot-skel-v { width: 126px; max-width: 100%; height: 30px; margin-top: 8px; border-radius: 8px; }
.ot-skel-title { width: 210px; max-width: 100%; height: 18px; }
.ot-skel-sub { width: 320px; max-width: 100%; height: 12px; margin-top: 10px; }
.ot-skel-n { width: 84px; max-width: 100%; height: 20px; margin-top: 8px; border-radius: 7px; }
/* The tile's third line - "9 on subscriptions" under the figure. Without it
   the skeleton tile was 84px against the real one's 104 and the page settled
   20px on arrival, which is the one thing a skeleton is there to stop. */
.ot-skel-s { width: 104px; max-width: 100%; height: 11px; margin-top: 6px; }

/* A list inside a panel or a card.
 *
 * The one piece here that is NOT borrowed from the real layout, because there
 * is nothing shared to borrow: a row is a name and an email on Attendees, a
 * date and an amount on Payouts, a code and a count on Promo codes. Three
 * bars at the rhythm they all roughly share is as close as one shape gets,
 * and a row's job in a skeleton is to say "a list, about this long" rather
 * than to name its columns. */
.ot-skel-rows { display: flex; flex-direction: column; }
.ot-skel-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--ot-border);
}
.ot-skel-row:first-child { border-top: 0; padding-top: 2px; }
.ot-skel-a { flex: 1 1 auto; max-width: 240px; height: 14px; }
.ot-skel-b { flex: none; width: 96px; height: 12px; }
.ot-skel-c { flex: none; width: 60px; height: 12px; margin-left: auto; }
/* Two bars, not three. The middle column is the one every one of these lists
   drops first on a phone, and three bars in 360px is a row of dashes. */
@media (max-width: 560px) { .ot-skel-b { display: none; } }

/* A card of bars, for a page with no shared panel to borrow.
 *
 * The report and the app lists are built from .ot-panel and .ot-card, and a
 * skeleton made of those cannot drift away from the thing it stands in for.
 * The ticket, the subscription, the public series page each draw their own
 * card instead, so there is nothing to borrow and this is the nearest thing:
 * the same fill, border and radius the shared card has, without claiming to
 * be it. */
.ot-skel-card {
  background: var(--ot-surface);
  border: 1px solid var(--ot-border);
  border-radius: var(--ot-r-lg, 16px);
  padding: 18px 19px 20px;
}

/* The sentence, for anything that cannot see the shape. Not display:none -
   that is not announced either. */
.ot-skel-say {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── Icon tools ────────────────────────────────────────────────────────────
 * A round icon button that names itself on hover. Used by the dashboard's
 * preview panel and by the Orders toolbar, which is why it lives here rather
 * than in either of them.
 *
 * data-tip rather than title: the browser's own tooltip arrives after a delay
 * long enough that you have already clicked to find out what the button does.
 */
  .ot-tool{
    position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;
    min-width:40px;height:40px;padding:0 11px;border-radius:12px;
    /* Every tool in a row framed the same: the bin had a border and its
       neighbours did not, so the row read as one button and some loose
       glyphs. */
    background:transparent;border:1px solid var(--ot-border-strong);color:var(--ot-muted);
    cursor:pointer;text-decoration:none;font-family:inherit;font-size:13.5px;font-weight:700;
    transition:background .15s ease,color .15s ease;
  }
  .ot-tool svg{width:21px;height:21px;display:block;}
  .ot-tool:focus-visible{background:var(--ot-accent-soft);color:var(--ot-text);}
  .ot-tool.is-on{background:var(--ot-accent-soft);color:var(--ot-text);}
  .ot-tool[disabled]{opacity:.5;cursor:default;}
  /* Hover only where there is something to hover with.
     A touch screen has no hover-out: the tap leaves :hover on the button until
     something else is tapped, and this rule paints the same accent the .is-on
     state does - so a toggle switched off went on looking switched on. The
     tooltip below was already turned off on touch for the same reason; this is
     the other half of it. :focus-visible stays outside, since that is the
     keyboard and it does not linger. */
  @media (hover: hover){
    .ot-tool:hover{background:var(--ot-accent-soft);color:var(--ot-text);border-color:var(--ot-accent);}
    .ot-tool[disabled]:hover{background:transparent;color:var(--ot-muted);}
  }
  /* Anchored to the button's own edge, not centred on it: centred, the tip on
     the leftmost tool ran past its container and was clipped by it. */
  /* [data-tip], not bare ::after - a tool without one (the close cross in a
     modal, which is named by aria-label alone) was rendering an empty black
     pill on hover. */
  .ot-tool[data-tip]::after{
    content:attr(data-tip);position:absolute;top:calc(100% + 6px);left:0;
    background:var(--ot-text);color:var(--ot-bg);font-size:11.5px;font-weight:600;line-height:1;
    padding:6px 8px;border-radius:7px;white-space:nowrap;pointer-events:none;
    opacity:0;transition:opacity .12s ease;z-index:3;
  }
  .ot-tool.is-right[data-tip]::after{left:auto;right:0;}
  .ot-tool[data-tip]:hover::after,.ot-tool[data-tip]:focus-visible::after{opacity:1;}
  /* A touch screen has no hover-out. Tapping a tool left its tooltip stuck
     open over the row beneath it until something else was tapped, and the tip
     only ever repeated the aria-label, which the button already carries. */
  @media (hover: none){
    .ot-tool[data-tip]::after{content:none;}
  }


/* A setting is a switch.
 *
 * The builder ships its own copy of this as .ne-toggle, inside its own <style>
 * block, and it stays there: those class names are load-bearing in a file that
 * does not load this stylesheet's rules in the same order, and moving them to
 * save eleven lines is a change with no user on the other end. This is the one
 * every other page uses - the same 44x26 track, the same knob, the same
 * reasoning about contrast, which is written out there.
 *
 * Both are excluded from the form-control rule above, which sets background
 * and border with !important: a switch is an input whose whole appearance is
 * its background and border, so that rule paints the track white with a
 * hairline round it and leaves the knob invisible on top.
 */
.ot-toggle-row{
  display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;
  padding:12px 14px;border:1px solid var(--ot-border-strong);border-radius:12px;
  background:var(--ot-surface);cursor:pointer;user-select:none;
}
.ot-toggle-row.is-on{border-color:var(--ot-accent);background:var(--ot-surface-2);}
.ot-toggle-text{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px;}
.ot-toggle-title{font-size:13.5px;font-weight:700;color:var(--ot-text);line-height:1.35;}
.ot-toggle-hint{font-size:12px;font-weight:500;color:var(--ot-muted);line-height:1.4;}
.ot-toggle{
  appearance:none;-webkit-appearance:none;margin:0;flex:0 0 auto;
  width:44px;height:26px;border-radius:999px;cursor:pointer;position:relative;
  border:none;background:var(--ot-switch-off, var(--ot-muted));transition:background .15s ease;
}
.ot-toggle::after{
  content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;
  border-radius:50%;background:var(--ot-switch-knob, var(--ot-surface));transition:transform .15s ease;
}
.ot-toggle:checked{background:var(--ot-accent);}
.ot-toggle:checked::after{background:var(--ot-surface);}
.ot-toggle:checked::after{transform:translateX(18px);}
.ot-toggle:focus-visible{outline:2px solid var(--ot-focus-ring, #b1441f);outline-offset:2px;}
.ot-toggle:disabled{opacity:0.55;cursor:not-allowed;}
@media (prefers-reduced-motion: reduce){
  .ot-toggle, .ot-toggle::after{transition:none;}
}

/* A checkbox, which is a different thing from the switch above.
 *
 * A switch is one setting, taking effect the moment you touch it. A checkbox
 * is one of many, and nothing happens until you say go. A filter list is the
 * second kind, and reaching for .ot-toggle to draw it gives a 44x26 pill with
 * a 20px knob sitting inside a 16px box: the knob spills past the box onto the
 * label, and on :checked slides 18px further across it. The first letter of
 * every ticked row disappears under a white circle.
 *
 * So the class exists to be reached for instead - and because the reset above
 * leaves a plain checkbox with no way to say checked. */
.ot-check{
  appearance:none;-webkit-appearance:none;margin:0;flex:0 0 auto;
  width:16px;height:16px;border-radius:4px;cursor:pointer;position:relative;
  border:1px solid var(--ot-border-strong);background:var(--ot-input-bg, #ffffff);
  transition:background .12s ease, border-color .12s ease;
}
.ot-check:checked{background:var(--ot-accent);border-color:var(--ot-accent);}
/* The tick is drawn rather than set as a character: a glyph would come from
   whatever face the page loaded and sit differently in every one. */
.ot-check:checked::after{
  content:'';position:absolute;left:4.5px;top:1.5px;width:3px;height:7px;
  border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);
}
.ot-check:focus-visible{outline:2px solid var(--ot-focus-ring, #b1441f);outline-offset:2px;}
.ot-check:disabled{opacity:0.55;cursor:not-allowed;}
@media (prefers-reduced-motion: reduce){
  .ot-check{transition:none;}
}

/* Cancel, the same in every pop-up ("ensure all cancel buttons look the
   same, in the same position too"). The grey secondary of the event
   builder's sheets (.ui-btn.is-secondary), here so a page without ot-ui.css
   draws it identically: neutral grey, a quiet edge, never the page's tint.
   It always sits FIRST in the foot - Cancel on the left, the action on the
   right (DESIGN-SYSTEM.md, Pop-ups 11). */
.ot-cancel {
  flex: 1 1 0;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px; box-sizing: border-box;
  border-radius: 8px; border: 1px solid var(--ot-border);
  background: var(--ot-pop-surface-2, #f4f4f5); color: var(--ot-text);
  font: inherit; font-size: 14px; font-weight: 600; line-height: 20px;
  cursor: pointer; white-space: nowrap; text-decoration: none;
}
.ot-cancel:hover { border-color: var(--ot-border-strong); color: var(--ot-text); }
.ot-cancel:focus-visible { outline: 2px solid var(--ot-accent); outline-offset: 2px; }
.ot-cancel[disabled] { opacity: .5; cursor: default; }

/* The shine: words that catch the light, a rainbow crossing them once every
   six seconds and resting on their own colour between passes. Kept for the
   few things worth the eye - Create with AI, the way into the templates, an
   event going live - so it never reads as a sale sign. --shine-base is the
   words' resting colour; .is-silver is for words on a dark button. Plain
   colour where text cannot be clipped to a gradient, and still for reduced
   motion. The blog's template button is the same thing (.bl-shine). */
.ot-shine{color:var(--shine-base, currentColor);}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .ot-shine{
    background:linear-gradient(100deg,var(--shine-base) 0%,var(--shine-base) 32%,var(--shine-1,#e0458a) 41%,var(--shine-2,#4f6bed) 49%,var(--shine-3,#12a07c) 57%,var(--shine-4,#d98b00) 65%,var(--shine-base) 74%,var(--shine-base) 100%);
    background-size:300% 100%;background-position:100% 0;
    -webkit-background-clip:text;background-clip:text;color:transparent;
    text-decoration-color:var(--shine-base);
    animation:ot-shine 6s cubic-bezier(.3,0,.4,1) -.3s infinite;
  }
  .ot-shine.is-silver{--shine-base:#e3e5ec;--shine-1:#ff9ec4;--shine-2:#a3bcff;--shine-3:#8fe3c3;--shine-4:#ffd98c;}
}
@keyframes ot-shine{0%{background-position:100% 0}40%,100%{background-position:0 0}}
@media (prefers-reduced-motion:reduce){ .ot-shine{animation:none;background-position:0 0;} }
