@font-face{font-family:'LINE Seed Sans TH';src:url('/fonts/LINESeedSansTH_W_Rg.woff2') format('woff2');font-display:swap}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top right,#31205b,#100b1f 55%);color:#f8f5ff;font-family:'LINE Seed Sans TH',system-ui,sans-serif;min-height:100vh}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}.site-header{display:flex;align-items:center;gap:1rem;max-width:850px;margin:auto;padding:1rem 1.2rem}.site-header img{width:86px;height:66px;object-fit:contain}.site-header span,.eyebrow{color:#9cecf7;font-size:.78rem;letter-spacing:.12em;font-weight:800}.site-header h1{font-size:1.35rem;margin:.1rem 0}main{max-width:850px;margin:auto;padding:0 1rem 3rem}.panel{border:1px solid #6947a0;border-radius:20px;background:#211534;box-shadow:0 20px 45px #07031366;padding:1.25rem;margin:0 0 1rem}.panel h2{margin:0 0 .4rem;font-size:1.25rem}.panel p{color:#c7badc;line-height:1.5}.login-panel{max-width:440px;margin:1rem auto}.login-panel form{display:grid;gap:1rem}.login-panel label{display:grid;gap:.35rem;color:#eee5fa}input[type=search],input[type=password],input:not([type]){width:100%;min-height:48px;border:1px solid #8063aa;border-radius:12px;background:#110b21;color:#fff;padding:.65rem .8rem}input:focus-visible,button:focus-visible{outline:3px solid #83dfeb;outline-offset:2px}.primary,.secondary{min-height:48px;border-radius:12px;border:0;padding:.7rem 1rem;font-weight:800}.primary{color:#fff;background:linear-gradient(110deg,#5d4df3,#b146d3)}.secondary{color:#fff;background:#3e2670;border:1px solid #8562c4}.subtle{border:0;background:transparent;color:#c8b6ee;text-decoration:underline}.desk-head{display:flex;justify-content:space-between;align-items:center;gap:1rem}.desk-head p{color:#c8b6ee}.lookup-controls{display:grid;grid-template-columns:1fr auto;gap:.55rem}.results{display:grid;gap:.5rem;margin-top:1rem}.result{width:100%;text-align:left;border:1px solid #63488e;border-radius:12px;background:#2c1c46;color:#fff;padding:.7rem}.result strong,.result span{display:block}.result span{color:#c7badc;font-size:.85rem;margin-top:.2rem}.person-header{display:flex;justify-content:space-between;gap:.5rem;align-items:center}.person-id{font-size:1.25rem;color:#9cecf7!important;font-weight:800;margin:.1rem 0}.status{border-radius:999px;padding:.3rem .65rem;background:#4d365f;color:#fff;font-size:.8rem}.status.confirmed{background:#174f3f;color:#aeefd3}.status.cancelled{background:#683148;color:#ffd0dd}.person-panel .primary,.person-panel .secondary{width:100%;margin-top:.65rem}.state-box{padding:.75rem;border-radius:12px;background:#140c25;border:1px solid #5a4479;color:#e9ddfa;line-height:1.5}.identity{display:flex;align-items:center;gap:.5rem;padding:1rem 0 0}.identity input{width:22px;height:22px;accent-color:#7b50d5}.notice{min-height:1.4rem;color:#fcd5a6;text-align:center}.notice.error{color:#ffb7c6}[hidden]{display:none!important}@media(max-width:520px){.site-header img{width:68px;height:54px}.panel{padding:1rem}.lookup-controls{grid-template-columns:1fr}.lookup-controls button{width:100%}}

