/* ================================================================
   AUTH — modals, forms, avatar picker, profile, dropdown
   Colours consume Tier 2 semantic tokens from css/tokens.css.
   ================================================================ */

/* ── Upload modal ── */
.upload-modal {
  display: none; position: fixed; inset: 0; z-index: var(--z-modal-shell);
  background: var(--scrim); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 24px; animation: fadeIn 0.3s;
}
.upload-modal.active { display: flex; }
.upload-modal-content {
  background: var(--surface-card); border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
  padding: 32px; max-width: 640px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative;
}
.upload-modal-body .section-header { padding-top: 0; margin-bottom: 16px; }
.upload-modal-body .section-header .badge {
  font-size: 0.72rem; padding: 4px 12px; letter-spacing: 0.03em;
  font-family: var(--font-sans);
}
.upload-modal-body .section-header h2 {
  font-family: var(--font-sans);
  font-size: 1.35rem; font-weight: 800; line-height: 1.3;
  color: var(--text-strong); margin: 10px 0 6px;
}
.upload-modal-body .section-header p {
  font-family: var(--font-sans);
  font-size: 0.88rem; line-height: 1.65; color: var(--text-secondary); font-weight: 500;
}
.upload-modal-body .upload-area {
  padding: 36px 24px;
  font-family: var(--font-sans);
}
.upload-modal-body .upload-icon .material-icons-round { font-size: 52px; }
.upload-modal-body .upload-area h3 { font-size: 1.1rem; font-weight: 700; }
.upload-modal-body .upload-area p  { font-size: 0.85rem; }
.upload-modal-body .upload-hint    { font-size: 0.8rem !important; margin: 8px 0 20px !important; }
.upload-modal-body .loading-phase-strip { display: none; }
.upload-modal-body .loading-text {
  font-family: var(--font-sans);
  font-size: 0.95rem; color: var(--text-secondary); font-weight: 600;
}

/* ── Auth modal ── */
.auth-modal {
  display: none; position: fixed; inset: 0; z-index: var(--z-modal-shell);
  background: var(--scrim); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 24px; animation: fadeIn 0.3s;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.auth-modal.active { display: flex; }
.auth-modal-content {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,249,250,0.95));
  border-radius: var(--radius-lg); box-shadow: 0 12px 48px rgba(0,0,0,0.15);
  padding: 48px; max-width: 420px; width: 100%;
  border: 1px solid rgba(255,255,255,0.8); backdrop-filter: blur(10px);
  position: relative; animation: slideUp 0.3s cubic-bezier(0.4,0,0.2,1);
  max-height: 90vh; max-height: 90dvh; overflow-y: auto;
}
.auth-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; cursor: pointer;
  color: var(--text-tertiary); padding: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); border-radius: 50%;
}
.auth-modal-close:hover { color: var(--brand); background: rgba(255,94,145,0.1); }
.auth-logo {
  display: flex; align-items: center; justify-content: center; margin-bottom: 40px;
}
.auth-logo .logo-icon { width: 240px; height: auto; border-radius: 8px; object-fit: contain; }
.auth-logo h1 {
  font-size: 1.8rem; font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.auth-form h2   { font-size: 1.6rem; color: var(--text-ink); margin-bottom: 28px; font-weight: 700; }
.auth-form form { margin-bottom: 24px; }
.auth-toggle    { text-align: center; color: var(--text-secondary); font-size: 0.95rem; }
.auth-toggle a  { color: var(--brand); font-weight: 700; text-decoration: none; cursor: pointer; transition: var(--transition); }
.auth-toggle a:hover { color: var(--accent); }

/* Hero auth overrides */
.hero .auth-toggle          { color: var(--text-secondary); }
.hero .auth-toggle-link     { color: var(--brand) !important; font-weight: 600; }
.hero .auth-toggle-link:hover { color: var(--brand-deep) !important; }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-group label  { display: block; font-weight: 600; color: var(--text-ink); margin-bottom: 8px; font-size: 0.95rem; }
.form-group input  {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border-default);
  border-radius: var(--radius-sm); font-family: var(--font-display);
  font-size: 1rem; transition: var(--transition); background: var(--surface-input);
}
.form-group input:focus       { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255,94,145,0.1); }
.form-group input::placeholder { color: var(--text-tertiary); }
.profile-field-note { margin: 6px 0 0; color: var(--text-secondary); font-size: 0.78rem; font-weight: 500; line-height: 1.45; }
.form-row-between {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 8px;
}
.checkbox-group {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; user-select: none; font-size: 0.92rem; color: var(--text-secondary-strong);
}
.checkbox-group input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }
.forgot-link  { color: var(--brand); font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: var(--transition); }
.forgot-link:hover { color: var(--accent); text-decoration: underline; }
.forgot-hint  { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 20px; line-height: 1.6; }

