/* MSH student design — original brand colours and supplied logo. */
.student-theme,.student-login-page{--student-navy:#082f6b;--student-blue:#1762b5;--student-powder:#dcebfc;--student-blush:#fbe9ec;--student-rose:#f2c7ce;--student-red:#941c2b;--student-ink:#10233f;--student-muted:#52647c;--student-line:#d6e3f1;--student-white:#fff;background:#edf5ff;color:var(--student-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5;-webkit-font-smoothing:antialiased}
.student-theme body{padding:16px 20px 112px;margin:0}
.student-theme main{max-width:760px}
.student-theme button,.student-theme input,.student-theme select,.student-theme textarea,.student-login-page button,.student-login-page input{font:inherit;min-height:48px}
.student-theme button,.student-login-page button[type=submit]{border-radius:999px;background:var(--student-navy);color:#fff;font-weight:650;padding:12px 22px;transition:transform .15s,background .15s}
.student-theme button:active,.student-login-page button:active,.student-cta:active{transform:scale(.98)}
.student-theme button:disabled,.student-login-page button:disabled{opacity:.5;cursor:not-allowed}
.student-theme input,.student-theme select,.student-theme textarea,.student-login-page input{border:1px solid #aebfd4;border-radius:13px;background:#fff;color:var(--student-ink);padding:12px 14px;max-width:100%;min-width:0}
.student-theme input:focus-visible,.student-theme select:focus-visible,.student-theme textarea:focus-visible,.student-theme a:focus-visible,.student-theme button:focus-visible,.student-login-page input:focus-visible,.student-login-page button:focus-visible,.student-login-page a:focus-visible{outline:3px solid #1762b5;outline-offset:3px}
.student-theme label{margin-top:18px;font-size:14px;font-weight:550}
.student-theme h2{font-size:25px;line-height:1.2;letter-spacing:-.7px}
.student-theme h3{font-size:19px;line-height:1.25;letter-spacing:-.4px}
.student-theme p{line-height:1.55}
.student-theme .portal-header{gap:12px;flex-wrap:nowrap;min-height:65px;margin-bottom:8px}
.student-theme .portal-header.student-home-header{display:none}
.student-theme .portal-header>div{display:none}
.portal-logo{width:130px;height:64px;object-fit:contain}
.student-theme .portal-header #logout{font-size:12px;color:var(--student-muted);background:transparent;padding:8px;margin:0 0 0 auto;min-height:44px}
.student-theme .student-back{border-radius:50%;background:#fff;box-shadow:0 2px 9px #082f6b14;width:44px;min-height:44px;padding:10px;margin:0}
.ui-icon{width:24px;height:24px;object-fit:contain;flex-shrink:0;vertical-align:middle}
.student-theme #status{font-size:14px;min-height:0;margin:8px 0;overflow-wrap:anywhere}
.student-theme #status:empty{display:none}
.student-theme #section-nav{display:none}
.student-theme .panel{border:0;background:#ffffffbd;border-radius:26px;padding:22px;margin:14px 0;box-shadow:0 6px 22px #082f6b07;min-width:0;overflow-wrap:anywhere}
.student-theme .resident-overview{display:block;background:transparent;box-shadow:none;padding:0;margin-top:12px}
.student-greeting{display:flex;align-items:center;gap:12px;margin:18px 0 22px}
.student-greeting h2{font-size:21px;letter-spacing:-.5px;margin:0}
.student-greeting p{margin:2px 0 0;font-size:13px;color:var(--student-muted)}
.student-avatar{display:flex;align-items:center;justify-content:center;width:48px;height:48px;flex:0 0 48px;border-radius:50%;font-weight:750;background:var(--student-rose);color:#6e1225}
.student-home-hero{border-radius:25px;background:#dcebfc url('/assets/msh-ribbon.jpg') center/cover no-repeat;padding:23px;min-height:215px;margin-bottom:24px}
.student-home-hero h3{font-size:30px;line-height:1.08;letter-spacing:-1.1px;max-width:240px;margin:0 0 10px}
.student-home-hero>.student-eyebrow{display:none}
.student-home-hero>p:not(.student-eyebrow){font-size:14px;margin:10px 0}
.student-eyebrow{font-size:10px;font-weight:800;letter-spacing:1.2px;margin:0;color:#22446d}
.student-theme progress{appearance:none;display:block;width:100%;height:10px;border:0;border-radius:99px;background:#d8e1ed;overflow:hidden;accent-color:#1762b5}
.student-theme progress::-webkit-progress-bar{background:#d8e1ed;border-radius:99px}
.student-theme progress::-webkit-progress-value{background:#1762b5;border-radius:99px}
.student-theme progress::-moz-progress-bar{background:#1762b5;border-radius:99px}
.student-progress-label{display:block;text-align:right;font-size:12px;font-weight:700;margin:2px 0 5px}
.student-cta{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:10px 10px 10px 20px;background:var(--student-navy);color:#fff!important;text-decoration:none;border-radius:999px;font-size:14px;font-weight:650;margin-top:16px}
.student-cta .ui-icon{width:33px;height:33px;padding:7px;background:#b9d4f4;border-radius:50%}
.student-theme .student-updates>h3,.student-theme .student-daily>h3{font-size:20px;margin:0 0 14px}
.student-carousel{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;scrollbar-width:none;padding:0 0 5px;overscroll-behavior-x:contain}
.student-carousel::-webkit-scrollbar{display:none}
.student-update-card{flex:0 0 86%;scroll-snap-align:start;min-height:186px;border-radius:23px;padding:22px;background:#f6dfe4;display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.student-update-card:nth-child(even){background:#dcebfc}
.student-update-card h4{font-size:25px;font-weight:800;letter-spacing:-.7px;line-height:1.12;margin:0 0 10px;max-width:90%}
.student-update-card p{font-size:14px;line-height:1.45;margin:0 0 12px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.student-theme .student-update-card button{display:flex;align-items:center;gap:12px;min-height:44px;font-size:13px;padding:8px 14px;margin-top:auto}
.student-update-card button .ui-icon{filter:brightness(0) invert(1);width:18px;height:18px}
.carousel-dots{display:flex;align-items:center;justify-content:center;gap:0;margin-bottom:10px}
.student-theme .carousel-dots button{width:44px;min-height:44px;padding:0;margin:0;background:transparent;position:relative}
.carousel-dots button::after{content:'';display:block;width:7px;height:7px;margin:auto;border-radius:99px;background:#b4bfd0}
.carousel-dots button[aria-pressed=true]::after{width:15px;background:#941c2b}
.student-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:5px 0 20px}
.student-shortcut{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end;padding:16px;background:#dcebfc;border-radius:20px;min-height:106px;font-size:15px;font-weight:700;text-decoration:none;color:var(--student-ink)}
.student-shortcut:nth-child(even){background:#f6dfe4}
.student-shortcut>.ui-icon:first-child{grid-column:1/-1}
.student-shortcut>.ui-icon:last-child{width:23px;height:23px}
.student-account-info{background:#ffffffa3;border:0;border-radius:20px;padding:16px;margin-top:12px;font-size:14px}
.student-account-info>summary{font-size:14px;color:var(--student-muted);min-height:28px}
.student-account-info .profile-photo-card{width:100px;height:100px;float:right;margin:0 0 12px 12px}
.student-account-info .details{clear:both;margin:12px 0}
.student-account-info h2{font-size:20px}
.student-dock{position:fixed;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:30;width:calc(100% - 32px);max-width:500px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:7px;background:#082f6b;border-radius:999px;box-shadow:0 10px 30px #082f6b29}
.dock-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:53px;padding:6px 5px;color:#fff;text-decoration:none;font-size:10px;font-weight:550;border-radius:99px}
.dock-item .ui-icon{width:23px;height:23px;filter:brightness(0) invert(1)}
.dock-item[aria-current]{background:#f2c7ce;color:#571023}
.dock-item[aria-current] .ui-icon{filter:none}
.student-menu{margin-top:20px}
.student-menu-link{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--student-line);min-height:58px;text-decoration:none;color:var(--student-ink);font-size:15px;font-weight:550}
.student-menu-link>.ui-icon:last-child{margin-left:auto;width:19px;height:19px}
.student-theme .student-menu-link.sign-out{background:transparent;color:#941c2b;width:100%;border-radius:0;text-align:left;margin-top:10px}
.student-progress-card{padding:16px;background:#fff;border:1px solid var(--student-line);border-radius:22px}
.student-progress-ring{position:relative;float:left;width:104px;height:104px;margin:0 16px 16px 0}
.student-progress-ring canvas{width:104px;height:104px}
.student-progress-total{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:26px;line-height:1;letter-spacing:-1px;color:#082f6b}
.student-progress-card>progress{position:absolute;width:1px;height:1px;clip-path:inset(50%)}
.student-progress-card>div:not(.student-task-groups){font-weight:700;font-size:17px}
.student-progress-card>p{font-size:13px;color:var(--student-muted);margin:6px 0 16px}
.student-task-groups{margin-top:18px;clear:both}
.student-task{display:grid;grid-template-columns:24px minmax(0,1fr) 18px;gap:3px 9px;align-items:center;padding:12px 0;text-decoration:none;color:var(--student-ink);border-top:1px solid #e0e8f2;font-size:14px;font-weight:650}
.student-task>.ui-icon:first-child{grid-row:1/3}
.student-task>small{grid-column:2;font-size:12px;font-weight:450;color:var(--student-muted)}
.student-task>.ui-icon:last-child{grid-column:3;grid-row:1/3;width:18px;height:18px}
.student-task[data-complete=true] small{color:#17643c}
.student-task[data-complete=true]>.ui-icon:first-child{filter:invert(40%) sepia(40%) saturate(750%) hue-rotate(95deg) brightness(90%)}
.student-theme .registration-checklist{display:none}
.student-payment-check{font-size:13px;padding:12px 14px;background:#e4f6e8;border-radius:14px;color:#17643c}
.student-payment-check[data-action-needed=true]{background:#fbe9ec;color:#941c2b}
.student-theme .student-form-group{grid-column:1/-1;background:#fff;border:1px solid var(--student-line);border-radius:18px;padding:0;margin-top:12px;min-width:0}
.student-details-name{background:#f6dfe4;border-radius:14px;padding:12px 16px;font-weight:750;font-size:20px;letter-spacing:-.5px;margin:14px 0}
.student-details-note{border:0;padding:0;font-size:13px;color:#52647c}
.student-details-note>summary{font-size:12px;min-height:32px;padding:5px 0}
.student-theme .required-hint{font-size:12px;margin:8px 0 0}
.student-form-group>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;font-size:15px;list-style:none;min-height:54px}
.student-form-group>summary::-webkit-details-marker{display:none}
.student-form-group>summary>.ui-icon{width:19px;height:19px}
.student-theme .student-form-group[open]{background:#dcebfc}
.student-theme .student-form-group>.profile-info-group{margin:0;border:0;padding:0 16px 18px}
.student-form-group>.profile-info-group>legend{display:none}
.student-theme .profile-info-group .form-grid{gap:0 16px}
.student-theme .field-pencil{background:transparent;padding:9px;margin:0;min-height:42px;width:42px;top:2px;right:2px}
.field-pencil .ui-icon{width:19px;height:19px}
.student-theme .phone-inputs{border-radius:13px}
.student-theme .phone-inputs .field-pencil{min-height:34px;width:30px;padding:4px;right:0;top:50%}
.student-theme .field-editor.is-saved input,.student-theme .field-editor.is-saved select,.student-theme .field-editor.is-saved textarea{background:#ffffffd9;padding-right:46px}
.student-theme .save-feedback{font-size:13px}
.student-theme .document-layout{display:block;border:1px solid var(--student-line);border-radius:22px;background:#ffffffc9;padding:18px;margin:16px 0}
.student-theme .document-layout[data-review=correction_required]{background:#fbe9ec;border-color:#e8c1c9}
.student-theme .document-layout h3{margin:0 0 8px}
.student-theme .document-layout>.attachment-preview{display:none}
.student-theme .document-layout .document-state{font-size:12px;color:#52647c;margin:10px 0;background:#dcebfc;padding:6px 9px;border-radius:10px;display:table}
.student-theme .document-layout[data-review=approved] .document-state{color:#17643c;background:#e4f6e8}
.student-theme .document-layout[data-review=correction_required] .document-state{color:#793a0a;background:#ffebcd}
.student-theme .document-preview-button{display:inline-flex;align-items:center;gap:7px;background:white;color:#082f6b;border:1px solid #aec0d6;margin-top:2px;font-size:13px;padding:8px 13px;min-height:44px}
.document-preview-button .ui-icon{width:18px;height:18px}
.student-theme .document-layout a{font-size:13px;display:inline-block;margin:8px 0;min-height:30px}
.document-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.student-theme .document-actions a{min-height:44px;display:inline-flex;align-items:center}
.student-theme .document-upload{border:0;padding:5px 0 0;font-size:13px}
.document-upload>summary{font-size:13px;color:#082f6b;min-height:44px;padding:10px 0}
.document-upload>p{font-size:12px}
.student-theme .document-layout .notice{border-left-color:#941c2b;font-size:13px;border-radius:0 10px 10px 0}
.student-theme .document-layout input[type=file]{font-size:12px;padding:10px}
.student-preview{position:fixed;inset:0;width:100%;max-width:1100px;height:100%;max-height:100%;margin:auto;padding:0;border:0;background:#f8fafd;color:#10233f;z-index:100;border-radius:0;overflow:auto}
.student-preview::backdrop{background:#10233f9c}
.preview-toolbar{position:sticky;top:0;display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#edf5ff;padding:14px 20px;z-index:1;border-bottom:1px solid #d6e3f1}
.preview-toolbar h2{font-size:18px;margin:0 auto 0 0;max-width:55%}
.student-theme .preview-toolbar button{display:flex;align-items:center;gap:8px;margin:0;background:#fff;color:#082f6b;border:1px solid #aec0d6;padding:8px 13px;min-height:44px}
.preview-toolbar .ui-icon{width:18px;height:18px}
.preview-download{display:flex;align-items:center;gap:7px;font-size:14px;min-height:44px;padding:8px}
.full-document{display:block;width:100%;height:calc(100dvh - 92px);border:0;object-fit:contain;background:white}
.preview-announcement{white-space:pre-wrap;padding:20px;line-height:1.7;font-size:16px}
.student-preview>p:not(.preview-announcement){padding:20px}
.student-accommodation{border-radius:20px;padding:20px;background:#f6dfe4;margin:20px 0;position:relative}
.student-accommodation>.ui-icon{float:right}
.student-accommodation h3{font-size:20px;max-width:85%;margin:0 0 8px}
.student-accommodation p{font-size:14px;margin:0}
.student-payment-summary,.student-payment-schedule{background:#fff;border:1px solid var(--student-line);padding:18px;border-radius:22px;margin-bottom:16px}
.student-payment-summary h3,.student-payment-schedule h3{margin:0 0 12px}
.student-payment-summary>p{font-size:14px}
.student-payment-amounts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0 0}
.student-payment-amounts>div{border-radius:14px;background:#dcebfc;padding:12px;white-space:pre-line;font-size:14px;font-weight:650}
.student-payment-amounts>div:nth-child(2){background:#fbe9ec}
.student-instalment{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:4px 8px;padding:14px 0;border-top:1px solid var(--student-line);font-size:13px}
.student-instalment>.ui-icon{width:21px;height:21px;grid-row:1/3}
.student-instalment>small{grid-column:2/-1;color:var(--student-muted);font-size:12px}
.student-instalment[data-payment-status=overdue]>small{color:#941c2b;font-weight:650}
.student-booking-information{font-size:14px;border-bottom:0}
.student-daily,.student-due{background:white;border-radius:22px;padding:20px;margin:18px 0}
.student-daily dl{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px;font-size:14px;margin:0}
.student-daily dt{font-weight:650}.student-daily dd{margin:0}
.student-due{background:#fbe9ec}.student-due>strong{font-size:14px}
.student-theme .panel.student-meals{padding:18px 14px}
.student-meals>p{font-size:13px;margin:8px 0}
.student-theme .student-meals>label{display:flex;align-items:center;gap:10px;justify-content:space-between;font-size:12px;margin:12px 0}
.student-meals>label>input{width:57%;font-size:13px;min-height:44px;padding:9px}
.student-weekly-menu{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12px;line-height:1.4;border:1px solid #d6e3f1;border-radius:16px;overflow:hidden;background:#fff}
.student-weekly-menu caption{text-align:left;font-size:13px;font-weight:650;color:#52647c;padding:4px 0 12px}
.student-weekly-menu th,.student-weekly-menu td{padding:10px 5px;text-align:left;vertical-align:top;overflow-wrap:anywhere;border-bottom:1px solid #d6e3f1}
.student-weekly-menu thead th{font-size:11px;background:#dcebfc;font-weight:750}
.student-weekly-menu thead th:first-child{width:37px}
.student-weekly-menu abbr{text-decoration:none}
.student-weekly-menu tbody th{font-size:11px;background:#f0f6ff;font-weight:750}
.student-weekly-menu tbody th small{display:block;font-size:11px;font-weight:450;color:#52647c;margin-top:3px}
.student-weekly-menu tbody tr:last-child>*{border-bottom:0}
.student-weekly-menu tr[data-today=true]>*{background:#fbe9ec}
.student-meals .weekly-menu-hint{font-size:11px;line-height:1.5;color:#52647c;margin:12px 2px 0}
@media(min-width:700px){.student-weekly-menu{font-size:15px}.student-weekly-menu th,.student-weekly-menu td{padding:14px 10px}.student-weekly-menu thead th,.student-weekly-menu tbody th{font-size:13px}.student-weekly-menu thead th:first-child{width:65px}}
.student-login-page body{padding:24px 20px 30px;min-height:100dvh}
.student-login-page .auth-panel{max-width:440px;margin:0 auto;padding:24px 22px 26px;border:1px solid #ffffffbd;border-radius:28px;background:#edf5ff url('/assets/msh-ribbon.jpg') 60% 0/auto 370px no-repeat;box-shadow:0 8px 40px #082f6b0a}
.student-login-page .auth-logo{display:block;width:190px;height:auto;max-width:65%;margin:0 0 25px}
.student-login-page .auth-panel>h1{font-size:42px;line-height:1.03;letter-spacing:-1.6px;max-width:260px;margin:0 0 22px;font-weight:800;color:#082f6b}
.student-login-page .auth-panel>.login-intro{font-size:15px;font-weight:550;margin:30px 0 20px;max-width:250px}
.student-login-page label{font-size:14px;font-weight:550;margin-top:18px}
.student-login-page .password-control input{padding-right:52px}
.student-login-page .password-control #toggle-password{background:transparent;color:#082f6b;width:44px;min-height:44px;top:50%;right:3px;padding:10px;margin:0}
.student-login-page .password-control #toggle-password img{width:22px;height:22px}
.student-login-page .auth-panel #login-form>button[type=submit]{position:relative;width:100%;margin-top:26px;min-height:52px;font-size:16px;padding-right:46px}
.student-login-page .login-arrow{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:32px;height:32px;background:#b9d4f4;border-radius:50%;padding:6px}
.student-login-page .login-help{font-size:12px;line-height:1.55;margin:20px 0;color:#52647c}
.student-login-page #mobile-status{font-size:12px;line-height:1.45;margin:7px 0;color:#52647c}
.student-login-page #mobile-status:empty{display:none}
.student-login-page #status{font-size:13px;min-height:0;margin:12px 0 0;color:#941c2b}
.student-login-page #status:empty{display:none}
.student-login-page .auth-footer{max-width:440px;justify-content:center;margin:0 auto;padding:20px}
.student-login-page .auth-footer a{font-size:13px}
.student-login-page .auth-panel:has(#confirm-form:not([hidden]))>h1{font-size:32px}
@media(min-width:700px){.student-theme body{padding-top:22px}.student-theme .resident-overview{max-width:640px;margin:20px auto}.student-update-card{flex-basis:70%}.student-home-hero{min-height:235px;padding:28px}.student-theme .panel{padding:28px}.student-theme .student-form-group{margin-top:16px}.student-login-page body{padding-top:5vh}.student-login-page .auth-panel{padding:32px}.student-theme .student-dock{bottom:20px}.student-preview{height:92dvh;border-radius:22px}.full-document{height:calc(92dvh - 100px)}}
@media(max-width:360px){.student-theme body{padding-left:14px;padding-right:14px}.student-theme .panel{padding:16px}.student-home-hero{padding:18px}.student-home-hero h3{font-size:28px}.student-theme .portal-logo{width:112px}.student-login-page body{padding:14px}.student-login-page .auth-panel{padding:20px}.student-login-page .auth-panel>h1{font-size:36px}.student-instalment{grid-template-columns:20px minmax(0,1fr)}.student-instalment>span{grid-column:2}}
@media(prefers-reduced-motion:reduce){.student-theme *,.student-login-page *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{.student-dock,.student-back,.student-home-hero,.student-updates,.student-shortcuts{display:none!important}.student-theme body{padding:0}.student-theme .panel{box-shadow:none}}
