.student-profile-page,.student-profile-page *{box-sizing:border-box}
.student-profile-page{width:min(calc(100% - 28px),1180px);margin:22px auto 40px;color:#172033;font-family:Inter,system-ui,-apple-system,sans-serif}
.profile-page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:14px;padding:0 2px}
.profile-eyebrow{color:#235aae;font-size:.7rem;font-weight:600;letter-spacing:.06em}
.profile-page-header h1{margin:4px 0 3px;font-size:1.75rem;font-weight:600;letter-spacing:0}
.profile-page-header p{margin:0;color:#667085;font-size:.82rem}
.profile-page-header nav{display:flex;gap:7px}
.profile-page-header nav a{height:36px;display:inline-flex;align-items:center;gap:7px;border:1px solid #dbe4f0;border-radius:8px;background:#fff;color:#344054;padding:0 11px;text-decoration:none;font-size:.74rem;font-weight:500}
.profile-page-header nav a:hover{border-color:#9ebce7;background:#f7faff;color:#235aae}
.student-profile-form{display:grid;grid-template-columns:270px minmax(0,1fr);align-items:stretch;border:1px solid #dfe6ef;border-radius:8px;background:#fff;box-shadow:0 14px 36px rgba(16,24,40,.07);overflow:hidden}
.student-profile-form>.alert{grid-column:1/3;margin:14px 14px 0}
.profile-identity-panel{display:flex;flex-direction:column;align-items:center;padding:28px 20px;background:#f7faff;border-right:1px solid #e1e8f1;min-width:0}
.profile-avatar-wrap{position:relative}
.profile-avatar{width:116px;height:116px;border:4px solid #fff;border-radius:999px;background:#235aae;color:#fff;display:grid;place-items:center;overflow:hidden;box-shadow:0 8px 22px rgba(35,90,174,.22)}
.profile-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.profile-avatar span{font-size:2.3rem;font-weight:600}
.profile-avatar-upload{position:absolute;right:1px;bottom:4px;width:34px;height:34px;border:3px solid #fff;border-radius:999px;background:#f5b82e;color:#172033;display:grid;place-items:center;cursor:pointer;margin:0;box-shadow:0 4px 10px rgba(16,24,40,.18)}
.profile-avatar-upload:hover{background:#ffca49}
.profile-identity-text{width:100%;display:grid;justify-items:center;gap:3px;margin-top:14px;text-align:center;min-width:0}
.profile-identity-text strong{max-width:100%;font-size:1rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-identity-text span{border-radius:999px;background:#eaf2ff;color:#235aae;padding:3px 8px;font-size:.66rem;font-weight:500}
.profile-identity-text small{max-width:100%;color:#667085;font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-avatar-actions{display:flex;gap:6px;margin-top:14px}
.profile-avatar-actions label,.profile-avatar-actions button{height:32px;display:inline-flex;align-items:center;gap:6px;border:1px solid #d8e1ed;border-radius:7px;background:#fff;color:#344054;padding:0 9px;font:inherit;font-size:.7rem;cursor:pointer;margin:0}
.profile-avatar-actions label:hover{border-color:#235aae;color:#235aae}.profile-avatar-actions button:hover{border-color:#d65971;color:#b4233f;background:#fff7f8}
.profile-avatar-note{margin:7px 0 0;color:#98a2b3;font-size:.63rem;text-align:center}
.profile-account-summary{width:100%;display:grid;gap:0;margin:24px 0 0;border-top:1px solid #dfe6ef}
.profile-account-summary div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 1px;border-bottom:1px solid #e6ebf2}
.profile-account-summary dt{color:#667085;font-size:.68rem;font-weight:400}.profile-account-summary dd{margin:0;color:#344054;font-size:.72rem;font-weight:500;text-align:right;overflow-wrap:anywhere}
.profile-form-content{min-width:0;padding:4px 24px 22px}
.profile-form-section{padding:22px 0 24px;border-bottom:1px solid #e7ebf1}
.profile-form-section>header{display:flex;align-items:flex-start;gap:10px;margin-bottom:18px}
.profile-form-section>header>span{width:34px;height:34px;border-radius:8px;background:#eaf2ff;color:#235aae;display:grid;place-items:center;flex:0 0 auto}
.profile-security-section>header>span{background:#fff5df;color:#b7791f}
.profile-form-section h2{margin:0;color:#172033;font-size:1rem;font-weight:600;letter-spacing:0}
.profile-form-section header p{margin:3px 0 0;color:#7b8797;font-size:.7rem}
.profile-fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 14px}
.profile-fields-grid.is-password{grid-template-columns:repeat(3,minmax(0,1fr))}
.profile-field{display:grid;gap:6px;min-width:0;margin:0}
.profile-field>span,.profile-gender-field legend{color:#344054;font-size:.72rem;font-weight:500;margin:0 0 6px;padding:0}
.profile-field>div{height:42px;display:flex;align-items:center;border:1px solid #d5dde8;border-radius:7px;background:#fff;overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease}
.profile-field>div:focus-within{border-color:#235aae;box-shadow:0 0 0 3px rgba(35,90,174,.1)}
.profile-field>div>i{width:40px;color:#8a96a7;text-align:center;flex:0 0 40px}
.profile-field input{width:100%;height:40px;min-width:0;border:0!important;outline:0!important;background:transparent!important;color:#172033;padding:0 10px 0 0!important;font:inherit;font-size:.78rem;box-shadow:none!important}
.profile-field input::placeholder{color:#a1a9b5}.profile-field.is-wide{grid-column:1/3}
.profile-gender-field{min-width:0;border:0;padding:0;margin:0}
.profile-gender-field>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.profile-gender-field label{position:relative;margin:0;cursor:pointer}.profile-gender-field input{position:absolute;opacity:0;pointer-events:none}
.profile-gender-field label span{height:42px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #d5dde8;border-radius:7px;background:#fff;color:#667085;font-size:.75rem}
.profile-gender-field input:checked+span{border-color:#235aae;background:#eef4ff;color:#235aae;box-shadow:inset 0 0 0 1px #235aae}
.profile-field .invalid-feedback{font-size:.65rem;color:#c7355a;margin-top:-2px}
.profile-form-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:18px}
.profile-form-actions>span{display:flex;align-items:center;gap:7px;color:#7b8797;font-size:.68rem}.profile-form-actions>span i{color:#128a75}
.profile-form-actions button{height:40px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:8px;background:#235aae;color:#fff;padding:0 18px;font:inherit;font-size:.78rem;font-weight:500;cursor:pointer;box-shadow:0 6px 14px rgba(35,90,174,.2)}
.profile-form-actions button:hover{background:#194d94}.profile-form-actions button i{font-size:1rem}
@media(max-width:900px){.student-profile-form{grid-template-columns:220px minmax(0,1fr)}.profile-fields-grid.is-password{grid-template-columns:1fr}.profile-form-content{padding-left:18px;padding-right:18px}}
@media(max-width:700px){.student-profile-page{width:min(calc(100% - 14px),1180px);margin-top:10px}.profile-page-header{align-items:flex-start;flex-direction:column}.profile-page-header nav{width:100%}.profile-page-header nav a{flex:1;justify-content:center}.student-profile-form{display:block}.student-profile-form>.alert{margin:10px}.profile-identity-panel{border-right:0;border-bottom:1px solid #e1e8f1;padding:20px}.profile-account-summary{max-width:360px}.profile-form-content{padding:0 14px 18px}.profile-fields-grid{grid-template-columns:1fr}.profile-field.is-wide{grid-column:auto}.profile-form-actions{align-items:stretch;flex-direction:column}.profile-form-actions button{width:100%}}
