:root{color-scheme:dark;--bg:#1b2535;--panel:#2a384d;--line:#5a708e;--muted:#bdcadd;--text:#f5f8fc;--accent:#d5f58b;--up:#35d4a0;--down:#fa6681;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:16px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}header{background:#243249;height:78px;padding:0 max(24px,calc((100vw - 1320px)/2));border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:12px;letter-spacing:1px}.brand b{font-size:20px}.brand b span{font-weight:400;color:var(--muted);font-size:16px}.brand-icon{color:var(--bg);background:var(--accent);border-radius:8px;padding:3px 9px;font-size:26px}.connection{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted)}.connection i{width:7px;height:7px;border-radius:50%;background:#e4b95b}.connection i.live{background:var(--up)}main{max-width:1368px;margin:auto;padding:34px 24px 24px}.page-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.eyebrow{font-size:12px;letter-spacing:2px;color:var(--accent);margin-bottom:8px}h1{font-size:27px;font-weight:600;letter-spacing:-.5px;margin:0}h1 span{font-size:16px;font-weight:400;color:var(--muted);margin-left:16px}.market-label{font-size:14px;color:var(--muted)}.markets{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:24px}.market{position:relative;text-align:left;background:#354862;border:2px solid #627d9f;box-shadow:0 5px 16px #0c142326;border-radius:14px;padding:20px 24px;transition:border-color .15s,background .15s}.market:hover{background:#425a79;border-color:#a5bcd8}.market.active{--muted:#455533;--up:#086337;--down:#a72045;color:#202d17;border-color:#e4ffb3;background:#d5f58b;box-shadow:0 0 0 2px #d5f58b26,0 8px 22px #0c14232e}.market.active:hover{background:#e0ffa1;border-color:#efffd5}.market-top{display:flex;align-items:center;gap:12px}.coin{font-size:28px;width:42px;height:42px;display:grid;place-items:center;border-radius:50%;flex-shrink:0}.btc{background:#382b16;color:#f5b655}.eth{background:#252c48;color:#a0afff}.market strong{font-size:17px}.market small{font-size:14px;color:var(--muted);font-weight:400}.market em{display:block;color:var(--muted);font-style:normal;font-size:12px;margin-top:4px}.selected-mark{margin-left:auto;color:#ecffd2;background:#344c1e;border-radius:6px;padding:5px 9px;font-size:13px;font-weight:600;white-space:nowrap;visibility:hidden}.active .selected-mark{visibility:visible}.market-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px}.market-bottom b{font-size:29px;font-weight:550;font-variant-numeric:tabular-nums;letter-spacing:-1px}.market-bottom>span{font-size:14px}.up{color:var(--up)!important}.down{color:var(--down)!important}.chart-panel{background:var(--panel);border:1px solid var(--line);box-shadow:0 8px 28px #0c142338;border-radius:16px;overflow:hidden}.chart-heading{background:#33465f;display:flex;justify-content:space-between;align-items:center;padding:24px 26px;gap:24px}h2{font-size:17px;margin:0 0 10px}h2 span{color:var(--muted);font-size:12px;font-weight:400;margin-left:7px;border:1px solid var(--line);border-radius:4px;padding:2px 6px}.big-price{display:flex;align-items:center;gap:16px}.big-price strong{font-size:32px;font-weight:550;font-variant-numeric:tabular-nums}.big-price>span{font-size:14px}.stats{display:flex;gap:36px}.stats div{display:grid;gap:9px}.stats span{font-size:12px;color:var(--muted)}.stats em{font-style:normal}.stats b{font-size:15px;font-weight:500;font-variant-numeric:tabular-nums}.toolbar{background:#233147;display:flex;align-items:center;justify-content:space-between;padding:11px 24px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);gap:12px}.periods{display:flex;gap:8px}.toolbar button{background:#3a4e6a;border:1px solid #657f9f;border-radius:6px;padding:10px 15px;font-size:14px;color:var(--muted);min-height:40px}.toolbar button.active{background:var(--accent);color:#233314;border-color:#e4ffb3;font-weight:700;box-shadow:0 0 0 2px #d5f58b20}.toolbar button:hover{background:#506b8e;color:var(--text)}.toolbar button.active:hover{background:#e0ffa1;color:#233314}.ohlc{padding:14px 26px 0;min-height:38px;font-size:12px;color:var(--muted);display:flex;flex-wrap:wrap;gap:10px}.ohlc b{font-weight:400;color:var(--text);font-variant-numeric:tabular-nums}.plot-wrap{position:relative}#chart{height:440px}#chart-state{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;color:var(--muted);background:var(--panel);font-size:14px;text-align:center;padding:24px}#chart-state[hidden]{display:none}#retry{background:var(--accent);color:#233314;padding:10px 20px;border:1px solid #455835;border-radius:8px}.chart-foot{border-top:1px solid var(--line);padding:12px 24px;display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px}footer{display:flex;gap:14px;flex-wrap:wrap;padding:20px 2px;color:var(--muted);font-size:12px}footer a{color:var(--muted);margin-left:auto;text-decoration:none}footer a:hover{color:var(--accent)}@media(min-width:1500px){#chart{height:510px}}@media(max-width:700px){header{height:64px;padding:0 18px}.brand b{font-size:17px}.brand b span{font-size:13px}.connection{font-size:12px}main{padding:24px 14px}.page-top{margin-bottom:20px}h1{font-size:23px}h1 span{display:none}.market-label{font-size:12px}.markets{gap:10px;margin-bottom:16px}.market{padding:15px 13px;border-radius:10px}.coin{width:32px;height:32px;font-size:24px}.market-top{gap:8px}.market strong{font-size:15px}.market small{font-size:12px}.market em{font-size:12px}.market-bottom{flex-direction:column;align-items:flex-start;gap:6px;margin-top:16px}.market-bottom b{font-size:25px}.selected-mark{position:absolute;bottom:14px;right:10px;display:block;font-size:12px;padding:4px 6px}.chart-heading{padding:20px 16px;display:block}.big-price strong{font-size:29px}.stats{margin-top:20px;justify-content:space-between;gap:12px}.stats b{font-size:14px}.toolbar{padding:8px}.toolbar button{padding:10px;min-height:44px}.periods{gap:5px}.ohlc{padding:12px 12px 0;font-size:12px;gap:7px}#chart{height:380px}.chart-foot{padding:12px;font-size:12px}footer{font-size:12px;gap:8px}footer a{margin-left:0;width:100%}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.market strong{white-space:nowrap}.toolbar button{white-space:nowrap}.periods{min-width:0}.market-top>span:nth-child(2){min-width:0}@media(max-width:400px){.market{padding:14px 10px}.market-top{gap:6px}.market strong{font-size:14px}.market small{font-size:11px}.market em{font-size:11px}.coin{width:27px;height:27px;font-size:21px}.periods{flex:1}.periods button{flex:1;padding:8px}.toolbar>#reset{padding:8px 6px;font-size:13px}.stats{gap:8px}}
a.brand{text-decoration:none;color:var(--text)}a.market{display:block;text-decoration:none;color:var(--text)}.learn{margin-top:42px}.section-heading h2{font-size:23px;margin:8px 0 12px}.section-heading p{color:var(--muted);line-height:1.8}.explain-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:24px}.explain-grid article{padding:18px 22px;background:#2a384d;border:1px solid #5a708e;border-radius:12px}.explain-grid h3{font-size:17px;font-weight:550}.explain-grid p{font-size:16px;line-height:1.9;color:#c5d0df}.learn-links{display:flex;flex-wrap:wrap;gap:12px 24px;margin:28px 0}.learn-links a,.nav-link{color:var(--accent);font-size:14px;text-decoration:none}.learn-links a:hover,.nav-link:hover{text-decoration:underline}.notice{font-size:13px;color:var(--muted);line-height:1.8}.guide{max-width:850px;padding-top:35px}.breadcrumb{display:flex;flex-wrap:wrap;gap:10px;font-size:14px;color:var(--muted);margin-bottom:40px}.breadcrumb a{color:var(--muted);text-decoration:none}.guide h1{font-size:38px;line-height:1.3}.guide-intro{font-size:19px;line-height:1.9;color:#c5d0df}.article-meta{font-size:13px;color:var(--muted);margin-bottom:38px}.guide article section{margin:30px 0}.guide article h2{font-size:22px;line-height:1.5}.guide article section p{font-size:17px;line-height:2;color:#c5d0df}.guide article a{color:var(--accent)}@media(max-width:700px){.page-top{gap:12px;align-items:flex-start}.page-top h1{font-size:21px;line-height:1.5}.market-label{white-space:nowrap;padding-top:4px}.explain-grid{grid-template-columns:1fr;gap:10px}.guide h1{font-size:30px}.guide-intro{font-size:17px}.guide article section p{font-size:16px}.guide article h2{font-size:20px}.brand b{white-space:nowrap}}
/* Compact market workspace: keep chart space, reduce surrounding chrome. */
header{height:60px}.brand-icon{font-size:23px;padding:2px 8px}main{padding-top:20px}.page-top{margin-bottom:16px}.page-top .eyebrow{display:none}.page-top h1{font-size:23px;line-height:1.4}.markets{gap:14px;margin-bottom:14px}.market{padding:14px 18px}.market-top{gap:10px}.coin{width:35px;height:35px;font-size:25px}.market em{margin-top:2px}.market-bottom{margin-top:12px}.market-bottom b{font-size:27px}.chart-heading{padding:16px 20px}.chart-heading h2{margin-bottom:5px}.big-price strong{font-size:29px}.stats div{gap:5px}.toolbar{padding:7px 16px}.toolbar button{padding:8px 14px}.ohlc{padding:9px 18px 0;min-height:31px}.chart-foot{padding:9px 18px}.learn{margin-top:26px}.section-heading h2{margin:6px 0 8px}.section-heading p{margin:8px 0}.explain-grid{gap:14px;margin-top:16px}.explain-grid article{padding:12px 18px}.explain-grid h3{margin:5px 0 10px}.explain-grid p{margin:0;line-height:1.8}.learn-links{margin:18px 0}.notice{margin:10px 0}footer{padding:12px 2px}.guide{padding-top:24px}.breadcrumb{margin-bottom:24px}.article-meta{margin-bottom:26px}.guide article section{margin:22px 0}
@media(max-width:700px){header{height:50px;padding:0 14px}.brand{gap:8px}.brand-icon{font-size:21px;padding:1px 7px}.brand b{font-size:16px}main{padding:12px 12px 18px}.page-top{margin-bottom:10px;align-items:center;gap:8px}.page-top h1{font-size:18px;line-height:1.4}.market-label{font-size:12px;padding-top:0}.markets{gap:8px;margin-bottom:10px}.market{padding:10px 12px}.market-top{gap:7px}.coin{width:28px;height:28px;font-size:22px}.market strong{font-size:14px}.market em{font-size:12px;margin-top:1px}.market-bottom{margin-top:8px;gap:3px}.market-bottom b{font-size:23px;line-height:1.2}.market-bottom>span{font-size:13px;line-height:1.3}.selected-mark{bottom:10px;right:10px;padding:3px 6px}.chart-heading{padding:12px 14px}.chart-heading h2{font-size:15px;margin-bottom:3px}.big-price{gap:12px}.big-price strong{font-size:26px;line-height:1.2}.stats{margin-top:12px;gap:8px}.stats div{gap:4px}.stats b{font-size:13px}.toolbar{padding:5px 8px;gap:8px}.toolbar button{padding:7px 8px;min-height:40px;font-size:14px}.toolbar>#reset{font-size:13px;padding:7px 8px}.periods{gap:5px}.ohlc{padding:7px 10px 0;gap:4px 8px;min-height:28px;font-size:12px;line-height:1.5}.chart-foot{padding:8px 10px}.explain-grid article{padding:12px 14px}.learn{margin-top:22px}footer{padding:10px 2px}.guide{padding-top:20px}.guide h1{font-size:28px}.breadcrumb{margin-bottom:22px}}
@media(max-width:360px){.page-top{flex-wrap:wrap;gap:2px}.market{padding:9px}.market-top{gap:5px}.market strong{font-size:13px}.market small{font-size:11px}.market em{font-size:11px}.coin{width:25px;height:25px;font-size:20px}.toolbar button{padding:7px 5px}.toolbar>#reset{padding:7px 5px}.market-bottom b{font-size:22px}}

.coin.eth{background:#edf0ff;border:1px solid #c4ccea}.coin.eth img{display:block;width:88%;height:88%;object-fit:contain}
.big-price strong{font-size:22px;font-weight:500;line-height:1.3}.big-price{gap:10px}@media(max-width:700px){.big-price strong{font-size:20px}.big-price>span{font-size:13px}}

.quote-line{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}.chart-heading .quote-line h2{margin:0;white-space:nowrap}.quote-line .big-price{align-items:baseline}.quote-line .big-price strong{font-size:22px}.quote-line .big-price>span{white-space:nowrap}@media(max-width:700px){.quote-line{gap:8px}.chart-heading .quote-line h2{font-size:14px}.quote-line h2 span{font-size:12px;padding:1px 4px;margin-left:4px}.quote-line .big-price{gap:8px}.quote-line .big-price strong{font-size:20px}.quote-line .big-price>span{font-size:12px}.stats{margin-top:10px}}@media(max-width:360px){.quote-line{gap:7px}.quote-line .big-price{gap:6px}.quote-line .big-price strong{font-size:18px}.quote-line h2 span{padding:1px 3px;margin-left:2px}}
.toolbar{padding:5px 12px;gap:8px}.toolbar button,.toolbar>#reset{min-height:28px;height:28px;padding:2px 10px;line-height:20px;font-size:13px}.chart-actions{display:flex;gap:6px;flex-shrink:0}.periods{gap:6px}.chart-actions #fullscreen[aria-expanded="true"]{background:var(--accent);color:#233314;border-color:#e4ffb3}.chart-expanded{overflow:hidden}.chart-panel.is-expanded,.chart-panel:fullscreen{position:fixed;inset:0;z-index:1000;width:100%;height:100vh;height:100dvh;margin:0;border:0;border-radius:0;background:var(--panel);display:flex;flex-direction:column;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}.chart-panel.is-expanded .chart-heading{padding:9px 12px;flex-shrink:0}.chart-panel.is-expanded .stats{display:none}.chart-panel.is-expanded .toolbar,.chart-panel.is-expanded .ohlc,.chart-panel.is-expanded .chart-foot{flex-shrink:0}.chart-panel.is-expanded .plot-wrap{flex:1;min-height:0}.chart-panel.is-expanded #chart{position:absolute;inset:0;width:100%;height:100%}.chart-panel.is-expanded .ohlc{padding-bottom:5px}.chart-panel.is-expanded .chart-foot{padding:6px 12px}@media(max-width:700px){.toolbar{padding:5px 7px;gap:6px}.periods{flex:1;gap:4px}.periods button{flex:1}.toolbar button{height:28px;min-height:28px;padding:2px 7px;font-size:13px;line-height:20px}.chart-actions{gap:4px}.chart-actions button{padding:2px 8px}}@media(max-width:360px){.toolbar{gap:4px;padding:5px}.toolbar button{padding:2px 5px;font-size:12px}.periods{gap:3px}.chart-actions{gap:3px}.chart-actions button{padding:2px 6px}}
.chart-heading{display:block}.quote-line{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:baseline;gap:12px;width:100%}.quote-line h2{grid-column:1;grid-row:1}.quote-line .big-price{display:contents}.quote-line #change{grid-column:2;grid-row:1}.quote-line #last{grid-column:3;grid-row:1;justify-self:end;white-space:nowrap}.stats{margin-top:10px}@media(min-width:701px){.stats{gap:32px}.stats div{display:flex;align-items:baseline;gap:10px}}@media(max-width:700px){.quote-line{gap:8px}.chart-panel.is-expanded .quote-line{width:100%}}@media(max-width:360px){.quote-line{gap:6px}}

.brand .wordmark{display:inline-flex;align-items:baseline;gap:8px;font-size:25px;font-weight:800;letter-spacing:-.8px;line-height:1}.brand .wordmark-vs{font-size:14px;font-weight:500;font-style:italic;letter-spacing:-.4px;color:var(--muted)}.brand .wordmark-u{font-size:25px;font-weight:800;letter-spacing:-.8px;color:var(--accent)}@media(max-width:700px){.brand .wordmark,.brand .wordmark-u{font-size:23px}.brand .wordmark-vs{font-size:13px}.brand .wordmark{gap:7px}}

/* Keep price and change together at the right of the chart title. */
.quote-line{grid-template-columns:minmax(0,1fr) auto auto}

/* Fullscreen keeps the controls and plot only. */
.chart-panel.is-expanded .chart-heading,.chart-panel.is-expanded .ohlc,.chart-panel.is-expanded .chart-foot{display:none}
/* Compact shortcuts and searchable OKX drawer. */
.markets{grid-template-columns:1fr 1fr minmax(100px,.65fr);gap:10px}.markets .market{padding:10px 14px;min-width:0}.markets .market-top{gap:7px}.markets .coin{width:26px;height:26px;font-size:20px}.markets .market em,.markets .selected-mark{display:none}.markets .market-bottom{margin-top:7px;gap:4px}.markets .market-bottom b{font-size:22px;letter-spacing:-.6px}.markets .market-bottom>span{font-size:12px}.more-market{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.more-icon{font-size:22px;line-height:1}.markets .more-market strong{font-size:14px}.markets .more-market small{font-size:11px}
#market-drawer{position:fixed;inset:0 auto 0 0;margin:0;width:min(360px,90vw);height:100%;height:100dvh;max-height:100dvh;max-width:90vw;padding:20px 16px;border:0;border-right:1px solid var(--line);background:var(--panel);color:var(--text);overflow:hidden}#market-drawer[open]{display:flex;flex-direction:column;gap:12px}#market-drawer::backdrop{background:#080f20aa}body:has(#market-drawer[open]){overflow:hidden}.drawer-heading{display:flex;justify-content:space-between;align-items:center}.drawer-heading h2{font-size:20px;margin:0}.drawer-heading p{font-size:12px;color:var(--muted);margin:6px 0 0}#close-markets{background:#3a4e6a;border:1px solid var(--line);border-radius:6px;width:32px;height:32px;font-size:22px}.search-label{font-size:12px;color:var(--muted)}#market-search{width:100%;background:#1b2535;border:1px solid #8198b4;border-radius:8px;color:var(--text);padding:11px;font:inherit;font-size:16px}#market-search:focus{outline:2px solid var(--accent);outline-offset:1px}#market-list{overflow:auto;min-height:0;flex:1;display:flex;flex-direction:column;gap:6px;overscroll-behavior:contain}.market-option{display:flex;align-items:center;gap:9px;min-height:46px;flex-shrink:0;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:#354862;text-align:left}.market-option span{font-size:12px;color:var(--muted)}.market-option.active{background:var(--accent);color:#233314}.market-option.active span{color:#455533}#retry-markets{padding:10px;border:1px solid var(--line);border-radius:6px;background:#354862}
@media(max-width:700px){.markets{grid-template-columns:1fr 1fr .72fr;gap:6px}.markets .market{padding:8px}.markets .market-top{gap:4px}.markets .coin{width:21px;height:21px;font-size:17px}.markets .market strong{font-size:13px}.markets .market small{display:none}.markets .market-bottom{align-items:flex-start;flex-direction:column;margin-top:5px;gap:2px}.markets .market-bottom b{font-size:18px;letter-spacing:-.6px}.markets .more-market small{display:block;font-size:10px}.markets .more-market strong{font-size:12px}.markets .more-market{gap:4px}.quote-line h2{overflow:hidden;text-overflow:ellipsis}.quote-line #last{font-size:18px}}
@media(max-width:360px){.markets .market{padding:7px 6px}.markets .market-bottom b{font-size:16px}.markets .market strong{font-size:12px}.markets .coin{width:18px;height:18px}.markets .more-market small{font-size:9px}.quote-line #last{font-size:16px}}

/* Give fullscreen gestures to the chart, without page pan/zoom or rubber banding. */
.chart-panel.is-expanded{overscroll-behavior:none;box-shadow:none}
.chart-panel.is-expanded .plot-wrap{overscroll-behavior:none}
.chart-panel.is-expanded #chart,.chart-panel.is-expanded #chart canvas{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}

/* Avoid stale portrait safe-area height when a mobile browser rotates. */
.chart-panel.is-expanded,.chart-panel:fullscreen{padding-top:0;padding-bottom:0}
.chart-panel.is-expanded .toolbar{margin-top:0}
