/* Amphitix - base design system ("booking board", light).
   A cool grey wall with white cards; one blue marker for actions; teal / yellow / red
   for go / nearly / stop. Geist throughout. Every page loads this; the venue portal
   adds portal.css on top, the marketing site uses site.css instead, the door app adds
   door.css (its dark scanner screen). Storefronts tint actions with the venue's --brand. */

/* Geist, served from our own site (not Google Fonts: no third party sees each visit).
   Latin + extended Latin only; files and license in static/fonts/. */
@font-face{font-family:'Geist';font-style:normal;font-weight:100 900;font-display:swap;src:url('../fonts/geist-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Geist';font-style:normal;font-weight:100 900;font-display:swap;src:url('../fonts/geist-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url('../fonts/geist-mono-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url('../fonts/geist-mono-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* Venue heading fonts (app/branding.FONTS) - downloaded only on a storefront that uses one. */
@font-face{font-family:'Fraunces';font-style:normal;font-weight:600 800;font-display:swap;src:url('../fonts/fraunces-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:600 800;font-display:swap;src:url('../fonts/fraunces-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Bebas Neue';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/bebas-neue-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Bebas Neue';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/bebas-neue-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500 700;font-display:swap;src:url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500 700;font-display:swap;src:url('../fonts/space-grotesk-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

:root {
  --paper: #eceff3;           /* page ground (the wall) */
  --paper-2: #e3e7ed;         /* quiet fills: bars, tags, hovers */
  --card: #ffffff;
  --ink: #162030;
  --label: #2b3646;
  --dim: #566273;
  --dimmer: #6c7686;          /* placeholders: 4.6:1 on white */
  --faint: #8a94a3;           /* decoration only, never text */
  --line: #dce1e7;
  --line-soft: #edf0f3;
  --hover: #f6f7f9;
  --bone: #162030;            /* alias: primary text */

  /* blue marker: buttons, links, focus (old names kept so every rule follows) */
  --acc: #2350c8; --acc-ink: #1a3d9e; --acc-wash: #e3eafb; --acc-line: #c8d6f7;
  --marquee: var(--acc);
  --marquee-bright: var(--acc);
  --marquee-deep: var(--acc-ink);

  --go: #0d7f72; --go-deep: #0a6157; --go-ink: #0a6157; --go-wash: #d9f0ec;
  --warn: #d99a06; --warn-ink: #7a4f00; --warn-wash: #fcefc9; --warn-line: #f1d891;
  --curtain: #c9352f; --bad: #c9352f; --bad-ink: #a92a25; --bad-wash: #fbe1df;

  /* dark band (CTA bands, tonight bar) */
  --dark: #162030;
  --dark-2: #1f2b40;
  --dark-line: #33415a;
  --dark-text: #eef2f7;
  --dark-dim: #a9b4c4;

  /* legacy sidebar tokens (portal.css re-points these) */
  --booth: #e8ebee;
  --booth-raise: #f6f7f9;
  --booth-line: #dce1e7;
  --booth-hover: rgba(255, 255, 255, .6);

  /* storefront */
  --paper-ink: #162030;
  --paper-line: #dce1e7;

  --shadow-card: 0 1px 2px rgba(22, 32, 48, .06);
  --shadow-pop: 0 14px 34px -18px rgba(22, 32, 48, .35);

  --wrap: 1140px;
  --radius: 10px;
  --radius-lg: 14px;
  --display: 'Geist', system-ui, sans-serif;
  --sans: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans);
  background: var(--paper); color: var(--ink);
  line-height: 1.55; font-size: 16px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
/* The hidden attribute must win over any component display rule. */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
::selection { background: var(--acc-line); }
p { margin: 0 0 1rem; max-width: 62ch; }
.lede { font-size: 1.24rem; color: var(--ink); opacity: .9; line-height: 1.5; }
.muted { color: var(--dim); }

.kicker {
  font-family: var(--sans); font-weight: 600; font-size: .95rem; color: var(--marquee);
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--marquee); border-radius: 2px; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--dark); color: var(--dark-text); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--dark-text); }
.section-dark .muted { color: var(--dark-dim); }
.section-dark .lede { color: var(--dark-text); }
.section-dark .panel { background: var(--dark-2); border-color: var(--dark-line); }
.section-dark .tag { background: var(--dark-2); border-color: var(--dark-line); color: var(--dark-dim); }
/* minmax(0,1fr) so a column never grows past the viewport to fit wide content
   (e.g. a data table); the content scrolls inside instead. */
.grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) {
  .cols-2 { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
.stack-lg > * + * { margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--sans); font-weight: 600; font-size: .95rem; line-height: 1.2;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.15rem; border-radius: 10px; border: 1px solid var(--acc); cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
  background: var(--acc); color: #fff; box-shadow: 0 1px 2px rgba(22,32,48,.12);
}
.btn:hover { background: var(--acc-ink); border-color: var(--acc-ink); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--hover); border-color: #c9d0d8; color: var(--ink); }
.section-dark .btn-ghost { background: transparent; color: var(--dark-text); border-color: var(--dark-line); }
.section-dark .btn-ghost:hover { background: var(--dark-2); }
.btn-lg { padding: .9rem 1.4rem; font-size: 1.05rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-sm { padding: .45rem .8rem; font-size: .88rem; border-radius: 9px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; color: var(--ink); }
.brand .brand-mark { width: 1.45em; height: 1em; flex: none; color: var(--acc); }
.nav-links { display: none; gap: 28px; align-items: center; }
.nav-links a { color: var(--dim); font-weight: 500; font-size: .98rem; }
.nav-links a:hover { color: var(--ink); }
@media (min-width: 880px) { .nav-links { display: flex; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: -20% 20% 40% -10%; z-index: 0; background: radial-gradient(55% 55% at 28% 22%, rgba(35,80,200,.28), transparent 70%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; padding: clamp(48px,7vw,96px) 0 clamp(56px,8vw,110px); }
@media (min-width: 940px) { .hero-inner { grid-template-columns: 1.05fr .95fr; } }
.hero .lede { max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-note { margin-top: 18px; color: var(--dim); font-size: .95rem; }

/* Ticket + scan visual (white ticket on warm paper) */
.stub { position: relative; background: var(--card); color: var(--ink); border-radius: 18px; padding: 26px 26px 22px; box-shadow: 0 40px 80px -34px rgba(22,32,48,.45), 0 2px 0 rgba(0,0,0,.02); border: 1px solid var(--line); }
.stub::before, .stub::after { content: ""; position: absolute; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); top: 50%; transform: translateY(-50%); box-shadow: inset 0 0 0 1px var(--line); }
.stub::before { left: -13px; } .stub::after { right: -13px; }
.stub .perf { border-top: 2px dashed var(--paper-line); margin: 18px -8px 0; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; }
.stub .venue { font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1; }
.stub .row { display: flex; justify-content: space-between; font-size: .9rem; color: var(--dim); margin-top: 4px; }
.stub .qr { display: block; flex: none; width: 92px; height: 92px; padding: 6px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.stub .qr svg { display: block; width: 100%; height: 100%; }
.scanwrap { position: relative; }
.scanline { position: absolute; left: 8%; right: 8%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--go), transparent); top: 10%; opacity: 0; box-shadow: 0 0 16px 2px rgba(13,127,114,.6); }
.scan-badge { position: absolute; right: -10px; bottom: -14px; background: var(--go); color: #fff; font-weight: 700; border-radius: 999px; padding: .5rem .9rem; font-size: .95rem; display: inline-flex; align-items: center; gap: .4rem; opacity: 0; box-shadow: 0 14px 30px -12px rgba(13,127,114,.7); }
@keyframes scanpass { 0%{top:8%;opacity:0} 12%{opacity:1} 60%{top:82%;opacity:1} 72%{opacity:0} 100%{top:82%;opacity:0} }
@keyframes pop { 0%,66%{opacity:0; transform: scale(.9)} 78%{opacity:1; transform: scale(1.05)} 100%{opacity:1; transform: scale(1)} }
.scanline { animation: scanpass 3.4s ease-in-out .6s 1 forwards; }
.scan-badge { animation: pop 3.4s ease-in-out .6s 1 forwards; }
@media (prefers-reduced-motion: reduce) { .scanline { animation: none; opacity: 0; } .scan-badge { animation: none; opacity: 1; } }

/* ---------- Panels / features ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.panel-raise { background: linear-gradient(180deg, var(--card), var(--paper-2)); }
.feature h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.feature p { color: var(--dim); margin: 0; }
.feature .mark { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px; background: rgba(35,80,200,.2); color: var(--marquee-deep); font-family: var(--display); font-weight: 700; font-size: 1.3rem; }

/* Numbered flow (real sequence) */
.flow { display: grid; gap: 0; }
.flow-step { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.flow-step:last-child { border-bottom: 1px solid var(--line); }
.flow-step .num { font-family: var(--display); font-weight: 700; font-size: 2.4rem; color: var(--marquee); line-height: 1; width: 2.2rem; }
.flow-step h3 { margin: .1rem 0 .3rem; }
.flow-step p { color: var(--dim); margin: 0; }

/* Pricing */
.price-ticket { position: relative; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: 0 30px 60px -40px rgba(22,32,48,.4); }
.price-ticket .amount { font-family: var(--display); font-weight: 800; font-size: 4.4rem; line-height: .9; }
.price-ticket .per { color: var(--dim); font-weight: 600; }
.price-ticket ul { list-style: none; padding: 0; margin: 20px 0 0; }
.price-ticket li { display: flex; gap: .6rem; padding: .4rem 0; align-items: flex-start; }
.price-ticket li .tick { color: var(--go); font-weight: 800; }
.price-ticket .perf { border-top: 2px dashed var(--paper-line); margin: 26px -36px 0; }
.founder { background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--marquee-bright); border-radius: 20px; padding: 32px; }
.founder .amount { font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: var(--marquee-deep); }

/* Features grid */
.feature-grid { display: grid; gap: 20px; margin-top: 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.feature-grid .panel { padding: 26px; }
.feature-grid .fhead { display: flex; align-items: center; gap: 10px; }
.ficon { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--marquee-deep); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Pricing plans */
.launch-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 8px 0 28px; padding: 14px 18px; background: var(--card); border: 1px solid rgba(35,80,200,.7); border-radius: var(--radius); }
.plans { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; }
.plan h3 { margin: 0 0 12px; }
.plan-featured { border: 2px solid var(--marquee-bright); box-shadow: 0 30px 60px -40px rgba(22,32,48,.45); }
.plan-price { display: flex; align-items: baseline; gap: 8px; min-height: 3.6rem; }
.plan-price .amount { font-family: var(--display); font-weight: 800; font-size: 3.6rem; line-height: .9; }
.plan-price .per { color: var(--dim); font-weight: 600; }
.plan-price .was { font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--dim); text-decoration: line-through; }
.plan-note { color: var(--dim); font-size: .92rem; margin: 8px 0 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.plan li { display: flex; gap: .6rem; padding: .35rem 0; }
.plan li .tick { color: var(--go); font-weight: 800; }
.plan-custom { background: var(--paper); }

/* Cost calculator */
.calc { margin-top: 24px; padding: 24px; }
.calc-inputs { display: grid; gap: 4px 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); align-items: end; margin-bottom: 8px; }
.calc-toggle { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: .95rem; cursor: pointer; }
.calc-toggle input { width: 18px; height: 18px; accent-color: var(--marquee); }
.calc-table { min-width: 680px; }
.calc-table th.num, .calc-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-table td.total { font-weight: 700; }
.calc-table td.muted { font-size: .9rem; }
.calc-table tr.us-row td { background: rgba(35,80,200,.14); }
.calc-summary { margin: 18px 0 0; font-size: 1.08rem; max-width: none; }

/* Compare */
.compare { width: 100%; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.compare thead th { color: var(--dim); font-weight: 600; font-size: .95rem; }
.compare .us { color: var(--ink); font-weight: 700; }
.compare .us-col { background: rgba(35,80,200,.14); }
.compare .val-yes { color: var(--go-deep); font-weight: 700; }
.compare .val-no { color: var(--dimmer); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-family: var(--display); font-weight: 600; font-size: 1.3rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--marquee); font-family: var(--sans); }
.faq details[open] summary::after { content: "\2013"; }
.faq p { color: var(--dim); margin: 14px 0 0; }

/* CTA band */
.band { background: var(--dark); color: var(--dark-text); border-radius: var(--radius-lg); padding: clamp(36px,5vw,64px); text-align: center; }
.band h2 { color: #fff; }
.band .btn { background: #fff; color: var(--ink); border-color: #fff; box-shadow: none; }
.band .btn:hover { background: var(--acc-wash); color: var(--ink); }

/* Footer */
.footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--dim); }
.footer a { color: var(--dim); } .footer a:hover { color: var(--ink); }
.footer-cols { display: grid; gap: 32px; grid-template-columns: 1.5fr 1fr 1fr; }
@media (max-width: 700px){ .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-family: var(--sans); font-size: .95rem; color: var(--ink); margin: 0 0 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; } .footer li { padding: 4px 0; }

/* Tags */
.tag { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; font-size: .82rem; font-weight: 600; padding: .28rem .7rem; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); color: var(--dim); }
.tag-go { color: var(--go-ink); border-color: transparent; background: var(--go-wash); }
.tag-amber { color: var(--warn-ink); border-color: var(--warn-line); background: var(--warn-wash); }
.tag-red { color: var(--bad-ink); border-color: transparent; background: var(--bad-wash); }

/* Forms */
.field { display: block; margin-bottom: 14px; min-width: 0; }
.field > span { display: block; font-size: .875rem; font-weight: 550; color: var(--label); margin-bottom: 6px; }
.field-note { display: block; margin-top: 6px; font-size: .85rem; color: var(--dim); }   /* a rule under a field */
/* min-width:0 + max-width:100% so fields shrink inside flex rows (date/time
   inputs otherwise keep a UA min-width and blow the row past the viewport). */
input, select, textarea { width: 100%; min-width: 0; max-width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #cfd6de; border-radius: 10px; padding: .7rem .85rem; transition: border-color .15s ease, box-shadow .15s ease; }
input::placeholder { color: var(--dimmer); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--marquee); box-shadow: 0 0 0 3px var(--acc-wash); }
input[type=color] { padding: 4px; height: 44px; }
/* rich-text description editor (admin/_rich_text.html) */
.rte { background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s ease, box-shadow .15s ease; }
.rte:focus-within { border-color: var(--marquee); box-shadow: 0 0 0 3px var(--acc-wash); }
.rte-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line-soft); background: var(--paper); border-radius: 10px 10px 0 0; }
.rte-bar select { width: auto; padding: .35rem .5rem; font-size: .9rem; border-radius: 8px; }
.rte-bar button { background: transparent; border: 1px solid transparent; border-radius: 8px; padding: .35rem .6rem; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; min-width: 34px; }
.rte-bar button:hover { background: var(--paper-2); border-color: var(--line); }
.rte-bar button[aria-pressed=true] { background: var(--booth); border-color: var(--booth-line); }
.rte-area { min-height: 130px; padding: .7rem .85rem; outline: none; line-height: 1.5; overflow-wrap: anywhere; }
.rte-area p { margin: 0 0 .6em; }
.rte-area:empty::before { content: attr(data-placeholder); color: var(--dimmer); }

/* ---------- Portal shell: control-booth sidebar + box-office floor ---------- */
.portal { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.booth {
  background: var(--booth); color: var(--ink);
  display: flex; flex-direction: column; padding: 20px 14px;
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  overflow-y: auto; overscroll-behavior: contain;  /* short windows: scroll to Billing / Log out */
  border-right: 1px solid var(--booth-line);
}
.booth .brand { color: var(--ink); padding: 4px 8px 18px; font-size: 1.4rem; }

.venue-switch { position: relative; margin-bottom: 18px; }
.venue-switch summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--booth-line); }
.venue-switch summary::-webkit-details-marker { display: none; }
.venue-switch .vname { font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.venue-switch .chev { color: var(--dim); font-size: .8rem; }
.venue-switch .menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  background: var(--card); border: 1px solid var(--booth-line); border-radius: 12px; padding: 6px; box-shadow: 0 20px 44px -22px rgba(22,32,48,.4); }
.venue-switch .menu a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--dim); font-size: .92rem; }
.venue-switch .menu a:hover { background: var(--booth-hover); color: var(--ink); }

.dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; flex: none; }

.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px;
  color: var(--dim); font-weight: 500; font-size: .96rem; transition: background .12s, color .12s; }
.nav-link:hover { background: var(--booth-hover); color: var(--ink); }
.nav-link .ico { width: 16px; text-align: center; opacity: .7; }
.nav-link.on { color: var(--marquee-deep); background: rgba(35,80,200,.34); font-weight: 600;
  box-shadow: inset 3px 0 0 var(--marquee-bright); }
.nav-link.on .ico { opacity: 1; }
.nav-link.ext { color: var(--dim); font-size: .9rem; }
.booth hr { border: none; border-top: 1px solid var(--booth-line); margin: 14px 4px; }
.booth-spacer { flex: 1; }

.payout-chip { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px;
  font-size: .88rem; font-weight: 600; margin-bottom: 4px; }
.payout-chip .pdot { width: 8px; height: 8px; border-radius: 50%; }
.payout-none { background: rgba(217,154,6,.14); color: var(--marquee-deep); }
.payout-none .pdot { background: var(--marquee-deep); }
.payout-pending { background: rgba(217,154,6,.12); color: var(--marquee-deep); }
.payout-pending .pdot { background: var(--marquee-deep); animation: pulse 1.6s infinite; }
.payout-active { background: rgba(13,127,114,.16); color: var(--go-deep); }
.payout-active .pdot { background: var(--go); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
@media (prefers-reduced-motion: reduce) { .payout-pending .pdot { animation: none; } }

.booth-acct { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; }
.booth-acct .who { font-size: .82rem; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booth-acct a { color: var(--dim); font-size: .85rem; } .booth-acct a:hover { color: var(--ink); }

.floor { background: var(--paper); min-width: 0; }
/* overflow-x: clip stops an off-edge decoration (e.g. a hint tooltip on the
   rightmost metric tile) from creating phantom horizontal scroll. Doesn't break
   the sticky sidebar (a sibling) or nested .table-scroll containers. */
.floor-inner { max-width: 980px; margin: 0 auto; padding: 34px 32px 80px; overflow-x: clip; }

@media (max-width: 820px) {
  /* Drop the grid on mobile and stack as blocks. A block gives the booth a
     *definite* full width, so the nav's `flex-basis: 100%` resolves correctly
     (against a grid 1fr track it's treated as indefinite and collapses). */
  .portal { display: block; }
  .booth {
    position: static; height: auto; padding: 10px 16px; min-width: 0;
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  }
  .booth .brand { padding: 0; margin-right: auto; order: 0; }
  .venue-switch { margin: 0; order: 1; }
  .payout-link { order: 1; }
  .payout-chip { margin: 0; }
  .booth-acct { margin: 0; order: 1; gap: 14px; }
  .booth-spacer, .booth hr { display: none; }
  /* nav sits full-width below the top row and WRAPS onto multiple rows.
     (Wrapping is overflow-proof - safer than a flex horizontal-scroll strip,
     which fought the flexbox min-width sizing and pushed the page wide.) */
  .nav-group { order: 2; flex: 0 0 100%; max-width: 100%;
    flex-direction: row; flex-wrap: wrap; gap: 4px 6px; }
  .nav-link { white-space: nowrap; padding: 8px 12px; }
  .floor-inner { padding: 24px 16px 60px; }
  .panel { padding: 20px; }
}

/* legacy top-bar shell (auth/operator pages still use it) */
.app { min-height: 100vh; }
.app-top { border-bottom: 1px solid var(--line); background: var(--card); }
.app-top .nav-inner { height: 62px; }
/* Operator header on narrow screens: brand on its own line, the nav buttons wrap below */
@media (max-width: 760px) {
  .app-top .nav-inner { height: auto; flex-wrap: wrap; gap: 8px; padding-block: 10px; }
  .app-top .nav-inner .btn-row { flex-wrap: wrap; gap: 6px; }
}
.app-main { max-width: 1000px; margin: 0 auto; padding: 34px 24px 80px; }
.crumb { color: var(--dim); font-size: .92rem; }
.crumb a:hover { color: var(--ink); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 0 26px; }
.swatch { width: 18px; height: 18px; border-radius: 5px; display: inline-block; }
.list { list-style: none; margin: 0; padding: 0; }
.list-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: none; }
.linkish { color: var(--marquee); font-weight: 600; }
.linkish:hover { color: var(--marquee-deep); }
.code-chip { font-family: var(--mono); background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: .3rem .55rem; font-size: .85rem; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.danger { color: var(--curtain); background: none; border: none; cursor: pointer; font: inherit; }
.danger:hover { text-decoration: underline; }

/* Storefront (paper / box-office) */
.paper { background: var(--paper); color: var(--paper-ink); min-height: 100vh; }
.paper a { color: var(--paper-ink); }
.paper .wrap { max-width: 620px; }
.paper .venue-head { display: flex; align-items: center; gap: 14px; padding: 26px 0; border-bottom: 2px solid var(--brand, #7c3aed); }
.paper .venue-name { font-family: var(--display); font-weight: 700; font-size: 2rem; }
.paper input, .paper select { background: #fff; color: var(--paper-ink); border-color: var(--paper-line); }
.paper input:focus, .paper select:focus { border-color: var(--brand, #7c3aed); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand,#7c3aed) 22%, transparent); }
.show-card { display: block; background: #fff; border: 1px solid var(--paper-line); border-radius: 14px; padding: 18px 20px; margin-bottom: 12px; transition: transform .12s ease, box-shadow .15s ease; }
.show-card:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -30px rgba(22,32,48,.4); }
/* text-shadow keeps the white label legible even if a venue picks a light brand */
.buy-btn { width: 100%; border: none; cursor: pointer; color: var(--brand-ink, #fff); background: var(--brand,#7c3aed); font-family: var(--sans); font-weight: 700; font-size: 1.05rem; padding: 1rem; border-radius: 12px; }
.buy-btn:hover { filter: brightness(1.06); }
.ticket-face { background: #fff; border: 1px solid var(--paper-line); border-radius: 16px; padding: 22px; text-align: center; box-shadow: 0 24px 50px -40px rgba(22,32,48,.4); }
.powered { color: var(--dim); font-size: .82rem; }

/* ---- Storefront, bolder: marquee venue mark + a real ticket + a show list
   that reads as a bill of shows. Built from the system's own ticket vocabulary
   (.stub punch-holes + .perf tear), tinted to the venue's --brand. ---- */
.paper .venue-head .bulb { width: 13px; height: 13px; border-radius: 50%; flex: none;
  background: var(--brand, #7c3aed);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand,#7c3aed) 20%, transparent),
              0 0 16px 2px color-mix(in srgb, var(--brand,#7c3aed) 45%, transparent); }

/* The show page rendered as a ticket. Reuses .ticket-face's shell (border/
   radius/shadow); poster bleeds to the top edge, a perforated tear with
   punch-hole notches divides the show info from the buy stub. */
.sp-ticket { padding: 0; overflow: visible; }
.sp-poster { width: 100%; border-radius: 16px 16px 0 0; display: block; }
.sp-body { padding: 22px; }
.sp-age { margin-top: 10px; }
.sp-desc { color: var(--paper-ink); margin: 14px 0 0; }
.sp-desc > :first-child { margin-top: 0; }
.sp-desc p { margin: 0 0 .75em; }
.sp-desc h3, .rte-area h3 { font-family: var(--display); font-size: 1.45rem; line-height: 1.1; margin: 1em 0 .35em; }
.sp-desc h4, .rte-area h4 { font-family: var(--display); font-size: 1.15rem; line-height: 1.15; margin: .9em 0 .3em; }
.sp-desc ul, .sp-desc ol, .rte-area ul, .rte-area ol { margin: 0 0 .75em; padding-left: 1.3em; }
.sp-desc a { color: var(--brand, var(--marquee)); }
.sp-perf { position: relative; border-top: 2px dashed var(--paper-line); margin: 22px -22px 20px; }
.sp-perf::before, .sp-perf::after { content: ""; position: absolute; top: -13px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--paper-line); }
.sp-perf::before { left: -13px; } .sp-perf::after { right: -13px; }

/* The show list: a date stub + title + status, the soonest show raised. */
.sp-show { display: flex; align-items: center; gap: 16px; background: #fff;
  border: 1px solid var(--paper-line); border-radius: 14px; padding: 15px 18px;
  margin-bottom: 12px; transition: transform .12s ease, box-shadow .15s ease; }
.sp-show:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -30px rgba(22,32,48,.4); }
.sp-when { flex: none; width: 60px; text-align: center; line-height: 1.05; }
.sp-dow { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand, #7c3aed); }
.sp-dm { display: block; font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--paper-ink); }
.sp-time { display: block; font-size: .74rem; color: var(--dim); margin-top: 2px; }
.sp-what { flex: 1; min-width: 0; }
.sp-nextpill { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--brand-ink, #fff); background: var(--brand, #7c3aed);
  border-radius: 999px; padding: .1rem .5rem; margin-bottom: 5px; }
.sp-title { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.05;
  color: var(--paper-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-sub { font-size: .8rem; color: var(--dim); margin-top: 3px; }
.sp-cta { flex: none; text-align: right; }
.sp-go { font-weight: 700; color: var(--brand, #7c3aed); white-space: nowrap; }
.sp-show.is-next { border-color: color-mix(in srgb, var(--brand,#7c3aed) 40%, var(--paper-line));
  background: color-mix(in srgb, var(--brand,#7c3aed) 7%, #fff);
  box-shadow: inset 3px 0 0 var(--brand, #7c3aed); }
@media (max-width: 420px) {
  .sp-show { gap: 12px; padding: 14px; }
  .sp-when { width: 52px; }
  .sp-title { font-size: 1.2rem; }
}
/* Past shows: collapsed and de-emphasized so upcoming leads. */
.past-shows { margin-top: 28px; border-top: 1px solid var(--paper-line); padding-top: 16px; }
.past-shows > summary { cursor: pointer; color: var(--dim); font-weight: 600; list-style: none; }
.past-shows > summary::-webkit-details-marker { display: none; }
.past-shows > summary::before { content: "▸ "; }
.past-shows[open] > summary::before { content: "▾ "; }
.sp-past { opacity: .6; }
.sp-past:hover { opacity: .82; }
.sp-past .sp-dow { color: var(--dim); }

/* Critique round 2: calendar legibility, buy-stub hierarchy, tier ceiling. */
/* Calendar pills wrap to 2 lines (no mid-word truncation); the list⇄calendar
   toggle is desktop-only - phones default to the list view. */
.paper .cal-show { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; line-height: 1.15; }
.paper .cal-show .cal-show-t { font-weight: 700; }
@media (max-width: 680px) { .paper .segmented { display: none; } }

/* Buy stub: collapse the optional promo, and make Total the visual anchor. */
.promo-toggle { margin-bottom: 12px; }
.promo-toggle > summary { cursor: pointer; color: var(--dim); font-weight: 600; font-size: .9rem; list-style: none; }
.promo-toggle > summary::-webkit-details-marker { display: none; }
.promo-toggle > summary::before { content: "▸ "; }
.promo-toggle[open] > summary::before { content: "▾ "; }
.pay-total { display: flex; justify-content: space-between; align-items: baseline;
  margin: 8px 0 2px; padding-top: 12px; border-top: 1px dashed var(--paper-line); }
.pay-total .amt { font-family: var(--display); font-weight: 800; font-size: 1.65rem; color: var(--brand, #7c3aed); }

/* Tier picker never buries the Pay button: cap the height, scroll the rest. */
.tier-list { max-height: 340px; overflow-y: auto; }

/* Inline form error, focusable + scrolled into view on a failed submit. */
.form-error { background: var(--bad-wash); border: 1px solid #efc3c0; color: var(--bad-ink);
  border-radius: 12px; padding: 11px 13px; margin-bottom: 14px; font-size: .92rem; }
.form-error:focus { outline: none; }

/* The address "Map" link reads as a link, not plain text. */
.map-link { color: var(--brand, #7c3aed); font-weight: 600; border-bottom: 1px solid currentColor; }

/* Venue hero: a framed band with the venue-name lockup over a brand scrim, so
   the first impression is the venue (not a bare image) and a show stays near the fold. */
.venue-hero { position: relative; border-radius: 16px; overflow: hidden; margin-top: 22px; }
.venue-hero > img { width: 100%; height: clamp(180px, 34vw, 300px); object-fit: cover; display: block; }
.venue-hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--brand,#7c3aed) 80%, #0b1220) 0%,
              color-mix(in srgb, var(--brand,#7c3aed) 30%, transparent) 34%, transparent 62%); }
.venue-hero-lockup { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; align-items: center; gap: 12px; padding: 18px 20px; }
.venue-hero-logo { height: 40px; width: auto; border-radius: 8px; }
.venue-hero-name { font-family: var(--display); font-weight: 800; line-height: 1; color: #fff;
  font-size: clamp(1.8rem, 5vw, 2.6rem); text-shadow: 0 2px 14px rgba(0,0,0,.55); }

/* Order page: each ticket rendered as a stub (branded header → perforated tear
   → QR), matching the storefront event-page ticket vocabulary. */
.order-ticket { text-align: left; }
.order-ticket.void { opacity: .5; }
.ot-head { padding-bottom: 2px; }
.ot-venue { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand, #7c3aed); }
.ot-show { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.05; color: var(--paper-ink); margin-top: 3px; overflow-wrap: anywhere; }
.ot-when { color: var(--dim); font-size: .85rem; margin-top: 4px; }
.ot-stub { text-align: center; }
.ot-qr { width: 172px; max-width: 100%; height: auto; margin: 0 auto 10px; display: block; }
.ot-transfer { display: inline-block; margin-top: 12px; color: var(--brand, #7c3aed); font-weight: 600; font-size: .9rem; }
/* The tickets on the order page. Phones with more than one ticket: a swipe row, one
   QR at a time, the next one peeking in (scroll-snap - works without the script);
   ui.js (data-deck) adds the "Ticket 2 of 4" counter, dots and arrow buttons. */
.ot-track { gap: 20px; margin-top: 12px; position: relative; }
/* The printable Scan to buy sign (admin/scan_to_buy_sign.html) */
.sign-page { background: #fff; }
.sign-tools { display: flex; justify-content: space-between; gap: 12px; padding: 16px; }
.sign { max-width: 640px; margin: 0 auto; padding: 8px 24px 40px; text-align: center; }
.sign-venue { margin: 0; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand, var(--acc)); }
.sign-h { margin: 6px 0 4px; font-family: var(--display); font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1.05; }
.sign-show { margin: 0 0 18px; color: var(--dim); font-size: 1.15rem; }
.sign-qr { width: min(420px, 82vw); height: auto; display: block; margin: 0 auto 16px; }
.sign-how { margin: 0; font-size: 1.2rem; line-height: 1.45; }
@media print { .sign-tools { display: none; } .sign { padding-top: 0; } }
/* Scan to buy (app/door_sale.py): the storefront checkout opened from the door's QR */
.door-buy-note { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: .9rem; font-weight: 600;
  background: color-mix(in srgb, var(--brand, var(--acc)) 10%, #fff); color: var(--paper-ink); }
/* js/email-hint.js: "Did you mean …?" under an email field */
.email-hint { margin: 6px 0 0; font-size: .9rem; color: var(--dim); }
.email-hint-fix { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; cursor: pointer;
  color: var(--brand, var(--acc)); text-decoration: underline; text-underline-offset: 2px; }
.email-hint-fix:focus-visible { outline: 2px solid var(--brand, var(--acc)); outline-offset: 2px; }
/* Google's "Add to Google Wallet" artwork, untouched: ≥48px tall, ≥8px clear space. */
.gw-btn { display: inline-block; margin: 8px 0; padding: 0; border: 0; background: none;
  cursor: pointer; line-height: 0; border-radius: 100px; }
.gw-btn img { display: block; height: 48px; width: auto; }   /* never squeezed: Google forbids it */
.gw-btn:focus-visible { outline: 2px solid var(--brand, #7c3aed); outline-offset: 3px; }
.gw-btn:disabled { cursor: progress; }
.gw-btn[hidden], .ot-wallet-all[hidden] { display: none; }   /* data-not-ios */
.ot-wallet-all { margin: 14px 0 4px; display: flex; flex-direction: column; align-items: flex-start; }
.ot-wallet-cap { margin: 0; font-weight: 600; font-size: .9rem; color: var(--paper-ink);
  display: flex; align-items: center; gap: .5rem; }
/* ui.js data-busy-label: a submit button while its slow action runs (not .is-busy - that's
   the storefront Pay button's own spinner, .buy-spin) */
button.is-working:not(.gw-btn) { cursor: progress; opacity: .85; filter: none; }
button.is-working:not(.gw-btn)::before, .busy-status.is-working::before { content: ""; width: 1em; height: 1em; flex: none; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: busy-spin .8s linear infinite; }
@keyframes busy-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { button.is-working::before, .busy-status.is-working::before { animation: none; border-right-color: currentColor; opacity: .6; } }
.ot-nav { display: none; }
@media (max-width: 759px) {
  .ot-deck.is-deck .ot-track { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 12px -24px 0; padding: 2px 24px 14px; scroll-padding-inline: 24px; }
  .ot-deck.is-deck .ot-track::-webkit-scrollbar { display: none; }
  .ot-deck.is-deck .order-ticket { flex: 0 0 calc(100% - 22px); scroll-snap-align: center; scroll-snap-stop: always; }
  .ot-deck.is-deck .ot-nav:not([hidden]) { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
}
.ot-count { font-weight: 600; font-size: .9rem; color: var(--paper-ink); font-variant-numeric: tabular-nums; }
.ot-dots { display: flex; gap: 6px; flex: 1; }
.ot-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--paper-line); transition: background .15s, transform .15s; }
.ot-dots i.on { background: var(--brand, #7c3aed); transform: scale(1.25); }
.ot-arrows { display: flex; gap: 8px; }
.ot-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--paper-line); background: var(--card);
  display: inline-grid; place-items: center; color: var(--paper-ink); cursor: pointer; }
.ot-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ot-arrow:disabled { opacity: .35; cursor: default; }
.ot-arrow:focus-visible { outline: 2px solid var(--brand, #7c3aed); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ot-dots i { transition: none; } }

/* Tier picker: selectable ticket-type cards (replaces an overloaded <select> so
   price and scarcity are scannable, not buried in a truncating option string). */
.tier-list { border: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.tier-legend { display: block; font-size: .9rem; color: var(--dim); margin-bottom: 6px; padding: 0; }
.tier-opt { display: flex; align-items: center; gap: 12px; cursor: pointer; background: #fff;
  border: 1px solid var(--paper-line); border-radius: 12px; padding: 12px 14px;
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease; }
.tier-opt:hover { border-color: color-mix(in srgb, var(--brand,#7c3aed) 45%, var(--paper-line)); }
.tier-opt input { width: auto; flex: none; margin: 0; accent-color: var(--brand, #7c3aed); }
.tier-opt:has(input:checked) { border-color: var(--brand, #7c3aed);
  box-shadow: inset 0 0 0 1px var(--brand, #7c3aed), 0 10px 24px -20px rgba(22,32,48,.5);
  background: color-mix(in srgb, var(--brand,#7c3aed) 5%, #fff); }
.tier-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; }
.tier-name { font-weight: 700; color: var(--paper-ink); }
.tier-price { flex: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--paper-ink); }
.tier-opt.is-off { opacity: .62; cursor: not-allowed; }
.tier-opt.is-off .tier-price { text-decoration: line-through; }

/* Harden: submit feedback (prevent double-submit + name the hand-off) and
   long-text resilience so real venue/show/tier names don't blow the layout. */
.buy-btn { display: flex; align-items: center; justify-content: center; gap: .55rem; }
.buy-btn:disabled { opacity: .9; cursor: default; }
.buy-spin { width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--brand-ink, #fff) 45%, transparent); border-top-color: var(--brand-ink, #fff);
  animation: buyspin .7s linear infinite; display: none; }
.buy-btn.is-busy .buy-spin { display: inline-block; }
@keyframes buyspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .buy-spin { animation: none; } }
.pay-reassure { text-align: center; color: var(--dim); font-size: .85rem; margin: 10px 0 0; }
.pay-legal { text-align: center; color: var(--dim); font-size: .8rem; line-height: 1.45; margin: 10px 0 0; }
.pay-legal a, .powered a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.qty-hint { color: var(--marquee-deep); font-size: .8rem; margin-top: 6px; font-weight: 600; }
.paper .venue-head { flex-wrap: wrap; }
.paper .venue-name, .tier-name, .sp-body h1, .sp-desc { overflow-wrap: anywhere; }
/* Storefront placeholders to AA (base --dimmer is ~3.3:1 on white - too faint). */
.paper input::placeholder, .paper textarea::placeholder { color: var(--dimmer); }

/* Polish: comfortable touch targets, brand-tinted browser surfaces, and a
   calendar that reads (time always; title drops on narrow screens vs truncating). */
.paper .cal-nav { width: 44px; height: 44px; }
.paper .seg { min-height: 44px; display: inline-flex; align-items: center; }
.paper :focus-visible { outline-color: var(--brand, #7c3aed); }
.paper ::selection { background: color-mix(in srgb, var(--brand,#7c3aed) 22%, transparent); }
@media (max-width: 680px) {
  .cal-cell { min-height: 74px; }
  .cal-show { font-size: .66rem; padding: 3px 5px; }
  .cal-show .cal-show-n { display: none; }
}

/* Metrics / analytics */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.metric { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.metric .n { font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; }
.metric .l { color: var(--dim); font-size: .9rem; margin-top: 6px; }
.metric .n.amber { color: var(--marquee-deep); }
.metric .n.go { color: var(--go-deep); }
.bar { height: 10px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--marquee-bright); border-radius: 999px; }
.bar.go > span { background: var(--go); }
/* Wrap wide tables so they scroll horizontally instead of stretching the page. */
.table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; min-width: 0; max-width: 100%; }
.data { width: 100%; border-collapse: collapse; }
.data th, .data td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.data th { color: var(--dim); font-weight: 600; }
.data td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Responsive dashboard split */
.split { display: grid; gap: 28px; align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .split { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); } }

/* Calendar */
.cal-head { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 14px; }
.cal-label { font-family: var(--display); font-weight: 700; font-size: 1.5rem; min-width: 200px; text-align: center; }
.cal-nav { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-size: 1.2rem; background: var(--card); }
.cal-nav:hover { background: var(--paper-2); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-wd { text-align: center; font-size: .78rem; font-weight: 600; color: var(--dim); padding: 4px 0; }
.cal-cell { background: var(--card); border: 1px solid var(--line); border-radius: 10px; min-height: 92px; padding: 6px; display: flex; flex-direction: column; gap: 3px; }
.cal-empty { background: transparent; border-color: transparent; }
.cal-today { border-color: var(--marquee-bright); box-shadow: inset 0 0 0 1px var(--marquee-bright); }
.cal-day { font-size: .8rem; font-weight: 600; color: var(--dim); }
.cal-today .cal-day { color: var(--marquee-deep); }
.cal-show { display: block; font-size: .72rem; font-weight: 600; color: var(--brand-ink, #fff); padding: 3px 6px; border-radius: 6px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-show:hover { filter: brightness(1.08); }
.cal-show-off { background: var(--paper-2) !important; color: var(--dimmer); text-decoration: line-through; }
.cal-show-pick { display: flex; align-items: center; gap: 5px; }
.cal-show-pick input { width: auto; flex: none; margin: 0; accent-color: #fff; }
.cal-show-pick a { color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 680px) {
  .cal-cell { min-height: 64px; }
  .cal-show { font-size: .62rem; }
}

/* Segmented control (period filter) */
.segmented { display: inline-flex; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg { padding: .4rem .9rem; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--dim); white-space: nowrap; }
.seg:hover { color: var(--ink); }
.seg-on { background: var(--card); color: var(--ink); box-shadow: 0 2px 6px -2px rgba(22,32,48,.25); }

/* First-run checklist - a compact, collapsible card (one line when collapsed). */
.setup-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 22px; }
.setup-card > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.setup-card > summary::-webkit-details-marker { display: none; }
.setup-title { font-weight: 700; }
.setup-prog { color: var(--dim); font-size: .85rem; font-variant-numeric: tabular-nums; }
.setup-bar { flex: 1; height: 6px; background: var(--paper-2); border-radius: 999px; overflow: hidden; max-width: 220px; }
.setup-bar > span { display: block; height: 100%; background: var(--go); }
.setup-card .chev { color: var(--dim); font-size: .8rem; transition: transform .15s; }
.setup-card[open] .chev { transform: rotate(180deg); }
.checklist { list-style: none; margin: 0; padding: 2px 16px 12px; }
.checklist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .92rem; }
.checklist .step { display: flex; align-items: center; gap: 9px; }
.checklist .mark { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; font-size: .72rem; background: var(--paper-2); color: var(--dim); flex: none; }
.checklist li.done .mark { background: var(--go); color: #fff; }
.checklist li.done .label { color: var(--dim); text-decoration: line-through; }
.copyrow { display: flex; gap: 8px; align-items: center; }
.copyrow input { font-family: var(--mono); font-size: .82rem; background: var(--paper-2); }

/* Overview: highlighted upcoming-show rows */
.up-row { display: flex; align-items: center; gap: 14px; padding: 12px 8px; margin: 0 -8px; border-top: 1px solid var(--line); border-radius: 10px; color: inherit; transition: background .12s; }
.up-row:first-of-type { border-top: none; }
.up-row:hover { background: var(--paper-2); }
.up-row.next { background: rgba(35,80,200,.10); box-shadow: inset 3px 0 0 var(--marquee-bright); }
.up-date { flex: none; width: 46px; text-align: center; }
.up-dow { font-size: .7rem; color: var(--dim); text-transform: uppercase; letter-spacing: .04em; }
.up-dm { font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1; }
.up-main { flex: 1; min-width: 0; }
.up-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-bar { height: 6px; background: var(--paper-2); border-radius: 999px; overflow: hidden; margin-top: 7px; }
.up-bar > span { display: block; height: 100%; background: var(--go); }
.up-bar > span.full { background: var(--curtain); }
.up-meta { flex: none; text-align: right; min-width: 76px; }
.up-sold { font-weight: 700; font-variant-numeric: tabular-nums; }
.up-status { font-size: .74rem; color: var(--dim); margin-top: 2px; }

/* Slim bulk-action toolbar (shows list/calendar) - actions reveal on selection */
.bulkbar { display: flex; align-items: center; gap: 12px; padding: 4px 2px 12px; margin-bottom: 10px; border-bottom: 1px solid var(--line); font-size: .88rem; }
.bulkbar-all { display: flex; align-items: center; gap: 6px; color: var(--dim); cursor: pointer; white-space: nowrap; }
.bulkbar-all input { width: auto; }
.bulkbar-act { display: flex; align-items: center; gap: 8px; }
.bulkbar-act select { width: auto; padding: .4rem .6rem; font-size: .85rem; }

/* Scrollable multi-select checkbox list (e.g. "which shows does this code apply to") */
.pick-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px 6px; }
.pick-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; cursor: pointer; font-size: .92rem; }
.pick-row:hover { background: var(--paper-2); }
.pick-row input { width: auto; flex: none; }

/* Inline tier rows on the create/edit-show forms (name + price + optional cap). */
.tier-edit-row, .tier-add-form { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.tier-edit-row input[name=tier_name], .tier-add-form input[name=name] { flex: 2; min-width: 0; }
.tier-edit-row input[name=tier_price], .tier-edit-row input[name=tier_cap],
.tier-add-form input[name=price], .tier-add-form input[name=capacity] { flex: 1; min-width: 0; }
.tier-edit-row .tier-del { flex: none; padding: .45rem .7rem; }
@media (max-width: 540px) { .tier-edit-row, .tier-add-form { flex-wrap: wrap; } }

/* Toasts (flash messages) */
.toasts { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast { display: flex; align-items: flex-start; gap: 10px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--go); border-radius: 12px; padding: 12px 16px; box-shadow: 0 18px 40px -22px rgba(22,32,48,.5); font-size: .95rem; animation: toast-in .25s ease; }
.toast.err { border-left-color: var(--curtain); }
.toast-x { flex: none; background: none; border: none; cursor: pointer; color: var(--dim); font-size: 1.2rem; line-height: 1; padding: 0 2px; width: auto; }
.toast-x:hover { color: var(--ink); }
.toast.info { border-left-color: var(--marquee-bright); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* Hover hint / tooltip - pairs with a `data-tip` attribute for the text. */
.hint { position: relative; cursor: help; border-bottom: 1px dotted var(--dimmer); }
.hint::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  width: max-content; max-width: 250px; white-space: normal; text-align: left;
  background: var(--ink); color: #fff; font-size: .76rem; font-weight: 400; line-height: 1.4;
  padding: 8px 10px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.18);
  opacity: 0; pointer-events: none; transition: opacity .12s ease; z-index: 30;
}
.hint::before {
  content: ""; position: absolute; left: 50%; bottom: calc(100% + 2px); transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--ink);
  opacity: 0; pointer-events: none; transition: opacity .12s ease; z-index: 30;
}
.hint:hover::after, .hint:focus::after,
.hint:hover::before, .hint:focus::before { opacity: 1; }
/* With ui.js the hint is one floating box on <body> instead (never clipped by a card). */
.tips-js .hint::after, .tips-js .hint::before { display: none; }
.tip-float {
  position: fixed; z-index: 1000; max-width: 250px; white-space: normal; text-align: left;
  background: var(--ink); color: #fff; font-size: .76rem; font-weight: 400; line-height: 1.4;
  padding: 8px 10px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.18); pointer-events: none;
}

/* Utilities */
.center { text-align: center; }
.mt-0{margin-top:0} .mb-0{margin-bottom:0}
:focus-visible { outline: 2px solid var(--marquee); outline-offset: 2px; }

/* ---------- Admin show page: summary, action rail, tiers ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-danger { background: var(--curtain); border-color: var(--curtain); color: #fff; box-shadow: none; }
.btn-danger:hover { background: var(--bad-ink); color: #fff; }
.text-link { background: none; border: 0; padding: 0; font: inherit; color: var(--marquee-deep); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--ink); }

.show-page { container-type: inline-size; }
.show-head { align-items: flex-start; margin-bottom: 22px; }
.show-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 10px 0 0; color: var(--dim); }
.show-summary { margin-bottom: 28px; }
.show-summary .bar { margin-top: 14px; }
.bar-caption { margin: 6px 0 0; font-size: .85rem; color: var(--dim); }

.show-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.show-rail { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.show-main { display: grid; gap: 24px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
@container (min-width: 860px) {
  .show-layout { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "main rail"; }
  .show-rail { grid-area: rail; }
  .show-main { grid-area: main; }
}

.rail-card { padding: 22px; display: grid; gap: 14px; }
.rail-h { font-size: 1.4rem; margin: 0; }
.rail-note { color: var(--dim); font-size: .88rem; margin: 0; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .92rem; }
.waitlist { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.chip-copy { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.chip-copy .copy-lbl { font-size: .82rem; font-weight: 600; color: var(--marquee-deep); }
.chip-copy:hover .copy-lbl { color: var(--ink); }

.bo-tabs { display: flex; width: 100%; }
.bo-tabs .seg { flex: 1; background: none; border: 0; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.bo-tabs .seg[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 2px 6px -2px rgba(22,32,48,.25); }
.bo-tabs .seg:focus-visible { outline: 2px solid var(--marquee); outline-offset: 1px; }
.bo-pane { display: grid; gap: 12px; }
.bo-tabs .seg { white-space: normal; line-height: 1.2; padding-left: 6px; padding-right: 6px; }  /* 3 tabs in the rail */

.bo-map { justify-self: center; font-size: .88rem; }  /* reserved seating: the seat-map link */
/* phone holds (admin/show.html #holds) */
.hold-list { display: grid; gap: 0; margin: 10px 0 0; }
.hold-row { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.hold-row:first-child { border-top: 0; padding-top: 4px; }
.hold-who { overflow-wrap: anywhere; font-size: .95rem; }
.hold-who .tier-sub { display: block; margin-top: 2px; }
.hold-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hold-acts form { margin: 0; }
.hold-past { margin-top: 10px; }
.hold-past summary { cursor: pointer; font-size: .88rem; }

.form-tight { display: grid; gap: 12px; }
.form-tight .field, .add-tier-form .field { margin-bottom: 0; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row .grow { flex: 1 1 160px; }
.field-row .qty { flex: 0 0 76px; }
.field-row .w-price { flex: 0 1 150px; }

.pay-opts { border: 0; padding: 0; margin: 0; min-width: 0; }
.pay-opts legend { font-size: .9rem; color: var(--dim); margin-bottom: 6px; padding: 0; }
.pay-opts .segmented { display: flex; width: 100%; }
.seg-radio { flex: 1; position: relative; }
.seg-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-radio span { display: block; text-align: center; padding: .45rem .6rem; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--dim); cursor: pointer; }
.seg-radio span:hover { color: var(--ink); }
.seg-radio input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 2px 6px -2px rgba(22,32,48,.25); }
.seg-radio input:focus-visible + span { outline: 2px solid var(--marquee); outline-offset: 1px; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.tier-table { min-width: 460px; }
.tier-table th, .tier-table td { padding: 12px 8px; }
.tier-table td:last-child { white-space: nowrap; }
.tier-table td { vertical-align: top; }
.tier-table .danger { color: var(--dim); font-size: .88rem; }
.tier-table .danger:hover, .tier-table .danger:focus-visible { color: var(--curtain); }
.tier-name { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tier-sub { display: block; font-size: .8rem; color: var(--dim); margin-top: 3px; font-weight: 400; }
button.text-link.tier-sub { color: var(--marquee-deep); font-weight: 600; }
.add-tier { margin-top: 16px; }
.add-tier > summary { list-style: none; display: inline-flex; }
.add-tier > summary::-webkit-details-marker { display: none; }
.add-tier[open] > summary { display: none; }
.add-tier-form { display: grid; gap: 14px; padding: 18px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; }
.check input { width: auto; flex: none; margin-top: 4px; accent-color: var(--marquee); }

.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 20px 22px; border: 1px solid rgba(201,53,47,.35); border-radius: var(--radius-lg); }
.dz-h { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 0 0 4px; }

/* ---------- Admin orders: filters, sortable headers, pager ---------- */
.summary-scope { margin: -8px 0 12px; color: var(--dim); font-size: .92rem; }
.order-filters { display: grid; gap: 12px 14px; align-items: end; margin-bottom: 16px; padding: 18px 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.order-filters .field { margin-bottom: 0; }
.order-filters .of-search { grid-column: 1 / -1; }
.of-actions { display: flex; gap: 8px; align-items: center; }
@media (min-width: 1100px) {
  .order-filters { grid-template-columns: minmax(220px, 1.6fr) 1.4fr 1fr 1fr auto; }
  .order-filters .of-search { grid-column: auto; }
}
.of-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.of-count { margin: 0; color: var(--dim); font-size: .88rem; font-variant-numeric: tabular-nums; }
.orders-table { min-width: 760px; }
.orders-table td { vertical-align: top; }
.orders-table .nowrap { white-space: nowrap; }
.orders-table .show-col { min-width: 170px; }
.floor-inner.floor-wide { max-width: 1240px; }
.row-actions { justify-content: flex-end; gap: 6px; min-width: 150px; }
.sort-h { display: inline-flex; align-items: center; gap: 4px; color: inherit; }
.sort-h:hover, .sort-h.on { color: var(--ink); }
.sort-ind { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: transform .15s ease; }
.sort-h:hover .sort-ind { opacity: .45; }
.sort-h.on .sort-ind { opacity: 1; }
.sort-ind.desc { transform: rotate(180deg); }
th.num .sort-h { justify-content: flex-end; }
.row-link:hover { color: var(--marquee-deep); text-decoration: underline; text-underline-offset: 3px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: .9rem; }

/* ---------- Admin shows list: filters, when-tabs, row meta ---------- */
@media (min-width: 1100px) {
  .show-filters { grid-template-columns: minmax(220px, 2fr) 1fr 1fr auto; }
}
.when-bar { margin: 0 0 12px; }
.when-bar .seg { display: inline-flex; align-items: center; gap: 6px; }
.seg-n { font-size: .78rem; font-weight: 600; color: var(--dim); background: var(--paper-2); border-radius: 999px; padding: 0 .45rem; font-variant-numeric: tabular-nums; }
.seg-on .seg-n { background: var(--paper); color: var(--ink); }
.show-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 4px; font-size: .82rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.mini-bar { width: 56px; height: 5px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.mini-bar > span { display: block; height: 100%; background: var(--marquee-bright); }

/* Overview: tonight's show → straight to the door */
.tonight-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--dark); color: var(--dark-text); border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 16px; }
.tonight-k { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9fb6f2; }
.tonight-t { font-weight: 600; font-size: 1.05rem; }

/* Show page: volunteer door links */
.pass-reveal { display: grid; gap: 10px; padding: 14px; border-radius: var(--radius); background: rgba(13,127,114,.1); border: 1px solid rgba(13,127,114,.4); }
.pass-reveal-h { margin: 0; font-weight: 700; }
.pass-pin { font-family: var(--mono); font-size: 1.15rem; letter-spacing: .08em; }
.door-links > summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
.door-links[open] > summary { margin-bottom: 10px; }
.door-links { display: grid; gap: 10px; }
.pass-row { padding: 6px 0; border-top: 1px solid var(--line); }
.door-stat { padding: 10px 12px; background: var(--paper-2); border-radius: var(--radius); }
.door-doubles > summary { cursor: pointer; list-style: none; }
.door-doubles > summary::-webkit-details-marker { display: none; }
.door-doubles[open] > summary { margin-bottom: 8px; }

/* Portal: venue paused by a downgrade */
.paused-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; margin-bottom: 18px; border-radius: var(--radius); font-size: .92rem;
  background: rgba(217,154,6,.12); border: 1px solid rgba(217,154,6,.35); }

/* Billing: plan choices */
.plan-choice { display: flex; flex-direction: column; padding: 24px; }
.plan-choice.is-current { border-color: var(--go); box-shadow: inset 0 0 0 1px var(--go); }
.plan-choice-price { font-family: var(--display); font-weight: 800; font-size: 2rem; margin: 10px 0 4px; color: var(--ink); }
.plan-choice-price s, .plan-choice-price .muted { font-size: 1.1rem; font-weight: 600; }

/* ---------- Auth pages (log in, sign up, password, operator login, errors) ----------
   A white card on the wall, the brand top-left; sign-up adds a dark "what's included"
   panel beside the form on wide screens. */
.auth-ui { background: var(--paper); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 64px; padding-inline: 24px; }
.auth-top-link { font-size: .92rem; color: var(--dim); text-align: right; }
.auth-main { flex: 1; display: flex; justify-content: center; align-items: flex-start; gap: 24px;
  padding: clamp(16px, 6vh, 64px) 16px 56px; }
.auth-col { width: 100%; max-width: 432px; min-width: 0; }
.auth-col-wide { max-width: 480px; }
.auth-card { background: var(--card); border-radius: 16px; padding: 32px;
  box-shadow: 0 1px 2px rgba(22,32,48,.06), 0 22px 44px -30px rgba(22,32,48,.4); }
.auth-card h1 { font-size: 1.75rem; letter-spacing: -.03em; margin: 0 0 6px; }
.auth-sub { color: var(--dim); margin: 0 0 24px; }
.auth-small { font-size: .875rem; }
.auth-link { color: var(--acc); font-weight: 600; }
.auth-link:hover { color: var(--acc-ink); text-decoration: underline; text-underline-offset: 3px; }
.auth-alt { text-align: center; margin: 18px auto 0; color: var(--dim); font-size: .95rem; }
.auth-card .stack-lg > * + * { margin-top: 16px; }
.auth-card .field { margin-bottom: 0; }
.field-head { display: flex !important; align-items: baseline; justify-content: space-between; gap: 10px; }
.field-head .auth-link { font-weight: 550; }
.auth-agree { color: var(--dim); font-size: .875rem; line-height: 1.45; }
.auth-agree input { accent-color: var(--acc); }
@media (max-width: 520px) {
  .auth-top { padding-inline: 16px; }
  .auth-top-link { display: none; }
  .auth-card { padding: 24px 20px; }
}

/* sign-up plan picker */
.plan-pick { --brand: var(--acc); margin: 0; }
.plan-pick-sub { color: var(--dim); font-size: .85rem; }
.plan-pick-was { color: var(--dim); font-size: .85rem; font-weight: 500; }
.plan-pick-per { color: var(--dim); font-size: .8rem; font-weight: 500; }
.plan-pick-note { color: var(--dim); font-size: .82rem; margin: 2px 0 0; }
.plan-pick .tier-price { font-family: var(--sans); font-weight: 650; letter-spacing: -.01em; }

/* sign-up: what's included */
.auth-aside { display: none; }
@media (min-width: 960px) {
  .auth-aside { display: block; width: 360px; flex: none; background: var(--dark); color: var(--dark-text);
    border-radius: 16px; padding: 32px; position: sticky; top: 24px; }
}
.auth-aside-k { margin: 0 0 10px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #9fb6f2; }
.auth-aside-h { margin: 0 0 22px; font-size: 1.75rem; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; color: #fff; }
.auth-aside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.auth-aside-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; line-height: 1.45; }
.auth-aside-list svg { width: 20px; height: 20px; flex: none; margin-top: 1px; fill: none; stroke: #5fd3c1;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth-aside-fine { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--dark-line);
  font-size: .82rem; color: var(--dark-dim); }

/* error pages */
.err-card { text-align: center; }
.err-code { margin: 0 0 6px; font-size: 3.5rem; font-weight: 700; letter-spacing: -.05em; line-height: 1; color: var(--acc); font-variant-numeric: tabular-nums; }
.err-card .auth-sub { margin-inline: auto; }


/* find my tickets */
.find-result { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.find-result .auth-sub { margin-bottom: 8px; }
.find-list { list-style: none; margin: 0; padding: 0; }
.find-list li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.find-list li span { color: var(--dim); font-size: .85rem; }
.find-sent { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--go-wash); color: var(--go-ink); font-size: .95rem; }

/* storefront: the venue's dot is flat (no glow), the view toggle is a quiet segmented control */
.paper .venue-head .bulb { box-shadow: inset -2px -3px 0 rgba(0,0,0,.18); }
button.seg { border: 0; background: none; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
button.seg.seg-on { background: var(--card); }

/* operator console header */
.op-tag { color: var(--dim); font-size: .85rem; font-weight: 500; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; }
.op-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: var(--bad, #c0392b); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.portal-ui .app-top { background: var(--card); }
.portal-ui .app-main { max-width: 1120px; }
/* show list on phones: the date never wraps; a long title gets two lines instead of an ellipsis */
.sp-dm { white-space: nowrap; }
@media (max-width: 420px) {
  .sp-when { width: 58px; }
  .sp-dm { font-size: 1.15rem; }
  .sp-show .sp-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 1.1rem; line-height: 1.2; }
  .sp-go { font-size: .92rem; }
}
/* a hint under a field's label + control */
.field > span ~ span, .field > span ~ small { display: block; font-size: .82rem; font-weight: 400; color: var(--dim); margin: 6px 0 0; }

/* policy wording (generated by app/policies.py) on the event, order and refund pages */
.pol-lines { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 3px; color: var(--dim); font-size: .85rem; text-align: center; }
.pol-box { margin-top: 22px; }
.pol-box .pol-lines { text-align: left; margin-top: 8px; }
.pol-act { margin: 0 0 6px; }
.pol-refund { color: var(--curtain) !important; font-weight: 600; }
.pol-why { color: var(--dim); font-size: .88rem; }

/* ---------- Venue theming (app/branding.py, docs/FEATURE-BRANDING.md) ----------
   The storefront <body> carries theme-light|theme-dark and font-<key>, and sets --brand,
   --brand-ink (black or white, whichever reads on the brand colour), --accent (headings)
   and --display (heading font). The dark theme re-points the colour tokens; rules that
   hard-code white get a dark twin here. */
.paper { --card: #fff; }
.paper.font-marquee :is(h1, h2, h3, .venue-name, .venue-hero-name, .sp-title, .pay-total .amt) {
  font-weight: 400; letter-spacing: .02em; }
.paper.font-marquee :is(h1, .venue-name) { font-size: 1.12em; }
/* the banner name has its own size (an em here would shrink it to the text around it) */
.paper.font-marquee .venue-hero-name { font-size: clamp(2rem, 5.6vw, 2.9rem); }

.paper.theme-dark {
  --paper: #121821; --paper-2: #1a2230; --card: #1a2230;
  --paper-ink: #e8edf4; --ink: #e8edf4; --bone: #e8edf4; --label: #cfd7e2;
  --dim: #a7b2c1; --dimmer: #8f9aab; --faint: #6b7687;
  --line: #2c3748; --line-soft: #212b3a; --paper-line: #2f3b4e; --hover: #1d2633;
  color-scheme: dark;
}
.paper.theme-dark :is(.ticket-face, .sp-show, .tier-opt) { background: var(--card); }
.paper.theme-dark input, .paper.theme-dark select, .paper.theme-dark textarea {
  background: #0f141c; color: var(--paper-ink); border-color: var(--paper-line); }
.paper.theme-dark .sp-show.is-next { background: color-mix(in srgb, var(--brand) 12%, var(--card)); }
.paper.theme-dark .tier-opt:has(input:checked) { background: color-mix(in srgb, var(--brand) 12%, var(--card)); }
.paper.theme-dark .door-buy-note { background: color-mix(in srgb, var(--brand) 16%, var(--card)); }
.paper.theme-dark .ticket-face, .paper.theme-dark .sp-show { box-shadow: 0 24px 50px -40px rgba(0, 0, 0, .8); }

/* After a purchase, for venues with a pixel (storefront/thanks.html) */
.thanks-wrap { max-width: 560px; }
.thanks-card { margin-top: 22px; text-align: center; padding: 32px 24px; }
.thanks-mark { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  border-radius: 50%; background: var(--go-wash); color: var(--go); margin-bottom: 10px; }
.thanks-h { font-family: var(--display); font-size: 2rem; margin: 0 0 8px; color: var(--accent); }
.thanks-show { margin: 0 0 6px; line-height: 1.5; }
.thanks-sub { color: var(--dim); margin: 0 0 20px; }
.thanks-btn { width: 100%; max-width: 320px; }


/* ---------- the demo deployment (app/demo/; DEMO_MODE only) ---------- */
.demo-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--acc); color: #fff;
  font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
/* storefront and ticket pages: fixed, with its own colours (the venue's theme may be dark) */
.demo-store-bar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); padding: 7px 14px 7px 8px;
  border-radius: 999px; background: #162030; color: #e8ebee; font: 500 13px/1.3 'Geist', system-ui, sans-serif;
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .5); }
.demo-store-bar .demo-pill { background: #2350c8; }
body:has(> .demo-store-bar) { padding-bottom: 64px; }   /* the end of the page stays clear of it */
.demo-store-bar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
/* welcome, landing and "link ended" pages (auth shell) */
.demo-kicker { margin: 0 0 12px; color: var(--dim); font-size: .9rem; }
.demo-h2 { font-size: 1rem; margin: 0 0 10px; }
.demo-start { margin: 0 0 22px; padding-left: 20px; display: grid; gap: 8px; }
.demo-start li { padding-left: 4px; }
.demo-start strong { display: block; font-weight: 600; }
.demo-start span { color: var(--dim); font-size: .9rem; }
.demo-track { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 22px; padding: 12px 14px;
  border-radius: var(--radius); background: var(--acc-wash); color: var(--ink); font-size: .9rem; line-height: 1.45; }
.demo-track-ic { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: var(--acc);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo-fine { font-size: .92rem; margin: 0 0 20px; }

/* Apple's "Add to Apple Wallet" badge, as supplied (guidelines: no resizing tricks, clear space 0.1x);
   laid out like the Google button above it */
.aw-btn { display: inline-block; margin: 8px 0; line-height: 0; }
.aw-btn img { display: block; height: 48px; width: auto; }
.aw-btn:focus-visible { outline: 2px solid var(--brand, #7c3aed); outline-offset: 3px; }
.ot-stub .aw-btn { display: block; width: max-content; margin: 8px auto; }   /* its own line on a ticket */
