:root { font-family: system-ui, sans-serif; color: #152139; background: #f3f6fb; font-synthesis: none; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.account { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.install-button { white-space: nowrap; }
.login-panel { max-width: 480px; margin: 1rem auto; }
.login-panel:has(.register-form:not([hidden])) { max-width: 760px; }
.register-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem 1.5rem; }
.register-heading, .register-actions { grid-column: 1 / -1; }
.register-heading h2 { margin: .15rem 0 .35rem; font-size: 1.55rem; }
.register-heading .intro { margin: 0; }
.register-form .field { min-width: 0; }
.register-form .field input, .register-form .field select { margin-bottom: 0; }
.register-form small { display: block; color: #647086; font-size: .8rem; margin-top: .4rem; }
.register-actions { display: flex; align-items: center; gap: .75rem; padding-top: .35rem; border-top: 1px solid #e5eaf2; }
.register-actions button { min-width: 165px; }
input { display: block; width: 100%; font: inherit; padding: .7rem; min-height: 46px; border: 1px solid #aebbd0; border-radius: 6px; margin-bottom: 1.25rem; }
.demo-accounts { margin-top: 1.5rem; font-size: .875rem; color: #516078; line-height: 1.6; }
.demo-accounts summary { cursor: pointer; }
.student-workspace { grid-template-columns: 1fr !important; }
body { margin: 0; }
header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem max(5vw, 1rem); background: #fff; border-bottom: 1px solid #dce3ee; }
header > span { color: #516078; font-size: .9rem; }
.brand { color: #1e40af; font-size: 1.5rem; font-weight: 800; text-decoration: none; display: flex; align-items: center; gap: .8rem; }
.brand span { color: #152139; font-size: 1.1rem; }
.brand .brand-mark { display: inline-flex; align-items: center; justify-content: center; padding: .5rem .65rem; border-radius: .7rem; background: #1e40af; color: #fff; font-size: .75rem; letter-spacing: .08em; }
main { max-width: 1120px; margin: auto; padding: 3.5rem 1.5rem; }
.eyebrow { font-size: .875rem; font-weight: 700; letter-spacing: .12em; color: #1e40af; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.04em; margin: .75rem 0; line-height: 1.15; }
.intro { color: #516078; line-height: 1.6; }
.notice { font-size: .875rem; padding: 1rem; margin: 1.8rem 0; background: #e8eefc; color: #243d77; border-left: 3px solid #3156be; line-height: 1.5; }
.workspace { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1.5rem; }
.panel { background: #fff; border: 1px solid #dce3ee; border-radius: 12px; padding: 1.5rem; }
h3 { margin: 1rem 0 .5rem; }
hr { border: 0; border-top: 1px solid #e5eaf2; margin: 1.5rem 0; }
.import-preview { padding: .8rem 1rem; margin-bottom: 1rem; border-left: 3px solid #3156be; background: #e8eefc; color: #243d77; line-height: 1.5; overflow-wrap: anywhere; }
.confirmation { color: #14532d; font-weight: 650; line-height: 1.5; }
h2 { font-size: 1.15rem; margin: 0 0 1.5rem; }
label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .5rem; }
select, button { font: inherit; min-height: 46px; border-radius: 6px; }
select { width: 100%; border: 1px solid #aebbd0; padding: .7rem; margin-bottom: 1.25rem; background: white; color: inherit; }
button { background: #1e40af; border: 1px solid #1e40af; color: white; padding: .6rem 1rem; cursor: pointer; font-weight: 600; }
form button { width: 100%; }
button:hover { background: #17328b; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #5278eb; outline-offset: 3px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.badge { color: #1e40af; background: #e8eefc; padding: .35rem .65rem; border-radius: 20px; font-size: .875rem; white-space: nowrap; }
.empty { color: #647086; padding: 2rem 0; line-height: 1.6; }
.pass { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid #e5eaf2; }
.pass p { color: #516078; font-size: .9rem; margin: .4rem 0 0; line-height: 1.5; }
.secondary { background: #fff; color: #1e40af; font-size: .875rem; }
.secondary:hover { background: #e8eefc; }
.history { margin-top: 1.5rem; }
.checkbox-label { display: flex; align-items: center; gap: .6rem; margin: .75rem 0; }
.checkbox-label input { width: 20px; min-height: 20px; margin: 0; }
.roster-gender { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; }
.roster-gender label { margin: 0; }
.roster-gender select { margin: .3rem 0 0; }
.roster-gender button, #checkout-rules-form .actions button { width: auto; }
#teacher-history-panel { margin-bottom: 1rem; }
#history-form label { flex: 0 0 auto; white-space: nowrap; }
#message { font-size: .9rem; line-height: 1.5; margin-bottom: 0; }
@media (max-width: 700px) { main { padding-top: 2rem; } .workspace { grid-template-columns: 1fr; } .pass { flex-wrap: wrap; } header { flex-wrap: wrap; } .teacher-checkout { grid-template-columns: 1fr; } }
.kiosk-panel { max-width: 640px; margin: 1rem auto; }
.history-lookup { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; max-width: 760px; }
.history-lookup .checkbox-label { flex: 1 0 100%; order: 2; }
.history-lookup label { flex: 1; }
.history-lookup input { margin: .5rem 0 0; }
.teacher-checkout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: .75rem; }
.teacher-checkout input, .teacher-checkout select { margin: .5rem 0 0; }
.button-link { display: inline-flex; align-items: center; min-height: 42px; padding: .6rem 1rem; border: 1px solid #1e40af; border-radius: 6px; color: #1e40af; text-decoration: none; font-weight: 600; }
@media (max-width: 600px) { .history-lookup { display: block; } .history-lookup button { width: 100%; margin-top: .5rem; } }
.live-display { margin-bottom: 1.5rem; border-top: 4px solid #1e40af; }
.display-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.display-heading h2 { margin-bottom: .75rem; }
#display-health { color: #516078; font-size: .875rem; }
.display-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(220px, .9fr); gap: 2rem; }
.display-grid h3 { font-size: 1rem; margin: .5rem 0; }
.display-grid .empty { padding: .5rem 0; }
.elapsed { font-size: clamp(3rem, 6vw, 4rem); line-height: 1; font-weight: 900; color: #1e40af; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.status-pass { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(170px, .8fr) auto; align-items: center; gap: 1rem; padding: 1.2rem; border: 1px solid #dce3ee; border-left: 6px solid #1e40af; border-radius: 10px; background: #fff; }
.status-details { min-width: 0; }
.status-name { display: block; color: #152139; font-size: 1.2rem; }
.pass-destination { margin-top: .25rem; color: #142f77; font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 900; line-height: 1.1; overflow-wrap: anywhere; }
.time-out { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; }
.time-out-label { color: #516078; font-size: .85rem; font-weight: 800; letter-spacing: .14em; }
.out-since { color: #34435c; font-size: .95rem; font-weight: 700; }
.emergency-button { background: #b91c1c; border-color: #b91c1c; }
.emergency-button:hover { background: #991b1b; }
.emergency-pass { border-left-color: #b91c1c; }
.emergency-label { display: block; color: #b91c1c; font-size: .8rem; font-weight: 900; letter-spacing: .06em; }
.emergency-pass .elapsed { color: #b91c1c; }
.display-checkin { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.display-checkin-form { display: flex; align-items: center; gap: .4rem; }
.display-checkin-form input { width: 120px; min-height: 42px; margin: 0; }
.display-checkin-form button { min-height: 42px; }
#display-waitlist { margin: .75rem 0; padding-left: 1.5rem; }
#display-waitlist li { padding: .35rem 0; }
.next-turn { display: block; color: #1e40af; font-size: .875rem; }
.waitlist-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.waitlist-actions button { padding: .4rem .65rem; font-size: .85rem; min-height: 40px; }
.waitlist-confirm { display: flex; flex-wrap: wrap; align-items: end; gap: .4rem; margin-top: .5rem; }
.waitlist-confirm label { flex: 1 1 130px; margin: 0; }
.waitlist-confirm input { margin: .3rem 0 0; }
.waitlist-confirm button { width: auto; }
.waitlist-error { flex-basis: 100%; color: #b91c1c; margin: 0; font-size: .9rem; }
@media screen and (min-width: 900px) {
  body:is([data-view="kiosk"], [data-view="student"]) header { padding: .65rem 2rem; }
  body:is([data-view="kiosk"], [data-view="student"]) main {
    max-width: 1440px; padding: 1rem 1.5rem; display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-areas: "message message" "status action";
    grid-template-rows: auto minmax(0, 1fr); gap: .75rem 1rem;
    height: calc(100dvh - 74px); align-items: start;
  }
  body:is([data-view="kiosk"], [data-view="student"]) #message { grid-area: message; margin: 0; padding: .5rem .75rem; }
  body:is([data-view="kiosk"], [data-view="student"]) #message:empty { display: none; }
  body:is([data-view="kiosk"], [data-view="student"]) .live-display { grid-area: status; margin: 0; max-height: 100%; overflow-y: auto; }
  body:is([data-view="kiosk"], [data-view="student"]) .kiosk-panel { grid-area: action; width: 100%; max-width: none; max-height: 100%; overflow-y: auto; margin: 0; }
  body:is([data-view="kiosk"], [data-view="student"]) .display-grid { grid-template-columns: 1fr; gap: .5rem; }
  body:is([data-view="kiosk"], [data-view="student"]) .panel { padding: 1rem; }
  body:is([data-view="kiosk"], [data-view="student"]) .status-pass { grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; padding: .75rem; }
  body:is([data-view="kiosk"], [data-view="student"]) .display-checkin { grid-column: 1 / -1; margin: 0; }
  body:is([data-view="kiosk"], [data-view="student"]) h1 { font-size: 2rem; margin: .35rem 0; }
  body:is([data-view="kiosk"], [data-view="student"]) .eyebrow { margin: 0 0 .4rem; }
  body:is([data-view="kiosk"], [data-view="student"]) .intro { margin: .6rem 0; font-size: .9rem; }
  body:is([data-view="kiosk"], [data-view="student"]) .notice { margin: .6rem 0; padding: .65rem; }
  body:is([data-view="kiosk"], [data-view="student"]) .actions { margin: .65rem 0; gap: .5rem; }
  body:is([data-view="kiosk"], [data-view="student"]) input,
  body:is([data-view="kiosk"], [data-view="student"]) select { margin-bottom: .65rem; }
  body:is([data-view="kiosk"], [data-view="student"]) .waitlist-confirm input { margin-bottom: 0; }
}
@media (max-width: 800px) { .status-pass { grid-template-columns: 1fr 1fr; } .display-checkin { grid-column: 1 / -1; margin-left: 0; } }
@media (max-width: 600px) { .display-grid { grid-template-columns: 1fr; gap: 1rem; } .status-pass { grid-template-columns: 1fr; text-align: left; } .time-out { align-items: flex-start; text-align: left; } .display-checkin { grid-column: auto; } }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; }
.filters { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: left; }
th, td { padding: .85rem .65rem; border-bottom: 1px solid #dce3ee; vertical-align: top; }
th { color: #516078; font-weight: 600; }
#message:not(:empty) { padding: 1rem; background: #e8eefc; border-left: 3px solid #3156be; margin: 0 0 1.5rem; }
.confirmation { display: none; margin: 1rem 0; padding: .85rem 1rem; color: #14532d; background: #dcfce7; border-left: 3px solid #16a34a; line-height: 1.5; }
.confirmation.visible { display: block; }
#roster { max-height: 400px; overflow-y: auto; }
@media (max-width: 700px) { .filters { grid-template-columns: 1fr; } .register-form { grid-template-columns: 1fr; } .register-heading, .register-actions { grid-column: auto; } .register-actions { flex-direction: column; align-items: stretch; } .register-actions button { width: 100%; } }

dialog { max-width: min(440px, calc(100vw - 2rem)); border: 1px solid #dce3ee; border-radius: 16px; padding: 1.5rem; text-align: center; color: #14213a; } dialog::backdrop { background: #14213ab3; } #pass-qr { display: block; max-width: 100%; height: auto; margin: auto; }
