/* Modais de conta compartilhados (perfil + senha) — um único padrão nos dois layouts. */
.account-modal { width: min(520px, 92vw); max-height: 90vh; max-height: 90dvh; padding: 0; border: 1px solid var(--app-border); border-radius: 18px; background: var(--app-surface); color: var(--app-text); box-shadow: var(--app-shadow); overflow: hidden; }
.account-modal::backdrop { background: rgba(6, 14, 25, .55); backdrop-filter: blur(2px); }
.account-modal-card { display: flex; flex-direction: column; max-height: 90vh; max-height: 90dvh; }
.account-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 14px; border-bottom: 1px solid var(--app-border); }
.account-modal-kicker { display: block; font-size: .58rem; letter-spacing: .13em; font-weight: 800; color: var(--app-text-muted); }
.account-modal-head h2 { margin: 4px 0 0; font-size: 1.2rem; letter-spacing: -.02em; color: var(--app-text); }
.account-modal-head p { margin: 4px 0 0; font-size: .72rem; color: var(--app-text-muted); }
.account-modal-close { flex: 0 0 auto; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--app-text-muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.account-modal-close:hover { background: var(--app-surface-hover); color: var(--app-text); }
.account-modal-body { padding: 18px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.account-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--app-border); background: var(--app-surface-2); }
.account-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-modal-field { display: flex; flex-direction: column; gap: 6px; }
.account-modal-field > span { font-size: .72rem; font-weight: 700; color: var(--app-text); }
.account-modal-field input, .account-modal-field select { width: 100%; padding: .62rem .7rem; border: 1px solid var(--app-input-border); border-radius: 10px; background: var(--app-input-bg); color: var(--app-text); font-size: .82rem; }
.account-modal-field input:focus, .account-modal-field select:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-primary) 15%, transparent); }
.account-modal-field input[readonly] { opacity: .7; }
.account-modal-field small, .account-modal-hint { font-size: .64rem; color: var(--app-text-muted); }
.account-modal-avatar { display: flex; align-items: center; gap: 14px; }
.account-modal-avatar-preview { display: grid; place-items: center; width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; overflow: hidden; background: linear-gradient(145deg, var(--brand-accent), var(--brand-primary)); color: #fff; font-size: 1.4rem; font-weight: 800; }
.account-modal-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.account-modal-file { display: inline-flex; }
.account-modal-file span { display: inline-flex; align-items: center; padding: .5rem .8rem; border: 1px solid var(--app-border); border-radius: 9px; font-size: .74rem; font-weight: 700; cursor: pointer; color: var(--app-text); }
.account-modal-file input { display: none; }
.account-modal-check { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .7rem; color: var(--app-text-muted); }
.account-modal-alert { padding: .7rem .8rem; border-radius: 10px; background: color-mix(in srgb, #e24b5b 12%, var(--app-surface)); border: 1px solid color-mix(in srgb, #e24b5b 32%, transparent); color: #e24b5b; font-size: .74rem; }
.account-modal-pw { position: relative; display: flex; }
.account-modal-pw input { flex: 1; padding-right: 2.4rem; }
.account-modal-pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--app-text-muted); cursor: pointer; font-size: 1rem; }
.account-modal-strength { border: 1px solid var(--app-border); border-radius: 12px; padding: 12px 14px; background: var(--app-surface-2); }
.account-modal-strength-head { display: flex; justify-content: space-between; font-size: .68rem; color: var(--app-text-muted); }
.account-modal-strength ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.account-modal-strength li { display: flex; align-items: center; gap: 7px; font-size: .68rem; color: var(--app-text-muted); }
.account-modal-strength li i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--app-surface-hover); color: transparent; font-size: .6rem; }
.account-modal-strength li.is-valid { color: var(--app-text); }
.account-modal-strength li.is-valid i { background: #13a879; color: #fff; }
@media (max-width: 520px) {
  .account-modal { width: calc(100vw - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 16px; }
  .account-modal-card { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .account-modal-grid, .account-modal-strength ul { grid-template-columns: 1fr; }
  .account-modal-field input, .account-modal-field select { font-size: 16px; }
}
