:root{
  color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,Inter,"PingFang SC","Noto Sans CJK SC",sans-serif;
  --ink:#171a22;--muted:#647082;--line:#dde2ea;--blue:#006ae2;--paper:#fff
}
*{box-sizing:border-box}
body{margin:0;color:var(--ink);background:linear-gradient(165deg,#eff4fb 0%,#f6f7fa 40%,#f2f3f7 100%);font-size:14px;line-height:1.45;min-height:100vh}
header{background:#fcfdffdb;backdrop-filter:blur(18px);border-bottom:1px solid #dce2eb}
main,.masthead{width:min(1510px,100%);margin-inline:auto;padding-inline:max(4vw,20px)}
.masthead{height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.identity,.headright,.source,.toolbar,.controls,.footnote,.dates,.export,.charthead,.connection{display:flex;align-items:center;gap:10px}
h1,h2,h3,p{margin:0}
.identity h1{font-size:23px;line-height:1;letter-spacing:-.055em;font-weight:710}
.brand{display:grid;place-items:center;width:31px;height:31px;border-radius:10px;background:linear-gradient(145deg,#536071,#1b2433 70%);color:white;font:700 22px/1 system-ui;box-shadow:0 2px 4px #202b391c}
.divider{width:1px;height:17px;background:#d3dbe6;margin:0 3px}
.pair{color:#355782;font-size:15px;letter-spacing:.015em;font-weight:650}
.slash{color:#879bb5;margin:0 .1em}
.headright{gap:16px;color:var(--muted);font-size:12px}
#clock{font-size:11px;font-variant-numeric:tabular-nums}
.connection{gap:6px;padding:4px 8px 4px 9px;background:#f3f6f9;border:1px solid #e3e8ed;border-radius:99px;font-size:11px;color:#425365}
.headright i{width:6px;height:6px;background:#c78b3e;border-radius:100%}
.source label{font-size:12px;color:var(--muted)}
main{padding-block:20px 44px}
.charthead,.toolbar,.footnote{justify-content:space-between}
h2{font-size:20px;letter-spacing:-.04em}
.charthead h2{font-size:clamp(23px,1.8vw,26px);line-height:1.25;font-weight:680;letter-spacing:-.045em}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 14px}.card,.workspace,.research,details{border:1px solid #dbe0e8;border-radius:21px;background:var(--paper);box-shadow:0 4px 16px #24314d06}
.card{padding:13px 17px;background:linear-gradient(145deg,color-mix(in srgb,var(--venue) 10%,white),white 74%);min-width:0}.cardtop,.cardfoot{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}.cardtop{font-weight:650;font-size:14px}.marketDot{display:inline-block;background:var(--venue);width:10px;height:10px;border-radius:4px;box-shadow:inset 0 0 0 1px #0001;margin-right:7px}.cardtag{padding:3px 7px;border-radius:99px;font-size:10px;font-weight:550;color:#6b7483;background:#eef0f3}.fresh .cardtag{color:#126c4f;background:#e4f6ed}.price{margin:8px 0 5px;font-weight:620;font-size:clamp(20px,2vw,30px);letter-spacing:-.045em;font-variant-numeric:tabular-nums;white-space:nowrap}.price small{font:550 10px system-ui;color:var(--muted);letter-spacing:.02em}.cardfoot{font-size:10px;color:var(--muted);line-height:1.5;align-items:start}.cardfoot .state{display:block}.card.fresh .state{display:none}
.workspace{padding:18px;box-shadow:0 8px 32px #182c4d0a,0 1px 4px #182c4d05}.charthead{margin-bottom:12px}.toolbar{margin:0 0 13px;gap:10px;flex-wrap:wrap}.source{gap:6px}.controls,.dates,.export{flex-wrap:wrap}
button,select,input{font:inherit;font-size:12px;color:var(--ink);border:1px solid var(--line);border-radius:9px;background:#fff;padding:7px 10px}button,select,summary{cursor:pointer}button:hover,select:hover{border-color:#99abc1}button:focus-visible,select:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #61a7ff;outline-offset:2px}
#presets{display:inline-flex;gap:2px;padding:3px;border-radius:11px;background:#eff1f5}#presets button{background:transparent;border:0;padding:5px 13px;color:#586172;font-weight:550}#presets button.active{background:#fff;box-shadow:0 1px 4px #1d294526;color:var(--ink)}#live.active{box-shadow:inset 0 0 0 1px #b5d7fa}#live{border:0;background:#eaf3ff;color:#0063c9;font-weight:600}
.chartlayout{display:grid;grid-template-columns:minmax(180px,210px) minmax(0,1fr);background:#17202e;color:#f4f6fb;border-radius:15px;overflow:hidden}.chartwell{min-width:0;background:linear-gradient(155deg,#172333,#101825 80%);display:flex;flex-direction:column;justify-content:center}.metrics{display:flex;flex-direction:column;align-items:stretch;gap:5px;background:#202a3a;padding:14px 12px;border-right:1px solid #ffffff14;max-height:650px;overflow:auto}.metrics h3{font-size:12px;font-weight:650;color:#d6deed;margin-bottom:5px}.metric{border-radius:9px;padding:0 4px}.metric.enabled{background:color-mix(in srgb,var(--accent) 7%,#283142)}.metric button{width:100%;display:flex;align-items:center;text-align:left;gap:7px;background:transparent;border:0;color:#d1d8e4;padding:8px 3px}.metric button strong{color:var(--accent);font-variant-numeric:tabular-nums;font-size:12px}.metric button>span{font-size:11px}.metric button i{width:8px;height:8px;border-radius:99px;background:var(--accent)}.metric button em{margin-left:auto;width:22px;height:13px;border-radius:20px;background:#536073;position:relative}.metric button em:after{content:"";width:9px;height:9px;position:absolute;top:2px;left:2px;background:white;border-radius:50%}.metric.enabled em{background:var(--accent)}.metric.enabled em:after{left:11px;background:#17202e}.values{padding:0 3px 6px}.values>div{display:flex;justify-content:space-between;align-items:baseline;gap:5px;padding:2px 0}.values span{color:#b8c5d5;font-size:11px}.values b{color:var(--accent);font:600 12px/1.45 ui-monospace,monospace}.plot{position:relative;min-width:0;margin:0 6px}canvas{display:block;width:100%;height:390px;touch-action:none;cursor:crosshair}#empty{position:absolute;top:40%;inset-inline:7%;color:#acb9ca;text-align:center;pointer-events:none}#readout,.footnote{padding:10px 15px;color:#c3cedc;font-variant-numeric:tabular-nums;font-size:12px}#readout{min-height:34px}.footnote{border-top:1px solid #ffffff0d;flex-wrap:wrap;color:#9eacbc}.footnote b{font-weight:600;margin-right:8px}
.research{margin-top:14px;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.dates{align-items:end}.dates label{display:flex;flex-direction:column;gap:4px;color:var(--muted);font-size:11px}#download,#apply{background:#0876e8;color:white;border-color:transparent;font-weight:600}#notice,summary,#health{color:var(--muted);font-size:12px}#notice{padding:12px 5px}details{padding:12px 17px;border-radius:13px}#health{margin-top:10px;white-space:pre-line;line-height:1.9}
@media(max-width:1040px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.chartlayout{grid-template-columns:184px minmax(0,1fr)}}
@media(max-width:680px){main{padding:12px 10px 30px}.masthead{padding:0 14px;height:50px}.identity{gap:7px}.pair{font-size:14px}#clock{display:none}.cards{gap:7px;margin:0 0 10px}.card{border-radius:14px;padding:11px}.cardtop{font-size:12px}.workspace{padding:10px;border-radius:15px}.chartlayout{display:flex;flex-direction:column}.chartwell{order:-1}.metrics{max-height:420px;border:0}.metric button{min-height:35px}.values>div{justify-content:flex-start;gap:12px}.footnote span:last-child{display:none}.controls{gap:5px}.research{padding:14px}.source label{display:none}.cardfoot .stamp{font-size:9px}}

@media(max-width:360px){#presets button{padding-inline:9px}.connection{font-size:10px}.card{padding-inline:9px}.price small{font-size:9px}.dates input{max-width:100%}}

.settlement{margin-top:14px}.settlement .charthead{flex-wrap:wrap;gap:12px}
.settlement .charthead p,.settlement>p,.settlement details p{color:var(--muted);font-size:12px;margin:5px 0}
.settle-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.settle-values>div{border-radius:12px;background:#f1f5fa;padding:10px 12px;font-size:12px;color:#4e6278}
.settle-values strong{display:block;font-size:clamp(15px,2vw,22px);color:var(--ink);font-variant-numeric:tabular-nums}
#settle-plot{width:100%;height:148px;cursor:default;touch-action:auto}
.settle-key{display:flex;gap:15px;flex-wrap:wrap;font-size:12px;color:#647082}
.settle-key span:first-child{color:#0065c9}.settle-key span:nth-child(2){color:#077d70}
.settlement details{margin-top:9px;box-shadow:none}.settle-scroll{overflow:auto;max-height:285px}
.settlement table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:12px;white-space:nowrap}
.settlement th,.settlement td{padding:6px 8px;border-bottom:1px solid var(--line);text-align:right}
.settlement th:first-child,.settlement td:first-child{text-align:left}.settlement th{position:sticky;top:0;background:white;color:var(--muted)}
.settlement input[type=number]{width:112px}
@media(max-width:680px){.settle-values{gap:4px}.settle-values>div{padding:8px;font-size:10px}.settlement .dates{gap:5px}.settlement .dates input,.settlement .dates select{max-width:145px}.settlement details{padding:9px}.settle-key{gap:8px}}
