.profile-menu-avatar, .account-email-trigger .profile-menu-avatar { display: block; width: 24px; height: 24px; flex: 0 0 24px; object-fit: cover; border-radius: 50%; }
.post-profile-author { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: var(--ink); }
.post-profile-author img { display: block; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; object-fit: cover; }
.post-profile-author:hover { text-decoration: underline; text-underline-offset: 3px; }
.account-sidebar-user.profile-account-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 12px 11px; }
.account-sidebar-user .profile-account-avatar { display: block; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; object-fit: cover; }
.account-sidebar-user .profile-account-home { display: inline-flex; grid-column: 1 / -1; align-items: center; justify-self: start; gap: 5px; margin-top: 0; font-size: 12px; color: var(--muted); }
.profile-editor { grid-column: 1 / -1; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); }
.profile-editor-heading, .user-profile-posts-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.profile-eyebrow { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.profile-editor-heading h2, .user-profile-posts-heading h2 { margin: 0; font-size: 19px; line-height: 1.4; letter-spacing: -.02em; }
.profile-preview-link { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.profile-preview-link:hover { color: var(--ink); }
.profile-editor .profile-editor-intro { margin: 10px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.profile-editor form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .8fr); align-items: start; gap: 20px 40px; }
.profile-editor-preview { display: flex; align-items: center; gap: 14px; grid-column: 1 / -1; }
.profile-editor-preview > img { display: block; width: 58px; height: 58px; flex: 0 0 58px; object-fit: cover; border-radius: 50%; }
.profile-editor-preview strong { display: block; font-size: 16px; font-weight: 650; overflow-wrap: anywhere; }
.profile-editor-preview small { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }
.profile-avatar-picker { grid-column: 1; grid-row: span 3; min-width: 0; margin: 0; padding: 0; border: 0; }
.profile-avatar-picker legend { margin-bottom: 11px; padding: 0; font-size: 13px; font-weight: 600; }
.profile-avatar-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 52px)); gap: 10px; }
.profile-avatar-grid button { display: block; aspect-ratio: 1; width: 100%; padding: 3px; border: 2px solid transparent; border-radius: 50%; background: transparent; transition: border-color .15s, transform .15s; }
.profile-avatar-grid button img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.profile-avatar-grid button:hover:not(:disabled) { transform: translateY(-2px); }
.profile-avatar-grid button.selected { border-color: var(--ink); }
.profile-avatar-picker:disabled { opacity: .65; }
.profile-avatar-grid button:focus-visible, .profile-preview-link:focus-visible, .user-profile-page a:focus-visible, .user-profile-page button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.profile-editor .profile-name-field { display: grid; gap: 8px; grid-column: 2; font-size: 13px; }
.profile-name-field > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; }
.profile-name-field small { color: var(--muted); font-weight: 400; font-size: 11px; }
.profile-editor input { width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); outline: none; }
.profile-editor input:focus { border-color: var(--teal); box-shadow: 0 0 0 2px color-mix(in srgb, var(--teal) 12%, transparent); }
.profile-editor input[aria-invalid="true"] { border-color: #c85f50; }
.profile-editor .profile-form-error, .profile-editor .profile-form-success { grid-column: 2; margin: 0; font-size: 12px; line-height: 1.6; }
.profile-editor .profile-form-error { color: #c35a48; }
.profile-editor .profile-form-success { color: var(--teal); }
.profile-editor .profile-save-button { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; min-width: 116px; padding: 10px 18px; border: 0; border-radius: 7px; color: var(--paper); background: var(--ink); font-size: 13px; }
.profile-save-button:disabled { opacity: .55; cursor: default; }
.user-profile-page { width: 100%; max-width: 1064px; min-height: 65vh; margin: 0 auto; padding: 32px 28px 72px; color: var(--ink); }
.user-profile-back { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 22px; padding: 3px 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.user-profile-back:hover { color: var(--ink); }
.user-profile-hero { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.user-profile-cover { height: 114px; border-bottom: 1px solid var(--line); background: linear-gradient(115deg, color-mix(in srgb, var(--teal) 18%, var(--paper)), var(--paper) 60%, color-mix(in srgb, var(--yellow) 12%, var(--paper))); }
.user-profile-hero-content { position: relative; display: flex; align-items: flex-start; gap: 22px; padding: 0 32px 29px; }
.user-profile-avatar { display: block; width: 100px; height: 100px; flex: 0 0 100px; margin-top: -31px; object-fit: cover; border: 5px solid var(--card); border-radius: 50%; }
.user-profile-heading { min-width: 0; padding-top: 21px; }
.user-profile-heading h1 { margin: 0; font-size: clamp(23px, 3vw, 29px); font-weight: 700; letter-spacing: -.03em; overflow-wrap: anywhere; }
.user-profile-heading > p { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin: 11px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.user-profile-heading > p span { display: inline-flex; align-items: center; gap: 5px; }
.user-profile-guid { overflow-wrap: anywhere; word-break: break-word; }
.user-profile-edit { flex: 0 0 auto; margin: 24px 0 0 auto; padding: 9px 13px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; }
.user-profile-posts { margin-top: 28px; padding: 26px 30px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.user-profile-posts-heading > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.user-profile-tabs { display: flex; gap: 23px; margin-top: 25px; border-bottom: 1px solid var(--line); }
.user-profile-tabs button { position: relative; padding: 0 0 13px; border: 0; background: none; color: var(--muted); font-size: 13px; }
.user-profile-tabs button.active { color: var(--ink); font-weight: 650; }
.user-profile-tabs button.active:after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--ink); }
.user-profile-post { display: flex; align-items: flex-start; gap: 15px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.user-profile-post:last-child { border-bottom: 0; }
.user-profile-post-icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; color: var(--teal); background: var(--paper); }
.user-profile-post-body { min-width: 0; flex: 1; }
.user-profile-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 9px; color: var(--muted); font-size: 11px; }
.user-profile-post-body h3 { margin: 0; color: var(--ink); font-size: 15px; font-weight: 650; line-height: 1.6; overflow-wrap: anywhere; }
.user-profile-post-body h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.user-profile-post-body > p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.user-profile-post-link { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 6px; color: var(--muted); }
.user-profile-post-link:hover { color: var(--ink); background: var(--paper); }
.user-profile-status { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 280px; color: var(--muted); font-size: 13px; }
.user-profile-status.compact { min-height: 170px; }
.user-profile-status.is-error, .user-profile-inline-error { color: #c35a48; }
.user-profile-inline-error { display: flex; align-items: center; gap: 8px; margin: 20px 0; font-size: 12px; }
.user-profile-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; min-height: 200px; color: var(--muted); font-size: 13px; }
.user-profile-empty p { margin: 0; }
.user-profile-load-more { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 13px auto 7px; padding: 10px 20px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--ink); font-size: 12px; }
.user-profile-load-more:disabled { opacity: .6; cursor: wait; }
.profile-spin { flex: 0 0 auto; animation: profile-spin .8s linear infinite; }
@keyframes profile-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .profile-editor { padding: 22px; }
  .profile-editor form { grid-template-columns: 1fr; gap: 20px; }
  .profile-avatar-picker { grid-row: auto; }
  .profile-editor .profile-name-field, .profile-editor .profile-form-error, .profile-editor .profile-form-success, .profile-editor .profile-save-button { grid-column: 1; }
  .profile-avatar-grid { grid-template-columns: repeat(6, minmax(0, 52px)); }
  .user-profile-page { padding: 24px 18px 48px; }
  .user-profile-hero-content { gap: 16px; padding: 0 20px 24px; flex-wrap: wrap; }
  .user-profile-heading { flex: 1; min-width: 160px; }
  .user-profile-heading > p { display: grid; }
  .user-profile-edit { margin: 0 0 0 116px; }
  .user-profile-posts { padding: 22px 20px 15px; }
}
@media (max-width: 430px) {
  .profile-editor { padding: 18px; }
  .profile-avatar-grid { gap: 7px; }
  .profile-editor-preview > img { width: 52px; height: 52px; flex-basis: 52px; }
  .user-profile-cover { height: 96px; }
  .user-profile-avatar { width: 78px; height: 78px; flex-basis: 78px; margin-top: -23px; }
  .user-profile-hero-content { column-gap: 13px; padding: 0 17px 20px; }
  .user-profile-heading { min-width: 130px; padding-top: 16px; }
  .user-profile-edit { margin-left: 91px; }
  .user-profile-posts { padding-left: 17px; padding-right: 17px; }
  .user-profile-post { gap: 11px; }
  .user-profile-post-icon { flex-basis: 31px; height: 31px; border-radius: 8px; }
  .user-profile-post-link { flex-basis: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-avatar-grid button { transition: none; }
  .profile-spin { animation: none; }
}
