/* Bitget Asia header geometry, with the exchange's owned logo and typography. */
:root:has(.uh-reference-header){--site-header-desktop-height:72px}
.uh-reference-header{--site-header-background:#fff;--site-header-foreground:#111214;--site-header-border:#ededee;--site-header-hover:#f2f3f5;--header-panel:#fff;--header-muted:#77797f;--header-line:#dfe0e3;--header-panel-shadow:0 6px 24px #00000014}
:root[data-theme=dark] .uh-reference-header{--site-header-background:#080909;--site-header-foreground:#f4f5f7;--site-header-border:#1c1d20;--site-header-hover:#202124;--header-panel:#1b1b1d;--header-muted:#a3a4a9;--header-line:#4c4d52;--header-panel-shadow:none}
.uh-reference-header .uh-inner{height:var(--site-header-desktop-height);padding:0 24px;gap:0}
.uh-reference-header .uh-nav{margin-left:24px;gap:0}
.uh-reference-header .uh-nav a{padding:0 16px;font-size:16px;font-weight:500;gap:0;color:inherit}
.uh-reference-header .uh-actions{height:100%;gap:4px;margin-left:auto;align-items:center}
.uh-reference-header .uh-account-actions{gap:12px!important;margin-right:8px}
.uh-reference-header .uh-account-actions .uh-account-button{height:32px;min-height:32px;font-size:14px!important;padding:0 16px!important;border-radius:8px!important}
.uh-reference-header .uh-account-actions .uh-login,.uh-reference-header .uh-account-actions .uh-logout{color:var(--site-header-foreground)!important;background:transparent!important;border-color:transparent!important}
.uh-reference-header .uh-account-actions .uh-signup,.uh-reference-header .uh-account-actions .uh-mypage{background:#111214!important;border:0!important;color:#fff!important}
:root[data-theme=dark] .uh-reference-header .uh-account-actions .uh-signup,:root[data-theme=dark] .uh-reference-header .uh-account-actions .uh-mypage{background:#f4f5f7!important;color:#111214!important}
.uh-reference-header .uh-icon-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-width:32px;padding:6px;border:0;border-radius:8px;background:transparent;color:inherit;cursor:pointer;flex:none}
.uh-reference-header .uh-icon-button:hover,.uh-reference-header .uh-icon-button[aria-expanded=true]{background:var(--site-header-hover)}
.uh-reference-header .uh-icon-button:disabled{opacity:.32;cursor:not-allowed;background:transparent}
.uh-reference-header .uh-reference-icon{width:20px;height:20px;fill:currentColor;stroke:none;flex:none}
.uh-reference-header .uh-menu-button{display:none}
.uh-reference-header .uh-mobile-menu{top:var(--site-header-desktop-height)}
.uh-reference-header .member-notices{margin:0!important;align-self:stretch;display:flex;align-items:center}
.uh-reference-header .member-notice-bell{width:32px;height:32px}
.uh-reference-header [data-notice-badge]{top:7px;right:2px}
.uh-reference-tool{position:relative;height:100%;display:flex;align-items:center;flex:none}
.uh-reference-panel{position:absolute;top:100%;right:0;z-index:1200;color:var(--site-header-foreground);background:var(--header-panel);border-radius:12px;box-shadow:var(--header-panel-shadow);font-size:14px;line-height:1.4;animation:header-panel-enter .14s ease-out;transform-origin:top right}
.uh-reference-panel[hidden]{display:none!important}
.uh-reference-header :focus-visible{outline:2px solid #7799bb;outline-offset:3px}
.uh-download-panel{box-sizing:border-box;width:168px;padding:16px}
.uh-download-qr{display:block;position:relative;width:136px;height:136px;padding:6px;box-sizing:border-box;background:#fff;border-radius:8px;color:#080909;overflow:hidden}
.uh-download-qr [data-download-qr],.uh-download-qr svg{display:block;width:124px;height:124px}
.uh-qr-brand{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:28px;height:28px;background:#fff;border-radius:4px}
.uh-qr-brand img{display:block;width:24px;height:24px;object-fit:contain}
.uh-download-caption{margin:8px 0;text-align:center;font-size:12px;font-weight:500;line-height:1.4}
.uh-download-options{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:136px;height:32px;border:1px solid currentColor;border-radius:8px;text-decoration:none;color:inherit;font-size:12px;font-weight:500;white-space:nowrap}
.uh-download-options:hover{background:var(--site-header-hover)}
/* Owned terminal yellow and centered language selection. */
.uh-language-panel{width:360px;padding:20px;text-align:center}
/* The existing /future picker: compact rows, category underline and shared columns. */
.uh-search-panel{--picker-price:108px;--picker-change:88px;--picker-gap:10px;width:460px;max-width:calc(100vw - 24px);padding:0;border:1px solid var(--header-line);border-radius:4px;overflow:hidden;box-shadow:0 6px 20px #0002}
:root[data-theme=dark] .uh-search-panel{background:#181b21}
.uh-market-top{position:relative;display:flex;align-items:center;gap:8px;padding:12px 12px 8px}
.uh-market-search-icon{position:absolute;left:24px;top:20px;pointer-events:none;color:var(--header-muted)}
.uh-market-search-icon .uh-reference-icon{width:16px;height:16px}
.uh-search-panel input{box-sizing:border-box;min-width:0;width:100%;height:32px;padding:0 10px 0 36px;border:1px solid var(--header-line);border-radius:4px;background:var(--site-header-hover);color:inherit;font:12px var(--site-header-font)}
.uh-search-panel input:focus{border-color:#c89d13;outline:none}
.uh-market-close{display:grid;place-items:center;flex:0 0 28px;width:28px;height:32px;padding:0;border:0;border-radius:3px;background:transparent;color:var(--header-muted);cursor:pointer}
.uh-market-close:hover{background:var(--site-header-hover);color:inherit}
.uh-market-categories{display:flex;gap:16px;padding:0 12px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;border-bottom:1px solid var(--header-line)}
.uh-market-categories button{flex:none;padding:9px 0;border:0;border-bottom:2px solid transparent;background:none;color:var(--header-muted);font:500 12px var(--site-header-font);white-space:nowrap;cursor:pointer}
.uh-market-categories button[aria-selected=true]{color:inherit;border-bottom-color:#f0b90b}
.uh-market-columns{display:grid;grid-template-columns:minmax(0,1fr) var(--picker-price) var(--picker-change);gap:var(--picker-gap);padding:10px calc(12px + var(--picker-scrollbar,0px)) 8px 62px}
.uh-market-columns button{padding:0;border:0;background:none;color:var(--header-muted);font:11px var(--site-header-font);text-align:right;white-space:nowrap;cursor:pointer}
.uh-market-columns button:first-child{text-align:left}
.uh-market-columns button:after{content:' ↕';opacity:.5}
.uh-market-columns button[data-direction=ascending]:after{content:' ↑';color:#c89d13;opacity:1}
.uh-market-columns button[data-direction=descending]:after{content:' ↓';color:#c89d13;opacity:1}
.uh-search-panel [role=status]{margin:0;padding:24px 12px;text-align:center;color:var(--header-muted);font-size:12px}
.uh-search-panel [role=status]:empty{display:none}
.uh-market-list{max-height:min(396px,calc(100dvh - var(--site-header-desktop-height) - 160px));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-bottom:6px}
.uh-market-row{display:grid;grid-template-columns:16px minmax(0,1fr);gap:8px;align-items:center;min-height:36px;padding:0 12px}
.uh-market-row:hover,.uh-market-row:has([aria-current]){background:var(--site-header-hover)}
.uh-market-favorite{display:grid;place-items:center;width:16px;height:32px;padding:0;border:0;background:none;color:var(--header-muted);cursor:pointer}
.uh-market-favorite svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.5}
.uh-market-favorite[aria-pressed=true]{color:#d8a600}
.uh-market-favorite[aria-pressed=true] svg{fill:currentColor}
.uh-market-select{display:grid;grid-template-columns:16px minmax(0,1fr) var(--picker-price) var(--picker-change);gap:var(--picker-gap);align-items:center;min-width:0;width:100%;padding:8px 0;color:inherit;text-decoration:none;font:12px/20px var(--site-header-font)}
.uh-market-icon,.uh-market-icon img{display:block;width:16px;height:16px;object-fit:contain;font-size:9px;line-height:16px}
.uh-market-symbol{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:550}
.uh-market-price,.uh-market-change{text-align:right;white-space:nowrap;font-weight:500;font-variant-numeric:tabular-nums}
.uh-market-change{font-size:12px;color:var(--header-muted)}
.uh-market-change[data-direction=up]{color:#0ecb81}
.uh-market-change[data-direction=down]{color:#f6465d}
/* Sidebar wordmark and navigation share one continuous horizontal divider. */
@media(min-width:701px){
 :root.asset-workspace:has(.uh-reference-header) .aa-brand{height:var(--site-header-desktop-height);min-height:var(--site-header-desktop-height)}
 :root.asset-workspace .uh-reference-header{border-bottom-color:var(--aa-line)}
}
.uh-reference-header .member-notice-panel{top:var(--site-header-desktop-height);border-radius:12px;background:var(--header-panel);color:var(--site-header-foreground);box-shadow:var(--header-panel-shadow)}
@keyframes header-panel-enter{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1100px){.uh-reference-header .uh-nav a{padding:0 7px}.uh-reference-header .uh-account-actions{gap:4px!important}}
@media(max-width:980px){.uh-reference-header .uh-menu-button{display:inline-flex}}
@media(max-width:600px){
 .uh-reference-header .uh-inner{padding:0 12px}
 .uh-reference-header .uh-brand .site-brand{width:96px!important}
 .uh-reference-header .uh-brand .site-brand img{max-width:96px;width:96px;height:30px;object-fit:contain}
 .uh-reference-header .uh-actions{gap:0!important}
 .uh-reference-header .uh-icon-button,.uh-reference-header .member-notice-bell{width:44px;height:44px;min-width:44px;padding:12px}
 .uh-reference-header [data-notice-badge]{top:6px;right:5px}
 .uh-search-panel{--picker-price:90px;--picker-change:76px;--picker-gap:8px;position:fixed;top:var(--site-header-desktop-height);left:12px;right:12px;width:auto}
 .uh-market-top{padding:10px}
 .uh-market-search-icon{left:22px;top:18px}
 .uh-market-row{padding:0 10px;gap:6px}
 .uh-market-columns{padding-left:56px;padding-right:calc(10px + var(--picker-scrollbar,0px))}
 .uh-market-select{min-height:44px}
 .uh-market-favorite{height:44px}
 .uh-language-panel{position:fixed;top:var(--site-header-desktop-height);left:12px;right:12px;width:auto;padding:16px}
 .uh-reference-header .member-notice-panel{top:var(--site-header-desktop-height);left:12px;right:12px;width:auto;max-width:none}
}
@media(prefers-reduced-motion:reduce){.uh-reference-panel{animation:none}}

/* Match account headers to their existing surface palette. */
:root.asset-workspace[data-theme] .uh-reference-header{
 --site-header-background:var(--aa-panel);
 --site-header-foreground:var(--aa-ink);
 --site-header-border:var(--aa-line);
 --site-header-hover:var(--aa-soft);
 --header-panel:var(--aa-panel);
 --header-muted:var(--aa-muted);
 --header-line:var(--aa-line);
}
.uh-reference-header [data-theme-toggle] span{line-height:0}
@media(max-width:380px){
 .uh-reference-header .uh-brand .site-brand{width:84px!important}
 .uh-reference-header .uh-brand .site-brand img{width:84px;max-width:84px}
 .uh-reference-header .uh-icon-button,.uh-reference-header .member-notice-bell{width:40px;min-width:40px;height:44px;padding:12px 10px}
}

/* Member mobile web full navigation uses the existing header theme. */
.uh-mobile-link-icon,.uh-mobile-close-icon{display:none}
@media(max-width:768px){
 .uh-reference-header [data-mobile-menu-web]{top:var(--site-header-desktop-height);max-height:calc(100dvh - var(--site-header-desktop-height) - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;padding:12px 16px calc(16px + env(safe-area-inset-bottom));background:var(--site-header-background);color:var(--site-header-foreground);border-top:1px solid var(--site-header-border);box-shadow:0 12px 24px #00000014}
 .uh-reference-header [data-mobile-menu-web]>a{min-height:52px;gap:14px;padding:10px 12px;font-size:15px;line-height:1.5;border:0;border-radius:6px;color:inherit;white-space:normal;overflow-wrap:anywhere}
 .uh-reference-header [data-mobile-menu-web]>a:hover{background:var(--site-header-hover)}
 .uh-reference-header [data-mobile-menu-web] .uh-mobile-link-icon{display:block;flex:none;width:20px;height:20px}
 .uh-reference-header [data-mobile-menu-web] .uh-mobile-auth{gap:10px;margin-top:10px;padding-top:16px;border-top:1px solid var(--site-header-border)}
 .uh-reference-header [data-mobile-menu-web] .uh-mobile-auth>form{display:flex;min-width:0;margin:0}
 .uh-reference-header [data-mobile-menu-web] .uh-mobile-auth a,.uh-reference-header [data-mobile-menu-web] .uh-mobile-auth .uh-logout{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px 12px;display:flex;align-items:center;justify-content:center;border:1px solid var(--site-header-border);border-radius:6px;background:var(--site-header-hover);color:var(--site-header-foreground);font:inherit;font-size:14px;line-height:1.5;text-align:center;white-space:normal;overflow-wrap:anywhere}
 .uh-reference-header [data-mobile-menu-web] :is(a,button):focus-visible{outline:2px solid currentColor;outline-offset:-3px}
 .uh-reference-header [data-mobile-menu-toggle][data-menu-close-label][aria-expanded=true]>.uh-reference-icon{display:none}
 .uh-reference-header [data-mobile-menu-toggle][data-menu-close-label][aria-expanded=true]>.uh-mobile-close-icon{display:block}
}

/* Six header controls must also fit beside the logo on 320px phones. */
@media(max-width:360px) {
 .uh-reference-header .uh-inner { padding-inline:8px; }
 .uh-reference-header .uh-brand .site-brand { width:72px!important; }
 .uh-reference-header .uh-brand .site-brand img { width:72px; max-width:72px; }
 .uh-reference-header :is(.uh-icon-button,.member-notice-bell) { width:36px; min-width:36px; padding-inline:8px; }
}

/* Branded image dimensions must respect the compact header control layout. */
@media(max-width:600px){
 [data-unified-header].uh-reference-header .uh-brand .site-brand,
 [data-unified-header].uh-reference-header .uh-brand .site-brand img{width:88px!important;max-width:88px!important}
}

@media(max-width:380px){
 [data-unified-header].uh-reference-header .uh-brand .site-brand,
 [data-unified-header].uh-reference-header .uh-brand .site-brand img{width:84px!important;max-width:84px!important}
}
@media(max-width:360px){
 [data-unified-header].uh-reference-header .uh-brand .site-brand,
 [data-unified-header].uh-reference-header .uh-brand .site-brand img{width:72px!important;max-width:72px!important}
}
@media(max-width:360px){
 [data-unified-header].uh-reference-header .uh-actions :is(.uh-icon-button,.member-notice-bell){width:32px;min-width:32px;padding-inline:6px}
 [data-unified-header].uh-reference-header .uh-actions .member-notices{margin-inline:0}
}

/* Let the longer original wordmark shrink only into the space left by header controls. */
.uh-header[data-unified-header].uh-reference-header .uh-brand{flex:0 1 184px;min-width:72px;max-width:184px}
.uh-header[data-unified-header].uh-reference-header .uh-brand .site-brand,
.uh-header[data-unified-header].uh-reference-header .uh-brand .site-brand img{width:100%!important;max-width:100%!important}
