/* KEEMCO Organiser console — same world as the attendee app (warm black, smoked glass, KEEMCO red),
   tuned for work: denser, calmer, left-aligned, everything labelled. */

:root {
  --canvas: #060504; --canvas-2: #100f0e; --canvas-3: #171615; --canvas-4: #24221f;
  --ink: #F7F5F2; --ink-2: #B5B0AA; --ink-3: #8D8781;
  --line: rgba(255, 245, 235, .09); --line-2: rgba(255, 245, 235, .18);
  --g-bg: rgba(255, 255, 255, .055); --g-bg-2: rgba(255, 255, 255, .10); --g-line: rgba(255, 255, 255, .10);
  --red: #E50914; --red-ink: #FF5A62; --red-glow: rgba(229, 9, 20, .35);
  --ok: #3DDC84; --ok-tint: rgba(61, 220, 132, .14); --warn: #FFC233; --warn-tint: rgba(255, 194, 51, .14); --bad-tint: rgba(229, 9, 20, .14);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --marquee: "Bebas Neue", Impact, sans-serif; --serif: "Instrument Serif", Georgia, serif;
  --r: 12px; --r-lg: 20px; --ease: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --top-h: 64px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--canvas); color: var(--ink); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ms { font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; white-space: nowrap; direction: ltr; font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; display: inline-block; vertical-align: middle; flex: none; -webkit-font-smoothing: antialiased; }
.muted { color: var(--ink-2); } .small { font-size: 13px; } .ok { color: var(--ok); } .bad { color: var(--red-ink); }
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 40% at 10% -5%, rgba(122, 44, 255, .22), transparent 70%), radial-gradient(50% 35% at 100% 10%, rgba(229, 9, 20, .14), transparent 70%), var(--canvas); }
.glass { background: var(--g-bg); border: 1px solid var(--g-line); border-radius: var(--r-lg); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 20px 40px -30px rgba(0, 0, 0, .8); }

