:root {
  color-scheme: dark;
  --bg: #101112; --surface: #181b1a; --surface-up: #202422; --line: #343935;
  --text: #f3f5ef; --muted: #aab4ad; --green: #c5f477; --green-text: #18240d;
  --blue: #9bd9f5; --red: #ffb3aa; --amber: #f6cf8a;
  font-family: "Segoe UI", system-ui, sans-serif;
}
*,*::before,*::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,p { margin:0; overflow-wrap:anywhere; }
h1 { font-size: clamp(2rem,6vw,3.8rem); line-height:1.04; font-weight:750; letter-spacing:-.052em; margin: 0 0 .2em; }
h2 { font-size:1.36rem; line-height:1.25; letter-spacing:-.025em; }
h3 { font-size: .92rem; font-weight:650; }
small,.muted { color:var(--muted); }
small { display:block; font-size:.84rem; }
.top { border-bottom:1px solid var(--line); background:#151716; }
.top-inner { max-width:1120px; margin:auto; padding:10px 26px; min-height:64px; display:flex; align-items:center; justify-content:space-between; }
.brand { display:inline-flex; gap:10px; align-items:center; font-weight:780; font-size:1.15rem; letter-spacing:-.03em; }
.brand-mark { width:31px; height:31px; background:var(--green); color:var(--green-text); border-radius:8px; display:flex; gap:3px; align-items:center; justify-content:center; }
.brand-mark i { width:3px; height:11px; background:currentColor; border-radius:1px; }
.brand-mark i:nth-child(2) { height:17px; }
.shell { max-width:1120px; padding:33px 26px 60px; margin:auto; }
.page-heading,.event-heading,.section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.page-heading { margin-bottom:22px; }
.event-heading { margin:10px 0 20px; align-items:end; }
.event-heading h1 { margin:0; }
.event-kicker { color:var(--muted); font-size:.90rem; margin-bottom:5px; font-variant-numeric: tabular-nums; }
.section-heading { margin-bottom:12px; }
.stack { display:grid; gap:14px; }
.surface { background:var(--surface); border:1px solid var(--line); padding:17px; border-radius:12px; min-width:0; }
.section,.disclosure { margin-top:20px; }
.back { display:inline-flex; align-items:center; min-height:38px; color:var(--muted); font-size:.9rem; }
.back:hover { color:var(--green); }
.tabs { display:flex; gap:6px; margin-bottom:22px; padding:4px; background:var(--surface); border:1px solid var(--line); border-radius:11px; width:max-content; max-width:100%; }
.tabs a { display:flex; align-items:center; gap:7px; font-weight:650; padding:8px 16px; min-height:42px; border-radius:7px; white-space:nowrap; color:var(--muted); }
.tabs a:hover { color:var(--text); background:var(--surface-up); }
.tabs a[aria-current] { color:var(--green-text); background:var(--green); }
.tab-icon { font-size:1.1rem; line-height:1; }
.button,button { display:inline-flex; justify-content:center; align-items:center; gap:8px; min-height:44px; border:1px solid var(--line); border-radius:8px; padding:10px 13px; font:inherit; font-weight:680; cursor:pointer; background:var(--surface-up); color:var(--text); text-align:center; line-height:1.2; }
.primary { background:var(--green); border-color:var(--green); color:var(--green-text); }
.primary:hover { background:#d5ff9b; }
.quiet { background:transparent; border-color:#465049; }
.quiet:hover { background:#29312a; }
.danger { color:var(--red); border-color:#71453f; }
.danger:hover { background:#382422; }
.compact { min-height:39px; padding:7px 10px; font-size:.88rem; }
button:disabled { opacity:.42; cursor:not-allowed; }
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:2px solid var(--green); outline-offset:3px; }
label { display:grid; min-width:0; gap:5px; color:var(--muted); font-weight:580; font-size:.88rem; }
input,select,textarea { min-height:44px; width:100%; min-width:0; background:#121514; border:1px solid #465049; border-radius:8px; color:var(--text); padding:9px 11px; font:inherit; font-size:16px; }
input::placeholder { color:#8e9b91; }
input[type=checkbox] { accent-color:var(--green); width:20px; min-height:20px; margin:0; }
.fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:end; }
.fields .full { grid-column:1/-1; }
.checks,.check-label,.actions { display:flex; flex-wrap:wrap; gap:10px 19px; align-items:center; }
.checks label,.check-label { display:flex; align-items:center; min-height:34px; }
.inline-fields { display:flex; gap:8px; align-items:end; }
.inline-fields input,.inline-fields label { flex:1; }
.inline-fields select { width:auto; }
.search { margin-bottom:10px; }
.stats { display:grid; gap:1px; background:var(--line); border:1px solid var(--line); border-radius:10px; overflow:hidden; margin-bottom:16px; }
.stats.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.stats.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.stats div { background:var(--surface); display:grid; align-content:space-between; gap:4px; padding:12px 15px; }
.stats span { color:var(--muted); font-size:.81rem; line-height:1.2; }
.stats strong { font-size:clamp(1rem,4.5vw,1.72rem); line-height:1.15; letter-spacing:-.05em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.badge { background:#303833; color:#d9e1db; border:1px solid #3e4a42; white-space:nowrap; border-radius:5px; padding:3px 7px; font-weight:660; font-size:.72rem; }
.badge.published,.badge.issued,.badge.ready { background:#243620; color:#c5f477; border-color:#435d34; }
.badge.held,.badge.working { background:#3b3121; color:var(--amber); border-color:#594a32; }
.badge.new { background:#243840; color:var(--blue); border-color:#3e5664; }
.badge.cancelled { background:#3b2423; color:var(--red); border-color:#62433d; }
.event-list,.rows { border-block:1px solid var(--line); }
.event-link,.data-row { display:flex; gap:12px; align-items:center; padding:12px 4px; min-height:58px; overflow-wrap:anywhere; }
.event-link+.event-link,.data-row+.data-row { border-top:1px solid var(--line); }
.event-link:hover,.linked:hover { background:var(--surface); }
.event-date { font-size:1.25rem; font-weight:730; color:var(--green); letter-spacing:-.06em; font-variant-numeric:tabular-nums; }
.event-summary,.data-row>div:first-child { flex:1; min-width:0; }
.event-summary strong { font-size:1.12rem; }
.data-row>b { font-variant-numeric:tabular-nums; }
.arrow { color:var(--muted); }
.empty,.queue-empty { color:var(--muted); padding:14px 4px; font-size:.9rem; }
.live { color:var(--muted); font-size:.81rem; white-space:nowrap; }
.live i { display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--green); margin-right:5px; }
#queue { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.queue-group { min-width:0; }
.queue-group h3 { padding:9px 0; border-top:2px solid #405146; display:flex; align-items:center; justify-content:space-between; }
.queue-group:first-child h3 { border-color:#538194; }
.queue-group:last-child h3 { border-color:#83a74d; }
.count { display:inline-grid; place-items:center; min-width:22px; height:21px; padding:0 4px; border-radius:4px; background:var(--surface-up); color:var(--muted); }
.order-card { background:var(--surface); border:1px solid var(--line); padding:12px; border-radius:10px; margin:0 0 8px; }
.order-head,.order-total,.order-items li { display:flex; align-items:center; justify-content:space-between; gap:6px; }
.order-head>strong { font-size:1.25rem; letter-spacing:-.04em; }
.wait { font-size:.82rem; color:var(--muted); margin-right:auto; white-space:nowrap; }
.order-items { list-style:none; padding:0; margin:10px 0; display:grid; gap:4px; }
.order-items li span { overflow-wrap:anywhere; }
.order-total { border-top:1px solid var(--line); padding:8px 0; }
.order-total span { color:var(--muted); font-size:.78rem; }
.order-total strong { white-space:nowrap; }
.order-actions { display:grid; gap:7px; }
.order-actions button,.camera-button { width:100%; }
summary { cursor:pointer; padding:4px 0; min-height:36px; overflow-wrap:anywhere; font-weight:670; }
.disclosure[open]>summary,.minor[open]>summary { color:var(--green); margin-bottom:10px; }
.disclosure form:not(.data-row form) { margin-top:9px; }
.minor,.key-values { border-top:1px solid var(--line); padding-top:8px; }
.minor form { padding-bottom:8px; }
.key-values { margin:0; }
.key-values div { display:flex; justify-content:space-between; align-items:baseline; gap:15px; padding:5px 0; }
.key-values dt { color:var(--muted); font-size:.91rem; }
.key-values dd { margin:0; text-align:right; font-weight:680; overflow-wrap:anywhere; }
.accent { color:var(--green); }
.review { max-width:640px; }
.flash { padding:11px 13px; margin-bottom:14px; border:1px solid #506c40; border-radius:8px; background:#233520; color:#e6ffd0; overflow-wrap:anywhere; }
.flash.error { background:#382321; border-color:#71453f; color:#ffccc6; }
.auth-shell { min-height: min(650px, calc(100dvh - 65px)); display:grid; place-content:center; grid-template-columns:minmax(0,440px); }
.auth-card { background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:27px; }
.auth-card h1 { font-size:clamp(2rem,8vw,3rem); margin-top:13px; }
.lede { color:var(--muted); margin:12px 0 20px; }
.auth-card button { justify-content:space-between; }
.pass-mark { width:43px; height:32px; border:1px solid #5f7547; border-radius:7px; display:grid; place-content:center; grid-template-columns:repeat(2,6px); gap:3px; }
.pass-mark span { width:6px; height:6px; background:var(--green); border-radius:1px; }
.pass-mark span:last-child { opacity:.45; }
.code { letter-spacing:.13em; font-family:ui-monospace,monospace; }
video { display:block; width:100%; max-height:360px; background:#101112; border-radius:8px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(max-width:680px) {
  .top-inner,.shell { padding-inline:14px; }
  .shell { padding-top:19px; }
  #queue { grid-template-columns:1fr; }
  .stats div { padding:10px 8px; }
  .tabs { width:100%; }
  .tabs a { padding:7px 8px; justify-content:center; flex:1; font-size:.82rem; gap:4px; }
  .search { flex-wrap:wrap; }
  .search input { flex-basis:46%; }
}
@media(max-width:370px) {
  .event-heading { align-items:start; flex-direction:column; }
  .tabs a { padding-inline:5px; }
  .tab-icon { display:none; }
  .event-link .arrow { display:none; }
  .fields { grid-template-columns:1fr; }
}
