.hp-profile-page{--hp-profile-grid-side:max(16px,calc((100vw - 900px)/2));background:#fbfaf7}.hp-profile-topbar{position:sticky;top:0;z-index:60;min-height:72px;padding:0 var(--hp-profile-grid-side);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;border-bottom:1px solid var(--hp-line);background:color-mix(in srgb,#fbfaf7 94%,transparent);backdrop-filter:blur(14px)}.hp-profile-topbar__left{display:inline-flex;align-items:center;gap:12px;justify-self:start}.hp-profile-topbar>strong{font-size:1.05rem;text-align:center}.hp-profile-topbar>.site-more-menu{width:32px;justify-self:end}.hp-profile-icon-button{width:42px;height:42px;padding:0;display:grid;place-items:center;border:0;background:transparent;color:var(--hp-text);border-radius:50%;cursor:pointer}.hp-profile-icon-button:hover{background:var(--hp-surface-2)}.hp-profile-icon-button svg{width:23px;height:23px}.hp-profile-shell{min-height:calc(100vh - 72px);padding-bottom:64px}.hp-profile-flash{width:min(720px,calc(100% - 32px));margin:18px auto 0;padding:11px 14px;border-radius:12px;font-size:.93rem}.hp-profile-flash.is-success{background:#ecfdf3;color:#166534}.hp-profile-flash.is-error{background:#fff1f2;color:#9f1239}.hp-profile-hero{width:min(760px,calc(100% - 32px));margin:0 auto;display:flex;flex-direction:column;align-items:center;text-align:center}.hp-profile-avatar-wrap{position:relative}.hp-profile-avatar-image,.hp-profile-avatar-initial{border-radius:50%;border:2px dashed color-mix(in srgb,var(--hp-accent) 54%,#fff);background:var(--hp-surface);display:grid;place-items:center;object-fit:cover;font-weight:var(--hp-font-weight-strong);color:var(--hp-accent)}.hp-profile-avatar-edit{position:absolute;border:3px solid #fff;border-radius:50%;display:grid;place-items:center;background:var(--hp-accent);color:#fff;box-shadow:0 2px 7px rgba(0,0,0,.18)}.hp-profile-hero h1{margin:0}.hp-profile-username{margin:5px 0 0;color:var(--hp-muted)}.hp-profile-bio{max-width:560px;margin:12px auto 0;color:color-mix(in srgb,var(--hp-text) 72%,var(--hp-accent))}.hp-profile-stats{margin-top:24px;display:flex;justify-content:center;gap:26px}.hp-profile-stats span{min-width:116px;display:flex;flex-direction:column;gap:2px;color:var(--hp-muted);font-size:.88rem}.hp-profile-stats strong{color:var(--hp-text);font-size:1.25rem}.hp-profile-actions{display:flex;align-items:center;justify-content:center}.hp-profile-edit-button,.hp-profile-create-button,.hp-profile-form-submit{min-height:44px;border-radius:999px;padding:0 24px;display:inline-flex;align-items:center;justify-content:center;font-weight:var(--hp-font-weight-strong);cursor:pointer}.hp-profile-edit-button{border:1px solid var(--hp-line);background:var(--hp-surface);color:var(--hp-text)}.hp-profile-create-button,.hp-profile-form-submit{border:1px solid var(--hp-accent);background:var(--hp-accent);color:#fff}.hp-profile-create-button--wide{width:100%;margin-top:16px}.hp-profile-content{border-top:1px solid var(--hp-line)}.hp-profile-tabs{display:flex;align-items:center;justify-content:center;gap:28px;margin:0 auto 28px}.hp-profile-tab{position:relative;padding:15px 4px 11px;border:0;background:transparent;color:var(--hp-text);font-weight:var(--hp-font-weight-strong);font-size:1rem;cursor:pointer}.hp-profile-tab::after{content:'';position:absolute;left:0;right:0;bottom:3px;height:3px;border-radius:3px;background:transparent}.hp-profile-tab.is-active::after{background:var(--hp-accent)}.hp-profile-panel{display:none}.hp-profile-panel.is-active{display:block}.hp-profile-saved-head h2{margin:0 0 14px;font-size:1.15rem}.hp-profile-saved-list{display:grid;align-items:start}.hp-profile-saved-more{display:block;margin-top:16px}.hp-profile-edit-dialog{width:min(620px,calc(100vw - 28px))}.hp-profile-edit-form{display:grid;gap:14px;margin-top:16px}.hp-profile-edit-form>label{display:grid;gap:6px}.hp-profile-edit-form label>span,.hp-profile-avatar-options legend{font-weight:var(--hp-font-weight-strong);font-size:.9rem}.hp-profile-edit-form input,.hp-profile-edit-form textarea{width:100%;border:1px solid var(--hp-line);border-radius:12px;padding:11px 12px;background:var(--hp-surface);color:var(--hp-text);font:inherit}.hp-profile-avatar-options{border:0;padding:0;margin:2px 0 0}.hp-profile-avatar-options>div{margin-top:9px;display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.hp-profile-avatar-option{position:relative;cursor:pointer}.hp-profile-avatar-option input{position:absolute;opacity:0;pointer-events:none}.hp-profile-avatar-option img{width:62px;max-width:100%;aspect-ratio:1;object-fit:cover;border-radius:50%;border:3px solid transparent;transition:border-color .15s ease,transform .15s ease}.hp-profile-avatar-option input:checked+img{border-color:var(--hp-accent);transform:scale(.96)}.hp-profile-avatar-options small{display:block;margin-top:8px;color:var(--hp-muted)}.hp-profile-form-submit{margin-top:4px}.hp-profile-create-dialog{width:min(520px,calc(100vw - 28px));text-align:center}.hp-profile-create-dialog .hp-create-post-icon{margin-left:auto;margin-right:auto}.hp-profile-create-dialog .hp-submission-email{display:block;margin:14px 0 0}@media (max-width: 1024px) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))), (hover: none) and (pointer: coarse) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){.hp-profile-page{background:#1e2529;color:#fff}.hp-profile-topbar{min-height:62px;padding-top:0;padding-bottom:0;background:rgba(30,37,41,.94);border-color:rgba(255,255,255,.10);color:#fff}.hp-profile-icon-button{color:#fff}.hp-profile-avatar-image,.hp-profile-avatar-initial{background:#161b1e;border-color:color-mix(in srgb,var(--hp-accent) 68%,#fff);color:#fff}.hp-profile-avatar-edit{border-color:#1e2529}.hp-profile-username,.hp-profile-stats span,.hp-profile-saved-empty{color:rgba(255,255,255,.70)}.hp-profile-bio{color:rgba(255,255,255,.76)}.hp-profile-stats strong,.hp-profile-tab,.hp-profile-saved-head h2{color:#fff}.hp-profile-content{border-color:rgba(255,255,255,.10)}.hp-profile-edit-button{background:#15191c;border-color:rgba(255,255,255,.18);color:#fff}.hp-profile-avatar-options>div{grid-template-columns:repeat(3,1fr)}}.hp-profile-topbar__spacer{width:42px;height:42px;justify-self:end}.hp-profile-hero{padding:26px 0 22px}.hp-profile-avatar-wrap{width:112px;height:112px;margin-bottom:12px}.hp-profile-avatar-image,.hp-profile-avatar-initial{width:112px;height:112px;font-size:2.65rem}.hp-profile-avatar-edit{right:4px;bottom:5px;width:34px;height:34px;border-width:2px}.hp-profile-avatar-edit svg{width:17px;height:17px}.hp-profile-hero h1{font-size:1.48rem;line-height:1.16}.hp-profile-username{margin-top:3px;font-size:.9rem}.hp-profile-bio{margin-top:8px;font-size:.9rem;line-height:1.45}.hp-profile-actions{margin-top:15px;gap:9px}.hp-profile-edit-button,.hp-profile-create-button{min-height:38px;padding:0 18px;font-size:.88rem}.hp-profile-content{padding-top:4px}.hp-profile-tabs{margin-bottom:20px}.hp-profile-saved-head,.hp-profile-saved-list,.hp-profile-saved-empty,.hp-profile-saved-more,.hp-profile-created-empty{width:min(900px,calc(100% - 32px));margin-left:auto;margin-right:auto}.hp-profile-saved-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:17px 14px}.hp-profile-saved-list .hp-saved-collection-grid-card{min-width:0;margin:0}.hp-profile-saved-list .hp-saved-collection-grid-card__button{width:100%;min-width:0;display:block;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.hp-profile-saved-list .hp-saved-collection-grid-card__cover{width:100%;aspect-ratio:4 / 5;display:grid;place-items:center;overflow:hidden;border-radius:13px;background:var(--hp-surface-2)}.hp-profile-saved-list .hp-saved-collection-grid-card__cover img{width:100%;height:100%;display:block;object-fit:cover}.hp-profile-saved-list .hp-saved-collection-grid-card__fallback{font-size:clamp(1.8rem,4vw,2.5rem)}.hp-profile-saved-list .hp-saved-collection-grid-card__title{display:block;min-width:0;margin-top:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit;font-size:.9rem;line-height:1.35;font-weight:var(--hp-font-weight-strong)}.hp-profile-saved-list .hp-saved-collection-grid-card__meta{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:3px;color:var(--hp-muted)}.hp-profile-saved-list .hp-saved-collection-grid-card__meta small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit;font-size:.71rem;line-height:1.3;font-weight:var(--hp-font-weight-medium)}.hp-profile-saved-list .hp-saved-collection-grid-card__meta small:first-child{flex:1 1 auto}.hp-profile-saved-list .hp-saved-collection-grid-card__meta small:last-child{flex:0 0 auto;text-align:right}.hp-profile-created-empty{margin-top:8px;margin-bottom:0;padding:28px 0;color:var(--hp-muted);text-align:center;font-size:.94rem}@media (max-width: 1024px) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))), (hover: none) and (pointer: coarse) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){.hp-profile-hero{padding:20px 0 17px}.hp-profile-avatar-wrap,.hp-profile-avatar-image,.hp-profile-avatar-initial{width:94px;height:94px}.hp-profile-avatar-wrap{margin-bottom:10px}.hp-profile-avatar-initial{font-size:2.25rem}.hp-profile-avatar-edit{width:30px;height:30px;right:2px;bottom:3px}.hp-profile-avatar-edit svg{width:15px;height:15px}.hp-profile-hero h1{font-size:1.34rem}.hp-profile-username{font-size:.84rem}.hp-profile-bio{max-width:520px;margin-top:6px;font-size:.84rem;line-height:1.4}.hp-profile-actions{margin-top:12px;gap:8px}.hp-profile-edit-button,.hp-profile-create-button{min-height:36px;padding-inline:14px;font-size:.84rem}.hp-profile-tabs{gap:24px;margin-bottom:15px}.hp-profile-tab{padding-top:11px;padding-bottom:9px;font-size:.94rem}.hp-profile-saved-head h2{margin-bottom:11px;font-size:1.05rem}.hp-profile-saved-list .hp-saved-collection-grid-card__meta{color:rgba(255,255,255,.66)}.hp-profile-created-empty{color:rgba(255,255,255,.68)}}@media (max-width: 639px){.hp-profile-hero{padding-top:17px}.hp-profile-avatar-wrap,.hp-profile-avatar-image,.hp-profile-avatar-initial{width:86px;height:86px}.hp-profile-hero h1{font-size:1.28rem}.hp-profile-actions{width:auto;max-width:calc(100% - 24px)}.hp-profile-edit-button,.hp-profile-create-button{flex:0 1 auto;min-width:0;padding-inline:13px}.hp-profile-saved-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 11px}.hp-profile-saved-list .hp-saved-collection-grid-card__title{font-size:.86rem}.hp-profile-saved-list .hp-saved-collection-grid-card__meta small{font-size:.68rem}}@media (max-width: 1024px) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))), (hover: none) and (pointer: coarse) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){#profile-edit-modal.hp-overlay-keyboard-scroll>.hp-profile-edit-dialog{width:min(100%,620px)!important}}

/* v0.5.125 — profile Create Post action aligns to the Saved grid edge in both tabs. */
.hp-profile-panel-head{width:min(900px,calc(100% - 32px));min-height:38px;margin-left:auto;margin-right:auto;margin-bottom:14px;display:flex;align-items:center;justify-content:space-between}
.hp-profile-panel-head h2{margin:0!important}
.hp-profile-created-head{justify-content:flex-end}
@media (max-width:1024px) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))), (hover:none) and (pointer:coarse) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){.hp-profile-panel-head{min-height:36px;margin-bottom:11px}}

