@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--bg:#101218;--panel:#161920;--line:#292d37;--muted:#858c9e;--text:#e8ecf3;--accent:#8de8bb}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:'DM Sans','Noto Sans KR',sans-serif;font-size:13px}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}header{height:83px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 35px}.brand{display:flex;align-items:center;color:var(--text);text-decoration:none;font-size:25px;font-weight:700;letter-spacing:-1px}.brand>span:not(.brand-icon){color:var(--accent)}.brand-icon{background:#21352f;color:var(--accent);font-size:32px;width:35px;height:35px;border-radius:9px;display:grid;place-items:center;margin-right:11px}.brand small{font-size:9px;font-weight:500;letter-spacing:1.6px;color:var(--muted);margin-left:22px}.header-right{display:flex;gap:23px;align-items:center}.sample-pill{color:#d7b97b;background:#302a21;border:1px solid #4a3e2b;padding:5px 10px;border-radius:5px;font-size:11px}.labs{font-size:10px;color:var(--muted);letter-spacing:1.2px}.shell{display:grid;grid-template-columns:225px 1fr;min-height:calc(100vh - 83px)}aside{border-right:1px solid var(--line);padding:33px 21px;position:relative}.sidebar-title{font-size:13px;font-weight:600;display:flex;justify-content:space-between;align-items:center}.text-button{background:none;border:0;color:var(--muted);font-size:11px;padding:4px}.muted{color:var(--muted)}.sidebar-copy{font-size:11px;margin:10px 0 30px}details.group{margin-bottom:20px}summary{cursor:pointer;list-style:none}summary::-webkit-details-marker{display:none}.group summary{font-weight:600;color:#c7cdd9;padding:5px 0 10px}.group summary:before{content:'›';display:inline-block;margin-right:10px;color:var(--muted);transform:rotate(90deg)}.group:not([open]) summary:before{transform:none}.market-option{display:flex;align-items:center;gap:10px;padding:11px 10px;margin:3px 0;border-radius:6px;cursor:pointer;font-size:12px;color:#a4adbc}.market-option:has(input:checked){background:#20262b;color:#edf3f1}.market-option input{accent-color:var(--accent);width:14px;height:14px;margin:0}.swatch{width:7px;height:7px;border-radius:50%;display:inline-block;flex-shrink:0}.market-option .swatch{margin-left:auto}.group .market-option{margin-left:13px}.sidebar-note{margin-top:65px;padding-top:20px;border-top:1px solid var(--line);font-size:9px;letter-spacing:1px;color:#a4b6ad}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--accent);margin-right:7px}.sidebar-note p{color:var(--muted);font-size:10px;line-height:1.9;letter-spacing:0;margin-top:13px}main{padding:37px 36px 0;min-width:0;max-width:1800px;width:100%;margin:auto}.demo-notice{display:flex;gap:10px;align-items:center;background:#1b2026;border:1px solid #2b343d;padding:12px 15px;border-radius:7px;font-size:11px;color:#9aa6b6;margin-bottom:22px}.demo-notice>span{color:#8fb6ce;font-size:16px}.demo-notice strong{color:#c8d3df;font-weight:500}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-bottom:23px}.card{background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:16px 17px}.card-title{display:flex;align-items:center;gap:7px;color:#b8c0cf;font-size:11px}.card-value{font-size:25px;margin:12px 0 7px;letter-spacing:-.7px;font-variant-numeric:tabular-nums}.card-value small{font-size:12px;color:var(--muted);margin-left:5px}.card-bottom{display:flex;justify-content:space-between;gap:5px;font-size:10px;color:var(--muted)}.positive{color:#8de8bb}.negative{color:#f08e97}.chart-panel{border:1px solid var(--line);border-radius:10px;background:var(--panel);padding:23px 23px 0}.chart-heading,.chart-tools{display:flex;justify-content:space-between;align-items:center;gap:12px}.chart-heading h2{font-size:15px;font-weight:500;margin:0}.chart-heading h2 span{font-size:9px;margin-left:9px;color:var(--muted);background:#242932;padding:3px 5px;border-radius:3px}.chart-heading p{font-size:10px;color:var(--muted);margin:8px 0 0}.view-toggle{background:#101319;border:1px solid var(--line);border-radius:6px;padding:3px;display:flex}.view-toggle button,.periods button{border:0;background:transparent;color:var(--muted);padding:7px 11px;font-size:11px;border-radius:4px}.view-toggle button.active{background:#2b3434;color:var(--accent)}.chart-tools{margin:24px 0 18px}.periods{display:flex;gap:4px}.periods button.active{background:#2a3138;color:#f0f4f7}.date-tools{display:flex;align-items:center;gap:8px;color:#51596b}.date-tools input{background:#13161c;border:1px solid var(--line);border-radius:5px;color:#aab3c2;font-size:10px;padding:6px;max-width:125px}.legend{display:flex;flex-wrap:wrap;gap:17px;font-size:10px;color:#b0b9c9;min-height:27px}.legend span{display:flex;align-items:center;gap:6px}.plot{position:relative;touch-action:pan-y}canvas{display:block;width:100%;height:100%}.chart-footer{border-top:1px solid var(--line);padding:13px 0;display:flex;justify-content:space-between;color:#687286;font-size:9px;gap:15px}.tooltip{position:absolute;background:#202630f5;border:1px solid #46515e;border-radius:8px;padding:13px;pointer-events:none;min-width:190px;box-shadow:0 10px 30px #0006;font-size:11px;z-index:2}.tooltip strong{display:block;margin-bottom:10px}.tooltip-row{display:flex;justify-content:space-between;gap:20px;margin:8px 0}.tooltip-row span:first-child{display:flex;align-items:center;gap:6px;color:#aeb8c9}.empty{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted)}[hidden]{display:none!important}.method{border-bottom:1px solid var(--line);margin-top:21px;padding:17px 2px;color:var(--muted);font-size:11px}.method summary{display:flex;justify-content:space-between}.method div{line-height:1.9;max-width:850px;padding:10px 0}footer{display:flex;justify-content:space-between;align-items:center;padding:23px 0;color:#687286;font-size:10px}.footer-brand{font-weight:700;color:#a1aaba;font-size:12px}.footer-brand span{font-size:9px;font-weight:400;margin-left:8px;color:#687286}#error{background:#4d252d;padding:15px;border-radius:7px;margin-bottom:20px}@media(min-width:1600px){main{padding-top:45px}}@media(max-width:1100px){main{padding:25px 22px 0}.shell{grid-template-columns:195px 1fr}aside{padding:28px 15px}.chart-tools{align-items:flex-start;flex-direction:column}h1{font-size:24px}.cards{grid-template-columns:repeat(2,1fr)}.brand small{display:none}.updated{display:none}}@media(max-width:700px){header{height:65px;padding:0 18px}.brand{font-size:22px}.labs{display:none}.shell{display:block}aside{border-right:0;border-bottom:1px solid var(--line);padding:15px 18px}.sidebar-copy,.sidebar-note{display:none}#tree{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}.group{flex:1;min-width:125px}details.group{margin-bottom:0}.group summary{font-size:11px}.market-option{font-size:11px;padding:8px}.group .market-option{margin-left:0}main{padding:25px 15px 0}h1{font-size:23px}.page-heading{margin-bottom:20px}.demo-notice{font-size:10px;line-height:1.7}.cards{gap:9px}.card{padding:13px}.card-value{font-size:23px}.chart-panel{padding:17px 12px 0}.chart-heading{align-items:flex-start}.view-toggle button{padding:6px 7px;font-size:10px}.chart-heading h2{font-size:13px}.chart-footer{flex-direction:column;gap:6px}.legend{gap:10px;font-size:9px}footer>span:last-child{display:none}}

