/* The setup form is a record editor, with one vertical card per person or class. */
.setup164{--setup-ink:#293c4d;--setup-muted:#647183;--setup-line:#e1e5eb;--setup-green:#287461}
.setup164 main{max-width:1200px;color:var(--setup-ink)}
.setup164 .lead{margin:8px 0 26px;line-height:1.7;color:var(--setup-muted)}
.setup164 .card{border:1px solid var(--setup-line);border-radius:16px;box-shadow:none;padding:24px;margin:20px 0}
.setup164 .setup-context164{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px 22px}
.setup164 .setup-context164 h2{margin:0 0 4px;font-size:19px!important}.setup164 #academyMeta{margin:0;font-size:14px!important;color:var(--setup-muted)}
.setup164 .setup-context-tools164{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.setup164 .setup-context-tools164>label{margin:0;font-size:14px!important;max-width:270px}
.setup164 .setup-context-tools164 select{min-width:190px}.setup164 .setup-context164 details{margin:0}.setup164 .setup-context164 details[open]{width:100%}
.setup164 #onboardingProgress{border-left:3px solid #79a997}.setup164 #onboardingProgress h2{font-size:19px!important}
.setup164 .setup-entry-heading164{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.setup164 .setup-entry-heading164 h2{margin:0 0 5px;font-size:22px!important}.setup164 .setup-entry-heading164 p{margin:0;color:var(--setup-muted);font-size:15px!important}
.setup164 .setup-mode164{display:flex;gap:8px;margin:0 0 24px;padding:5px;border-radius:11px;background:#f3f5f7;width:fit-content}
.setup164 .setup-mode164 label{margin:0;background:transparent;padding:9px 16px;border:1px solid transparent;border-radius:8px;cursor:pointer;font-size:16px!important;color:#5b697a;min-height:46px}
.setup164 .setup-mode164 label:has(input:checked){background:white;border-color:#e3e7eb;color:#246c58;box-shadow:0 1px 3px #233b5010}
.setup164 .setup-mode164 input{width:18px!important;height:18px!important;accent-color:#287461}
.setup164 .roster-tabs164{display:flex;gap:24px;border-bottom:1px solid var(--setup-line);margin:0 0 22px;overflow-x:auto}
.setup164 .roster-tabs164 button{display:flex;align-items:center;gap:8px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--setup-muted);padding:12px 2px;white-space:nowrap;min-height:50px;font-size:17px!important;flex:none}
.setup164 .roster-tabs164 button[aria-selected=true]{border-bottom-color:var(--setup-green);color:#236753;font-weight:700}
.setup164 .roster-tabs164 span{font-size:13px!important;font-weight:600;background:#f0f3f5;border-radius:6px;padding:1px 6px;color:#657384}
.setup164 .roster-panel164{min-width:0}.setup164 .roster-section-head164{display:flex;align-items:start;justify-content:space-between;gap:18px;margin:0 0 18px}
.setup164 .roster-section-head164 h3{margin:0 0 6px;font-size:20px!important}.setup164 .roster-section-head164 p{max-width:700px;margin:0;color:var(--setup-muted);font-size:15px!important;line-height:1.7}
.setup164 .roster-section-head164>button{flex:none;border-color:#b8d5c9;color:#276e59;background:#f4faf7}
.setup164 .roster-rows164:empty::before{display:block;content:attr(data-empty);text-align:center;padding:42px 20px;background:#fafbfc;border:1px dashed #d8dfe6;border-radius:12px;font-size:16px;color:var(--setup-muted)}
.setup164 .roster-record164{border:1px solid var(--setup-line);border-radius:12px;background:#fff;margin:10px 0;overflow:hidden}
.setup164 .roster-record164>summary{display:flex;align-items:center;gap:14px;padding:16px 18px;list-style:none;color:var(--setup-ink);min-height:64px}
.setup164 .roster-record164>summary::-webkit-details-marker{display:none}.setup164 .roster-record164>summary::after{content:'⌄';margin-left:auto;font-size:20px;color:#7a8795}.setup164 .roster-record164[open]>summary::after{transform:rotate(180deg)}
.setup164 .roster-record164>summary strong{font-size:18px!important;min-width:100px;overflow-wrap:anywhere}.setup164 .roster-record164>summary span{font-size:14px!important;color:#6c7987;overflow-wrap:anywhere}
.setup164 .roster-record164[open]>summary{background:#fafbfc;border-bottom:1px solid #e9edf1}
.setup164 .roster-record-body164{padding:20px}.setup164 .roster-fields164{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px}
.setup164 .roster-fields164 label{min-width:0;margin:0;font-size:15px!important;font-weight:600;color:#435568;gap:8px}
.setup164 .roster-fields164 :is(input,select,textarea){width:100%;min-width:0;margin:0;border:1px solid #d7dee6;border-radius:9px;box-shadow:none;color:#293c4d;font-weight:400;font-size:17px!important;line-height:1.5!important;min-height:48px;padding:11px 12px}
.setup164 .roster-fields164 input::placeholder{font-weight:400;color:#798592}.setup164 .roster-fields164 label[data-roster-wide164]{grid-column:1/-1}
.setup164 .roster-fields164 label:has(input[type=checkbox]){display:flex;flex-direction:row;align-items:start;font-weight:400;grid-column:1/-1}
.setup164 .roster-fields164 input[type=checkbox]{width:20px!important;height:20px!important;min-height:0!important;padding:0;flex:none;margin-top:3px;accent-color:var(--setup-green)}
.setup164 .roster-optional164{margin:22px 0 0;border-top:1px solid #edf0f3;padding-top:4px}.setup164 .roster-optional164>summary{color:#617183;font-size:15px!important;padding:12px 0}.setup164 .roster-optional164[open]>summary{margin-bottom:10px}
.setup164 .roster-remove164{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:20px;padding-top:14px;border-top:1px solid #edf0f3}.setup164 .roster-remove164 small{font-size:13px!important;color:#697a89}.setup164 .roster-remove164 button{font-size:14px!important;padding:7px 10px;min-height:40px;color:#6d7986;border-color:#e1e5eb}
.setup164 .setup-options164{margin:24px 0 0}.setup164 .setup-options164>summary{font-size:15px!important;color:#607080}.setup164 .setup-options164 .choices label{background:#fafbfc;font-size:15px!important}
.setup164 .setup-save164{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #e4e8ed;padding-top:20px;margin-top:26px}.setup164 .setup-save164 p{color:var(--setup-muted);margin:0;font-size:15px!important}.setup164 .setup-save164 button{flex:none;background:#287461!important;color:white!important;border-color:#287461!important;padding:12px 22px}
.setup164 .setup-history164>details{margin:0}.setup164 .setup-history164>details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--setup-ink);font-weight:700;font-size:20px!important}.setup164 .setup-history164 summary small{font-size:14px!important;color:var(--setup-muted);font-weight:400}
.setup164 #autoPanel{border:1px dashed #d5dfe7;border-radius:12px;padding:22px;background:#fafbfc}.setup164 #autoPanel>label{margin:18px 0}.setup164 #autoPanel p{font-size:15px!important;line-height:1.7}
.setup164 .grid{gap:18px;min-width:0}.setup164 .grid>label{min-width:0}.setup164 .grid input{width:100%;min-width:0}
html[data-readable124=large] .setup164 :is(.roster-fields164 input,.roster-fields164 select,.roster-fields164 textarea,.roster-tabs164 button){font-size:20px!important}
@media(max-width:680px){.setup164 .card{padding:18px}.setup164 .setup-context164{padding:16px}.setup164 .roster-tabs164{gap:18px}.setup164 .roster-fields164{grid-template-columns:1fr;gap:16px}.setup164 .roster-record-body164{padding:16px}.setup164 .roster-record164>summary{flex-wrap:wrap;gap:5px 12px;padding:14px}.setup164 .roster-record164>summary span{max-width:70%}.setup164 .roster-section-head164{flex-wrap:wrap}.setup164 .setup-save164{align-items:stretch;flex-direction:column;gap:14px}.setup164 .setup-save164 button{width:100%}.setup164 .setup-context-tools164{width:100%}.setup164 .setup-context-tools164>label{max-width:none;flex:1}.setup164 .setup-mode164{width:100%;flex-wrap:wrap}.setup164 .setup-mode164 label{flex:1;padding:9px 12px;white-space:nowrap}.setup164 .setup-history164>details>summary{align-items:start;flex-direction:column}.setup164 .roster-remove164{align-items:start;flex-direction:column}}

/* Compact context leaves the first fields close to the page title. */
.setup164 .setup-context164{padding:14px 20px;margin:18px 0}.setup164 .setup-context164>div:first-child{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.setup164 .setup-context164 h2{margin:0}.setup164 .setup-context-tools164{margin-left:auto}.setup164 .setup-entry-heading164{margin-bottom:16px}.setup164 .setup-mode164{margin-bottom:14px}.setup164 .roster-tabs164{margin-bottom:18px}.setup164 .roster-section-head164{margin-bottom:12px}.setup164 .roster-section-head164 p{font-size:15px!important}.setup164 #kioskSettings{margin-top:24px;border-top:1px solid #e5e9ee;padding-top:14px}.setup164 .setup-entry164{padding:22px 24px}
.setup164 .setup-history164 table{white-space:normal;overflow-wrap:anywhere}.setup164 .setup-history164 :is(th,td){font-size:15px!important;vertical-align:top;padding:12px 10px}.setup164 .setup-history164 .scroll{border:1px solid #e3e7ed;border-radius:10px}.setup164 .setup-history164 .ack{align-items:flex-start;line-height:1.7}.setup164 .setup-history164 .ack input{flex:none;margin-top:5px}
@media(max-width:700px){.setup164>header{flex-direction:column!important;align-items:flex-start!important;gap:12px!important;padding:16px!important}.setup164>header>div{flex:none}.setup164>header .brand{white-space:nowrap;font-size:21px!important}.setup164>header nav{display:flex;flex-wrap:wrap;gap:8px;width:100%;justify-content:flex-start}.setup164>header nav :is(a,button){flex:none;white-space:nowrap!important;word-break:normal!important;min-width:0;font-size:14px!important;line-height:1.5!important;padding:8px 10px;min-height:40px}.setup164>header nav a{border:1px solid #e0e6ec;border-radius:8px;text-decoration:none}.setup164 .setup-context164>div:first-child{display:block}.setup164 .setup-context164 h2{margin-bottom:4px}.setup164 .setup-context-tools164{width:auto;margin-left:0}.setup164 .setup-entry164{padding:18px}.setup164 .setup-history164 :is(table,tbody,tr){display:block}.setup164 .setup-history164 thead{display:none}.setup164 .setup-history164 tbody tr+tr{border-top:1px solid #dfe5eb}.setup164 .setup-history164 td{display:grid;grid-template-columns:88px minmax(0,1fr);gap:10px;white-space:normal;word-break:break-word;border:0;padding:8px 12px}.setup164 .setup-history164 td::before{content:attr(data-label164);font-weight:600;color:#627386}.setup164 .setup-history164 .scroll{overflow:visible}.setup164 .setup-history164 .job>.row{gap:8px}}
