:root { --navy:#1a1a2e; --wine:#7a1f2b; --gold:#c9a227; --cream:#fdfaf3; --green:#1f7a3d; --red:#b3261e; }
* { box-sizing: border-box; }
body { font-family: -apple-system, Georgia, 'Segoe UI', serif; background: var(--cream); color: var(--navy); margin:0; padding:0; }
.wrap { max-width:480px; margin:0 auto; padding:24px 18px 60px; }
h1 { color: var(--wine); font-size:22px; margin-bottom:4px; }
.subtitle { color:#555; font-size:14px; margin-bottom:20px; }
.card { background:#fff; border:1px solid #eadfc4; border-radius:12px; padding:18px; margin-bottom:16px; box-shadow:0 2px 8px rgba(0,0,0,0.04); }
label { display:block; font-size:13px; font-weight:600; margin:12px 0 4px; }
input, select { width:100%; padding:10px; border:1px solid #ccc; border-radius:8px; font-size:15px; }
button { background: var(--wine); color:#fff; border:none; padding:13px 18px; border-radius:8px; font-size:15px; font-weight:600; cursor:pointer; width:100%; margin-top:18px; }
.attendee-row { display:flex; gap:8px; align-items:center; margin-bottom:6px; }
.attendee-row input { flex:1; }
.badge { display:inline-block; padding:4px 10px; border-radius:999px; font-size:12px; font-weight:700; }
.badge.ok { background:#e4f4e9; color: var(--green); }
.badge.used { background:#f8e6e5; color: var(--red); }
.qr-box { text-align:center; padding:12px; }
.qr-box img { width:220px; height:220px; }
table { width:100%; border-collapse:collapse; font-size:13px; }
th, td { text-align:left; padding:6px 4px; border-bottom:1px solid #eee; }
.stat { display:flex; gap:12px; margin-bottom:14px; }
.stat .box { flex:1; background:#fff; border-radius:10px; padding:12px; text-align:center; border:1px solid #eadfc4; }
.stat .num { font-size:24px; font-weight:700; color: var(--wine); }
.stat .lbl { font-size:11px; color:#666; }
.demo-note { background:#fff6d8; border:1px solid var(--gold); padding:10px 12px; border-radius:8px; font-size:13px; margin-bottom:16px; }
#reader { width:100%; border-radius:12px; overflow:hidden; }
.result-ok { background:#e4f4e9; border:2px solid var(--green); padding:16px; border-radius:12px; text-align:center; }
.result-bad { background:#f8e6e5; border:2px solid var(--red); padding:16px; border-radius:12px; text-align:center; }
.small { font-size:12px; color:#666; }
a { color: var(--wine); }