/* v0.5.126 — remove the divider below the profile bio, lift profile content 20px, and keep desktop tab switching width-stable. */
.hp-profile-content{border-top:0;margin-top:-20px}
@media (min-width:1025px) and (hover:hover) and (pointer:fine), (any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px){body.hp-profile-page{overflow-y:scroll}}
/* v0.5.127 — move the Back control 16px left on profile headers. */
.hp-profile-topbar__left{transform:translateX(-16px)}

/* v0.5.132 — public Pattern-author pages. */
.hp-profile-topbar>strong{min-width:0;max-width:min(62vw,620px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.2}
.hp-profile-topbar__spacer{width:42px;height:42px;justify-self:end}
.hp-author-profile{padding-bottom:72px}
.hp-author-hero{padding-bottom:18px}
.hp-author-hero .hp-profile-avatar-wrap{margin-bottom:12px}
.hp-author-stats{display:flex;align-items:center;justify-content:center;gap:8px;min-height:22px;margin:10px 0 0;color:#000;font-size:.9rem;line-height:1.35}
.hp-author-stats strong{color:inherit;font-weight:var(--hp-font-weight-strong)}
.hp-author-stats__separator{opacity:1}
.hp-author-hero .hp-profile-bio{margin-top:8px}
.hp-author-content{margin-top:0}
.hp-author-content .hp-profile-tabs{margin-bottom:18px}
.hp-author-posts-head,.hp-author-patterns,.hp-author-empty{width:min(1240px,calc(100% - 32px));margin-left:auto;margin-right:auto}
.hp-author-posts-head{min-height:42px;margin-bottom:15px}
.hp-author-posts-head h2{margin:0;color:var(--hp-text);font-size:1.08rem;line-height:1.3}
.hp-author-follow-button{min-width:112px;min-height:40px;padding:0 20px;border:1px solid var(--hp-accent);border-radius:999px;background:var(--hp-accent);color:#fff;font:inherit;font-size:.88rem;font-weight:var(--hp-font-weight-strong);line-height:1;cursor:pointer;transition:background-color .16s ease,color .16s ease,border-color .16s ease,opacity .16s ease}
.hp-author-follow-button.is-following{border-color:#111;background:#111;color:#fff}
.hp-author-follow-button:disabled{cursor:wait}
.hp-author-follow-button.is-loading{opacity:.68}
.hp-author-follow-button:focus-visible{outline:2px solid var(--hp-accent);outline-offset:3px}
.hp-author-patterns .hp-infinite-more{display:table;margin:24px auto 0;padding:9px 17px;border:1px solid var(--hp-line);border-radius:999px;background:var(--hp-surface);color:var(--hp-text)}
.hp-author-patterns .hp-infinite-sentinel{height:1px}
.hp-author-empty{box-sizing:border-box;margin-top:0;margin-bottom:0;padding:34px 0;color:var(--hp-muted);text-align:center;font-size:.94rem}
body.tax-hp_pattern_author .pattern-card{overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none}
body.tax-hp_pattern_author .pattern-card:hover{box-shadow:none}
body.tax-hp_pattern_author .pattern-card__media{overflow:hidden;border-radius:14px}
body.tax-hp_pattern_author .pattern-card__body{padding:9px 2px 2px;border:0;background:transparent}
@media (max-width:1024px) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))), (hover:none) and (pointer:coarse) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){
  .hp-profile-topbar>strong{max-width:calc(100vw - 124px)}
  .hp-author-stats{color:#fff;font-size:.84rem}
  .hp-author-stats strong{color:#fff}
  .hp-author-posts-head h2{color:#fff}
  .hp-author-follow-button.is-following{border-color:#fff;background:#fff;color:#111}
  .hp-author-patterns .hp-infinite-more{border-color:rgba(255,255,255,.2);background:#15191c;color:#fff}
  .hp-author-empty{color:rgba(255,255,255,.68)}
}
@media (max-width:639px){
  .hp-author-posts-head,.hp-author-patterns,.hp-author-empty{width:calc(100% - 20px)}
  .hp-author-posts-head{min-height:38px;margin-bottom:12px}
  .hp-author-posts-head h2{font-size:.98rem}
  .hp-author-follow-button{min-width:98px;min-height:36px;padding-inline:15px;font-size:.82rem}
  .hp-author-stats{gap:6px}
}

/* v0.5.133 — account Created feed uses the Home masonry renderer.
   v0.5.135 — Saved keeps the v0.5.132 collection cards at 4/3/2 columns.
   v0.5.136 — page-only namespace avoids the compact account card selector. */
.hp-profile-account-page{--hp-account-content-heading-size:1.15rem}
.hp-account-stats{margin-top:10px}
.hp-profile-account-page .hp-profile-saved-head,
.hp-profile-account-page .hp-profile-saved-list,
.hp-profile-account-page .hp-profile-created-head,
.hp-profile-account-page .hp-profile-created-patterns,
.hp-profile-account-page .hp-profile-created-empty{width:min(1240px,calc(100% - 32px));margin-left:auto;margin-right:auto}
.hp-profile-account-page .hp-profile-created-head{justify-content:space-between}
.hp-profile-account-page .hp-profile-panel-head h2{color:var(--hp-text);font-size:var(--hp-account-content-heading-size);line-height:1.3}
.hp-profile-account-page .hp-profile-create-button{font-size:var(--hp-account-content-heading-size);line-height:1}
.hp-profile-account-page .hp-profile-saved-list{grid-template-columns:repeat(4,minmax(0,1fr))}
.hp-profile-account-page [data-profile-pattern-grid]{--hp-grid-columns:4}
.hp-profile-created-patterns .hp-infinite-more{display:table;margin:24px auto 0;padding:9px 17px;border:1px solid var(--hp-line);border-radius:999px;background:var(--hp-surface);color:var(--hp-text)}
body.hp-profile-page .hp-profile-account-page .pattern-card{overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none}
body.hp-profile-page .hp-profile-account-page .pattern-card:hover{box-shadow:none}
body.hp-profile-page .hp-profile-account-page .pattern-card__media{overflow:hidden;border-radius:14px}
body.hp-profile-page .hp-profile-account-page .pattern-card__body{padding:9px 2px 2px;border:0;background:transparent}

/* Public Creator polish. */
body.tax-hp_pattern_author{--hp-profile-grid-side:max(16px,calc((100vw - 1240px)/2))}
body.tax-hp_pattern_author .hp-profile-topbar__left{transform:none}
.hp-author-profile .hp-profile-avatar-image{border:0}
.hp-author-follow-button{font-size:1.08rem}

@media (max-width:1024px) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))), (hover:none) and (pointer:coarse) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){
  .hp-profile-account-page{--hp-account-content-heading-size:1.05rem}
  .hp-profile-account-page .hp-profile-saved-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hp-profile-account-page [data-profile-pattern-grid]{--hp-grid-columns:3}
  .hp-profile-account-page .hp-profile-panel-head h2{color:#fff}
  .hp-profile-created-patterns .hp-infinite-more{border-color:rgba(255,255,255,.2);background:#15191c;color:#fff}
}
@media (max-width:639px){
  .hp-profile-account-page .hp-profile-saved-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hp-profile-account-page [data-profile-pattern-grid]{--hp-grid-columns:2}
  body.tax-hp_pattern_author{--hp-profile-grid-side:10px}
  .hp-profile-account-page .hp-profile-created-head,
  .hp-profile-account-page .hp-profile-created-patterns,
  .hp-profile-account-page .hp-profile-created-empty{width:calc(100% - 20px)}
  .hp-author-follow-button{font-size:.98rem}
}

/* v0.5.138 — Account and Creator grids use the Home page width, gutters and
   card gap. Created feeds keep Home's responsive columns. */
.hp-profile-page,
body.tax-hp_pattern_author{
  --hp-profile-grid-side:max(16px,calc((100vw - var(--hp-container))/2));
}
.hp-profile-topbar__left{transform:none}
.hp-profile-account-page .hp-profile-saved-head,
.hp-profile-account-page .hp-profile-saved-list,
.hp-profile-account-page .hp-profile-saved-empty,
.hp-profile-account-page .hp-profile-saved-more,
.hp-profile-account-page .hp-profile-created-head,
.hp-profile-account-page .hp-profile-created-patterns,
.hp-profile-account-page .hp-profile-created-empty,
.hp-author-posts-head,
.hp-author-patterns,
.hp-author-empty{
  width:min(calc(100% - 32px),var(--hp-container));
  margin-left:auto;
  margin-right:auto;
}
.hp-profile-account-page .hp-profile-saved-list{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.hp-profile-account-page [data-profile-pattern-grid]{--hp-grid-columns:5}
@media (max-width:1279px){
  .hp-profile-account-page .hp-profile-saved-list{grid-template-columns:repeat(4,minmax(0,1fr))}
  .hp-profile-account-page [data-profile-pattern-grid]{--hp-grid-columns:4}
}
@media (max-width:1024px) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))), (hover:none) and (pointer:coarse) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){
  .hp-profile-account-page .hp-profile-saved-list{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
  }
  .hp-profile-account-page [data-profile-pattern-grid]{--hp-grid-columns:3}
}
@media (max-width:767px) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){
  .hp-profile-page,
  body.tax-hp_pattern_author{--hp-profile-grid-side:10px}
  .hp-profile-account-page .hp-profile-saved-head,
  .hp-profile-account-page .hp-profile-saved-list,
  .hp-profile-account-page .hp-profile-saved-empty,
  .hp-profile-account-page .hp-profile-saved-more,
  .hp-profile-account-page .hp-profile-created-head,
  .hp-profile-account-page .hp-profile-created-patterns,
  .hp-profile-account-page .hp-profile-created-empty,
  .hp-author-posts-head,
  .hp-author-patterns,
  .hp-author-empty{width:calc(100% - 20px)}
}
@media (max-width:639px){
  .hp-profile-account-page .hp-profile-saved-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hp-profile-account-page [data-profile-pattern-grid]{--hp-grid-columns:2}
}

