/* Profiles and community endorsements */
.win-profiles { margin-top: 32px; scroll-margin-top: 24px; }
.wp-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 24px; }
.wp-heading h2 { font-family: Manrope, sans-serif; font-size: 28px; letter-spacing: -.6px; }
.wp-heading p { max-width: 580px; font-size: 16px; }
.wp-button { border: 1px solid #80ab8a; border-radius: 8px; background: white; color: #175b37; font: inherit; font-size: 16px; font-weight: 650; line-height: 1.4; padding: 11px 16px; min-height: 46px; cursor: pointer; text-align: center; }
.wp-button:hover { background: #e6f2de; }
.wp-button.wp-primary { background: var(--green, #006b48); color: white; border-color: var(--green, #006b48); }
.wp-button.wp-primary:hover { background: #005334; }
.wp-button.wp-endorsed { background: #d7f68b; border-color: #8fbd38; color: #164327; }
.wp-button.wp-endorsed:hover { background: #e5ffb2; }
.wp-search-label { display: block; font-size: 16px; font-weight: 650; margin-bottom: 8px; }
.wp-search { display: block; width: min(100%, 560px); padding: 13px 15px; border: 1px solid #93b49d; border-radius: 8px; color: var(--ink, #112e24); background: white; font: inherit; font-size: 16px; }
.wp-result-count { font-size: 15px; margin: 13px 0 20px; }
.wp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr)); gap: 20px; }
.wp-card { min-width: 0; padding: 24px; border: 1px solid var(--line, #d3e1d7); border-radius: 14px; background: white; display: flex; flex-direction: column; }
.wp-card-top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.wp-avatar { width: 54px; height: 54px; flex-shrink: 0; display: grid; place-items: center; border-radius: 16px; background: #d7f68b; border: 1px solid #a1c95c; color: #164327; font-weight: 750; font-size: 22px; }
.wp-identity { min-width: 0; }
.wp-card h3, .wp-view-identity h3 { margin: 0; font-family: Manrope, sans-serif; font-size: 22px; line-height: 1.3; overflow-wrap: anywhere; }
.wp-handle { margin: 4px 0 0; font-size: 16px; color: #45604d; overflow-wrap: anywhere; }
.wp-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; }
.wp-badge { display: inline-flex; background: #e6f3d7; color: #265b30; padding: 4px 9px; border-radius: 5px; font-size: 13px; font-weight: 650; }
.wp-type { font-size: 14px; color: #52685c; }
.wp-card-score { margin-top: 22px; display: grid; align-content: start; }
.wp-card-score > span { color: #325c40; font-size: 15px; font-weight: 650; }
.wp-card-score strong { color: #006b48; font-family: Manrope, sans-serif; font-size: clamp(36px, 4vw, 48px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.25; overflow-wrap: anywhere; }
.wp-card-score small { margin-top: 3px; font-size: 13px; color: #52685c; }
.wp-bio { margin: 18px 0; font-size: 16px; overflow-wrap: anywhere; white-space: pre-wrap; }
.wp-endorsement-count { color: #275f3c; font-size: 15px; font-weight: 650; margin: auto 0 18px; padding-top: 8px; }
.wp-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 18px; border-top: 1px solid #d3e1d7; }
.wp-card-actions .wp-button { flex: 1 1 auto; padding: 10px 12px; }
.wp-card-actions .wp-primary, .wp-card-actions .wp-endorsed { flex-basis: 100%; }
.wp-empty { grid-column: 1 / -1; border: 1px dashed #a5bea6; border-radius: 12px; padding: 32px; text-align: center; background: #fff; }
.wp-empty h3 { margin: 0 0 8px; font-size: 21px; }
.wp-dialog { width: min(660px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 28px; overflow: auto; }
.wp-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.wp-dialog-heading h2 { font-size: 25px; }
.wp-close { width: 44px; height: 44px; flex-shrink: 0; border: 0; background: #edf5e6; color: #25563b; font-size: 29px; line-height: 1; border-radius: 8px; }
.wp-close:hover { background: #d7edc6; }
.wp-demo-note { color: #486651; font-size: 15px; line-height: 1.5; }
.wp-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.wp-field { min-width: 0; }
.wp-field-wide { grid-column: 1 / -1; }
.wp-field label { font-size: 16px; font-weight: 650; margin-top: 20px; }
.wp-field input, .wp-field textarea, .wp-field select { display: block; width: 100%; margin-top: 8px; border: 1px solid #96b3a0; border-radius: 7px; padding: 12px; font: inherit; font-size: 16px; line-height: 1.5; color: #112e24; background: #f7faf3; }
.wp-field textarea { resize: vertical; min-height: 100px; }
.wp-field select { min-height: 50px; }
.wp-field input[aria-invalid='true'], .wp-field textarea[aria-invalid='true'], .wp-field select[aria-invalid='true'] { border-color: #a52f22; outline-color: #a52f22; }
.wp-field .wp-field-help { font-size: 13px; line-height: 1.5; color: #52685c; margin-top: 7px; }
.wp-field .wp-field-error, .wp-form-error { color: #a52f22; font-size: 14px; line-height: 1.5; }
.wp-form-error { font-weight: 650; margin-top: 20px; }
.wp-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 25px; padding-top: 20px; border-top: 1px solid #d3e1d7; }
.wp-view-identity { display: flex; gap: 16px; align-items: center; margin: 24px 0; min-width: 0; }
.wp-view-identity > div:last-child { min-width: 0; }
.wp-view-score { display: grid; padding: 22px 24px; background: #064c35; color: #e6f7dc; border-radius: 12px; }
.wp-view-score > span { font-size: 17px; font-weight: 650; }
.wp-view-score strong { font-family: Manrope, sans-serif; font-size: clamp(44px, 9vw, 68px); color: #c5f250; letter-spacing: -2px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.wp-view-score small { margin-top: 5px; font-size: 14px; color: #d0e6d7; }
.wp-detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.wp-detail-list > div { min-width: 0; }
.wp-detail-list > div:first-child, .wp-detail-list > div:nth-child(5) { grid-column: 1 / -1; }
.wp-detail-list dt { color: #52685c; font-size: 14px; margin-bottom: 4px; }
.wp-detail-list dd { margin: 0; font-size: 16px; font-weight: 550; white-space: pre-wrap; overflow-wrap: anywhere; }
.wp-dialog :is(button, input, textarea, select):focus-visible, .win-profiles :is(button, input):focus-visible { outline: 3px solid #009863; outline-offset: 3px; }
@media (max-width: 520px) {
  .wp-heading { align-items: stretch; }
  .wp-heading > .wp-button { width: 100%; }
  .wp-card { padding: 22px; }
  .wp-dialog { padding: 22px 18px; }
  .wp-form-grid, .wp-detail-list { grid-template-columns: minmax(0, 1fr); }
  .wp-field-wide, .wp-detail-list > div:first-child, .wp-detail-list > div:nth-child(5) { grid-column: auto; }
  .wp-dialog-actions > .wp-button { flex: 1 1 auto; }
}
