/* ── Poppins (brand site font), self-hosted Latin subset, SIL Open Font License ── */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-latin-700-normal.woff2") format("woff2"); }

/* ── Design tokens ─────────────────────────────────────────────────
   Brand colors (--lp-*) come from brand.css (brand/README.md). Light/dark follows the device
   unless the visitor picked one (data-theme on <html>, see App.razor). Only extras live here,
   using the same selectors as brand.css. */
:root {
    --success-text: #0A5A3C;   /* text on the soft green/red/amber notice backgrounds */
    --danger-text: #8F1530;
    --warn-text: #6B4100;
    --shadow: rgb(27 26 34 / .14);
    --radius: 12px;
    --radius-sm: 8px;
    --container: 1180px;
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --success-text: #C9F7E2;
        --danger-text: #FFD6DD;
        --warn-text: #FFE6BF;
        --shadow: rgb(0 0 0 / .6);
    }
}

:root[data-theme="dark"] {
    --success-text: #C9F7E2;
    --danger-text: #FFD6DD;
    --warn-text: #FFE6BF;
    --shadow: rgb(0 0 0 / .6);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--lp-bg);
    color: var(--lp-ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--lp-pink-text); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; }

h1:focus { outline: none; }

:focus-visible {
    outline: 2px solid var(--lp-pink);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: min(var(--container), 100% - 2.5rem);
    margin-inline: auto;
}

.muted { color: var(--lp-muted); }

.lead { font-size: 1.15rem; color: var(--lp-muted); }

.fine-print { font-size: .82rem; color: var(--lp-muted); margin: .75rem 0 0; }

/* ── Buttons, pills, badges ────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.3rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--lp-line);
    background: var(--lp-surface-2);
    color: var(--lp-ink);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s ease, background .15s ease, border-color .15s ease;
}

.btn:hover:not(:disabled) { filter: brightness(1.08); }

.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary {
    border: 0;
    background: var(--lp-button);
    color: var(--lp-on-pink);
}

.btn-primary:hover:not(:disabled) { background: var(--lp-button-hover); filter: none; }

.btn-ghost { background: transparent; }

.btn-sm { padding: .45rem .9rem; font-size: .88rem; }

.btn-block { width: 100%; margin-top: 1.1rem; }

.pill {
    display: inline-block;
    padding: .35rem .8rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
}

.pill-danger { background: color-mix(in srgb, var(--lp-danger) 22%, transparent); color: var(--danger-text); }

.badge {
    display: inline-block;
    margin-top: .3rem;
    padding: .15rem .5rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}

.badge-hot { background: color-mix(in srgb, var(--lp-warn) 20%, transparent); color: var(--lp-warn); }

.badge-muted { background: var(--lp-surface-2); color: var(--lp-muted); }

/* ── Home ──────────────────────────────────────────────────────── */
.hero { padding: 3.5rem 0 2.5rem; }

.hero-inner > * { max-width: 760px; }

.eyebrow {
    margin: 0 0 .75rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--lp-pink-text);
}

.hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700; margin: 0 0 1rem; }

/* At most one pink word in a headline (brand rule). */
.hl { color: var(--lp-pink); }

/* Slim top strip: search, city, categories. Events start right below it. */
/* minmax(0, 1fr): the column may not grow past the screen to fit the chip row. */
.home-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; padding: 1.4rem 0 1.2rem; }
.home-search { display: flex; gap: .5rem; }
.home-search input {
    flex: 1;
    min-width: 0;
    padding: .75rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--lp-line);
    background: var(--lp-surface);
    color: var(--lp-ink);
    font: inherit;
}
.home-search .btn { margin: 0; }
.home-filters { display: flex; align-items: center; gap: .75rem 1rem; flex-wrap: wrap; }
.city-picker { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.city-picker select {
    padding: .45rem 2rem .45rem .8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--lp-line);
    background-color: var(--lp-surface);
    color: var(--lp-ink);
    font: inherit;
    font-weight: 600;
}
.home-top .chips { margin: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: 1 1 320px; }
.home-top .chips::-webkit-scrollbar { display: none; }
.home-top .chip { white-space: nowrap; }

/* Featured event: poster + details, one big tap target. */
.featured {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.featured:hover { border-color: color-mix(in srgb, var(--lp-pink) 45%, var(--lp-line)); }
.featured-media { aspect-ratio: 16 / 9; min-height: 100%; }
.featured-body { display: flex; flex-direction: column; justify-content: center; gap: .6rem; padding: 1.8rem; }
.featured-body .eyebrow { margin: 0; }
.featured-title { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.1; }
.featured-meta { margin: 0; color: var(--lp-muted); }
.featured-body .btn { align-self: flex-start; margin-top: .6rem; }

@media (max-width: 760px) {
    .featured { grid-template-columns: 1fr; }
    .featured-body { padding: 1.2rem 1.2rem 1.4rem; }
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 2.2rem 0 1.1rem;
}

.section-head h2 { margin: 0; font-size: 1.5rem; }

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.4rem;
}
@media (max-width: 600px) { .event-grid { gap: .7rem; } }

.empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
    border: 1px dashed var(--lp-line);
    border-radius: var(--radius);
}

.page-message { margin-top: 4rem; }

/* ── Event page ────────────────────────────────────────────────── */
/* Event color (the host's choice, set as --event-accent on .event-page): the Buy button and a strip on the
   ticket panel. Text keeps the brand colors; button text is white or ink, whichever contrasts more
   (AccentColors.TextOn). No color set = the normal brand look. */
.event-page[style*="--event-accent"] .btn-primary { background: var(--event-accent); color: var(--event-on-accent); }
.event-page[style*="--event-accent"] .btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--event-accent) 85%, #000); }
.event-page[style*="--event-accent"] .ticket-panel { border-top: 4px solid var(--event-accent); }

.back-link {
    display: inline-block;
    margin-bottom: 1.1rem;
    color: var(--lp-muted);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover { color: var(--lp-ink); }

.event-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; margin: 0 0 .4rem; }

.performer { margin: 0; font-size: 1.15rem; color: var(--lp-muted); font-weight: 600; }

/* The poster left of the title, whole and at its own shape (a tall flyer keeps its date and names). */
.event-head.has-poster { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 1.8rem; align-items: start; }
.event-head.has-poster .back-link { grid-column: 1 / -1; }
.event-hero-text { min-width: 0; }
.event-poster { margin: 0; }
.event-poster img { display: block; width: auto; max-width: 260px; max-height: 360px; height: auto;
    border-radius: var(--radius-sm); border: 1px solid var(--lp-line); }
@media (max-width: 600px) {
    .event-head.has-poster { grid-template-columns: 1fr; gap: 1.1rem; }
    .event-poster img { max-width: 100%; max-height: 52vh; }
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    margin-top: 1.2rem;
}

.fact { display: grid; gap: .2rem; }

.fact-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    color: var(--lp-pink-text);
}

