:root{color-scheme:dark;--site:#0b111a;--muted:#8192a8;--aqua:#67dcc8}*{box-sizing:border-box}body{margin:0;background:var(--site);color:#dce4ee;font:12px -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}button,select,input{font:inherit}a{color:var(--aqua);text-decoration:none}button,select{cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible,.frame-head:focus-visible{outline:2px solid #448aff;outline-offset:2px}button:disabled{opacity:.35;cursor:not-allowed}input{accent-color:#2962ff}[hidden]{display:none!important}.top{height:42px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid #283442;gap:14px}.brand{font-size:15px;font-weight:800;letter-spacing:-.4px;color:#fff;display:flex;align-items:baseline;gap:1px}.brand span{font-weight:400;color:var(--aqua)}.brand small{font-size:9px;color:#899ab0;letter-spacing:1px;margin-left:9px}.top-right{display:flex;align-items:center;gap:18px;font-size:10px;color:#97a5b7}.preview{color:#d8b478;font-size:9px}.top-right a{color:#c4d6eb}main{padding:6px}.workspace{--surface:#ffffff;--surface2:#f8f9fa;--line:#dadce0;--ink:#202124;--soft:#5f6368;--hover:#f1f3f4;--active:#e8f0fe;--blue:#315cce;background:var(--surface);color:var(--ink);border:1px solid var(--line);display:flex;flex-direction:column;min-height:calc(100dvh - 74px);color-scheme:light}.workspace[data-chart-theme=dark]{--surface:#090a0c;--surface2:#14161a;--line:#2a2e36;--ink:#d1d4dc;--soft:#9299a5;--hover:#242830;--active:#172b4e;--blue:#82adff;color-scheme:dark}.workspace button,.workspace select{background:transparent;color:var(--ink);border:1px solid transparent;border-radius:4px;min-height:30px;padding:4px 8px;white-space:nowrap}.workspace button:hover,.workspace select:hover{background:var(--hover)}.workspace button[aria-pressed=true]{color:var(--blue);background:var(--active)}.workspace select{padding-right:4px}.toolbar{min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:3px 8px;border-bottom:1px solid var(--line);flex-wrap:wrap}.tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.tools label{display:flex;align-items:center;gap:4px;color:var(--soft);font-size:11px}.tools input{margin:0 3px 0 0}.segmented{display:flex;gap:1px}.instrument{display:flex;gap:7px;align-items:baseline;border-right:1px solid var(--line);padding-right:12px;margin-right:2px}.instrument strong{font-size:15px;font-weight:650}.instrument span{color:var(--soft);font-size:10px}.control-label>span{display:none}.secondary{min-height:34px;font-size:10px;padding-top:1px;padding-bottom:1px}.secondary button{min-height:26px;font-size:10px;padding:3px 7px}.secondary .tools{gap:8px}.divider{height:17px;width:1px;background:var(--line);margin:0 4px}.chart-grid{display:grid;grid-template-columns:minmax(0,1fr) 258px;flex:1;min-height:0}.workspace.sidebar-hidden .chart-grid{grid-template-columns:minmax(0,1fr)}.workspace.sidebar-hidden aside{display:none}.chart-column{display:flex;flex-direction:column;min-width:0;background:var(--surface)}.chart-heading{display:flex;align-items:center;justify-content:space-between;padding:5px 12px 1px;gap:10px;min-height:28px}.quote{display:flex;align-items:baseline;gap:10px}.quote strong{font-size:17px;font-weight:650;font-variant-numeric:tabular-nums}.quote small,.frame-session{font-size:9px;color:var(--soft)}.frame-session{white-space:nowrap}.ohlc{font:11px Arial,sans-serif;color:var(--soft);padding:3px 12px;min-height:23px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.regime-row{display:flex;align-items:center;gap:14px;min-height:25px;padding:2px 12px 4px;font-size:10px;color:var(--soft)}.regime-title{font-size:10px;white-space:nowrap}.regime-title small{display:none}#regimeCards{display:flex;gap:15px;align-items:center;min-width:0}.regime-item{display:flex;align-items:center;gap:5px;white-space:nowrap}.regime-item small{font-size:10px}.regime-item b{font-size:10px;font-weight:500;color:var(--ink)}.regime-score{display:none}.plot-stack{display:flex;flex-direction:column;flex:1;min-height:0}.chart{height:clamp(440px,calc(100dvh - 276px),1400px);min-height:320px;flex:1;position:relative;overflow:hidden;user-select:none;touch-action:none;cursor:grab}.chart>canvas{display:block;width:100%;height:100%;touch-action:none}.chart canvas{cursor:grab}.chart.is-panning,.chart.is-panning canvas{cursor:grabbing}#frames{position:absolute;inset:0;pointer-events:none}.frame{position:absolute;top:0;width:148px;height:100%;pointer-events:none;z-index:2;background:transparent;border-left:1px dashed #8794a633}.frame.focused{border-left-color:#577caf55}.frame-head{height:44px;margin-right:4px;padding:7px 9px;background:color-mix(in srgb,var(--surface) 94%,transparent);border:1px solid var(--line);border-radius:3px;pointer-events:auto;touch-action:none;display:flex;align-items:center;justify-content:space-between;gap:6px;cursor:ew-resize}.frame-head *{cursor:ew-resize}.frame-head strong{font-size:11px;color:var(--ink);font-weight:600}.frame-head small{display:block;font-size:9px;color:var(--soft);margin-top:3px}.frame-grip{color:var(--soft);font-size:14px}.frame.locked .frame-head,.frame.locked .frame-head *{cursor:default}.frame canvas{display:block;width:100%;height:calc(100% - 44px);pointer-events:auto;touch-action:none}.chart-empty{position:absolute;inset:42% 10% auto;text-align:center;color:var(--soft);pointer-events:none}.chart-footer{display:flex;justify-content:space-between;gap:10px;min-height:25px;padding:6px 12px;color:var(--soft);font-size:9px;border-top:1px solid var(--line)}.indicator-pane{height:130px;flex-shrink:0;border-top:1px solid var(--line);position:relative}.indicator-pane header{position:absolute;top:6px;left:12px;display:flex;gap:10px;font-size:10px;pointer-events:none}.indicator-pane header span{color:var(--soft)}.indicator-pane canvas{display:block;width:100%;height:100%;cursor:grab}aside{border-left:1px solid var(--line);min-width:0;background:var(--surface);overflow:auto;max-height:calc(100dvh - 196px)}.side-tabs{position:sticky;top:0;background:var(--surface);display:flex;border-bottom:1px solid var(--line);padding:4px 7px;gap:5px;z-index:6}.side-tabs button{font-size:12px}.market-heading{display:flex;justify-content:space-between;font-size:9px;color:var(--soft);padding:12px 10px 8px}.products{display:block}.product{display:grid;grid-template-columns:1fr auto auto;grid-template-areas:"name price change" "symbol at at";gap:4px 8px;padding:11px 10px;border-bottom:1px solid var(--line);min-width:0;position:relative}.product:hover{background:var(--hover)}.product-name{display:contents}.product-name>span:first-child{grid-area:name;font-size:12px;font-weight:550}.product-name>span:last-child{grid-area:change;text-align:right;font-size:11px;font-variant-numeric:tabular-nums;min-width:47px}.product strong{grid-area:price;font-size:12px;font-weight:500;font-variant-numeric:tabular-nums}.product small{color:var(--soft);font-size:9px}.product small:first-of-type{grid-area:symbol}.product small:last-of-type{grid-area:at;text-align:right}.product svg{display:none}.up{color:#089981!important}.down{color:#f23645!important}.market-explainer{font-size:10px;color:var(--soft);line-height:1.5;padding:12px 10px}.side-note{margin:12px 10px;border-top:1px solid var(--line);padding-top:13px;font-size:11px}.side-note strong{font-weight:550}.side-note p{font-size:10px;color:var(--soft);line-height:1.6}#levelsSide{padding:14px 12px}.aside-heading{font-size:9px;letter-spacing:.5px;display:flex;justify-content:space-between;color:var(--soft);margin:4px 0 14px}.aside-heading span:last-child{color:var(--blue)}.detail h2{font-size:22px;font-weight:600;margin:0 0 14px}.detail h2 small{font-size:10px;font-weight:400}.detail p{font-size:11px;line-height:1.65;color:var(--soft);margin:0 0 22px}.detail dl{display:grid;grid-template-columns:1fr 1fr;gap:16px 8px;margin:0 0 18px}.detail dt{font-size:9px;color:var(--soft);margin-bottom:6px}.detail dd{font-size:12px;font-variant-numeric:tabular-nums;margin:0}.level-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid var(--line);font-size:11px}.level-row span{color:var(--soft)}.level-row button{color:var(--blue);font-variant-numeric:tabular-nums}.legend{font-size:10px;color:var(--soft);line-height:1.7;margin-top:18px}.legend i{display:inline-block;width:6px;height:6px;border-radius:1px;margin-right:4px}.positive{background:#089981}.negative{background:#f23645;margin-left:5px}.expiry-section{display:grid;grid-template-columns:190px 1fr;gap:0 14px;align-items:center;padding:7px 12px;border-top:1px solid var(--line);background:var(--surface2)}.expiry-title{display:flex;flex-direction:column;gap:5px;color:var(--soft);font-size:9px;letter-spacing:.5px}.expiry-title small{font-size:8px;letter-spacing:0}.expiry-dates{display:flex;gap:6px;flex-wrap:wrap}.expiry-dates button{text-align:left;font-size:11px;min-width:86px;padding:4px 9px}.expiry-dates button small{display:block;font-size:8px;color:var(--soft);margin-top:2px}.expiry-section p{grid-column:1/-1;font-size:9px;color:var(--soft);line-height:1.5;margin:5px 0 0}.source-notes{color:#8b9bae;font-size:10px;line-height:1.6;padding:7px 8px}.source-notes summary{cursor:pointer}.source-notes p{margin:8px 0;max-width:1100px}.load-error{margin:7px 10px;font-size:11px;color:#ff97a4}.gate{position:fixed;inset:0;background:#0b111af2;display:grid;place-items:center;z-index:20;padding:20px}.gate>div{max-width:480px;border:1px solid #344354;padding:34px;border-radius:9px;background:#14202e}.gate h2{font-size:24px}.gate p{color:#a0afbf;line-height:1.7}.gate a{display:inline-block;margin:15px 14px 0 0}.gate .eyebrow{font-size:10px;letter-spacing:1.5px;color:var(--aqua)}.primary{padding:10px 14px;background:#1b5548;border:1px solid #4b9784;border-radius:5px}.workspace:fullscreen{height:100dvh;overflow:auto}.workspace:fullscreen .chart{height:calc(100dvh - 232px)}.workspace:fullscreen aside{max-height:calc(100dvh - 152px)}
@media(max-width:1100px){.chart-grid{grid-template-columns:minmax(0,1fr) 232px}.tools{gap:3px}.instrument span{display:none}.regime-score{display:none}.quote small{font-size:8px}.frame-session{font-size:8px}.toolbar{gap:4px}.secondary .tools{gap:4px}.chart{height:calc(100dvh - 315px);min-height:430px}.frame{width:132px}}
@media(max-width:760px){.top{height:42px;padding:0 9px}.brand small{display:none}.top-right{font-size:8px;gap:8px}.preview{font-size:8px}#connection{display:none}main{padding:3px}.toolbar{padding:4px 6px}.tools{gap:3px}.tools label{font-size:10px}.workspace button,.workspace select{padding:3px 6px;font-size:11px}.instrument strong{font-size:13px}.instrument{padding-right:6px}.secondary .tools{gap:7px}.secondary button{font-size:9px;min-height:25px}.chart-grid{grid-template-columns:1fr}.chart{height:55dvh;min-height:390px}.chart-heading{padding:6px 8px 1px;align-items:flex-start}.quote{flex-direction:column;gap:1px}.quote strong{font-size:16px}.frame-session{max-width:45%;white-space:normal;text-align:right}.ohlc{padding:4px 8px;font-size:10px}.regime-row{padding:3px 8px;gap:8px}.regime-title{font-size:9px}.regime-title small{display:none}#regimeCards{gap:8px;flex-wrap:wrap}.regime-item b,.regime-item small{font-size:9px}.frame{width:112px}.chart-footer{padding:6px 8px;font-size:8px;gap:5px}.chart-footer>span:first-child{max-width:65%}aside{border-left:0;border-top:1px solid var(--line);max-height:380px}.products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.product{grid-template-columns:1fr auto;grid-template-areas:"name change" "price price" "symbol at";gap:4px 5px;border-right:1px solid var(--line);padding:9px}.product-name>span:first-child{font-size:11px}.product-name>span:last-child{font-size:10px}.product strong{font-size:14px}.product small:last-of-type{font-size:8px}.market-heading{display:none}.side-note{margin-top:0}.market-explainer{padding:8px 10px}.expiry-section{grid-template-columns:1fr;padding:8px;gap:7px}.expiry-title{flex-direction:row;justify-content:space-between}.expiry-dates{gap:3px}.expiry-dates button{min-width:65px;flex:1;font-size:10px;padding:4px 5px}.source-notes{font-size:9px}.indicator-pane{height:105px}.workspace:fullscreen .chart{height:55dvh}.workspace:fullscreen aside{max-height:320px}}

.product.active-market{background:var(--active);box-shadow:inset 3px 0 var(--blue)}

.dots-controls{border-top:1px solid var(--line);padding:7px 12px 6px;background:var(--surface);color:var(--ink);font-size:10px}.dots-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.dots-top label{display:flex;align-items:center;gap:5px}.dots-top input{margin:0}.dots-top button{margin-left:auto;font-size:10px;min-height:25px}#dotsStatus{color:var(--soft);font-size:9px}.dots-controls details{margin-top:5px}.dots-controls summary{cursor:pointer;color:var(--blue);font-size:10px;padding:3px 0}.dots-controls summary small{color:var(--soft);font-size:9px;margin-left:10px}.dots-options{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:7px 0}.dots-options button{font-size:10px}.dots-series{display:flex;gap:14px;flex-wrap:wrap;padding:6px 0}.dots-group{display:flex;flex-direction:column;gap:7px;min-width:105px}.dots-group>strong{font-weight:600;color:var(--soft);font-size:9px;letter-spacing:.5px}.dots-group label{display:flex;align-items:center;gap:5px;cursor:pointer;font-size:10px}.dots-group label input{margin:0}.dots-group i{width:6px;height:6px;border-radius:50%;display:inline-block}.dots-note,#dotsDetail{font-size:9px;color:var(--soft);line-height:1.6;margin:7px 0 0}.dots-tooltip{position:absolute;z-index:8;max-width:280px;padding:8px 10px;border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--ink);box-shadow:0 3px 14px #0002;pointer-events:none;font:11px/1.5 Arial,sans-serif}
@media(max-width:760px){.dots-controls{padding:7px 8px}.dots-top{gap:6px}.dots-top button{padding:3px 5px}.dots-series{gap:14px 10px}.dots-controls summary small{display:block;margin:3px 0 0}.dots-tooltip{font-size:10px;max-width:240px}}

.axis-zone{position:absolute;z-index:6;touch-action:none;user-select:none;cursor:grab;background:transparent}
.axis-price{top:52px;right:0;bottom:32px;width:76px}.axis-time{left:10px;right:76px;bottom:0;height:32px}
.axis-zone:hover{background:#6b8cb20a}.axis-zone.axis-dragging{cursor:grabbing;background:#6b8cb210}
.axis-zone:focus-visible{outline:1px solid var(--blue);outline-offset:-2px;background:#6b8cb210}

.crosshair-label{position:absolute;z-index:7;pointer-events:none;height:22px;line-height:22px;text-align:center;font:11px/22px Arial,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;border-radius:2px;box-shadow:0 0 0 1px var(--surface);user-select:none}
.crosshair-time{padding:0 5px}.crosshair-price{right:2px;width:72px}

/* Terminal fills the viewport; optional controls expand inside its workspace. */
html{height:100%;overflow:hidden}body{height:100dvh;overflow:hidden;display:flex;flex-direction:column}
.top{flex:0 0 42px}main{flex:1;min-height:0;display:flex;flex-direction:column;position:relative;overflow:hidden}
.workspace{flex:1;min-height:0;height:auto;overflow:hidden}.workspace:fullscreen{height:100dvh;overflow:hidden}
.toolbar{flex:0 0 auto;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}.toolbar>.tools{flex:0 0 auto;flex-wrap:nowrap}
.timezone-control select{max-width:185px}.chart-grid{position:relative;min-height:0;overflow:hidden}.chart-column{min-height:0}
.chart-heading,.ohlc,.regime-row,.chart-footer{flex-shrink:0}.plot-stack{flex:1;min-height:0;overflow:hidden}
.chart,.workspace:fullscreen .chart{height:0;min-height:110px;flex:1}.chart>canvas{position:absolute;inset:0}
.chart-grid>aside,.workspace:fullscreen aside{height:100%;min-height:0;max-height:none;overscroll-behavior:contain}
.regime-row{overflow-x:auto;scrollbar-width:thin}#regimeCards{flex-wrap:nowrap}
.dots-controls{flex:0 0 auto;position:relative;display:flex;align-items:center;gap:4px 14px;flex-wrap:wrap;border-top:0;border-bottom:1px solid var(--line);padding:4px 10px;z-index:12}
.dots-top{flex:1;min-width:0;flex-wrap:nowrap}.dots-top label,.dots-top button{flex-shrink:0}#dotsStatus{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;min-width:0}
.dots-controls>details{margin:0;flex-shrink:0}.dots-controls summary{padding:5px 2px}.dots-controls summary small{display:none}
.dots-popover{position:absolute;top:100%;left:6px;right:6px;max-height:min(52dvh,420px);overflow:auto;overscroll-behavior:contain;padding:10px 12px 14px;border:1px solid var(--line);border-radius:0 0 5px 5px;background:var(--surface);box-shadow:0 8px 24px #0003}
.dots-popover .dots-options{margin-top:0}.dots-controls>#dotsDetail{flex:0 0 100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0;line-height:16px}
.dots-close{float:right}.expiry-section{flex:0 0 auto;max-height:82px;overflow:auto;overscroll-behavior:contain;padding:5px 10px}.expiry-dates{flex-wrap:nowrap;overflow-x:auto}.expiry-dates button{flex-shrink:0}.expiry-section p{margin:3px 0 0}
.source-notes{flex:0 0 auto;padding:3px 8px;margin:0;min-height:22px}.source-body{position:absolute;bottom:27px;left:6px;right:6px;max-height:40dvh;overflow:auto;padding:8px 14px;background:#14202e;border:1px solid #344354;border-radius:4px;z-index:13;box-shadow:0 -4px 20px #0003}.source-body p{max-width:none}
.load-error{flex:0 0 auto;max-height:34px;overflow:auto;margin:3px 10px}.chart-footer{padding:4px 10px;min-height:23px}.chart-footer span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.chart-footer span:first-child{flex:1}.chart-footer span:last-child{flex-shrink:0}
.crosshair-time{font-size:10px}
@media(max-width:760px){.chart-grid{grid-template-columns:minmax(0,1fr)}.chart-grid>aside{position:absolute;top:0;right:0;bottom:0;width:min(85%,290px);z-index:10;border-left:1px solid var(--line);border-top:0;box-shadow:-6px 0 20px #0003}.products{display:block}.top{flex-basis:36px;height:36px}.toolbar{gap:8px}.toolbar .tools{gap:6px}.chart{min-height:100px}.chart-heading{padding:3px 8px}.quote{flex-direction:row;align-items:baseline;gap:5px}.quote small{max-width:155px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.frame-session{max-width:42%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.regime-row{min-height:22px}.dots-controls{gap:2px 7px;padding:3px 7px}.dots-top{gap:5px}.dots-top button{font-size:9px}.dots-controls summary{font-size:9px}#dotsStatus{font-size:8px}.dots-popover{max-height:55dvh}.expiry-section{max-height:64px;grid-template-columns:1fr;gap:3px}.expiry-title{flex-direction:row}.expiry-section p{display:none}.chart-footer>span:first-child{max-width:none}.chart-footer>span:last-child{max-width:45%}.timezone-control select{max-width:165px}}
@media(max-height:600px){.top{height:30px;flex-basis:30px}.toolbar{min-height:32px}.secondary{min-height:29px}.chart-heading{display:none}.ohlc{min-height:20px;padding-top:2px;padding-bottom:2px}.regime-row{min-height:20px}.dots-controls>#dotsDetail{display:none}.expiry-section{max-height:46px}.expiry-section p{display:none}.source-notes{font-size:9px;min-height:18px;padding:1px 8px}}

.expiry-strip{display:grid;grid-template-columns:160px minmax(0,1fr) auto;gap:4px 10px;max-height:none;overflow:visible;padding:6px 10px;background:var(--surface2);border-top:0;border-bottom:1px solid var(--line)}
.expiry-strip .expiry-title{grid-column:1;grid-row:1;gap:2px;min-width:0;letter-spacing:0}.expiry-strip .expiry-title strong{color:var(--ink);font-size:11px}.expiry-strip .expiry-title span{font-size:9px}.expiry-strip .expiry-title small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:160px}
.expiry-strip .expiry-dates{grid-column:2;grid-row:1;min-width:0}.expiry-strip .expiry-dates button{min-width:84px;border:1px solid var(--line);background:var(--surface)}.expiry-strip .expiry-dates button[aria-pressed=true]{border-color:var(--blue);background:var(--active)}
#fitExpiry{grid-column:3;grid-row:1;color:var(--blue);border:1px solid var(--line);background:var(--active);font-size:10px}
.expiry-prices{grid-column:1/-1;display:flex;gap:8px;align-items:center;overflow-x:auto;white-space:nowrap;min-width:0;scrollbar-width:thin}.expiry-strip .expiry-price{font-size:10px;min-height:23px;padding:3px 8px;border:1px solid var(--line);background:var(--surface);font-variant-numeric:tabular-nums}.expiry-empty{font-size:10px;color:var(--soft)}.expiry-strip #expiryDetail{display:none}
@media(max-width:760px){.expiry-strip{grid-template-columns:112px minmax(0,1fr);padding:4px 7px;gap:3px 7px}.expiry-strip .expiry-title{flex-direction:column;gap:1px}.expiry-strip .expiry-title strong{font-size:10px}.expiry-strip .expiry-title small{display:none}.expiry-strip .expiry-dates button{min-width:78px;flex:0 0 auto}.expiry-strip #fitExpiry{grid-column:1;grid-row:2;padding:3px 4px;font-size:9px;min-height:25px}.expiry-strip .expiry-prices{grid-column:2;grid-row:2}.expiry-strip .expiry-price{font-size:9px}.expiry-strip .expiry-empty{font-size:9px}}
@media(max-height:600px){.expiry-strip{padding-top:3px;padding-bottom:3px}.expiry-strip .expiry-title span,.expiry-strip .expiry-title small,.expiry-strip .expiry-dates button small{display:none}.expiry-strip .expiry-title{justify-content:center}.expiry-strip .expiry-dates button{min-height:25px}.expiry-strip .expiry-price{min-height:20px;padding-top:1px;padding-bottom:1px}}

.price-modes{border:1px solid var(--line);border-radius:4px}.price-modes button{min-height:27px}.conversion-status{font-size:9px;color:var(--blue);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.instrument #instrumentMode{display:inline;font-size:9px}.chart-heading .quote{flex-shrink:0}.chart-heading .frame-session{overflow:hidden;text-overflow:ellipsis;min-width:0}
@media(max-width:760px){.conversion-status{font-size:8px}.chart-heading .frame-session{display:none}}

/* Only market cards receive the new regime palette; chart/portal themes stay intact. */
.chart-grid{grid-template-columns:minmax(0,1fr) 286px}
.market-heading{padding:9px 10px 6px}.products{padding:4px 7px;display:grid;gap:6px}
.product.regime-product{display:block;padding:9px 10px;border:1px solid #ffffff26;border-radius:6px;color:#fff;transition:background-color .7s ease;border-left-width:3px;box-shadow:none}
.product.regime-product.active-market{border-left-color:#86b7ff;box-shadow:none}
.regime-product .market-top,.regime-product .market-price,.regime-product .market-regime{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0}
.regime-product .market-top b{font-size:12px;font-weight:600}.regime-product .market-top strong{font-size:13px;font-weight:600;color:#fff;white-space:nowrap}
.regime-product .market-price{font-size:10px;margin-top:3px;color:#e7eaf0}.regime-product .market-price span:last-child{font-size:9px}
.regime-product .market-regime{margin-top:7px;font-size:11px}.regime-product .market-regime b{font-weight:600}.regime-product .market-regime span{font-weight:600;font-variant-numeric:tabular-nums}
.regime-product .market-change{font-size:10px;margin-top:3px;color:#f3f4f6}
.regime-product small.market-at{display:block;text-align:left;font-size:9px;color:#e0e3e9;margin-top:5px;white-space:normal}
.regime-product .market-details{font-size:10px;margin-top:5px;color:#f3f4f6}.market-details summary{cursor:pointer;padding:3px 0}.market-details>div{padding-top:4px}.market-details p{font-size:10px;line-height:1.45;margin:5px 0;color:#e0e3e9}
.market-details dl{margin:5px 0}.market-details dl>div{display:grid;grid-template-columns:1fr auto;gap:2px 8px;padding:6px 0;border-top:1px solid #ffffff26}.market-details dt,.market-details dd{margin:0;font-size:11px}.market-details dd{font-variant-numeric:tabular-nums}
.regime-product .market-details dl small{grid-column:1/-1;grid-area:auto;display:block;text-align:left;color:#e0e3e9;font-size:9px}
.market-color-key{padding:4px 10px 7px;font-size:9px;color:var(--soft);display:flex;justify-content:space-between;gap:6px}
.market-color-key i{display:inline-block;width:7px;height:7px;border-radius:2px;margin-right:3px}.market-color-key .key-bear{background:#b12640}.market-color-key .key-neutral{background:#080b0f;border:1px solid #9299a5}.market-color-key .key-bull{background:#087846}.market-color-key .key-missing{background:var(--market-missing,#555d69)}
@media(max-width:1100px){.chart-grid{grid-template-columns:minmax(0,1fr) 260px}}
@media(max-width:760px){.chart-grid{grid-template-columns:minmax(0,1fr)}.chart-grid>aside{width:min(88%,300px)}.regime-product .market-details summary{min-height:28px;display:flex;align-items:center}.products{display:grid;grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.product.regime-product{transition:none}}

.major-context-card{margin:10px 0;padding:12px;border:1px solid var(--border,#39404d);border-radius:7px;font-size:12px;line-height:1.45}
.major-context-card strong{font-size:13px}.major-context-card p{margin:6px 0}
.major-context-tooltip{position:absolute;z-index:25;max-width:min(320px,calc(100% - 12px));max-height:calc(100% - 100px);overflow:hidden;pointer-events:none;padding:11px 12px;border-radius:6px;font-size:12px;line-height:1.35;background:#fff;color:#202630;border:1px solid #bdc5d1;box-shadow:0 3px 14px #0003}
.major-context-tooltip p{margin:5px 0}.major-context-tooltip strong{display:block;margin-bottom:7px}
[data-chart-theme="dark"] .major-context-tooltip{background:#171b22;color:#edf0f6;border-color:#505968}
.major-context-card[hidden],.major-context-tooltip[hidden]{display:none}
/* DOTS share the background canvas; profiles are below opaque price candles. */
#candles{z-index:0}
#frames{z-index:2}
.chart>#priceCandles{position:absolute;inset:0;z-index:3;pointer-events:none}

.chart-event{position:absolute;z-index:24;box-sizing:border-box;max-width:calc(100% - 92px);padding:12px 14px;border:1px solid #5b78b7;border-left:3px solid #426ac6;border-radius:7px;background:#f5f8ff;color:#18233c;box-shadow:0 6px 22px #0003;pointer-events:auto;font:12px/1.4 system-ui,sans-serif;animation:chart-event-in .16s ease-out}
.chart-event[hidden]{display:none}.chart-event strong{display:block;font-size:14px;line-height:1.4;padding-right:10px}.chart-event p{margin:6px 0}.chart-event small{display:block;color:inherit;opacity:.8;font-size:10px}.chart-event .event-label{letter-spacing:.08em;font-size:9px;margin-bottom:5px;font-weight:700}.chart-event .event-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}.chart-event button{min-height:28px;font-size:10px;padding:3px 7px;color:inherit;background:transparent;border:1px solid #7892bd;border-radius:4px}.chart-event .event-close{position:absolute;right:4px;top:3px;min-height:24px;border:0;font-size:17px;line-height:1}.chart-event .event-detail{white-space:pre-line;font-size:11px;max-height:140px;overflow:auto;border-top:1px solid #7892bd;padding-top:8px;margin-top:8px}
.chart-event[data-tone="up"]{border-color:#16856c;border-left-color:#089981}.chart-event[data-tone="down"]{border-color:#d55766;border-left-color:#e14457}.chart-event[data-demo="true"]{border-color:#8b79bb;border-left-color:#8462c9}
[data-chart-theme="dark"] .chart-event{background:#151e30;color:#e8eefb;box-shadow:0 6px 24px #0009}[data-chart-theme="dark"] .chart-event button{color:#e8eefb}
@keyframes chart-event-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.chart-event{animation:none}}
@media(max-width:760px){.chart-event{padding:9px 10px}.chart-event strong{font-size:12px}.chart-event .event-detail{max-height:100px}}

.plot-stack{position:relative}
.chart-event{cursor:default;touch-action:auto;user-select:text}
.chart-event .event-detail{overscroll-behavior:contain;touch-action:pan-y}
.chart-event .event-close{z-index:2}
.chart-event .event-label{padding-right:28px}

/* Compact terminal header, without shrinking the price chart to fit overlays. */
.top{height:32px;flex-basis:32px}main{padding:3px}.toolbar{min-height:32px;padding:1px 6px;gap:5px}.toolbar .tools{gap:4px}.workspace button,.workspace select{min-height:27px;padding:3px 6px}.instrument{padding-right:5px;gap:3px}.instrument strong{font-size:12px}.product-select-label select{max-width:145px;font-weight:600}.price-modes button{font-size:10px;min-height:25px}.secondary{min-height:28px}.secondary button{min-height:24px;padding:2px 5px}.secondary .tools{gap:6px}
.toolbar:first-child{overflow:visible;flex-wrap:wrap}.toolbar:first-child>.tools:first-child{flex:1 1 auto;flex-wrap:wrap;min-width:0}.toolbar:first-child>.tools:last-child{margin-left:auto}.toolbar>.dots-controls{padding:0;border:0;flex:0 1 auto;gap:3px;position:static}.toolbar:first-child{position:relative;z-index:12}.dots-top{gap:4px}.dots-top #dotsStatus{display:none}.dots-top #fitDots{font-size:9px;padding:2px 3px}.dots-controls summary{padding:3px}.dots-popover{top:100%;left:4px;right:4px;z-index:16}.dots-controls .dots-top strong{font-size:10px}.expiry-strip{padding:3px 7px;gap:2px 7px;grid-template-columns:116px minmax(0,1fr) auto}.expiry-strip .expiry-title strong{font-size:10px}.expiry-strip .expiry-title span{display:none}.expiry-strip .expiry-dates button{min-width:70px;min-height:27px;padding:3px 6px}.expiry-strip .expiry-dates button small{display:none}.expiry-strip .expiry-price{min-height:21px;padding:2px 6px}.expiry-strip .expiry-title small{max-width:115px;font-size:8px}.chart-heading{min-height:25px;padding:3px 10px 1px}.ohlc{min-height:21px;padding:2px 10px}.regime-row{min-height:22px;padding:1px 10px 3px}.chart-footer #dotsDetail{max-width:44%;margin:0;line-height:1.3;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;flex:0 1 auto}.product.regime-product{cursor:pointer}.product.regime-product details{cursor:auto}
@media(max-width:1100px){.toolbar:first-child>.tools:first-child{flex-basis:100%}.toolbar>.dots-controls{flex:1}.timezone-control select{max-width:115px}.toolbar .tools{gap:3px}}
@media(max-width:760px){.toolbar:first-child>.tools:first-child{overflow-x:auto;flex-wrap:nowrap}.toolbar:first-child .instrument{display:none}.toolbar>.dots-controls{min-width:190px}.expiry-strip{grid-template-columns:88px minmax(0,1fr)}.expiry-strip .expiry-title strong{font-size:9px}.chart-footer #dotsDetail{display:none}.product-select-label select{max-width:123px}.top{height:30px;flex-basis:30px}.expiry-strip #fitExpiry{min-height:21px}.secondary{overflow-x:auto}.regime-row{min-height:20px}}

.em-tracker{flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:2px 8px;min-height:29px;border-bottom:1px solid var(--line);background:var(--surface2);font-size:10px;overflow-x:auto;white-space:nowrap}.em-tracker>strong{font-size:9px;color:var(--soft)}.em-tracker select,.em-tracker button{min-height:24px;font-size:10px;padding:2px 5px}.em-tracker select{max-width:155px}.em-tracker small{font-size:9px;color:var(--soft);margin-left:auto}.em-excursion{display:flex;align-items:center;gap:4px}.em-excursion i{display:inline-block;width:40px;height:4px;background:var(--line);border-radius:2px;overflow:hidden}.em-excursion em{display:block;height:100%;background:#6b91cb}.em-excursion:last-of-type em{background:#b2819a}#emLow,#emHigh{font-variant-numeric:tabular-nums;color:var(--blue)}#emCurrent{font-weight:500}
@media(max-width:760px){.em-tracker{gap:8px;min-height:28px}.em-tracker>strong{display:none}.em-tracker small{margin-left:0}.em-tracker select{max-width:140px}}

/* The interval picker uses terminal colors in every focus state. */
.timeframe-control{position:relative;flex-shrink:0}
.workspace #timeframeToggle{display:flex;align-items:center;justify-content:space-between;gap:9px;min-width:57px;background:var(--surface2);border-color:var(--line);color:var(--ink)}
.workspace #timeframeToggle:hover,.workspace #timeframeToggle[aria-expanded=true]{background:var(--hover)}
.timeframe-chevron{font-size:11px;color:var(--soft)}
.timeframe-list{position:absolute;top:calc(100% + 4px);left:0;min-width:90px;padding:4px;background:var(--surface2);color:var(--ink);border:1px solid var(--line);border-radius:5px;box-shadow:0 5px 18px #0005;z-index:30}
.workspace .timeframe-list [role=option]{display:block;width:100%;min-height:29px;text-align:left;background:var(--surface2);color:var(--ink);border:1px solid transparent;padding:5px 8px}
.workspace .timeframe-list [role=option][aria-selected=true]{background:var(--active);color:var(--blue);font-weight:600}
.workspace .timeframe-list [role=option].is-active{border-color:var(--blue)}
.workspace .timeframe-list [role=option]:hover{background:var(--hover)}
.workspace .timeframe-list [role=option][aria-selected=true]:hover{background:var(--active)}

.chart-heading{display:flex;flex-wrap:wrap}.chart-frame-controls{display:flex;align-items:center;flex:0 0 auto;gap:4px}.chart-frame-controls button{min-height:24px;padding:3px 7px;font-size:10px}.chart-frame-controls .frame-controls-label{font-size:9px;color:var(--soft)}.chart-heading .quote{margin-right:auto}.chart-heading .frame-session{flex:1 1 120px;text-align:right}

/* Expiry controls occupy the header only while expanded. */
.expiry-menu{position:static;flex-shrink:0}
.expiry-menu>summary{list-style:none;display:flex;align-items:center;gap:5px;cursor:pointer;min-height:27px;padding:3px 7px;border:1px solid var(--line);border-radius:4px;color:var(--ink);background:var(--surface2);font-size:10px}
.expiry-menu>summary::-webkit-details-marker{display:none}
.expiry-menu>summary::after{content:'⌄';color:var(--soft)}
.expiry-menu>summary:hover,.expiry-menu[open]>summary{background:var(--hover)}
.expiry-menu>summary:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
#expirySelection{color:var(--soft);font-size:9px}
.expiry-menu-body{position:absolute;top:100%;left:5px;right:5px;max-height:min(46dvh,340px);overflow:auto;border:1px solid var(--line);border-radius:0 0 5px 5px;background:var(--surface2);box-shadow:0 8px 24px #0005;z-index:25}
.expiry-menu-body .expiry-strip{border:0;max-height:none}
/* A collapsible side drawer with an always reachable edge handle. */
.chart-grid{--sidebar-width:258px;grid-template-columns:minmax(0,1fr) var(--sidebar-width);transition:grid-template-columns 180ms ease}
.chart-grid>aside{position:absolute;top:0;right:0;bottom:0;width:var(--sidebar-width);height:100%;z-index:10;transform:translateX(0);visibility:visible;transition:transform 180ms ease,visibility 0s}
.workspace.sidebar-hidden .chart-grid{grid-template-columns:minmax(0,1fr) 0px}
.workspace.sidebar-hidden aside{display:block;transform:translateX(100%);visibility:hidden;pointer-events:none;transition:transform 180ms ease,visibility 0s 180ms}
.workspace #sidebarToggle{position:absolute;right:var(--sidebar-width);top:50%;transform:translateY(-50%);z-index:11;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:24px;min-height:70px;padding:5px 2px;background:var(--surface2);color:var(--ink);border:1px solid var(--line);border-right:0;border-radius:6px 0 0 6px;box-shadow:-2px 0 7px #0002;transition:right 180ms ease}
.workspace #sidebarToggle:hover{background:var(--hover)}
.workspace.sidebar-hidden #sidebarToggle{right:0}
.panel-edge-arrow::before{content:'›';font-size:20px;line-height:18px}
#sidebarToggle[aria-pressed=false] .panel-edge-arrow::before{content:'‹'}
.panel-edge-label{font-size:9px;writing-mode:vertical-rl}
@media(max-width:1100px){.chart-grid{--sidebar-width:232px}}
@media(max-width:760px){.chart-grid{--sidebar-width:min(85%,290px);grid-template-columns:minmax(0,1fr) 0px}.expiry-menu-body .expiry-strip{display:flex;flex-direction:column;align-items:stretch;gap:6px}.expiry-menu-body .expiry-dates{flex-wrap:wrap;max-height:130px;overflow:auto}.expiry-menu-body .expiry-title{flex-direction:row}.expiry-menu-body #expiryDetail{display:block}}
@media(prefers-reduced-motion:reduce){.chart-grid,.chart-grid>aside,.workspace.sidebar-hidden aside,.workspace #sidebarToggle{transition:none}}

/* Header uses the main GEX panel navy palette. */
.top{background:#0b1b29;border-bottom-color:#19364b}

/* Display controls are grouped in the right-side Settings tab. */
#settingsSide{padding:12px 10px 18px}
.settings-group{margin:0 0 16px}
.settings-group+.settings-group{padding-top:12px;border-top:1px solid var(--line)}
.settings-group h3{margin:0 0 10px;font-size:10px;font-weight:600;letter-spacing:.6px;text-transform:uppercase;color:var(--soft)}
.settings-fields{display:flex;flex-direction:column;gap:9px}
.settings-fields label{display:grid;grid-template-columns:65px minmax(0,1fr);align-items:center;gap:7px;color:var(--ink);font-size:11px}
.settings-fields select{width:100%;min-width:0;background:var(--surface2);border-color:var(--line);color:var(--ink)}
.settings-fields option{background:var(--surface2);color:var(--ink)}
#settingsSide .settings-options{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-height:0;padding:0;border:0;overflow:visible;white-space:normal}
#settingsSide .settings-options>.tools{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:7px;width:100%;min-width:0}
#settingsSide .settings-options>.tools+.tools{border-top:1px solid var(--line);padding-top:12px}
#settingsSide .settings-options label{display:flex;align-items:center;gap:7px;min-height:25px;color:var(--ink);font-size:11px;white-space:normal}
#settingsSide .settings-options button{min-height:28px;text-align:left;white-space:normal;border-color:var(--line)}
#settingsSide .settings-options .divider{height:1px;width:100%;margin:5px 0}


/* Per-layer settings and accessible DOTS colors. */
#settingsSide .settings-subtabs{display:flex;gap:5px;margin:0 0 14px;flex-wrap:wrap}
#settingsSide .settings-subtabs button{flex:1;min-width:65px;padding:8px 5px}
#settingsSide .settings-subtabs button[aria-selected=true]{background:#163752;border-color:#4b83b0;color:#fff}
#settingsSide .settings-help{font-size:11px;line-height:1.5;color:#c4cfdd;margin:8px 0 12px}
#settingsSide h3{font-size:12px;color:#e0e8f2;margin:10px 0}
.language-setting{display:flex;flex-direction:column;gap:8px}.language-setting select{width:100%;min-height:34px;background:#102032;color:#e5edf6;border:1px solid #35506b;border-radius:5px;padding:6px}
.level-matrix{border-collapse:collapse;width:100%;font-size:10px;table-layout:fixed}.level-matrix th:first-child{width:46%;text-align:left}.level-matrix th,.level-matrix td{padding:9px 2px;border-bottom:1px solid #263341;text-align:center}.level-matrix input{accent-color:#6b9bdc;width:16px;height:16px;cursor:pointer}.level-matrix input:disabled{cursor:not-allowed;opacity:.4}
#settingsDots .dots-options{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}#settingsDots .dots-options>.segmented{flex-basis:100%}#settingsDots .dots-options>button{font-size:10px;white-space:normal;min-height:30px}
#settingsDots .dots-series{display:flex;flex-direction:column;gap:10px;max-height:none;overflow:visible}#settingsDots .dots-group{display:flex;flex-direction:column;min-width:0;gap:4px;border-bottom:1px solid #263341;padding-bottom:9px}#settingsDots .dots-group>strong{font-size:11px;color:#bccddd}.dot-settings-row{display:flex;align-items:center;gap:8px;min-height:30px}.dot-settings-row>label{display:flex;align-items:center;flex:1;gap:6px;min-width:0;font-size:11px}.dot-settings-row>label i{width:8px;height:8px;border-radius:50%;flex-shrink:0}.dot-settings-row input[type=color]{width:36px;height:27px;padding:2px;border:1px solid #54687e;background:#142235;cursor:pointer;border-radius:4px}.dot-settings-row input[type=checkbox]{accent-color:#6b9bdc}#settingsDots .dots-note{font-size:10px;line-height:1.5;color:#aebdce}#resetDotColors{margin:8px 0;font-size:11px}
[data-chart-theme=light] #settingsSide .settings-subtabs button[aria-selected=true]{background:#e8f0fe;color:#243a5f}
[data-chart-theme=light] #settingsSide h3,[data-chart-theme=light] #settingsDots .dots-group>strong{color:#202124}
[data-chart-theme=light] #settingsSide .settings-help,[data-chart-theme=light] #settingsDots .dots-note{color:#5f6368}
[data-chart-theme=light] .level-matrix th,[data-chart-theme=light] .level-matrix td,[data-chart-theme=light] #settingsDots .dots-group{border-color:#dadce0}
[data-chart-theme=light] .language-setting select{background:#f8f9fa;color:#202124;border-color:#dadce0}

/* Theme-specific empty-market colour and neutral white Settings. */
.workspace{--market-missing:#555d69}
.workspace[data-chart-theme=dark]{--market-missing:#252b34}
[data-chart-theme=light] #sidePanel:has(#settingsSide:not([hidden])){
 --surface:#fff;--surface2:#f8f9fa;--line:#dadce0;--ink:#202124;--soft:#5f6368;
 --hover:#f1f3f4;--active:#e8f0fe;--blue:#1a73e8;background:#fff;color:#202124;border-left-color:#dadce0;
}
[data-chart-theme=light] #settingsSide{background:#fff;color:#202124}
[data-chart-theme=light] #settingsSide h3,
[data-chart-theme=light] #settingsDots .dots-group>strong{color:#202124}
[data-chart-theme=light] #settingsSide .settings-help,
[data-chart-theme=light] #settingsDots .dots-note{color:#5f6368}
[data-chart-theme=light] #settingsSide .settings-subtabs button[aria-selected=true]{background:#e8f0fe;color:#1967d2;border-color:#d2e3fc}
[data-chart-theme=light] #settingsSide .level-matrix th,
[data-chart-theme=light] #settingsSide .level-matrix td,
[data-chart-theme=light] #settingsDots .dots-group{border-color:#dadce0}
[data-chart-theme=light] #settingsSide .language-setting select{background:#fff;color:#202124;border-color:#dadce0}
[data-chart-theme=light] #settingsSide .dot-settings-row input[type=color]{background:#fff;border-color:#dadce0}
[data-chart-theme=light] #settingsSide input[type=checkbox]{accent-color:#1a73e8}

/* Market cards follow the chart theme without waiting for a data refresh. */
.workspace{--market-text:#202124;--market-soft:#4b463c;--market-border:#b9b1a2;--market-divider:#20212433;--market-active:#315cce;--market-bull:#9cd3b0;--market-bear:#eba9a9;--market-neutral:#f8f9fa;--market-missing:#e8eaed}
.workspace[data-chart-theme=dark]{--market-text:#fff;--market-soft:#edf0f5;--market-border:#ffffff26;--market-divider:#ffffff26;--market-active:#86b7ff;--market-bull:#087846;--market-bear:#b12640;--market-neutral:#080b0f;--market-missing:#252b34}
.workspace .product.regime-product{background-color:var(--regime-bg-light,var(--market-missing));color:var(--market-text);border-color:var(--market-border)}
.workspace[data-chart-theme=dark] .product.regime-product{background-color:var(--regime-bg-dark,var(--market-missing))}
.workspace .product.regime-product.active-market{border-left-color:var(--market-active)}
.workspace .regime-product .market-top strong,.workspace .regime-product .market-change,.workspace .regime-product .market-details{color:var(--market-text)}
.workspace .regime-product .market-price,.workspace .regime-product small.market-at,.workspace .regime-product .market-details p,.workspace .regime-product .market-details dl small{color:var(--market-soft)}
.workspace .regime-product .market-details dl>div{border-top-color:var(--market-divider)}
.workspace .market-color-key .key-bear{background:var(--market-bear)}
.workspace .market-color-key .key-neutral{background:var(--market-neutral);border-color:var(--market-border)}
.workspace .market-color-key .key-bull{background:var(--market-bull)}
.workspace .market-color-key .key-missing{background:var(--market-missing)}
#settingsDots .dots-settings-master{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:7px 0 12px;border-bottom:1px solid var(--line);margin-bottom:10px}
#settingsDots .dots-settings-master label{display:flex;align-items:center;gap:7px;min-height:30px}
#settingsDots .dots-settings-master #dotsStatus{flex-basis:100%;font-size:10px;color:var(--soft);line-height:1.5}
#settingsDots .dots-settings-master #fitDots{border-color:var(--line);font-size:10px}

.header-language{display:flex;align-items:center}
.header-language select{min-width:54px;min-height:30px;padding:4px 5px;border:1px solid #35506b;border-radius:4px;background:#102639;color:#e5edf6;font-size:11px;font-weight:600;color-scheme:dark}
.header-language select:hover{background:#18364d}
.header-language option{background:#102639;color:#e5edf6}
@media(max-width:760px){.top-right{gap:7px}.header-language select{min-width:49px;min-height:30px;font-size:10px}}

/* Profile metric choices explain OI and stay separate from level visibility. */
#settingsGeneral .gex-metric-options{margin:0 0 4px;padding:0;border:0;min-width:0}
#settingsGeneral .gex-metric-options legend{font-size:11px;color:var(--soft);margin-bottom:8px}
#settingsGeneral .gex-metric-option{display:flex;grid-template-columns:none;align-items:center;gap:9px;padding:9px 8px;margin:0 0 6px;border:1px solid var(--line);border-radius:5px;background:var(--surface2);cursor:pointer}
#settingsGeneral .gex-metric-option>input{margin:0;flex-shrink:0}
#settingsGeneral .gex-metric-option>span{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 9px;min-width:0}
#settingsGeneral .gex-metric-option strong{font-size:11px;white-space:nowrap;color:var(--ink)}
#settingsGeneral .gex-metric-option small{font-size:10px;line-height:1.35;color:var(--soft)}
#settingsGeneral .gex-metric-option:has(input:checked){border-color:var(--blue);background:var(--active)}
#settingsGeneral .gex-metric-option:has(input:focus-visible){outline:2px solid var(--blue);outline-offset:2px}

/* Keep descriptive tab labels readable within the sidebar. */
.side-tabs button{flex:1 1 0;min-width:0;white-space:normal;line-height:1.25;padding:7px 5px}
#settingsSide .settings-subtabs button{white-space:normal;line-height:1.25}

.side-tabs button,#settingsSide .settings-subtabs button{overflow-wrap:anywhere;hyphens:auto}

#settingsSide .settings-subtabs{flex-wrap:nowrap}
#settingsSide .settings-subtabs button{flex:1 1 auto;min-width:45px}

#settingsSide .settings-subtabs{display:grid;grid-template-columns:72px minmax(0,1fr) 60px}
#settingsSide .settings-subtabs button{min-width:0}

/* Current chart price relative to the selected frame's GEX levels. */
.frame-price-meta{display:grid;gap:4px;padding:10px 0 8px;font-size:11px}
.frame-price-meta strong{font-size:12px;color:var(--text)}
.frame-price-meta small{color:var(--soft);line-height:1.35;overflow-wrap:anywhere}
.frame-price-track{position:relative;margin:6px 0 12px;min-height:100px}
.frame-price-level-group{position:absolute;left:91px;right:0;z-index:2}
.frame-price-level{height:38px;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;background:var(--surface);border-bottom:1px solid var(--line)}
.frame-price-level span{font-size:10px;line-height:13px;color:var(--soft);white-space:nowrap}
.frame-price-level button{font-size:12px;line-height:16px;padding:0 3px;border:0;background:transparent;color:var(--blue);font-variant-numeric:tabular-nums;min-height:0}
.frame-price-marker{position:absolute;left:0;width:82px;box-sizing:border-box;transform:translateY(-50%);z-index:3;padding:5px 3px;border:1px solid #688bc5;border-radius:5px;background:#172b48;color:#eef5ff;text-align:center;transition:top .24s ease;font-variant-numeric:tabular-nums}
.frame-price-marker b{display:block;font-size:12px;line-height:16px;white-space:nowrap}
.frame-price-marker small{display:block;font-size:9px;line-height:12px;opacity:.8}
.frame-price-guide{position:absolute;left:80px;right:0;height:0;border-top:1px dashed #688bc5;z-index:1;transition:top .24s ease}
.frame-price-empty{position:absolute;left:91px;right:0;top:20px;font-size:11px;line-height:1.5;color:var(--soft)}
[data-chart-theme=light] .frame-price-marker{background:#e8f0fe;border-color:#537bb6;color:#183d72}
@media(prefers-reduced-motion:reduce){.frame-price-marker,.frame-price-guide{transition:none!important}}

/* Clear chart controls, with stronger separation on the light background. */
.chart-heading{align-items:center;gap:8px;padding:6px 10px;position:relative;z-index:6}
.chart-heading .quote{order:0;margin-right:0;min-width:0}
.chart-heading .frame-session{order:1;flex:0 1 auto;margin-left:auto}
.chart-view-controls{order:2;margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:0 0 auto;max-width:100%}
.chart-view-controls .chart-frame-controls{gap:7px}
.chart-view-controls .frame-controls-label{font-size:10px;font-weight:600}
.workspace .chart-view-controls #timeframeToggle{min-height:34px;min-width:64px;padding:6px 10px;font-size:12px;font-weight:700}
.chart-view-controls .timeframe-list{z-index:40}
.workspace #frameToggles{gap:5px}
.workspace #frameToggles button{min-height:34px;min-width:66px;padding:6px 10px;font-size:12px;line-height:18px;font-weight:750;border:1px solid var(--line);border-radius:6px;background:var(--surface2);color:var(--soft)}
.workspace #frameToggles button::before{content:'';display:inline-block;width:6px;height:6px;margin-right:5px;border:1px solid currentColor;border-radius:50%;vertical-align:1px}
.workspace #frameToggles button[aria-pressed=true]{background:var(--active);border-color:var(--blue);color:var(--blue)}
.workspace #frameToggles button[aria-pressed=true]::before{background:currentColor}
.workspace #frameToggles button[aria-pressed=true][data-selected=true]{box-shadow:inset 0 -3px 0 var(--blue)}
.workspace[data-chart-theme=light] #frameToggles button{background:#fff;border-color:#94a3b8;color:#475569}
.workspace[data-chart-theme=light] #frameToggles button[aria-pressed=true]{background:#dbeafe;border-color:#4f86d4;color:#153e75}
.workspace[data-chart-theme=light] #frameToggles button:hover{background:#eff6ff;border-color:#1d4ed8}
.workspace[data-chart-theme=light] #frameToggles button[aria-pressed=true]:hover{background:#cfe2ff}
.workspace[data-chart-theme=light] .frame-head{background:#eff6ff;border-color:#7aa7e6;border-top:3px solid #4f86d4;box-shadow:0 2px 6px #1a468012}
.workspace[data-chart-theme=light] .frame.focused .frame-head{background:#dbeafe;border-color:#1d4ed8;box-shadow:0 2px 7px #1a468025}
.workspace[data-chart-theme=light] .frame-head strong{font-size:13px;font-weight:750;color:#153e75}
.workspace[data-chart-theme=light] .frame-head .frame-grip{color:#315a8f}
.frame-head{align-items:center}
@media(max-width:760px){.chart-heading{gap:6px}.chart-heading .quote{flex-wrap:wrap}.chart-heading .frame-session{display:none}.chart-view-controls{flex:1 1 100%;gap:9px}.chart-view-controls .frame-controls-label{display:none}.workspace #frameToggles button{min-width:62px;padding:6px 8px}.chart-view-controls .timeframe-list{left:0;right:auto}}

/* Regime direction has independent, readable text colors in each theme. */
.workspace{--regime-neutral:#000000;--regime-bear:#c5221f;--regime-bull:#137333}
.workspace[data-chart-theme=dark]{--regime-neutral:#e8eaed;--regime-bear:#ff8a80;--regime-bull:#81c995}
.workspace .regime-item b{font-size:11px;font-weight:700}
.workspace .regime-item[data-regime-tone=neutral] b{color:var(--regime-neutral)}
.workspace .regime-item[data-regime-tone=bear] b{color:var(--regime-bear)}
.workspace .regime-item[data-regime-tone=bull] b{color:var(--regime-bull)}
.workspace .regime-item[data-regime-tone=unavailable] b{color:var(--soft)}

.regime-line-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-left:auto;min-width:0}
.regime-line-controls label{display:flex;align-items:center;gap:3px;white-space:nowrap;font-size:10px;font-weight:600}
.workspace .regime-line-controls select{min-height:23px;padding:2px 5px;border:1px solid var(--line);background:var(--surface2);font-size:10px}
#regimeLineValue{font-size:10px;font-weight:700;white-space:nowrap}
.regime-line-scales{font-size:9px;color:var(--soft);white-space:nowrap}
#deltaPane>header{height:auto;min-height:26px;flex-wrap:wrap;gap:5px;padding-top:4px;padding-bottom:4px}
@media(max-width:760px){.regime-line-controls{flex:1 1 100%;margin-left:0;gap:6px}.regime-line-scales{font-size:8px}}

/* Profile drag handles stay light; the visibility buttons remain prominent. */
.workspace[data-chart-theme=light] .frame-head,
.workspace[data-chart-theme=light] .frame.focused .frame-head{background:transparent;border:0;border-bottom:1px solid #cbd5e1;border-radius:0;box-shadow:none}
.workspace[data-chart-theme=light] .frame.focused .frame-head{border-bottom-color:#7c94b5}
.workspace[data-chart-theme=light] .frame-head strong{font-size:12px;font-weight:600;color:#334155}

.pane-style-controls{display:inline-flex;align-items:center;gap:2px;margin-left:auto;flex-shrink:0}
.workspace .pane-style-controls button{font-size:9px;min-height:22px;line-height:16px;padding:2px 6px;border:1px solid var(--line);border-radius:4px;color:var(--soft);background:var(--surface)}
.workspace .pane-style-controls button[aria-pressed=true]{background:var(--active);color:var(--blue);border-color:var(--blue)}
#volumePane>header{height:auto;min-height:26px;flex-wrap:wrap;gap:5px;padding-top:4px;padding-bottom:4px}
#deltaPane .regime-line-controls{margin-left:5px;flex:1 1 auto}
@media(max-width:760px){#deltaPane .regime-line-controls{flex-basis:100%;margin-left:0}.workspace .pane-style-controls button{min-height:25px}}

/* The controls have their own row; canvas readouts start below the header. */
#volumePane,#deltaPane{height:auto;display:flex;flex-direction:column;flex:0 0 auto}
#volumePane>header,#deltaPane>header{position:relative;top:auto;left:auto;width:100%;flex:0 0 auto;z-index:2;pointer-events:auto;align-items:center;min-height:32px;padding:5px 10px;background:var(--surface);border-bottom:1px solid var(--line)}
#volumePane>header button,#deltaPane>header button,#deltaPane>header select,#deltaPane>header input,#deltaPane>header label{pointer-events:auto}
#volumeCanvas,#deltaCanvas{position:relative;z-index:1;display:block;width:100%;height:90px;min-height:90px;flex:0 0 90px;touch-action:none}
