/* kamui-chart-workspace-layout-2026.10.27-r1 — original nodes/controllers, scoped viewport presentation. */
html[data-kamui-chart-layout]{--cw-top:48px;--cw-bottom:30px;--cw-left:44px;--cw-right:48px;--cw-bg:#090909;--cw-panel:#111;--cw-line:#303030;--cw-text:#eee;--cw-muted:#909090;--cw-drawer:320px;background:var(--cw-bg);overflow:hidden!important;scroll-padding:0!important}
html[data-kamui-chart-layout] body{background:var(--cw-bg);overflow:hidden!important}
html[data-kamui-chart-layout] [hidden]{display:none!important}
html[data-kamui-chart-layout] [data-chat-shell]{display:block!important;grid-template-columns:none!important}
html[data-kamui-chart-layout] [data-chat-sidebar],html[data-kamui-chart-layout] .chat-backdrop,html[data-kamui-chart-layout] .chat-sidebar-reopen{display:none!important}
html[data-kamui-chart-layout] [data-chat-workspace],html[data-kamui-chart-layout] #main,html[data-kamui-chart-layout] .flash-terminal,html[data-kamui-chart-layout] .flash-market,html[data-kamui-chart-layout] #flash-market-view{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;min-width:0!important;border:0!important}
html[data-kamui-chart-layout] .flash-heading,html[data-kamui-chart-layout] .chat-header-title,html[data-kamui-chart-layout] .chat-header-note{display:none!important}
html[data-kamui-chart-layout] .chat-header{position:fixed!important;left:0!important;right:0!important;top:0!important;height:var(--cw-top)!important;min-height:var(--cw-top)!important;display:flex!important;align-items:center;gap:8px;padding:0 10px!important;background:var(--cw-bg)!important;border-bottom:1px solid var(--cw-line)!important;z-index:60!important}
html[data-kamui-chart-layout] .chat-header-actions{margin-left:auto!important;gap:5px!important}
html[data-kamui-chart-layout] .chat-header-actions .wallet-trigger{font-size:10px!important;padding:5px 9px!important;min-height:30px!important;border-radius:3px!important;background:#151515!important;color:var(--cw-text)!important;border:1px solid #414141!important}
html[data-kamui-chart-layout] .fw-nav-button,html[data-kamui-chart-layout] .chat-menu-toggle{width:30px!important;height:30px!important;min-height:30px!important;flex:none!important}
html[data-kamui-chart-layout] .flash-market-toolbar{position:fixed!important;left:48px!important;top:0!important;right:calc(100% - 310px)!important;height:var(--cw-top)!important;min-height:var(--cw-top)!important;padding:0 6px!important;display:flex!important;gap:10px!important;flex-wrap:nowrap!important;align-items:center!important;border:0!important;background:transparent!important;z-index:62!important;pointer-events:none}
html[data-kamui-chart-layout] .flash-market-toolbar>*{pointer-events:auto}
html[data-kamui-chart-layout] .flash-market-select{display:flex!important;align-items:center!important;flex:none!important;min-width:0!important}
html[data-kamui-chart-layout] .flash-market-select>label{display:none!important}
html[data-kamui-chart-layout] #flash-coin{font-size:12px!important;min-width:116px!important;max-width:142px!important;width:142px!important;height:30px!important;padding:4px 22px 4px 6px!important;background:#101010!important;border:1px solid var(--cw-line)!important;border-radius:3px!important;color:var(--cw-text)!important}
html[data-kamui-chart-layout] .flash-price-strip{border:0!important;background:transparent!important;margin:0!important;padding:0!important;min-height:0!important}
html[data-kamui-chart-layout] .flash-market-toolbar>.flash-price-strip{display:flex!important;gap:0!important;flex:none!important}
html[data-kamui-chart-layout] .flash-price-strip>div:not(.flash-primary-price){display:none!important}
html[data-kamui-chart-layout] .flash-primary-price{display:flex!important;gap:2px!important;flex-direction:column!important}
html[data-kamui-chart-layout] .flash-primary-price>span{display:none!important}
html[data-kamui-chart-layout] .flash-primary-price>strong{font:500 12px ui-monospace,monospace!important;white-space:nowrap!important}
html[data-kamui-chart-layout] .flash-feed-controls{position:fixed!important;left:calc(var(--cw-left) + 6px)!important;bottom:4px!important;max-width:calc(100vw - 250px)!important;z-index:72!important;line-height:18px!important;margin:0!important;padding:0!important}
html[data-kamui-chart-layout] .flash-feed-state{font-size:9px!important;line-height:18px!important;color:var(--cw-muted)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-kamui-chart-layout] .flash-source,html[data-kamui-chart-layout] .flash-activity-tabs,html[data-kamui-chart-layout] .fw-mobile-tabs{display:none!important}
html[data-kamui-chart-layout] [data-workspace-root],html[data-kamui-chart-layout] .flash-workspace,html[data-kamui-chart-layout] .flash-chart-workspace,html[data-kamui-chart-layout] .flash-market-grid{display:block!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;width:100%!important}
html[data-kamui-chart-layout] [data-workspace-chart],html[data-kamui-chart-layout] .flash-terminal[data-cw-kind="chart"] #flash-market-view .flash-chart-panel{position:fixed!important;left:var(--cw-left)!important;right:var(--cw-right)!important;top:var(--cw-top)!important;bottom:var(--cw-bottom)!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;display:flex!important;flex-direction:column!important;overflow:visible!important;border:0!important;margin:0!important;padding:0!important;background:var(--cw-bg)!important}
html[data-kamui-chart-layout] [data-workspace-chart]>.flash-chart-panel{display:flex!important;flex-direction:column!important;flex:1!important;min-height:0!important;height:100%!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;overflow:visible!important}
html[data-kamui-chart-layout] .flash-chart-panel>.flash-price-strip{position:absolute!important;top:7px!important;left:6px!important;z-index:4!important}
html[data-kamui-chart-layout] .flash-chart-panel .market-candle{display:flex!important;flex-direction:column!important;flex:1!important;min-height:0!important;height:100%!important;width:100%!important;max-width:none!important;padding:0!important;margin:0!important;border:0!important;background:var(--cw-bg)!important}
html[data-kamui-chart-layout] .market-candle-heading{display:none!important}
html[data-kamui-chart-layout] .market-candle-toolbar{position:fixed!important;left:322px!important;right:210px!important;top:8px!important;height:30px!important;min-height:0!important;display:flex!important;align-items:center!important;gap:5px!important;padding:0!important;margin:0!important;border:0!important;z-index:63!important;background:var(--cw-bg)!important;overflow:hidden!important}
html[data-kamui-chart-layout] .market-candle-intervals{display:flex!important;flex-wrap:nowrap!important;gap:2px!important;min-width:0!important}
html[data-kamui-chart-layout] [data-market-interval]{font-size:10px!important;min-height:28px!important;padding:3px 7px!important;border-radius:2px!important;flex:none!important}
html[data-kamui-chart-layout] .market-candle-ohlc{position:absolute!important;left:8px!important;top:7px!important;right:60px!important;z-index:4!important;font:9px/16px ui-monospace,monospace!important;padding:0!important;margin:0!important;min-height:0!important;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:transparent!important}
html[data-kamui-chart-layout] .flash-chart-panel .market-candle-stage{display:block!important;position:relative!important;flex:1!important;min-height:0!important;height:100%!important;max-height:none!important;margin:0!important;padding:0!important;width:100%!important;background:var(--cw-bg)!important}
html[data-kamui-chart-layout] .market-candle-stage canvas[data-market-candle-canvas]{display:block!important;width:100%!important;height:100%!important}
html[data-kamui-chart-layout] .market-candle-stage [data-ds-overlay]{width:100%!important;height:100%!important}
html[data-kamui-chart-layout] .market-candle-meta{position:absolute!important;left:6px!important;right:64px!important;bottom:2px!important;z-index:4!important;min-height:0!important;max-height:15px!important;overflow:hidden!important;font-size:8px!important;line-height:13px!important;pointer-events:none}
html[data-kamui-chart-layout] .flash-chart-panel>details,html[data-kamui-chart-layout] .market-candle>details{position:absolute!important;left:8px!important;top:28px!important;z-index:16!important;font-size:9px!important;padding:0!important;margin:0!important;max-height:65vh!important;max-width:min(600px,calc(100vw - 110px))!important;border:0!important;background:rgba(12,12,12,.94)!important}
html[data-kamui-chart-layout] .flash-chart-panel>details[open],html[data-kamui-chart-layout] .market-candle>details[open]{overflow:auto!important;padding:8px!important;border:1px solid var(--cw-line)!important}
html[data-kamui-chart-layout] .flash-chart-panel>details:nth-of-type(2){top:48px!important}
html[data-kamui-chart-layout] .drawn-scenarios{height:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;overflow:visible!important;flex:none!important}
html[data-kamui-chart-layout] .drawn-scenarios .ds-toolbar{position:fixed!important;left:0!important;top:calc(var(--cw-top) + 10px)!important;width:var(--cw-left)!important;display:flex!important;flex-direction:column!important;gap:5px!important;padding:0 3px!important;box-sizing:border-box!important;z-index:69!important;background:var(--cw-bg)!important}
html[data-kamui-chart-layout] .ds-toolbar .ds-button{font-size:9px!important;line-height:12px!important;width:38px!important;min-width:0!important;height:46px!important;min-height:46px!important;max-height:46px!important;padding:5px 1px!important;white-space:normal!important;word-break:normal!important;border:1px solid var(--cw-line)!important;border-radius:3px!important;background:#111!important;color:var(--cw-text)!important}
html[data-kamui-chart-layout] .ds-toolbar .ds-button[disabled]{color:#666!important;background:#0b0b0b!important}
html[data-kamui-chart-layout] .ds-toolbar .ds-button[aria-pressed="true"]{color:#090909!important;background:#eee!important}
html[data-kamui-chart-layout] .drawn-scenarios .ds-status{position:fixed!important;left:calc(var(--cw-left) + 7px)!important;bottom:calc(var(--cw-bottom) + 17px)!important;z-index:14!important;max-width:calc(100vw - 340px)!important;width:auto!important;min-height:0!important;height:auto!important;max-height:24px!important;overflow:hidden!important;font:9px/16px ui-monospace,monospace!important;padding:0 5px!important;margin:0!important;background:rgba(9,9,9,.85)!important;color:var(--cw-muted)!important;pointer-events:none}
html[data-kamui-chart-layout] .drawn-scenarios .ds-details{position:fixed!important;left:3px!important;top:calc(var(--cw-top) + 171px)!important;width:38px!important;margin:0!important;padding:0!important;border:0!important;z-index:70!important;background:var(--cw-bg)!important;font-size:8px!important}
html[data-kamui-chart-layout] .ds-details>summary{list-style:none!important;border:1px solid var(--cw-line)!important;border-radius:3px!important;min-height:36px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:2px!important;cursor:pointer;color:var(--cw-muted)!important}
html[data-kamui-chart-layout] .ds-details[open] .ds-details-body{position:absolute!important;top:0!important;left:44px!important;width:min(360px,calc(100vw - 112px))!important;box-sizing:border-box!important;max-height:60dvh!important;overflow:auto!important;background:#111!important;border:1px solid var(--cw-line)!important;padding:12px!important;color:var(--cw-text)!important}
html[data-kamui-chart-layout] [data-workspace-middle]{position:static!important;display:block!important;width:0!important;height:0!important;min-width:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;overflow:visible!important}
html[data-kamui-chart-layout] [data-workspace-book],html[data-kamui-chart-layout] [data-workspace-ticket],html[data-kamui-chart-layout] .flash-terminal[data-cw-kind="chart"] #flash-book-panel{display:none!important;position:fixed!important;top:var(--cw-top)!important;right:var(--cw-right)!important;bottom:var(--cw-bottom)!important;left:auto!important;width:var(--cw-drawer)!important;max-width:calc(100vw - var(--cw-left) - var(--cw-right))!important;height:auto!important;min-height:0!important;max-height:none!important;box-sizing:border-box!important;overflow:auto!important;background:var(--cw-panel)!important;border-left:1px solid var(--cw-line)!important;box-shadow:-12px 0 28px #0006;z-index:35!important;margin:0!important;padding:0!important}
html[data-kamui-chart-layout] .flash-terminal[data-cw-panel="book"] [data-workspace-book],html[data-kamui-chart-layout] .flash-terminal[data-cw-panel="trade"] [data-workspace-ticket],html[data-kamui-chart-layout] .flash-terminal[data-cw-kind="chart"][data-cw-panel="book"] #flash-book-panel:not([hidden]){display:block!important}
html[data-kamui-chart-layout] [data-workspace-ticket] .ft-ticket{display:block!important;padding:14px!important}
html[data-kamui-chart-layout] [data-workspace-book] .ft-head{position:sticky!important;top:0!important;z-index:2;background:var(--cw-panel)!important}
html[data-kamui-chart-layout] [data-workspace-neural],html[data-kamui-chart-layout] .flash-terminal[data-cw-kind="chart"] [data-orderbook-brain-slot]{position:fixed!important;top:auto!important;bottom:calc(var(--cw-bottom) + 26px)!important;right:calc(var(--cw-right) + 10px)!important;left:auto!important;display:block!important;width:176px!important;height:174px!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;overflow:hidden!important;background:rgba(12,12,12,.92)!important;border:1px solid var(--cw-line)!important;border-radius:4px!important;z-index:18!important;box-shadow:0 4px 22px #0004}
html[data-kamui-chart-layout] [data-workspace-neural]>[data-orderbook-brain-slot]{position:static!important;width:100%!important;height:100%!important;min-height:0!important;padding:0!important;border:0!important;display:block!important}
html[data-kamui-chart-layout] [data-orderbook-brain]{display:block!important;position:relative!important;min-height:0!important;height:100%!important;margin:0!important;padding:6px!important;box-sizing:border-box!important}
html[data-kamui-chart-layout] [data-orderbook-brain-view]{display:block!important;position:relative!important;width:100%!important;height:108px!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;overflow:hidden!important;grid-column:auto!important;grid-row:auto!important}
html[data-kamui-chart-layout] [data-orderbook-brain-view] .fly-brain-card,html[data-kamui-chart-layout] [data-orderbook-brain-view] .fly-viewport,html[data-kamui-chart-layout] [data-orderbook-brain-view] canvas{width:100%!important;height:108px!important;min-height:0!important;max-height:none!important}
html[data-kamui-chart-layout] [data-orderbook-brain-hz]{font-size:12px!important;line-height:16px!important}
html[data-kamui-chart-layout] [data-think-deeply]{display:block!important;width:100%!important;min-height:28px!important;height:28px!important;margin:2px 0 0!important;padding:3px 5px!important;border:1px solid #494949!important;border-radius:3px!important;background:#161616!important;color:#eee!important;font-size:10px!important;font-weight:600!important}
html[data-kamui-chart-layout] [data-orderbook-brain] p[data-product-analysis-status]{position:absolute!important;left:6px!important;right:6px!important;top:174px!important;min-height:0!important;height:auto!important;max-height:70px!important;overflow:auto!important;font:10px/1.4 sans-serif!important;margin:0!important}
html[data-kamui-chart-layout] .flash-terminal[data-cw-neural="true"] [data-workspace-neural],html[data-kamui-chart-layout] .flash-terminal[data-cw-neural="true"][data-cw-kind="chart"] [data-orderbook-brain-slot]{height:250px!important}
html[data-kamui-chart-layout] .flash-terminal[data-cw-panel="book"] [data-workspace-neural],html[data-kamui-chart-layout] .flash-terminal[data-cw-panel="trade"] [data-workspace-neural]{right:calc(var(--cw-right) + var(--cw-drawer) + 10px)!important}
html[data-kamui-chart-layout] .fly-flight-actor{display:none!important}
html[data-kamui-chart-layout] [data-workspace-positions]{position:fixed!important;left:var(--cw-left)!important;right:var(--cw-right)!important;bottom:var(--cw-bottom)!important;height:0!important;min-height:0!important;max-height:none!important;display:block!important;padding:0!important;margin:0!important;overflow:visible!important;border:0!important;background:transparent!important;z-index:40!important;pointer-events:none}
html[data-kamui-chart-layout] [data-workspace-positions]>[data-ft="receipts"]{display:none!important;height:220px!important;max-height:45dvh!important;overflow:auto!important;background:var(--cw-panel)!important;border-top:1px solid var(--cw-line)!important;position:absolute!important;bottom:0!important;left:0!important;right:0!important;pointer-events:auto}
html[data-kamui-chart-layout] .flash-terminal[data-cw-positions="true"] [data-workspace-positions]>[data-ft="receipts"]{display:block!important}
html[data-kamui-chart-layout] [data-workspace-positions]>[data-ft="notice"],html[data-kamui-chart-layout] [data-workspace-positions]>[data-ft="pending"],html[data-kamui-chart-layout] [data-workspace-positions]>[data-ft="execution-status"]{position:relative!important;bottom:34px!important;left:8px!important;max-width:min(600px,calc(100vw - 118px))!important;pointer-events:auto;background:#181818!important;color:#eee!important;border:1px solid #555!important;border-radius:3px!important;margin:3px 0!important;padding:6px 10px!important;font-size:11px!important}
html[data-kamui-chart-layout] .cw-right-rail{position:fixed;right:0;top:var(--cw-top);bottom:var(--cw-bottom);width:var(--cw-right);z-index:65;display:flex;flex-direction:column;gap:6px;padding:8px 3px;box-sizing:border-box;border-left:1px solid var(--cw-line);background:var(--cw-bg)}
html[data-kamui-chart-layout] .cw-control{font-family:inherit;color:var(--cw-muted);background:transparent;border:1px solid transparent;border-radius:3px;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px 1px;min-width:0;min-height:47px;width:100%;line-height:1.1}
html[data-kamui-chart-layout] .cw-icon{font:19px/20px Arial,sans-serif}
html[data-kamui-chart-layout] .cw-label{font-size:8px;white-space:normal}
html[data-kamui-chart-layout] .cw-control:hover,html[data-kamui-chart-layout] .cw-control[aria-expanded="true"]{color:var(--cw-text);border-color:#494949;background:#1b1b1b}
html[data-kamui-chart-layout] .cw-control:focus-visible{outline:2px solid #eee;outline-offset:1px}
html[data-kamui-chart-layout] .cw-control:disabled{color:#505050;cursor:default}
html[data-kamui-chart-layout] .cw-bottom-bar{position:fixed;bottom:0;left:0;right:0;height:var(--cw-bottom);z-index:65;display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:0 8px;box-sizing:border-box;border-top:1px solid var(--cw-line);background:var(--cw-bg);color:var(--cw-muted);font:9px/1.2 ui-monospace,monospace}
html[data-kamui-chart-layout] .cw-bottom-bar .cw-control{width:auto;min-height:24px;height:24px;flex-direction:row;padding:1px 8px;gap:4px}
html[data-kamui-chart-layout] .cw-bottom-bar .cw-icon{font-size:15px}
html[data-kamui-chart-layout] .cw-bottom-bar .cw-label{font-size:10px}
html[data-kamui-chart-layout] .cw-control[data-attention="true"]{border-color:#ddd;color:#eee}
html[data-kamui-chart-layout] .fw-navigation{z-index:100!important}
@media(min-width:1700px){html[data-kamui-chart-layout]{--cw-drawer:350px}html[data-kamui-chart-layout] .market-candle-toolbar{right:260px!important}}
@media(max-width:1099px){
 html[data-kamui-chart-layout]{--cw-top:80px;--cw-left:40px;--cw-right:44px;--cw-drawer:300px}
 html[data-kamui-chart-layout] .chat-header{height:44px!important;min-height:44px!important}
 html[data-kamui-chart-layout] .flash-market-toolbar{height:44px!important;min-height:44px!important;left:42px!important;right:136px!important;padding:0 2px!important;gap:6px!important}
 html[data-kamui-chart-layout] #flash-coin{width:120px!important;max-width:120px!important;min-width:0!important;font-size:11px!important}
 html[data-kamui-chart-layout] .flash-market-toolbar>.flash-price-strip{display:none!important}
 html[data-kamui-chart-layout] .market-candle-toolbar{left:var(--cw-left)!important;right:var(--cw-right)!important;top:44px!important;height:36px!important;padding:3px!important;box-sizing:border-box!important;border-bottom:1px solid var(--cw-line)!important;overflow-x:auto!important;scrollbar-width:none}
 html[data-kamui-chart-layout] [data-market-interval]{padding:3px 6px!important;font-size:9px!important;min-height:27px!important}
 html[data-kamui-chart-layout] .ds-toolbar .ds-button{width:34px!important;font-size:8px!important;height:44px!important;min-height:44px!important}
 html[data-kamui-chart-layout] .drawn-scenarios .ds-details{width:34px!important;top:calc(var(--cw-top) + 164px)!important}
 html[data-kamui-chart-layout] [data-workspace-neural],html[data-kamui-chart-layout] .flash-terminal[data-cw-kind="chart"] [data-orderbook-brain-slot]{width:128px!important;height:144px!important;right:calc(var(--cw-right) + 5px)!important;bottom:calc(var(--cw-bottom) + 20px)!important}
 html[data-kamui-chart-layout] [data-orderbook-brain-view],html[data-kamui-chart-layout] [data-orderbook-brain-view] .fly-brain-card,html[data-kamui-chart-layout] [data-orderbook-brain-view] .fly-viewport,html[data-kamui-chart-layout] [data-orderbook-brain-view] canvas{height:80px!important}
 html[data-kamui-chart-layout] [data-orderbook-brain] p[data-product-analysis-status]{top:144px!important}
 html[data-kamui-chart-layout] .flash-terminal[data-cw-neural="true"] [data-workspace-neural],html[data-kamui-chart-layout] .flash-terminal[data-cw-neural="true"][data-cw-kind="chart"] [data-orderbook-brain-slot]{height:220px!important}
 html[data-kamui-chart-layout] .flash-terminal[data-cw-panel="book"] [data-workspace-neural],html[data-kamui-chart-layout] .flash-terminal[data-cw-panel="trade"] [data-workspace-neural]{right:calc(var(--cw-right) + 5px)!important;bottom:calc(var(--cw-bottom) + 8px)!important;z-index:50!important}
 html[data-kamui-chart-layout] .drawn-scenarios .ds-status{max-width:calc(100vw - 210px)!important;font-size:8px!important}
 html[data-kamui-chart-layout] .market-candle-ohlc{font-size:8px!important;max-height:16px!important}
 html[data-kamui-chart-layout] .cw-market-label{display:none}
}
@media(max-width:420px){html[data-kamui-chart-layout] .chat-header-actions .wallet-trigger{max-width:112px!important;font-size:9px!important;padding:5px 7px!important}html[data-kamui-chart-layout] .chat-header-actions{gap:2px!important}html[data-kamui-chart-layout] .cw-label{font-size:7px}}
@media(prefers-reduced-motion:reduce){html[data-kamui-chart-layout] *,html[data-kamui-chart-layout] *::before,html[data-kamui-chart-layout] *::after{scroll-behavior:auto!important}}

/* All non-Fund charts use existing native source-book/navigation controls. */
html[data-kamui-chart-layout] .flash-terminal[data-cw-kind="chart"] .flash-activity-panel{display:block!important;position:static!important;width:0!important;height:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;overflow:visible!important}
html[data-kamui-chart-layout]:has(.flash-terminal[data-cw-kind="chart"]) .chat-menu-toggle{display:none!important}
html[data-kamui-chart-layout]:has(.flash-terminal[data-cw-nav="true"]) [data-chat-sidebar]{display:flex!important;position:fixed!important;left:0!important;top:44px!important;bottom:30px!important;width:min(300px,85vw)!important;z-index:95!important;background:#111!important;transform:none!important;visibility:visible!important;border-right:1px solid #444!important}
html[data-kamui-chart-layout] .cw-fallback-menu{position:fixed;left:9px;top:9px;width:30px;height:30px;min-height:30px;z-index:75}
html[data-kamui-chart-layout] .cw-fallback-menu .cw-label{display:none}
html[data-kamui-chart-layout] [data-orderbook-brain-heading]{display:flex!important;align-items:center!important;gap:4px!important;height:18px!important;min-height:18px!important;margin:0!important;font-size:8px!important}
html[data-kamui-chart-layout] [data-orderbook-brain-heading] strong{font-size:9px!important;letter-spacing:.12em!important}
html[data-kamui-chart-layout] [data-orderbook-brain-telemetry]{position:absolute!important;right:6px!important;top:6px!important;margin:0!important;display:flex!important;gap:2px!important;align-items:baseline!important;font-size:8px!important}
html[data-kamui-chart-layout] [data-orderbook-brain-rate-basis]{display:none!important}
html[data-kamui-chart-layout] [data-orderbook-brain-resize]{display:none!important}
html[data-kamui-chart-layout] [data-orderbook-brain-progress-row]{font-size:9px!important;max-height:40px!important;overflow:hidden!important}
html[data-kamui-chart-layout] [data-workspace-neural]:has([data-orderbook-brain][data-thinking="true"]){height:250px!important}
@media(max-width:1099px){html[data-kamui-chart-layout] [data-workspace-neural]:has([data-orderbook-brain][data-thinking="true"]){height:220px!important}}
/* Touch rails float over the edges; the original chart keeps full viewport width. */
@media(max-width:1099px){
 html[data-kamui-chart-layout]{--cw-left:0px;--cw-right:0px}
 html[data-kamui-chart-layout] .cw-right-rail{width:44px;background:rgba(9,9,9,.92)}
 html[data-kamui-chart-layout] .drawn-scenarios .ds-toolbar{width:40px!important;background:rgba(9,9,9,.9)!important}
 html[data-kamui-chart-layout] [data-workspace-book],html[data-kamui-chart-layout] [data-workspace-ticket],html[data-kamui-chart-layout] .flash-terminal[data-cw-kind="chart"] #flash-book-panel{right:44px!important;max-width:calc(100vw - 44px)!important}
 html[data-kamui-chart-layout] [data-workspace-neural],html[data-kamui-chart-layout] .flash-terminal[data-cw-kind="chart"] [data-orderbook-brain-slot],html[data-kamui-chart-layout] .flash-terminal[data-cw-panel="book"] [data-workspace-neural],html[data-kamui-chart-layout] .flash-terminal[data-cw-panel="trade"] [data-workspace-neural]{right:49px!important}
 html[data-kamui-chart-layout] .drawn-scenarios .ds-status{left:43px!important}
 html[data-kamui-chart-layout] [data-workspace-positions]{right:44px!important}
}
@media(max-width:1099px){
 /* Keep the live optic above an open touch drawer so it cannot cover order controls. */
 html[data-kamui-chart-layout] .flash-terminal[data-cw-panel="book"] [data-workspace-book],html[data-kamui-chart-layout] .flash-terminal[data-cw-panel="trade"] [data-workspace-ticket]{top:calc(var(--cw-top) + 152px)!important}
 html[data-kamui-chart-layout] .flash-terminal[data-cw-panel="book"] [data-workspace-neural],html[data-kamui-chart-layout] .flash-terminal[data-cw-panel="trade"] [data-workspace-neural]{top:calc(var(--cw-top) + 4px)!important;bottom:auto!important}
}

/* Native truth/loading flags outrank force-display presentation rules. */
html[data-kamui-chart-layout] [hidden][hidden][hidden][hidden][hidden][hidden]{display:none!important}
/* Original financial notices grow upward; their recovery controls remain scrollable. */
html[data-kamui-chart-layout] [data-workspace-positions]{height:auto!important;max-height:calc(100dvh - var(--cw-top) - var(--cw-bottom) - 8px)!important;display:flex!important;flex-direction:column!important;gap:3px!important;align-items:flex-start!important;padding:0 8px!important;box-sizing:border-box!important}
html[data-kamui-chart-layout] [data-workspace-positions]>[data-ft="notice"],html[data-kamui-chart-layout] [data-workspace-positions]>[data-ft="pending"],html[data-kamui-chart-layout] [data-workspace-positions]>[data-ft="execution-status"]{position:static!important;bottom:auto!important;left:auto!important;max-height:110px!important;overflow:auto!important;flex:0 1 auto!important;box-sizing:border-box!important}
html[data-kamui-chart-layout] .flash-terminal[data-cw-positions="true"] [data-workspace-positions]{padding-bottom:min(220px,45dvh)!important}
@media(max-width:1099px){
 html[data-kamui-chart-layout] .flash-terminal[data-cw-panel="book"][data-cw-neural="true"] [data-workspace-book],html[data-kamui-chart-layout] .flash-terminal[data-cw-panel="trade"][data-cw-neural="true"] [data-workspace-ticket],html[data-kamui-chart-layout] .flash-terminal[data-cw-panel="book"]:has([data-orderbook-brain][data-thinking="true"]) [data-workspace-book],html[data-kamui-chart-layout] .flash-terminal[data-cw-panel="trade"]:has([data-orderbook-brain][data-thinking="true"]) [data-workspace-ticket]{top:calc(var(--cw-top) + 228px)!important}
}
html[data-kamui-chart-layout] [data-workspace-positions]>[data-ft="notice"],html[data-kamui-chart-layout] [data-workspace-positions]>[data-ft="pending"],html[data-kamui-chart-layout] [data-workspace-positions]>[data-ft="execution-status"]{min-height:0!important}
/* Unsupported execution markets retain the original Book / Recent trades read tabs. */
html[data-kamui-chart-layout] .flash-terminal[data-cw-kind="chart"] .flash-activity-panel>.flash-activity-tabs{display:none!important;position:fixed!important;top:var(--cw-top)!important;right:var(--cw-right)!important;width:var(--cw-drawer)!important;max-width:calc(100vw - var(--cw-left) - var(--cw-right))!important;min-height:40px!important;background:#111!important;z-index:51!important;border-bottom:1px solid var(--cw-line)!important}
html[data-kamui-chart-layout] .flash-terminal[data-cw-kind="chart"][data-cw-panel="book"] .flash-activity-panel>.flash-activity-tabs{display:flex!important}
html[data-kamui-chart-layout] .flash-terminal[data-cw-kind="chart"] .flash-activity-panel>:not([data-orderbook-brain-slot]):not([data-flash-trading-root]):not(.flash-activity-tabs){display:none!important;position:fixed!important;top:calc(var(--cw-top) + 40px)!important;bottom:var(--cw-bottom)!important;right:var(--cw-right)!important;left:auto!important;width:var(--cw-drawer)!important;max-width:calc(100vw - var(--cw-left) - var(--cw-right))!important;height:auto!important;overflow:auto!important;background:#111!important;z-index:35!important;border-left:1px solid var(--cw-line)!important}
html[data-kamui-chart-layout] .flash-terminal[data-cw-kind="chart"][data-cw-panel="book"] .flash-activity-panel>:not([data-orderbook-brain-slot]):not([data-flash-trading-root]):not(.flash-activity-tabs):not([hidden]){display:block!important}
html[data-kamui-chart-layout] .flash-terminal[data-cw-kind="chart"] .flash-activity-panel>[data-flash-trading-root]{display:none!important}
@media(max-width:1099px){
 html[data-kamui-chart-layout] .flash-terminal[data-cw-kind="chart"] .flash-activity-panel>.flash-activity-tabs,html[data-kamui-chart-layout] .flash-terminal[data-cw-kind="chart"] .flash-activity-panel>:not([data-orderbook-brain-slot]):not([data-flash-trading-root]):not(.flash-activity-tabs){right:44px!important;max-width:calc(100vw - 44px)!important}
}
/* Outrank the retained path-play mobile :has(...){height:240px!important} rule. */
html[data-kamui-chart-layout] #flash-market-view [data-workspace-root] [data-workspace-chart]{height:auto!important;min-height:0!important;max-height:none!important}
html[data-kamui-chart-layout] #flash-market-view [data-workspace-chart] .flash-chart-panel,html[data-kamui-chart-layout] #flash-market-view .flash-chart-panel .market-candle{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;height:100%!important;min-height:0!important;max-height:none!important}
html[data-kamui-chart-layout] #flash-market-view .flash-chart-panel .market-candle-stage{flex:1 1 auto!important;height:100%!important;min-height:0!important;max-height:none!important}
html[data-kamui-chart-layout] #flash-market-view [data-workspace-neural] [data-orderbook-brain] p[data-product-analysis-status]{height:auto!important;min-height:0!important;max-height:70px!important}

/* C5: touch rails must not intercept native price-axis gestures outside their buttons. */
@media(max-width:1099px){
 html[data-kamui-chart-layout] .cw-right-rail{bottom:auto;height:fit-content;pointer-events:none}
 html[data-kamui-chart-layout] .cw-right-rail .cw-control{pointer-events:auto}
}

/* C6: separate native chart metadata and keep its original controls above the header plane. */
html[data-kamui-chart-layout] .chat-header{z-index:10!important}
html[data-kamui-chart-layout] #flash-market-view [data-workspace-chart],html[data-kamui-chart-layout] .flash-terminal[data-cw-kind="chart"] #flash-market-view .flash-chart-panel{z-index:20!important}
html[data-kamui-chart-layout] #flash-market-view .market-candle{position:relative!important;overflow:visible!important}
html[data-kamui-chart-layout] #flash-market-view [data-market-catalog-caption]{position:absolute!important;top:7px!important;right:82px!important;left:auto!important;max-width:38%!important;margin:0!important;padding:0!important;border:0!important;font:8px/16px Arial,sans-serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;z-index:5!important}
html[data-kamui-chart-layout] #flash-market-view [data-market-catalog-caption][hidden]{display:none!important}
html[data-kamui-chart-layout] #flash-market-view .market-candle-ohlc{top:7px!important;left:8px!important;right:42%!important;max-width:58%!important;height:16px!important;max-height:16px!important;flex-wrap:nowrap!important;gap:6px!important;white-space:nowrap!important}
html[data-kamui-chart-layout] #flash-market-view .market-candle-data{position:absolute!important;top:29px!important;left:8px!important;right:auto!important;width:auto!important;max-width:calc(100% - 24px)!important}
html[data-kamui-chart-layout] #flash-market-view [data-think-ma-legend]{position:absolute!important;top:29px!important;left:94px!important;right:auto!important;width:auto!important;max-width:calc(100% - 110px)!important}
html[data-kamui-chart-layout] #flash-market-view [data-market-forecast-definition-slot]{position:absolute!important;top:29px!important;left:238px!important;right:auto!important;width:auto!important;max-width:calc(100% - 250px)!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important;z-index:17!important;font-size:9px!important}
html[data-kamui-chart-layout] #flash-market-view [data-market-forecast-definition-slot] details{margin:0!important;padding:0!important;border:0!important;font-size:9px!important;max-height:65dvh!important;overflow:auto!important;background:rgba(12,12,12,.96)!important}
html[data-kamui-chart-layout] #flash-market-view .market-candle-data>summary,html[data-kamui-chart-layout] #flash-market-view [data-think-ma-legend]>summary,html[data-kamui-chart-layout] #flash-market-view [data-market-forecast-definition-slot] summary{height:18px!important;min-height:18px!important;line-height:18px!important;margin:0!important;padding:0!important;white-space:nowrap!important}
html[data-kamui-chart-layout] #flash-market-view [data-market-visual-summary]{position:absolute!important;top:52px!important;left:8px!important;right:48%!important;margin:0!important;padding:0!important;font-size:8px!important;line-height:14px!important;max-height:28px!important;overflow:hidden!important;z-index:5!important}
html[data-kamui-chart-layout] #flash-market-view [data-market-analysis-notice]{position:absolute!important;top:52px!important;left:54%!important;right:82px!important;margin:0!important;padding:0!important;border:0!important;font-size:8px!important;line-height:14px!important;max-height:28px!important;overflow:auto!important;z-index:5!important}
/* The retained workspace pins the real viewport/canvas to150px (120px on mobile).
   Set every existing renderer boundary to the same actual dock height, rather than clip it. */
html[data-kamui-chart-layout] #flash-market-view [data-workspace-neural]{z-index:30!important}
html[data-kamui-chart-layout] #flash-market-view [data-orderbook-brain-slot]{--orderbook-brain-height:108px!important}
html[data-kamui-chart-layout] #flash-market-view [data-orderbook-brain-view],html[data-kamui-chart-layout] #flash-market-view [data-orderbook-brain-view] .fly-brain-card,html[data-kamui-chart-layout] #flash-market-view [data-orderbook-brain-view] .fly-viewport,html[data-kamui-chart-layout] #flash-market-view [data-orderbook-brain-view] .fly-viewport canvas{height:108px!important;min-height:108px!important;max-height:108px!important;width:100%!important;margin:0!important;padding:0!important}
html[data-kamui-chart-layout] #flash-market-view [data-orderbook-brain] [data-think-deeply]{height:auto!important;min-height:28px!important;margin:2px 0 0!important;padding:0!important;border:0!important;background:transparent!important}
html[data-kamui-chart-layout] #flash-market-view [data-orderbook-brain] [data-think-deeply] button{height:28px!important;min-height:28px!important;max-height:28px!important;margin:0!important;padding:3px 5px!important;border:1px solid #494949!important;border-radius:3px!important;background:#161616!important;color:#eee!important;font:600 10px/18px Arial,sans-serif!important}
@media(max-width:1099px){
 html[data-kamui-chart-layout] #flash-market-view .market-candle-ohlc{left:44px!important;right:50px!important;max-width:calc(100% - 94px)!important;font-size:7px!important;gap:4px!important}
 html[data-kamui-chart-layout] #flash-market-view [data-market-catalog-caption]{top:24px!important;left:44px!important;right:50px!important;max-width:none!important;font-size:8px!important}
 html[data-kamui-chart-layout] #flash-market-view .market-candle-data{top:42px!important;left:44px!important;max-width:calc(100% - 94px)!important}
 html[data-kamui-chart-layout] #flash-market-view [data-think-ma-legend]{top:42px!important;left:124px!important;max-width:calc(100% - 174px)!important}
 html[data-kamui-chart-layout] #flash-market-view [data-market-forecast-definition-slot]{top:62px!important;left:44px!important;right:50px!important;max-width:calc(100% - 94px)!important}
 html[data-kamui-chart-layout] #flash-market-view [data-market-visual-summary],html[data-kamui-chart-layout] #flash-market-view [data-market-analysis-notice]{top:83px!important;left:44px!important;right:50px!important;max-height:28px!important}
 html[data-kamui-chart-layout] #flash-market-view [data-orderbook-brain-slot]{--orderbook-brain-height:80px!important}
 html[data-kamui-chart-layout] #flash-market-view [data-orderbook-brain-view],html[data-kamui-chart-layout] #flash-market-view [data-orderbook-brain-view] .fly-brain-card,html[data-kamui-chart-layout] #flash-market-view [data-orderbook-brain-view] .fly-viewport,html[data-kamui-chart-layout] #flash-market-view [data-orderbook-brain-view] .fly-viewport canvas{height:80px!important;min-height:80px!important;max-height:80px!important}
 html[data-kamui-chart-layout] .flash-terminal[data-cw-panel="book"] #flash-market-view [data-workspace-neural],html[data-kamui-chart-layout] .flash-terminal[data-cw-panel="trade"] #flash-market-view [data-workspace-neural]{z-index:50!important}
}

html[data-kamui-chart-layout] #flash-market-view [data-orderbook-brain-heading]{width:100%!important;box-sizing:border-box!important;padding:0 40px 0 0!important;justify-content:flex-start!important}
