:root{--bg: #fafbfc;--panel: #ffffff;--ink: #15181d;--ink-2: #4a525e;--ink-3: #737780;--rule: #e7e9ec;--grid: #f0f1f3;--accent: #2a78d6;--ok: #18794e;--bad: #c2352f;--s-ant: #2a78d6;--s-spcx: #eb6834;--s-sp500: #1baf7a;--s-nvda: #6250d6;--f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;--f-mono: var(--f-body);--radius: 12px;color-scheme:light}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}body{background:var(--bg);color:var(--ink);font:14px/1.45 var(--f-body);-webkit-font-smoothing:antialiased}h1,h2,h3{margin:0}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}#app{display:flex;height:100%}.page{width:100%;max-width:min(1440px,calc((100dvh - 150px)*2.1));height:min(100dvh,calc(min(100vw,1440px)*.6 + 140px));margin:auto;padding:clamp(10px,2.4vh,28px) clamp(16px,2.5vw,32px) clamp(8px,1.4vh,16px);display:flex;flex-direction:column;gap:clamp(8px,1.6vh,16px);overflow:hidden}.page>*{flex:none}@media (max-width: 700px){.page{padding-inline:12px;gap:8px}}header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px 24px;margin-bottom:4px}h1{font-size:clamp(26px,3.4vw,34px);font-weight:600;letter-spacing:-.035em;line-height:1.1}.freshness{display:flex;flex-direction:column;align-items:flex-end;gap:2px;color:var(--ink-3);font-size:12.5px;font-variant-numeric:tabular-nums}.freshness .err{color:var(--bad)}.data-time{display:inline-flex;align-items:center;gap:6px}.data-time i{width:7px;height:7px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 3px color-mix(in srgb,var(--ok) 18%,transparent)}@media (max-width: 700px){.freshness{align-items:flex-start}}.progress-line{display:flex;align-items:center;gap:10px;color:var(--ink-3);font-size:12.5px;font-variant-numeric:tabular-nums}.progress-line .bar{flex:1}.bar{display:block;height:4px;background:var(--rule);border-radius:2px;overflow:hidden}.fill{display:block;height:100%;background:var(--ok);border-radius:2px}.panel{background:var(--panel);border:1px solid var(--rule);border-radius:var(--radius);padding:clamp(8px,1.4vh,14px) 16px clamp(4px,1vh,10px);min-width:0;min-height:0;display:flex;flex-direction:column}.panel-head{flex:none;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;min-height:28px;margin-bottom:4px}.panel-head h2{font-size:14px;font-weight:600}.panel-head .sub{color:var(--ink-3);font-size:12.5px;font-weight:400;margin-left:6px}.plot-frame{flex:1;min-height:0}.plot{width:100%;height:100%}.placeholder{display:grid;place-items:center;color:var(--ink-3)}.page>.grid-top,.page>.grid-bottom{flex:1 1 0;min-height:0}.page>.grid-top{flex-grow:1.3}.grid-top{display:grid;grid-template-columns:minmax(0,1fr) 300px;grid-template-rows:minmax(0,1fr);gap:clamp(8px,1.6vh,16px)}.grid-bottom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:clamp(8px,1.6vh,16px)}@media (max-width: 960px){.page{max-width:max(440px,calc((100dvh - 380px) / 3 * 2.6 + 60px));height:min(100dvh,calc(187.5vw + 380px))}.page>.grid-top{flex-grow:1}.page>.grid-top,.page>.grid-bottom{display:contents}.page>.grid-top>.panel,.page>.grid-bottom>.panel{flex:1 1 0}.page>.grid-top>.standings{flex:none;order:-1}.page>.progress-line{order:-2}.page>header{order:-3}}@media (max-width: 700px){.grid-top,.grid-bottom{gap:8px}.panel{padding:8px 10px 4px}.panel-head{min-height:24px}}.standings{display:flex;flex-direction:column}.standings ol{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:2px}.standings li{display:grid;grid-template-columns:14px 18px minmax(0,1fr) auto;align-items:center;gap:8px;padding:clamp(4px,1vh,8px) 8px;border-radius:8px;font-size:15px;font-variant-numeric:tabular-nums}.standings li.leader{background:var(--bg);font-weight:600}.standings .rank{color:var(--ink-3);font-size:12px}.standings .swatch{width:18px;height:3px;border-radius:2px;background:var(--c)}.standings .name{color:var(--c);font-weight:600}.standings .score{text-align:right}.standings .gap{color:var(--ink-3);font-size:12px;font-weight:400;margin-left:6px}.standings .note{margin:auto 0 0;padding-top:10px;color:var(--ink-3);font-size:12px;line-height:1.4}@media (max-width: 960px){.standings ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.standings li{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"rank name" "score score";row-gap:2px;padding:8px 10px;background:var(--bg)}.standings .rank{grid-area:rank}.standings .swatch{display:none}.standings .name{grid-area:name}.standings .score{grid-area:score;text-align:left;font-size:16px}.standings .gap,.standings .note{display:none}}@media (max-width: 700px){.standings .panel-head{display:none}h1{font-size:22px}.standings ol{gap:4px;margin:0}.standings li{padding:4px 7px;font-size:13px;column-gap:5px}.standings .score{font-size:14px}.standings .panel-head{min-height:0;margin-bottom:4px}.seg button{padding:2px 8px}.seg-label{display:none}}.seg{display:inline-flex;background:var(--bg);border:1px solid var(--rule);border-radius:8px;padding:2px}.seg button{border:0;background:none;padding:3px 10px;border-radius:6px;font:500 12.5px var(--f-body);color:var(--ink-2);cursor:pointer}.seg button:hover{color:var(--ink)}.seg button[aria-pressed=true]{background:var(--panel);color:var(--ink);box-shadow:0 1px 2px #0000001a}.seg-label{color:var(--ink-3);font-size:12.5px;margin-right:6px}.control{display:inline-flex;align-items:center}.axis-key{display:flex;flex-wrap:wrap;gap:4px 14px;color:var(--ink-2);font-size:12.5px}.axis-key span{display:inline-flex;align-items:center;gap:6px}.axis-key span:before{content:"";width:16px;border-top:2px solid var(--series-color, var(--ink-3))}.axis-key span.dashed:before{border-top-style:dashed;border-color:var(--ink-3)}.tt-head{font-weight:600;margin-bottom:6px;display:flex;flex-direction:column;gap:1px}.tt-head span{font-weight:400;color:var(--ink-3);font-size:11.5px}.tt-row{display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:8px;line-height:1.7;min-width:170px}.tt-dot{width:8px;height:8px;border-radius:50%}.tt-name{font-family:var(--f-mono);font-size:12px;color:var(--ink-2)}.tt-val{font-family:var(--f-mono);font-variant-numeric:tabular-nums;font-weight:500}.tt-none{color:var(--ink-3)}
