.crm-company-logo { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; vertical-align: middle; }
.crm-company-logo img { width: auto; height: auto; max-width: 160px; max-height: 36px; object-fit: contain; }
.crm-company-logo .crm-logo-dark { display: none; }
html.dark .crm-company-logo .crm-logo-light, html.dark-style .crm-company-logo .crm-logo-light { display: none; }
html.dark .crm-company-logo .crm-logo-dark, html.dark-style .crm-company-logo .crm-logo-dark { display: block; }
.crm-header-brand { flex-shrink: 0; display: flex; align-items: center; justify-content: center; min-width: 58px; padding-inline: 10px; }
.app-brand-logo .crm-company-logo img { max-width: 180px; max-height: 48px; width: auto; height: auto; }
.crm-branding-preview { min-height: 88px; border: 1px solid #d1d5db; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 16px; margin-bottom: 12px; }
.crm-branding-preview img { max-width: 100%; max-height: 72px; object-fit: contain; }
.crm-branding-preview img[hidden], .crm-branding-preview span[hidden] { display: none; }
.crm-branding-preview-light { background: #fff; color: #4b5563; }
.crm-branding-preview-dark { background: #13151c; color: #d1d5db; }
.crm-branding-preview-favicon img { max-width: 32px; max-height: 32px; }
.crm-branding-field { margin-bottom: 24px; }
.crm-branding-help { display: block; font-size: 12px; margin-top: 6px; margin-bottom: 10px; }
@media (max-width: 639px) {
  .crm-header-brand { min-width: 32px; padding-inline: 0; }
  .crm-header-brand .crm-company-logo img { max-width: 90px; max-height: 30px; }
}

.crm-branding-preview-icon img { max-width: 64px; max-height: 64px; }
.crm-avatar-image { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.crm-legacy-account .crm-recovery-codes, .crm-legacy-account .crm-factor-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 16px; }
.crm-legacy-account .crm-factor-option { border: 1px solid #b8c0cc; border-radius:8px; padding:16px; display:flex; flex-direction:column; gap:8px; }
.crm-legacy-account .crm-factor-option:has(input:checked) { border-color:#1b84ff; }
.crm-legacy-account .crm-factor-option input { margin:0; }
.crm-legacy-account .crm-security-form, .crm-legacy-account .crm-enrollment { display:grid; gap:16px; margin-block:16px; }
.crm-legacy-account .crm-security-summary, .crm-legacy-account .crm-security-actions { display:flex; flex-wrap:wrap; gap:16px; align-items:center; margin-block:16px; }
.crm-legacy-account .crm-mfa-secret { display:block; padding:12px; word-break:break-all; }
.crm-legacy-account .crm-photo-form { display:flex; flex-wrap:wrap; gap:24px; }
.crm-legacy-account .crm-profile-photo { width:96px; height:96px; border-radius:50%; overflow:hidden; display:flex; align-items:center; justify-content:center; background:#e5edff; color:#1b84ff; font-size:24px; }
.crm-legacy-account .crm-profile-photo img { width:100%; height:100%; object-fit:cover; }
