/* Perfil compartilhado entre administração e editor; usa os tokens do painel. */
#profile-panel.profile-shell, #editor-profile-panel.profile-shell { width: 100%; max-width: 1100px; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.profile-page-heading { margin-bottom: 24px; }
.profile-page-heading h2 { margin: 0 0 6px; color: var(--navy); font-size: 28px; letter-spacing: -.6px; text-transform: none; }
.profile-page-heading .subtitle { margin: 0; }
.profile-breadcrumb { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--text-muted); font-size: 12px; }
.profile-breadcrumb i { font-size: 9px; }
.profile-surface { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.profile-summary { display: flex; align-items: center; gap: 24px; padding: 28px 32px; border-bottom: 1px solid var(--border); }
.profile-summary .avatar-large { width: 128px; height: 128px; font-size: 44px; box-shadow: none; }
.profile-summary-content { min-width: 0; }
.profile-summary-content > strong { display: block; margin: 0 0 8px; font-size: 17px; overflow-wrap: anywhere; }
.profile-shell .profile-summary .role-badge { margin: 0; }
.profile-summary .profile-photo-control { margin: 14px 0 0; gap: 6px; }
.profile-summary .profile-photo-control button { min-height: 38px; padding: 8px 14px; font-size: 13px; }
.profile-security { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 32px; padding: 28px 32px; }
.profile-security-heading h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 0 0 8px; }
.profile-security-heading h3 i { font-size: 15px; }
.profile-security-heading p { font-size: 13px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.profile-security form { min-width: 0; }
.profile-details { border-bottom: 1px solid var(--border); }
.profile-password-row { display: grid; }
.profile-summary-content > strong[hidden] { display: none; }
.profile-summary-content > strong[data-profile-name]:not([hidden]) + strong { font-size: 13px; font-weight: 400; color: var(--text-muted); }
.profile-security .field { min-width: 0; margin-bottom: 18px; }
.profile-security .profile-password-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.profile-password-input { position: relative; }
.profile-security .profile-password-input input { width: 100%; height: 46px; padding-right: 46px; }
.profile-password-eye { position: absolute; top: 1px; right: 1px; width: 42px; height: 44px; padding: 0; margin: 0; display: grid; place-items: center; border: 0; border-radius: 8px; color: var(--text-muted); background: transparent; cursor: pointer; }
.profile-password-eye:hover { color: var(--navy); background: var(--surface-sunken); }
.profile-password-eye:focus-visible { outline: 2px solid var(--green-deep); outline-offset: -3px; }
.profile-password-hint { margin: 0; font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.profile-security .feedback { font-size: 13px; margin: 12px 0 0; overflow-wrap: anywhere; }
.profile-security .feedback:empty { display: none; }
.profile-save-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.profile-save-actions button, .profile-session button { flex: 0 0 auto; width: auto; min-height: 42px; padding: 10px 16px; margin: 0; font-size: 14px; }
.profile-session { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 32px; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: var(--surface-sunken); }
.profile-session strong { font-size: 14px; }
.profile-session p { margin: 5px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.profile-session .btn-danger { border-color: var(--border); background: var(--surface); white-space: nowrap; }
@media (max-width: 1100px) { .profile-security { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
@media (max-width: 600px) {
  #view-profile { padding: 20px 14px; }
  .profile-summary, .profile-security, .profile-session { padding: 20px; }
  .profile-summary { align-items: flex-start; gap: 16px; }
  .profile-summary .avatar-large { width: 96px; height: 96px; font-size: 34px; }
  .profile-summary-content > strong { font-size: 14px; }
  .profile-security .profile-password-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .profile-security .profile-password-input input { font-size: 16px; }
  .profile-session { flex-wrap: wrap; gap: 16px; }
  .profile-save-actions { justify-content: flex-start; }
  .profile-save-actions button, .profile-session button { min-height: 44px; }
}
@media (max-width: 380px) { .profile-summary { flex-direction: column; } }
