/* Public purchase entry; account-management links stay in Manage. */
.profile-header--subscribe { grid-template-columns:140px minmax(0,1fr) minmax(180px,280px); }
.profile-header--subscribe .profile-header__body { min-width:0; flex:1; overflow-wrap:anywhere; }
.profile-header__subscription { width:100%; max-width:280px; min-width:0; justify-self:end; align-self:center; text-align:end; }
.profile-header__subscription[hidden] { display:none!important; }
.profile-subscribe__eyebrow { font-size:.8rem;margin:0 0 .4rem;color:var(--muted,#b5b9c2); }
.profile-subscribe__button { display:block;width:100%;min-height:44px;padding:.7rem 1rem;border:1px solid var(--accent,#8064d8);border-radius:.65rem;background:var(--accent,#8064d8);color:var(--text,#fff);font:inherit;font-weight:650;cursor:pointer;overflow-wrap:anywhere; }
.profile-subscribe__button:disabled { cursor:default;background:var(--panel-2,#292d37);border-color:var(--border,#535663);color:var(--muted,#c8cad3); }
.profile-subscribe__status,.profile-subscribe__disclosure { margin:.5rem 0 0;font-size:.8rem;line-height:1.5;color:var(--muted,#b5b9c2);overflow-wrap:anywhere; }
.profile-subscribe__details { margin-top:.5rem;text-align:start;font-size:.85rem; }
.profile-subscribe__details summary { min-height:44px;cursor:pointer; }
.profile-subscribe__button:focus-visible,.profile-subscribe__details summary:focus-visible { outline:2px solid currentColor;outline-offset:3px; }
.profile-header--subscribe > .epic-header-actions { grid-column:3; }
.profile-header--subscribe[data-epic-tier-header="classic"] > .epic-header-actions { grid-row:1; }
.profile-header--subscribe[data-epic-tier-header="classic"] > .profile-header__subscription { grid-column:3;grid-row:1;align-self:start; }
.profile-header--subscribe[data-epic-tier-header="classic"]:has(> .profile-header__subscription) > .epic-header-actions { grid-row:2; }
.profile-header--subscribe[data-epic-tier-header="spotlight"] .profile-header__subscription { text-align:center; }
.profile-page > .epic-header-more { margin:0 0 1rem;max-width:100%; }
@media(max-width:840px) {
 .profile-header--subscribe { grid-template-columns:minmax(0,1fr);flex-wrap:wrap; }
 .profile-header--subscribe > .epic-header-actions,.profile-header--subscribe[data-epic-tier-header="classic"] > .epic-header-actions,.profile-header--subscribe[data-epic-tier-header="classic"] > .profile-header__subscription { grid-column:1;grid-row:auto; }
 .profile-header__subscription { max-width:none;text-align:start;justify-self:stretch; }
 .profile-header--subscribe .epic-header-actions { width:100%;margin-inline-start:0;align-items:stretch; }
}

/* Keep only the two normal header actions; retain visible loading/error recovery. */
.profile-header .epic-account-block[aria-busy="false"]:has(> [data-block-action="open"]):not(:has(> [role="alert"])) > [data-block-action="refresh"] { display:none; }