/* v0.5.139 — solid top bars match each page's content blocks. Extra lower
   clipping room keeps descenders such as y and g fully visible. */
.hp-profile-topbar{
  background:#fff;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.hp-profile-topbar>strong{
  line-height:1.35;
  padding:0 .05em .18em;
  margin-bottom:-.18em;
}
@media (max-width:1024px) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))), (hover:none) and (pointer:coarse) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){
  .hp-profile-topbar{background:#1e2529}
}

/* v0.5.140 — profile actions share the description scale and use the site's
   rounded-corner block language instead of pill ends. */
.hp-profile-account-page .hp-profile-panel-head h2,
.hp-profile-account-page .hp-profile-panel-head .hp-profile-create-button,
.hp-profile-account-page .hp-profile-new-collection,
.hp-author-posts-head h2,
.hp-author-follow-button{
  font-size:1rem;
}
.hp-profile-panel-head .hp-profile-create-button,
.hp-author-follow-button{
  border-radius:12px;
}
@media (max-width:1024px) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))), (hover:none) and (pointer:coarse) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){
  .hp-profile-topbar{
    background:#000;
    border-bottom:1.2px solid #3d3d3d;
  }
  .hp-profile-account-page .hp-profile-panel-head h2,
  .hp-profile-account-page .hp-profile-panel-head .hp-profile-create-button,
  .hp-profile-account-page .hp-profile-new-collection,
  .hp-author-posts-head h2,
  .hp-author-follow-button{
    font-size:.84rem;
  }
}

