:root { --ink:#18181b; --green:#18181b; --muted:#71717a; --line:#e4e4e7; --paper:#fff; --orange:#3f3f46; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; background:var(--paper); color:var(--ink); font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif; }
button,input,select { font:inherit; }
button,a,input,select { -webkit-tap-highlight-color:transparent; }
a { color:inherit; text-underline-offset:4px; }
button { min-height:40px; padding:8px 14px; border:1px solid var(--line); border-radius:5px; background:#fff; color:var(--ink); cursor:pointer; }
button:hover:not(:disabled) { background:#f4f4f5; border-color:#a1a1aa; }
button:disabled { opacity:.45; cursor:not-allowed; }
button.primary { background:#18181b; border-color:#18181b; color:white; }
button.primary:hover:not(:disabled) { background:#3f3f46; }
button.danger { color:#b42318; }
input,select { min-height:42px; padding:9px 11px; border:1px solid #d4d4d8; background:white; color:var(--ink); border-radius:5px; max-width:100%; min-width:0; }
input:focus,select:focus,button:focus-visible,a:focus-visible { outline:2px solid #52525b; outline-offset:3px; }
label { display:grid; gap:7px; color:#52525b; font-size:13px; }
header { background:#fff; border-bottom:1px solid var(--line); }
.topbar { max-width:1120px; min-height:64px; margin:auto; padding:12px 24px; display:flex; align-items:center; flex-wrap:wrap; gap:20px; }
.brand { color:var(--ink); text-decoration:none; font-weight:650; font-size:17px; letter-spacing:.04em; }
nav { margin-left:auto; display:flex; gap:22px; align-items:center; }
nav a { text-decoration:none; color:#52525b; font-size:13px; }
main { max-width:1120px; padding:36px 24px 64px; margin:auto; }
h1 { margin:0; font-size:24px; font-weight:600; line-height:1.4; letter-spacing:-.02em; }
h2 { margin:0 0 18px; font-size:16px; font-weight:600; }
h3 { margin:0 0 8px; font-size:14px; }
p { margin:10px 0 16px; }
.muted,small { color:var(--muted); }
.hero { display:flex; justify-content:space-between; gap:24px; align-items:center; margin-bottom:28px; }
.stats { display:flex; gap:24px; flex-wrap:wrap; }
.stat { display:flex; align-items:baseline; gap:6px; }
.stat strong { font-size:20px; font-weight:550; font-variant-numeric:tabular-nums; }
.stat span { font-size:12px; color:var(--muted); }
.card { background:#fff; border:1px solid var(--line); border-radius:6px; padding:24px; margin-bottom:24px; }
.row { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.stack { display:grid; gap:16px; }
.notice { background:#fafafa; border:1px solid var(--line); padding:10px 14px; border-radius:5px; margin-bottom:20px; }
.notice.warn { color:#854d0e; background:#fffbeb; border-color:#fde68a; }
.notice.bad { color:#b42318; background:#fff7f6; border-color:#f4c7c3; }
#toast { position:relative; }
.toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; margin-bottom:20px; }
.toolbar h2 { margin:0; }
.seat-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(104px,1fr)); gap:8px; }
.seat-card { text-align:left; padding:13px 12px; border-radius:4px; min-height:92px; color:#52525b; font-size:12px; }
.seat-card strong { display:block; font-size:14px; font-weight:600; color:var(--ink); margin-bottom:7px; }
.seat-card small { display:block; margin-top:5px; font-size:10px; }
.seat-card:disabled { opacity:1; background:#f7f7f8; color:#71717a; }
.seat-card.sensor { border-color:#52525b; }
.seat-card.reserved,.seat-card.away { background:#f4f4f5; }
.seat-card.checked_in { background:#e4e4e7; }
.booking-seat { font-size:24px; font-weight:550; font-variant-numeric:tabular-nums; }
.timer { font-variant-numeric:tabular-nums; font-size:20px; margin-top:12px; color:var(--ink); }
.table-wrap { overflow:auto; max-height:440px; }
table { border-collapse:collapse; width:100%; font-size:12px; white-space:nowrap; }
th,td { text-align:left; border-bottom:1px solid var(--line); padding:12px 10px; }
th { color:var(--muted); font-weight:400; }
tbody tr:last-child td { border-bottom:0; }
.split { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.qr-box { text-align:center; margin:26px 0; }
.qr-box svg { width:min(100%,300px); height:auto; background:white; }
.qr-screen { max-width:440px; margin:8vh auto; }
.qr-screen h1 { text-align:center; margin-bottom:28px; }
#qrPanel { text-align:center; }
#loginPanel { padding:30px; }
#locationStatus,#bindingStatus { font-size:12px; margin-bottom:0; }
@media(max-width:800px) { .split { grid-template-columns:1fr; gap:0; } .hero { align-items:start; flex-direction:column; gap:16px; } }
@media(max-width:480px) { main { padding:24px 16px 48px; } .topbar { padding:10px 16px; gap:12px; min-height:58px; } h1 { font-size:22px; } .card { padding:18px; } nav { gap:12px; } .seat-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; } .seat-card { padding:10px; } .stats { gap:16px; } }
