/* 108map · one header for every page (owner 2026-11-20): the five main tools sit in the middle and never move; "Giới thiệu", the account and the language button are always the top-right group, in that order. */
.sh{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;column-gap:12px;box-sizing:border-box;width:100%;max-width:1600px;margin:0 auto;padding:8px 16px;min-height:56px;position:relative;z-index:5;font-size:13px}
.sh .brand{justify-self:start;display:inline-flex;align-items:center;font-size:24px;font-weight:800;letter-spacing:-1.2px;line-height:1;color:var(--text,#E8ECF1);text-decoration:none;white-space:nowrap}
.sh .brand span{font-weight:400}
.sh .brand b{background:#fff;color:#0D0F12;border-radius:.2em;padding:.14em .24em .16em;margin-right:.2em;font-weight:800}
.sh .sh-main{display:flex;align-items:center;justify-content:center;gap:6px;margin:0;font-size:13px}
.sh .sh-main a{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border:1px solid var(--line2,#2A303A);border-radius:6px;background:#1B1F26;color:var(--text,#E8ECF1);font-size:13px;font-weight:600;line-height:1;white-space:nowrap;text-decoration:none}
.sh .sh-main a:hover{border-color:#fff;background:#1B1F26;color:var(--text,#E8ECF1)}
.sh .sh-main a[aria-current=page]{background:#fff;border-color:#fff;color:#0D0F12}
.sh .sh-right{justify-self:end;display:flex;align-items:center;gap:8px}
.sh .sh-right>a{display:inline-flex;align-items:center;min-height:34px;padding:0 8px;border:0;border-radius:6px;background:none;color:var(--muted,#9AA3AF);font-size:13px;font-weight:600;white-space:nowrap;text-decoration:none}
.sh .sh-right>a:hover,.sh .sh-right>a[aria-current=page]{color:var(--text,#E8ECF1)}
.sh #lang-toggle{box-sizing:border-box;height:34px;display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:40px;min-height:34px;padding:0 10px;border:1px solid var(--line2,#2A303A);border-radius:6px;background:#1B1F26;color:var(--text,#E8ECF1);font-family:inherit;font-size:13px;font-weight:700;line-height:1;letter-spacing:.02em;text-decoration:none;cursor:pointer}
.sh #lang-toggle:hover{border-color:#fff}
/* owner 2026-11-24: light / dark button, same box as the language button, always last */
.sh #theme-toggle{order:9;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:1px solid var(--line2,#2A303A);border-radius:6px;background:#1B1F26;color:var(--text,#E8ECF1);cursor:pointer}
.sh #theme-toggle:hover{border-color:#fff}
.ct-focus .sh,.chart-body.rail-open .sh{display:none}
/* owner 2026-11-20: the right group always hugs the right edge (also when a page has no centre nav, e.g. the landing page); avatar 31px, language button the same height */
.sh .sh-right{grid-column:-2/-1}
.sh #acct>button{min-height:40px!important}
.sh #acct>button:has(.av){box-sizing:border-box;min-width:40px;padding:0 4px!important;justify-content:center}   /* avatar button and Vi are the same square */
.sh #lang-toggle{height:40px;min-height:40px;min-width:40px}
@media(max-width:820px){
 .sh{grid-template-columns:minmax(0,1fr) auto;row-gap:6px;padding:8px 12px 6px}
 .sh .brand{font-size:22px}
 .sh .sh-main{grid-column:1/-1;grid-row:2;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
 .sh .sh-main::-webkit-scrollbar{display:none}
 .sh .sh-main a:first-child{margin-left:auto}.sh .sh-main a:last-child{margin-right:auto}
 .sh .sh-main a{flex:none}
}
/* owner 2026-11-29: on a computer the Radar and Heatmap headers run to the screen edges, like the chart: logo far left, the right group far right, the page tabs stay in the middle */
@media(min-width:1001px){.radar-body .sh,.hm-body .sh{max-width:none;padding-left:16px;padding-right:16px}.radar-body .sh{padding-left:20px;padding-right:20px}}
/* owner 2026-11-20: every header target a finger can hit is 44px tall on phones, upright or sideways */
@media(max-width:820px),(pointer:coarse) and (max-height:520px){
 .sh .sh-main a,.sh .sh-right>a{min-height:44px}
 .sh #lang-toggle{height:44px;min-height:44px;min-width:44px}
 .sh #acct>button{min-height:44px!important}
 .sh #acct>button:has(.av){min-width:44px}
 .sh .brand{min-height:44px}
}
/* owner 2026-11-21 (phương án B): a phone held sideways — the header stays at hand: it slides away while you scroll down and comes back as soon as you scroll up (site-header.js sets .sh-up / .sh-away). */
@media(pointer:coarse) and (max-height:520px){
 body:not(.home):not(.chart-body) .sh{position:sticky;top:0;z-index:40;background:var(--bg,#101215);transition:transform .2s ease}
 body:not(.home):not(.chart-body) .sh.sh-away{transform:translateY(-100%)}
}
/* owner 2026-11-21: the "Updated" line only speaks when something is wrong (data paused or not live) */
#data-time.status-live{display:none}
/* Touch screens: small text links (footer, founder email, bot link, "Tất cả coin Futures") were 16-22px tall (PC QA 2026-11-23). Vertical padding on an inline link
   widens what a finger can hit without moving a single line of text. */
@media (pointer:coarse){footer a,main p a,.legal a{padding:9px 0}}
/* QA 24/11: the empty status line no longer holds 35 px at load and then vanishes (Radar CLS on phones) */
#data-time:empty{display:none}
/* The stored-snapshot line shows only if live prices have not arrived 5 s after opening: normally live comes first and the line never flashes in and out */
html:not(.ts-ready) #data-time.status-stored{display:none}

/* ---- light theme, generated by scripts/light_theme.mjs (do not edit by hand) ---- */
html[data-theme=light] .sh .brand{color:var(--text,#516885);text-decoration:none}
html[data-theme=light] .sh .brand b{background:#1B1A17;color:#F3EEE4}
html[data-theme=light] .sh .sh-main a{border:1px solid var(--line2,#D6D0C2);background:#FAF7F1;color:var(--text,#516885);text-decoration:none}
html[data-theme=light] .sh .sh-main a:hover{border-color:#1B1A17;background:#FAF7F1;color:var(--text,#516885)}
html[data-theme=light] .sh .sh-main a[aria-current=page]{background:#1B1A17;border-color:#1B1A17;color:#F3EEE4}
html[data-theme=light] .sh .sh-right>a{border:0;background:none;color:var(--muted,#65625B);text-decoration:none}
html[data-theme=light] .sh .sh-right>a:hover,html[data-theme=light] .sh .sh-right>a[aria-current=page]{color:var(--text,#516885)}
html[data-theme=light] .sh #lang-toggle{border:1px solid var(--line2,#D6D0C2);background:#FAF7F1;color:var(--text,#516885);text-decoration:none}
html[data-theme=light] .sh #lang-toggle:hover{border-color:#1B1A17}
html[data-theme=light] .sh #theme-toggle{border:1px solid var(--line2,#D6D0C2);background:#FAF7F1;color:var(--text,#516885)}
html[data-theme=light] .sh #theme-toggle:hover{border-color:#1B1A17}
@media(pointer:coarse) and (max-height:520px){html[data-theme=light] body:not(.home):not(.chart-body) .sh{background:var(--bg,#F3EEE4)}
}