/* v0.5.145 — Close controls occupy the existing right header slot. */
.hp-profile-page-exit{justify-self:end}

/* v0.5.146 — balanced account headings and shared page navigation. */
.hp-author-stats{font-weight:var(--hp-font-weight-strong)}
.hp-profile-home-button{justify-self:end}
@media (any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px){
  .hp-profile-topbar .hp-profile-home-button{display:none!important}
}
.hp-profile-account-page{--hp-profile-head-rise:7px}
.hp-profile-account-page .hp-profile-saved-head,
.hp-profile-account-page [data-profile-panel="created"]{
  position:relative;
  top:calc(0px - var(--hp-profile-head-rise));
}
@media (max-width:1024px) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))), (hover:none) and (pointer:coarse) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){
  .hp-profile-account-page{--hp-profile-head-rise:6px}
  .hp-profile-page{--hp-profile-nav-height:calc(var(--hp-touch-nav-height,47px) + env(safe-area-inset-bottom))}
  .hp-profile-page .hp-profile-topbar{
    box-sizing:border-box;
    height:var(--hp-profile-nav-height);
    min-height:var(--hp-profile-nav-height);
    max-height:var(--hp-profile-nav-height);
    padding-top:0;
    padding-bottom:0;
  }
  .hp-profile-home-button{display:none}
}


