/* Reserve loading geometry; keep the accepted hero and tool surfaces untouched. */
html{scrollbar-gutter:stable}
@supports not (scrollbar-gutter:stable){html{overflow-y:scroll}}

.wfn-platform .header-actions{display:grid;grid-template-columns:auto 36px 232px;align-items:center;column-gap:16px;row-gap:0;min-inline-size:0;min-block-size:36px}
.wfn-platform .header-actions>.header-forum-link{grid-area:1/1;white-space:nowrap}
.wfn-platform .header-actions>.theme-toggle{grid-area:1/2;justify-self:center}
.wfn-platform .header-actions>#auth-pending,.wfn-platform .header-actions>#guest-nav,.wfn-platform .header-actions>#member-nav{grid-area:1/3;justify-self:end;max-inline-size:100%;min-inline-size:0}
.wfn-platform .header-actions>#auth-pending{display:flex;align-items:center;justify-content:flex-end;min-block-size:36px}
.wfn-platform .auth-placeholder{display:block;inline-size:96px;max-inline-size:100%;block-size:14px;border-radius:4px;background:var(--border)}
.wfn-platform .header-actions>#member-nav{inline-size:100%;min-block-size:36px;justify-content:flex-end}
.wfn-platform .header-actions>#member-nav .account-name{min-inline-size:0;flex:0 1 auto}
.wfn-platform .header-actions>#member-nav .nav-button{flex:0 0 auto}
.wfn-platform .site-header .header-actions .button{block-size:36px;min-block-size:36px;padding:6px 11px;line-height:1.5}

/* Live quota text can occupy two lines; reserve them before the state response. */
.wfn-platform .quota-reset{min-block-size:3.5em}
.wfn-platform #upload-quota-summary,.wfn-platform [data-file-quota-summary],.wfn-platform #social-quota{font-variant-numeric:tabular-nums}
.wfn-platform .social-download .social-form-meta{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:8px 20px}
.wfn-platform .social-download #social-quota,.wfn-platform .social-download #social-limits{min-block-size:3.5em}
.wfn-platform .social-download #social-limits{text-align:right}

@media(max-width:1050px){
  .wfn-platform .header-actions{grid-template-columns:auto 36px 160px;column-gap:12px}
}
@media(max-width:560px){
  .wfn-platform .site-header .header-actions{display:grid;grid-template-columns:auto 34px minmax(0,1fr);align-items:center;column-gap:12px;row-gap:0;min-block-size:36px}
  .wfn-platform .site-header .header-actions>.header-forum-link{margin:0;justify-self:start}
  .wfn-platform .site-header .header-actions>.theme-toggle{margin:0;justify-self:center}
  .wfn-platform .site-header .header-actions>#auth-pending,.wfn-platform .site-header .header-actions>#guest-nav,.wfn-platform .site-header .header-actions>#member-nav{justify-self:end;min-inline-size:0;max-inline-size:100%}
  .wfn-platform .site-header .header-actions>#member-nav{gap:9px}
  .wfn-platform .site-header .header-actions>#member-nav .account-name{flex:0 1 auto;min-inline-size:0}
  .wfn-platform .site-header .header-actions .button{padding:6px 10px}
}
@media(max-width:540px){
  .wfn-platform .social-download .social-form-meta{grid-template-columns:minmax(0,1fr);gap:7px}
  .wfn-platform .social-download #social-limits{text-align:left;margin-top:0}
}

/* Keep all six navigation entries inside the tablet width. */
@media(min-width:721px) and (max-width:950px){.wfn-platform .site-menu-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}.wfn-platform .site-menu-link{min-width:0;padding-inline:12px}.wfn-platform .site-menu-link:last-child{margin-left:0}}
