.fh-user-source { min-width: 8rem; max-width: 16rem; font-size: 12px; color: #374151; overflow-wrap: anywhere; }
.fh-user-profile-muted { margin-top: 4px; color: #9ca3af; }
.fh-user-note-preview { margin-top: 6px; color: #6b7280; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fh-user-profile-edit { margin-top: 8px; padding: 4px 8px; border-radius: 6px; background: #eff6ff; color: #1d4ed8; white-space: nowrap; }
.fh-user-profile-edit:hover { background: #dbeafe; }
.fh-user-profile-dialog { box-sizing: border-box; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto; border: 1px solid #e5e7eb; border-radius: 16px; background: white; color: #111827; box-shadow: 0 24px 80px #11182726; text-align: left; white-space: normal; }
.fh-user-profile-dialog::backdrop { background: #11182766; }
.fh-user-profile-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 18px; border-bottom: 1px solid #e5e7eb; }
.fh-user-profile-header h2 { margin: 0; font-size: 18px; font-weight: 600; }
.fh-user-profile-header p { margin: 6px 0 0; font-size: 13px; color: #6b7280; overflow-wrap: anywhere; }
.fh-user-profile-body { padding: 20px 24px; }
.fh-user-profile-body label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.fh-user-profile-body input, .fh-user-profile-body textarea { box-sizing: border-box; width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; font-size: 14px; background: white; color: #111827; }
.fh-user-profile-body textarea { resize: vertical; }
.fh-user-profile-dialog :focus-visible, .fh-user-profile-edit:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.fh-user-profile-help { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: #6b7280; }
.fh-user-profile-origin { padding: 12px; margin: 16px 0 20px; border-radius: 8px; background: #f9fafb; font-size: 12px; color: #6b7280; }
.fh-user-profile-origin p { margin: 4px 0 0; color: #374151; overflow-wrap: anywhere; }
.fh-user-profile-error { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: #fef2f2; font-size: 13px; color: #b91c1c; }
.fh-user-profile-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid #e5e7eb; }
.fh-user-profile-primary, .fh-user-profile-secondary { padding: 8px 16px; border-radius: 8px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.fh-user-profile-primary { border: 1px solid #2563eb; background: #2563eb; color: white; }
.fh-user-profile-primary:hover { background: #1d4ed8; }
.fh-user-profile-secondary { border: 1px solid #d1d5db; background: white; color: #4b5563; }
.fh-user-profile-secondary:hover { background: #f9fafb; }
.fh-user-profile-dialog button:disabled { opacity: .55; cursor: wait; }
@media (max-width: 480px) {
  .fh-user-profile-header, .fh-user-profile-body { padding: 16px; }
  .fh-user-profile-footer { padding: 14px 16px; }
  .fh-user-source { max-width: 100%; }
}
