:root{font:16px/1.55 system-ui,sans-serif;color:#243d33;background:#f4f6f1;--green:#235c47;--muted:#65776d}*{box-sizing:border-box}body{margin:0}header{max-width:1100px;margin:auto;padding:24px;display:flex;gap:16px;justify-content:space-between;align-items:center}header span,footer{color:var(--muted);font-size:13px}.brand{font-size:23px;font-weight:800;text-decoration:none;color:var(--green)}main{max-width:1050px;margin:12px auto;padding:0 24px}footer{padding:32px 24px;text-align:center}.card{background:white;padding:28px;border:1px solid #dce5d8;border-radius:22px;margin-bottom:20px}.narrow{max-width:510px;margin:32px auto}h1{font-size:30px;line-height:1.25;margin:6px 0 14px}h2{font-size:21px;margin:0 0 16px}p{margin:10px 0}label{display:block;font-weight:600;margin:14px 0 5px}input,select,textarea{font:inherit;background:#fff;color:inherit;width:100%;padding:12px;border:1px solid #bacdbf;border-radius:10px}textarea{min-height:90px}button,.button{font:inherit;font-weight:650;display:inline-block;padding:12px 18px;border-radius:11px;border:0;background:var(--green);color:white;cursor:pointer;text-decoration:none;margin:8px 8px 0 0}button:disabled{opacity:.5;cursor:wait}.secondary{background:#e8efe5;color:#305e48}.danger{background:#a83f35}.row{display:flex;flex-wrap:wrap;gap:14px}.row>*{flex:1;min-width:140px}.muted{color:var(--muted);font-size:14px}.notice{padding:15px;border-radius:12px;background:#eef4e9;margin:14px 0;white-space:pre-line}.warn{background:#fff0cd;color:#79550e}.error{background:#fce8e4;color:#922f27}.badge{display:inline-block;padding:4px 10px;border-radius:7px;background:#e8efe5;font-size:13px}.list{border-bottom:1px solid #e0e7df;padding:16px 0}.list:last-child{border:0}.tabs{margin-bottom:18px}details{padding:12px 0}summary{cursor:pointer;color:var(--green);font-weight:650}.qr{width:240px;max-width:100%;display:block;margin:16px auto}table{border-collapse:collapse;width:100%;font-size:14px}td,th{padding:10px;text-align:left;border-bottom:1px solid #e0e7df}.scroll{overflow:auto}pre{white-space:pre-wrap;font-size:13px}.hero{background:#e8efe5}.step{font-size:12px;text-transform:uppercase;letter-spacing:1px;color:var(--green);font-weight:800}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #cf9d39;outline-offset:3px}@media(max-width:600px){header{padding:18px;align-items:flex-start}header span{max-width:150px;text-align:right}main{padding:0 14px}.card{padding:20px;border-radius:17px}h1{font-size:25px}.row{gap:4px}.row>*{min-width:120px}}

[hidden]{display:none!important}fieldset{border:1px solid #dce5d8;border-radius:12px;padding:12px;margin:16px 0;min-width:0}legend{font-weight:650;padding:0 6px}.day-choice{display:inline-flex;align-items:center;gap:8px;margin:5px;padding:10px 12px;border:1px solid #dce5d8;border-radius:9px;cursor:pointer}.day-choice input{width:auto;accent-color:#235c47}.day-choice:has(input:checked){background:#dceedd;border-color:#235c47}.actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.actions button{margin:0}input,select{min-width:0}td{overflow-wrap:anywhere}button,legend{overflow-wrap:anywhere}

.day-time{border-top:1px solid #dce5d8;padding:10px 0}.day-time h3{margin:8px 0 0;font-size:17px}dialog{max-width:min(90vw,500px)}dialog::backdrop{background:#142c2370}

.attendance-code{display:flex;flex-direction:column;align-items:center;gap:3px;padding:13px 18px;margin:12px 0;border:1px solid #a8c8b3;border-radius:12px;background:#f0f7ee;color:#235c47}
.attendance-code>span{font-size:13px;font-weight:500}.attendance-code>strong{font:600 26px/1.35 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:2px;overflow-wrap:anywhere;text-align:center}
.attendance-session-meta{margin-top:10px;padding:10px 13px;font-size:14px}
.attendance-line{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center;gap:4px 14px;padding:12px 0}
.attendance-person{grid-column:1;grid-row:1;min-width:0}.attendance-person details{padding:0}.attendance-person summary{font-weight:600;line-height:1.45;overflow-wrap:anywhere}.attendance-person details[open]{padding-bottom:8px}
.attendance-status{font-size:12px;color:#65776d;margin:4px 0 0 16px;line-height:1.4}.attendance-status.pending{color:#916020}
.attendance-choices{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:6px;white-space:nowrap}
.attendance-choices .day-choice{margin:0;padding:8px 9px;gap:5px;font-size:14px;font-weight:500;min-height:42px;cursor:pointer}
.attendance-choices input{width:17px;height:17px;margin:0;padding:0;flex:none;accent-color:#235c47}
.attendance-choices button{margin:0;padding:8px 10px;font-size:13px;min-height:40px}.attendance-present{font-size:13px;color:#235c47;background:#e8f1e4;padding:5px 8px;border-radius:7px}
.attendance-warning{grid-column:1/-1;margin:2px 0 0;font-size:12px;line-height:1.4}
.attendance-line:has(details[open]){grid-template-columns:minmax(0,1fr)}.attendance-line:has(details[open]) .attendance-choices{grid-column:1;grid-row:2;justify-self:end}
@media(max-width:420px){.attendance-line{column-gap:8px}.attendance-choices{gap:4px}.attendance-choices .day-choice{padding:8px 6px;gap:4px;font-size:13px}.attendance-choices input{width:16px;height:16px}.attendance-code>strong{font-size:24px}.attendance-person summary{font-size:14px}}

.tuition-receipt{display:block;width:auto;max-width:100%;max-height:580px;object-fit:contain;margin:12px 0;border:1px solid #dce5d8;border-radius:10px}
.cash-match{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;text-align:left;margin:8px 0;padding:13px 16px;line-height:1.5}.cash-match span,.cash-match small{font-weight:400}.cash-match small{color:var(--muted)}.cash-identity>strong{font-size:20px}.cash-identity p{margin:5px 0}
.profile-roster-row{padding:14px 0;border-bottom:1px solid #dce5d8}.profile-roster-row:last-child{border-bottom:0}.profile-student{display:block;width:100%;text-align:left;margin:0;padding:13px 16px;line-height:1.5}.profile-roster-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 0}.profile-roster-tools>label{margin:0 0 0 auto;font-size:14px}.profile-roster-tools input{width:22px;height:22px;accent-color:#235c47}.profile-attention{font-size:13px;color:#946219}.profile-inline{padding:14px;background:#f4f7ef;border:1px solid #dce5d8;border-radius:16px;margin-top:6px}.profile-inline .card{padding:18px;margin-bottom:12px}.profile-inline .card:last-child{margin-bottom:0}.student-profile-card>h2:last-of-type{font-size:25px;color:#235c47}.profile-inline .student-profile-card>h2:last-of-type{text-align:center;padding:14px;background:#edf3e7;border-radius:12px}@media(max-width:480px){.profile-inline{padding:9px}.profile-inline .card{padding:14px}.profile-student{font-size:15px}.profile-roster-tools{gap:8px}.profile-roster-tools>label{padding:7px 9px}}
.cash-card{max-width:760px;margin:0 auto 20px}.cash-card h2{font-size:25px;margin-bottom:12px}.cash-nav{margin:0 0 14px}.cash-identity-row{display:flex;gap:12px;align-items:center;margin:20px 0}.cash-identity-row>button{flex:none;margin:0;padding:10px 12px}.cash-identity{flex:1;min-width:0;padding:16px;background:#f0f5eb;border:1px solid #c8d9bc;border-radius:17px;text-align:center;overflow-wrap:anywhere}.cash-identity>strong{font-size:23px;line-height:1.3}.cash-identity p{font-weight:600;font-size:15px;line-height:1.5}.cash-confirm{display:flex;align-items:center;gap:12px;margin:20px 0;font-weight:600}.cash-confirm input{width:25px;height:25px;flex:none;margin:0;accent-color:#296944}.cash-amounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;border:0;padding:0;margin:18px 0}.cash-amounts legend{padding:0;margin-bottom:8px}.cash-choice{display:flex;align-items:center;gap:10px;margin:0;padding:14px;border:1px solid #cdd9c5;border-radius:15px;cursor:pointer;min-height:58px}.cash-choice input{width:23px;height:23px;flex:none;margin:0;accent-color:#296944}.cash-choice:has(input:checked){background:#eaf5e8;border-color:#5f8b4b;color:#235c47}.cash-meta{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.cash-meta input{font-size:15px}.cash-extra{font-size:14px;margin:8px 0}.cash-extra summary{font-weight:400;color:#65776d}.cash-finish{display:block;width:100%;margin:12px 0 0;min-height:60px;font-size:20px}.cash-finish:disabled{cursor:default}.cash-nav button{font-size:14px}@media(max-width:420px){.cash-card h2{font-size:22px}.cash-identity-row{gap:8px}.cash-identity{padding:13px 8px}.cash-identity>strong{font-size:20px}.cash-identity p{font-size:13px}.cash-choice{padding:12px 10px;font-size:15px}.cash-meta{gap:8px}.cash-meta label{font-size:14px}.cash-meta input{font-size:13px;padding:11px 8px}}

.profile-attention-note{font-size:13px;line-height:1.45;color:#737c70;margin:5px 12px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.class-heading{max-width:1050px;margin:0 auto 24px;padding:20px 24px 26px;text-align:center;border-bottom:1px solid #dce5d8;overflow-wrap:anywhere}.class-heading p{margin:8px 0}.class-heading-line1{font-size:15px;font-weight:700;letter-spacing:1.8px;color:#657c69}.class-heading-line2{font-size:31px;line-height:1.3;font-weight:800;color:#243d33}.class-heading-line3{font-size:17px;color:#748276;line-height:1.55}@media(max-width:600px){.class-heading{margin:0 14px 18px;padding:12px 6px 20px}.class-heading-line1{font-size:12px;letter-spacing:1.2px}.class-heading-line2{font-size:25px}.class-heading-line3{font-size:14px}}
.settings-row{display:grid;grid-template-columns:1.3fr .8fr 1.1fr;gap:14px;align-items:end}.settings-row>div{min-width:0}.settings-row input,.settings-row select{max-width:100%;min-width:0}.settings-row label{font-size:14px;line-height:1.4;min-height:20px}.bank-settings-row{grid-template-columns:1fr 1.2fr 1.2fr}.settings-year{margin-top:10px}@media(max-width:600px){.settings-row{grid-template-columns:1fr 1fr;gap:10px}.settings-row>div:first-child{grid-column:1/-1}}

.account-bar{display:flex;justify-content:flex-end;align-items:center;gap:.5rem}.account-bar button{padding:.45rem .8rem;margin:.2rem}.license-line{color:#647569;font-size:.9rem;margin:0 0 1rem}.renewal-note{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem;margin-top:.4rem}.renewal-note button{padding:.4rem .7rem}.setup-section>summary{font-size:1.2rem;font-weight:700;cursor:pointer}.setup-section[open]>summary{margin-bottom:1rem}

/* Compact shared sign-in on desktop and phone. */
.auth-card{max-width:480px;padding:26px;margin:24px auto}.auth-card h1{font-size:27px;margin-bottom:6px}.auth-card>.muted{margin-top:0}.auth-roles{display:flex;gap:8px;margin:12px 0 4px;padding:8px 10px}.auth-roles legend{font-size:14px}.auth-roles .day-choice{flex:1;justify-content:center;margin:0;padding:7px 8px;font-size:14px}.auth-form label{margin-top:12px}.auth-form input{padding:10px 12px}.text-action{background:transparent;color:#426d58;border-radius:4px;font-size:13px;font-weight:500;padding:5px 2px;margin:3px 0;text-decoration:underline;text-underline-offset:3px}.text-action:hover{color:#173f2c;background:#f1f5ef}.text-action:focus-visible{outline:2px solid #235c47;outline-offset:2px}.password-toggle{display:block;text-decoration:none}.auth-form .password-toggle{margin-left:auto}.auth-form>.auth-remember{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500;margin:12px 0 5px}.auth-remember input{width:auto;min-height:16px;min-width:16px;accent-color:#235c47}.auth-hint{display:block;font-size:12px;line-height:1.5;color:#758078}.auth-form>button[type=submit]{display:block;width:100%;margin:16px 0 0}.auth-links{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px}.auth-email{overflow-wrap:anywhere;color:#65776d;font-size:14px}@media(max-width:600px){.auth-card{margin:12px auto;padding:20px}.auth-card h1{font-size:25px}}

.auth-password-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:nowrap;margin:5px 0 7px}.auth-password-actions .text-action{display:inline-block;flex:none;margin:0;padding:6px 0;font-size:12px;white-space:nowrap;text-decoration:underline}.auth-password-actions .password-toggle{margin-left:0}.auth-links:has(>button:only-child){justify-content:flex-end}@media(max-width:360px){.auth-password-actions{gap:6px}.auth-password-actions .text-action{font-size:11px}}

/* Student portal: original one-screen-at-a-time home and large vertical actions. */
.student-portal{max-width:540px;margin:24px auto}.student-topbar{display:flex;align-items:center;justify-content:space-between;gap:10px}.student-topbar button{font-size:13px;min-height:36px;padding:8px 12px}.student-topbar button:last-child{margin-left:auto}.student-identity{margin:18px 0 24px;line-height:1.6}.student-identity>strong{display:block;font-size:22px}.student-identity p{margin:6px 0;color:#65796a}.student-main-action{display:block;width:100%;min-height:60px;font-size:18px;margin:14px 0}.student-portal input[name=code]{font-size:22px;letter-spacing:2px;text-transform:uppercase}.student-portal .text-action{font-size:13px}
.student-hub h3{margin:18px 0 8px}.student-hub>small{overflow-wrap:anywhere}.student-hub details{border-top:1px solid #e2e9de;padding:10px 0}.student-class-option{margin:8px 0}.student-class-option button{text-align:left;margin:0;width:100%;white-space:normal}.student-class-option .notice{font-size:13px;margin:6px 0;padding:8px}.active-class{color:#276d40}.student-identity{margin:12px 0 16px}.student-identity>strong{font-size:20px}.student-identity p{font-size:13px;margin:4px 0}.student-counts{font-size:13px;color:var(--muted);line-height:1.6}.student-portal .student-main-action{min-height:50px;margin:10px 0;font-size:17px}.student-topbar{margin-bottom:10px}.contact-availability{display:block;font-size:12px;color:var(--muted);margin:2px 12px}.message-thread{display:flex;flex-direction:column;gap:10px;margin:16px 0}.message-bubble{max-width:92%;align-self:flex-start;background:#f0f3ed;border-radius:12px;padding:10px 14px;overflow-wrap:anywhere}.message-bubble p{white-space:pre-wrap;margin:4px 0}.message-bubble small{font-size:11px;color:var(--muted)}.message-own{align-self:flex-end;background:#e5f0e0}

.fee-message-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 16px}.fee-message-controls>label{grid-column:1/-1}.fee-message-controls>select{grid-column:1/-1}.fee-message-controls>div{grid-column:1/-1}.fee-message-roster{max-height:360px;overflow:auto;border-bottom:1px solid #dce5d8;margin:12px 0}.fee-message-choice{align-items:flex-start;margin:5px 0;padding:10px}.fee-message-choice small{display:block;font-size:12px;color:var(--muted);font-weight:400}.fee-message-recipient{font-size:14px;margin:5px 0}

.student-class-option.enrollment-pending{padding:10px 16px 18px;border:1px solid #d9e5d3;border-radius:13px;background:#f0f5ec}.enrollment-pending-actions{display:flex;justify-content:flex-end}.student-class-option.enrollment-pending .enrollment-cancel{width:auto;display:inline-block;margin:0;background:transparent;color:#65776d;font-size:12px;font-weight:400;min-height:32px;padding:4px 0 4px 12px;text-decoration:underline}.enrollment-pending-title{font-size:17px;font-weight:700;color:#305e48;margin:2px 0 6px}.enrollment-pending-class{display:block;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
