/* Screen-specific styles: login, full-page states, placeholders, Menu. */

/* ── Login (mobile app/(auth)/login.tsx) ───────────────────────────── */
.login-screen {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login {
  width: 100%;
  max-width: 400px;
}
.login__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login__form .input { margin-bottom: 8px; }
.login__label {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 4px;
}
.login__keep {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  margin: -4px 0 4px;
}
.login__back {
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 12px;
}
.login__back:hover { color: var(--text); }

/* ── Full-page states (loading / crash / other tab / deactivated) ──── */
.full-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px;
  text-align: center;
}
.full-screen__logo {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  border: 1px solid var(--accent-border);
  margin-bottom: 8px;
}
.full-screen__title { font-size: 20px; font-weight: 700; }
.full-screen__body { font-size: 14px; color: var(--text-secondary); max-width: 420px; line-height: 1.45; }

/* ── Placeholders (screens arriving in later milestones) ───────────── */
.placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
}
.placeholder__title { font-size: 16px; font-weight: 600; }
.placeholder__body { font-size: 14px; color: var(--text-secondary); max-width: 360px; }

/* ── Menu (mobile app/(tabs)/menu.tsx + profile-header.tsx) ────────── */
.menu-top { padding: 0 0 8px; }
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-bottom: 24px;
}
.profile-header__avatar-wrap { position: relative; }
.profile-header__avatar { display: block; border-radius: 30px; }
.profile-header__badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  opacity: 0.75;
}
/* Camera badge (2026-09-29): filled accent over a slightly larger black
   camera = a thin black outline that reads on any photo. */
.camera-badge { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.camera-badge .mdi { position: absolute; }
.camera-badge__outline { color: var(--black); }
.camera-badge__fill { color: var(--accent); }
.profile-header__name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}
.profile-header__pencil-spacer { width: 14px; }
.profile-header__display-name { font-size: 20px; font-weight: 700; }
.profile-header__full-name { font-size: 14px; color: var(--text-secondary); }
.profile-header__email { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

.menu-list { display: flex; flex-direction: column; }
.menu-logout {
  padding: 14px 20px;
  color: var(--danger);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  border-radius: 10px;
}
.menu-deactivate {
  align-self: center;
  margin-top: 8px;
  padding: 8px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}

.avatar-preview {
  width: min(90vw, 90vh);
  height: min(90vw, 90vh);
}
.avatar-preview__img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-out; }

/* Roles list (inside Edit Profile) */
.roles-list { display: flex; flex-direction: column; }
/* Inside Edit Profile: capped so a long list scrolls, not the form. */
.roles-block { display: flex; flex-direction: column; gap: 2px; }
.roles-block .roles-list { max-height: 176px; overflow-y: auto; }
.role-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.role-row--no-border { border-bottom: 0; }
.role-row__text { flex: 1; font-size: 15px; }

/* Appearance dialog */
.theme-list { flex: 1; overflow-y: auto; scrollbar-width: none; }
.theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.theme-row--no-border { border-bottom: 0; }
.theme-row__label { font-size: 15px; font-weight: 600; }

/* About dialog */
.about-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.about-row--no-border { border-bottom: 0; }
.about-row--disabled { opacity: 0.6; }
.about-row__text { flex: 1; display: flex; flex-direction: column; }
.about-row__label { font-size: 15px; font-weight: 600; }
.about-row--disabled .about-row__label { color: var(--text-tertiary); }
.about-row__subtitle { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.about-version { text-align: center; margin-top: 24px; font-size: 12px; color: var(--text-tertiary); }

/* Personalise dialog (2026-10-01): tabs + tone list */
.personalise__body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.personalise__hint { font-size: 12px; color: var(--text-tertiary); margin: 0; }
.tone-row { gap: 8px; padding-top: 6px; padding-bottom: 6px; }
.tone-row__pick { flex: 1; text-align: left; font-size: 15px; font-weight: 600; padding: 6px 4px; border-radius: 8px; }
.tone-row__pick:disabled { cursor: default; }
.tone-row--dimmed { opacity: 0.45; }