/* ── top bar ── */
.top { position: sticky; top: 0; z-index: 40; height: var(--top-h); display: flex; align-items: center; gap: 18px; padding: 0 24px; background: rgba(6, 5, 4, .7); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font: 400 24px/1 var(--marquee); letter-spacing: .04em; }
.brand__mark { width: 24px; height: 24px; border-radius: 6px; background: var(--red); display: grid; place-items: center; font-size: 18px; color: #fff; box-shadow: 0 0 18px var(--red-glow); }
.brand__word b { color: var(--red); font-weight: 400; margin-left: 4px; }
.brand__tag { font: 600 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 999px; margin-left: 4px; }
.top__nav { display: flex; gap: 4px; margin-left: 12px; }
.top__nav a { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14px; transition: background 200ms, color 200ms; }
.top__nav a:hover { color: var(--ink); background: var(--g-bg); }
.top__nav a[aria-current="page"] { color: var(--ink); background: var(--g-bg-2); }
.top__spacer { flex: 1; }
.orgname { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.orgname .is-verified { color: #4EA8FF; }
.orgswitch { position: relative; display: inline-flex; align-items: center; height: 38px; padding: 0 8px 0 12px; border-radius: 10px; background: var(--g-bg); border: 1px solid var(--g-line); }
.orgswitch select { appearance: none; background: none; border: 0; font-weight: 600; font-size: 14px; padding-right: 4px; outline: none; }
.orgswitch select option { color: #000; }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--ink-2); transition: background 200ms, color 200ms, transform 200ms var(--spring); }
.iconbtn:hover { background: var(--g-bg-2); color: var(--ink); }
.iconbtn:active { transform: scale(.92); }
.iconbtn:disabled { opacity: .35; cursor: not-allowed; }
.iconbtn-spacer { width: 40px; }

main { padding-bottom: 80px; }
main:focus { outline: none; } /* focused programmatically on navigation for screen readers, not by the user */
main.is-entering > * { animation: pageIn 520ms var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }
.page { width: min(100% - 48px, 1180px); margin: 0 auto; padding-top: 32px; }
.page--narrow { width: min(100% - 48px, 760px); }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.pagehead h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.pagehead__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 15px; white-space: nowrap; transition: background 200ms, transform 200ms var(--spring), box-shadow 300ms var(--ease), opacity 200ms; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn--primary { background: #fff; color: #0b0a09; box-shadow: 0 6px 20px rgba(255, 255, 255, .1); }
.btn--primary:hover:not(:disabled) { box-shadow: 0 10px 30px rgba(255, 255, 255, .18); }
.btn--ghost { background: var(--g-bg); border: 1px solid var(--g-line); color: var(--ink); }
.btn--ghost:hover:not(:disabled) { background: var(--g-bg-2); }
.btn--danger { background: var(--red); color: #fff; }
.btn--danger:hover:not(:disabled) { background: #c40812; }
.btn--lg { min-height: 52px; font-size: 16px; border-radius: 14px; }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn--block { width: 100%; }
.linkbtn { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.linkbtn.danger { color: var(--red-ink); margin-top: 8px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; vertical-align: middle; }
.spinner--sm { width: 14px; height: 14px; }
@keyframes spin { to { transform: rotate(1turn); } }

/* ── forms ── */
.form { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > span:first-child, .field > legend, .field__label { font-size: 13px; font-weight: 650; color: var(--ink-2); padding: 0; }
.field small { font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.field input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line-2);
  color: var(--ink); font-size: 15px; transition: border-color 200ms, box-shadow 300ms var(--ease), background 200ms; outline: none;
}
.field textarea { resize: vertical; line-height: 1.55; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field select option { color: #000; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(255, 255, 255, .55); box-shadow: 0 0 0 4px rgba(255, 255, 255, .07); background: rgba(0, 0, 0, .4); }
.field input:disabled, .field select:disabled, .field textarea:disabled { opacity: .55; }
.field input[aria-invalid="true"] { border-color: var(--red-ink); }
.field input[type=date], .field input[type=time] { color-scheme: dark; }
.field input[type=range] { accent-color: #fff; }
.field.narrow { max-width: 280px; }
.field__err { display: flex; align-items: center; gap: 6px; color: var(--red-ink); font-size: 14px; font-weight: 600; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.row3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, .8fr); gap: 14px; }
.row4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grow { flex: 1; }
.lead { color: var(--ink-2); font-size: 15px; max-width: 64ch; }
.h2 { font-size: 18px; font-weight: 750; letter-spacing: -.01em; margin-top: 8px; }

.rows { display: flex; flex-direction: column; gap: 10px; }
.rowline { display: flex; align-items: flex-end; gap: 12px; padding: 12px; border-radius: 16px; background: var(--g-bg); border: 1px solid var(--g-line); animation: rowIn 420ms var(--ease) both; }
.rowline .field { flex: none; }
.rowline .field.grow { flex: 1; }
.rowline__note { flex: 1; align-self: center; padding-top: 18px; font-size: 13px; color: var(--ink-3); }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } }
.cards { display: flex; flex-direction: column; gap: 14px; }
.card { padding: 18px; display: flex; flex-direction: column; gap: 14px; animation: rowIn 420ms var(--ease) both; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 12px; }
.feeline { font-size: 13px; color: var(--ink-2); } .feeline b { color: var(--ink); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check span { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all 200ms; }
.check span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; }
.check input:checked + span { background: #fff; color: #0b0a09; border-color: #fff; }
.check input:checked + span::before { background: #0b0a09; border-color: #0b0a09; box-shadow: inset 0 0 0 2px #fff; }
.check input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--g-bg); border: 1px dashed var(--line-2); font-size: 14px; font-weight: 600; color: var(--ink-2); transition: all 200ms; }
.chip:hover:not(:disabled) { color: var(--ink); border-style: solid; background: var(--g-bg-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px; min-height: 46px; border-radius: 12px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line-2); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--g-bg-2); font-size: 13px; font-weight: 600; }
.tag button { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--ink-2); }
.tags__input { flex: 1; min-width: 160px; background: none !important; border: 0 !important; min-height: 30px !important; padding: 0 6px !important; box-shadow: none !important; }
.swatches { display: flex; gap: 10px; }
.swatch { position: relative; width: 46px; height: 46px; }
.swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); pointer-events: none; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.choice__opt { position: relative; }
.choice__opt input { position: absolute; opacity: 0; }
.choice__opt span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--g-bg); font-weight: 650; cursor: pointer; transition: all 200ms; }
.choice__opt small { color: var(--ink-3); font-weight: 500; font-size: 13px; line-height: 1.4; }
.choice__opt input:checked + span { border-color: #fff; background: var(--g-bg-2); box-shadow: inset 0 0 0 1px #fff; }
.choice__opt input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.switchrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 14px; background: var(--g-bg); border: 1px solid var(--g-line); font-weight: 650; }
.switchrow small { display: block; font-weight: 500; color: var(--ink-3); font-size: 13px; }
.switchrow input { appearance: none; width: 52px; height: 32px; border-radius: 16px; background: rgba(255, 255, 255, .18); position: relative; cursor: pointer; flex: none; transition: background 250ms; }
.switchrow input::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 380ms var(--spring); }
.switchrow input:checked { background: var(--ok); }
.switchrow input:checked::after { transform: translateX(20px); }

/* ── notices, pills ── */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; background: var(--g-bg); border: 1px solid var(--g-line); font-size: 14px; margin-bottom: 16px; }
.notice--bad { background: var(--bad-tint); border-color: rgba(229, 9, 20, .35); }
.notice--warn { background: var(--warn-tint); border-color: rgba(255, 194, 51, .3); }
.notice--ok { background: var(--ok-tint); border-color: rgba(61, 220, 132, .3); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.pill--muted { background: var(--g-bg-2); color: var(--ink-2); }
.pill--ok { background: var(--ok-tint); color: var(--ok); }
.pill--warn { background: var(--warn-tint); color: var(--warn); }
.pill--bad { background: var(--bad-tint); color: var(--red-ink); }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.bar { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #fff, #d8d2cb); transition: width 600ms var(--ease); }

/* ── auth ── */
.auth { min-height: calc(100dvh - var(--top-h)); display: grid; place-content: center; gap: 16px; padding: 32px 20px; }
.auth__card { width: min(100vw - 40px, 440px); padding: 32px; display: flex; flex-direction: column; gap: 10px; animation: cardIn 700ms var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.auth__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-ink); }
.auth__title { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.auth__sub { color: var(--ink-2); }
.auth__form { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.auth__fine { max-width: 440px; text-align: center; font-size: 13px; color: var(--ink-3); margin: 0 auto; }
.code-input { font-size: 24px !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.devnote { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 10px 12px; border-radius: 10px; background: var(--warn-tint); color: var(--warn); }

/* ── events list ── */
.group { margin-bottom: 36px; }
.group__title { font-size: 15px; font-weight: 700; color: var(--ink-2); margin-bottom: 14px; }
.group__title small { color: var(--ink-3); font-weight: 600; margin-left: 4px; }
.evgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.evcard { display: flex; flex-direction: column; overflow: hidden; transition: transform 360ms var(--ease), border-color 300ms; animation: rowIn 500ms var(--ease) both; }
.evcard:hover { transform: translateY(-4px); border-color: var(--line-2); }
.evcard__art { position: relative; aspect-ratio: 16 / 8; background: linear-gradient(135deg, var(--pa), var(--pb)); overflow: hidden; }
.evcard__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1000ms var(--ease); }
.evcard:hover .evcard__art img { transform: scale(1.05); }
.evcard__mono { position: absolute; inset: 0; display: grid; place-items: center; font: 400 64px/1 var(--marquee); color: rgba(255, 255, 255, .85); }
.evcard__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.evcard__top { display: flex; align-items: center; justify-content: space-between; }
.evcard__top small { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.evcard__title { font-size: 18px; font-weight: 750; letter-spacing: -.01em; }
.evcard__meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.evcard__foot { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; margin-top: 6px; }
.evcard__foot small { color: var(--ink-3); font-weight: 500; }
.evcard__foot span { display: inline-flex; align-items: center; gap: 4px; }
.evcard__sales { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.evcard__sales b { color: var(--ink); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 48px 20px; }
.empty h2 { font-size: 22px; font-weight: 750; }
.empty p { color: var(--ink-2); max-width: 46ch; }
.empty--hero { padding: 64px 24px; }
.empty--hero h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 34px; }
.skel { height: 120px; border-radius: var(--r-lg); background: linear-gradient(100deg, var(--g-bg) 30%, var(--g-bg-2) 50%, var(--g-bg) 70%) 0 0 / 250% 100%; animation: shimmer 1.4s linear infinite; margin-bottom: 14px; }
.skel--tall { height: 60vh; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ── builder ── */
.builder { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; width: min(100% - 48px, 1320px); margin: 0 auto; padding-top: 24px; align-items: start; }
.rail { position: sticky; top: calc(var(--top-h) + 20px); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.rail__back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.rail__back:hover { color: var(--ink); }
.rail__event { display: flex; flex-direction: column; gap: 6px; padding: 6px 4px 10px; border-bottom: 1px solid var(--line); }
.rail__event b { font-size: 17px; font-weight: 750; letter-spacing: -.01em; line-height: 1.25; }
.rail__steps { display: flex; flex-direction: column; gap: 2px; }
.rail__step { position: relative; display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background 200ms, color 200ms; }
.rail__step:hover { background: var(--g-bg); color: var(--ink); }
.rail__step[aria-current="step"] { background: #fff; color: #0b0a09; }
.rail__ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--g-bg-2); }
.rail__step[aria-current="step"] .rail__ic { background: rgba(0, 0, 0, .08); }
.rail__step.is-done .rail__ic, .rail__step.is-ready .rail__ic { background: var(--ok-tint); color: var(--ok); }
.rail__step[aria-current="step"].is-done .rail__ic { color: #1E7B35; background: rgba(30, 123, 53, .12); }
.rail__dot { position: absolute; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.rail__progress { display: flex; flex-direction: column; gap: 6px; padding: 10px 4px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.stage { min-width: 0; }
.stage__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.stage__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.stage__head h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.savestate { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); white-space: nowrap; min-height: 24px; }
.savestate .bad { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.stage__body { animation: pageIn 420ms var(--ease) both; }
.stage__foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.twocol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 28px; align-items: start; }
.twocol--review { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); }

.coverbox { position: sticky; top: calc(var(--top-h) + 20px); display: flex; flex-direction: column; gap: 10px; }
.cover { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; cursor: pointer; background: linear-gradient(150deg, var(--pa), var(--pb) 70%, #050505); border: 1px solid var(--g-line); transition: transform 300ms var(--ease); }
.cover:hover { transform: translateY(-2px); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .85), transparent 55%); }
.cover__empty { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 20px; color: rgba(255, 255, 255, .9); }
.cover__empty small { color: rgba(255, 255, 255, .7); font-size: 12px; }
.cover__title { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; }
.cover__title b { font: 400 40px/.9 var(--marquee); letter-spacing: .01em; text-wrap: balance; }
.cover__title small { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.cover:not(.has-img) .cover__title { display: none; }

.venuecard { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.venuecard span { flex: 1; display: flex; flex-direction: column; } .venuecard small { color: var(--ink-2); font-size: 13px; }
.venueform { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.venueform .row3 { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
.actions { display: flex; justify-content: flex-end; gap: 10px; }
.venuesearch { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.venuesearch .field { width: 100%; }
.results { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 6px; }
.results button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; text-align: left; background: var(--g-bg); border: 1px solid var(--g-line); transition: background 200ms; }
.results button:hover { background: var(--g-bg-2); }
.results span { display: flex; flex-direction: column; } .results small { color: var(--ink-3); font-size: 13px; }

/* map builder */
.mapbuilder { display: grid; grid-template-columns: 200px minmax(0, 1fr) 240px; gap: 14px; align-items: start; }
.maptools { padding: 10px; display: flex; flex-direction: column; gap: 2px; max-height: 70vh; overflow: auto; }
.maptools__label { font-size: 12px; color: var(--ink-3); padding: 4px 6px 8px; }
.tool { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 8px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-align: left; transition: background 200ms, color 200ms; }
.tool:hover { background: var(--g-bg-2); color: var(--ink); }
.tool.is-on { background: #fff; color: #0b0a09; }
.plan { position: relative; aspect-ratio: 16 / 11; border-radius: 20px; overflow: hidden; touch-action: none;
  background: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 5% 5%, linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 5% 5%, radial-gradient(80% 60% at 50% 40%, #1d1a17, #0c0b0a);
  border: 1px solid var(--g-line); }
.plan.is-placing { cursor: crosshair; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.plan__hint { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--ink-3); font-size: 14px; text-align: center; padding: 20px; pointer-events: none; }
.pin { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: grab; touch-action: none; animation: pinIn 500ms var(--spring) both; }
.pin > .ms { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #0b0a09; box-shadow: 0 6px 14px rgba(0, 0, 0, .5); transition: transform 200ms var(--spring); }
.pin b { font-size: 11px; font-weight: 700; white-space: nowrap; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .6); }
.pin:hover > .ms, .pin.is-sel > .ms { transform: scale(1.15); }
.pin.is-sel > .ms { box-shadow: 0 0 0 3px var(--ok), 0 6px 14px rgba(0, 0, 0, .5); }
.pin--gate > .ms { background: var(--red); color: #fff; }
.pin:active { cursor: grabbing; }
@keyframes pinIn { from { transform: translate(-50%, -120%); opacity: 0; } }
.mapside { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mapside h3 { font-size: 14px; font-weight: 700; }
.gatelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gatelist li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.gatelist li span { flex: 1; } .gatelist small { display: inline-flex; align-items: center; gap: 2px; }

/* review */
.checkgroup { margin-bottom: 18px; }
.checkgroup h3 a { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.checkgroup h3 a:hover { color: var(--ink); }
.checkgroup ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.checkgroup li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.checkgroup li span { display: flex; flex-direction: column; } .checkgroup li small { color: var(--ink-3); }
.checkgroup li.ok .ms { color: var(--ok); } .checkgroup li.bad .ms { color: var(--warn); } .checkgroup li.opt .ms { color: var(--ink-3); }
.preview { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.preview__art { position: relative; aspect-ratio: 2 / 3; max-width: 240px; border-radius: 12px; overflow: hidden; background: linear-gradient(150deg, var(--pa), var(--pb) 65%, var(--pc)); }
.preview__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preview__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .85), transparent 55%); }
.preview__title { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; }
.preview__title b { font: 400 30px/.9 var(--marquee); } .preview__title small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.preview__body { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink-2); }
.preview__body b { font-size: 15px; color: var(--ink); } .preview__price { color: var(--ink); font-weight: 650; }
.tickettable { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.tickettable th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 600; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.tickettable td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.publish { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }

/* team */
.panel { padding: 20px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.panel__title { font-size: 17px; font-weight: 750; }
.memberlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.memberlist li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.memberlist li:last-child { border-bottom: 0; }
.memberlist__who { flex: 1; display: flex; flex-direction: column; min-width: 0; } .memberlist__who small { color: var(--ink-3); font-size: 13px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: linear-gradient(135deg, #7a2cff, #e8743b); flex: none; }
.inline-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 16px; margin: 6px 0 0; }
.roles div { font-size: 13px; } .roles dt { font-weight: 700; } .roles dd { margin: 0; color: var(--ink-3); }

/* sheet + toast */
#overlay .scrim { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade 250ms var(--ease); }
@keyframes fade { from { opacity: 0; } }
.sheet { width: min(100%, 480px); padding: 24px; border-radius: 22px; background: rgba(28, 26, 24, .92); border: 1px solid var(--g-line); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: sheetIn 420ms var(--spring) both; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.sheetform { display: flex; flex-direction: column; gap: 14px; }
.sheetform h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.sheetform__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
#toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translateX(-50%); }
.toast { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: rgba(28, 26, 24, .92); border: 1px solid var(--g-line); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); font-weight: 600; font-size: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); animation: toastIn 520ms var(--spring) both; }
.toast--ok .ms { color: var(--ok); } .toast--bad .ms { color: var(--red-ink); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.94); } }

@media (max-width: 1100px) {
  .mapbuilder { grid-template-columns: minmax(0, 1fr); }
  .maptools { flex-direction: row; flex-wrap: wrap; max-height: none; }
  .maptools__label { width: 100%; }
}
@media (max-width: 900px) {
  .builder { grid-template-columns: minmax(0, 1fr); width: min(100% - 32px, 760px); }
  .rail { position: static; }
  .rail__steps { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .rail__step { flex: none; }
  .twocol, .twocol--review { grid-template-columns: minmax(0, 1fr); }
  .coverbox { position: static; max-width: 320px; }
  .row3, .row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rowline { flex-wrap: wrap; }
  .page { width: min(100% - 32px, 1180px); }
  .top { padding: 0 16px; gap: 10px; }
  .brand__word, .brand__tag { display: none; }
  .inline-form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .row2, .row3, .row4 { grid-template-columns: minmax(0, 1fr); } .pagehead { flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0ms !important; transition-duration: 0ms !important; } }
.mapside__sel { display: flex; flex-direction: column; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

/* ── sales & refunds ── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; font-variant-numeric: tabular-nums; }
.stat small { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.stat b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: 13px; }
.stat--warn { border-color: rgba(255, 194, 51, .4); background: var(--warn-tint); }
.refundlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.refund { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 12px 14px; border-radius: 14px; background: var(--g-bg); border: 1px solid var(--g-line); }
.refund__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.refund__who .muted { font-size: 13px; }
.refund__why { font-size: 14px; color: var(--ink-2); font-style: italic; }
.refund__amt { font-size: 18px; font-variant-numeric: tabular-nums; }
.bar--inline { display: inline-block; width: 60px; vertical-align: middle; margin-left: 6px; }
.pagehead .actions { align-items: center; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .refund { grid-template-columns: minmax(0, 1fr) auto; }
  .refund .actions { grid-column: 1 / -1; justify-content: stretch; }
  .refund .actions .btn { flex: 1; }
}

/* ── gate scanner ── */
.gate { display: flex; flex-direction: column; gap: 14px; padding-bottom: 48px; }
.gate .pagehead { margin-bottom: 8px; }
.gate__pick { padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gate__result { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--g-line); background: var(--g-bg); min-height: 120px; animation: rowIn 320ms var(--ease) both; }
.gate__result b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; display: block; }
.gate__result p { color: var(--ink-2); }
.gate__result small { display: block; margin-top: 4px; color: var(--ink-3); font-size: 13px; }
.gate__result--ok { background: var(--ok-tint); border-color: rgba(61, 220, 132, .45); } .gate__result--ok > .ms { color: var(--ok); }
.gate__result--warn { background: var(--warn-tint); border-color: rgba(255, 194, 51, .45); } .gate__result--warn > .ms { color: var(--warn); }
.gate__result--bad { background: var(--bad-tint); border-color: rgba(229, 9, 20, .5); } .gate__result--bad > .ms { color: var(--red-ink); }
.gate__result--idle > .ms { color: var(--ink-3); }
.gate__cam { padding: 12px; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.gate__cam video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: #000; }
.gate__manual { padding: 14px 16px; display: flex; align-items: flex-end; gap: 10px; }
.gate__manual .field { flex: 1; }
.gate__manual input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.scanlog { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.scanlog__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.scanlog__row:last-child { border-bottom: 0; }
.scanlog__row time { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.scanlog__row--ok > .ms { color: var(--ok); } .scanlog__row--warn > .ms { color: var(--warn); } .scanlog__row--bad > .ms { color: var(--red-ink); }
@media (max-width: 600px) { .gate__pick { grid-template-columns: 1fr; } }

/* offline demo marker */
.demochip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #FFE29A; background: rgba(255, 194, 51, .12); border: 1px solid rgba(255, 194, 51, .3); white-space: nowrap; }
.demochip .linkbtn { color: inherit; font-weight: 600; margin-left: 4px; }
.demotickets { display: flex; flex-wrap: wrap; gap: 8px; }
.demotickets button { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; border-radius: 12px; background: var(--g-bg); border: 1px solid var(--g-line); font-size: 13px; text-align: left; }
.demotickets button b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .03em; }
.demotickets button small { color: var(--ink-3); }
.demotickets button:hover { background: var(--g-bg-2); }
@media (max-width: 700px) { .demochip { font-size: 0; gap: 0; padding: 0 10px; } .demochip .ms { font-size: 16px !important; } .demochip .linkbtn { font-size: 12px; margin-left: 6px; } }

/* share an event */
.share { display: flex; flex-direction: column; gap: 14px; }
.share h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.share__link { display: flex; gap: 8px; }
.share__link input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--g-bg); color: var(--ink); font: 500 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.share__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; }
.share__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; border-radius: 14px; background: var(--g-bg); border: 1px solid var(--g-line); font-size: 13px; font-weight: 650; color: var(--ink); transition: background 200ms, transform 200ms var(--spring); }
.share__btn:hover { background: var(--g-bg-2); transform: translateY(-2px); }
.share__qr { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: var(--g-bg); border: 1px solid var(--g-line); }
.share__qr canvas { width: 120px; height: 120px; border-radius: 10px; background: #fff; }
.share__qr .btn { margin-top: 8px; }
.share__flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; font-size: 12px; color: var(--ink-2); }
.share__flow li { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 10px; border: 1px dashed var(--line-2); }
.share__flow b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 11px; }
@media (max-width: 520px) { .share__flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ═════════════════════════════════════════════════════════════════════════
   Phones: bottom tab bar, compact top bar, bottom sheets, nothing wider than the screen
   ═════════════════════════════════════════════════════════════════════════ */
.tabbar { display: none; }
.panel { min-width: 0; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  .ambient { inset: 0; width: 100%; }
  .top { padding: 0 12px; gap: 8px; height: calc(var(--top-h) - 8px); padding-top: env(safe-area-inset-top, 0px); }
  .top__nav { display: none; }
  .brand { font-size: 22px; }
  .orgswitch { min-width: 0; max-width: 52vw; height: 36px; padding: 0 6px 0 10px; }
  .orgswitch select { min-width: 0; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; font-size: 13px; }
  .orgname { min-width: 0; max-width: 52vw; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .iconbtn { width: 38px; height: 38px; flex: none; }

  .tabbar:not([hidden]) { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 6px 8px calc(env(safe-area-inset-bottom, 0px) + 6px); background: rgba(10, 9, 8, .82); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 12px; font-size: 11px; font-weight: 700; color: var(--ink-3); }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar a[aria-current="page"] .ms { color: var(--red-ink); }
  .has-tabbar main { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); }
  .has-tabbar #toast { bottom: calc(env(safe-area-inset-bottom, 0px) + 80px); }
  #toast { width: max-content; max-width: calc(100% - 32px); }
  .toast { border-radius: 16px; }

  /* pages */
  .page, .page--narrow { width: calc(100% - 32px); padding-top: 20px; }
  .pagehead { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 20px; }
  .pagehead .actions { justify-content: flex-start; flex-wrap: wrap; }
  .pagehead .actions .btn { flex: 1 1 auto; }
  .evgrid { grid-template-columns: minmax(0, 1fr); }
  .stats { gap: 10px; }
  .stat { padding: 12px 14px; } .stat b { font-size: 22px; }
  .panel { padding: 16px; }
  .tickettable { display: block; overflow-x: auto; white-space: nowrap; }
  .refund { padding: 12px; }

  /* builder */
  .builder { width: calc(100% - 24px); gap: 16px; padding-top: 12px; }
  .rail { padding: 12px; gap: 10px; }
  .rail__event { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 2px 10px; }
  .rail__event b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .rail__steps { margin: 0 -12px; padding: 0 12px 2px; scroll-snap-type: x proximity; }
  .rail__step { scroll-snap-align: start; min-height: 40px; font-size: 13px; }
  .rail__progress { display: none; }
  .stage__head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 14px; }
  .stage__foot { position: sticky; bottom: calc(env(safe-area-inset-bottom, 0px) + 72px); z-index: 4; margin-top: 20px; padding: 12px; border-radius: 16px; border: 1px solid var(--g-line);
    background: rgba(18, 17, 16, .88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .stage__foot .btn { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-inline: 12px; }
  .rowline { padding: 10px; gap: 10px; }
  .rowline .field { flex: 1 1 140px; min-width: 0; }
  .rowline .field input, .rowline .field select { width: 100%; }
  .coverbox { max-width: none; }
  .mapside { padding: 12px; }
  .maptools { gap: 4px; }

  /* sheets slide up from the bottom */
  #overlay .scrim { place-items: end stretch; padding: 0; }
  .sheet { width: 100%; max-height: 92dvh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 20px 16px calc(env(safe-area-inset-bottom, 0px) + 20px); animation: sheetUp 380ms var(--ease) both; }
  .sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: -8px auto 12px; }
  .sheetform__actions { flex-direction: column-reverse; } .sheetform__actions .btn { width: 100%; }
  .share__link { flex-direction: column; } .share__link .btn { width: 100%; }
  .share__qr { grid-template-columns: 96px minmax(0, 1fr); } .share__qr canvas { width: 96px; height: 96px; }

  /* gate: thumb-friendly */
  .gate__manual { flex-wrap: wrap; } .gate__manual .btn { width: 100%; }
  .gate__result { padding: 16px; min-height: 104px; } .gate__result b { font-size: 22px; }
  .demotickets button { flex: 1 1 140px; }

  /* sign-in and onboarding */
  .auth { padding-inline: 16px; }
  .auth__card { padding: 20px; }
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
@media (max-width: 760px) {
  .vendorcard { position: relative; }
  .vendorcard .row3 { padding-right: 0; }
  .vendorcard .row3 > .iconbtn { position: absolute; top: 10px; right: 10px; }
  .vendorcard > .row3:first-child > .field:first-child { padding-right: 44px; }
}

/* Payouts */
.payout { display: flex; flex-direction: column; gap: 16px; }
.payout .notice { margin-bottom: 0; }
.payout__acct { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px; border-radius: 16px; background: rgba(0, 0, 0, .25); border: 1px solid var(--g-line); }
.payout__bank { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--g-bg); flex: none; }
.payout__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 180px; }
.payout__who b { font-size: 16px; letter-spacing: .02em; overflow-wrap: anywhere; }
.payout__form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: end; }
.payout__form .payout__name, .payout__form .actions { grid-column: 1 / -1; }
.payout__name { display: flex; align-items: center; gap: 8px; min-height: 24px; margin: 0; font-size: 14px; }
.payout__name .is-ok { color: var(--ok); }
.payout__name .field__err { margin: 0; }
.payout__steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.payout__steps li { counter-increment: step; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; }
.payout__steps li::before { content: counter(step); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--g-bg); border: 1px solid var(--g-line); }
.payout__steps span { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
@media (max-width: 640px) { .payout__form { grid-template-columns: minmax(0, 1fr); } }
.payout > .btn { align-self: flex-start; }

/* Wallet */
.wallet { padding: 22px; border-radius: 22px; display: flex; flex-direction: column; gap: 18px; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.wallet__main { display: flex; flex-direction: column; gap: 4px; }
.wallet__main small { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.wallet__main b { font-size: clamp(32px, 7vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.wallet__split { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0; }
.wallet__split > div { padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid var(--g-line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wallet__split dt { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.wallet__split dd { margin: 0; font-size: 18px; font-weight: 750; }
.wallet__split small { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.twocol:has(> .payout) { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 20px; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .06em; }
.wdlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wdlist li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--g-line); }
.wdlist li:first-child { border-top: 0; }
.wdlist__ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--g-bg); flex: none; }
.wdlist__what { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; font-variant-numeric: tabular-nums; }
.wdlist__what b { font-size: 14px; overflow-wrap: anywhere; }
.wdlist__what span { font-size: 13px; }
.sheetform .lines { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-variant-numeric: tabular-nums; }
.sheetform .lines > div { display: flex; justify-content: space-between; gap: 12px; }
.sheetform .lines .total { padding-top: 6px; border-top: 1px solid var(--g-line); font-weight: 700; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .wallet__split, .twocol:has(> .payout), .grid2 { grid-template-columns: minmax(0, 1fr); } }