/* v0.5.151 — on desktop, Profile and Creator descriptions use the same text color as @Username. */
@media (min-width:1025px) and (hover:hover) and (pointer:fine), (any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px){
  .hp-profile-page .hp-profile-bio,
  body.tax-hp_pattern_author .hp-profile-bio{color:var(--hp-muted)!important}
}

/* Shared Saved controls keep the Profile/Creator content gutters. */
.hp-profile-account-page .hp-saved-page-create-form,.hp-profile-account-page .hp-saved-page-notice,.hp-author-profile [data-author-saved]{width:min(calc(100% - 32px),var(--hp-container));margin-left:auto;margin-right:auto}
@media (max-width:767px) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){.hp-profile-account-page .hp-saved-page-create-form,.hp-profile-account-page .hp-saved-page-notice,.hp-author-profile [data-author-saved]{width:calc(100% - 20px)}}

/* v0.5.192 — plain-text audience totals and a single, balanced navigation row. */
.hp-profile-topbar{grid-template-columns:minmax(92px,1fr) minmax(0,auto) minmax(92px,1fr)}
.hp-profile-topbar__left{grid-column:1;grid-row:1}
.hp-profile-topbar>strong{grid-column:2;grid-row:1}
.hp-profile-topbar__actions{grid-column:3;grid-row:1;display:flex;align-items:center;justify-self:end;gap:8px}
.hp-profile-topbar__actions .hp-profile-icon-button{flex:0 0 42px}
.hp-people-stat{display:inline;padding:0;border:0;border-radius:0;background:none;color:inherit;font:inherit;font-weight:inherit;line-height:inherit;cursor:pointer;text-decoration:none;white-space:nowrap}
.hp-people-stat:hover{text-decoration:underline;text-underline-offset:3px}
.hp-people-stat:focus-visible,.hp-profile-share-button:focus-visible{outline:2px solid var(--hp-accent);outline-offset:3px}
@media (max-width:1024px) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))), (hover:none) and (pointer:coarse) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){.hp-profile-topbar{grid-template-columns:minmax(42px,1fr) minmax(0,auto) minmax(42px,1fr)}.hp-profile-topbar__actions{gap:0}.hp-profile-share-button:hover{background:#252525}}
.hp-author-profile .hp-profile-avatar-initial{border:0}

/* Local upload controls load only on profile layouts; the handler loads on Edit. */
/* Avatar controls are confined to Edit Profile. */
.hp-profile-avatar-options .hp-avatar-tabs{display:flex;grid-template-columns:none;gap:6px;margin:8px 0 12px}
.hp-avatar-tabs button{border:1px solid var(--hp-line);border-radius:9px;background:var(--hp-surface);color:var(--hp-text);font:inherit;font-size:.84rem;padding:8px 12px;cursor:pointer}
.hp-avatar-tabs button[aria-selected=true]{border-color:var(--hp-accent);color:var(--hp-accent);background:color-mix(in srgb,var(--hp-accent) 8%,var(--hp-surface))}
.hp-profile-avatar-options .hp-avatar-presets{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;max-width:390px}
.hp-profile-avatar-options [hidden]{display:none!important}
.hp-profile-avatar-option:focus-within img{outline:2px solid var(--hp-accent);outline-offset:2px}
.hp-profile-avatar-upload{margin:0;padding:0;border:0}
.hp-avatar-upload-actions{display:grid;justify-items:start;gap:7px}
.hp-profile-avatar-options .hp-avatar-upload-actions small{margin:0;font-size:.75rem}
.hp-avatar-current{position:relative;width:116px;height:116px;margin:14px auto 4px}
.hp-profile-avatar-upload-preview{box-sizing:border-box;display:block;width:116px;height:116px;border-radius:50%;object-fit:cover;border:2px dashed color-mix(in srgb,var(--hp-accent) 55%,#fff);background:var(--hp-surface)}
.hp-avatar-pencil{position:absolute;right:-2px;bottom:-2px;box-sizing:border-box;width:38px;height:38px;padding:7px;border:3px solid #fff;border-radius:50%;background:var(--hp-accent);color:#fff;box-shadow:0 3px 9px rgba(0,0,0,.18);cursor:pointer}
.hp-avatar-pencil svg{display:block;width:100%;height:100%}
.hp-avatar-pencil:focus-visible{outline:2px solid var(--hp-accent);outline-offset:3px}
.hp-avatar-upload-link,.hp-avatar-remove-link{display:inline-flex;align-items:center;gap:8px;padding:0;border:0;border-radius:0;background:transparent;color:var(--hp-text);font:inherit;cursor:pointer}
.hp-avatar-upload-link svg{width:29px;height:26px;flex:none}
.hp-avatar-upload-link span{text-decoration:underline;text-underline-offset:3px;font-weight:var(--hp-font-weight-medium)}
.hp-avatar-upload-link:focus-visible,.hp-avatar-remove-link:focus-visible{outline:2px solid var(--hp-accent);outline-offset:4px}
.hp-avatar-remove-link{font-size:.8rem;color:var(--hp-muted);text-decoration:underline}
.hp-avatar-cropper{margin:12px auto 0;max-width:280px;text-align:center}
.hp-avatar-crop-viewport{position:relative;width:220px;height:220px;max-width:100%;margin:0 auto;overflow:hidden;border-radius:50%;background:var(--hp-surface-2);touch-action:none;cursor:grab;outline:2px solid var(--hp-line)}
.hp-avatar-crop-viewport:active{cursor:grabbing}
.hp-avatar-crop-viewport:focus-visible{outline-color:var(--hp-accent)}
.hp-avatar-crop-viewport img{position:absolute;left:0;top:0;max-width:none;max-height:none;user-select:none;pointer-events:none;will-change:transform}
.hp-profile-edit-form .hp-avatar-zoom{display:flex;align-items:center;gap:12px;margin-top:12px;font-size:.8rem}
.hp-profile-edit-form .hp-avatar-zoom input{width:100%;height:22px;padding:0;border:0;accent-color:var(--hp-accent);cursor:pointer}
.hp-profile-avatar-upload [data-avatar-upload-status]{margin:8px 0 0;color:var(--hp-accent);font-size:.84rem}
.hp-profile-avatar-upload [data-avatar-upload-status]:empty{display:none}

/* The same outlined pencil is used for the profile and each owned Created card. */
.hp-profile-avatar-edit{background:var(--hp-accent);color:#fff;border-radius:50%}
.hp-created-post-edit{display:grid;place-items:center;box-sizing:border-box;border:1px solid #e4e4e4;background:#fff;color:#111;border-radius:10px;box-shadow:0 2px 6px #0002;cursor:pointer}
.hp-profile-avatar-edit{padding:0;min-width:0;min-height:0;box-sizing:border-box;line-height:1;cursor:pointer}
.hp-profile-avatar-edit svg{display:block;width:17px;height:17px;max-width:100%;max-height:100%;margin:0;justify-self:center;align-self:center}
.hp-created-post-edit svg{display:block;width:22px;height:22px}
[data-profile-panel="created"] .pattern-card[data-created-owned="1"]{position:relative}
.hp-created-card-thumbnail{position:relative}
.hp-created-post-edit{position:absolute;right:7px;bottom:7px;width:34px;height:34px;padding:6px;z-index:2}
.hp-created-post-edit svg{width:20px;height:20px}
.hp-profile-avatar-edit:hover{background:var(--hp-accent);color:#fff}
.hp-created-post-edit:hover{background:#f4f4f4;color:#111}
.hp-created-post-edit:focus-visible{outline:2px solid var(--hp-accent);outline-offset:3px}

/* Keep the edit glyph independent of text zoom and device-emulation defaults. */
body.hp-profile-page .hp-profile-avatar-wrap>.hp-profile-avatar-edit{
  display:grid;place-items:center;padding:0!important;min-width:0!important;min-height:0!important;
  overflow:hidden;box-sizing:border-box;font-size:0;line-height:0;isolation:isolate;
}
body.hp-profile-page .hp-profile-avatar-wrap>.hp-profile-avatar-edit svg{
  position:absolute;left:50%;top:50%;width:54%!important;height:54%!important;
  max-width:18px!important;max-height:18px!important;min-width:0!important;min-height:0!important;
  display:block;flex:none;margin:0!important;padding:0!important;transform:translate(-50%,-50%);
}

/* Use the same compact button width as the standalone Saved page. */
.hp-profile-account-page .hp-profile-saved-more{width:auto}

/* v0.5.276: keep Edit Profile fields at their designed size on every device. */
#profile-edit-modal .hp-profile-edit-form :is(input,textarea,select){resize:none!important}
