/* ============================================================ fonts */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(../fonts/grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(../fonts/grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/serif-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/serif-normal-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/serif-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/serif-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

/* ============================================================ tokens */
:root {
  --bg: #0c0a10;
  --bg-2: #13101a;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f4efe9;
  --muted: #a49cb0;
  --accent: #ff7a1a;
  --accent-2: #ffb054;
  --accent-soft: rgba(255, 122, 26, .12);
  --violet: #8b6cff;
  --ok: #3ddc97;
  --warn: #ffc857;
  --bad: #ff5d6c;
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(780px, 100% - 40px); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.mt { margin-top: 32px; }
.ico { width: 20px; height: 20px; flex: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); color: #000; padding: 8px 14px; border-radius: 8px; }

/* ============================================================ buttons */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s;
  text-decoration: none !important; color: var(--text); background: none;
}
.btn .ico { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: #1a0d02; box-shadow: 0 8px 30px -8px rgba(255, 122, 26, .55); }
.btn-primary:hover { background: #ff8a33; box-shadow: 0 10px 36px -8px rgba(255, 122, 26, .7); }
.btn-ghost { border-color: var(--line-2); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-danger { border-color: rgba(255, 93, 108, .4); color: var(--bad); }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { --h: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; margin-top: 12px; }

/* ============================================================ shared bits */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 600 16px var(--display); text-decoration: none !important; }
.brand-mark { display: inline-grid; place-items: center; height: 28px; padding: 0 8px; border-radius: 8px; background: var(--accent); color: #1a0d02; font-size: 13px; letter-spacing: .04em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid rgba(255, 122, 26, .28); color: var(--accent-2);
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 122, 26, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 122, 26, 0); } }
.kicker { color: var(--accent); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; color: #ddd6e6; }
.field .opt { color: var(--muted); font-weight: 400; }
.field small { color: var(--muted); font-size: 13px; }
input:not([type=checkbox]):not([type=file]), select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, .3); color: var(--text); font: 400 16px var(--font); transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #6f6779; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 122, 26, .15); }
input.is-invalid { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(255, 93, 108, .12); }
input[type=file] { color: var(--muted); font-size: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 18px; font-size: 14px; color: #cfc7d9; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin-top: 1px; }
.check.is-invalid span { color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: rgba(255, 93, 108, .1); border: 1px solid rgba(255, 93, 108, .35); color: #ffb3bb; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
.form-foot { color: var(--muted); font-size: 13px; text-align: center; margin-top: 14px; }

select {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9a4a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
select:invalid, select.is-placeholder { color: #8a8195; }
select option { background: #1a1622; color: var(--text); }
select.is-invalid { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(255, 93, 108, .12); }

/* ============================================================ ticket page */
.page-ticket { background: #0d0c0b; }
.ticket-page { min-height: 100svh; display: flex; flex-direction: column; align-items: center; padding: 22px 18px 40px; }
.back { align-self: stretch; max-width: 420px; width: 100%; margin: 0 auto 18px; color: #efe8dc; font-size: 14px; font-weight: 600; text-decoration: none; }
.back span { color: #8f877b; font-weight: 500; }
.ticket { width: min(420px, 100%); border-radius: 18px; background: #efe8dc; color: #0d0c0b; overflow: hidden; }
.ticket-top { padding: 24px 24px 20px; }
.ticket-top .eyebrow { padding: 0; border: 0; background: none; color: #6c655c; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.ticket-top .eyebrow .dot { display: none; }
.ticket-top h1 { font: 400 46px/1 var(--serif); letter-spacing: -.01em; margin: 10px 0 8px; }
.ticket-when { color: #6c655c; font-size: 14px; }
.ticket-tear { position: relative; height: 0; border-top: 2px dashed rgba(13, 12, 11, .2); margin: 0 22px; }
.ticket-tear::before, .ticket-tear::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: #0d0c0b; }
.ticket-tear::before { left: -34px; } .ticket-tear::after { right: -34px; }
.ticket-body { padding: 22px 24px 24px; text-align: center; }
.ticket .pill { background: none; border: 1px solid currentColor; }
.ticket .pill-ok { color: #2f7d4f; } .ticket .pill-wait { color: #9a6a10; } .ticket .pill-bad { color: #b0301c; }
.ticket-name { font: 400 34px/1.05 var(--serif); margin: 14px 0 4px; letter-spacing: 0; }
.ticket .muted { color: #6c655c; }
.qr { width: 236px; margin: 20px auto 8px; padding: 10px; background: #fff; border: 1px solid #d3cab9; border-radius: 12px; }
.qr svg { width: 100%; height: auto; }
.ticket-id { color: #6c655c; font-size: 13px; }
.ticket-pay { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: #f8f4ec; border: 1px solid #d3cab9; text-align: left; font-size: 14px; }
.ticket-pay strong { color: #c9521a; }
.ticket-pay p { color: #4d4740; margin-top: 4px; white-space: pre-line; }
.ticket-pay.is-paid strong { color: #2f7d4f; }
.ticket-foot { display: flex; justify-content: space-between; gap: 12px; padding: 14px 24px; border-top: 1px solid rgba(13, 12, 11, .12); font-size: 13px; color: #6c655c; }
.ticket-foot a { color: #c9521a; }
.ticket-hint { color: #8f877b; font-size: 14px; text-align: center; max-width: 380px; margin-top: 18px; }
.note { margin-top: 16px; color: #4d4740; font-size: 14px; }
.note a { color: #c9521a; }
.note.ok { color: #2f7d4f; font-weight: 600; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pill-ok { background: rgba(61, 220, 151, .14); color: var(--ok); }
.pill-wait { background: rgba(255, 200, 87, .14); color: var(--warn); }
.pill-bad { background: rgba(255, 93, 108, .14); color: var(--bad); }
.pill-mute { background: rgba(255, 255, 255, .07); color: var(--muted); }

/* ============================================================ login */
.login { min-height: 100svh; display: grid; place-items: center; padding: 20px; background: radial-gradient(60% 50% at 50% 0%, rgba(255, 122, 26, .12), transparent 70%); }
.login-card { width: min(400px, 100%); background: #16121d; border: 1px solid var(--line-2); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.login-card h1 { font-size: 28px; margin: 22px 0 8px; }
.login-card .muted { margin-bottom: 22px; font-size: 15px; }
.login-card.center { text-align: center; }
.big-emoji { font-size: 56px; }

/* ============================================================ app (admin + check-in) */
.page-app { background: var(--bg-2); }
.app-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: rgba(19, 16, 26, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.app-bar nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.app { padding: 28px 0 60px; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.tile small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.tile strong { display: block; font: 700 30px/1.2 var(--display); margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.tile span { color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 4px; margin: 28px 0 18px; border-bottom: 1px solid var(--line); }
.tab { background: none; border: 0; color: var(--muted); font: 600 15px var(--font); padding: 12px 16px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.is-active { color: var(--text); border-color: var(--accent); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }
.toolbar input[type=search] { flex: 1 1 260px; max-width: 380px; min-height: 40px; padding: 8px 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--surface); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 7px 13px; font: 600 13px var(--font); cursor: pointer; }
.chip.is-active { background: var(--accent-soft); color: var(--accent-2); border-color: rgba(255, 122, 26, .4); }
.chip .n { opacity: .7; margin-left: 4px; font-variant-numeric: tabular-nums; }
.toolbar-actions { display: flex; gap: 8px; margin-left: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255, 255, 255, .02); }
.table .num { color: var(--muted); font-variant-numeric: tabular-nums; }
.table .who strong { display: block; font-weight: 600; }
.table .who span { color: var(--muted); font-size: 13px; }
.table .note-ico { color: var(--accent-2); cursor: help; }
.table select { min-height: 34px; padding: 4px 8px; font-size: 13px; width: auto; border-radius: 8px; }
.table tr.is-cancelled td { opacity: .5; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; font-size: 14px; }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn.danger:hover { color: var(--bad); border-color: rgba(255, 93, 108, .4); }
.toggle { position: relative; width: 42px; height: 24px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .12); cursor: pointer; transition: background .2s; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle[aria-pressed=true] { background: var(--ok); }
.toggle[aria-pressed=true]::after { transform: translateX(18px); }
.empty { padding: 40px; text-align: center; color: var(--muted); }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.card h2 { font-size: 20px; margin-bottom: 18px; }
.saved { color: var(--ok); margin-left: 10px; font-size: 14px; font-weight: 600; }
.switch { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; }
.switch-ui { position: relative; width: 46px; height: 26px; border-radius: 999px; background: rgba(255, 255, 255, .14); transition: background .2s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .switch-ui { background: var(--ok); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent); outline-offset: 3px; }
.upload-row { display: grid; gap: 8px; margin-top: 18px; justify-items: start; }
.upload-row progress { width: 100%; accent-color: var(--accent); }
.sponsor-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.sponsor-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.sponsor-list img { width: 56px; height: 32px; object-fit: contain; background: rgba(255, 255, 255, .05); border-radius: 6px; }
.sponsor-list .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sponsor-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; align-items: end; }
.sponsor-form-title, .sp-current, .sp-actions { grid-column: 1 / -1; }
.sponsor-form-title { margin-bottom: 10px; font-weight: 600; }
.sp-current { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.sp-current img { width: 80px; height: 44px; object-fit: contain; background: rgba(255, 255, 255, .06); border-radius: 8px; padding: 4px; }
.sp-current .check { margin: 0; }
.sp-actions { display: flex; gap: 8px; }
.sponsor-list li.is-editing { border-color: var(--accent); background: var(--accent-soft); }
code { background: rgba(255, 255, 255, .08); padding: 2px 6px; border-radius: 6px; font-size: 13px; }

.dialog { width: min(480px, calc(100% - 32px)); background: #1a1622; color: var(--text); border: 1px solid var(--line-2); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.dialog::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); }
.dialog h2 { font-size: 22px; margin-bottom: 18px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; background: #24202d; border: 1px solid var(--line-2); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; font-weight: 500; max-width: calc(100% - 32px); }
.toast.is-error { border-color: rgba(255, 93, 108, .5); color: #ffb3bb; }

/* check-in */
.checkin { padding: 18px 0 60px; max-width: 560px; }
.checkin-stats { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin-bottom: 16px; }
.checkin-stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.checkin-stats strong { display: block; font: 700 28px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.checkin-stats small { color: var(--muted); font-size: 12px; }
.sync { display: flex; align-items: center; gap: 8px; }
.sync-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); }
.sync.ok .sync-dot { background: var(--ok); }
.sync.bad .sync-dot { background: var(--bad); }
.scanner { margin-bottom: 14px; }
.scanner-view { position: relative; border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 1; margin-bottom: 12px; }
.scanner-view video { width: 100%; height: 100%; object-fit: cover; }
.scanner-frame { position: absolute; inset: 18%; border: 3px solid rgba(255, 122, 26, .9); border-radius: 22px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.scan-msg { margin-top: 8px; }
.search input { min-height: 52px; font-size: 17px; }
.result { margin: 14px 0; padding: 22px; border-radius: 20px; border: 2px solid var(--line-2); background: #1a1622; text-align: center; }
.result.is-ok { border-color: var(--ok); background: linear-gradient(180deg, rgba(61, 220, 151, .12), #1a1622); }
.result.is-warn { border-color: var(--warn); background: linear-gradient(180deg, rgba(255, 200, 87, .12), #1a1622); }
.result.is-bad { border-color: var(--bad); background: linear-gradient(180deg, rgba(255, 93, 108, .14), #1a1622); }
.result h2 { font-size: 28px; margin: 10px 0 4px; }
.result .flags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 12px 0; }
.result .big-status { font: 700 18px var(--display); margin-top: 4px; }
.result .actions { display: grid; gap: 8px; margin-top: 16px; }
.people { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.people li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.people li:hover { background: var(--surface-2); }
.people .grow { flex: 1; min-width: 0; }
.people strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people small { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================ responsive */
@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .app { padding-top: 18px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tile { padding: 12px 14px; }
  .tile strong { font-size: 24px; }
  .tabs { overflow-x: auto; }
  .tab { white-space: nowrap; }
  .toolbar input[type=search] { max-width: none; flex-basis: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; width: 100%; }
  .chip { white-space: nowrap; }
  /* registrations table → cards */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 14px; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { padding: 0; border: 0 !important; }
  .table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
  .table td.num:first-child { display: none; }
  .table td.who, .table td.wide { grid-column: 1 / -1; }
  .table .row-actions { justify-content: flex-start; }
  .icon-btn { width: 40px; height: 40px; }
  .toolbar-actions { margin-left: 0; }
  .app-bar .brand-text { display: none; }
  .sponsor-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .bat { display: none; }
  .reveal { opacity: 1; transform: none; }
}

.qr-locked { width: 220px; height: 220px; margin: 20px auto 8px; display: grid; place-content: center; gap: 10px; text-align: center; border-radius: 12px; border: 1px dashed #b9af9e; color: #6c655c; font-size: 14px; }
.qr-locked svg { width: 36px; height: 36px; margin: 0 auto; color: #c9521a; }
.id-m { display: none; }
@media (max-width: 720px) { .table .id-m { display: inline; } }
.table select { padding-right: 30px; background-position: right 8px center; background-size: 14px; }
@media (max-width: 720px) {
  .app-bar { padding: 10px 14px; }
  .app-bar nav { flex-wrap: nowrap; gap: 6px; }
  .app-bar .btn-sm { --h: 34px; padding: 0 11px; font-size: 13px; }
}

/* ============================================================ payment card (ticket page) */
.ticket-no { display: inline-flex; flex-direction: column; align-items: center; margin-top: 16px; padding: 10px 22px; border: 1px solid #d3cab9; border-radius: 10px; background: #f8f4ec; }
.ticket-no small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #6c655c; }
.ticket-no strong { font: 600 24px/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .14em; color: #0d0c0b; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .02em; }
.paycard { width: min(420px, 100%); margin-top: 14px; padding: 24px; border-radius: 18px; background: #efe8dc; color: #0d0c0b; }
.pay-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pay-head h2 { font: 400 30px/1.05 var(--serif); letter-spacing: 0; }
.pay-amount { font: 400 34px/1 var(--serif); color: #0d0c0b; white-space: nowrap; }
.pay-amount span { font-size: 20px; color: #6c655c; }
.pay-lead { margin-top: 10px; font-size: 14px; line-height: 1.55; color: #4d4740; }
.ref-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 6px; padding: 14px 16px; border-radius: 12px; background: #0d0c0b; color: #efe8dc; }
.ref-box small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #a39b8f; }
.ref-box strong { display: block; margin-top: 2px; font: 600 18px/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; }
.ref-box .copy { background: #efe8dc; color: #0d0c0b; border-color: #efe8dc; }
.method { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(13, 12, 11, .12); }
.method h3 { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font: 600 16px var(--font); letter-spacing: 0; }
.method h3 span { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #6c655c; }
.rows { margin: 0; border: 1px solid #d3cab9; border-radius: 12px; background: #f8f4ec; overflow: hidden; }
.rows div { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; min-height: 56px; padding: 9px 10px 9px 14px; }
.rows dt { grid-column: 1; grid-row: 1; }
.rows dd { grid-column: 1; grid-row: 2; }
.rows .copy { grid-column: 2; grid-row: 1 / span 2; }
.rows div + div { border-top: 1px solid #e2d9c9; }
.rows dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #6c655c; }
.rows dd { margin: 0; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.copy { flex: none; height: 34px; min-width: 64px; padding: 0 12px; border-radius: 999px; border: 1px solid #c9bfad; background: #fff; color: #0d0c0b; font: 600 13px var(--font); cursor: pointer; transition: background .15s, border-color .15s; }
.copy:hover { border-color: #0d0c0b; }
.copy.is-done { background: #2f7d4f; border-color: #2f7d4f; color: #fff; }
.rv-steps { margin: 0 0 14px; padding-left: 20px; font-size: 14px; color: #4d4740; display: grid; gap: 8px; }
.rv-steps li::marker { color: #6c655c; }
.rv-steps .copy { height: 28px; min-width: 56px; margin-left: 6px; font-size: 12px; vertical-align: middle; }
.btn-revolut { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 999px; background: #0d0c0b; color: #efe8dc; font: 600 15px var(--font); text-decoration: none !important; }
.btn-revolut:hover { background: #26221e; }
.rv-link { margin-top: 8px; text-align: center; font-size: 13px; color: #6c655c; }
.pay-extra { margin-top: 16px; font-size: 14px; color: #4d4740; white-space: pre-line; }
.assure { list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(13, 12, 11, .12); display: grid; gap: 10px; }
.assure li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.5; color: #4d4740; }
.assure li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 2px solid #2f7d4f; border-bottom: 2px solid #2f7d4f; transform: rotate(-45deg); }
.assure b { color: #0d0c0b; }
.pay-status { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: rgba(201, 82, 26, .08); font-size: 13px; color: #6c655c; }
.pay-status b { color: #9a4a12; font-weight: 600; }
.pay-status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #e08a2e; vertical-align: 1px; }
.ticket-hint a { color: #efe8dc; }
.ticket-hint b { color: #efe8dc; font-weight: 600; }

.table td.ref { font-weight: 600; letter-spacing: .08em; white-space: nowrap; }

/* unpaid: payment first, ticket after */
.ticket-page > .back { order: 0; }
.reg-banner { order: 0; width: min(420px, 100%); display: flex; gap: 12px; align-items: center; margin-bottom: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(47, 125, 79, .16); border: 1px solid rgba(98, 196, 138, .35); color: #efe8dc; font-size: 14px; }
.reg-banner b { display: block; font-size: 15px; }
.reg-banner span:not(.reg-check) { color: #c9c1b4; }
.reg-check { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #3e9a63; position: relative; }
.reg-check::after { content: ""; position: absolute; left: 9px; top: 7px; width: 7px; height: 12px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.paycard.is-first { order: 1; margin: 0 0 14px; }
.is-unpaid .shot { order: 0; }
.is-unpaid .cal { order: 2; }
.is-unpaid .ticket { order: 3; }
.is-unpaid .ticket-hint { order: 4; }
.is-unpaid .qr-locked { height: 150px; width: 200px; }
.rows dd.mono { font-size: clamp(12.5px, 3.6vw, 15px); letter-spacing: 0; white-space: nowrap; }

.help { margin-top: 18px; padding: 16px; border-radius: 12px; border: 1px solid #d3cab9; background: #f8f4ec; font-size: 14px; line-height: 1.5; color: #4d4740; }
.help-title { margin-bottom: 4px; font-weight: 600; color: #0d0c0b; }
.help b { color: #0d0c0b; }
.btn-wa { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; margin-top: 12px; border-radius: 999px; background: #1f9e57; color: #fff !important; font: 600 15px var(--font); text-decoration: none !important; }
.btn-wa:hover { background: #1a8a4c; }
.btn-wa svg { width: 20px; height: 20px; }

/* screenshot reminder */
.shot { order: 0; width: min(420px, 100%); display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; padding: 16px; border-radius: 14px;
  background: #ffc857; color: #1d1405; box-shadow: 0 0 0 4px rgba(255, 200, 87, .18); }
.shot svg { flex: none; width: 28px; height: 28px; margin-top: 1px; }
.shot b { display: block; font-size: 16px; }
.shot span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; }
.shot strong { font-size: 15px; font-weight: 700; letter-spacing: .08em; background: rgba(29, 20, 5, .1); padding: 1px 6px; border-radius: 5px; }

/* add to calendar */
.cal { width: min(420px, 100%); margin: 14px 0; padding: 20px; border-radius: 18px; background: #efe8dc; color: #0d0c0b; }
.cal-head { display: flex; gap: 14px; align-items: center; }
.cal-head svg { flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: #0d0c0b; color: #efe8dc; }
.cal-head h2 { font: 400 26px/1.05 var(--serif); letter-spacing: 0; }
.cal-head p { margin-top: 2px; font-size: 13px; color: #6c655c; }
.cal-btns { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; margin-top: 16px; }
.cal-btn { display: flex; align-items: center; justify-content: center; height: 48px; padding: 0 8px; border-radius: 999px; background: #0d0c0b; color: #efe8dc !important; font: 600 14px var(--font); text-decoration: none !important; text-align: center; white-space: nowrap; }
.cal-btn:hover { background: #26221e; }
.cal-note { margin-top: 10px; text-align: center; font-size: 12px; color: #6c655c; }
