body.student-profile-open { position: fixed; top: var(--profile-page-top, 0px); left: 0; width: 100%; overflow: hidden; }
.student-profile-dialog { position: fixed; inset: calc(var(--profile-top, 0px) + 16px) 0 auto; width: min(620px, calc(100% - 32px)); height: min(920px, calc(var(--profile-height, 100dvh) - 32px)); max-height: none; max-width: none; margin: 0 auto; padding: 0; border: 1px solid #40524f; border-radius: 8px; background: #131d1d; color: #f4f8f4; font: 400 16px/1.5 Arial, sans-serif; overflow: hidden; }
.student-profile-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.student-profile-dialog::backdrop { background: #07100fd9; }
.student-profile-dialog [hidden] { display: none !important; }
.student-profile-dialog > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #364b47; }
.student-profile-dialog h2 { margin: 0; font-size: 22px; letter-spacing: 0; }
.student-profile-dialog h3 { margin: 0 0 16px; font-size: 18px; letter-spacing: 0; }
.student-profile-dialog h4 { margin: 0; font-size: 16px; }
.student-profile-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px max(20px, env(safe-area-inset-bottom)); }
.student-profile-body > section, .student-profile-body > form { padding: 24px 0; border-bottom: 1px solid #364b47; }
.student-profile-dialog[data-ready="false"] .student-profile-body > section, .student-profile-dialog[data-ready="false"] .student-profile-body > form { display: none; }
.student-profile-dialog button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border: 1px solid #48615a; border-radius: 6px; background: #243530; color: #eff8f1; font: 700 14px/1.3 Arial, sans-serif; cursor: pointer; }
.student-profile-dialog button:hover { border-color: #99b59f; }
.student-profile-dialog button:disabled { opacity: .5; cursor: default; }
.student-profile-dialog button:focus-visible { outline: 2px solid #cef43d; outline-offset: 2px; }
.student-profile-dialog button[type="submit"], #studentPhotoApply { background: #cef43d; border-color: #cef43d; color: #14201a; }
#studentProfileClose { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; background: transparent; font-size: 26px; }
.student-profile-dialog label { display: grid; min-width: 0; gap: 6px; font-size: 14px; color: #d1dfd7; }
.student-profile-dialog input:not([type="range"]), .student-profile-dialog select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #4d6961; border-radius: 6px; color: #f8fff9; background: #21322d; font: 400 16px/1.4 Arial, sans-serif; }
.student-profile-dialog input:focus, .student-profile-dialog select:focus { outline: 2px solid #1ac1a4; outline-offset: 1px; }
.student-profile-dialog form { display: grid; gap: 14px; }
.student-profile-dialog form > button { justify-self: start; }
.student-profile-dialog p { margin: 12px 0 0; font-size: 14px; color: #c2d3ca; overflow-wrap: anywhere; }
.student-profile-dialog p:empty { display: none; }
.student-profile-dialog p.is-error { color: #ffaba0; }
.student-photo-summary { display: flex; align-items: center; gap: 20px; }
#studentPhotoAvatar { display: grid; flex: 0 0 84px; width: 84px; height: 84px; place-items: center; overflow: hidden; border-radius: 50%; border: 1px solid #507367; background: #304d42; }
#studentPhotoAvatar > * { grid-area: 1 / 1; }
#studentPhotoInitials { color: #cef43d; font-size: 26px; font-weight: 700; }
#studentPhotoImage { z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.student-photo-summary > div { display: flex; gap: 8px; flex-wrap: wrap; }
#studentPhotoRemove { color: #ffaba0; background: transparent; }
#studentPhotoEditor { margin-top: 20px; }
.student-crop-stage { height: 290px; width: 100%; background: #0b1111; overflow: hidden; }
.student-crop-stage > img { display: block; max-width: 100%; }
.student-crop-stage .cropper-point { width: 10px; height: 10px; opacity: 1; }
.student-crop-tools, .student-crop-save { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.student-crop-tools > button { flex: 0 0 44px; width: 44px; padding: 0; }
.student-crop-tools label { flex: 1; min-width: 120px; }
.student-crop-tools input { width: 100%; min-width: 0; min-height: 30px; accent-color: #cef43d; }
.student-crop-save > label { flex: 1; min-width: 160px; }
.student-crop-save > button { align-self: flex-end; }
.profile-rotate-icon, .profile-reset-icon { display: block; width: 20px; height: 20px; background: currentColor; mask: url("assets/icons/rotate-cw.svg") center / contain no-repeat; }
.profile-reset-icon { mask-image: url("assets/icons/undo-2.svg"); }
.student-contact-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.student-contact-row > div { flex: 1; min-width: 0; display: grid; gap: 3px; }
.student-contact-row span { font-size: 13px; color: #aec6b8; }
.student-contact-row strong { font-size: 15px; overflow-wrap: anywhere; }
.student-contact-row > button { flex-shrink: 0; }
.student-contact-value { display: flex; align-items: center; gap: 6px; min-width: 0; }
.student-contact-value strong { min-width: 0; }
.student-contact-value .student-verified-tick { display: inline-block; flex: 0 0 20px; width: 20px; height: 20px; background: #42d986; mask: url("assets/icons/circle-check.svg") center / contain no-repeat; }
.student-contact-section form { margin-top: 20px; padding-top: 20px; border-top: 1px solid #48615a; }
.student-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) {
  .student-profile-dialog { inset: var(--profile-top, 0px) 0 auto; width: 100%; height: var(--profile-height, 100dvh); border: 0; border-radius: 0; margin: 0; }
  .student-profile-dialog > header { padding: max(10px, env(safe-area-inset-top)) 16px 10px; }
  .student-profile-body { padding-inline: 16px; }
  .student-photo-summary { gap: 12px; align-items: flex-start; }
  .student-contact-row { flex-wrap: wrap; }
  .student-contact-row > div { flex-basis: 150px; }
  .student-crop-stage { height: 260px; }
}
