/* GLOBAL_LIGHT_THEME_V9: shared light/dark polish for Review, Charts, Executions, Strategies */
.themeFloatBtn{position:fixed;right:14px;bottom:14px;z-index:99998;border:1px solid #24405a;background:#08111b;color:#dce8f2;border-radius:10px;padding:8px 10px;font-weight:850;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.22)}
body.global-light, html.global-light body, body.global-light.strategy-builder-page{background:#f3f6fa!important;color:#0f172a!important}
body.global-light .topbar, body.global-light .top-strip, body.global-light .strategy-builder-header{background:#ffffff!important;border-color:#d7e0ea!important;box-shadow:0 1px 8px rgba(15,23,42,.08)!important;color:#0f172a!important}
body.global-light .brand, body.global-light h1, body.global-light h2, body.global-light h3{color:#0f172a!important}
body.global-light .nav a, body.global-light .top-nav-links a, body.global-light header nav a{background:#ffffff!important;color:#334155!important;border-color:#cbd8e6!important}
body.global-light .nav a.active, body.global-light .top-nav-links a.active{background:#dcecff!important;color:#0f376b!important;border-color:#2b78c6!important}
body.global-light input, body.global-light select, body.global-light textarea{background:#ffffff!important;color:#0f172a!important;border-color:#cbd8e6!important}
body.global-light button, body.global-light .miniBtn, body.global-light .tradeTabs button{background:#ffffff!important;color:#1f2937!important;border-color:#bfd0e2!important}
body.global-light .refreshBtn, body.global-light .bookBtn, body.global-light .tradeTabs button.active{background:#e8fff3!important;color:#047857!important;border-color:#34d399!important}
body.global-light .themeFloatBtn{background:#ffffff!important;color:#0f172a!important;border-color:#bfd0e2!important}
body.global-light .panel, body.global-light .card, body.global-light .search-card, body.global-light .signal-card, body.global-light .side-panel, body.global-light .readings-card, body.global-light .current-strategy-trades, body.global-light .strategy-editor-panel, body.global-light .strategy-list-panel, body.global-light .builder-section, body.global-light .indicator-row, body.global-light .rule-box, body.global-light .moneyCard, body.global-light .chainBody, body.global-light .chainTableWrap, body.global-light .sideSummary, body.global-light .tradeTableWrap, body.global-light .chartPane, body.global-light .chartCanvasWrap, body.global-light .postChartFrame, body.global-light .analysisPane, body.global-light .postmortemDirectPane, body.global-light .postmortemDirectRootV103, body.global-light .pmTimeBar, body.global-light .modalBox, body.global-light .modalContent, body.global-light .pmSummaryTable, body.global-light .pmFact, body.global-light .pmSection, body.global-light .rightPane, body.global-light #rightPane{background:#ffffff!important;border-color:#cbd8e6!important;color:#0f172a!important;box-shadow:none!important}
body.global-light th, body.global-light .chainTable th, body.global-light .tradeTable th{background:#eaf1f8!important;color:#334155!important;border-color:#d7e0ea!important}
body.global-light td, body.global-light .chainTable td, body.global-light .tradeTable td{background:#ffffff!important;color:#0f172a!important;border-color:#e2e8f0!important}
body.global-light .chainTable tr:hover td, body.global-light .tradeTable tr:hover td{background:#f1f7ff!important}
body.global-light .muted, body.global-light label, body.global-light .field label, body.global-light .chainSub, body.global-light .summaryItem .k, body.global-light .moneyCard .k, body.global-light .sub, body.global-light .sub2, body.global-light .pmMuted, body.global-light .small{color:#64748b!important}
body.global-light .green, body.global-light .open, body.global-light .symbolLink{color:#059669!important}
body.global-light .red{color:#dc2626!important}
body.global-light .yellow{color:#b77900!important}

/* Executions light summary cards */
body.global-light .execKpiRow, body.global-light .execKpiCard, body.global-light .tradeOhlcBox{background:#ffffff!important;border-color:#cbd8e6!important;color:#0f172a!important;box-shadow:none!important}
body.global-light .execKpiCard, body.global-light .tradeOhlcBox{background:linear-gradient(180deg,#ffffff,#f7fbff)!important}
body.global-light .execKpiCard .v, body.global-light .tradeOhlcBox .v, body.global-light .metric .v{color:#0f172a!important}
body.global-light .execKpiIcon{background:#eaf4ff!important;border-color:#b8d5f2!important;color:#0f376b!important}
body.global-light .chainTitle{color:#047857!important}
body.global-light .chainHead{background:#ffffff!important;border-color:#cbd8e6!important}

/* Chart page light theme: header text, OHLC, panes, right panel */
body.global-light .app-shell, body.global-light .chart-side, body.global-light .chart-stack, body.global-light .pane, body.global-light .bottom-toolbar{background:#ffffff!important;border-color:#d7e0ea!important;color:#0f172a!important}
body.global-light .top-strip{background:#ffffff!important;color:#0f172a!important}
body.global-light .instrument-line, body.global-light .instrument-line *, body.global-light #ohlcTop, body.global-light #exchangeTop, body.global-light .ohlc, body.global-light .topOhlc, body.global-light .chartHeader, body.global-light .chartHeader *{color:#334155!important;opacity:1!important;text-shadow:none!important}
body.global-light #instrumentTop, body.global-light .symbolTitle, body.global-light .chartTitle, body.global-light #symbolName{color:#047857!important;opacity:1!important;font-weight:900!important;text-shadow:none!important}
body.global-light #exchangeTop{color:#475569!important;font-weight:700!important}
body.global-light #ohlcTop{color:#475569!important;font-weight:700!important;letter-spacing:.01em!important}
body.global-light #historicalToggle, body.global-light .mode-pill{background:#ffffff!important;color:#0f172a!important;border-color:#bfd0e2!important}
body.global-light .strategy-select, body.global-light #entry_timeframe, body.global-light #date{background:#ffffff!important;color:#0f172a!important;border-color:#cbd8e6!important}
body.global-light .bottom-toolbar button, body.global-light .rangeBtn{background:#ffffff!important;color:#0f376b!important;border-color:#bfd0e2!important}
body.global-light .bottom-toolbar button.active, body.global-light .rangeBtn.active{background:#dcecff!important;color:#0f376b!important;border-color:#2b78c6!important}
body.global-light .side-panel{background:#ffffff!important;border-left:1px solid #d7e0ea!important;color:#0f172a!important}
body.global-light .panel-card, body.global-light .readings-card, body.global-light .chart-status-card, body.global-light .strategy-trades-card, body.global-light .current-strategy-trades, body.global-light .currentStrategyTrades, body.global-light #currentStrategyTrades, body.global-light .historicalBox, body.global-light .statusBox{background:#ffffff!important;color:#0f172a!important;border-color:#cbd8e6!important;box-shadow:none!important}
body.global-light .side-title, body.global-light .readings-card .side-title, body.global-light .strategy-trades-card .side-title{color:#0f172a!important;font-weight:900!important;text-transform:none!important;letter-spacing:0!important}
body.global-light .status-line, body.global-light .chart-status-card *, body.global-light .strategy-trades-card *:not(.green):not(.red):not(.yellow):not(button):not(input):not(.strategy-trade-status){color:#0f172a!important}
body.global-light .reading-row{border-color:#d7e0ea!important;color:#0f172a!important;background:#ffffff!important}
body.global-light .reading-row span{color:#0f172a!important}
body.global-light .reading-row b.green{color:#059669!important}
body.global-light .reading-row b.red{color:#dc2626!important}
body.global-light .reading-actions button, body.global-light .eye-btn{background:#ffffff!important;border-color:#bfd0e2!important;color:#0f172a!important}
body.global-light .eye-svg svg{stroke:#0f172a!important;fill:none!important}
body.global-light .trade-chart-toggle{color:#334155!important}
body.global-light .strategy-trade-kpis span{background:#f8fafc!important;border-color:#cbd8e6!important;color:#334155!important}
body.global-light .strategy-trade-kpis b{color:#0f172a!important}
body.global-light .strategy-trades-list{background:#ffffff!important;color:#0f172a!important}
body.global-light .strategy-trade-item, body.global-light .tradeCard, body.global-light .tradeItem, body.global-light .strategyTradeItem{background:#f8fafc!important;border-color:#cbd8e6!important;color:#0f172a!important;box-shadow:none!important}
body.global-light .strategy-trade-item.selected{background:#fff7ed!important;border-color:#f59e0b!important}
body.global-light .strategy-trade-item .strategy-trade-reason{color:#334155!important}
body.global-light .strategy-trade-detail, body.global-light .trade-snapshot-block{background:#ffffff!important;border-color:#cbd8e6!important;color:#0f172a!important}
body.global-light .strategy-trade-status.closed{background:#f1f5f9!important;color:#334155!important;border-color:#cbd5e1!important}
body.global-light .strategy-trade-status.open{background:#dcfce7!important;color:#047857!important;border-color:#86efac!important}

/* Review dashboard compact analytics typography */
body .chartGrid .card, body .chartGrid .card *{font-size:12px!important}
body .chartGrid .cardHead h2{font-size:13px!important}
body .chartGrid .barRow b{font-size:12px!important}
body .chartGrid .barRow .green, body .chartGrid .barRow .red, body .chartGrid .barRow .yellow{font-size:12px!important}
body .chartGrid .donut:after{font-size:13px!important}

/* GLOBAL_LIGHT_THEME_V11: polish remaining light-theme dark islands and oversized/low-contrast text */
body.global-light .top-strip .instrument-line,
body.global-light .top-strip .instrument-line span,
body.global-light .top-strip .instrument-line b,
body.global-light .top-strip #symbolName,
body.global-light .top-strip #instrumentTop,
body.global-light .top-strip .symbolTitle{color:#047857!important;opacity:1!important;text-shadow:none!important}
body.global-light .top-strip #exchangeTop,
body.global-light .top-strip #ohlcTop,
body.global-light .top-strip .ohlc,
body.global-light .top-strip .topOhlc,
body.global-light .top-strip .ohlc-text{color:#334155!important;opacity:1!important;text-shadow:none!important;font-weight:750!important}
body.global-light .top-strip .muted,
body.global-light .top-strip .dash,
body.global-light .top-strip .sep{color:#64748b!important;opacity:1!important}

/* Chart right pane cards that were still black in light mode */
body.global-light .chart-status-card,
body.global-light .historical-card,
body.global-light .historicalStatus,
body.global-light #historicalStatus,
body.global-light .chart-history-box,
body.global-light .current-strategy-trades,
body.global-light .current-strategy-card,
body.global-light .strategy-trades-card,
body.global-light #strategyTradesBox,
body.global-light #currentStrategyTradesBox,
body.global-light .trade-detail-card,
body.global-light .strategy-trade-card,
body.global-light .selected-trade-card{background:#ffffff!important;color:#0f172a!important;border-color:#cbd8e6!important;box-shadow:none!important}
body.global-light .chart-status-card *,
body.global-light .historical-card *,
body.global-light .historicalStatus *,
body.global-light #historicalStatus *,
body.global-light .chart-history-box *,
body.global-light .current-strategy-trades *:not(.red):not(.green):not(.yellow):not(.strategy-trade-status),
body.global-light .strategy-trades-card *:not(.red):not(.green):not(.yellow):not(.strategy-trade-status){color:#0f172a!important;text-shadow:none!important}
body.global-light .current-strategy-trades h3,
body.global-light .current-strategy-trades .title,
body.global-light .readings-card h3,
body.global-light .readings-card .title,
body.global-light .side-panel h3{color:#0f172a!important;text-transform:none!important;letter-spacing:0!important}
body.global-light .readings-card h3,
body.global-light .readings-title{color:#334155!important}

/* Strategy builder light theme cleanup */
body.global-light.strategy-builder-page,
body.global-light .strategy-builder-page{background:#f3f6fa!important;color:#0f172a!important}
body.global-light .strategy-list-panel,
body.global-light .strategy-editor-panel{background:#ffffff!important;border-color:#cbd8e6!important;color:#0f172a!important;box-shadow:none!important}
body.global-light .strategy-card{background:#ffffff!important;color:#0f172a!important;border:1px solid #d7e0ea!important;box-shadow:none!important}
body.global-light .strategy-card *,
body.global-light .strategy-card small,
body.global-light .strategy-card-main,
body.global-light .strategy-card-main *{color:#334155!important;opacity:1!important;text-shadow:none!important}
body.global-light .strategy-card b,
body.global-light .strategy-card strong,
body.global-light .strategy-card .strategy-name{color:#0f172a!important}
body.global-light .strategy-card.active{background:#eef6ff!important;border-color:#2b78c6!important;box-shadow:0 0 0 1px rgba(43,120,198,.14)!important}
body.global-light .strategy-card.active *,
body.global-light .strategy-card.active small{color:#0f172a!important}
body.global-light .strategy-list-title{color:#334155!important}
body.global-light .strategy-status.on{background:#dcfce7!important;color:#047857!important;border-color:#86efac!important}
body.global-light .strategy-status.off{background:#f1f5f9!important;color:#475569!important;border-color:#cbd5e1!important}
body.global-light .strategy-toggle{background:#ffffff!important;border-color:#bfd0e2!important;color:#334155!important}
body.global-light .strategy-toggle.on{background:#e8fff3!important;border-color:#34d399!important;color:#047857!important}
body.global-light .strategy-toggle.off{background:#f8fafc!important;border-color:#cbd5e1!important;color:#475569!important}
body.global-light .editor-actions{position:sticky!important;bottom:0!important;background:#ffffff!important;border-top:1px solid #d7e0ea!important;box-shadow:0 -8px 18px rgba(15,23,42,.06)!important;padding:12px 0!important;z-index:5!important}
body.global-light .builder-section,
body.global-light .indicator-row,
body.global-light .rule-box{background:#ffffff!important;border-color:#cbd8e6!important;color:#0f172a!important}
body.global-light .section-head h2,
body.global-light .builder-section h2{color:#0f172a!important}

/* Generic and strategy indicator settings modals in light mode */
body.global-light .modal,
body.global-light .settings-modal-box,
body.global-light .indicator-settings-modal,
body.global-light .indicatorSettingsModal,
body.global-light .settingsBox,
body.global-light .settings-dialog,
body.global-light .param-modal,
body.global-light .paramModal{background:#ffffff!important;color:#0f172a!important;border-color:#cbd8e6!important;box-shadow:0 20px 70px rgba(15,23,42,.22)!important}
body.global-light .settings-modal-head,
body.global-light .modal-head,
body.global-light .modalHeader{background:#ffffff!important;color:#0f172a!important;border-color:#d7e0ea!important}
body.global-light .settings-modal-head h3,
body.global-light .modal h3,
body.global-light .modal-title{color:#0f172a!important}
body.global-light .settings-modal-body,
body.global-light .modal-body{background:#ffffff!important;color:#0f172a!important}
body.global-light .modal::backdrop,
body.global-light .settings-modal{background:rgba(15,23,42,.42)!important;backdrop-filter:blur(2px)!important}

/* Symbol search modal light mode */
body.global-light .v2-search-modal{background:rgba(15,23,42,.34)!important;backdrop-filter:blur(3px)!important}
body.global-light .v2-search-box{background:#ffffff!important;color:#0f172a!important;border-color:#cbd8e6!important;box-shadow:0 24px 80px rgba(15,23,42,.24)!important}
body.global-light .v2-search-head,
body.global-light .v2-search-toolbar,
body.global-light .v2-expiries,
body.global-light .v2-chain-top{background:#ffffff!important;border-color:#d7e0ea!important;color:#0f172a!important}
body.global-light .v2-search-head h2{color:#0f172a!important}
body.global-light .v2-close,
body.global-light .v2-back{color:#0f172a!important;background:#ffffff!important;border:1px solid #cbd8e6!important;border-radius:8px!important;padding:2px 8px!important}
body.global-light .v2-search-input-wrap{background:#ffffff!important;border-color:#cbd8e6!important;color:#0f172a!important}
body.global-light #v2SearchInput{color:#0f172a!important;background:transparent!important}
body.global-light .v2-search-tabs{border-color:#cbd8e6!important;background:#ffffff!important}
body.global-light .v2-search-tabs button{background:#ffffff!important;color:#334155!important;border-color:#cbd8e6!important}
body.global-light .v2-search-tabs button.active{background:#dcecff!important;color:#0f376b!important;border-color:#2b78c6!important}
body.global-light .v2-underlying-row{background:#ffffff!important;color:#0f172a!important;border-color:#e2e8f0!important}
body.global-light .v2-underlying-row:hover{background:#f1f7ff!important}
body.global-light .v2-underlying-main b,
body.global-light .v2-exchange,
body.global-light .v2-chain-table .strike{color:#0f172a!important;background:transparent!important}
body.global-light .v2-underlying-main span,
body.global-light .v2-muted,
body.global-light .v2-muted-inline{color:#64748b!important}
body.global-light .v2-icon{background:#e8fff3!important;color:#047857!important}
body.global-light .v2-chain-table th{background:#eaf1f8!important;color:#334155!important;border-color:#d7e0ea!important}
body.global-light .v2-chain-table td{background:#ffffff!important;color:#0f172a!important;border-color:#e2e8f0!important}
body.global-light .v2-chain-table tr.atm td{background:#eef6ff!important;border-color:#2b78c6!important}
body.global-light .v2-contract{background:#ffffff!important;color:#0f172a!important}
body.global-light .v2-contract.call{color:#047857!important;border-color:#34d399!important}
body.global-light .v2-contract.put{color:#dc2626!important;border-color:#fca5a5!important}
body.global-light .v2-atm-pill{background:#dcecff!important;color:#0f376b!important}

/* Review analytics typography stays table-sized */
.review-page .strategy-pnl-row,
.review-page .top-instrument-row,
.review-page .result-breakdown,
.review-page .result-breakdown *{font-size:12px!important;line-height:1.25!important}
.review-page .strategy-pnl-row b,
.review-page .top-instrument-row b{font-size:12px!important}
.review-page .result-breakdown .donutCenter,
.review-page .result-breakdown .donutCenter *{font-size:13px!important}

/* THEME_FLOAT_DISABLED_17JUN: theme is now only in the icon nav. */
.themeFloatBtn,#globalThemeToggle{display:none!important;visibility:hidden!important;pointer-events:none!important}
