/* Account settings v247. This stylesheet is scoped to account dialogs. */
.account-dialog {
  box-sizing: border-box;
  border: 1px solid #dee6f4;
  border-radius: 24px;
  padding: 0;
  width: min(95vw, 520px);
  max-height: min(90dvh, 880px);
  box-shadow: 0 25px 70px rgba(14,34,75,.26);
  background: #fff;
  color: var(--text);
}
.account-dialog::backdrop { background: rgba(15,30,62,.5); backdrop-filter: blur(3px); }
.account-dialog .account-panel {
  padding: 22px;
  max-height: min(90dvh, 880px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.account-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.account-panel-heading h2 { margin: 5px 0 0; font-size: 1.4rem; letter-spacing: -.03em; line-height: 1.2; }
.account-eyebrow { display: block; color: #5e749c; letter-spacing: .12em; font-weight: 850; font-size: 10px; }
.account-dialog button.account-close { border-radius: 12px; padding: 7px 12px; font-weight: 800; flex-shrink: 0; }
.account-section { border-top: 1px solid var(--line); padding: 17px 0; }
.account-section h3 { margin: 0 0 12px; font-size: 1rem; font-weight: 850; }
.account-dialog label { display: block; font-size: .84rem; font-weight: 750; color: #354562; margin: 12px 0 5px; }
.account-dialog input {
  display: block; width: 100%; min-width: 0;
  margin-top: 0; padding: 12px;
  font-size: 16px; border: 1px solid #cdd9e9; background: #fff; border-radius: 12px;
}
.account-dialog input[readonly] { background: #f3f6fb; color: #5a6b85; }
.account-dialog .account-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; width: 100%; margin-top: 15px;
  background: #315cdd; color: #fff; border-radius: 12px; font-weight: 800;
}
.account-dialog button:disabled { opacity: .55; cursor: not-allowed; }
.account-hint { font-size: .84rem; line-height: 1.45; color: var(--muted); margin: 4px 0 12px; }
.account-details { border: 1px solid #dce5f2; border-radius: 14px; background: #f7f9fd; }
.account-details summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 13px; font-weight: 760; font-size: .9rem; color: #28406c; list-style: none; }
.account-details summary::-webkit-details-marker { display: none; }
.account-details[open] summary { border-bottom: 1px solid #dce5f2; }
.account-details[open] summary span { transform: rotate(90deg); }
.account-details-content { padding: 10px 13px 15px; background: #fff; border-radius: 0 0 14px 14px; }
.account-text-button { width: 100%; text-align: center; margin-top: 10px; font-size: .86rem; }
.account-footer { padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.account-footer button { min-height: 42px; border-radius: 12px; }
.account-feedback { display: block; white-space: normal; padding: 11px 12px; border: 1px solid #bfdace; background: #effaf4; color: #176142; border-radius: 12px; font-size: .84rem; line-height: 1.45; margin: 0 0 13px; }
.account-feedback.account-error { border-color: #f0b6c4; background: #fff1f3; color: #9d2341; }
.account-feedback.account-ok { border-color: #bfdace; background: #effaf4; color: #176142; }
.account-feedback.hidden { display: none!important; }
#screenHome .auth-forgot-btn { flex: 0 0 auto; font-size: .85rem; color: #3152bd; background: transparent; padding-inline: 8px; }
@media (max-width: 580px) {
  .account-dialog { width: calc(100vw - 24px); border-radius: 20px; }
  .account-dialog .account-panel { padding: 17px; }
  .account-panel-heading h2 { font-size: 1.25rem; }
  .account-dialog .account-primary { min-height: 46px; }
  #screenHome .auth-forgot-btn { width: 100%; text-align: left; justify-content: flex-start; }
}
