.auth-header{position:fixed;top:0;left:0;right:0;z-index:50;height:76px;padding:0 28px 0 24px;display:flex;align-items:center;border-bottom:1px solid #e1e7ef;background:#fff;color:#0a2540}.auth-brand{width:232px;display:grid;gap:3px;color:inherit;text-decoration:none}.auth-brand strong{font-size:25px;line-height:1;font-weight:850;letter-spacing:-.05em}.auth-brand small{color:#718096;font-size:8px;font-weight:650;white-space:nowrap}.auth-nav-toggle{display:none;margin-left:auto;padding:9px 11px;border:1px solid #d8dee7;border-radius:9px;background:#fff;color:#0a2540;font:inherit;font-size:13px;font-weight:750;cursor:pointer}.auth-nav-toggle span{margin-right:6px}.auth-nav{position:fixed;top:76px;bottom:0;left:0;z-index:42;width:256px;padding:22px 14px;border-right:1px solid #e1e7ef;background:#fff;overflow-y:auto}.auth-nav a{display:flex;align-items:center;min-height:44px;padding:10px 14px;border-radius:9px;color:#526174;font-size:14px;font-weight:700;text-decoration:none}.auth-nav a:hover{color:#0a2540;background:#f5f7fb}.auth-nav a[aria-current="page"]{color:#3129b8;background:#efeeff}.auth-nav-section{margin:20px 14px 7px;color:#8793a5;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.auth-nav-section:first-child{margin-top:0}.auth-profile{position:relative;margin-left:auto}.auth-profile-button{display:flex;align-items:center;gap:12px;padding:0;border:0;background:transparent;color:#0a2540;font:inherit;font-weight:750;cursor:pointer}.auth-avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#e9e7ff;color:#5149e8;font-weight:800;object-fit:cover}.auth-chevron{color:#718096;font-size:11px}.auth-menu{position:absolute;top:52px;right:0;z-index:55;width:272px;padding:8px;border:1px solid #d8dee7;border-radius:12px;background:#fff;box-shadow:0 16px 38px #0a254029}.auth-menu[hidden]{display:none}.auth-menu-user{margin-bottom:6px;padding:12px;border-radius:9px;background:#f6f8fb}.auth-menu-user strong,.auth-menu-user small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.auth-menu-user small{margin-top:3px;color:#697386;font-size:12px;font-weight:500}.auth-menu-settings,.auth-menu-signout{display:flex;align-items:center;gap:10px;width:100%;min-height:42px;padding:9px 11px;border:0;border-radius:8px;background:transparent;color:#43526a;font:inherit;font-size:13px;font-weight:700;text-align:left;text-decoration:none;cursor:pointer}.auth-menu-settings:hover{background:#f1f3f7;color:#5149e8}.auth-menu-icon{width:18px;height:18px;flex:0 0 auto}.auth-menu-divider{height:1px;margin:5px 4px;background:#e1e7ef}.auth-menu-signout{color:#9f241c}.auth-menu-signout:hover{background:#fff1f0}html.authenticated-page body,body.authenticated-layout{padding:76px 0 0 256px}body.authenticated-layout>.auth-header{margin-left:0}
.auth-footer{margin-top:56px;padding:24px clamp(24px,4vw,64px);display:grid;grid-template-columns:minmax(190px,1fr) auto auto;align-items:center;gap:28px;border-top:1px solid #e1e7ef;background:#fff;color:#697386;font:500 12px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.auth-footer-brand{display:grid;gap:2px}.auth-footer-brand strong{color:#0a2540;font-size:20px;line-height:1;font-weight:850;letter-spacing:-.05em}.auth-footer-brand span{font-size:8px;font-weight:650}.auth-footer-brand small{margin-top:7px;color:#8793a5;font-size:11px}.auth-footer-meta{display:flex;align-items:center;gap:24px}.auth-footer-meta nav{display:flex;gap:18px}.auth-footer a{color:#526174;font-weight:650;text-decoration:none}.auth-footer a:hover{color:#3129b8}.auth-footer .footer-language-picker{margin:0;justify-self:end}.auth-footer .language-picker select{height:38px;padding:0 30px 0 12px;border:1px solid #cfd5df;border-radius:8px;background:#fff;color:#0a2540;font:700 12px Inter,system-ui;cursor:pointer}.auth-footer .language-picker select:focus-visible{outline:3px solid rgba(81,72,237,.24);outline-offset:2px}.auth-footer .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:920px){html.authenticated-page body,body.authenticated-layout{padding:72px 0 0}body.authenticated-layout>.auth-header{margin-left:0}.auth-header{height:72px;padding:0 18px;gap:12px}.auth-brand{width:auto}.auth-nav-toggle{display:block}.auth-nav{top:72px;right:0;bottom:0;width:min(86vw,320px);padding:18px 14px;display:block;transform:translateX(-105%);visibility:hidden;box-shadow:16px 20px 40px #0a254020;transition:transform .2s ease,visibility .2s}.auth-nav.open{transform:translateX(0);visibility:visible}.auth-nav-section{margin-top:16px}.auth-profile-name{display:none}.auth-menu{right:0}}
@media(max-width:760px){.auth-footer{margin-top:40px;padding:22px 20px;grid-template-columns:1fr auto;gap:20px}.auth-footer-meta{grid-column:1/-1;grid-row:2;align-items:flex-start;justify-content:space-between}.auth-footer .footer-language-picker{grid-column:2;grid-row:1}.auth-footer-brand small{margin-top:5px}}
@media(max-width:520px){.auth-brand small{display:none}.auth-nav-toggle{font-size:0}.auth-nav-toggle span{margin:0;font-size:18px}.auth-avatar{width:38px;height:38px}.auth-footer-meta{display:grid;gap:10px}.auth-footer-meta nav{gap:14px;flex-wrap:wrap}}

/* The selector navigates between isolated services; it never mutates the chain in place. */
.auth-environment{position:relative;margin-left:auto;margin-right:24px}.auth-profile{margin-left:0}.auth-environment-button{min-height:38px;padding:8px 11px;display:flex;align-items:center;gap:8px;border:1px solid #d8dee7;border-radius:9px;background:#fff;color:#425466;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.auth-environment-button:disabled{color:#8793a5;cursor:wait}.auth-environment-dot{width:7px;height:7px;border-radius:50%;background:#e3a41c}.auth-environment[data-environment="mainnet"] .auth-environment-button{border-color:#f1b8b2;background:#fff7f5;color:#9f241c}.auth-environment[data-environment="mainnet"] .auth-environment-dot{background:#d9362b}.auth-environment-menu{position:absolute;top:46px;right:0;z-index:55;width:210px;padding:7px;border:1px solid #d8dee7;border-radius:11px;background:#fff;box-shadow:0 16px 38px #0a254029}.auth-environment-menu[hidden]{display:none}.auth-environment-menu button{width:100%;min-height:48px;padding:9px 10px;display:grid;gap:2px;border:0;border-radius:8px;background:transparent;color:#0a2540;font:inherit;text-align:left;cursor:pointer}.auth-environment-menu button:hover:not(:disabled){background:#f5f7fb}.auth-environment-menu button[aria-current="true"]{background:#efeeff;color:#3129b8}.auth-environment-menu button:disabled:not([aria-current="true"]){color:#9aa5b4;cursor:not-allowed}.auth-environment-menu span{font-size:13px;font-weight:800}.auth-environment-menu small{font-size:11px;color:#718096}
@media(max-width:920px){.auth-environment{margin-left:auto;margin-right:0}}
@media(max-width:600px){.auth-environment-button{padding:8px}.auth-environment-label{max-width:58px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.auth-environment-menu{position:fixed;top:66px;right:14px}}

/* Grouped sidebar hierarchy; keep the existing XAPG colors. */
.auth-nav{padding:18px 16px 30px}
.auth-nav-group{padding:14px 0 18px}
.auth-nav-group:first-child{padding-top:0}
.auth-nav-group+.auth-nav-group{border-top:1px solid #e1e7ef;padding-top:20px}
.auth-nav-section{margin:0 14px 9px;color:#0a2540;font-size:14px;font-weight:800;letter-spacing:0;text-transform:none}
.auth-nav-links{display:grid;gap:3px}
.auth-doc-groups{display:grid;gap:18px}
.auth-doc-groups[hidden]{display:none!important}
.auth-doc-group-label{margin:0 14px 5px;color:#8793a5;font-size:10px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.auth-doc-group .auth-nav-links{gap:1px}
.auth-doc-group .auth-nav a{min-height:34px;padding:7px 14px;font-size:13px}
.auth-nav a{min-height:40px;padding:9px 14px;border-radius:12px;font-weight:600}
.auth-nav a[aria-current="page"]{font-weight:750}
.auth-nav-section-toggle{display:flex;align-items:center;justify-content:space-between;width:calc(100% - 28px);padding:0;border:0;background:transparent;color:#0a2540;font:inherit;font-size:14px;font-weight:800;text-align:left;cursor:pointer}
.auth-nav .auth-nav-section-toggle{font-size:14px;font-weight:800}
.auth-nav-section-toggle:hover,.auth-nav-section-toggle:focus-visible{color:#3129b8}
.auth-nav-section-toggle:focus-visible{outline:2px solid #aaa6ff;outline-offset:5px;border-radius:4px}
.auth-nav-group-chevron{display:inline-block;margin-left:12px;color:#718096;font-size:16px;line-height:1;transition:transform .18s ease}
.auth-nav-section-toggle[aria-expanded="false"] .auth-nav-group-chevron{transform:rotate(-90deg)}
.auth-nav-links[hidden]{display:none!important}
.auth-nav a[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){.auth-nav-group-chevron{transition:none}}

/* Keep the workspace chrome visually fixed during same-origin page navigation. */
@view-transition{navigation:auto}
.auth-header{view-transition-name:xapg-workspace-header}
.auth-nav{view-transition-name:xapg-workspace-sidebar}
.auth-footer{view-transition-name:xapg-workspace-footer}
body.authenticated-layout>main{view-transition-name:xapg-workspace-content}
::view-transition-group(xapg-workspace-header),::view-transition-group(xapg-workspace-sidebar),::view-transition-group(xapg-workspace-footer){animation-duration:0s}
::view-transition-old(xapg-workspace-header),::view-transition-new(xapg-workspace-header),::view-transition-old(xapg-workspace-sidebar),::view-transition-new(xapg-workspace-sidebar),::view-transition-old(xapg-workspace-footer),::view-transition-new(xapg-workspace-footer){animation:none}
::view-transition-old(xapg-workspace-content){animation:xapg-content-out 90ms ease both}
::view-transition-new(xapg-workspace-content){animation:xapg-content-in 170ms ease 35ms both}
@keyframes xapg-content-out{to{opacity:0;transform:translateY(-3px)}}
@keyframes xapg-content-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){::view-transition-old(xapg-workspace-content),::view-transition-new(xapg-workspace-content){animation:none}}
html.authenticated-page,html.authenticated-page body.authenticated-layout{background:#f8fafc}
html.xapg-no-view-transition body.authenticated-layout>main{animation:xapg-content-in 170ms ease both}
@media(prefers-reduced-motion:reduce){html.xapg-no-view-transition body.authenticated-layout>main{animation:none}}
body.authenticated-layout .shell>.brand,body.authenticated-layout .shell>.topbar,body.authenticated-layout .wrap>.head,body.authenticated-layout>.portal-header,body.authenticated-layout>.site-header{display:none!important}

/* Documentation has its own chapter navigation, separate from the workspace menu. */
body.authenticated-layout.documentation-layout{padding:76px 208px 0 224px}
.documentation-layout .auth-nav{width:224px;padding:24px 16px}
.documentation-layout .auth-doc-groups{gap:8px}
.documentation-layout .auth-doc-group-label{margin:0;padding:12px 8px;color:#263d55;font-size:13px;font-weight:750;letter-spacing:0;text-transform:none;cursor:pointer}
.documentation-layout .auth-doc-group-label[aria-current]{color:#5149e8}
.documentation-layout .auth-nav-section{margin:0 8px 20px;font-size:15px}
.documentation-layout .auth-nav a{min-height:34px;padding:8px 12px;font-size:12px;border-radius:7px}
.documentation-layout .auth-doc-group .auth-nav-links{padding:0 0 8px 8px;border-left:1px solid #e1e7ef;margin-left:10px}
.documentation-layout .auth-brand{width:auto;min-width:100px;margin-right:24px}
.docs-page-toc{position:fixed;z-index:10;background:#f8fafc;right:0;top:100px;bottom:24px;width:208px;padding:12px 20px;border-left:1px solid #e1e7ef;overflow-y:auto;color:#526174;font:500 12px/1.6 Inter,system-ui}
.docs-page-toc strong{color:#263d55;font-size:12px;font-weight:750}
.docs-page-toc p{margin:8px 0 12px;color:#718096;font-size:11px}
.docs-page-toc a{display:block;padding:7px 0 7px 12px;border-left:2px solid transparent;color:#526174;text-decoration:none;overflow-wrap:anywhere}
.docs-page-toc a:hover{color:#3129b8}
.docs-page-toc a[aria-current]{border-left-color:#635bff;color:#5149e8;font-weight:700}
body.documentation-layout .documentation-page{padding:28px 28px 40px}
body.documentation-layout .docs-hero{text-align:left;padding:0}
body.documentation-layout .docs-hero h1{font-size:36px}
body.documentation-layout .docs-hero p{margin-left:0;font-size:16px}
body.documentation-layout .docs{padding:24px;min-width:0;box-shadow:none}
body.documentation-layout .auth-footer{padding:24px;display:flex;flex-wrap:wrap;gap:20px}
.documentation-layout .auth-footer-meta{flex-wrap:wrap;gap:12px}
.documentation-layout .auth-footer-meta nav{flex-wrap:wrap}
@media(max-width:1150px){
  body.authenticated-layout.documentation-layout{padding-right:0}
  .docs-page-toc{display:none}
  .documentation-layout .auth-brand small{display:none}
  .documentation-layout .auth-brand{min-width:0;margin-right:16px}
  .documentation-layout .auth-profile-name{display:none}
}
@media(max-width:920px){
  body.authenticated-layout.documentation-layout{padding:72px 0 0}
  .documentation-layout .auth-header{height:72px;align-items:center;padding-top:0}
  .documentation-layout .auth-brand{padding-top:6px}
  .documentation-layout .auth-nav{top:72px;width:min(86vw,320px)}
  .documentation-layout .auth-nav-toggle{order:1;margin-left:0}
  .documentation-layout .auth-environment{margin-left:0}
  .documentation-layout .auth-profile-button{gap:0}
  body.documentation-layout .documentation-page{padding:24px 16px}
  body.documentation-layout .docs [id]{scroll-margin-top:104px}
  body.documentation-layout .docs-hero h1{font-size:30px}
}

.docs-mobile-toc{display:none}
@media(max-width:1150px){.docs-mobile-toc{display:block;margin-top:20px;padding:16px 8px;border-top:1px solid #e1e7ef;font-size:12px}.docs-mobile-toc p{color:#718096}}

@media(max-width:520px){
  .documentation-layout .auth-header{gap:8px}
  .documentation-layout .auth-brand{margin-right:0}
  .documentation-layout .auth-brand strong{font-size:22px}
  .documentation-layout .auth-nav-toggle{font-size:0;padding:8px;min-height:36px}
  .documentation-layout .auth-nav-toggle span{font-size:16px;margin:0}
  .documentation-layout .auth-avatar{width:32px;height:32px}
}

.documentation-layout .docs-product-tools{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #e1e7ef}
.documentation-layout .docs-product-tools .auth-nav-group{padding:0}
.documentation-layout .docs-product-tools .auth-nav-section{margin-bottom:10px}