/* Persistent outcome message for the reset flow. Shares the success palette
   with .auth-inline-error.success but is a separate element on purpose: that
   one auto-hides after 3s, and "check your inbox" has to stay on screen.
   Uses --success-fg-strong, not --success-fg: this is body copy the user has
   to read, and only the strong variant clears AA on the success surface. */
.auth-inline-note {
  padding: 10px 14px; margin-bottom: 12px;
  border-radius: 10px; font-size: 0.88rem; font-weight: 600;
  font-family: var(--font-display); text-align: center; line-height: 1.55;
  background: var(--success-surface); color: var(--success-fg-strong); border: 1px solid var(--success-border);
}
.auth-inline-note[hidden] { display: none; }

/* ── Password toggle ── */
.password-wrapper       { position: relative; }
.password-wrapper input { padding-right: 48px !important; }
.password-toggle {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 6px; border-radius: 50%;
  color: var(--text-tertiary); display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.password-toggle:hover { color: var(--text-brand); background: rgba(255,94,145,0.08); }
.password-toggle .material-icons-round { font-size: 20px; }

/* ── Avatar picker ── */
.avatar-picker           { text-align: center; margin-bottom: 20px; }
.avatar-picker-label     { display: block; font-weight: 700; color: var(--text-ink); margin-bottom: 12px; font-size: 0.95rem; }
.avatar-picker-preview   {
  width: 80px; height: 80px; border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--surface-sunken), var(--surface-sunken-strong));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--text-tertiary);
  border: 3px solid var(--border-default); transition: all 0.3s ease; overflow: hidden;
}
.avatar-picker-preview.selected { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255,94,145,0.2); }
.avatar-picker-preview .material-icons-round { font-size: 36px; color: var(--text-tertiary); }
.avatar-picker-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; max-width: 280px; margin: 0 auto; }
.avatar-option {
  width: 100%; aspect-ratio: 1; border-radius: 16px;
  border: 2.5px solid var(--border-default); background: var(--surface-subtle);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease; position: relative; overflow: hidden;
}
.avatar-option:hover  { border-color: var(--purple-400); transform: scale(1.08); box-shadow: 0 4px 12px rgba(168,85,247,0.2); }
.avatar-option.selected {
  border-color: var(--brand); background: var(--surface-brand-soft);
  box-shadow: 0 4px 16px rgba(255,94,145,0.25); transform: scale(1.08);
}
.avatar-option.selected::after {
  content: '✓'; position: absolute; top: 2px; right: 4px;
  font-size: 0.7rem; font-weight: 900; color: var(--text-inverse);
  background: var(--brand); width: 16px; height: 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.avatar-emoji { font-size: 1.8rem; line-height: 1; }

/* ── Edit profile modal ── */
/* No overscroll-behavior here, on purpose. The document behind this overlay is
   already locked (Viewport.lockDocumentScroll holds <html> and <body> at
   overflow:hidden while the modal is open — auth-profile.js), so there is
   nothing for a scroll to chain INTO — and `contain` costs something real: it
   also swallows the pan gesture of a pinch-zoomed visual viewport (Chrome ≥144
   applies it even when this box has nothing to scroll; CSSWG issue 12919
   resolved on 2026-03-04 that it should not, but no engine ships that yet). A
   learner who zoomed in on the form could not move around it in any direction.
   The rule used to sit here over a lock that held <body> alone — a guard
   covering for half a lock; now the lock is whole and the guard is gone.
   Measured in Chromium 148: a horizontal wheel over the zoomed modal moved
   visualViewport.offsetLeft 0 → 0 with the rule and 0 → 64 without it
   (tests/e2e/quiz-exam-smoke.mjs QE-11 keeps that live). Same reasoning as
   .qres-overlay in gym-quiz-result.css. Pinned by
   tests/sheet-scroll-lock-contract.test.js. */
.edit-profile-overlay { display: none; position: fixed; inset: 0; z-index: var(--z-modal-profile); background: var(--scrim); backdrop-filter: blur(4px); align-items: flex-start; justify-content: center; padding: clamp(24px, 8vh, 80px) 16px 24px; overflow-y: auto; }
.edit-profile-overlay.active { display: flex; }
.edit-profile-modal  { background: var(--surface-card); border-radius: 20px; width: min(100%, 480px); max-height: calc(100vh - 48px); box-shadow: 0 24px 64px rgba(0,0,0,0.18); overflow: hidden; animation: profileSlideDown 0.25s ease; display: flex; flex-direction: column; }
@keyframes profileSlideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
.edit-profile-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 16px; border-bottom: 1px solid var(--border-default); flex: 0 0 auto; }
.edit-profile-header h3 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 800; color: var(--text-ink); margin: 0; }
.edit-profile-header h3 .material-icons-round { color: var(--accent); }
.edit-profile-close  { background: none; border: none; cursor: pointer; padding: 4px; color: var(--text-secondary); border-radius: 8px; display: flex; align-items: center; }
.edit-profile-close:hover { background: var(--surface-sunken); color: var(--text-ink); }
.edit-profile-body   { padding: 20px 24px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; }
.edit-profile-tabs   { display: flex; gap: 8px; margin-bottom: 20px; background: var(--surface-sunken); border-radius: 12px; padding: 4px; }
.edit-profile-tab    { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; border: none; background: none; border-radius: 10px; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: all 0.2s; }
.edit-profile-tab.active { background: var(--surface-card); color: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.edit-profile-tab .material-icons-round { font-size: 1rem; }
.edit-profile-tab-content { display: none; }
.edit-profile-tab-content.active { display: block; }
.forced-password-notice { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; padding: 12px 14px; border: 1px solid var(--notice-border); background: var(--notice-surface); color: var(--notice-fg); border-radius: 12px; }
.forced-password-notice[hidden] { display: none; }
.forced-password-notice .material-icons-round { color: var(--orange); font-size: 1.3rem; margin-top: 1px; }
.forced-password-notice strong { display: block; font-size: 0.92rem; font-weight: 900; color: var(--notice-fg); }
.forced-password-notice p { margin: 3px 0 0; font-size: 0.82rem; line-height: 1.45; color: var(--notice-fg-soft); }
.forced-password-logout { margin-top: 9px; padding: 0; border: 0; background: transparent; color: var(--accent-strong); font-family: inherit; font-size: 0.82rem; font-weight: 900; cursor: pointer; }
.forced-password-logout:hover { color: var(--accent-deepest); text-decoration: underline; }
.edit-profile-overlay[data-forced-password="1"] .edit-profile-close,
.edit-profile-overlay[data-forced-password="1"] .edit-profile-tabs { display: none; }
.edit-prof-msg { padding: 10px 14px; border-radius: 10px; font-size: 0.88rem; font-weight: 600; margin-bottom: 14px; border: 1px solid transparent; }
.edit-prof-msg[hidden] { display: none !important; }
.edit-prof-msg--error { background: var(--danger-surface); color: var(--danger-fg-strong); border-color: var(--danger-border); }
.edit-prof-msg--success { background: var(--success-surface); color: var(--success-fg-strong); border-color: var(--success-border); }
.profile-overview-panel { display: none; }
.profile-overview-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.profile-overview-avatar { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-inverse); font-size: 1.9rem; font-weight: 800; flex: 0 0 auto; }
.profile-overview-main { min-width: 0; flex: 1; }
.profile-overview-main h4 { margin: 0 0 4px; color: var(--text-strong); font-size: 1.05rem; font-weight: 800; overflow-wrap: anywhere; }
.profile-overview-main p { margin: 0; color: var(--text-secondary); font-size: 0.88rem; font-weight: 600; overflow-wrap: anywhere; }
.profile-overview-edit { width: 40px; height: 40px; border: 1px solid var(--border-default); background: var(--surface-card); color: var(--accent-strong); border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; transition: all 0.2s; }
.profile-overview-edit:hover { background: var(--surface-accent-soft); border-color: var(--border-accent-strong); }
.profile-overview-edit .material-icons-round { font-size: 1.1rem; }
.profile-overview-meta { display: grid; gap: 10px; margin-bottom: 16px; }
.profile-overview-row { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 10px; align-items: center; padding: 12px; background: var(--surface-subtle); border: 1px solid var(--border-default); border-radius: 10px; }
.profile-overview-row .material-icons-round { color: var(--accent); font-size: 1.05rem; }
.profile-overview-row label { display: block; color: var(--text-secondary); font-size: 0.75rem; font-weight: 700; margin-bottom: 2px; }
.profile-overview-row strong { display: block; color: var(--text-strong); font-size: 0.9rem; font-weight: 700; overflow-wrap: anywhere; }
.profile-overview-actions { display: grid; gap: 10px; }
.profile-overview-logout { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 2px; padding: 11px 14px; border: 1px solid var(--danger-border); background: var(--surface-card); color: var(--danger-fg); border-radius: 10px; font-family: inherit; font-size: 0.92rem; font-weight: 800; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.profile-overview-logout:hover { background: var(--danger-surface); border-color: var(--danger-border-strong); color: var(--danger-fg-strong); }
.profile-overview-logout .material-icons-round { font-size: 1.05rem; }
.avatar-picker--profile { margin-bottom: 16px; }

@media (max-width: 768px) {
  .form-row-between  { flex-direction: column; align-items: flex-start; }
  .auth-modal        { padding: 12px; align-items: flex-start; }
  .auth-modal-content { padding: 28px 20px; }
  .auth-logo         { margin-bottom: 20px; }
  .auth-form h2      { font-size: 1.3rem; margin-bottom: 18px; }
  .avatar-picker-preview { width: 64px; height: 64px; font-size: 2rem; margin-bottom: 10px; }
  .avatar-picker     { margin-bottom: 14px; }
  .avatar-picker-grid { gap: 8px; max-width: 240px; }
  .avatar-emoji      { font-size: 1.5rem; }
  .form-group        { margin-bottom: 14px; }
  .edit-profile-overlay { padding: 12px; align-items: flex-start; }
  .edit-profile-modal { max-height: calc(100vh - 24px); border-radius: 16px; }
  .edit-profile-header { padding: 16px 18px 14px; }
  .edit-profile-body { padding: 16px 18px 18px; }
  .profile-overview-hero { gap: 12px; }
  .profile-overview-avatar { width: 56px; height: 56px; font-size: 1.65rem; }
}

/* Loading spinner for submit buttons (pure CSS, no font dependency) */
.btn-spinner {
  display: inline-block;
  width: 1em; height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: authSpin 0.7s linear infinite;
}
@keyframes authSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
button[disabled] { opacity: 0.75; cursor: wait; }
/* Membership is part of the existing profile, not a parallel account menu. */
.profile-premium-card{margin:20px 0;padding:20px;border:1px solid var(--border-subtle);border-radius:18px;background:var(--surface-card);color:var(--text-ink)}
.profile-premium-card h4{margin:4px 0 10px;font-family:var(--font-display);font-size:1.15rem}
.profile-premium-card p{margin:8px 0;line-height:1.6}
.profile-premium-eyebrow{color:var(--text-accent);font-size:.8rem;font-weight:700;letter-spacing:.06em}
.profile-premium-detail{color:var(--text-secondary);font-size:.85rem}
.profile-premium-card .btn{margin-top:12px;min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;background:var(--purple-dark);color:var(--white);box-shadow:none}
.profile-premium-card .profile-premium-preview{background:transparent;color:var(--text-accent);border:1px solid var(--border-subtle)}
/* The display above would otherwise beat the UA rule for [hidden]. */
.profile-premium-card .btn[hidden]{display:none}
.profile-premium-test{color:var(--text-accent);font-size:.85rem;font-weight:600}
html[data-session-pending] body > :not(#sessionPaintStatus) { visibility: hidden; }
#sessionPaintStatus { position: fixed; inset: 0; display: grid; place-items: center; background: var(--surface-body); color: var(--text-secondary); font-family: var(--font-sans); padding: 24px; text-align: center; }

.auth-roster-note { font-size:12px; line-height:1.7; color:var(--text-secondary); margin-top:12px; }

/* Learner account surfaces share the canonical palette even on guest routes,
   where the gym stylesheet is intentionally not loaded. Native dialogs keep
   focus in the active surface; existing Viewport locks own background scroll. */
#authModal,
#editProfileOverlay {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; border: 0; box-sizing: border-box;
  color: var(--learner-text-ink);
}
#authModal::backdrop,
#editProfileOverlay::backdrop { background: transparent; }
#authModal .auth-modal-content {
  background: var(--learner-surface-card); border: 1px solid var(--learner-border-default);
  border-radius: 24px; padding: 32px; max-width: 450px; backdrop-filter: none;
}
#authModal .auth-logo { justify-content: flex-start; margin-bottom: 28px; padding-right: 36px; }
#authModal .auth-logo h1 {
  background: none; -webkit-text-fill-color: currentColor;
  color: var(--learner-text-ink); font-size: 1.1rem; font-weight: 700;
}
#authModal .auth-form h2 { font-weight: 600; margin-bottom: 24px; color: var(--learner-text-ink); }
#authModal .auth-toggle { font-size: 0.88rem; }
#authModal .auth-toggle a,
#authModal .forgot-link { color: var(--learner-action-primary); }
#authModal .auth-modal-close,
#editProfileOverlay .edit-profile-close,
#editProfileOverlay .profile-overview-edit {
  width: 44px; height: 44px; flex: none; justify-content: center;
  color: var(--learner-text-secondary);
}
#authModal .password-toggle,
#editProfileOverlay .password-toggle { width: 44px; height: 44px; right: 4px; }
#authModal .form-group label,
#editProfileOverlay .form-group label { color: var(--learner-text-ink); }
#authModal .form-group input,
#editProfileOverlay .form-group input {
  border: 1px solid var(--learner-border-interactive); background: var(--learner-surface-card);
  color: var(--learner-text-ink); min-height: 48px;
}
#authModal .form-group input:focus,
#editProfileOverlay .form-group input:focus {
  border-color: var(--learner-action-primary); outline: 2px solid var(--learner-action-primary);
  outline-offset: 2px; box-shadow: none;
}
#authModal .btn-primary,
#editProfileOverlay .btn-primary {
  background: var(--learner-action-primary); color: var(--learner-on-action);
  border-color: var(--learner-action-primary); box-shadow: none; min-height: 48px;
}
#authModal .btn-primary:hover,
#editProfileOverlay .btn-primary:hover { background: var(--learner-action-hover); transform: none; }
#editProfileOverlay .edit-profile-modal {
  background: var(--learner-surface-card); border: 1px solid var(--learner-border-default);
  border-radius: 24px;
}
#editProfileOverlay .edit-profile-header { border-color: var(--learner-border-default); }
#editProfileOverlay .edit-profile-header h3 { font-weight: 600; color: var(--learner-text-ink); }
#editProfileOverlay .edit-profile-header h3 .material-icons-round { color: var(--learner-text-secondary); }
#editProfileOverlay .profile-overview-main h4 { color: var(--learner-text-ink); }
#editProfileOverlay .profile-overview-meta { gap: 0; }
#editProfileOverlay .profile-overview-row {
  background: transparent; border: 0; border-bottom: 1px solid var(--learner-border-default);
  border-radius: 0; padding: 14px 0;
}
#editProfileOverlay .profile-overview-row .material-icons-round { color: var(--learner-text-secondary); }
#editProfileOverlay .profile-overview-actions .btn {
  min-height: 48px; border-radius: 12px; box-shadow: none; justify-content: flex-start;
  background: var(--learner-surface-card); border: 1px solid var(--learner-border-default);
  color: var(--learner-text-ink);
}
#editProfileOverlay .profile-overview-actions .btn-danger { color: var(--danger-fg); }
#editProfileOverlay .profile-overview-actions .btn:hover { background: var(--learner-surface-selected); }
#editProfileOverlay .edit-profile-tabs { background: var(--learner-surface-workspace); }
#editProfileOverlay .edit-profile-tab { min-height: 44px; }
#editProfileOverlay .edit-profile-tab.active { color: var(--learner-action-primary); background: var(--learner-surface-card); box-shadow: none; }
@media (max-width: 480px) {
  #authModal { padding: 12px; }
  #authModal .auth-modal-content { padding: 24px; border-radius: 20px; }
  #editProfileOverlay .edit-profile-modal { border-radius: 20px; }
}

#authModal :focus-visible,
#editProfileOverlay :focus-visible { outline-color: var(--learner-action-primary); }
#authModal .auth-roster-note a { color: var(--learner-action-primary); }
#authModal .form-group input::placeholder,
#editProfileOverlay .form-group input::placeholder { color: var(--learner-text-secondary); }
#deleteAccountDialog {
  border: 1px solid var(--learner-border-default); border-radius: 24px; padding: 0;
  max-width: 420px; width: calc(100% - 24px); background: var(--learner-surface-card);
  color: var(--learner-text-ink); box-shadow: var(--shadow-xl);
}
.delete-account-body { padding: 28px 24px; }
.delete-account-title { color: var(--danger-fg); margin: 0 0 8px; font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }
.delete-account-description { color: var(--learner-text-secondary); font-size: 0.92rem; margin: 0 0 18px; }
#deleteAccountError { color: var(--danger-fg); font-size: 0.85rem; min-height: 1.3em; margin: 4px 0 12px; }
.delete-account-actions { display: flex; gap: 8px; }
.delete-account-actions .btn { flex: 1; min-height: 44px; box-shadow: none; }