.countdown {
    display: inline-flex;
    gap: .6rem;
    align-items: baseline;
    margin: 1.2rem 0 0;
    padding: .45rem .8rem;
    border-radius: var(--radius-sm);
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
}

.countdown-prefix { color: var(--lp-muted); font-size: .9rem; }

.countdown-value { font-weight: 700; font-variant-numeric: tabular-nums; }

.event-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-areas: "head tickets" "main tickets";
    grid-template-rows: auto 1fr;
    gap: 2rem 3rem;
    padding: 1.5rem 0 3.5rem;
    align-items: start;
}
.event-head { grid-area: head; }
.event-main { grid-area: main; min-width: 0; padding-top: 2rem; border-top: 1px solid var(--lp-line); }
.event-main > :first-child { margin-top: 0; }
.ticket-panel { grid-area: tickets; }

/* "Presented by" the host, with a way to follow them. */
.host-strip { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem;
    padding: 1rem 1.2rem; border: 1px solid var(--lp-line); border-radius: var(--radius); }
.host-strip > div { display: grid; gap: .15rem; min-width: 0; }
.host-strip-name { color: var(--lp-ink); font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.host-strip-name:hover { text-decoration: underline; }
.event-main > .host-strip:first-child { margin-top: 0; }

.prose { color: color-mix(in srgb, var(--lp-ink) 88%, var(--lp-muted)); }

.prose p { margin: 0 0 1rem; }

.seating-map {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--lp-line);
}

.ticket-panel {
    position: sticky;
    top: 88px;
    padding: 1.4rem;
    border-radius: var(--radius);
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
}

.ticket-panel h2 { margin: 0 0 1rem; font-size: 1.3rem; }

.notice {
    padding: .9rem 1rem;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--lp-pink) 14%, transparent);
    margin-bottom: 1rem;
}

.notice .countdown { margin-top: .6rem; }

.ticket-group + .ticket-group { margin-top: 1.1rem; }

.section-name {
    margin: 0 0 .4rem;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--lp-muted);
}

.ticket-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }

.ticket-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: .8rem .9rem;
    border-radius: var(--radius-sm);
    background: var(--lp-surface-2);
}

.ticket-row > div { display: grid; }

.ticket-name { font-weight: 700; }

.ticket-desc { font-size: .85rem; color: var(--lp-muted); }

.ticket-price { font-weight: 700; white-space: nowrap; }

.ticket-row.is-soldout { opacity: .55; }

@media (max-width: 900px) {
    .event-layout { grid-template-columns: 1fr; grid-template-areas: "head" "tickets" "main"; grid-template-rows: auto; }
    .ticket-panel { position: static; }
    .event-main { padding-top: 0; border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}

/* ── Checkout ─────────────────────────────────────────────────────────── */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ticket-buy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .4rem;
    flex-shrink: 0;
}

.qty-select,
.buyer-fields input {
    font: inherit;
    color: var(--lp-ink);
    background: var(--lp-bg);
    border: 1px solid var(--lp-line);
    border-radius: var(--radius-sm);
}

.qty-select {
    min-width: 4.2rem;
    padding: .35rem .5rem;
}

.buyer-fields {
    display: grid;
    gap: .35rem;
    margin: 1.1rem 0 1rem;
}

.buyer-fields label {
    font-size: .85rem;
    font-weight: 600;
}

.buyer-fields input {
    padding: .7rem .8rem;
    margin-bottom: .45rem;
}

.qty-select:focus-visible,
.buyer-fields input:focus-visible {
    outline: 2px solid var(--lp-pink);
    outline-offset: 1px;
}

.form-error,
.form-success {
    margin: .2rem 0 1rem;
    padding: .7rem .9rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.form-error {
    background: color-mix(in srgb, var(--lp-danger) 16%, transparent);
    color: var(--danger-text);
}

.form-success {
    background: color-mix(in srgb, var(--lp-live) 16%, transparent);
    color: var(--success-text);
}

/* ── Order / pass / admin pages ───────────────────────────────────────── */
.page-narrow {
    max-width: 560px;
    padding: 2.5rem 0 4rem;
}

.panel {
    padding: 1.6rem;
    border-radius: var(--radius);
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
}

.panel h1 {
    margin: 0 0 .6rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.pass-when {
    margin: 0 0 1rem;
    font-weight: 600;
}

.pass-status {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    margin: 0 0 1rem;
}

.pill-success { background: color-mix(in srgb, var(--lp-live) 20%, transparent); color: var(--success-text); }
.pill-warn    { background: color-mix(in srgb, var(--lp-warn) 22%, transparent);    color: var(--warn-text); }

.notice-success {
    background: color-mix(in srgb, var(--lp-live) 16%, transparent);
}

.order-lines {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    border-top: 1px solid var(--lp-line);
}

.order-lines li,
.order-total {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.order-lines li {
    padding: .55rem 0;
    border-bottom: 1px solid var(--lp-line);
}

.order-total {
    margin: .8rem 0 1rem;
    font-size: 1.1rem;
}

.provider-form {
    display: grid;
    gap: .8rem;
    margin-top: 1.2rem;
}

.provider-option {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    padding: .9rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--lp-surface-2);
    border: 1px solid var(--lp-line);
    cursor: pointer;
}

.provider-option:has(input:checked) {
    border-color: var(--lp-pink);
}

.provider-option.is-disabled {
    opacity: .55;
    cursor: not-allowed;
}

.provider-option input {
    margin-top: .3rem;
    accent-color: var(--lp-pink);
}

.provider-detail {
    display: block;
    margin-top: .2rem;
    font-size: .85rem;
    color: var(--lp-muted);
}

.provider-form .btn {
    justify-self: start;
}

/* ── Live pass / self check-in ────────────────────────────────────────── */
.pass {
    position: relative;
    overflow: hidden;
}

.pass.is-live {
    border-color: color-mix(in srgb, var(--lp-pink) 60%, var(--lp-line));
}

.live-strip {
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    overflow: hidden;
    background: var(--lp-pink);
}

/* A flat green block keeps sliding across: proof to staff that the page is live, not a screenshot. */
.live-strip::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 30%;
    background: var(--lp-live);
    animation: live-strip 1.6s linear infinite;
}

@keyframes live-strip {
    from { transform: translateX(-100%); }
    to { transform: translateX(340%); }
}

.live-clock {
    margin: .2rem 0 1rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--lp-live);
    font-variant-numeric: tabular-nums;
}

.checked-in {
    margin: .4rem 0 1.2rem;
    padding: 1.4rem 1rem;
    border-radius: var(--radius);
    text-align: center;
    background: color-mix(in srgb, var(--lp-live) 18%, transparent);
    border: 2px solid var(--lp-live);
    animation: checked-in-pulse 2s ease-in-out infinite;
}

@keyframes checked-in-pulse {
    50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--lp-live) 18%, transparent); }
}

