:root{color-scheme:light;font-family:system-ui,sans-serif;background:#f6f5f3;color:#211d28}*{box-sizing:border-box}body{margin:0}main{max-width:650px;margin:0 auto;padding:18px 20px 36px}header{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid #ddd;padding-bottom:12px}header img{width:125px;height:auto}header div,.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}h1{font-size:1.9rem;margin:12px 0}h2{font-size:1.25rem}p{line-height:1.45}a{color:#443166}label{display:block;font-weight:600;margin:12px 0 6px}select,input,textarea{width:100%;font:inherit;padding:12px;border:1px solid #aaa;border-radius:5px;background:white;color:#211d28}button{font:inherit;font-weight:600;border:0;border-radius:5px;padding:13px 16px;background:#3e2d62;color:white;cursor:pointer;min-height:44px}button.quiet{background:white;color:#3e2d62;border:1px solid #ccc}button:disabled{opacity:.5;cursor:default}.tag{display:inline-block;font-size:.82rem;font-weight:700;color:#684500;background:#fff0ce;padding:5px 9px;border-radius:4px}.counts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}.counts div{background:white;border:1px solid #ddd;border-radius:6px;padding:10px;text-align:center}.counts span,.counts strong{display:block}.counts strong{font-size:1.6rem}.counts span{font-size:.8rem}.result{padding:18px;background:#ece9e5;border:1px solid #ccc;border-radius:6px;margin:12px 0;font-size:1.16rem;font-weight:650}.result.accepted{background:#d8f3e1;color:#125729;border-color:#68ad80}.result.duplicate{background:#fff0ce;color:#704700;border-color:#cda247}.result.invalid{background:#fbe1e1;color:#8b1818;border-color:#dc8d8d}video{width:100%;max-height:320px;background:#111;border-radius:8px;margin-bottom:12px;object-fit:contain}#next{width:100%;margin:12px 0}details,section{padding:16px 0;border-top:1px solid #ddd;margin-top:12px}summary{cursor:pointer;font-weight:600}.ticket{text-align:center}.ticket header{justify-content:center}.ticket canvas{display:block;max-width:100%;height:auto;margin:20px auto;background:white;image-rendering:pixelated}.ticket progress{width:80%;height:14px}.token{overflow-wrap:anywhere;font:14px monospace}#issued input{margin-bottom:10px}[hidden]{display:none!important}
