:root{font-family:Arial,Helvetica,sans-serif;color:#102440;background:#f3f7fc;font-size:16px}*{box-sizing:border-box}body{margin:0;padding:2rem 1rem}main{max-width:70rem;margin:auto}.auth-panel{max-width:32rem;margin:5vh auto;background:white;border:1px solid #d4e0ee;border-radius:1rem;padding:2rem;box-shadow:0 12px 40px #082f6b08}.brand{color:#941c2b;letter-spacing:.12em;font-weight:700;font-size:.875rem}h1{font-size:2rem;line-height:1.15}p{line-height:1.6}label{display:block;margin-top:1.5rem;margin-bottom:.5rem}input,select,textarea,button{font:inherit;min-height:2.75rem}input,select,textarea{width:100%;padding:.75rem;border:1px solid #8ba0ba;border-radius:.4rem}button{padding:.75rem 1.2rem;background:#082f6b;color:white;border:0;border-radius:.4rem;cursor:pointer;margin-top:1rem}button:disabled{opacity:.55;cursor:wait}button:focus-visible,input:focus-visible{outline:3px solid #1762b5;outline-offset:3px}.secondary{font-size:.875rem;color:#53647b}#status{min-height:1.5rem}[hidden]{display:none!important}@media(max-width:480px){.auth-panel{padding:1.25rem}h1{font-size:1.75rem}}
:root{--msh-border:#d4e0ee;--msh-muted:#53647b}
:root.admin-theme,:root:has(form[action="/admin-login"]){background:#283b52;min-height:100%}
.admin-theme .portal-header h1,.admin-theme .portal-header .brand,.admin-theme #status{color:#fff}
.admin-theme .portal-header #logout{background:#fff;color:#082f6b}
.portal-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.portal-header h1{margin-bottom:.5rem}
.panel{background:#fff;border:1px solid var(--msh-border);border-radius:1rem;padding:1.5rem;margin:1.5rem 0}
.panel h2{margin-top:0;font-size:1.5rem}.panel h3{font-size:1.125rem}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1.5rem}
.form-grid button{justify-self:start;align-self:end}
.document-row{padding:1rem 0;border-top:1px solid var(--msh-border)}
.document-row:first-of-type{border-top:0}
.payment-plan-card{margin:1.5rem 0;padding:1.25rem;border:1px solid var(--msh-border);border-radius:1rem;background:#f3f7fc;min-width:0}
.payment-plan-card legend{font-size:1.35rem;font-weight:700;padding:0 .4rem}
.payment-plan-summary{padding:1rem;border-radius:.6rem;background:#e6f3e9;color:#185c32;font-weight:600}
.payment-plan-summary.payment-plan-error{background:#fff0ed;color:#9c3026}
.payment-plan-card .payment-instalment{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 1rem}
.payment-instalment h4{grid-column:1/-1;margin:.5rem 0}
@media(max-width:480px){.payment-plan-card{padding:1rem}.payment-plan-card .payment-instalment{grid-template-columns:minmax(0,1fr)}}
.details{display:grid;grid-template-columns:minmax(8rem,1fr) 2fr;gap:.75rem 1rem}
.details dt{color:var(--msh-muted)}.details dd{margin:0;overflow-wrap:anywhere}
.notice{border-left:3px solid #941c2b;padding:.75rem;background:#fff5f6}
a{color:#0758a7;text-underline-offset:.2em}textarea{min-height:6rem}
.checkbox{width:1.25rem;min-height:1.25rem;display:inline-block;margin-left:.75rem;vertical-align:middle}
details{border-bottom:1px solid var(--msh-border);padding:1rem 0}summary{cursor:pointer;font-weight:700;min-height:2rem}
.policy-text{white-space:pre-wrap;overflow-wrap:anywhere}
a:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #1762b5;outline-offset:3px}
@media(max-width:640px){.form-grid{grid-template-columns:1fr}.panel{padding:1rem}.details{grid-template-columns:1fr}.details dd{margin-bottom:.5rem}}
@media print{body{background:#fff;color:#000;padding:0}button,.no-print{display:none!important}.panel{box-shadow:none;border:1px solid #888;break-inside:avoid}main{max-width:none}.details{grid-template-columns:1fr 2fr}a{color:#000}}
#section-nav{display:flex;flex-wrap:wrap;gap:.5rem 1rem;padding:1rem 0;border-bottom:1px solid var(--msh-border)}
#section-nav a{display:inline-flex;align-items:center;min-height:2.75rem;padding:.35rem .6rem;background:#fff;border-radius:.35rem}
.panel{scroll-margin-top:1rem}
.registration-checklist{padding-left:1.5rem;line-height:1.7}.registration-checklist li{margin:.4rem 0}
.welcome-chapter{max-width:48rem;margin:1.5rem auto}.welcome-story{font-size:1.1rem;line-height:1.8}.welcome-controls{display:flex;gap:1rem;flex-wrap:wrap}.welcome-ack{line-height:1.6;padding:1rem;background:#f3f7fc;border-radius:.5rem}.welcome-ack .checkbox{margin:0 .75rem 0 0}.welcome-reward{margin-top:2rem;padding:1.5rem;border-radius:1rem;background:#eef6ed;border:1px solid #c6dec2}.welcome-reward blockquote{margin:1rem 0;font-size:1.2rem;line-height:1.6}progress{width:100%;height:1rem;accent-color:#082f6b}
@media print{#section-nav{display:none!important}}
.auth-footer{display:flex;justify-content:flex-end;padding:1.5rem 2rem;margin-top:2rem}.auth-footer a{font-size:.875rem;color:var(--msh-muted,#52637b)}
#section-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem;padding:1rem;background:#eaf0f8;border:1px solid var(--msh-border);border-radius:1rem;margin-top:1rem}
#section-nav a{gap:.65rem;min-width:0;min-height:3.5rem;padding:.7rem;text-decoration:none;line-height:1.3;font-size:.9rem;border:1px solid transparent;transition:background .15s}
#section-nav a:hover{background:#f4f7fd;border-color:#8ba0ba}#section-nav a[aria-current]{background:#082f6b;color:white}.nav-number{font-size:.75rem;opacity:.7;font-weight:700}
.resident-overview{display:grid;grid-template-columns:minmax(0,1fr) 16rem;column-gap:2rem}.resident-overview h2{grid-column:1;grid-row:1;min-width:0;overflow-wrap:anywhere}.resident-overview>:not(h2):not(.profile-photo-card){grid-column:1/-1;grid-row:auto;min-width:0}.resident-overview>.details{margin:.5rem 0}.resident-overview>h3{margin-bottom:0}.resident-overview>p{margin-top:0}.profile-photo-card{grid-column:2;grid-row:1;align-self:start;aspect-ratio:3/4;width:100%;border:1px dashed #a9bcd3;border-radius:.9rem;overflow:hidden;background:#f3f7fc;display:flex;align-items:center;justify-content:center;text-align:center}.profile-photo-card p{padding:1rem;color:var(--msh-muted)}.profile-photo{width:100%;height:100%;object-fit:cover}
.required-marker{color:#bd1636;font-weight:700}.required-hint{grid-column:1/-1;color:var(--msh-muted);font-size:.875rem;margin-bottom:0}.locked-hint{display:block;margin-top:.5rem;color:var(--msh-muted)}input[readonly]{background:#edf1f6;color:#53647b;cursor:not-allowed}
.upload-photo-link{font-size:13px;line-height:1.4;padding:.5rem;display:flex;align-items:center;justify-content:center;min-height:44px;width:100%;height:100%;text-align:center}#passport-photo-upload{scroll-margin-top:1rem}
.address-group{grid-column:1/-1;min-width:0;border:1px solid var(--msh-border);border-radius:.75rem;padding:1rem;margin:1.5rem 0 .5rem}.address-group legend{font-weight:700;padding:0 .4rem}.address-group>p{margin:0}.address-location-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.address-location-row label{min-width:0}.address-location-row input{min-width:0}.address-group>label{margin-bottom:0}
.profile-info-group{grid-column:1/-1;min-width:0;margin:1.5rem 0 0;padding:1rem;border:1px solid var(--msh-border);border-radius:.75rem}.profile-info-group>legend{padding:0 .5rem;font-size:1.1rem;font-weight:700;color:#082f6b}.profile-info-group>.form-grid{min-width:0}
.parent-column{min-width:0}.parent-column label{display:block}
.field-editor{display:block;position:relative;min-width:0}.field-editor.is-saved input,.field-editor.is-saved textarea,.field-editor.is-saved select{background:#edf1f6;color:#53647b;padding-right:2.75rem;opacity:1;-webkit-text-fill-color:#53647b}.field-pencil{position:absolute;right:.2rem;top:.2rem;margin:0;min-height:2.3rem;width:2.3rem;padding:0;background:transparent;color:#082f6b;font-size:1.3rem;cursor:pointer}.phone-inputs>.field-editor:first-child{flex:0 0 5.5rem;width:5.5rem;border-right:1px solid #8ba0ba}.phone-inputs>.field-editor:last-child{flex:1}.phone-inputs>.field-editor>input{width:100%;border:0}
.pdf-canvas{display:block;width:100%;height:auto;background:white;border:1px solid var(--msh-border)}.pdf-controls{display:flex;gap:.5rem;justify-content:space-between;flex-wrap:wrap;margin-bottom:1rem}.pdf-controls button{font-size:.8rem;padding:.5rem}.pdf-viewer{min-width:0}
.phone-field{border:0;padding:0;margin:1.5rem 0 .5rem;min-width:0}.phone-field legend{padding:0;margin-bottom:0}.phone-inputs{display:flex;border:1px solid #8ba0ba;border-radius:.4rem;overflow:hidden}.phone-inputs input{border:0;border-radius:0;min-width:0}.phone-inputs>input:first-child{flex:0 0 5.5rem;width:5.5rem;border-right:1px solid #8ba0ba;background:#f3f7fc}.phone-inputs>input:last-child{flex:1}.phone-inputs:focus-within{outline:3px solid #1762b5;outline-offset:3px}.phone-inputs input:focus-visible{outline:0}
.document-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(12rem,.7fr);gap:1.5rem}.document-controls{min-width:0}.document-controls input[type=file]{font-size:.875rem;max-width:100%}.attachment-preview{align-self:start;margin-top:1rem;border:1px solid var(--msh-border);border-radius:.75rem;padding:1rem;background:#f7f9fc;text-align:center;min-height:10rem;min-width:0}.attachment-preview p{font-size:.875rem;color:var(--msh-muted)}.attachment-image{display:block;width:100%;height:13rem;object-fit:contain}.attachment-pdf{display:block;width:100%;height:18rem;border:0;margin-bottom:.75rem}
@media(max-width:760px){#section-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.resident-overview{grid-template-columns:minmax(0,1fr) 11rem;gap:1rem}}
@media(max-width:560px){.document-layout{grid-template-columns:1fr;gap:.5rem}.resident-overview{grid-template-columns:minmax(0,1fr) 9rem}.resident-overview>.details{grid-column:1/-1;grid-row:auto}.profile-photo-card{grid-row:1;aspect-ratio:1}.attachment-preview{margin-top:0}}
.status-light{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:9px}
.status-light.incomplete{background:#bb1731}.status-light.complete{background:#24834b}
.registration-status{grid-column:1/-1}.registration-status li{margin-bottom:8px}
.meal-day{border:1px solid #cbdcf0;border-radius:12px;margin:20px 0;padding:16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.meal-day{background:#e8f1fc;border-color:#bfd3ee}.meal-day input:not([type=checkbox]){background:#fff}.meal-day input:disabled{background:#dce7f5;color:#53647b}
.meal-day legend{font-weight:700}.meal-day .details{margin:0;min-width:0}.meal-day dd{overflow-wrap:anywhere}
.phone-inputs .field-pencil{top:50%;transform:translateY(-50%);width:2rem;min-height:2rem;right:.1rem}
.phone-inputs>.field-editor>input{padding-left:.6rem;padding-right:2.2rem}
.registration-checklist{padding-left:1.6rem}.registration-checklist li{padding:.75rem .5rem;border-bottom:1px solid #d4e0ee;line-height:1.5}.registration-checklist li:last-child{border-bottom:0}
.registration-checklist li[data-complete="true"]{color:#17643c;background:#edf8f1}
.registration-checklist li[data-complete="false"]{color:#a51f35;background:#fff1f3}
.registration-checklist li[data-complete]::before{display:inline-block;margin-right:.55rem;font-weight:700}
.registration-checklist li[data-complete="true"]::before{content:"✓"}
.registration-checklist li[data-complete="false"]::before{content:"!"}
.admin-activity-entries{font-size:12px}
.announcement-preview{background:#e8f1fc;border:1px solid #bfd3ee;border-radius:12px;padding:1.25rem}.announcement-preview button{margin-right:.75rem}
.email-parts{display:flex;align-items:center;gap:.5rem}.email-parts input{min-width:0;flex:1}.email-parts input[name=emailDomain]{flex:0 1 45%}
.password-control{position:relative;display:block}.password-control input{padding-right:3.25rem}
.password-control #toggle-password{position:absolute;right:2px;top:50%;transform:translateY(-50%);width:44px;min-height:44px;margin:0;padding:10px;background:transparent;color:#082f6b;border:0;border-radius:.35rem;display:grid;place-items:center}
#toggle-password svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#toggle-password .eye-slash{display:none}#toggle-password[aria-pressed="true"] .eye-slash{display:block}
:root.student-login-page{background:#e8f1fc;min-height:100%}
.resident-overview>.resident-identity{grid-column:1;grid-row:1;align-self:start;min-width:0}.resident-identity .details{display:block;margin:1rem 0 0}.resident-identity dt{margin-bottom:.4rem}.resident-identity dd{overflow-wrap:anywhere}
@media(max-width:400px){.resident-overview{grid-template-columns:1fr}.resident-overview .profile-photo-card{grid-column:1;grid-row:2;width:10rem;max-width:100%}}
