/* Approved profile refresh; scoped to the profile, with original data/controllers. */
body.profile-refreshed{--surface:#191c22;--surface-strong:#24272e;--field:#20232a;--border:#343841;--muted:#a5abb7;--text:#f5f5f7}
.profile-refreshed .profile-page{width:min(1160px,100%);margin-inline:auto;align-content:start;place-items:stretch;gap:22px;box-sizing:border-box;padding:34px 24px 56px}
.profile-refreshed .profile-dashboard,.profile-refreshed #profile-rewards{width:100%;max-width:1000px;justify-self:center}
.profile-refreshed #profile-dashboard{display:flex;flex-direction:column;gap:22px;min-width:0}
.profile-refreshed #profile-dashboard[hidden]{display:none}
.profile-refreshed #profile-dashboard>#profile-giveaways{order:0;margin:0}
.profile-refreshed #profile-dashboard>#nearby-ranks{order:1;margin:0;min-width:0}
.profile-refreshed #profile-dashboard>.profile-card-panel{order:2;margin:0;height:auto;display:flex;flex-direction:column;gap:20px;min-width:0}
.profile-refreshed #profile-level-progress{display:none!important}
.profile-refreshed :is(.profile-rank-editor,#nearby-ranks){background:#191c22;border:1px solid #343841;border-radius:6px;box-shadow:none;box-sizing:border-box}
.profile-refreshed .profile-card-panel,.profile-refreshed #nearby-ranks{padding:24px}
.profile-refreshed .profile-card-panel .profile-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0}
.profile-refreshed .profile-card-panel .profile-section-heading .eyebrow{display:none}
.profile-refreshed .profile-card-panel h2{margin:0;font-size:1.5rem}
.profile-refreshed #profile-dashboard #rank-customization-toggle{width:auto;min-height:40px;padding:9px 14px;display:flex;gap:9px;justify-content:center;font-size:.8rem;background:#24272e;border:1px solid #3e434d;border-radius:4px!important}
.profile-refreshed #profile-dashboard #rank-customization-toggle[hidden]{display:none!important}
.profile-refreshed #profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border:1px solid #343841;border-radius:4px;overflow:hidden}
.profile-refreshed #profile-stats[hidden]{display:none}
.profile-refreshed #profile-stats article{padding:16px 20px;text-align:left;display:block;border:0;border-right:1px solid #343841;border-radius:0;background:#20232a;box-shadow:none}
.profile-refreshed #profile-stats article:last-child{border-right:0}
.profile-refreshed #profile-stats span{font-size:.6875rem;letter-spacing:1px;text-transform:uppercase;color:#a5abb7}
.profile-refreshed #profile-stats strong{display:block;font-size:1.8rem;margin-top:5px}
.profile-refreshed .profile-card-panel .profile-rank-layout{display:block;min-width:0}
.profile-refreshed .profile-preview-column{width:100%;max-width:none;gap:12px}
.profile-refreshed .profile-preview-hint{text-align:left;color:#929aa8;font-size:.75rem}
.profile-refreshed .profile-rank-preview{border-radius:5px}
.profile-refreshed #profile-auth.has-account-menu{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0;margin:0;width:100%;max-width:none;text-align:left;background:none;border:0;box-shadow:none;min-height:0}
.profile-refreshed #profile-auth.has-account-menu>:is(.coming-soon-icon,.eyebrow,#profile-status,#profile-message){display:none}
.profile-page-title h1{font-size:2.35rem;line-height:1.2;margin:6px 0 0}
.profile-page-title .eyebrow{font-size:.6875rem;letter-spacing:1.5px;color:#a6aeba}
.profile-account-menu{position:relative;z-index:4;flex-shrink:0;max-width:50%}
.profile-account-menu summary{list-style:none;display:flex;align-items:center;gap:10px;padding:9px 12px;background:#24272e;border:1px solid #3a3f48;border-radius:4px;cursor:pointer;font-size:.875rem;font-weight:700}
.profile-account-menu summary::-webkit-details-marker{display:none}
.profile-account-menu summary span{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-account-menu summary img{width:32px;height:32px;object-fit:cover;border-radius:4px}
.profile-account-menu #profile-actions{position:absolute;right:0;top:calc(100% + 8px);display:grid;gap:5px;min-width:215px;margin:0;padding:8px;background:#24272e;border:1px solid #444a55;box-shadow:0 12px 35px #0008}
.profile-account-menu:not([open]) #profile-actions{display:none}
.profile-account-menu #profile-actions .studio-button{width:100%;justify-content:flex-start;text-align:left;font-size:.8125rem;border-radius:3px;padding:11px}
.profile-refreshed #profile-rewards{background:#191c22!important;border-color:#343841;border-radius:6px!important}
.profile-refreshed #profile-rewards .profile-section-heading{border:0;padding:24px 26px 20px}
.profile-refreshed #profile-rewards .profile-rewards-streak{margin:0 26px 20px;padding:20px 24px;background:linear-gradient(110deg,#35303f,#24262d);border:1px solid #3d3c47;gap:24px}
.profile-refreshed #profile-streak-marks{margin:0}
.profile-refreshed #profile-streak-caption{display:none}
.profile-refreshed .profile-rewards-grid{padding:0 26px 22px;gap:20px;grid-template-columns:repeat(2,minmax(0,1fr))}
.profile-refreshed .profile-reward-card{display:flex;flex-direction:column;align-items:stretch;text-align:center;padding:8px 22px 22px;background:#20232a;border:1px solid #353944;border-radius:5px;gap:0;min-width:0}
.profile-refreshed .profile-reward-art{height:143px;display:grid;place-items:center;grid-row:auto;background:radial-gradient(ellipse at center,#67424d90,transparent 67%)!important}
.profile-refreshed .profile-reward-key .profile-reward-art{background:radial-gradient(ellipse at center,#443455e0,transparent 67%)!important}
.profile-refreshed .profile-reward-art:before{display:block;width:76px;height:76px;border:1px solid #a2637970;transform:rotate(45deg)}
.profile-refreshed .profile-reward-key .profile-reward-art:before{border-color:#9270ae88}
.profile-refreshed .profile-reward-card .profile-reward-icon{width:86px;height:86px;font-size:3.8rem}
.profile-refreshed .profile-reward-details h3{font-size:.9375rem;min-height:0;display:block;margin:9px 0;color:#c8cdd5}
.profile-refreshed .profile-reward-amount{font-size:1.8rem;line-height:1.3;margin:8px 0 20px}
.profile-refreshed .profile-reward-amount span{display:inline;font-size:inherit}
.profile-refreshed .profile-reward-action{display:flex;flex-direction:column;align-items:center;gap:10px;grid-column:auto;margin-top:auto}
.profile-refreshed #profile-rewards .profile-reward-action .studio-button{width:min(260px,100%);min-height:44px;border-radius:4px!important}
.profile-refreshed #profile-rewards .profile-reward-note{font-size:.75rem}
.profile-refreshed #profile-rewards .profile-rewards-wallet{background:#20232a;border-color:#343841;border-radius:4px}
.profile-refreshed #profile-rewards .profile-rewards-note{font-size:.6875rem;padding-bottom:18px}
.profile-refreshed #profile-giveaways{padding:22px 24px}
.profile-refreshed .profile-giveaways-heading h2{font-size:1.45rem}
.profile-refreshed #profile-giveaways .profile-giveaway-row{background:#20232a!important;border-color:#343841!important;border-radius:4px!important}
.profile-refreshed .profile-giveaways-status:empty{display:none}
.profile-refreshed #nearby-ranks h2{margin-top:0;font-size:1.5rem}
.profile-refreshed #rank-customization-dialog{width:min(930px,calc(100vw - 40px));background:#191c22;border-color:#414651;border-radius:6px!important}
.profile-refreshed #rank-customization-dialog .profile-customization{padding:24px;background:#191c22!important;gap:24px}
.profile-refreshed #rank-customization-dialog .profile-color-grid{display:grid;grid-template-columns:1fr;gap:10px}
.profile-refreshed #rank-customization-dialog .profile-color-field{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;background:#20232a;border:1px solid #343841}
.profile-refreshed #rank-customization-dialog .profile-color-field>span{font-size:.8125rem}
.profile-refreshed #rank-customization-dialog .profile-color-trigger{width:auto;min-width:132px;padding:7px;background:#24272e!important;border-color:transparent}
.profile-refreshed #rank-customization-dialog #profile-editor-actions button[type=submit]{background:#55c987!important;border-color:#55c987!important;color:#102418!important}
.profile-refreshed #rank-customization-dialog #reset-rank-card{background:#50272e!important;border-color:#91414b!important;color:#ffb0b8!important}
.profile-refreshed #rank-customization-dialog .profile-customization-close{background:#50272e!important;border-color:#91414b!important;color:#ffb0b8!important}
.profile-refreshed :is(button,a,summary):focus-visible{outline:2px solid #ffca0a;outline-offset:3px}
@media(min-width:768px){.profile-refreshed #rank-customization-dialog .profile-customization{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}.profile-refreshed #rank-customization-dialog .profile-section-heading{grid-column:1/-1}.profile-refreshed #rank-customization-dialog .profile-customization-options{grid-column:2;min-width:0}}
@media(max-width:767px){
.profile-refreshed .profile-page{padding:24px 16px 45px;gap:18px}
.profile-page-title h1{font-size:2rem}.profile-account-menu summary{padding:7px}.profile-account-menu summary span{display:none}
.profile-refreshed .profile-card-panel,.profile-refreshed #nearby-ranks{padding:18px}
.profile-refreshed #profile-dashboard{gap:18px}
.profile-refreshed #profile-stats article{padding:12px 10px}.profile-refreshed #profile-stats span{font-size:.5625rem;letter-spacing:.6px}.profile-refreshed #profile-stats strong{font-size:1.55rem}
.profile-refreshed .profile-rewards-grid{grid-template-columns:1fr;padding:0 18px 18px;gap:10px}
.profile-refreshed #profile-rewards .profile-section-heading{padding:20px 18px}
.profile-refreshed #profile-rewards .profile-rewards-streak{margin:0 18px 18px;padding:18px 16px;grid-template-columns:1fr;gap:17px}
.profile-refreshed .profile-reward-card{display:grid;grid-template-columns:58px minmax(0,1fr) auto;grid-template-rows:auto;align-items:center;text-align:left;gap:10px;border:0;border-top:1px solid #343841;border-radius:0;background:none;padding:12px 0}
.profile-refreshed .profile-reward-art{height:68px;grid-column:1;grid-row:1}
.profile-refreshed .profile-reward-art:before{width:38px;height:38px}
.profile-refreshed .profile-reward-card .profile-reward-icon{width:52px;height:52px;font-size:2.3rem}
.profile-refreshed .profile-reward-details{grid-column:2;grid-row:1;min-width:0}
.profile-refreshed .profile-reward-details h3{font-size:.75rem;margin:0 0 5px}
.profile-refreshed .profile-reward-amount{font-size:1rem;margin:0;overflow-wrap:anywhere}
.profile-refreshed .profile-reward-amount span{font-size:inherit;display:inline}
.profile-refreshed .profile-reward-key .profile-reward-amount{font-size:.6875rem;color:#a5abb7}
.profile-refreshed .profile-reward-key .profile-reward-details h3{font-size:.875rem;color:#f5f5f7}
.profile-refreshed .profile-reward-action{grid-column:3;grid-row:1;align-items:flex-end;margin:0;min-width:0}
.profile-refreshed #profile-rewards .profile-reward-action .studio-button{font-size:.6875rem;min-height:38px;padding:8px 9px;max-width:100px}
.profile-refreshed #profile-rewards .profile-reward-action .profile-reward-note{font-size:.625rem;max-width:100px;text-align:right;min-height:0}
.profile-refreshed #profile-rewards .profile-rewards-wallet{margin:0 18px 18px}
.profile-refreshed #profile-giveaways{padding:18px}.profile-refreshed .profile-giveaways-heading h2{font-size:1.25rem}
.profile-refreshed #rank-customization-dialog{width:calc(100vw - 20px);max-height:calc(100svh - 20px)}
.profile-refreshed #rank-customization-dialog .profile-customization{padding:16px;gap:18px}
.profile-refreshed #rank-customization-dialog .profile-color-field{padding:7px 10px}
}
@media(prefers-reduced-motion:no-preference){.profile-account-menu summary,.profile-account-menu .studio-button{transition:background-color 160ms,border-color 160ms}}
.profile-refreshed #profile-rewards .profile-reward-amount{color:#f5f5f7!important}
.profile-account-fallback{font-size:26px;line-height:32px;color:#b7adcf}
.profile-account-fallback[hidden]{display:none}
.profile-refreshed #rank-customization-dialog .profile-background-details .is-locked{display:none}
@media(min-width:768px) and (max-width:900px){.profile-refreshed .profile-reward-amount{font-size:1.5rem}}
.profile-editor-tabs{display:flex;gap:5px;padding:5px;margin-bottom:16px;background:#111419}
.profile-editor-tabs button{flex:1;padding:10px 8px;border:0;color:#b9c0cc;background:none;font-size:.8125rem;font-weight:700;cursor:pointer}
.profile-editor-tabs button[aria-selected=true]{background:#343942;color:#ffce23}
.profile-refreshed #rank-customization-dialog :is(.profile-color-grid,.profile-editor-toolbar)[hidden]{display:none!important}
.profile-refreshed #rank-customization-dialog .profile-editor-actions{margin-top:20px}
.profile-refreshed #rank-customization-dialog #profile-appearance-background{padding:20px;border:1px dashed #505663;background:#20232a;min-height:180px;justify-content:center}
/* Legacy desktop grid and centered panel sizing must not shrink flex children. */
body.profile-refreshed #profile-dashboard{align-items:stretch!important;grid-template-columns:none!important}
body.profile-refreshed #profile-dashboard>:is(#nearby-ranks,.profile-card-panel,#profile-giveaways){width:100%!important;max-width:none!important;align-self:stretch!important;grid-column:auto!important;min-width:0}

/* The visual card already includes level, XP and rank. Keep legacy data nodes
   available to the existing controller without repeating them in the page. */
.profile-refreshed #profile-stats{display:none!important}
.profile-refreshed #profile-rank-card{scroll-margin-top:24px}
@media(max-width:767px){.profile-refreshed #profile-rank-card{scroll-margin-top:88px}}
.profile-refreshed #rank-customization-dialog #profile-appearance-background .profile-background-upload{flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:12px;width:100%}
.profile-refreshed #rank-customization-dialog #profile-appearance-background .profile-background-details{justify-content:center;align-items:center;text-align:center;width:100%}
.profile-refreshed #rank-customization-dialog #profile-appearance-background #choose-rank-background{align-self:center;margin-inline:auto}

/* Approved A: neutral site-gray surfaces; shared page and user card colors stay owned by their existing styles. */
body.profile-refreshed{--surface:#36393f;--surface-strong:#41454d;--field:#303339;--border:#535760;--muted:#c1c6d0;--text:#f5f5f7}
body.profile-refreshed :is(.profile-rank-editor,#nearby-ranks),body.profile-refreshed #profile-rewards,body.profile-refreshed #rank-customization-dialog,body.profile-refreshed #rank-customization-dialog .profile-customization{background:#36393f!important;border-color:#535760!important}
body.profile-refreshed #profile-rewards .profile-rewards-streak{background:linear-gradient(110deg,#47424f,#3b3e46)!important;border-color:#535760!important}
body.profile-refreshed #profile-rewards :is(.profile-rewards-wallet,.profile-reward-card){background:#303339!important;border-color:#535760!important}
body.profile-refreshed #profile-rewards .profile-reward-card{border-radius:4px}
body.profile-refreshed #profile-rewards :is(.profile-reward-note,.profile-rewards-note),body.profile-refreshed .profile-preview-hint,body.profile-refreshed #member-info{color:#c1c6d0!important}
body.profile-refreshed #profile-giveaways .profile-giveaway-row,body.profile-refreshed #rank-customization-dialog :is(.profile-color-field,#profile-appearance-background){background:#303339!important;border-color:#535760!important}
body.profile-refreshed #rank-customization-dialog .profile-color-trigger{background:#41454d!important;color:#f5f5f7!important}
body.profile-refreshed :is(.profile-editor-tabs,.profile-account-menu summary,.profile-account-menu #profile-actions){background:#303339!important;border-color:#535760!important}
body.profile-refreshed .profile-editor-tabs button[aria-selected=true]{background:#535865!important}
body.profile-refreshed :is(#profile-color-picker,.profile-color-picker){background:#36393f!important;border-color:#535760!important}
body.profile-refreshed #rank-customization-toggle{background:#41454d!important;border-color:#535760!important}
body.profile-refreshed #profile-rewards .studio-button.is-claimed:disabled{background:#41454d!important;border-color:#626873!important;color:#d7dce4!important}
body.profile-refreshed :is(.profile-color-field>span,.profile-color-value,.profile-background-details){color:#c1c6d0!important}
@media(max-width:767px){body.profile-refreshed #profile-rewards .profile-reward-card{background:transparent!important;border-radius:0}}

/* Key artwork keeps its original outline; its surrounding light is green only. */
body.profile-refreshed :is(.profile-reward-chips,.profile-reward-key) .profile-reward-icon{filter:none}
body.profile-refreshed .profile-reward-chips .profile-reward-art{background:radial-gradient(ellipse 75px 58px at center,#a8657d26,transparent 72%)!important}
body.profile-refreshed .profile-reward-key .profile-reward-art{background:radial-gradient(ellipse 75px 58px at center,#8fd16a26,transparent 72%)!important}
@media(max-width:767px){body.profile-refreshed .profile-reward-chips .profile-reward-art{background:radial-gradient(ellipse 35px 30px at center,#a8657d26,transparent 72%)!important}body.profile-refreshed .profile-reward-key .profile-reward-art{background:radial-gradient(ellipse 35px 30px at center,#8fd16a26,transparent 72%)!important}}
body.profile-refreshed .profile-reward-key .profile-reward-art:before{border-color:#99cc7066}
.profile-account-menu #profile-actions[hidden]{display:none!important}
.profile-account-menu summary>.bi-chevron-down{display:inline-block;transition:transform 160ms cubic-bezier(.2,0,0,1)!important}
.profile-account-menu summary[aria-expanded=true]>.bi-chevron-down{transform:rotate(180deg)}
@media(prefers-reduced-motion:reduce){.profile-account-menu summary>.bi-chevron-down{transition:none!important}}

body.profile-refreshed #profile-rewards .studio-button.is-claimed:disabled:is(:hover,:focus-visible,:active){background:#41454d!important;border-color:#626873!important;color:#d7dce4!important}

/* Fit the account dropdown to its actions without inherited centered gutters. */
body.profile-refreshed .profile-account-menu #profile-actions {
  width: max-content;
  min-width: 0;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  justify-items: stretch;
  padding: 6px;
}
body.profile-refreshed .profile-account-menu #profile-actions > .studio-button {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-inline: 0;
  box-sizing: border-box;
  white-space: nowrap;
}

/* Center the preview beside the editor on tablet and larger screens. */
@media (min-width: 768px) {
  body.profile-refreshed #rank-customization-dialog .profile-customization-card-column {
    align-self: center;
  }
}

/* Keep the profile header on the same centered track as its content panels. */
body.profile-refreshed #profile-auth.has-account-menu {
  max-width: 1000px;
  justify-self: center;
}
body.profile-refreshed .profile-account-menu #profile-actions {
  border-radius: 4px !important;
}

/* A single sliding highlight connects the two appearance tabs. */
.profile-editor-tabs { position: relative; isolation: isolate; }
.profile-editor-tabs::before {
  content: "";
  position: absolute;
  inset: 5px auto 5px 5px;
  width: calc((100% - 15px) / 2);
  background: #535865;
  transform: translateX(calc(var(--active-tab, 0) * (100% + 5px)));
  pointer-events: none;
  z-index: -1;
}
body.profile-refreshed .profile-editor-tabs button[aria-selected=true] { background: transparent !important; }
@media (prefers-reduced-motion: no-preference) {
  .profile-editor-tabs::before { transition: transform 200ms cubic-bezier(.2, 0, 0, 1); }
  .profile-editor-tabs button { transition: color 200ms ease; }
}
/* Soft, compact light under the artwork, fading fully before its edges. */
body.profile-refreshed .profile-reward-chips .profile-reward-art {
  background: radial-gradient(ellipse 62px 46px at center, #d787a747 0%, #c8789826 30%, #b967850d 60%, transparent 100%) !important;
}
body.profile-refreshed .profile-reward-key .profile-reward-art {
  background: radial-gradient(ellipse 62px 46px at center, #a6dc7047 0%, #96ca6026 30%, #86be520d 60%, transparent 100%) !important;
}
@media (max-width: 767px) {
  body.profile-refreshed .profile-reward-chips .profile-reward-art {
    background: radial-gradient(ellipse 27px 23px at center, #d787a75c 0%, #c8789833 30%, #b9678512 60%, transparent 100%) !important;
  }
  body.profile-refreshed .profile-reward-key .profile-reward-art {
    background: radial-gradient(ellipse 27px 23px at center, #a6dc705c 0%, #96ca6033 30%, #86be5212 60%, transparent 100%) !important;
  }
}
/* Use one width for the account trigger and dropdown, with left-aligned actions. */
body.profile-refreshed .profile-page-title { min-width: 0; }
body.profile-refreshed .profile-account-menu { width: max-content; min-width: 180px; }
body.profile-refreshed .profile-account-menu #profile-actions {
  width: 100%;
  min-width: 0;
  max-width: none;
}
body.profile-refreshed .profile-account-menu #profile-actions > .studio-button {
  justify-content: flex-start !important;
  text-align: left !important;
  white-space: normal;
  gap: 8px;
}
body.profile-refreshed .profile-account-menu #profile-actions > .studio-button img { flex-shrink: 0; }
/* All main profile panels follow the rank card panel's corner radius. */
body.profile-refreshed :is(#profile-rewards, #profile-giveaways, #nearby-ranks, .profile-card-panel) {
  border-radius: 5px !important;
}

/* Put the animated selection above the tab track and below its labels. */
body.profile-refreshed .profile-editor-tabs::before {
  z-index: 0;
  transform: translateX(0);
}
body.profile-refreshed .profile-editor-tabs:has(button:nth-child(2)[aria-selected=true])::before {
  transform: translateX(calc(100% + 5px));
}
body.profile-refreshed .profile-editor-tabs button {
  position: relative;
  z-index: 1;
  background: transparent !important;
}
@media (prefers-reduced-motion: no-preference) {
  body.profile-refreshed .profile-editor-tabs::before {
    transition: transform 240ms cubic-bezier(.2, 0, 0, 1) !important;
  }
}
/* Muted red stays distinct without dominating the neutral editor. */
body.profile-refreshed #rank-customization-dialog :is(#reset-rank-card, .profile-customization-close),
body.profile-refreshed #rank-customization-dialog .profile-color-close {
  background: #46383d !important;
  border-color: #71565e !important;
  color: #e4b8c0 !important;
}
body.profile-refreshed #rank-customization-dialog :is(#reset-rank-card, .profile-customization-close, .profile-color-close):is(:hover, :focus-visible) {
  background: #59434b !important;
  border-color: #94707b !important;
  color: #f1ced5 !important;
}

body.profile-refreshed #profile-rewards-summary.is-complete {
  color: #a9dfbd;
  background: #314b3c;
  border-color: #577b62;
}

/* Consistent corners for editor surfaces; preview and dialog actions keep theirs. */
body.profile-refreshed #rank-customization-dialog :is(
  .profile-editor-tabs,
  .profile-editor-tabs button,
  .profile-color-field,
  .profile-color-trigger,
  .profile-color-chip,
  #profile-appearance-background,
  #choose-rank-background
),
body.profile-refreshed #rank-customization-dialog .profile-editor-tabs::before {
  border-radius: 5px !important;
}

/* A neutral, non-personal shell stays in the content track during fresh reads. */
.profile-page.is-loading { align-content:start; place-items:stretch; }
.profile-page.is-loading .profile-loading { position:relative; display:grid; align-content:start; justify-content:stretch; gap:24px; width:100%; max-width:1000px; margin-inline:auto; min-height:350px; }
.profile-page.is-loading .profile-loading::before { content:""; display:block; width:min(240px,55%); height:44px; background:var(--surface,#2b2d31); border-radius:5px; }
.profile-page.is-loading .profile-loading::after { content:""; display:block; height:260px; background:var(--surface,#2b2d31); border:1px solid var(--border,#62666f); border-radius:5px; }
.profile-page.is-loading .profile-loading-spinner { display:none; }
.profile-page.is-loading .profile-loading > span:not(.profile-loading-spinner) { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

/* The hidden mobile username must not reserve desktop trigger width. */
@media(max-width:767px){
  body.profile-refreshed .profile-account-menu{min-width:0;width:max-content}
  body.profile-refreshed .profile-account-menu summary{min-height:44px}
  body.profile-refreshed .profile-account-menu #profile-actions{width:max-content;min-width:180px;max-width:calc(100vw - 32px)}
}
