.profile-author {
  display: inline;
  min-width: 0;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-align: start;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.profile-author:hover { color: var(--azurite); text-decoration: underline; }
.profile-author:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.profile-dialog {
  box-sizing: border-box;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  overflow: auto;
}
.profile-dialog::backdrop { background: rgba(var(--shadow-rgb), .5); }
.profile-heading { display: flex; align-items: center; gap: 12px; }
.profile-heading h3 { flex: 1; min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 22px; }
.profile-close { flex-shrink: 0; }
.profile-bio { white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.profile-stats > div { min-width: 0; }
.profile-stats dt { color: var(--muted); font-size: 13px; }
.profile-stats dd { margin: 4px 0 0; font-size: 26px; font-weight: 600; }
.profile-stats dd { overflow-wrap: anywhere; }
.profile-avatar { min-width: 44px; min-height: 44px; }
.profile-note { color: var(--muted); font-size: 13px; line-height: 1.6; }
.profile-edit { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.profile-edit label { display: grid; gap: 8px; }
.profile-edit textarea { box-sizing: border-box; width: 100%; resize: vertical; }
.profile-edit button { justify-self: start; }
.profile-status { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 400px) {
  .profile-dialog { padding: 16px; }
  .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
