/* Native category control: the existing chart keeps its full viewport. */
html[data-kamui-chart-layout] .flash-market-select{flex-direction:row!important}
.flash-market-select>.market-region-select{box-sizing:border-box;flex:none;width:88px;max-width:88px;min-width:0;height:30px;margin:0 6px 0 0;padding:4px 17px 4px 6px;border:1px solid #383838;border-radius:3px;background:#101010;color:#eee;font:11px/1.2 Arial,"Noto Sans",sans-serif;cursor:pointer}
.market-region-select:focus-visible{outline:1px solid #eee;outline-offset:2px}
.market-region-select[data-fund=true]{color:#a0a0a0}
html[data-kamui-chart-layout] .flash-market-toolbar{right:calc(100% - 406px)!important}
html[data-kamui-chart-layout] .market-candle-toolbar{left:418px!important}
html[data-market-browser-hypothesis=unavailable] .hypothesis-workspace [data-hw-action=play],html[data-market-browser-model=unavailable] [data-think-deeply] button{opacity:.45;cursor:default}
html[data-market-browser-execution=unavailable] #flash-trading-root [data-ft=trading-view],html[data-market-browser-execution=unavailable] #flash-trading-root [data-ft=ticket],html[data-market-browser-execution=unavailable] #flash-trading-root [data-ft=open-ticket]{display:none!important}
/* Keep the trademark visible while this instrument's model is unavailable. */
html[data-market-browser-model=unavailable] [data-think-deeply],html[data-market-browser-model=unavailable][data-market-analysis-eligibility=unavailable] [data-think-deeply]{display:block!important}
/* The native toggle owns open/close; only declared new-market presentation
   may reveal the slot hidden by the legacy market allowlist. */
html[data-kamui-chart-layout] .flash-terminal[data-market-browser-neural=presentation][data-cw-neural=true] #flash-market-view [data-orderbook-brain-slot][hidden]{display:block!important;z-index:30!important}
/* Regional presentation floats outside the chart's zero-height legacy section.
   Keep the existing fixed/drag geometry and place its panel above chart z20. */
html[data-kamui-chart-layout] .flash-terminal[data-market-browser-neural=presentation][data-cw-neural=true][data-cw-kind=chart][data-view=market]>.flash-market{overflow:visible!important}
html[data-kamui-chart-layout] .flash-terminal[data-market-browser-neural=presentation][data-cw-neural=true][data-cw-kind=chart][data-view=market] #flash-market-view [data-workspace-neural],html[data-kamui-chart-layout] .flash-terminal[data-market-browser-neural=presentation][data-cw-neural=true][data-cw-kind=chart][data-view=market] #flash-market-view [data-orderbook-brain-slot]{z-index:30!important}
/* Anatomy remains available when short price history prevents a model trace. */
html[data-kamui-chart-layout] .flash-terminal[data-market-browser-neural=presentation][data-cw-neural=true][data-cw-kind=chart][data-view=market] #flash-market-view [data-orderbook-brain-view]>.fly-brain-card[hidden]{display:block!important}
html[data-kamui-chart-layout] .flash-terminal[data-market-browser-neural=presentation][data-cw-neural=false] [data-workspace-neural],html[data-kamui-chart-layout] .flash-terminal[data-market-browser-neural=presentation][data-cw-neural=false] [data-orderbook-brain-slot]{display:none!important}
@media(max-width:1099px){
 html[data-kamui-chart-layout] .flash-market-toolbar{right:136px!important}
 html[data-kamui-chart-layout] .market-candle-toolbar{left:var(--cw-left)!important}
 .flash-market-select>.market-region-select{width:76px;max-width:76px;font-size:10px}
}
@media(max-width:380px){
 html[data-kamui-chart-layout] .flash-market-toolbar{right:120px!important}
 html[data-kamui-chart-layout] #flash-coin{width:90px!important;max-width:90px!important}
 .flash-market-select>.market-region-select{width:60px;max-width:60px;margin-right:4px;font-size:9px}
}
