/* Desktop-only FlowSignal overrides. */
@media (min-width:701px){
body.fit-mode #mainApp.app:not(.locked)>.performance-strip{grid-template-columns:minmax(154px,.8fr) minmax(182px,.95fr) minmax(178px,.92fr) minmax(182px,.95fr) minmax(122px,.58fr)!important}.performance-daily{grid-template-columns:30px minmax(96px,1fr)!important}.performance-monthly{grid-template-columns:30px minmax(108px,1fr)!important}
body.fit-mode .main-trade-card{justify-content:flex-start!important;overflow-y:auto!important}body.fit-mode .entry-strategy-debug{min-height:178px!important;margin:18px 0!important;overflow:hidden!important}body.fit-mode #strategy-debug-block-reason{display:block!important;min-height:30px!important;max-height:38px!important;overflow:hidden!important}
.desktop-chart-fullscreen-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:32px;padding:0 11px;margin-left:auto;border:1px solid rgba(80,145,220,.52);border-radius:8px;background:rgba(8,20,35,.92);color:#dcecff;font:inherit;font-size:12px;font-weight:700;line-height:1;cursor:pointer;white-space:nowrap}.chart-panel .chart-controls{align-items:center}
body.fit-mode .chart-panel{display:flex!important;flex-direction:column!important;min-height:0!important;height:auto!important;overflow:visible!important;gap:12px!important}body.fit-mode .chart-panel>.chart-wrap{flex:0 0 auto!important;width:100%!important;min-height:400px!important;height:auto!important;overflow:visible!important}body.fit-mode .chart-panel .chart-section{display:flex!important;flex-direction:column!important;width:100%!important;min-height:400px!important;height:auto!important;gap:8px!important;overflow:visible!important}body.fit-mode .chart-panel .chart-box{position:relative!important;flex:0 0 330px!important;width:100%!important;height:330px!important;min-height:330px!important;margin:0!important}body.fit-mode .chart-panel .chart-box #chartContainer{width:100%!important;height:100%!important;min-height:330px!important}
body.flowsignal-chrome-desktop.fit-mode,body.flowsignal-safari-desktop.fit-mode{overflow-y:auto!important;overflow-x:hidden!important}body.flowsignal-chrome-desktop.fit-mode #mainApp.app:not(.locked),body.flowsignal-safari-desktop.fit-mode #mainApp.app:not(.locked){height:auto!important;min-height:100vh!important;overflow:visible!important}body.flowsignal-chrome-desktop.fit-mode #mainApp.app:not(.locked)>.dashboard-grid,body.flowsignal-safari-desktop.fit-mode #mainApp.app:not(.locked)>.dashboard-grid{height:auto!important;min-height:calc(100vh - 150px)!important;overflow:visible!important;align-items:start!important}
body.flowsignal-safari-desktop.fit-mode .chart-panel .news-impact-panel,body.flowsignal-safari-desktop.fit-mode .chart-panel #fundamental-insight-card,body.flowsignal-safari-desktop.fit-mode .chart-panel #v2-shadow-card{display:block!important;visibility:visible!important;opacity:1!important;position:relative!important;width:100%!important;height:auto!important;overflow:visible!important}
/* Strategy checks are moved by JS directly below XAUUSD in the left column. */
body.flowsignal-chrome-desktop.fit-mode .entry-strategy-debug,body.flowsignal-safari-desktop.fit-mode .entry-strategy-debug{width:100%!important;box-sizing:border-box!important;display:block!important;visibility:visible!important}
body.flowsignal-chrome-desktop.fit-mode .fundamental-bias{font-size:30px!important;letter-spacing:-.02em!important}body.flowsignal-chrome-desktop.fit-mode #strategy-debug-block-reason{max-width:none!important;min-height:0!important;max-height:none!important;overflow:visible!important;white-space:normal!important;overflow-wrap:anywhere!important}
.chart-section.is-desktop-chart-fullscreen,.chart-section:fullscreen,.chart-section:-webkit-full-screen{width:100vw!important;height:100vh!important;margin:0!important;padding:14px!important;border-radius:0!important;background:#020812!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;box-sizing:border-box!important}.chart-section.is-desktop-chart-fullscreen .chart-box,.chart-section:fullscreen .chart-box,.chart-section:-webkit-full-screen .chart-box{flex:1 1 auto!important;width:100%!important;height:auto!important;min-height:0!important}.chart-section.is-desktop-chart-fullscreen #chartContainer,.chart-section:fullscreen #chartContainer,.chart-section:-webkit-full-screen #chartContainer{width:100%!important;height:100%!important;min-height:0!important}body.desktop-chart-fullscreen-open{overflow:hidden!important}body.desktop-chart-fullscreen-open .chart-section{position:fixed!important;inset:0!important;z-index:2147483000!important;width:100vw!important;height:100vh!important;padding:14px!important;background:#020812!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;box-sizing:border-box!important}body.desktop-chart-fullscreen-open .chart-section>.chart-box{display:block!important;flex:1 1 auto!important;width:100%!important;height:auto!important;min-height:0!important}body.desktop-chart-fullscreen-open .news-impact-panel,body.desktop-chart-fullscreen-open #v2-shadow-card{display:none!important}
body.desktop-chart-fullscreen-open .history-section,body.desktop-chart-fullscreen-open .mobile-timeframe-row,body.desktop-chart-fullscreen-open .mobile-open-trade-card,.chart-section.is-desktop-chart-fullscreen>.history-section,.chart-section.is-desktop-chart-fullscreen>.mobile-timeframe-row,.chart-section.is-desktop-chart-fullscreen>.mobile-open-trade-card,.chart-section:fullscreen>.history-section,.chart-section:fullscreen>.mobile-timeframe-row,.chart-section:fullscreen>.mobile-open-trade-card,.chart-section:-webkit-full-screen>.history-section,.chart-section:-webkit-full-screen>.mobile-timeframe-row,.chart-section:-webkit-full-screen>.mobile-open-trade-card{display:none!important}
body.fit-mode.desktop-chart-fullscreen-open .chart-panel .chart-section>.chart-box,body.fit-mode .chart-section.is-desktop-chart-fullscreen>.chart-box,body.fit-mode .chart-section:fullscreen>.chart-box,body.fit-mode .chart-section:-webkit-full-screen>.chart-box{display:block!important;flex:1 1 auto!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important}
/* Safari's normal desktop layout uses higher-specificity !important rules. Override them while chart fullscreen is active so the chart owns the entire viewport. */
body.flowsignal-safari-desktop.fit-mode.desktop-chart-fullscreen-open{overflow:hidden!important;overflow-x:hidden!important;overflow-y:hidden!important}
body.flowsignal-safari-desktop.fit-mode.desktop-chart-fullscreen-open .chart-panel .chart-section{position:fixed!important;inset:0!important;z-index:2147483000!important;width:100vw!important;height:100vh!important;min-height:100vh!important;margin:0!important;padding:14px!important;border-radius:0!important;background:#020812!important;display:flex!important;flex-direction:column!important;gap:8px!important;overflow:hidden!important;box-sizing:border-box!important}
body.flowsignal-safari-desktop.fit-mode.desktop-chart-fullscreen-open .chart-panel .chart-section>.chart-box{display:block!important;position:relative!important;flex:1 1 auto!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;overflow:hidden!important}
body.flowsignal-safari-desktop.fit-mode.desktop-chart-fullscreen-open .chart-panel .chart-section #chartContainer{width:100%!important;height:100%!important;min-height:0!important}
body.flowsignal-safari-desktop.fit-mode.desktop-chart-fullscreen-open .chart-panel .news-impact-panel,body.flowsignal-safari-desktop.fit-mode.desktop-chart-fullscreen-open .chart-panel #fundamental-insight-card,body.flowsignal-safari-desktop.fit-mode.desktop-chart-fullscreen-open .chart-panel #v2-shadow-card,body.flowsignal-safari-desktop.fit-mode.desktop-chart-fullscreen-open .history-section,body.flowsignal-safari-desktop.fit-mode.desktop-chart-fullscreen-open .mobile-timeframe-row,body.flowsignal-safari-desktop.fit-mode.desktop-chart-fullscreen-open .mobile-open-trade-card{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}
/* Do not depend on Safari propagating the fullscreen state to body. The chart section itself always gets this class from startup.js. */
body.fit-mode .chart-panel .chart-section.is-desktop-chart-fullscreen{position:fixed!important;inset:0!important;z-index:2147483000!important;width:100vw!important;height:100vh!important;min-height:100vh!important;margin:0!important;padding:14px!important;border-radius:0!important;background:#020812!important;display:flex!important;flex-direction:column!important;gap:8px!important;overflow:hidden!important;box-sizing:border-box!important}
body.fit-mode .chart-panel .chart-section.is-desktop-chart-fullscreen>.chart-box,body.fit-mode .chart-panel .chart-section:fullscreen>.chart-box,body.fit-mode .chart-panel .chart-section:-webkit-full-screen>.chart-box{display:block!important;position:relative!important;flex:1 1 0!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;overflow:hidden!important}
body.fit-mode .chart-panel .chart-section.is-desktop-chart-fullscreen #chartContainer,body.fit-mode .chart-panel .chart-section:fullscreen #chartContainer,body.fit-mode .chart-panel .chart-section:-webkit-full-screen #chartContainer{width:100%!important;height:100%!important;min-height:0!important}
body.fit-mode .chart-panel .chart-section.is-desktop-chart-fullscreen>.news-impact-panel,body.fit-mode .chart-panel .chart-section.is-desktop-chart-fullscreen>#v2-shadow-card,body.fit-mode .chart-panel .chart-section.is-desktop-chart-fullscreen>.history-section,body.fit-mode .chart-panel .chart-section.is-desktop-chart-fullscreen>.mobile-timeframe-row,body.fit-mode .chart-panel .chart-section.is-desktop-chart-fullscreen>.mobile-open-trade-card,body.fit-mode .chart-panel .chart-section:fullscreen>.news-impact-panel,body.fit-mode .chart-panel .chart-section:fullscreen>#v2-shadow-card,body.fit-mode .chart-panel .chart-section:fullscreen>.history-section,body.fit-mode .chart-panel .chart-section:fullscreen>.mobile-timeframe-row,body.fit-mode .chart-panel .chart-section:fullscreen>.mobile-open-trade-card,body.fit-mode .chart-panel .chart-section:-webkit-full-screen>.news-impact-panel,body.fit-mode .chart-panel .chart-section:-webkit-full-screen>#v2-shadow-card,body.fit-mode .chart-panel .chart-section:-webkit-full-screen>.history-section,body.fit-mode .chart-panel .chart-section:-webkit-full-screen>.mobile-timeframe-row,body.fit-mode .chart-panel .chart-section:-webkit-full-screen>.mobile-open-trade-card{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}
/* Safari hard-isolation: while the chart is fullscreen, absolutely nothing below the chart box is allowed to take layout space. Duplicate selectors intentionally outrank the normal Safari display:block !important rules above. */
html body.flowsignal-safari-desktop.fit-mode.desktop-chart-fullscreen-open #mainApp.app .chart-panel .chart-section>.news-impact-panel.news-impact-panel,html body.flowsignal-safari-desktop.fit-mode.desktop-chart-fullscreen-open #mainApp.app .chart-panel .chart-section>#v2-shadow-card#v2-shadow-card,html body.flowsignal-safari-desktop.fit-mode.desktop-chart-fullscreen-open #mainApp.app .chart-panel .chart-section>.history-section.history-section,html body.flowsignal-safari-desktop.fit-mode.desktop-chart-fullscreen-open #mainApp.app .chart-panel .chart-section>.mobile-timeframe-row.mobile-timeframe-row,html body.flowsignal-safari-desktop.fit-mode.desktop-chart-fullscreen-open #mainApp.app .chart-panel .chart-section>.mobile-open-trade-card.mobile-open-trade-card{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;position:absolute!important;height:0!important;min-height:0!important;max-height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important}
html body.fit-mode #mainApp.app .chart-panel .chart-section.is-desktop-chart-fullscreen>.news-impact-panel.news-impact-panel,html body.fit-mode #mainApp.app .chart-panel .chart-section.is-desktop-chart-fullscreen>#v2-shadow-card#v2-shadow-card,html body.fit-mode #mainApp.app .chart-panel .chart-section.is-desktop-chart-fullscreen>.history-section.history-section,html body.fit-mode #mainApp.app .chart-panel .chart-section.is-desktop-chart-fullscreen>.mobile-timeframe-row.mobile-timeframe-row,html body.fit-mode #mainApp.app .chart-panel .chart-section.is-desktop-chart-fullscreen>.mobile-open-trade-card.mobile-open-trade-card{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;position:absolute!important;height:0!important;min-height:0!important;max-height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important}
html body.fit-mode #mainApp.app .chart-panel .chart-section.is-desktop-chart-fullscreen>.chart-box,html body.flowsignal-safari-desktop.fit-mode.desktop-chart-fullscreen-open #mainApp.app .chart-panel .chart-section>.chart-box{display:block!important;position:relative!important;flex:1 1 0!important;height:calc(100vh - 62px)!important;min-height:0!important;max-height:none!important;width:100%!important;margin:0!important;overflow:hidden!important}
}
