:root { --sea: #0369a1; --ok: #15803d; --bad: #b91c1c; --bg: #f0f9ff; --card: #fff; --text: #0f172a; --muted: #64748b; }
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.45 system-ui, sans-serif; background: var(--bg); color: var(--text); }
main { max-width: 560px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.4rem; color: var(--sea); }
h2 { font-size: 1.1rem; margin: 24px 0 8px; }
label { display: block; margin: 12px 0; }
input, select, button { font: inherit; padding: 12px; border-radius: 10px; border: 1px solid #cbd5e1; width: 100%; margin-top: 4px; }
button { background: var(--sea); color: #fff; border: 0; font-weight: 600; cursor: pointer; }
button.secondary { background: #e2e8f0; color: var(--text); }
button.ok { background: var(--ok); }
button.bad { background: var(--bad); }
button:disabled { opacity: .5; }
.row { display: flex; gap: 8px; align-items: center; }
.row > * { flex: 1; }
.card { background: var(--card); border-radius: 14px; padding: 16px; margin: 12px 0; box-shadow: 0 1px 3px #0001; }
.big { font-size: 5rem; font-weight: 800; text-align: center; color: var(--sea); line-height: 1.1; }
.muted { color: var(--muted); font-size: .9rem; }
.err { color: var(--bad); font-weight: 600; }
.center { text-align: center; }
.soon { background: #fef3c7; }
body.called { background: var(--ok); color: #fff; }
body.called .big, body.called h1 { color: #fff; }
.item { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #e2e8f0; }
.item b { min-width: 3.5em; }
.item span { flex: 1; }
.item button { width: auto; padding: 8px 12px; margin: 0; }
.late { color: var(--bad); font-weight: 700; }
#qr { display: flex; justify-content: center; }
#qr img, #qr canvas { max-width: 100%; height: auto; }
#qrCard.full { position: fixed; inset: 0; margin: 0; z-index: 9; display: flex; flex-direction: column; justify-content: center; border-radius: 0; }
#map { height: 360px; border-radius: 10px; margin: 12px 0 8px; z-index: 0; }
.card a { word-break: break-all; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions > * { width: auto; flex: 1 1 auto; margin: 0; }
a.button { display: inline-block; text-align: center; text-decoration: none; padding: 12px; border-radius: 10px; font-weight: 600; background: #e2e8f0; color: var(--text); }
