.public-profile { padding-top: 8px; }
.profile-identity { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 4px 24px; align-items: start; padding: 12px 0 28px; }
.profile-avatar { grid-row: 1 / span 2; width: 88px; height: 88px; display: grid; place-items: center; background: var(--soft); color: var(--muted); border: 1px solid var(--line); border-radius: 10px; }
.profile-avatar svg { width: 52px; height: 52px; }
.profile-identity h1 { margin: 4px 0 10px; overflow-wrap: anywhere; }
.profile-eyebrow { margin: 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.profile-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
.profile-member-since { margin: 6px 0 8px; font-size: 13px; color: var(--muted); }
.profile-header-actions { grid-column: 2; display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.profile-header-actions .button { min-height: 44px; padding: 8px 16px; }
.profile-recommendation-total { display: flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.profile-recommendation-total strong { font-size: 24px; line-height: 1.2; }
.profile-recommendation-total span { font-size: 14px; }
.profile-tabs { display: flex; gap: 0; flex-wrap: nowrap; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.profile-tabs > a { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 3px solid transparent; text-decoration: none; white-space: nowrap; color: var(--muted); }
.profile-tabs > a[aria-current] { border-bottom-color: var(--solid); color: var(--ink); font-weight: 650; }
.profile-tabs > a span { font-size: 12px; background: var(--soft); padding: 0 7px; border-radius: 12px; }
.profile-overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.profile-block { min-width: 0; border: 1px solid var(--line); border-radius: 7px; padding: 24px; margin: 0 0 20px; }
.profile-block h2 { margin: 0 0 20px; font-size: 20px; line-height: 1.3; }
.profile-block h3 { margin: 0; font-size: 16px; }
.profile-facts { grid-template-columns: 150px minmax(0, 1fr); gap: 12px 24px; margin: 0; font-size: 14px; }
.profile-facts dd { overflow-wrap: anywhere; }
.profile-about-text { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.profile-about-text p { margin: 10px 0 0; }
.profile-contact-item { display: grid; gap: 6px; margin-top: 20px; }
.profile-contact-item > span { color: var(--muted); font-size: 13px; }
.profile-contact-item > a { overflow-wrap: anywhere; }
.profile-contact-item:first-of-type > a { font-size: 19px; text-decoration: none; }
.profile-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.profile-section-heading h2 { margin: 0; }
.profile-section-heading > a { white-space: nowrap; font-size: 13px; }
.profile-listing-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-listing-totals > a { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-left: 1px solid var(--line); text-decoration: none; }
.profile-listing-totals > a:first-child { border-left: 0; padding-left: 0; }
.profile-listing-totals strong { font-size: 28px; line-height: 1.2; }
.profile-listing-totals span { font-size: 14px; }
.profile-empty { margin: 12px 0; color: var(--muted); font-size: 14px; }
.profile-listing-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.profile-listing-tabs > a { padding: 8px 12px; font-size: 14px; border-radius: 5px; text-decoration: none; }
.profile-listing-tabs > a[aria-current] { background: var(--soft); font-weight: 650; }
.profile-listings > .cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.profile-listings .cards h3 { font-size: 17px; }
.recommendation-entry { padding: 18px 0; border-bottom: 1px solid var(--line); }
.recommendation-entry:last-of-type { border-bottom: 0; padding-bottom: 0; }
.recommendation-byline { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; }
.recommendation-byline time { font-size: 12px; color: var(--muted); }
.recommendation-entry p { margin: 10px 0 0; font-size: 14px; }
.recommendation-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--paper); box-shadow: 0 20px 80px #0006; }
.recommendation-dialog:not([open]) { display: none; }
.recommendation-dialog::backdrop { background: #0009; }
.recommendation-dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.recommendation-dialog-heading h2 { margin: 0; font-size: 22px; }
.recommendation-dialog-heading button { min-width: 44px; font-size: 26px; line-height: 1; }
.recommendation-dialog-participant { margin: 8px 0 16px; color: var(--muted); }
.recommendation-dialog-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
body.recommendation-modal-open { overflow: hidden; }
@media (max-width: 420px) { .recommendation-dialog { padding: 18px; } }
@media (max-width: 900px) {
  .profile-overview-grid { grid-template-columns: minmax(0, 1fr) 290px; }
  .profile-facts { grid-template-columns: 110px minmax(0, 1fr); gap: 10px 16px; }
}
@media (max-width: 760px) {
  .profile-identity { grid-template-columns: 56px minmax(0, 1fr); align-items: start; gap: 12px 16px; padding-bottom: 20px; }
  .profile-avatar { grid-row: 1; width: 56px; height: 56px; border-radius: 7px; }
  .profile-avatar svg { width: 34px; height: 34px; }
  .profile-identity h1 { font-size: 23px; margin-top: 4px; }
  .profile-meta { font-size: 13px; gap: 4px; }
  .profile-meta > span { width: 100%; }
  .profile-header-actions { grid-column: 1 / -1; gap: 8px 16px; }
  .profile-recommendation-total strong { font-size: 22px; }
  .profile-tabs > a { padding: 12px 10px; font-size: 13px; gap: 5px; }
  .profile-overview-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .profile-block { padding: 18px; }
  .profile-facts { grid-template-columns: minmax(90px, .65fr) minmax(0, 1fr); }
  .profile-facts dd { margin: 0; }
  .profile-listing-totals { grid-template-columns: minmax(0, 1fr); }
  .profile-listing-totals > a { border-left: 0; border-top: 1px solid var(--line); padding: 12px 0; }
  .profile-listing-totals > a:first-child { border-top: 0; }
  .profile-listing-totals strong { width: 36px; font-size: 24px; }
  .profile-block h2 { font-size: 18px; }
  .profile-section-heading { align-items: start; }
}
