research-chart{--chart-height:160px;display:block;margin:10px 0 3px;padding:10px 9px;border:1px solid var(--line);border-radius:12px;background:var(--white);min-width:0;font-size:12px;container-type:inline-size}
.chart-controls{display:flex;justify-content:space-between;gap:5px;flex-wrap:wrap}
.chart-tabs,.chart-periods{display:flex;align-items:center;gap:2px}
.chart-tabs{border-radius:8px;background:#eef2f5;padding:2px}
.chart-controls :is(button,.chart-type){display:inline-flex;align-items:center;padding:4px 7px;min-height:29px;border-radius:6px;white-space:nowrap;color:var(--muted);font-weight:650}
.chart-tabs :is(button[aria-pressed=true],.chart-type){background:var(--white);color:var(--ink);box-shadow:0 1px 2px #26374b18}
.chart-periods button[aria-pressed=true]{background:var(--pale);color:var(--accent)}
.chart-reading{min-height:47px;padding:6px 1px 3px;color:var(--muted);font-variant-numeric:tabular-nums;font-size:10px}
.chart-reading time{display:block;white-space:nowrap;margin-bottom:2px}
.chart-reading-head{display:flex;justify-content:space-between;gap:5px;flex-wrap:wrap}
.chart-values{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;font-size:10px}
research-chart[data-mode=compare] .chart-values{grid-template-columns:repeat(2,minmax(0,1fr))}
.chart-values span{white-space:nowrap}
.chart-values b{color:var(--ink);font-weight:650}
.chart-average{margin-top:6px;color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums}
.chart-canvas{width:100%;height:var(--chart-height);display:block;touch-action:pan-y;cursor:crosshair;border-radius:4px}
.chart-canvas:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.chart-plot{position:relative}
.report-chart > research-chart{margin:0}
.chart-event{position:absolute;transform:translate(-50%,-50%);min-width:26px;min-height:26px;padding:0 3px;border:1px solid var(--line);border-radius:7px;background:var(--white);font-size:9px;font-weight:750;color:var(--ink);touch-action:manipulation}
.chart-event:hover,.chart-event[aria-pressed=true]{color:var(--accent);border-color:#e6ad90;background:var(--pale)}
.chart-event-detail{border-top:1px solid var(--line);padding:8px 2px 0;margin-top:6px;font-size:11px}
.chart-event-detail p{margin:3px 0 0;color:var(--muted);line-height:1.55}
.chart-foot{display:flex;justify-content:space-between;align-items:center;gap:5px;margin-top:4px;color:var(--muted);font-size:10px}
.chart-foot button{color:var(--accent);font-size:11px;font-weight:700;padding:5px 2px;min-height:29px}
.fold-wide research-chart{--chart-height:190px}
research-chart.chart-expanded{--chart-height:235px}
research-chart:is([data-wyckoff],[data-hengrui])[data-mode=candle]{--chart-height:210px}
research-chart:is([data-wyckoff],[data-hengrui])[data-mode=candle].chart-expanded{--chart-height:290px}
.chart-legend{font-size:10px;color:var(--muted);margin-bottom:2px}
.chart-legend span{display:inline-flex;gap:4px;align-items:center;margin-right:10px}
.chart-legend span::before{content:"";width:12px;border-top:2px solid #a94317}
.chart-legend span+span::before{border-top:2px dashed #32669b}
.chart-placeholder{min-height:calc(var(--chart-height) + 113px);display:flex;flex-direction:column;align-items:start;justify-content:center;gap:5px;color:var(--muted);padding:8px}
research-chart[data-mode=compare] .chart-placeholder,research-chart[data-averages] .chart-placeholder{min-height:calc(var(--chart-height) + 132px)}
.chart-placeholder strong{color:var(--ink);font-size:14px}
.chart-placeholder .pill{margin-top:7px}
.chart-scene-controls{display:flex;gap:6px;flex-wrap:wrap}
.chart-scene-controls select{font:inherit;color:var(--ink);font-size:12px;border:1px solid var(--line);background:var(--white);border-radius:8px;padding:5px 6px}
.quote button[data-action=market-index]{text-align:left;font-weight:inherit;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@container(max-width:245px){
  .chart-values span{display:grid;line-height:1.3}
}