.scan-hint{font-size:.85rem;margin:.65rem 0 0}
.back-link{color:#9cecf7;font-weight:800}.summary-toolbar{margin:.4rem 0 1rem}.summary-note{color:#c7badc;font-size:.9rem}.confirm-error{min-height:1.2em;color:#ffb7c6;margin:.5rem 0 0}
.person-panel{border-color:#8064b7}.person-panel h2{font-size:clamp(1.4rem,4vw,2rem);margin:.6rem 0 .1rem}.person-panel .person-id{font-size:1.6rem}.person-panel .status{font-size:1rem;font-weight:800;padding:.5rem .8rem}.status.done{background:#156346;color:#d6ffea}.status.not-done{background:#69421c;color:#ffe7b5}.status.waiting{background:#5e3345;color:#ffd1df}.result .result-badge{font-size:.9rem;color:#fff}.result-badge.not-done{background:#69421c;color:#ffe7b5}.result-badge.done{background:#156346;color:#d6ffea}.result-badge.waiting{background:#5e3345;color:#ffd1df}.person-panel .state-box{margin:1rem 0;background:#170f29;font-weight:700}.person-panel .identity{padding:.75rem 0;font-weight:800}.person-panel #registerButton,.person-panel #viewHandoffButton{width:100%;margin-top:.6rem}.handoff-status{color:#aeefd3!important;font-weight:800}.confirm-dialog h3{margin:1.2rem 0 .6rem}.handoff-items{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}.handoff-items>div{display:grid;gap:.25rem;background:#38235e;border:1px solid #8562c4;border-radius:12px;padding:.8rem}.handoff-items span{font-size:.8rem;color:#c7badc}.handoff-items strong{font-size:1.35rem;color:#fff}@media(max-width:520px){.handoff-items{grid-template-columns:1fr}.person-header{align-items:flex-start}.person-panel .status{max-width:55%;text-align:center}}
/* Staff must be able to read the check-in state at a glance. */
.result .result-badge.done,.person-panel .status.done{background:#0c7048;color:#eafff4;border:1px solid #41d99a;box-shadow:0 0 0 2px #10754944}
.result .result-badge.not-done,.person-panel .status.not-done{background:#9a263c;color:#fff0f2;border:1px solid #f58ca0}
.result .result-badge{font-weight:900;padding:.4rem .7rem}
dialog.confirm-dialog{background:#211534;color:#fff;border:1px solid #8c6bc1;padding:1.25rem;width:min(520px,calc(100vw - 1.5rem));box-shadow:0 28px 80px #070313dd}
.handoff-head{display:flex;align-items:center;gap:.8rem;margin-bottom:1rem}.handoff-head h2{margin:0;font-size:1.35rem}.handoff-icon{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:50%;background:#0c7048;color:#fff;font-size:1.5rem;font-weight:900}.handoff-status{margin:.1rem 0 0;color:#a9eacb!important;font-size:.85rem}.handoff-person{display:grid;gap:.1rem;padding:1rem;border-radius:14px;background:#180e2c;border:1px solid #5e4785}.handoff-person strong{font-size:1.15rem;line-height:1.25;overflow-wrap:anywhere}.handoff-person>span{color:#9cecf7;font-weight:900;font-size:1.25rem}.handoff-person small{color:#c7badc;line-height:1.4}.confirm-dialog h3{font-size:1rem;margin:1rem 0 .5rem}.handoff-items{grid-template-columns:repeat(2,minmax(0,1fr))}.handoff-items>div{background:#322051;border-color:#7455aa}.handoff-items strong{font-size:1.6rem;color:#fff;line-height:1.15}.handoff-items span{color:#d9cbea}.confirm-actions{margin-top:1.1rem}@media(max-width:520px){.handoff-items{grid-template-columns:repeat(2,minmax(0,1fr))}.handoff-items strong{font-size:1.25rem}.confirm-actions{grid-template-columns:1fr}}
.desk-links{display:flex;align-items:center;gap:1rem}.desk-links a{color:#9cecf7;font-weight:800}.result{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:.75rem;align-items:center}.result strong,.result span:not(.result-badge){grid-column:1}.result-badge{grid-column:2;grid-row:1 / span 2;align-self:center;border-radius:999px;padding:.35rem .6rem;background:#4d365f;color:#fff;font-size:.78rem;font-weight:800;white-space:nowrap}.result-badge.done{background:#17684e;color:#d8fff0}.result-badge.kit{background:#345f79;color:#d8f6ff}.result-badge.waiting{background:#624b32;color:#ffe9bd}.confirm-dialog{width:min(480px,calc(100vw - 1.5rem));max-height:calc(100dvh - 1.5rem);overflow:auto;border:1px solid #9570d1;border-radius:20px;padding:1.25rem;background:#211534;color:#fff;box-shadow:0 24px 70px #05020acc;font-family:'LINE Seed Sans TH',system-ui,sans-serif}.confirm-dialog::backdrop{background:#080414c9}.confirm-dialog h2{margin:0 0 1rem}.confirm-details{display:grid;gap:.6rem;margin:0}.confirm-details>div{border:1px solid #694e91;border-radius:11px;padding:.7rem;background:#160e29}.confirm-details dt{color:#b8a5d8;font-size:.8rem}.confirm-details dd{margin:.2rem 0 0;font-size:1.05rem;font-weight:800;overflow-wrap:anywhere}.confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-top:1rem}.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem}.summary-stat{border:1px solid #65488f;border-radius:14px;background:#2b1a47;padding:.9rem}.summary-stat span{display:block;color:#c7badc;font-size:.85rem}.summary-stat strong{display:block;font-size:1.8rem;margin-top:.2rem}.summary-table{width:100%;border-collapse:collapse}.summary-table th,.summary-table td{text-align:left;border-bottom:1px solid #5b437a;padding:.65rem .4rem}.summary-table th{color:#c7badc;font-size:.82rem}.summary-table-wrap{overflow-x:auto}.summary-table{min-width:600px}@media(max-width:700px){.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.desk-head{align-items:flex-start}.desk-links{flex-direction:column;gap:.25rem;align-items:flex-end}.result{grid-template-columns:1fr}.result-badge{grid-column:1;grid-row:auto;justify-self:start;margin-top:.45rem}.confirm-actions{grid-template-columns:1fr}}
.summary-list-head{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:1rem}.summary-list-head p{margin:.15rem 0 0}.summary-filters{display:flex;gap:.5rem}.summary-filters input{min-width:220px}.summary-filters select{min-height:48px;border:1px solid #8063aa;border-radius:12px;background:#110b21;color:#fff;padding:.65rem}.participant-table{min-width:720px}.participant-table td:first-child strong,.participant-table td:first-child span{display:block}.participant-table td:first-child strong{color:#9cecf7}.participant-table td:first-child span{font-size:.9rem;margin-top:.2rem}.table-status{display:inline-block;border-radius:999px;padding:.3rem .6rem;font-weight:800;white-space:nowrap;font-size:.8rem}.table-status.done{background:#0c7048;color:#eafff4}.table-status.remaining{background:#9a263c;color:#fff0f2}.table-status.neutral{background:#4b3868;color:#eadffa}@media(max-width:700px){.summary-list-head{display:block}.summary-filters{margin-top:.75rem}.summary-filters input{min-width:0;flex:1}.summary-filters select{max-width:42%}}
.summary-filters{align-items:center;flex-wrap:wrap}.filter-buttons{display:flex;gap:.3rem;padding:.25rem;border:1px solid #6b5191;border-radius:13px;background:#160e29}.filter-buttons button{font-family:'LINE Seed Sans TH',system-ui,sans-serif;min-height:40px;border:0;border-radius:9px;background:transparent;color:#d8cbea;padding:.4rem .7rem;font-size:.9rem;font-weight:800;white-space:nowrap}.filter-buttons button[aria-pressed=true]{background:#5d4df3;color:#fff}.filter-buttons button:focus-visible{outline:3px solid #83dfeb;outline-offset:2px}.participant-table{min-width:650px}.participant-table td:first-child small{display:block;color:#b9a8d8;margin-top:.18rem}.participant-table .table-status{white-space:normal;line-height:1.3}@media(max-width:700px){.summary-filters{display:grid;grid-template-columns:1fr}.summary-filters input{width:100%}.filter-buttons{width:max-content;max-width:100%;overflow-x:auto}.filter-buttons button{flex:1}}
#registrationStats{grid-template-columns:repeat(3,minmax(0,1fr))}.role-tabs{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin:1rem 0}.role-tabs button{font-family:'LINE Seed Sans TH',system-ui,sans-serif;text-align:left;min-height:58px;border-radius:13px;padding:.7rem 1rem;font-weight:900;font-size:1rem;cursor:pointer}.role-tabs button span{display:inline-block;margin-left:.4rem;padding:.12rem .5rem;border-radius:999px}.role-tabs button[data-role=participant]{background:#123146;border:1px solid #24799d;color:#a8eeff}.role-tabs button[data-role=leader]{background:#41251d;border:1px solid #ae693b;color:#ffd2ac}.role-tabs button[data-role=participant][aria-selected=true]{background:#175876;border:2px solid #63d5f7;color:#fff}.role-tabs button[data-role=leader][aria-selected=true]{background:#7a4125;border:2px solid #ffad6b;color:#fff}.role-tabs button[data-role=participant] span{background:#216883}.role-tabs button[data-role=leader] span{background:#9e5931}.role-panel{border-radius:13px;padding:.35rem .85rem}.participant-panel{background:#112537;border:1px solid #266c8a}.leader-panel{background:#2b1e20;border:1px solid #9b603c}.participant-panel .participant-table td:first-child strong{color:#76dcff}.leader-panel .participant-table td:first-child strong{color:#ffc188}.leader-panel .summary-table th{color:#f6c5a2}.role-panel .summary-table td{border-bottom-color:#ffffff24}@media(max-width:700px){#registrationStats{grid-template-columns:1fr 1fr}.role-tabs button{font-size:.9rem;padding:.65rem}.role-panel{padding:.2rem}}
.participant-table{table-layout:fixed;min-width:760px}.participant-table .name-col{width:34%}.participant-table .organization-col{width:38%}.participant-table .shirt-col{width:10%}.participant-table .status-col{width:18%}.participant-table th,.participant-table td{padding:.75rem .55rem;vertical-align:middle;line-height:1.4}.participant-table td:first-child strong{font-size:1rem;line-height:1.2}.participant-table td:first-child span{font-size:.92rem;line-height:1.35;overflow-wrap:anywhere}.participant-table td:nth-child(2){font-size:.91rem;overflow-wrap:anywhere}.participant-table td:nth-child(3){white-space:nowrap}.participant-table .table-status{font-size:.78rem;line-height:1.2;white-space:nowrap;padding:.38rem .55rem}.role-panel .summary-table-wrap{scrollbar-color:#7f64aa transparent}
.lookup-controls{grid-template-columns:minmax(0,1fr)}
/* Keep the staff and summary pages on the same viewport-based backdrop. */
body{background-color:#100b1f;background-image:radial-gradient(ellipse 900px 700px at 85% 0%,#31205b 0%,#100b1f 75%);background-repeat:no-repeat;background-attachment:fixed}
.summary-list-head{display:block}.summary-list-head>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:.85rem}.summary-list-head>div:first-child h2{margin:0}.summary-list-head>div:first-child p{margin:0;white-space:nowrap}.summary-filters{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.75rem;align-items:center}.summary-filters input{min-width:0;width:100%;height:52px}.filter-buttons{height:52px;align-items:center;flex-wrap:nowrap}.filter-buttons button{min-height:42px}@media(max-width:700px){.summary-filters{grid-template-columns:minmax(0,1fr)}.filter-buttons{width:100%;justify-content:space-between}.filter-buttons button{white-space:normal;line-height:1.15;text-align:center}.summary-list-head>div:first-child{align-items:center}}
.reset-link{display:block;margin:.8rem auto 0;border:0;background:transparent;color:#ffb7c6;text-decoration:underline;font:inherit;font-weight:800;padding:.45rem}.reset-link:hover{color:#fff}.reset-warning{color:#ffd3dd!important;margin:.2rem 0 1rem}.reset-reason-label{display:block;margin:1rem 0 .35rem;font-weight:800}.confirm-dialog textarea{display:block;width:100%;resize:vertical;min-height:88px;border:1px solid #8063aa;border-radius:12px;background:#110b21;color:#fff;padding:.7rem;font:inherit}.danger{min-height:48px;border:1px solid #f58ca0;border-radius:12px;background:#9a263c;color:#fff;padding:.7rem 1rem;font:inherit;font-weight:800}.danger:disabled{opacity:.48}.confirm-dialog textarea:focus-visible,.danger:focus-visible,.reset-link:focus-visible{outline:3px solid #83dfeb;outline-offset:2px}
.reset-person{display:grid;gap:.55rem;padding:1rem;border-radius:14px;background:#180e2c;border:1px solid #5e4785}.reset-person>div{display:grid;gap:.15rem}.reset-person small{display:block;color:#b9a8d8;font-size:.8rem}.reset-person strong{display:block;color:#fff;font-size:1.05rem;line-height:1.25;overflow-wrap:anywhere}.reset-person>div+div strong{color:#9cecf7;font-size:1.2rem}
.handoff-actions{display:block}.handoff-actions #closeHandoffButton{display:block;width:100%}.handoff-head h2{margin:0}.handoff-person small{display:block}
.result .result-shirt{color:#9cecf7;font-weight:800}

.sticker-entry{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;background:linear-gradient(110deg,#2d1a4b,#1d2448);border-color:#8064b7}.sticker-entry h2{margin:.3rem 0;font-size:1.2rem}.sticker-entry p{margin:0;max-width:530px}.sticker-entry-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.7rem 1rem;border-radius:12px;color:#fff;text-decoration:none;font-weight:800;text-align:center;white-space:nowrap}.sticker-entry-button:focus-visible{outline:3px solid #83dfeb;outline-offset:3px}@media(max-width:700px){.sticker-entry{display:block}.sticker-entry-button{margin-top:1rem;width:100%;white-space:normal}}

.certificate-link{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.7rem 1rem;border-radius:12px;text-align:center;font-weight:800;text-decoration:none}.handoff-actions .certificate-link{display:flex;width:100%;margin-bottom:.6rem}.certificate-link:focus-visible{outline:3px solid #83dfeb;outline-offset:3px}
