:root{--ink:#102150;--accent:#dca600;--muted:#52617d}*{box-sizing:border-box}label{display:block;font-weight:600;margin:12px 0}label small,small,.helper{display:block;font-weight:400;color:var(--muted);line-height:1.55}input,select,textarea{max-width:100%;min-width:0;width:100%;padding:11px;border:1px solid #acb9ce;border-radius:8px;font:inherit;background:white;color:var(--ink)}input[type=checkbox],input[type=radio]{width:auto}button,a.button{min-height:42px}button{cursor:pointer}button:disabled{cursor:default;opacity:.6}:focus-visible{outline:3px solid #13718b;outline-offset:3px}.account-nav,.admin-nav{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.admin-nav a{padding:10px;border-radius:8px;text-decoration:none}.account-nav form{margin-left:auto}.account-nav{margin:16px 0;padding:12px;background:#fff;border:1px solid #dce4f3;border-radius:12px}.account-nav span{overflow-wrap:anywhere}.account-nav select{width:auto}.password-wrap{display:flex;align-items:center;gap:6px}.password-wrap input{flex:1}.password-wrap button{width:auto;white-space:nowrap}.ux-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:18px}.ux-card{padding:20px;background:#fff;border:1px solid #dce4f3;border-radius:16px}.ux-card h2{margin-top:0}.ux-steps{display:flex;flex-wrap:wrap;gap:12px;padding-left:22px}.table-wrap{overflow:auto;max-width:100%}h1,h2,p,td,th,summary{overflow-wrap:anywhere}dialog{max-width:min(92vw,600px);border:1px solid #acb9ce;border-radius:14px;padding:24px}dialog::backdrop{background:#10215088}.notice.error{border-left:4px solid #ac2630}.danger{background:#a82732;color:white}.ux-form{max-width:760px}.ux-form input,.ux-form select{margin-top:5px}.ux-form section[hidden]{display:none!important}.ux-form .buttons{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.admin-shell,.shell{max-width:1280px;margin:0 auto;padding:24px}@media(max-width:600px){.admin-shell,.shell{padding:14px}.admin-nav{gap:3px}.admin-nav a{font-size:.9rem}.account-nav{align-items:flex-start}.ux-card{padding:16px}.password-wrap button{font-size:.85rem}}

/* UX pages use vertical content; legacy foundation shell was a horizontal flex. */
.shell{display:block}.ux-form{width:100%}.password-wrap input{min-width:0}.ux-form [hidden]{display:none!important}

/* Existing student account destination, presented as a touch target. */
.account-nav .account-student-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:44px;background:#0b1f4d;color:#fff;text-decoration:none;border-radius:12px;padding:10px 16px;font-weight:700}
.account-nav:has(.account-student-button)>span{min-width:0;max-width:100%}

/* Generic student dashboard only; role destinations and logout are unchanged. */
.student-dashboard-home .dashboard-head{display:block}
.student-dashboard-home .dashboard-student-account{display:block;width:100%;min-width:0}
.student-dashboard-home .dashboard-student-account>span{display:block;width:100%;font-weight:700;margin-bottom:12px;overflow-wrap:anywhere}
.student-dashboard-home .dashboard-student-actions{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px}
.student-dashboard-home .dashboard-student-entry{flex:1 1 0;min-width:0}
.student-dashboard-home .dashboard-student-entry .button{max-width:100%}
.student-dashboard-home .dashboard-student-entry small{max-width:270px;margin-top:8px}
.student-dashboard-home .dashboard-student-actions form{flex:0 0 auto;margin:0}
.student-dashboard-home .student-dashboard-links{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}
.student-dashboard-home .student-dashboard-links .button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;background:#0b1f4d;color:#fff;text-align:center}
.student-dashboard-home .info-grid>*{min-width:0;overflow-wrap:anywhere}

/* Account access presentation only; existing forms and auth are unchanged. */
.account-access .account-access-home,.account-access .account-access-alt{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;text-align:center;color:#fff;text-decoration:none}
.account-access .account-access-home{background:#0b1f4d}
.account-access .account-access-home:hover{background:#102d6b}
.account-access .account-access-alt{background:#c2410c}
.account-access .account-access-alt:hover{background:#9a3412}
.account-access .account-school-login a{display:block;margin-top:4px;max-width:100%;overflow-wrap:anywhere}

.account-recovery .auth-card{max-width:100%;min-width:0}.account-recovery h1{font-size:clamp(1.7rem,5vw,2.6rem)}.account-recovery .button{max-width:100%}