.checked-in-big {
    margin: 0;
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    font-weight: 700;
    color: var(--success-text);
}

.checked-in-count {
    margin: .2rem 0 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.checked-in-time {
    margin: .2rem 0 0;
    color: var(--lp-muted);
}

.checkin-form {
    display: grid;
    gap: .6rem;
    margin: .4rem 0 1rem;
}

.checkin-form label {
    font-weight: 600;
}

.checkin-form .qty-select {
    padding: .7rem .8rem;
}

.btn-checkin {
    padding: 1.15rem 1.3rem;
    font-size: 1.2rem;
}

@media (prefers-reduced-motion: reduce) {
    .live-strip, .checked-in { animation: none; }
}

/* ── Theme toggle ─────────────────────────────────────────────────────── */
.theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--lp-line);
    background: var(--lp-surface);
    color: var(--lp-ink);
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
}

.theme-toggle:hover { border-color: var(--lp-pink); }
/* The button shows the current mode: ☀ light, ☾ dark. */
.theme-toggle .theme-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-light { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-dark { display: inline; }

/* ── Forms (shared) ───────────────────────────────────────────────────── */
/* Fields never push past their box: an input's natural width (about 20 characters) is wider than a phone with
   a zoomed display or large text, and grid/flex parents would otherwise stretch to fit it. */
input, select, textarea { max-width: 100%; min-width: 0; }
.buyer-fields { grid-template-columns: minmax(0, 1fr); }
.form-grid { display: grid; gap: .9rem; }
.form-grid label { display: grid; gap: .3rem; font-size: .88rem; font-weight: 600; }
.form-grid input, .form-grid select, .form-grid textarea, .search-form input, .buyer-fields select {
    font: inherit;
    font-weight: 400;
    color: var(--lp-ink);
    background: var(--lp-bg);
    border: 1px solid var(--lp-line);
    border-radius: var(--radius-sm);
    padding: .6rem .75rem;
    width: 100%;
}
.form-grid textarea { resize: vertical; }
.form-grid :is(input, select, textarea):focus-visible, .search-form input:focus-visible { outline: 2px solid var(--lp-pink); outline-offset: 1px; }
.row-2 { display: grid; gap: .9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row-3 { display: grid; gap: .9rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .row-2, .row-3 { grid-template-columns: 1fr; } }

.panel-heading { margin: .4rem 0 .2rem; font-size: 1.1rem; }
.panel + .panel { margin-top: 1.2rem; }
.panel-narrow-inner, .page-narrow-inner { max-width: 560px; margin: 0 auto; }

/* Google's sign-in button colours (their branding rules), light and dark versions. */
.btn-google {
    display: flex; align-items: center; justify-content: center; gap: .7rem;
    background: #FFFFFF; color: #1F1F1F; border: 1px solid #747775; text-decoration: none; margin-top: .4rem;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-google { background: #131314; color: #E3E3E3; border-color: #8E918F; } }
:root[data-theme="dark"] .btn-google { background: #131314; color: #E3E3E3; border-color: #8E918F; }

.or-divider { display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0; color: var(--lp-muted); font-size: .85rem; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; border-top: 1px solid var(--lp-line); }

.signout-form { margin-top: 1.5rem; }
.pill-muted { background: var(--lp-surface-2); color: var(--lp-muted); }
.is-muted { opacity: .6; }

.btn-danger { background: var(--lp-danger); border-color: var(--lp-danger); color: #fff; }

/* ── Dashboard ────────────────────────────────────────────────────────── */
.dash { padding: 2rem 0 4rem; }
.dash h1 { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin: 0 0 .4rem; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.dash-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.dash-grid { display: grid; gap: 1.4rem; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
.dash-grid > .panel + .panel { margin-top: 0; }
@media (max-width: 960px) { .dash-grid { grid-template-columns: 1fr; } }

.ticket-form { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--lp-line); }
.ticket-form h3 { margin: 0; }

.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
.dash-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.dash-table th, .dash-table td { padding: .7rem .6rem; border-bottom: 1px solid var(--lp-line); text-align: left; vertical-align: top; }
.dash-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--lp-muted); font-weight: 700; }
.dash-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-table a { color: var(--lp-ink); }
.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin: 0 0 1.2rem; }
.stat { padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--lp-surface); border: 1px solid var(--lp-line); display: grid; gap: .2rem; }
.stat-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--lp-muted); font-weight: 700; }
.stat-value { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: .95rem; color: var(--lp-muted); font-weight: 600; }
.stat-next { font-weight: 700; color: var(--lp-ink); line-height: 1.3; overflow-wrap: anywhere; }

/* Host section tabs: plain underlined links, scroll sideways on phones. */
.dash-tabs { display: flex; gap: 1.4rem; overflow-x: auto; border-bottom: 1px solid var(--lp-line); margin: 0 0 1.4rem; scrollbar-width: none; }
.dash-tabs a { padding: .6rem 0; white-space: nowrap; font-weight: 600; color: var(--lp-muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.dash-tabs a:hover { color: var(--lp-ink); }
.dash-tabs a[aria-current="page"] { color: var(--lp-ink); border-bottom-color: var(--lp-pink); }
.dash-section { font-size: 1.1rem; margin: 1.6rem 0 .4rem; }
.dash-section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.dash-past { margin-top: 1.6rem; }
.dash-past summary { cursor: pointer; font-weight: 600; color: var(--lp-muted); padding: .4rem 0; }
.sold-bar { display: block; height: 4px; margin-top: .35rem; margin-left: auto; width: 80px; border-radius: 2px; background: var(--lp-line); overflow: hidden; }
.sold-bar > span { display: block; height: 100%; background: var(--lp-pink); }

/* Same column widths in the "Upcoming" and "Past" tables so they line up. */
.host-events { table-layout: fixed; }
.host-events th:nth-child(1) { width: 32%; }
.host-events th:nth-child(2) { width: 24%; }
.host-events th:nth-child(3) { width: 14%; }
.host-events td { overflow-wrap: anywhere; }
@media (max-width: 640px) {
    .host-events, .host-events tbody { display: block; }
    .host-events thead { display: none; }
    .host-events tr { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; padding: .9rem 1rem; margin-bottom: .8rem;
        border: 1px solid var(--lp-line); border-radius: var(--radius-sm); background: var(--lp-surface); }
    .host-events td { display: block; padding: 0; border: 0; text-align: left; }
    .host-events td.host-event-title { grid-column: 1 / -1; font-size: 1.05rem; }
    .host-events td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 700;
        text-transform: uppercase; letter-spacing: .08em; color: var(--lp-muted); margin-bottom: .15rem; }
    .host-events .sold-bar { margin-left: 0; }
}

/* Account page: header row, then cards (tickets full width, city + passkeys side by side). */
.account-page { max-width: 900px; padding: 2.5rem 0 4rem; }
.account-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.account-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
    background: var(--lp-pink); color: #fff; font-size: 1.5rem; font-weight: 700; }
.account-who { flex: 1 1 260px; min-width: 0; }
.account-who .eyebrow { margin-bottom: .2rem; }
.account-who h1 { margin: 0 0 .35rem; font-size: clamp(1.15rem, 3vw, 1.5rem); overflow-wrap: anywhere; }
.account-links { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.account-links form { margin: 0; }
.account-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); margin-top: 1.2rem; align-items: start; }
.account-grid > .panel + .panel { margin-top: 0; }
.account-empty { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.account-empty p { margin: .4rem 0; }

.search-form { display: flex; gap: .5rem; align-items: center; }
.search-form input { min-width: 240px; }
.danger-zone { border-color: color-mix(in srgb, var(--lp-danger) 45%, var(--lp-line)); }

.admin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.admin-card { display: grid; gap: .3rem; text-decoration: none; color: var(--lp-ink); }
.admin-card:hover { border-color: var(--lp-pink); }
.admin-cards .panel + .panel { margin-top: 0; }

/* ── Info pages ───────────────────────────────────────────────────────── */
.hosts-page { padding-bottom: 4rem; }
.hosts-page h2 { font-size: 1.5rem; margin: 2.8rem 0 1rem; }
.pricing h2 { margin-top: 0; }
/* Plain list of what hosts get: three columns of short paragraphs, rules between rows, no cards or icons. */
.feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 2.5rem; margin: 0; }
.feature-list > div { padding: 1.1rem 0 1.3rem; border-top: 1px solid var(--lp-line); }
.feature-list dt { font-weight: 700; margin-bottom: .35rem; }
.feature-list dd { margin: 0; color: var(--lp-muted); }
.prose-page h2 { margin-top: 1.8rem; font-size: 1.2rem; }
.prose-page p, .prose-page li { color: color-mix(in srgb, var(--lp-ink) 88%, var(--lp-muted)); }

