/* 직접 만든 캔들 차트(candle-chart.js) 스타일 — 팝업(.dm-body) 안에서 꽉 차게 */
.cc-wrap{flex:1;min-height:0;display:flex;flex-direction:column;background:#fff}
.cc-bar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 14px;border-bottom:1px solid var(--line,#e4e1d8)}
.cc-intervals,.cc-ranges{display:flex;gap:2px;flex-wrap:wrap}
.cc-bar button,.cc-ranges button{border:0;background:transparent;color:var(--ink,#242b29);font:inherit;font-size:13px;padding:5px 10px;border-radius:6px;cursor:pointer}
.cc-bar button:hover,.cc-ranges button:hover{background:var(--mint,#eaf2de)}
.cc-bar button.on,.cc-ranges button.on{background:var(--mint,#eaf2de);color:var(--darkgreen,#225d3d);font-weight:700}
.cc-note{color:var(--muted,#85887e);font-size:11px;white-space:nowrap}
.cc-stage{position:relative;flex:1;min-height:0}
.cc-canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}
.cc-legend{position:absolute;left:14px;top:5px;right:76px;pointer-events:none;font-size:12px;line-height:1.5}
.cc-l1{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline}.cc-l1 b{font-size:13px}.cc-sym{color:var(--muted,#85887e)}
.cc-l2{color:var(--muted,#85887e)}
.cc-legend i{font-style:normal;font-variant-numeric:tabular-nums}.cc-legend i.up{color:#19804d}.cc-legend i.down{color:#d64e4e}
.cc-ranges{flex:none;padding:6px 14px;border-top:1px solid var(--line,#e4e1d8)}
.cc-empty{padding:28px;color:var(--muted,#85887e)}
@media(max-width:760px){.cc-note{display:none}.cc-legend{font-size:11px;right:8px}.cc-bar,.cc-ranges{padding:5px 8px}.cc-ranges button{padding:5px 7px;font-size:12px}}
html[data-theme=dark] .cc-wrap{background:#1b1e24}html[data-theme=dark] .cc-bar,html[data-theme=dark] .cc-ranges{border-color:#2d313a}
html[data-theme=dark] .cc-bar button,html[data-theme=dark] .cc-ranges button{color:#d0d5de}html[data-theme=dark] .cc-bar button:hover,html[data-theme=dark] .cc-ranges button:hover{background:#252a31}
html[data-theme=dark] .cc-bar button.on,html[data-theme=dark] .cc-ranges button.on{background:#204635;color:#57d89d}
html[data-theme=dark] .cc-legend i.up{color:#3fbf86}html[data-theme=dark] .cc-legend i.down{color:#e0605e}