/* Keep supporting information beside the chart, including on narrow screens. */
main{margin:0 auto;align-self:start}
.sidebar-note #updated{white-space:pre-line;line-height:1.9;font-size:10px;letter-spacing:0;color:var(--muted);margin-top:12px;overflow-wrap:anywhere}
.sidebar-note .demo-notice{margin:17px 0 0;padding:10px;font-size:10px;letter-spacing:0;align-items:flex-start;line-height:1.7}
.sidebar-note .method{font-size:10px;letter-spacing:0;margin-top:12px;padding:12px 0;border-bottom:0}
.sidebar-note .method p{margin:0}
@media(max-width:1100px){.updated{display:block}}
@media(max-width:700px){.sidebar-note{display:block;margin-top:15px;padding-top:13px}.sidebar-note>p{display:none}.sidebar-note #updated{margin-top:6px}.sidebar-note .demo-notice{margin-top:10px}.sidebar-note .demo-notice br{display:none}.sidebar-note .demo-notice strong{margin-right:5px}}

/* A quieter dashboard surface: let the figures and plot carry the hierarchy. */
.cards{gap:0;background:transparent;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:30px}
.card{background:transparent;border:0;border-radius:0;padding:20px 22px;position:relative}
.card+.card:before{content:"";position:absolute;left:0;top:20px;bottom:20px;width:1px;background:var(--line)}
.card-value{font-size:27px;margin:14px 0 8px}
.chart-panel{background:transparent;border:0;border-radius:0;padding:0}
.chart-heading{padding-bottom:17px;border-bottom:1px solid var(--line)}
.chart-tools{margin:16px 0 14px}
.chart-footer{border-top:1px solid var(--line)}
@media(max-width:700px){.cards{grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:0;margin-bottom:25px}.card{padding:14px 10px;border-bottom:1px solid var(--line)}.card:nth-child(2n+1):before{display:none}.card+.card:before{top:14px;bottom:14px}.card-value{font-size:23px}.card-bottom{font-size:9px;flex-wrap:wrap}.chart-heading{padding-bottom:13px}}

.card-bottom{flex-wrap:wrap;row-gap:6px}

/* The plot grows into the remaining viewport; the canvas never sets its parent's height. */
:root{--header-height:83px}
.shell{min-height:calc(100vh - var(--header-height));min-height:calc(100dvh - var(--header-height))}
main{display:flex;flex-direction:column;align-self:stretch;max-width:none;margin:0}
.cards,main>footer,.chart-heading,.chart-tools,.legend,.chart-footer{flex-shrink:0}
.chart-panel{display:flex;flex-direction:column;flex:1 0 auto;min-height:0}
.plot{flex:1 1 300px;min-height:300px;max-height:2160px;height:auto}
canvas{position:absolute;inset:0}
@media(max-width:700px){:root{--header-height:65px}.plot{flex-basis:auto;height:clamp(300px,60dvh,2160px)}}

/* Five compact market summaries, independent of the plotted selection. */
.cards{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:20px}
.card{padding:12px 14px}
.card+.card{border-left:1px solid var(--line)}
.card+.card:before{display:none}
.card-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}
.card-title{font-size:11px;white-space:nowrap}
.card-date{font-size:9px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.card-metrics{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-top:8px}
.card-value{font-size:22px;line-height:1.2;margin:0;white-space:nowrap}
.card-value small{font-size:10px;margin-left:4px}
.card-change{font-size:10px;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--muted)}
.card-change.positive{color:#8de8bb}.card-change.negative{color:#f08e97}
@media(max-width:1100px){.cards{grid-template-columns:repeat(3,minmax(0,1fr))}.card:nth-child(3n+1){border-left:0}.card:nth-child(n+4){border-top:1px solid var(--line)}}
@media(max-width:700px){.cards{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:18px}.card{padding:11px 10px}.card:nth-child(n){border-top:0;border-left:0}.card:nth-child(2n){border-left:1px solid var(--line)}.card-value{font-size:21px}.card-title{font-size:10px}.card-date{font-size:8px}}