.ticket-fee { font-size: .78rem; color: var(--lp-muted); white-space: nowrap; }

/* ── Phones: keep the header on one line (logo, account, theme); other links are in the footer. ── */
@media (max-width: 640px) {
    .header-nav { gap: .5rem; }
    .header-nav > a:not(.btn) { display: none; }
    .search-form input { min-width: 0; }
    .dash-head { align-items: flex-start; }
}
html, body { overflow-x: clip; }

/* ── Codes, comps, reports ────────────────────────────────────────────── */
.badge-unlocked { background: color-mix(in srgb, var(--lp-live) 20%, transparent); color: var(--success-text); }
.code-box { margin-top: 1rem; font-size: .9rem; }
.code-box summary { cursor: pointer; color: var(--lp-muted); font-weight: 600; }
.code-box .search-form { margin-top: .6rem; }
.code-box input { flex: 1; text-transform: uppercase; }
details.panel > summary { cursor: pointer; list-style: none; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::before { content: "▸ "; color: var(--lp-muted); }
details.panel[open] > summary::before { content: "▾ "; }
details.panel[open] > summary { margin-bottom: 1rem; }
.report .order-lines { margin-bottom: 1rem; }
.promo-heading { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--lp-line); }
.comp-form { margin-top: .4rem; }
.stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.check { display: flex !important; gap: .55rem; align-items: flex-start; font-weight: 400 !important; font-size: .9rem; }
.check input { width: auto !important; margin-top: .25rem; accent-color: var(--lp-pink); }
.buyer-fields select { padding: .65rem .75rem; margin-bottom: .45rem; }
.waitlist-form { margin-top: .7rem; }

/* ── Search, browse, host pages ───────────────────────────────────────── */
.hero-search { display: flex; gap: .6rem; margin-top: 1.6rem; max-width: 620px; }
.hero-search input, .browse-filters input, .browse-filters select, .alert-form input, .follow-form input {
    font: inherit; color: var(--lp-ink); background: var(--lp-surface); border: 1px solid var(--lp-line);
    border-radius: var(--radius-sm); padding: .75rem 1.1rem; min-width: 0;
}
.hero-search input { flex: 1; }
.hero-search input:focus-visible, .browse-filters :is(input, select):focus-visible { outline: 2px solid var(--lp-pink); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.chip {
    padding: .4rem .9rem; border-radius: var(--radius-sm); border: 1px solid var(--lp-line); background: var(--lp-surface);
    color: var(--lp-muted); text-decoration: none; font-weight: 600; font-size: .88rem;
}
.chip:hover { color: var(--lp-ink); border-color: var(--lp-pink); }
.browse { padding: 2rem 0 4rem; }
.browse-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0 1.6rem; }
.browse-filters input { flex: 1 1 260px; }
.alert-form { margin-top: .8rem; }
.alert-form input { flex: 1; padding: .5rem .9rem; }
.follow-form input { padding: .55rem 1rem; }
.transfer-form { margin-top: .7rem; }
@media (max-width: 640px) {
    .hero-search { flex-direction: column; }
    .browse-filters > * { flex: 1 1 100%; }
}

/* Event card: picture over the coloured placeholder (a broken picture just disappears). */
.card-media { position: relative; }
.card-media .card-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ── Box office ───────────────────────────────────────────────────────── */
.box-office .ticket-list { margin-bottom: .4rem; }
.sold-banner {
    margin: 0 0 1.2rem; padding: 1.2rem; border-radius: var(--radius); text-align: center;
    background: color-mix(in srgb, var(--lp-live) 18%, transparent); border: 2px solid var(--lp-live);
}
.sold-banner p { margin: 0; }
.sold-amount { font-size: clamp(1.8rem, 7vw, 2.6rem); font-weight: 700; color: var(--success-text); }

.hero-logo { margin-bottom: 1.5rem; max-width: 100%; }
.city-form { margin-bottom: 1.4rem; }

/* `hidden` always wins over a class's display (JS shows/hides parts of forms). */
[hidden] { display: none !important; }

/* ── Event form (HostEventEdit + event-form.js) ────────────────────────── */
.event-form { gap: 0; }
.form-step { display: grid; gap: .9rem; padding: 1.2rem 0; border-bottom: 1px solid var(--lp-line); }
.form-step:first-of-type { padding-top: 0; }
.form-step .panel-heading { margin: 0; }
.form-grid .input-lg { font-size: 1.15rem; font-weight: 600; padding: .8rem .9rem; }
.optional { font-weight: 400; color: var(--lp-muted); font-size: .8rem; }
.field { display: grid; gap: .45rem; }
.field-label { font-size: .88rem; font-weight: 600; }
.inline-select { display: flex !important; align-items: center; gap: .6rem !important; }
.inline-select select { width: auto; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-size: .88rem; color: var(--lp-pink-text);
    text-decoration: underline; cursor: pointer; justify-self: start; }

