/* tribeboard-events: the client's brand over the Stellr tokens. */
@font-face { font-family: "Aeonik"; src: url("/static/fonts/Aeonik-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Aeonik"; src: url("/static/fonts/Aeonik-Medium.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }

:root {
  --bg: var(--stl-ground-paper, #f6f3ee);
  --card: var(--stl-surface-card, #fff);
  --ink: var(--stl-ink, #1c1a17);
  --muted: var(--stl-text-secondary, #6b645a);
  --line: var(--stl-border-hairline, #e4ddd2);
  --ok: var(--stl-state-affirm, #3f7a5a);
  --warn: var(--stl-state-attend, #b7791f);
  --bad: var(--stl-state-halt, #a83a32);
  --r: var(--stl-radius, 10px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--stl-font-body, system-ui, sans-serif); font-size: 16px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
main { width: 100%; max-width: 560px; margin: 0 auto; padding: 16px 16px 32px; flex: 1; }
body.wide main { max-width: 1120px; }
h1, h2, h3 { font-family: var(--stl-font-display, inherit); font-weight: 500; line-height: 1.2; margin: 0 0 8px; }
h1 { font-size: 28px; } h2 { font-size: 19px; margin-top: 28px; } h3 { font-size: 17px; }
a { color: var(--brand); }
.top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.brand { text-decoration: none; color: var(--brand); }
.brand-word { font-family: var(--stl-font-display); font-weight: 600; font-size: 20px; letter-spacing: .14em; }
.brand-logo { height: 28px; display: block; }
.tagline { color: var(--muted); font-size: 13px; }
.powered { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
.powered img { height: 18px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--brand-accent); margin: 0 0 6px; }
.lede { font-size: 18px; margin: 0 0 16px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .block { display: block; } .center { text-align: center; } .mono { font-family: var(--stl-font-mono, monospace); font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--r); border: 1px solid var(--brand); background: var(--brand); color: #fff; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; width: 100%; margin: 6px 0; }
.btn.quiet { background: transparent; color: var(--brand); }
.btn.applepay { background: #000; border-color: #000; font-size: 18px; }
.link { background: none; border: 0; color: var(--brand); text-decoration: underline; font: inherit; cursor: pointer; padding: 0; }
form.inline { display: inline; }
.actions { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 16px 0; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
.note { padding: 12px 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.note.ok { border-color: var(--ok); }
.list { list-style: none; padding: 0; margin: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row.gap { justify-content: flex-start; flex-wrap: wrap; }
.list .row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.list .row div { display: flex; flex-direction: column; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; white-space: nowrap; background: var(--card); }
.pill.sent, .pill.live, .pill.received { border-color: var(--ok); color: var(--ok); }
.pill.approved { border-color: var(--warn); color: var(--warn); }
.pill.failed { border-color: var(--bad); color: var(--bad); }
.pill.held { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 10px 0; display: block; }
.card.link { color: inherit; text-decoration: none; }
details.card summary { cursor: pointer; font-weight: 500; }
.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
label.row { flex-direction: row; align-items: center; justify-content: flex-start; }
input, select, textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); width: 100%; min-height: 44px; }
input[type=checkbox] { width: auto; min-height: 0; }
.search { margin: 12px 0; }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 12px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-color: var(--brand); }
.modes { font-size: 12px; color: var(--muted); margin: 0 0 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; }
.tile .label { font-size: 13px; color: var(--muted); }
.tile .value { font-size: clamp(22px, 6.4vw, 28px); white-space: nowrap; font-family: var(--stl-font-display); font-variant-numeric: tabular-nums; }
.tile .sub { font-size: 12px; color: var(--muted); }
.scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: 13px; color: var(--muted); font-weight: 500; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { display: block; height: 4px; background: var(--line); border-radius: 2px; margin-top: 6px; min-width: 80px; }
.bar i { display: block; height: 100%; background: var(--brand-accent); border-radius: 2px; }
.bar.big { height: 8px; margin: 8px 0 16px; }
/* Ticket */
.ticket { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; text-align: center; }
.qr { width: 100%; max-width: 280px; margin: 8px auto; background: #fff; padding: 8px; border-radius: 8px; }
.qr svg { width: 100%; height: auto; display: block; }
.ticket .facts { text-align: left; }
.wallet img { height: 48px; display: block; margin: 6px auto; }
/* Door */
.counter { text-align: right; display: flex; flex-direction: column; }
.counter #count { font-size: 40px; font-family: var(--stl-font-display); line-height: 1; font-variant-numeric: tabular-nums; }
.result { border-radius: var(--r); padding: 22px 16px; text-align: center; font-size: 22px; font-weight: 500; margin-bottom: 12px; border: 1px solid var(--line); background: var(--card); }
.result small { display: block; font-size: 15px; font-weight: 400; margin-top: 4px; }
.result.admitted { background: var(--ok); color: #fff; border-color: var(--ok); }
.result.already_in { background: var(--warn); color: #fff; border-color: var(--warn); }
.result.full, .result.wrong_session, .result.unknown { background: var(--bad); color: #fff; border-color: var(--bad); }
.scanner { position: relative; margin-bottom: 12px; }
.scanner video { width: 100%; border-radius: var(--r); background: #000; display: none; aspect-ratio: 1; object-fit: cover; }
.scanner.on video { display: block; } .scanner.on #start { display: none; }
#hits li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
#hits button { width: auto; min-height: 40px; margin: 0; }
/* Scores */
.board { display: flex; flex-direction: column; gap: 10px; }
.match { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.match .meta { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 6px; }
.match .line { display: grid; grid-template-columns: 1fr repeat(var(--n, 3), 28px) 40px; align-items: center; gap: 4px; padding: 4px 0; font-variant-numeric: tabular-nums; }
.match .line .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match .line.win .name { font-weight: 600; }
.match .g { text-align: center; } .match .p { text-align: center; background: var(--bg); border-radius: 6px; font-weight: 500; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); margin-right: 6px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.entry .side { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.entry .big { min-height: 96px; font-size: 22px; }
.entry .score { font-size: 15px; }
/* On-screen phone */
.phone { max-width: 400px; margin: 0 auto; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: #efe7dd; height: calc(100vh - 120px); display: flex; flex-direction: column; }
.wa-head { background: #075e54; color: #fff; padding: 12px 16px; display: flex; flex-direction: column; }
.wa-head span { font-size: 12px; opacity: .8; }
.wa-thread { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.wa { max-width: 85%; background: #fff; border-radius: 10px; padding: 8px 10px; box-shadow: 0 1px 0 rgba(0,0,0,.08); font-size: 15px; }
.wa.in { align-self: flex-end; background: #dcf8c6; }
.wa p { margin: 0 0 4px; }
.wa-img { width: 100%; border-radius: 6px; background: #fff; }
.wa-link { display: block; color: #027eb5; font-size: 14px; padding: 2px 0; }
.wa-btn { width: 100%; border: 0; border-top: 1px solid #eee; background: none; color: #027eb5; padding: 8px; font: inherit; cursor: pointer; }
.wa-meta { display: block; text-align: right; font-size: 11px; color: #999; }
