/* Shared student summary dialog used by Manage Classes and Manage School. */
.student-summary-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 16, 40, 0.5);
  backdrop-filter: blur(6px);
}
.student-summary-modal {
  width: min(560px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  padding: 0;
  color: #24212e;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  font-family: "Lexend Deca", "Noto Sans", Helvetica, sans-serif;
  line-height: 1.5;
}
.student-summary-modal .modal-header,
.student-summary-modal .modal-footer { padding: 16px 20px; }
.student-summary-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  border-bottom: 1px solid #eceaf1;
  background: #fff;
  color: #24212e;
}
.student-summary-modal .modal-header h2 { margin: 0; color: inherit; font: inherit; font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
.student-summary-modal .modal-body { padding: 20px; }
.student-summary-modal .modal-footer {
  display: flex; justify-content: flex-end; border-top: 1px solid #eceaf1;
  background: #fff; color: #24212e; font-family: inherit;
}
.student-summary-modal .icon-btn {
  border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 1.4rem;
}
.student-summary-modal .peek-identity { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.student-summary-modal .pending-invite-avatar {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; background: #efedf8; color: #4a3a8c; font-weight: 700;
}
.student-summary-modal .peek-identity-text { min-width: 0; flex: 1; }
.student-summary-modal .peek-name-row { display: flex; align-items: center; gap: 5px; }
.student-summary-modal .peek-name { font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }
.student-summary-modal .peek-edit-btn { border: 0; padding: 4px 6px; background: transparent; color: #7566a8; cursor: pointer; }
.student-summary-modal .peek-name-edit { display: flex; flex-direction: column; gap: 8px; }
.student-summary-modal .peek-name-actions { display: flex; justify-content: flex-end; gap: 8px; }
.student-summary-modal .peek-name-edit .form-error { margin: 0; }
.student-summary-modal .peek-email { color: #777; font-size: 0.85rem; overflow-wrap: anywhere; }
.student-summary-modal .peek-status { margin: 0; color: #777; font-size: 0.9rem; }
.student-summary-modal .peek-facts { display: flex; flex-direction: column; margin: 0; }
.student-summary-modal .peek-fact {
  display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px;
  padding: 9px 0; border-top: 1px solid #eceaf1; font-size: 0.9rem;
}
.student-summary-modal .peek-fact dt { color: #777; font-weight: 500; }
.student-summary-modal .peek-fact dd { margin: 0; overflow-wrap: anywhere; }
.student-summary-modal .peek-classes { margin: 0; padding: 0; list-style: none; }
.student-summary-modal [hidden] { display: none !important; }
.student-summary-name {
  padding: 0; border: 0; background: transparent; color: #211c31;
  cursor: pointer; font: inherit; font-weight: 600; text-align: left;
}
.student-summary-name:hover { color: #6041c2; text-decoration: underline; }
.student-summary-name:focus-visible { outline: 2px solid #755bd2; outline-offset: 3px; border-radius: 2px; }
.student-summary-modal .form-input {
  box-sizing: border-box; width: 100%; max-width: none; min-width: 0; padding: 10px 12px; border: 1px solid #d7d3e1;
  border-radius: 8px; color: #24212e; background: #fff; font: inherit;
}
.student-summary-modal .form-error { margin: 10px 0 0; color: #a32626; font-size: 0.85rem; }
.student-summary-modal .btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 7px 12px;
  border: 1px solid #d7d3e1; border-radius: 8px; background: #fff; color: #24212e;
  font: inherit; font-size: 0.9rem; cursor: pointer;
}
.student-summary-modal .btn-primary { border-color: #6c5ac7; background: #6c5ac7; color: #fff; }
.student-summary-modal .btn:disabled { opacity: 0.55; cursor: default; }
.student-summary-modal .email-change { margin-top: 4px; border-top: 1px solid #eceaf1; padding-top: 14px; }
.student-summary-modal .email-change summary { cursor: pointer; font-weight: 600; color: #6041a5; }
.student-summary-modal .email-change-panel { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; font-size: 0.88rem; }
.student-summary-modal .email-change-panel p { margin: 0; }
.student-summary-modal .email-change-field { display: flex; flex-direction: column; gap: 6px; }
.student-summary-modal .email-change-check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.student-summary-modal .email-change-check input { flex: none; margin: 5px 0 0; accent-color: #6c5ac7; }
.student-summary-modal .email-change-check span { min-width: 0; overflow-wrap: anywhere; }
.student-summary-modal .email-change-account { display: flex; flex-direction: column; gap: 3px; background: #f6f4fb; border: 1px solid #e5dff2; border-radius: 9px; padding: 12px; overflow-wrap: anywhere; }
.student-summary-modal .email-change-preview { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid #e5dff2; padding-top: 14px; }
.student-summary-modal .email-change-results { display: flex; flex-direction: column; gap: 6px; }
.student-summary-modal .email-change-results [aria-pressed="true"] { border-color: #6c5ac7; background: #efedf8; }
.student-summary-modal .email-change-panel .btn { white-space: normal; overflow-wrap: anywhere; }
.student-summary-modal .email-change-success { color: #23623f; }
@media (max-width: 520px) {
  .student-summary-modal .modal-header,
  .student-summary-modal .modal-body,
  .student-summary-modal .modal-footer { padding-left: 16px; padding-right: 16px; }
  .student-summary-modal .peek-fact { grid-template-columns: 1fr; gap: 3px; }
}