/* Category chips: radio buttons that look like the home page chips. */
.chip-choices { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip-choice { position: relative; display: block !important; }
.chip-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-choice span { display: inline-block; padding: .4rem .85rem; border-radius: var(--radius-sm); border: 1px solid var(--lp-line);
    background: var(--lp-bg); color: var(--lp-muted); font-weight: 600; font-size: .85rem; }
.chip-choice input:checked + span { background: var(--lp-button); border-color: var(--lp-button); color: var(--lp-on-pink); }
.chip-choice input:focus-visible + span { outline: 2px solid var(--lp-pink); outline-offset: 2px; }

/* Where: search box with a suggestion list, or the picked venue as a small card. */
.address-search { position: relative; display: grid; gap: .5rem; }
.address-results { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; margin: -.3rem 0 0; padding: .3rem; list-style: none;
    background: var(--lp-bg); border: 1px solid var(--lp-line); border-radius: var(--radius-sm); box-shadow: 0 18px 40px -18px var(--shadow);
    max-height: 320px; overflow-y: auto; }
.address-results li { display: grid; gap: .05rem; padding: .55rem .7rem; border-radius: 8px; cursor: pointer; }
.address-results li .option-text span { font-size: .82rem; color: var(--lp-muted); }
.address-results li em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--lp-pink-text); }
.address-results li:hover, .address-results li[aria-selected="true"] { background: var(--lp-surface-2); }
.venue-picked { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border: 1px solid var(--lp-line);
    border-radius: var(--radius-sm); background: var(--lp-bg); }
.venue-pin { font-size: 1.3rem; }
.venue-picked-text { flex: 1; display: grid; min-width: 0; }

/* Image fields (posters, artist photos): one big drop zone that becomes the preview. */
.image-drop { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border: 2px dashed var(--lp-line);
    border-radius: var(--radius); background: var(--lp-bg); cursor: pointer; overflow: hidden; text-align: center; }
.image-drop:hover, .image-drop.dragging { border-color: var(--lp-pink); }
.image-drop:focus-within { outline: 2px solid var(--lp-pink); outline-offset: 2px; }
.image-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.image-drop.has-image { border-style: solid; }
.image-drop.has-image img { display: block; }
.image-hint { display: grid; gap: .3rem; padding: 1rem; font-weight: 400; color: var(--lp-muted); max-width: 32ch; }
.image-hint strong { color: var(--lp-ink); font-size: 1rem; }
.image-hint::before { content: "🖼️"; font-size: 1.8rem; }
.image-drop.has-image .image-hint { position: absolute; bottom: .6rem; right: .6rem; padding: .35rem .7rem; border-radius: var(--radius-sm);
    background: rgb(0 0 0 / .6); color: #fff; max-width: none; }
.image-drop.has-image .image-hint::before, .image-drop.has-image .image-hint span { display: none; }
.image-drop.has-image .image-hint strong { color: #fff; font-size: .8rem; }
.image-change, .image-drop.has-image .image-add { display: none; }
.image-drop.has-image .image-change { display: inline; }
.color-pick .fine-print { font-weight: 400; }
/* LivelyPass pink chosen: the custom swatch steps back (still tappable: picking a color switches back). */
.color-pick.is-off { opacity: .45; }
.image-drop.busy { opacity: .6; pointer-events: none; }
.accent-field { display: grid; gap: .5rem; }
.color-pick { display: flex !important; align-items: center; gap: .8rem !important; }
.color-pick > span { display: grid; gap: .1rem; }
.color-pick input[type="color"] { flex: none; width: 52px; height: 52px; padding: 0; border: 1px solid var(--lp-line); border-radius: 50%;
    overflow: hidden; cursor: pointer; background: none; }
.color-pick input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-pick input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.color-pick input[type="color"]::-moz-color-swatch { border: 0; border-radius: 50%; }

/* Tickets: Free / Paid switch. */
.segmented { display: inline-flex; justify-self: start; padding: 3px; border-radius: var(--radius-sm); background: var(--lp-surface-2); }
.segmented label { position: relative; display: block !important; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: block; padding: .4rem 1.2rem; border-radius: var(--radius-sm); font-weight: 600; color: var(--lp-muted); }
.segmented input:checked + span { background: var(--lp-bg); color: var(--lp-ink); box-shadow: 0 1px 4px var(--shadow); }
.segmented input:focus-visible + span { outline: 2px solid var(--lp-pink); }

.more-options { padding: 1.1rem 0; border-bottom: 1px solid var(--lp-line); }
.more-options summary { cursor: pointer; font-weight: 700; }
.more-options[open] summary { margin-bottom: 1rem; }
.form-submit { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; padding-top: 1.2rem; }
.form-submit .form-error { flex-basis: 100%; margin: 0; }
@media (max-width: 640px) {
    /* The main button stays in reach while scrolling a long form. */
    .form-submit { position: sticky; bottom: 0; z-index: 5; margin: 0 -1.6rem -1.6rem; padding: .8rem 1.6rem;
        background: var(--lp-surface); border-top: 1px solid var(--lp-line); }
    .form-submit .btn { flex: 1; }
    .form-submit .fine-print { display: none; }
}

/* Live preview of the event card (new events). */
.event-preview { position: sticky; top: 1.2rem; }
.preview-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--lp-line); background: var(--lp-surface); margin-bottom: .8rem; }
.preview-art { --art: var(--lp-pink); position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--art); overflow: hidden; }
.preview-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preview-initials { font-size: 2.6rem; font-weight: 700; color: #fff; text-shadow: 0 2px 12px rgb(0 0 0 / .25); }
.preview-body { display: grid; gap: .2rem; padding: .9rem 1rem 1.1rem; }
.preview-cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--lp-pink-text); }
.preview-title { font-size: 1.1rem; line-height: 1.3; overflow-wrap: anywhere; }
.preview-price { margin-top: .3rem; font-weight: 700; }
@media (max-width: 960px) { .event-preview { display: none; } }

/* ── Artists ───────────────────────────────────────────────────────────── */
/* Round photo, or initials on a colour from the name. */
.artist-avatar { --size: 56px; position: relative; flex: none; display: inline-grid; place-items: center; width: var(--size); height: var(--size);
    border-radius: 50%; overflow: hidden; background: var(--avatar, var(--lp-pink)); color: #fff; font-weight: 700;
    font-size: calc(var(--size) * .36); line-height: 1; }
