.cost-stats{grid-template-columns:repeat(4,1fr)}
.cost-panel{padding:24px}
.cost-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}
.cost-heading h2{font-size:22px;margin-top:7px;text-wrap:balance}
.cost-source{font-size:12px;color:var(--mut);white-space:nowrap}
.cost-legend{display:flex;gap:10px 24px;flex-wrap:wrap;color:var(--tx2);font-size:13px;margin:20px 0 12px;font-variant-numeric:tabular-nums}
.cost-legend span{display:flex;align-items:center;gap:7px}
.cost-legend b{color:var(--tx);font-weight:600}
.cost-legend i{display:inline-block;width:14px;height:4px;border-radius:2px}
.cost-key{background:#199e70}.price-key{background:#c49129}.long-cost-key{background:#527cc5}
#cost-hover-date{margin-left:auto;color:var(--mut);font-family:var(--mono);font-size:12px}
#cost-chart{height:470px;position:relative}
@media(max-width:640px){.cost-panel{padding:16px}.cost-heading{align-items:flex-start;flex-direction:column;gap:6px}.cost-heading h2{font-size:19px}.cost-stats{grid-template-columns:repeat(2,1fr)}#cost-chart{height:360px}.cost-legend{gap:8px 16px}#cost-hover-date{margin-left:0;width:100%}}
.option-select{background:var(--bg2);color:var(--tx);border:1px solid var(--line2);border-radius:7px;padding:5px 8px;font:inherit;font-size:12px;max-width:260px}
.option-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:20px 0}
.option-stat .l{font-size:12px;color:var(--mut)}.option-stat .n{font-size:20px;font-weight:600;margin-top:5px;font-variant-numeric:tabular-nums}.option-stat .s{font-size:11px;color:var(--mut);margin-top:5px}
.option-legend{display:flex;flex-wrap:wrap;gap:8px 22px;font-size:12px;color:var(--tx2)}.option-legend span{display:flex;gap:6px;align-items:center}.option-legend i{width:15px;height:4px;display:inline-block}
.option-call-key{background:#e5a039}.option-put-key{background:#8b94a3}.option-pain-key{background:#a279cd}.option-spot-key{background:var(--tx)}
.option-plot{overflow-x:auto;border-bottom:1px solid var(--line);margin-top:14px}.option-plot svg{display:block;width:100%;min-width:640px;height:auto}.option-plot text{font-family:var(--sans)}
.option-plot .oi-focus{outline:none}.option-plot .oi-focus:hover,.option-plot .oi-focus:focus{stroke:var(--tx);stroke-width:1.5;fill-opacity:1}
.option-hover{font-size:12px;font-family:var(--mono);font-variant-numeric:tabular-nums;min-height:22px;color:var(--tx2);margin-top:12px;line-height:1.6}
.option-details summary{cursor:pointer;font-size:12px;color:var(--tx2)}.option-details table{width:100%;font-size:12px;border-collapse:collapse}.option-details th,.option-details td{text-align:right;border-bottom:1px solid var(--line);padding:8px}.option-details th:first-child,.option-details td:first-child{text-align:left}
@media(max-width:640px){.option-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.option-stat .n{font-size:18px}.option-select{max-width:210px}}
.analysis-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;align-items:start}
.analysis-card{min-width:0;margin:0!important}
.analysis-card .cost-heading{align-items:flex-start;gap:12px}.analysis-card .cost-heading h2{font-size:19px}
.chart-heading-actions{display:flex;align-items:flex-end;flex-direction:column;gap:10px;flex-shrink:0}
.chart-expand{white-space:nowrap}.analysis-card .toolbar{flex-wrap:wrap;row-gap:9px}
.analysis-card .cost-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.analysis-card .cost-stats .stat{padding:12px}.analysis-card .cost-stats .n{font-size:19px}
.analysis-card .option-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 10px}.analysis-card .option-stat .n{font-size:18px;overflow-wrap:anywhere}
.analysis-card #cost-chart{height:390px}.analysis-card .option-plot svg{min-width:440px}.analysis-card .option-plot{min-height:260px}
.analysis-card .option-plot text{font-size:12px}.analysis-card .notes{line-height:1.8}
.vol-chart{min-height:220px;min-width:0;--background:var(--bg2);--card:var(--bg2);--foreground:var(--tx);--muted-foreground:var(--mut);--border:var(--line);--primary:#a279cd;color:var(--tx)}
.vol-stats .n{font-size:18px}.chart-dialog-open{overflow:hidden}
#analysis-chart-dialog{width:min(1400px,96vw);max-width:96vw;max-height:94vh;margin:auto;padding:0;border:1px solid var(--line2);border-radius:16px;background:var(--bg);color:var(--tx)}
#analysis-chart-dialog::backdrop{background:#101614b8;backdrop-filter:blur(4px)}
.chart-dialog-bar{display:flex;justify-content:space-between;align-items:center;padding:12px 24px;background:var(--bg2);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:4}
#expanded-chart-slot{padding:20px}#expanded-chart-slot .chart-expand{display:none}#expanded-chart-slot .analysis-card{width:100%}
#expanded-chart-slot .cost-stats{grid-template-columns:repeat(4,minmax(0,1fr))}#expanded-chart-slot .option-stats{grid-template-columns:repeat(5,minmax(0,1fr))}
#expanded-chart-slot .vol-stats{grid-template-columns:repeat(3,minmax(0,1fr))}#expanded-chart-slot #cost-chart{height:560px}
@media(max-width:900px){.analysis-grid{grid-template-columns:1fr}.analysis-card .cost-heading{flex-direction:row}.analysis-card .chart-heading-actions{flex-direction:column}}
@media(max-width:640px){.analysis-grid{gap:16px}.analysis-card .option-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.analysis-card .cost-heading h2{font-size:18px}.chart-heading-actions .cost-source{font-size:11px}#expanded-chart-slot{padding:8px}#expanded-chart-slot .cost-stats,#expanded-chart-slot .option-stats,#expanded-chart-slot .vol-stats{grid-template-columns:repeat(2,minmax(0,1fr))}#expanded-chart-slot #cost-chart{height:420px}.chart-dialog-bar{padding:10px 16px}}

.vol-band-chart svg{display:block;width:100%;height:auto}.vol-band-chart text{font-family:var(--sans)}
#vol-inspect-day{width:100%;accent-color:#a279cd}.vol-slider-label{font-size:12px;color:var(--mut)}

/* Long-cycle research reads one full-width chart at a time. */
.other-wide main.wrap{max-width:1540px}
.other-wide .nav .wrap{max-width:1540px}
.other-wide .analysis-card .cost-heading h2{font-size:23px}
.other-wide .analysis-card .cost-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.other-wide .analysis-card .option-stats{grid-template-columns:repeat(5,minmax(0,1fr))}
.other-wide .analysis-card .vol-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.other-wide .analysis-card #cost-chart{height:440px}
.cbbi-intro{font-size:13px;color:var(--mut);margin:9px 0 0;line-height:1.7}
.other-wide .analysis-card .cbbi-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.cbbi-meter{margin:12px 0 27px;padding:0 3px}
.cbbi-meter-bar{position:relative;height:8px;border-radius:6px;background:linear-gradient(90deg,#3686ac 0%,#349b85 10%,#79a46a 20%,#c6b957 50%,#d99952 80%,#bf5861 100%)}
#cbbi-marker{position:absolute;top:-5px;width:4px;height:18px;background:var(--tx);border:1px solid var(--bg2);border-radius:3px;transform:translateX(-50%)}
.cbbi-meter-ticks{position:relative;height:16px;color:var(--mut);font-size:11px;margin-top:9px;font-variant-numeric:tabular-nums}
.cbbi-meter-ticks span{position:absolute;white-space:nowrap;transform:translateX(-50%)}
.cbbi-meter-ticks span:first-child{left:0;transform:none}.cbbi-meter-ticks span:nth-child(2){left:20%}.cbbi-meter-ticks span:nth-child(3){left:50%}.cbbi-meter-ticks span:nth-child(4){left:80%}.cbbi-meter-ticks span:last-child{right:0;transform:none}
.cbbi-legend{display:flex;align-items:center;flex-wrap:wrap;gap:12px 25px;font-size:12px;color:var(--tx2);margin:16px 0 4px}
.cbbi-legend span{display:flex;align-items:center;gap:7px}.cbbi-legend i{width:18px;height:3px;display:inline-block}
.cbbi-price-key{background:#ba8b31}.cbbi-score-key{background:#3b9e94}.cbbi-guide{margin-left:auto;color:var(--mut)}
.cbbi-price-chart{height:330px;position:relative;min-width:0}
.cbbi-score-chart{height:200px;position:relative;min-width:0;margin-top:10px}
.cbbi-inspect{font-family:var(--mono);font-size:12px;color:var(--tx2);min-height:20px;margin:13px 0}
#cbbi-inspect-day{width:100%;accent-color:#3b9e94}
.cbbi-reading{display:grid;grid-template-columns:1fr 1fr;gap:26px;border-top:1px solid var(--line);padding-top:20px;margin-top:22px}
.cbbi-reading h3{font-size:14px;margin:0 0 9px}.cbbi-reading p{font-size:13px;color:var(--tx2);line-height:1.9;margin:0}
.cbbi-details{margin-top:20px}
@media(max-width:700px){.other-wide .analysis-card .cost-stats,.other-wide .analysis-card .option-stats,.other-wide .analysis-card .cbbi-stats,.other-wide .analysis-card .vol-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.other-wide .analysis-card .cost-heading h2{font-size:19px}.cbbi-price-chart{height:280px}.cbbi-reading{grid-template-columns:1fr;gap:18px}.cbbi-guide{margin-left:0;width:100%}.cbbi-inspect{line-height:1.8}.other-wide .analysis-card #cost-chart{height:350px}}
