.public-profile {
  --pp-accent: #047857;
  --pp-accent-hover: #065f46;
  --pp-tint: #ecfdf5;
  --pp-line: #bbdfd2;
}

.public-profile .pp-header { background: #fff; border-bottom: 1px solid #dce4e8; }
.public-profile .pp-cover { height: 224px; overflow: hidden; border-radius: 8px 8px 0 0; background: var(--pp-tint); }
.public-profile .pp-header--no-cover .pp-cover { height: 96px; border-top: 4px solid var(--pp-accent); }
.public-profile .pp-cover-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.public-profile .pp-overview { display: grid; grid-template-columns: 128px minmax(0, 1fr) minmax(240px, 390px); align-items: start; gap: 24px; padding: 0 28px 24px; }
.public-profile .pp-avatar { position: relative; margin-top: -44px; width: 128px; height: 128px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; border: 5px solid #fff; border-radius: 8px; background: var(--pp-tint); color: var(--pp-accent); font-size: 40px; font-weight: 800; box-shadow: 0 2px 5px #142b2112; }
.public-profile .pp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.public-profile .pp-identity { padding-top: 20px; min-width: 0; }
.public-profile .pp-identity h1 { margin: 0 0 10px; color: #17252d; font-size: 28px; line-height: 1.2; font-weight: 800; overflow-wrap: anywhere; letter-spacing: 0; }
.public-profile .pp-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.public-profile .pp-account-type { color: var(--pp-accent); background: var(--pp-tint); border-radius: 4px; padding: 4px 9px; font-size: 12px; font-weight: 700; }
.public-profile .pp-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; color: #586773; font-size: 12px; line-height: 1.6; }
.public-profile .pp-meta > span { display: inline-flex; align-items: baseline; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.public-profile .pp-meta svg { width: 14px; height: 14px; flex: 0 0 14px; align-self: center; }
.public-profile .pp-actions { padding-top: 22px; min-width: 0; }
.public-profile .pp-primary-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.public-profile .pp-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; height: 100%; width: 100%; padding: 11px 12px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; line-height: 1.4; font-weight: 700; text-align: center; overflow-wrap: anywhere; transition: background-color .15s, border-color .15s; }
.public-profile .pp-button--primary { background: var(--pp-accent); color: #fff; }
.public-profile .pp-button--primary:hover { background: var(--pp-accent-hover); }
.public-profile .pp-button--secondary { color: var(--pp-accent); border-color: var(--pp-line); background: #fff; }
.public-profile .pp-button--secondary:hover { background: var(--pp-tint); }
.public-profile .pp-button svg { width: 18px; height: 18px; flex: 0 0 18px; }
.public-profile .pp-secondary-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: start; gap: 0 16px; margin-top: 6px; }
.public-profile .pp-text-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 0; color: #64717d; font-size: 12px; line-height: 1.4; font-weight: 600; cursor: pointer; list-style: none; }
.public-profile .pp-text-action::-webkit-details-marker { display: none; }
.public-profile .pp-text-action:hover { color: #a32739; }
.public-profile .pp-text-action svg { width: 15px; height: 15px; flex-shrink: 0; }
.public-profile button:disabled { opacity: .6; cursor: wait; }
.public-profile .pp-button:focus-visible, .public-profile .pp-text-action:focus-visible, .public-profile .pp-review-link:focus-visible { outline: 3px solid var(--pp-accent); outline-offset: 3px; }
.public-profile .pp-report { position: relative; }
.public-profile .pp-report-form { position: absolute; top: 100%; right: 0; z-index: 25; width: 320px; max-width: calc(100vw - 48px); padding: 16px; background: #fff; border: 1px solid #e3d7d7; border-radius: 8px; box-shadow: 0 8px 24px #17252d20; }
.public-profile .pp-details { padding: 0 28px; }
.public-profile .pp-bio { margin: 0 0 24px; max-width: 760px; font-size: 14px; line-height: 1.8; color: #43535c; white-space: pre-line; overflow-wrap: anywhere; }
.public-profile .pp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 22px 0; border-top: 1px solid #e5ebee; }
.public-profile .pp-stats > div { padding: 0 24px; border-left: 1px solid #e5ebee; min-width: 0; }
.public-profile .pp-stats > div:first-child { padding-left: 0; border-left: 0; }
.public-profile .pp-stats dt { display: flex; align-items: center; gap: 7px; color: #62727b; font-size: 12px; font-weight: 600; }
.public-profile .pp-stats dt svg { width: 16px; height: 16px; color: var(--pp-accent); flex-shrink: 0; }
.public-profile .pp-stats dd { margin-top: 8px; font-size: 24px; font-weight: 800; line-height: 1.4; color: #17252d; overflow-wrap: anywhere; }
.public-profile .pp-stats dd > div { flex-wrap: wrap; gap: 2px 8px; }
.public-profile .pp-stats dd > div > span { white-space: nowrap; }
.public-profile .pp-review-link { display: block; min-height: 28px; color: var(--pp-accent); font-size: 12px; font-weight: 600; }
.public-profile .pp-review-link:hover { text-decoration: underline; }
.public-profile .pp-awards { padding: 0 0 24px; }
.public-profile .pp-accent { color: var(--pp-accent); }
.public-profile .pp-listings { scroll-margin-top: 180px; }
.public-profile .pp-listing-card { position: relative; }
.public-profile .pp-listing-favorite { position: absolute; top: 12px; right: 12px; z-index: 2; margin: 0; }
.public-profile .pp-favorite-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #cbd5e1; border-radius: 14px; background: #fff; color: #475569; box-shadow: 0 2px 8px #0f172a20; cursor: pointer; transition: color .15s, background-color .15s; }
.public-profile .pp-favorite-button svg { width: 22px; height: 22px; }
.public-profile .pp-favorite-button:hover,
.public-profile .pp-favorite-button[aria-pressed="true"] { color: #be123c; background: #fff1f2; border-color: #fda4af; }
.public-profile .pp-favorite-button:focus-visible { outline: 3px solid var(--pp-accent); outline-offset: 3px; }
.public-profile .pp-listing-link:focus-visible { outline: 3px solid var(--pp-accent); outline-offset: -3px; }
.public-profile .pp-favorite-button:disabled { opacity: .65; cursor: wait; }
body.app-theme-dark .public-profile .pp-favorite-button { background: #1e293b; border-color: #64748b; color: #e2e8f0; }
body.app-theme-dark .public-profile .pp-favorite-button:hover,
body.app-theme-dark .public-profile .pp-favorite-button[aria-pressed="true"] { background: #4c0519; color: #fda4af; border-color: #fb7185; }

@media (max-width: 1100px) {
  .public-profile .pp-overview { grid-template-columns: 112px minmax(0, 1fr); gap: 16px 20px; }
  .public-profile .pp-avatar { width: 112px; height: 112px; }
  .public-profile .pp-actions { grid-column: 2; padding-top: 0; max-width: 420px; width: 100%; }
  .public-profile .pp-secondary-actions { justify-content: flex-start; }
  .public-profile .pp-report-form { left: 0; right: auto; }
}

@media (max-width: 800px) {
  .public-profile .pp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .public-profile .pp-stats > div { padding: 0 14px; }
  .public-profile .pp-stats > div:nth-child(odd) { border-left: 0; padding-left: 0; }
}

@media (max-width: 600px) {
  .public-profile .pp-cover { height: 152px; }
  .public-profile .pp-header--no-cover .pp-cover { height: 72px; }
  .public-profile .pp-overview { grid-template-columns: 80px minmax(0, 1fr); gap: 16px 14px; padding: 0 16px 12px; }
  .public-profile .pp-avatar { width: 80px; height: 80px; margin-top: -26px; border-width: 4px; font-size: 28px; }
  .public-profile .pp-identity { padding-top: 14px; }
  .public-profile .pp-identity h1 { font-size: 22px; }
  .public-profile .pp-meta { margin-top: 10px; }
  .public-profile .pp-actions { grid-column: 1 / -1; max-width: none; }
  .public-profile .pp-button { font-size: 12px; padding: 10px; }
  .public-profile .pp-details { padding: 0 16px; }
  .public-profile .pp-stats { padding: 20px 0; }
  .public-profile .pp-stats dd { font-size: 22px; }
  .public-profile .pp-report { position: static; }
  .public-profile .pp-secondary-actions { position: relative; }
  .public-profile .pp-report-form { left: 0; right: auto; max-width: 100%; }
}