.artist-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Square image field (artist photo): a round preview. */
.image-field-square .image-drop { aspect-ratio: 1; width: 132px; border-radius: 50%; }
.image-field-square .image-hint { max-width: 12ch; font-size: .78rem; padding: .5rem; }
.image-field-square .image-hint::before { content: "📷"; font-size: 1.4rem; }
.image-field-square .image-hint span { display: none; }
.image-field-square .image-drop.has-image .image-hint { bottom: .3rem; right: 50%; transform: translateX(50%); }
.artist-fields { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.artist-fields .image-field { display: grid; gap: .3rem; justify-items: center; }
@media (max-width: 520px) { .artist-fields { grid-template-columns: 1fr; justify-items: start; } .artist-fields > .form-grid { width: 100%; } }

/* Lineup in the event form: one card per act; drag (or ↑) to reorder. */
.lineup { display: grid; gap: .6rem; }
.lineup-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.lineup-item { display: flex; align-items: center; gap: .3rem; padding: .35rem .4rem .35rem .45rem; border: 1px solid var(--lp-line);
    border-radius: var(--radius-sm); background: var(--lp-bg); cursor: grab; }
.lineup-item.dragging { opacity: .5; }
.lineup-item:first-child { border-color: color-mix(in srgb, var(--lp-pink) 45%, var(--lp-line)); }
.lineup-edit { flex: 1; min-width: 0; display: flex; align-items: center; gap: .7rem; background: none; border: 0; padding: 0; font: inherit;
    color: inherit; text-align: left; cursor: pointer; }
.lineup-name { display: grid; min-width: 0; }
.lineup-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lineup-name span { font-size: .78rem; color: var(--lp-muted); }
.lineup-item:first-child .lineup-name span { color: var(--lp-pink-text); font-weight: 600; }
.icon-button { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: var(--lp-muted);
    font-size: 1.1rem; cursor: pointer; }
.icon-button:hover { background: var(--lp-surface-2); color: var(--lp-ink); }
.lineup-add { position: relative; }
.lineup-add input { width: 100%; }
.address-results li { display: flex; align-items: center; gap: .6rem; }
.address-results li .option-text { flex: 1; display: grid; min-width: 0; }
.address-results li > .artist-avatar { --size: 32px !important; }
.preview-lineup { font-size: .85rem; font-weight: 600; color: var(--lp-muted); }
.preview-lineup:empty { display: none; }

/* Quick artist editor. */
.artist-dialog { width: min(640px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 1.4rem; border: 1px solid var(--lp-line);
    border-radius: var(--radius); background: var(--lp-surface); color: var(--lp-ink); }
.artist-dialog::backdrop { background: rgb(10 8 20 / .55); }

/* Host artist list. */
.artist-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.artist-tile-link { display: grid; justify-items: center; gap: .35rem; padding: 1.2rem 1rem; text-align: center; border-radius: var(--radius);
    border: 1px solid var(--lp-line); background: var(--lp-surface); color: var(--lp-ink); text-decoration: none; height: 100%; }
.artist-tile-link:hover { border-color: var(--lp-pink); }
.page-mid { max-width: 820px; }
.danger-zone { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.danger-zone .form-error { flex-basis: 100%; margin: 0; }

/* Public artist page. */
.artist-hero { display: flex; gap: 1.6rem; align-items: flex-start; margin-bottom: 2rem; }
.artist-hero-text { flex: 1; min-width: 0; }
.artist-hero h1 { margin: 0 0 .3rem; font-size: clamp(1.8rem, 5vw, 2.6rem); overflow-wrap: anywhere; }
.artist-bio { white-space: pre-line; max-width: 60ch; }
.artist-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.artist-links a { padding: .3rem .8rem; border-radius: var(--radius-sm); border: 1px solid var(--lp-line); color: var(--lp-ink); text-decoration: none;
    font-weight: 600; font-size: .88rem; }
.artist-links a:hover { border-color: var(--lp-pink); }
.artist-hero .follow-form { margin-top: .8rem; max-width: 440px; }
.artist-hero .follow-form input { flex: 1; min-width: 0; }
@media (max-width: 640px) {
    .artist-hero { flex-direction: column; align-items: center; text-align: center; }
    .artist-links, .artist-hero .follow-form { justify-content: center; }
    .artist-hero .follow-form input { min-width: 0; flex: 1; }
}

/* Lineup on the event page: headliner bigger. */
.lineup-strip { list-style: none; margin: .2rem 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.lineup-strip a { display: inline-flex; align-items: center; gap: .5rem; color: inherit; text-decoration: none; font-weight: 600; }
.lineup-strip a:hover span { text-decoration: underline; }
.lineup-strip .is-headliner a { font-size: 1.15rem; font-weight: 700; }

/* Posters are never cropped: the whole picture (contain) on a flat dark panel.
   Artist photos are round, so those are cropped to fill (cover) as usual. */
.image-drop .image-preview, .preview-art .preview-poster { object-fit: contain; }
.image-drop .image-fill, .preview-art .preview-fill { display: none !important; }
.image-drop.has-image, .preview-art:has(.preview-poster[src]) { background: #1B1A22; }
.image-field-square .image-drop .image-preview { object-fit: cover; }
.image-field-square .image-drop .image-fill { display: none !important; }

/* ── Door check-in ─────────────────────────────────────────────────────── */
/* Door code (pass.js): a big block of the current colour with two smaller words; it fades to the next one each minute. */
.door-code { --door-bg: var(--lp-surface-2); --door-ink: var(--lp-ink); display: grid; gap: .25rem; justify-items: center; text-align: center;
    margin: 1rem 0; padding: 1rem 1rem .8rem; border-radius: var(--radius); background: var(--door-bg); color: var(--door-ink);
    border: 1px solid rgb(0 0 0 / .08); }
.door-code.is-ready { transition: background-color 1.2s ease, color 1.2s ease; }
.door-code-label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.door-code { min-height: 130px; align-content: center; }
.door-code-words { font-size: clamp(1.25rem, 5.5vw, 1.6rem); line-height: 1.2; letter-spacing: .06em; }
.door-code-bar { width: 100%; height: 4px; border-radius: 2px; background: rgb(0 0 0 / .15); overflow: hidden; margin-top: .3rem; }
.door-code-bar > span { display: block; height: 100%; background: currentColor; opacity: .7; }
.door-code-staff { min-height: 220px; }
.door-code-staff .door-code-words { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.door-code-previous { font-size: .8rem; opacity: .85; }

/* Just checked in: big and green, with "checked in 12 s ago". Fades once it's not fresh. */
.entered { display: grid; gap: .15rem; justify-items: center; text-align: center; margin: 1rem 0; padding: 1.4rem 1rem;
    border-radius: var(--radius); background: #15803D; color: #fff; }
.entered-big { margin: 0; font-size: clamp(3rem, 16vw, 4.6rem); font-weight: 700; line-height: 1; letter-spacing: .02em; }
.entered-count { margin: 0; font-size: 1.5rem; font-weight: 700; }
.entered-time { margin: 0; }
.entered .fine-print, .entered a { color: rgb(255 255 255 / .9); }
.entered-badge { margin: 0 0 .3rem; padding: .15rem .7rem; border-radius: 999px; background: rgb(255 255 255 / .2); font-size: .75rem;
    font-weight: 700; letter-spacing: .14em; }
.entered-offline { background: #B45309; }
.entered.is-stale { background: var(--lp-surface-2); color: var(--lp-ink); }
.entered.is-stale .fine-print { color: var(--lp-muted); }

/* How many going in, then the hold button. */
.people-picker { border: 0; padding: 0; margin: 0 0 .8rem; display: grid; gap: .4rem; }
.people-picker legend { font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.people-picker .segmented { flex-wrap: wrap; }
.btn-hold { position: relative; overflow: hidden; width: 100%; padding: 1.15rem 1rem; border: 0; border-radius: var(--radius-sm); cursor: pointer;
    background: var(--lp-button); color: var(--lp-on-pink); font: inherit; font-size: 1.15rem; font-weight: 700;
    touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.btn-hold-fill { position: absolute; inset: 0; background: rgb(0 0 0 / .28); transform: scaleX(0); transform-origin: left; }
.btn-hold.is-holding .btn-hold-fill { transform: scaleX(1); transition: transform .9s linear; }
.btn-hold.is-done { background: #15803D; }
.btn-hold-text { position: relative; }
.btn-hold:focus-visible { outline: 3px solid var(--lp-pink); outline-offset: 3px; }

/* Staff door screen. */
.door-screen { padding: 1.4rem 0 3rem; }
.door-head h1 { margin: .2rem 0; }
.door-grid { display: grid; gap: 1.6rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; margin-top: 1rem; }
@media (max-width: 860px) { .door-grid { grid-template-columns: 1fr; } }
.door-status { font-weight: 700; color: var(--success-text); }
.door-status.is-offline { color: var(--warn-text); }
.door-count { font-size: 1.2rem; text-align: center; }
.door-count strong { font-size: 2.6rem; }
.door-help { margin-top: 1rem; }
.door-help summary { cursor: pointer; font-weight: 700; }
.door-help ol { padding-left: 1.2rem; line-height: 1.6; }
.door-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.door-feed-item { display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; align-items: center; padding: .7rem .9rem;
    border-radius: var(--radius-sm); border: 1px solid var(--lp-line); background: var(--lp-surface); }
.door-feed-item .fine-print, .door-feed-item .door-feed-note { grid-column: 2; }
.door-feed-qty { grid-row: span 2; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
    background: var(--lp-surface-2); font-weight: 700; font-size: 1.2rem; }
.door-feed-item.is-new { border-color: #15803D; background: color-mix(in srgb, #15803D 14%, var(--lp-surface)); }
.door-feed-item.is-new .door-feed-qty { background: #15803D; color: #fff; }
.door-feed-item.has-note { border-color: var(--lp-warn); }
.door-feed-note { color: var(--warn-text); font-size: .85rem; font-weight: 600; }
.door-tools { margin-bottom: 1rem; }
.practice-banner { background: color-mix(in srgb, var(--lp-warn) 18%, transparent); }

/* Wallet. */
.wallet { max-width: 760px; padding: 2rem 0 4rem; }
.wallet-head h1 { margin: 0 0 .2rem; }
.wallet-hero { display: grid; grid-template-columns: minmax(0, 1fr); margin: 1.2rem 0; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--lp-line); background: var(--lp-surface); color: var(--lp-ink); text-decoration: none; }
.wallet-hero.is-live { border: 2px solid #15803D; }
.wallet-hero-art { aspect-ratio: 16 / 9; }
.wallet-hero-body { display: grid; gap: .25rem; padding: 1rem 1.2rem 1.2rem; }
.wallet-hero-title { font-size: 1.35rem; line-height: 1.25; }
.wallet-hero-cta { margin-top: .6rem; justify-self: start; }
.wallet-status { font-size: .8rem; font-weight: 700; color: var(--lp-muted); }
.wallet-status.is-live { color: var(--success-text); }
.wallet-status.is-upcoming { color: var(--lp-pink-text); }
.wallet-status.is-in { color: var(--success-text); }
.wallet-status.is-refunded, .wallet-status.is-cancelled { color: var(--danger-text); }
.wallet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.wallet-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .6rem;
    border-radius: var(--radius-sm); border: 1px solid var(--lp-line); background: var(--lp-surface); color: var(--lp-ink); text-decoration: none; }
.wallet-row:hover, .wallet-hero:hover { border-color: var(--lp-pink); }
.wallet-row-art { display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; }
.wallet-row-body { display: grid; gap: .1rem; min-width: 0; }
.wallet-row-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-row-count { font-size: .8rem; color: var(--lp-muted); white-space: nowrap; }
.wallet-past { margin: 1.6rem 0 1rem; }
.wallet-past summary { cursor: pointer; font-weight: 600; color: var(--lp-muted); margin-bottom: .6rem; }
@media (max-width: 520px) { .wallet-row { grid-template-columns: 72px minmax(0, 1fr); } .wallet-row-count { display: none; } }
.install-prompt p { margin: 0 0 .4rem; }
/* Door screen: the newest real check-in, big (what staff glance at; it also beeps). */
.door-latest { display: flex; align-items: center; justify-content: center; gap: 1rem; min-height: 120px; margin: 1rem 0;
    padding: 1rem; border-radius: var(--radius); background: var(--lp-surface); border: 2px dashed var(--lp-line); text-align: center; }
.door-latest.is-on { background: #15803D; color: #fff; border: 2px solid #15803D; }
.door-latest-wait { color: var(--lp-muted); font-weight: 600; }
.door-latest-count { font-size: clamp(2.6rem, 9vw, 4rem); font-weight: 700; line-height: 1; }
.door-latest-name { font-size: clamp(1.4rem, 5vw, 2.2rem); font-weight: 700; overflow-wrap: anywhere; }
/* Event form: how people get in (self / scan / both). */
.mode-options { display: grid; gap: .5rem; }
.mode-option { display: flex !important; gap: .7rem !important; align-items: flex-start; padding: .75rem .9rem; border: 1px solid var(--lp-line);
    border-radius: var(--radius-sm); background: var(--lp-bg); cursor: pointer; font-weight: 400 !important; }
.mode-option input { margin-top: .3rem; accent-color: var(--lp-pink); width: auto !important; }
.mode-option > span { display: grid; gap: .15rem; }
.mode-option:has(input:checked) { border-color: var(--lp-pink); }

/* ── QR scanning (events with scanning on) ─────────────────────────────── */
/* Buyer's rotating QR: white card so any camera reads it, in light or dark mode. */
.scan-ticket { display: grid; gap: .6rem; justify-items: center; margin: 1rem 0; padding: 1rem; border-radius: var(--radius);
    border: 1px solid var(--lp-line); background: var(--lp-bg); text-align: center; }
.scan-ticket-title { margin: 0; font-weight: 700; }
.scan-qr { width: min(100%, 300px); aspect-ratio: 1; display: grid; place-items: center; padding: 10px; border-radius: 14px; background: #fff; }
.scan-qr svg { width: 100%; height: 100%; }
.scan-bar { max-width: 300px; color: var(--lp-pink); }
.self-fallback { margin: .6rem 0 1rem; }
.self-fallback summary { cursor: pointer; font-weight: 600; color: var(--lp-muted); margin-bottom: .8rem; }

/* Staff scanner: camera view with a big result laid over it. */
.scanner { margin: 1rem 0; }
.btn-scan { font-size: 1.15rem; padding: 1rem; }
.scan-view { position: relative; display: grid; gap: .6rem; justify-items: center; }
.scan-video { width: 100%; max-height: 60vh; object-fit: cover; border-radius: var(--radius); background: #000; }
.scan-result { position: absolute; inset: 0 0 auto 0; min-height: 60%; display: grid; place-content: center; gap: .2rem; padding: 1rem;
    border-radius: var(--radius); text-align: center; color: #fff; }
.scan-result p { margin: 0; }
.scan-result.is-ok { background: rgb(21 128 61 / .95); }
.scan-result.is-offline { background: rgb(180 83 9 / .95); }
.scan-result.is-warn { background: rgb(180 83 9 / .95); }
.scan-result.is-bad { background: rgb(185 28 28 / .95); }
.scan-result-big { font-size: clamp(2.2rem, 9vw, 3.4rem); font-weight: 700; line-height: 1.05; }
.scan-result-name { font-size: 1.3rem; font-weight: 700; overflow-wrap: anywhere; }
.scan-result-note { opacity: .95; }

/* ── Reserved seating (SeatPublic) ────────────────────────────────────── */
.seating-setup { margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--lp-line); }
.seat-swatch { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; vertical-align: -1px; }
.seats-page { padding: 1.4rem 0 3rem; }
.seats-page h1 { margin: .2rem 0; }
.seats-layout { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; margin-top: 1rem; }
@media (max-width: 900px) { .seats-layout { grid-template-columns: 1fr; } }
/* Staff seat screen: SeatPublic' SeatManager draws the map and its own side panel inside. */
.seat-manager-map { height: max(600px, 75vh); border-radius: var(--radius); border: 1px solid var(--lp-line); overflow: hidden; margin-top: 0.8rem; }
.seat-manager-status:empty, .seat-manager-status[hidden] { display: none; }
.seats-map seat-map { display: block; height: min(70vh, 640px); border-radius: var(--radius); border: 1px solid var(--lp-line); overflow: hidden; }
.seats-map-status { margin: .5rem 0 0; font-weight: 600; color: var(--lp-muted); }
.seats-map-status.is-error { color: var(--danger-text); }
.seats-basket { position: sticky; top: 1rem; }
.seats-list li span:first-child { font-weight: 600; }
.seat-hold { margin: .6rem 0; font-weight: 700; color: var(--warn-text); font-variant-numeric: tabular-nums; }
.order-seats { margin: 1rem 0; padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--lp-surface-2); }
.order-seats .eyebrow { margin-bottom: .3rem; }
.order-seats ul { margin: 0; padding-left: 1.1rem; font-weight: 600; }

/* Rate your seat: 5 stars as a right-to-left radio row, so hovering/choosing a star lights it and the ones before it. */
.rate-seats { display: grid; gap: 1rem; }
.stars { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 0.15rem; }
.stars legend { width: 100%; margin-bottom: 0.3rem; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 2rem; line-height: 1; cursor: pointer; color: var(--lp-line); }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--lp-pink); }
.stars input:focus-visible + label { outline: 2px solid var(--lp-pink); outline-offset: 2px; border-radius: 4px; }
.rate-photo { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

/* Roster: classes as removable chips. */
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-list .chip { display: inline-flex; align-items: center; gap: .35rem; color: var(--lp-ink); }
.chip-remove { border: 0; background: none; color: var(--lp-muted); font: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 .1rem; }
.chip-remove:hover { color: var(--lp-pink); }
.family-list .bought { color: var(--lp-muted); }
.check-list { list-style: none; padding: 0; margin: .3rem 0; display: grid; gap: .35rem; }
.copy-box { width: 100%; font: inherit; font-size: .9rem; padding: .6rem; border: 1px solid var(--lp-line); border-radius: var(--radius); background: var(--lp-surface); color: var(--lp-ink); }
.presale-notice { margin-bottom: .8rem; }

/* Add-ons in checkout forms. */
.extras { border: 0; padding: 0; margin: 1rem 0 .4rem; display: grid; gap: .6rem; }
.extras legend { font-weight: 700; margin-bottom: .3rem; }
.extra-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem .8rem; align-items: center; }
.extra-info { display: flex; flex-direction: column; }
.extra-recipient { grid-column: 1 / -1; font: inherit; padding: .5rem .7rem; border: 1px solid var(--lp-line); border-radius: var(--radius); background: var(--lp-surface); color: var(--lp-ink); }
.fine-input { display: block; margin-top: .3rem; font-size: .85rem; }
.price-input { max-width: 7rem; }
.add-extra { margin-top: 1.2rem; }
@media print {
    body * { visibility: hidden; }
    .delivery-list, .delivery-list * { visibility: visible; }
    .delivery-list { position: absolute; inset: 0 auto auto 0; width: 100%; }
    .delivery-list button { display: none; }
}

/* Prices and counts: digits of equal width, so columns line up. */
.ticket-price, .order-lines, .stat-value, .countdown-value { font-variant-numeric: tabular-nums; }

/* Seat prices (reserved seating): one price box per seat category. */
.seat-prices li { align-items: center; }
.seat-price-input { display: inline-flex !important; align-items: center; gap: .35rem; flex: none; }
.seat-price-input input { width: 8.5rem; font: inherit; padding: .5rem .7rem; border: 1px solid var(--lp-line); border-radius: var(--radius-sm);
    background: var(--lp-bg); color: var(--lp-ink); text-align: right; }

/* Seat price key above the seat map: one entry per seat category. */
.seat-key { list-style: none; margin: 0 0 .8rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .92rem; }
.seat-key li { display: inline-flex; align-items: center; gap: .45rem; }
.seat-key .seat-swatch { width: .75rem; height: .75rem; border-radius: 50%; background: var(--lp-line); }
.seat-key strong { font-variant-numeric: tabular-nums; }

/* Seat prices in the event page's ticket panel (reserved seating): name, badge, all-in price. */
.seat-price-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.seat-price-list li { display: flex; align-items: center; gap: .5rem; padding: .6rem 0; border-bottom: 1px solid var(--lp-line); }
.seat-price-list li:first-child { border-top: 1px solid var(--lp-line); }
.seat-price-list .ticket-price { margin-left: auto; font-variant-numeric: tabular-nums; }
.seat-price-list .is-soldout .ticket-name, .seat-price-list .is-soldout .ticket-price { color: var(--lp-muted); }

/* Tag chips (hosts' own words) sit quieter than category chips: no fill. */
.chip-tag { background: transparent; font-weight: 500; }
.event-tags { margin: 0 0 1.4rem; }
.active-filters { margin: -.8rem 0 1.2rem; }
.pin-icon { color: var(--lp-pink); flex: none; }
