:root{--bg:#f5f6fa;--card:#fff;--text:#111827;--muted:#6b7280;--line:#e5e7eb;--primary:#4f46e5;--primary-dark:#4338ca;--green:#059669;--red:#dc2626;--amber:#d97706;--gray:#4b5563;--radius:14px;--shadow:0 1px 2px #0000000d, 0 4px 16px #1118270f;color:var(--text);background:var(--bg);-webkit-text-size-adjust:100%;font-family:system-ui,-apple-system,Segoe UI,Roboto,Noto Sans,sans-serif}*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{padding-bottom:env(safe-area-inset-bottom)}a{color:var(--primary);text-decoration:none}h1,h2,h3{margin:0 0 .5rem;line-height:1.25}h1{font-size:1.35rem}h2{font-size:1.1rem}p{margin:.25rem 0}.muted{color:var(--muted)}.small{font-size:.85rem}.hidden{display:none!important}.topbar{z-index:20;padding:calc(.6rem + env(safe-area-inset-top)) 1rem .6rem;background:var(--primary);color:#fff;align-items:center;gap:.5rem;display:flex;position:sticky;top:0}.topbar .brand{white-space:nowrap;color:#fff;align-items:center;gap:.5rem;font-size:1.05rem;font-weight:700;display:flex}.topbar .spacer{flex:1}.topbar a,.topbar button.link{color:#e0e7ff;border-radius:8px;padding:.35rem .5rem;font-size:.9rem}.topbar a.active,.topbar a:hover{color:#fff;background:#ffffff26}.container{max-width:960px;margin:0 auto;padding:1rem}.stack>*+*{margin-top:1rem}.row{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.row.between{justify-content:space-between}.grow{flex:1}.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:1rem}.card.tight{padding:.75rem}label{margin-bottom:.3rem;font-size:.9rem;font-weight:600;display:block}.field{margin-bottom:.9rem}.hint{color:var(--muted);font-size:.8rem;font-weight:400}input,select,textarea{width:100%;font:inherit;color:var(--text);background:#fff;border:1px solid #d1d5db;border-radius:10px;padding:.7rem .8rem;font-size:16px}input:focus,select:focus{border-color:var(--primary);outline:2px solid #c7d2fe}.grid2{grid-template-columns:1fr;gap:0 .75rem;display:grid}@media (width>=600px){.grid2{grid-template-columns:1fr 1fr}}button,.btn{font:inherit;background:var(--primary);color:#fff;cursor:pointer;text-align:center;-webkit-tap-highlight-color:transparent;border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;gap:.4rem;min-height:44px;padding:.6rem 1rem;font-size:.95rem;font-weight:600;display:inline-flex}button:hover,.btn:hover{background:var(--primary-dark)}button:disabled{opacity:.55;cursor:not-allowed}button.secondary,.btn.secondary{color:var(--text);background:#fff;border-color:#d1d5db}button.secondary:hover,.btn.secondary:hover{background:#f3f4f6}button.danger{color:var(--red);background:#fff;border-color:#fecaca}button.danger:hover{background:#fef2f2}button.small,.btn.small{min-height:34px;padding:.3rem .65rem;font-size:.85rem}button.block,.btn.block{width:100%}button.link{color:var(--primary);background:0 0;border:none;min-height:0;padding:0;font-weight:600}.login-wrap{justify-content:center;align-items:center;min-height:100vh;padding:1rem;display:flex}.login-card{width:100%;max-width:380px}.login-logo{width:56px;height:56px;margin:0 auto .75rem;display:block}.event-item{color:inherit;display:block}.event-item:hover{outline:2px solid #c7d2fe}.badge{border-radius:999px;padding:.15rem .55rem;font-size:.75rem;font-weight:700;display:inline-block}.badge.live{color:#065f46;background:#d1fae5}.badge.upcoming{color:#3730a3;background:#e0e7ff}.badge.ended{color:#4b5563;background:#f3f4f6}.badge.admin{color:#5b21b6;background:#ede9fe}.badge.scanner{color:#075985;background:#e0f2fe}.badge.off{color:#991b1b;background:#fee2e2}.progress{background:#eef2ff;border-radius:999px;height:8px;margin-top:.5rem;overflow:hidden}.progress>div{background:var(--green);height:100%}.stats{grid-template-columns:repeat(3,1fr);gap:.5rem;display:grid}.stat{text-align:center;background:#f9fafb;border-radius:10px;padding:.6rem}.stat b{font-size:1.4rem;display:block}.stat span{color:var(--muted);font-size:.75rem}.tabs{border-bottom:1px solid var(--line);gap:.25rem;margin:0 -1rem 1rem;padding:0 1rem;display:flex;overflow-x:auto}.tabs button{color:var(--muted);white-space:nowrap;background:0 0;border-bottom:3px solid #0000;border-radius:0;min-height:42px}.tabs button.active{color:var(--primary);border-bottom-color:var(--primary)}.tabs button:hover{color:var(--text);background:0 0}.list{margin:0;padding:0;list-style:none}.list li{border-bottom:1px solid var(--line);padding:.7rem 0}.list li:last-child{border-bottom:none}.person{align-items:center;gap:.75rem;display:flex}.person .who{flex:1;min-width:0}.person .who b{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.dot{background:#d1d5db;border-radius:50%;flex:none;width:10px;height:10px}.dot.in{background:var(--green)}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.9rem}th,td{text-align:left;border-bottom:1px solid var(--line);vertical-align:top;padding:.5rem}th{text-transform:uppercase;color:var(--muted);font-size:.75rem}.drop{border-radius:var(--radius);text-align:center;cursor:pointer;background:#f8faff;border:2px dashed #c7d2fe;padding:1.5rem 1rem}.drop.over{background:#eef2ff}.result-box{background:#f9fafb;border-radius:10px;padding:.75rem}.ok-text{color:var(--green)}.err-text{color:var(--red)}.modal-back{z-index:50;background:#11182780;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.modal{width:100%;max-width:520px;max-height:92vh;padding:1.25rem 1rem calc(1rem + env(safe-area-inset-bottom));background:#fff;border-radius:18px 18px 0 0;overflow:auto}@media (width>=600px){.modal-back{align-items:center}.modal{border-radius:18px}}#toast{left:50%;bottom:calc(1rem + env(safe-area-inset-bottom));z-index:100;pointer-events:none;flex-direction:column;gap:.5rem;width:min(92vw,420px);display:flex;position:fixed;transform:translate(-50%)}.toast{color:#fff;box-shadow:var(--shadow);background:#111827;border-radius:12px;padding:.75rem 1rem;font-size:.92rem}.toast.error{background:var(--red)}.scan-page{color:#fff;background:#000;flex-direction:column;min-height:100vh;display:flex}.scan-head{padding:calc(.6rem + env(safe-area-inset-top)) 1rem .6rem;background:#111827;align-items:center;gap:.5rem;display:flex}.scan-head .title{flex:1;min-width:0}.scan-head .title b{white-space:nowrap;text-overflow:ellipsis;display:block;overflow:hidden}.scan-head a,.scan-head button{color:#c7d2fe}.scan-video-wrap{flex:1;justify-content:center;align-items:center;min-height:320px;display:flex;position:relative;overflow:hidden}.scan-video-wrap video{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.scan-msg{z-index:2;text-align:center;max-width:340px;padding:1rem;position:relative}.scan-foot{padding:.75rem 1rem calc(.75rem + env(safe-area-inset-bottom));background:#111827;align-items:center;gap:.5rem;display:flex}.scan-foot .counter{color:#d1d5db;flex:1;font-size:.9rem}.scan-foot .counter b{color:#fff;font-size:1.1rem}.scan-foot button.secondary{color:#fff;background:#1f2937;border-color:#374151}.verdict{z-index:60;text-align:center;color:#fff;flex-direction:column;justify-content:center;align-items:center;padding:1.5rem;animation:.15s ease-out pop;display:flex;position:fixed;inset:0}.verdict.green{background:var(--green)}.verdict.red{background:var(--red)}.verdict.amber{background:var(--amber)}.verdict.gray{background:var(--gray)}.verdict .icon{margin-bottom:.5rem;font-size:4.5rem;line-height:1}.verdict .head{letter-spacing:.02em;font-size:1.9rem;font-weight:800}.verdict .name{margin-top:1rem;font-size:1.6rem;font-weight:700}.verdict .desig{opacity:.9;font-size:1.1rem}.verdict .detail{opacity:.95;max-width:420px;margin-top:.75rem;font-size:1rem}.verdict button{color:#111827;background:#fffffff2;min-width:200px;min-height:52px;margin-top:2rem;font-size:1.05rem}@keyframes pop{0%{transform:scale(.97)}to{transform:scale(1)}}.spinner{border:3px solid #0000001a;border-top-color:var(--primary);border-radius:50%;width:22px;height:22px;animation:.8s linear infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.center{text-align:center}.pad{padding:2rem 1rem}
