:root{--sx-blue:#1768d5;--sx-ink:#0f1d2e;--sx-muted:#66758a;--sx-line:#e1e8f0;--sx-soft:#f5f8fc;--sx-header:76px;--sx-wrap:1480px}
.sx-platform-header,.sx-platform-header *{box-sizing:border-box}
.sx-platform-header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.98);backdrop-filter:blur(16px);border-bottom:1px solid var(--sx-line);font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--sx-ink)}
.sx-platform-header .wrap{width:min(var(--sx-wrap),calc(100% - 56px));margin:0 auto}
.sx-platform-global{height:76px;display:flex;align-items:center;gap:22px}
.sx-platform-brand{display:flex;align-items:center;gap:11px;min-width:290px;text-decoration:none;color:var(--sx-ink)}
.sx-platform-brand>img{width:36px;height:36px;object-fit:contain;display:block}
.sx-platform-brand-copy{display:grid;line-height:1}.sx-platform-brand-copy b{font-size:17px;letter-spacing:.04em}.sx-platform-brand-copy small{font-size:10px;letter-spacing:.15em;color:#738096;margin-top:5px;font-weight:800}.sx-platform-badge{display:inline-flex;align-items:center;height:28px;padding:0 10px;border-radius:8px;background:#edf4ff;color:#1768d5;font-size:12px;font-weight:800}
.sx-platform-global-nav{margin-left:auto;display:flex;align-items:center;gap:5px}.sx-platform-global-nav a{display:inline-flex;align-items:center;height:38px;padding:0 14px;border-radius:10px;text-decoration:none;color:#243247;font-size:13px;font-weight:750;white-space:nowrap}.sx-platform-global-nav a:hover{background:#f2f6fb}.sx-platform-global-nav a.active{background:#eaf2ff;color:#145fc4;box-shadow:inset 0 0 0 1px #d9e7fb}
.sx-platform-tools{display:flex;align-items:center;margin-left:10px}.sx-platform-lang{display:flex;align-items:center;gap:3px;padding:3px;border:1px solid #dce4ee;border-radius:11px;background:#f8fafc}.sx-platform-lang button,.sx-platform-lang a{height:30px;min-width:38px;padding:0 9px;border:0;border-radius:8px;background:transparent;color:#66758a;font:700 12px/1 inherit;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.sx-platform-lang button.active,.sx-platform-lang a.active{background:#0c223b;color:#fff;box-shadow:0 2px 6px rgba(12,34,59,.18)}
.sx-platform-subbar{border-top:1px solid #edf1f6;background:#fff}.sx-platform-subbar-row{min-height:48px;display:flex;align-items:center;gap:16px}.sx-platform-local-nav{display:flex;align-items:center;gap:4px;min-width:0;overflow-x:auto;scrollbar-width:none}.sx-platform-local-nav::-webkit-scrollbar{display:none}.sx-platform-local-nav a,.sx-platform-account>a,.sx-platform-signout{display:inline-flex;align-items:center;height:34px;padding:0 11px;border:0;border-radius:8px;background:transparent;color:#556478;font:700 12.5px/1 inherit;text-decoration:none;white-space:nowrap;cursor:pointer}.sx-platform-local-nav a:hover,.sx-platform-account>a:hover,.sx-platform-signout:hover{background:#f1f5fa;color:#183c69}.sx-platform-local-nav a.active,.sx-platform-account>a.active{background:#eaf2ff;color:#145fc4}.sx-platform-account{margin-left:auto;display:flex;align-items:center;gap:4px}.sx-platform-register{background:#1768d5!important;color:white!important}.sx-platform-signout{font-family:inherit}
/* Consistent main page frame when older pages have their own CSS */
.fix34-portal,.catalog-page,.relay-page,.tokens-page,.bug-report-page,.ai-cloud-page,.community-page{background:#f6f8fb!important}
.fix34-portal main,.catalog-page main,.relay-page main,.tokens-page main,.bug-report-page main,.ai-cloud-page main{position:relative}
/* Community: equal outer gutters */
.community-page .community-shell{width:min(1420px,calc(100% - 64px))!important;max-width:1420px!important;margin-left:auto!important;margin-right:auto!important;padding-left:0!important;padding-right:0!important}
.community-page .community-layout,.community-page .community-detail-layout{grid-template-columns:minmax(0,1fr) 260px!important;gap:18px!important}
@media(max-width:1100px){.sx-platform-brand{min-width:225px}.sx-platform-global-nav a{padding:0 10px}.sx-platform-header .wrap{width:min(100% - 30px,var(--sx-wrap))}}
@media(max-width:860px){.sx-platform-global{height:64px}.sx-platform-global-nav{display:none}.sx-platform-brand{min-width:0}.sx-platform-brand-copy small,.sx-platform-badge{display:none}.sx-platform-tools{margin-left:auto}.sx-platform-header .wrap{width:calc(100% - 24px)}.sx-platform-subbar-row{min-height:46px}.sx-platform-account{display:none}.community-page .community-shell{width:calc(100% - 28px)!important}.community-page .community-layout,.community-page .community-detail-layout{grid-template-columns:1fr!important}}
@media(max-width:520px){.sx-platform-lang button,.sx-platform-lang a{min-width:32px;padding:0 7px}.sx-platform-brand-copy b{font-size:14px}.sx-platform-brand>img{width:28px;height:28px}.sx-platform-local-nav a{padding:0 9px}}

/* =========================================================
   R11 Exact cross-site header + page-width normalization
   ========================================================= */
:root{--sx-wrap:1480px}
.sx-platform-header .wrap{
  width:min(1480px,calc(100% - 56px))!important;
  max-width:none!important;margin-left:auto!important;margin-right:auto!important;
  padding-left:0!important;padding-right:0!important;
}
.sx-platform-global{height:76px!important;gap:22px!important}
.sx-platform-brand{min-width:250px!important;gap:11px!important}
.sx-platform-brand>img{width:36px!important;height:36px!important}
.sx-platform-brand-copy b{font-size:17px!important;letter-spacing:.04em!important}
.sx-platform-brand-copy small{font-size:10px!important;letter-spacing:.15em!important;margin-top:5px!important;font-weight:800!important}
.sx-platform-global-nav{gap:5px!important}
.sx-platform-global-nav a{height:38px!important;padding:0 14px!important;border-radius:10px!important;font-size:14px!important;line-height:1!important;font-weight:700!important}
.sx-platform-global-nav a.active{background:#eaf2ff!important;color:#145fc4!important;box-shadow:inset 0 0 0 1px #d9e7fb!important}
.sx-platform-tools{gap:10px!important;margin-left:10px!important}
.sx-platform-lang{padding:3px!important;border-radius:11px!important;background:#f8fafc!important}
.sx-platform-lang button,.sx-platform-lang a{height:30px!important;min-width:38px!important;padding:0 9px!important;border-radius:8px!important;font-size:12px!important;line-height:1!important;font-weight:700!important;text-decoration:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
.sx-platform-lang button.active,.sx-platform-lang a.active{background:#0c223b!important;color:#fff!important}
/* Make old portal pages line up with the same 1480px shell. */
body:not(.auth-v2) > main.wrap,
.download-page .wrap,
.catalog-page .wrap,
.relay-page .wrap,
.tokens-page .wrap,
.bug-report-page .wrap,
.ai-cloud-page .wrap,
.fix34-portal .wrap,
.dev-page .wrap,
.community-page .community-shell{
  width:min(1480px,calc(100% - 56px))!important;
  max-width:1480px!important;
  margin-left:auto!important;margin-right:auto!important;
}
.community-page .community-shell{padding-left:0!important;padding-right:0!important}
.community-page .community-layout,.community-page .community-detail-layout{grid-template-columns:minmax(0,1fr) 260px!important;gap:18px!important}
@media(max-width:860px){
  .sx-platform-header .wrap{width:calc(100% - 24px)!important}
  .sx-platform-global{height:64px!important}
  body:not(.auth-v2) > main.wrap,.download-page .wrap,.catalog-page .wrap,.relay-page .wrap,.tokens-page .wrap,.bug-report-page .wrap,.ai-cloud-page .wrap,.fix34-portal .wrap,.dev-page .wrap,.community-page .community-shell{width:calc(100% - 28px)!important}
}


/* =========================================================
   R15: home spacing, legal page width, account history split
   ========================================================= */
/* Home: remove oversized blank bands between installer/releases and before footer. */
body:not(.auth-v2) .hero{padding-bottom:20px!important}
body:not(.auth-v2) .hero .install-block{margin-bottom:0!important}
body:not(.auth-v2) .release-section-q{padding-top:0!important;padding-bottom:24px!important}
body:not(.auth-v2) .release-section-q .release-block{padding-top:20px!important;padding-bottom:0!important}
body:not(.auth-v2) .release-section-q:last-of-type{margin-bottom:0!important}

/* Legal pages use the same 1480px shell as Platform pages. */
.legal-page .legal-hero.wrap,.legal-page .legal-layout.wrap{
  width:min(1480px,calc(100% - 56px))!important;
  max-width:1480px!important;
  margin-left:auto!important;margin-right:auto!important;
  padding-left:0!important;padding-right:0!important;
}
.legal-page .legal-layout{grid-template-columns:220px minmax(0,1fr)!important;gap:28px!important}
.legal-page .legal-content{min-width:0!important}

/* Account page follows the exact platform shell and splits subscriptions/purchases. */
.account-page .page-shell{width:min(1480px,calc(100% - 56px))!important;max-width:1480px!important;margin:0 auto!important}
.account-page .account-summary-r15{grid-template-columns:repeat(6,minmax(0,1fr))!important}
.account-page .purchase-history{margin-top:18px!important}
.account-page .subscription-history code{font:600 11px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#536176;word-break:break-all}
.account-page .subscription-table td strong+small{display:block;margin-top:4px;color:#7b8798;font-size:11px}
@media(max-width:1180px){.account-page .account-summary-r15{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:880px){
  .legal-page .legal-hero.wrap,.legal-page .legal-layout.wrap,.account-page .page-shell{width:calc(100% - 28px)!important}
  .legal-page .legal-layout{grid-template-columns:1fr!important}
  .account-page .account-summary-r15{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:560px){.account-page .account-summary-r15{grid-template-columns:1fr!important}}
