/* CasinoLab 25.8. Global theme without modifying order/account state. */
html[data-theme="light"]{color-scheme:light;--background:220 28% 98%;--foreground:222 30% 12%;--muted:220 20% 94%;--muted-foreground:215 16% 45%;--text:#172235;--dim:#657286;--stroke:#dce3ed;--tp-bg-primary:#f6f8fc;--tp-bg-secondary:#fff;--tp-bg-tertiary:#f0f4f9;--tp-bg-elevated:#fff;--tp-border:#dce3eb;--tp-border-subtle:#e8edf4;--tp-text-primary:#172235;--tp-text-secondary:#536273;--tp-text-muted:#7a8696;--tp-green-bg:#0f956717;--tp-red-bg:#dc33441a;}
html[data-theme="light"] body,html[data-theme="light"] .app{background:#f5f7fb!important;color:#172235!important}
html[data-theme="light"] .topbar,html[data-theme="light"] .toolbar,html[data-theme="light"] .ticket,html[data-theme="light"] .markets-panel,html[data-theme="light"] .chart-panel,html[data-theme="light"] .blotter,html[data-theme="light"] .blotter-top,html[data-theme="light"] .blotter-bottom,html[data-theme="light"] .market-ticker-footer,html[data-theme="light"] .ticket-heading{background:#fff!important;color:#172235!important;border-color:#e1e7ef!important}
html[data-theme="light"] .workspace,html[data-theme="light"] .chart-stage,html[data-theme="light"] .chart-area,html[data-theme="light"] #chart,html[data-theme="light"] .chart-host{background:#fff!important}
html[data-theme="light"] .markets-list,html[data-theme="light"] .markets-header,html[data-theme="light"] .markets-top,html[data-theme="light"] .markets-search,html[data-theme="light"] .blotter .tab-panel,html[data-theme="light"] .ticket-scroll,html[data-theme="light"] .ticket-body,html[data-theme="light"] .chart-context-menu{background:#fff!important;color:#18263b!important;border-color:#e1e7ef!important}
html[data-theme="light"] .market-row,html[data-theme="light"] .market-item,html[data-theme="light"] .market-list-item,html[data-theme="light"] .pair-option,html[data-theme="light"] .ticket-price-cards .price-side-card,html[data-theme="light"] .ticket .order-type-tabs button,html[data-theme="light"] .qty-presets button{border-color:#dce5ef!important}
html[data-theme="light"] .market-row:hover,html[data-theme="light"] .market-item:hover,html[data-theme="light"] .pair-option:hover,html[data-theme="light"] .mini-btn:hover{background:#eef5fc!important}
html[data-theme="light"] .ticket-price-cards .price-side-card,html[data-theme="light"] .order-type-tabs button,html[data-theme="light"] .qty-presets button,html[data-theme="light"] .ticket .qty-step,html[data-theme="light"] .ticket .price-step-up,html[data-theme="light"] .ticket .price-step-down,html[data-theme="light"] .ticket-input-unit,html[data-theme="light"] .risk-inline-row,html[data-theme="light"] .risk-inline-form,html[data-theme="light"] .ticket .field-row{background:#f8fafc!important;color:#26364c!important;border-color:#dce4ef!important}
html[data-theme="light"] input,html[data-theme="light"] select,html[data-theme="light"] textarea,html[data-theme="light"] .ticket input,html[data-theme="light"] .ticket select,html[data-theme="light"] .markets-search input,html[data-theme="light"] .markets-search-field{background:#fff!important;color:#162338!important;border-color:#d4deeb!important}
html[data-theme="light"] input::placeholder{color:#91a0b0!important}
html[data-theme="light"] .toolbar button,html[data-theme="light"] .topbar .icon-button,html[data-theme="light"] .topbar .header-right #header-sign-out,html[data-theme="light"] .topbar .header-right #sound-toggle,html[data-theme="light"] .theme-toggle{color:#475569!important;border-color:#dce4ef!important;background:#f8fafc!important}
html[data-theme="light"] .toolbar button:hover,html[data-theme="light"] .topbar .icon-button:hover{background:#e9f0fb!important;color:#1d4ed8!important}
html[data-theme="light"] .account-stat span,html[data-theme="light"] .ticket-label,html[data-theme="light"] .field-row label,html[data-theme="light"] .market-volume,html[data-theme="light"] .cell-sub,html[data-theme="light"] .small,html[data-theme="light"] .ticket .order-type-tabs button:not(.active){color:#64748b!important}
html[data-theme="light"] .account-stat strong,html[data-theme="light"] .market-row strong,html[data-theme="light"] .blotter th,html[data-theme="light"] .blotter td,html[data-theme="light"] .ticket input,html[data-theme="light"] .blotter-top button{color:#26364d!important}
html[data-theme="light"] .blotter table,html[data-theme="light"] .blotter th,html[data-theme="light"] .blotter td,html[data-theme="light"] .blotter tbody tr{background:#fff!important;border-color:#e8edf4!important}
html[data-theme="light"] .blotter th,html[data-theme="light"] .blotter thead{background:#f5f8fc!important}
html[data-theme="light"] .blotter tbody tr:hover td{background:#edf4fe!important}
html[data-theme="light"] .market-ticker-footer span,html[data-theme="light"] #ticker-clock,html[data-theme="light"] .ticket-heading strong{color:#475569!important}
html[data-theme="light"] .ticker-clock-menu,html[data-theme="light"] .pair-dropdown,html[data-theme="light"] #pair-dropdown,html[data-theme="light"] .chart-settings-dialog,html[data-theme="light"] .drawing-editor,html[data-theme="light"] .draw-settings-dialog,html[data-theme="light"] .modal,html[data-theme="light"] dialog{background:#fff!important;color:#172235!important;border-color:#dce4ef!important;box-shadow:0 16px 50px #1e345526!important}
html[data-theme="light"] .ticker-zone-option,html[data-theme="light"] .pair-option,html[data-theme="light"] .pair-search,html[data-theme="light"] .ticker-zone-group{color:#334155!important;border-color:#e6edf5!important}
html[data-theme="light"] .draw-settings-form input,html[data-theme="light"] .risk-inline-field input{background:#fff!important;color:#172235!important;border-color:#d3e0ee!important}
html[data-theme="light"] .risk-inline-label{color:#26364d!important}
html[data-theme="light"] .risk-inline-field span{color:#64748b!important}
html[data-theme="light"] .ticket .ticket-input-unit>.order-quote-unit{background:#edf1f7!important;color:#475569!important}
html[data-theme="light"] .trade-price-pill.entry{box-shadow:0 2px 8px #243c5222!important}
html[data-theme="light"] .chart-symbol-title{color:#344459!important}
html[data-theme="light"] .chart-context-menu .context-menu-item:hover{background:#eaf1fb!important}
.theme-toggle svg{width:16px;height:16px;display:block;margin:auto;stroke-width:1.8}
.header-right #theme-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:29px!important;height:29px!important;min-width:29px!important;max-width:29px!important;flex:0 0 29px!important;border:1px solid #303037!important;border-radius:5px!important;padding:0!important;color:#a6adb8!important;background:transparent!important}
html[data-theme="light"] .topbar .header-account-strip .account-stat strong{color:#243449!important}
@media(max-width:760px){.header-right #sound-toggle{display:none!important}.topbar .header-right #theme-toggle{order:30!important;width:25px!important;height:25px!important;min-width:25px!important;max-width:25px!important;flex:0 0 25px!important}.topbar .header-right #theme-toggle svg{width:14px!important;height:14px!important}.markets-search-field input,#market-search{font-size:16px!important;transform:none!important;touch-action:manipulation!important}.topbar .header-right{touch-action:manipulation}}
/* Browser-level zoom on input focus is prevented through >=16px interactive search font size. */
@media(max-width:760px){body .topbar .header-right #sound-toggle{display:none!important}}
/* Chart loading veil and compact side panels also participate in light mode. */
html[data-theme="light"] .chart-notice{background:#ffffffeb!important;color:#596b83!important}
html[data-theme="light"] .drawing-tools{background:#f8fafc!important;border-color:#e1e7f0!important}
html[data-theme="light"] .drawing-tools button{background:transparent!important;color:#52647b!important;border-color:#e2e8f0!important}
html[data-theme="light"] .drawing-tools button.active,html[data-theme="light"] .drawing-tools button:hover{background:#e7f3ee!important;color:#047756!important}
html[data-theme="light"] .ticket-symbol-box,html[data-theme="light"] .ticket-summary,html[data-theme="light"] .ticket-summary>*{background:#f7f9fc!important;color:#24354c!important;border-color:#dce5f0!important}
html[data-theme="light"] .ticket-symbol-box strong,html[data-theme="light"] .ticket-summary strong{color:#1b3049!important}
html[data-theme="light"] .ticket .ticket-price-cards button:not(.sell-card):not(.buy-card){background:#fff!important;color:#1d334d!important}
html[data-theme="light"] .chart-symbol-title,html[data-theme="light"] #chart-symbol-title{background:#f0f5fbf0!important;color:#203650!important}
html[data-theme="light"] .chart-symbol-title span{color:#768398!important}
html[data-theme="light"] .market-header,html[data-theme="light"] .markets-list-head,html[data-theme="light"] .markets-footer{background:#f7f9fc!important;color:#526177!important}
html[data-theme="light"] .markets-tabs button.active{background:#e3f0ff!important;color:#1c63b8!important}
html[data-theme="light"] .blotter-top-left,html[data-theme="light"] .blotter-header{background:#fff!important;color:#26364c!important}
html[data-theme="light"] .ticker-clock-menu button:hover,html[data-theme="light"] .ticker-zone-option:hover{background:#edf4ff!important}
/* v25.9: systematic light palette, including controls previously hard-coded to black. */
html[data-theme="light"] .blotter-resize{background:#eef2f7!important;border-color:#dbe3ee!important}
html[data-theme="light"] .blotter-resize span{background:#9aaec5!important}
html[data-theme="light"] .blotter-resize:hover span{background:#2f70d7!important}
html[data-theme="light"] .blotter .row-actions button,
html[data-theme="light"] .blotter .row-actions .btn,
html[data-theme="light"] .blotter .row-actions .action-btn{background:#f5f8fd!important;color:#344c69!important;border:1px solid #d6e0ee!important}
html[data-theme="light"] .blotter .row-actions button:hover{background:#e9f1ff!important;color:#1d4ed8!important}
html[data-theme="light"] .blotter .row-actions button.danger{color:#b91c1c!important;background:#fff1f2!important;border-color:#fecdd3!important}
html[data-theme="light"] .side-pill.long{color:#087b55!important;background:#dcfce9!important;border-color:#a8e7cb!important}
html[data-theme="light"] .side-pill.short{color:#b42331!important;background:#ffedef!important;border-color:#f6bfc5!important}
html[data-theme="light"] .ticket-mode-switch,html[data-theme="light"] .risk-unit-tabs{background:#f2f6fb!important;border-color:#d7e1ec!important}
html[data-theme="light"] .ticket-mode-btn,html[data-theme="light"] .risk-unit-tabs button{color:#52647b!important;background:transparent!important}
html[data-theme="light"] .ticket-mode-btn.active,html[data-theme="light"] .risk-unit-tabs button.active{background:#dcefe8!important;color:#086849!important;box-shadow:none!important}
html[data-theme="light"] .ticket .order-type{background:#f4f7fb!important;color:#52647b!important;border-color:#d9e1eb!important}
html[data-theme="light"] .ticket .order-type.active{color:#076e50!important;background:#e2f3eb!important;border-color:#83d4b4!important;box-shadow:inset 0 0 0 1px #b1ead1!important}
html[data-theme="light"] .ticket .order-type:hover{background:#e7edf5!important;color:#123a56!important}
html[data-theme="light"] .ticket .qty-step,html[data-theme="light"] #qty-minus,html[data-theme="light"] #qty-plus{background:#edf2f8!important;border-color:#d4dfec!important;color:#334155!important}
html[data-theme="light"] .ticket .qty-step:hover,html[data-theme="light"] #qty-minus:hover,html[data-theme="light"] #qty-plus:hover{background:#dfeaf8!important;color:#1e40af!important}
html[data-theme="light"] .qty-presets button,html[data-theme="light"] .ticket .quick-sizes button{color:#52627b!important;background:#f0f4f9!important;border-color:#dae3ee!important}
html[data-theme="light"] .qty-presets button.active,html[data-theme="light"] .ticket .quick-sizes button.active{color:#09704d!important;background:#ddf5e8!important;border-color:#8ad9b4!important}
html[data-theme="light"] .qty-presets button:hover,html[data-theme="light"] .ticket .quick-sizes button:hover{background:#e0ebf6!important;color:#23374d!important}
html[data-theme="light"] .markets-table-head{background:#eff4fa!important;border-color:#dae3ef!important}
html[data-theme="light"] .markets-table-head .market-sort,html[data-theme="light"] .markets-table-head .market-sort span{color:#4c607a!important}
html[data-theme="light"] .markets-table-head .market-sort.selected{color:#172b48!important}
html[data-theme="light"] .market-row{background:#fff!important;color:#24354d!important;border-bottom:1px solid #e8edf4!important}
html[data-theme="light"] .market-row:hover{background:#eef5fd!important}
html[data-theme="light"] .market-row.active{background:#e3f5ed!important;box-shadow:inset 3px 0 #0ea579!important}
html[data-theme="light"] .market-row .market-symbol,html[data-theme="light"] .market-row .market-quote{color:#1c314a!important}
html[data-theme="light"] .market-row .market-vol,html[data-theme="light"] .market-row .market-volume{color:#65768b!important}
html[data-theme="light"] .market-row .market-change.up{color:#087a50!important}
html[data-theme="light"] .market-row .market-change.down{color:#cb2e47!important}
html[data-theme="light"] .market-more,html[data-theme="light"] #market-more{background:#edf2f8!important;color:#3c536b!important;border-color:#d8e1ec!important}
html[data-theme="light"] .market-more:hover{background:#e1eaf5!important}
html[data-theme="light"] #chart-settings-btn,html[data-theme="light"] #reload-btn{background:#f5f8fc!important;color:#405570!important;border:1px solid #d7e1ec!important;box-shadow:none!important}
html[data-theme="light"] #chart-settings-btn:hover,html[data-theme="light"] #reload-btn:hover{background:#e6eef9!important;color:#2157a4!important}
html[data-theme="light"] .chart-properties-dialog,html[data-theme="light"] #chart-properties-dialog{background:#fff!important;color:#1c3049!important;border-color:#d7e1eb!important}
html[data-theme="light"] #chart-properties-form,html[data-theme="light"] .chart-properties-form,html[data-theme="light"] #chart-properties-dialog .dialog-body,html[data-theme="light"] #chart-properties-dialog .modal-body{background:#fff!important;color:#263b53!important}
html[data-theme="light"] #chart-properties-dialog label,html[data-theme="light"] #chart-properties-dialog h2,html[data-theme="light"] #chart-properties-dialog h3,html[data-theme="light"] #chart-properties-dialog small{color:#314961!important}
html[data-theme="light"] #chart-properties-dialog button:not(.primary){background:#f1f5fb!important;color:#3d536e!important;border-color:#d7e2ef!important}
html[data-theme="light"] #chart-properties-dialog input:not([type="checkbox"]),html[data-theme="light"] #chart-properties-dialog select{background:#fff!important;color:#253951!important;border-color:#d2dfec!important}
html[data-theme="light"] .markets-tabs button:not(.active),html[data-theme="light"] .toolbar .tf:not(.active){color:#64748b!important}
html[data-theme="light"] .toolbar .tf.active{color:#066e4c!important;background:#dbf3e7!important}
html[data-theme="light"] .toolbar .tf:hover{background:#e7effa!important;color:#204f91!important}
html[data-theme="light"] .ticket .risk-stop input{background:#fff6f7!important;color:#963047!important;border-color:#edbec9!important}
html[data-theme="light"] .ticket .risk-target input{background:#f0fbf6!important;color:#087853!important;border-color:#a7dcca!important}
html[data-theme="light"] .ticket .risk-input-row label,html[data-theme="light"] .ticket-risk-title>span,html[data-theme="light"] .ticket-heading-text{color:#344961!important}
html[data-theme="light"] .ticket .ticket-disclaimer,html[data-theme="light"] .ticket .cell-sub{color:#64748b!important}
html[data-theme="light"] .ticket .qty-presets button,html[data-theme="light"] .ticket .quick-sizes button{font-weight:700!important}
html[data-theme="light"] .trade-price-pill.pending{background:#eff5ffed!important;color:#234166!important;border-color:#a9bcd3!important;box-shadow:0 2px 8px #4c668327!important}
html[data-theme="light"] .trade-price-pill.pending .pending-pill-price{background:#f5f9ff!important;color:#1a3553!important}
html[data-theme="light"] .trade-price-pill.pending .pending-pill-side{background:#dce8f9!important;color:#1d5a98!important}
html[data-theme="light"] .trade-price-pill.pending.short{background:#fff6f0!important;border-color:#dec7b7!important}
html[data-theme="light"] .trade-price-pill.pending.short .pending-pill-price{background:#fffaf6!important;color:#a64629!important}
html[data-theme="light"] .trade-price-pill.pending.short .pending-pill-side{background:#fae5d8!important;color:#a6452a!important}
html[data-theme="light"] .trade-price-pill.entry{background:#fff8e9ed!important;color:#885a12!important;border-color:#ebd4a8!important;box-shadow:0 2px 8px #69502326!important}
html[data-theme="light"] .trade-price-pill.entry .trade-entry-side{background:#dcf7e6!important;color:#176644!important;border-color:#9ce3bd!important}
html[data-theme="light"] .trade-price-pill.entry.sell .trade-entry-side{background:#ffe7e9!important;color:#a5233a!important;border-color:#edb6bf!important}
html[data-theme="light"] .trade-price-pill.entry .trade-entry-pl.positive{color:#087947!important}
html[data-theme="light"] .trade-price-pill.entry .trade-entry-pl.negative{color:#b52742!important}
/* Keep chart preview shading almost invisible in both themes. */
html[data-theme="light"] .entry-drag-visual .entry-drag-zone{background:#ec48500f!important}
html[data-theme="light"] .entry-drag-visual.gain .entry-drag-zone{background:#049b7210!important}
/* Legibility pass for white mode, particularly around quote header and positions tabs. */
html[data-theme="light"] .topbar .brand-name,html[data-theme="light"] .topbar .pair-name,
html[data-theme="light"] .topbar .market-price strong,
html[data-theme="light"] .topbar .header-volume strong,
html[data-theme="light"] .topbar .market-top strong{color:#182c47!important}
html[data-theme="light"] .topbar .pair-sub,html[data-theme="light"] .header-volume span{color:#536981!important}
html[data-theme="light"] .topbar .market-price #headline-change.positive{background:#e1f5e8!important;color:#08794d!important}
html[data-theme="light"] .topbar .market-price #headline-change.negative{background:#ffeaed!important;color:#af3041!important}
html[data-theme="light"] .markets-tabs .markets-tab{background:#f8fbff!important;color:#53677e!important;border-color:#dce6f2!important}
html[data-theme="light"] .markets-tabs .markets-tab.active{background:#e9f1ff!important;color:#235bb6!important;border-color:#3271cd!important}
html[data-theme="light"] .blotter .tabs .tab{color:#566982!important}
html[data-theme="light"] .blotter .tabs .tab.active{color:#165bb3!important;border-bottom-color:#118961!important}
html[data-theme="light"] .blotter .tabs .tab span{background:#e7edf6!important;color:#445973!important}
html[data-theme="light"] .blotter .portfolio-title,html[data-theme="light"] .blotter .section-eyebrow{color:#354d69!important}
html[data-theme="light"] .blotter td strong{color:#1d304a!important}
html[data-theme="light"] .blotter .history-pages{background:#fff!important;border-color:#e2e8f1!important;color:#5a6c83!important}
html[data-theme="light"] .blotter .history-pages button{background:#f1f5fb!important;color:#344c67!important;border-color:#dbe4f0!important}
html[data-theme="light"] .blotter .empty-state{color:#63768d!important}
html[data-theme="light"] .ticket .ticket-symbol-box>span,html[data-theme="light"] .ticket .ticket-summary>div>span{color:#65758a!important}
html[data-theme="light"] .ticket .ticket-heading-text,html[data-theme="light"] .ticket .ticket-risk-title>span{color:#243954!important}
html[data-theme="light"] .ticket .ticket-head-actions .ticket-hide-icon,html[data-theme="light"] .ticket .ticket-edge-toggle{color:#536981!important;background:#f0f5fa!important;border-color:#d9e3ee!important}
html[data-theme="light"] .ticket .risk-inline-save{background:#0e9469!important;color:white!important}
html[data-theme="light"] .ticket .risk-inline-cancel{background:#f6f9fd!important;color:#465d75!important}
html[data-theme="light"] .markets-footer,html[data-theme="light"] .market-ticker-footer,html[data-theme="light"] .market-ticker-footer .ticker-item{color:#597089!important}
html[data-theme="light"] .chart-area{border-color:#e1e7f0!important}
html[data-theme="light"] .trade-price-pill.pending-risk{background:#e8f6f0!important;color:#176c4c!important;border-color:#9ed8bd!important;box-shadow:0 2px 8px #28543a25!important}
html[data-theme="light"] .trade-price-pill.pending-risk .trade-pill-tag{background:#d5f1e3!important;color:#166b49!important;border-color:#91ceb2!important}
html[data-theme="light"] .trade-price-pill.pending-risk .pending-pill-price{background:#f2faf5!important;color:#176345!important}
html[data-theme="light"] .trade-price-pill.pending-risk.stop{background:#fff0f1!important;color:#b12c40!important;border-color:#eeb6bf!important}
html[data-theme="light"] .trade-price-pill.pending-risk.stop .trade-pill-tag{background:#ffe0e5!important;color:#b12c40!important;border-color:#e9a8b4!important}
html[data-theme="light"] .trade-price-pill.pending-risk.stop .pending-pill-price{background:#fff6f8!important;color:#b12c40!important}

/* v25.10: precise light-theme contrast fixes, preserve existing dark appearance. */
html[data-theme="light"] .ticker-clock-trigger,
html[data-theme="light"] #ticker-clock,
html[data-theme="light"] #ticker-clock .ticker-clock-chevron {
  color:#4f6177!important;
}
html[data-theme="light"] .ticker-clock-trigger:hover,
html[data-theme="light"] .ticker-clock-trigger[aria-expanded="true"],
html[data-theme="light"] .ticker-clock-trigger:active {
  background:#edf3fa!important;
  color:#24517c!important;
}
html[data-theme="light"] .ticker-clock-trigger:focus-visible {
  outline:2px solid #8cb6e4!important;
  outline-offset:2px;
}
html[data-theme="light"] .ticker-clock-menu .ticker-zone-heading {
  background:#f5f8fc!important;
  border-bottom:1px solid #e1e7ef!important;
}
html[data-theme="light"] .ticker-zone-heading strong {color:#1c3049!important}
html[data-theme="light"] .ticker-zone-heading small,
html[data-theme="light"] .ticker-zone-heading span {color:#61758c!important}
html[data-theme="light"] .ticker-zone-list {scrollbar-color:#e1e7ef transparent!important}
html[data-theme="light"] .ticker-zone-group {color:#647a90!important}
html[data-theme="light"] .ticker-zone-option {
  background:transparent!important;
  border-color:transparent!important;
  color:#354960!important;
}
html[data-theme="light"] .ticker-zone-option:hover,
html[data-theme="light"] .ticker-zone-option:focus-visible {
  background:#f0f5fb!important;
  border-color:#e0e9f4!important;
  color:#1d3d61!important;
}
html[data-theme="light"] .ticker-zone-option.active {
  background:#eaf2fc!important;
  border-color:#cbddef!important;
  color:#214e80!important;
}
html[data-theme="light"] .ticker-zone-option .ticker-zone-offset {color:#697e93!important}
html[data-theme="light"] .ticker-zone-option.active .ticker-zone-offset {color:#315e90!important}

/* Quote asset suffix (USDT, USDC, etc.), on both trigger and market price fields. */
html[data-theme="light"] .ticket #order-market-price-wrap .ticket-input-unit>.order-quote-unit,
html[data-theme="light"] .ticket #order-trigger-wrap .ticket-input-unit>.order-quote-unit,
html[data-theme="light"] .ticket .ticket-input-unit>span.order-quote-unit {
  background:#edf2f8!important;
  color:#465f7a!important;
  border:1px solid #dee7f1!important;
  box-shadow:none!important;
}
html[data-theme="light"] .topbar .header-right #header-admin-link,
html[data-theme="light"] .topbar .header-right #theme-toggle {
  background:#fff!important;
  border:1px solid #d6e0ed!important;
  color:#50627a!important;
  box-shadow:0 1px 2px #173a6508!important;
}
html[data-theme="light"] .topbar .header-right #header-admin-link:hover,
html[data-theme="light"] .topbar .header-right #theme-toggle:hover {
  border-color:#b6cce5!important;
  background:#f0f5fc!important;
  color:#245582!important;
}
html[data-theme="light"] .markets-footer {
  border-top:1px solid #e1e7ef!important;
  background:#f7f9fc!important;
}
html[data-theme="light"] .blotter .tabs,
html[data-theme="light"] .blotter [role="tablist"] {
  border-bottom-color:#e1e7ef!important;
}
html[data-theme="light"] .blotter .tabs .tab:not(.active):hover {color:#264e7a!important;background:#f5f8fc!important}
html[data-theme="light"] .blotter .risk-inline-cancel,
html[data-theme="light"] .ticket .risk-inline-cancel,
html[data-theme="light"] .risk-inline-cancel {
  background:#f1f5fa!important;
  border:1px solid #d4dfea!important;
  color:#475c73!important;
  box-shadow:none!important;
}
html[data-theme="light"] .risk-inline-cancel:hover {
  background:#e7eef8!important;
  border-color:#b9cce1!important;
  color:#203d5b!important;
}
html[data-theme="light"] .ticket #price-step-up,
html[data-theme="light"] .ticket #price-step-down,
html[data-theme="light"] .ticket .price-step-up,
html[data-theme="light"] .ticket .price-step-down {
  background:#f0f4fa!important;
  border:1px solid #d7e1ed!important;
  color:#45607c!important;
  box-shadow:none!important;
}
html[data-theme="light"] .ticket #price-step-up:hover,
html[data-theme="light"] .ticket #price-step-down:hover {
  background:#e6eef9!important;
  border-color:#b8cee5!important;
  color:#204e80!important;
}
/* Strong contrasting Buy and Sell quote cards in both themes. */
html[data-theme="light"] .ticket .ticket-price-cards .price-side-card.sell-card {
  background:#252f3c!important;
  color:#f9fafb!important;
  border:1px solid #1f2937!important;
  box-shadow:0 3px 10px #25334822!important;
}
html[data-theme="light"] .ticket .ticket-price-cards .price-side-card.buy-card {
  background:#16866b!important;
  color:#fff!important;
  border:1px solid #13775f!important;
  box-shadow:0 3px 10px #16866b25!important;
}
html[data-theme="light"] .ticket .ticket-price-cards .price-side-card strong,
html[data-theme="light"] .ticket .ticket-price-cards .price-side-card span {color:#fff!important}
html[data-theme="light"] .ticket .ticket-price-cards .price-side-card:hover:not(:disabled) {filter:brightness(1.07)!important}
html[data-theme="light"] .drawing-tools .draw-divider {background:#e1e7ef!important;border-color:#e1e7ef!important}
html[data-theme="light"] .markets-list,
html[data-theme="light"] .ticket-scroll,
html[data-theme="light"] .ticket .ticket-scroll {
  scrollbar-width:thin!important;
  scrollbar-color:#e1e7ef transparent!important;
}
html[data-theme="light"] .markets-list::-webkit-scrollbar,
html[data-theme="light"] .ticket-scroll::-webkit-scrollbar {width:7px;height:7px}
html[data-theme="light"] .markets-list::-webkit-scrollbar-thumb,
html[data-theme="light"] .ticket-scroll::-webkit-scrollbar-thumb {background:#e1e7ef;border-radius:99px}
html[data-theme="light"] .markets-list::-webkit-scrollbar-track,
html[data-theme="light"] .ticket-scroll::-webkit-scrollbar-track {background:transparent}
/* Notifications: light surfaces, readable type, no dark squares. */
html[data-theme="light"] .toast-stack .toast-v10 {
  background:#ffffff!important;
  color:#26384e!important;
  border:1px solid #dfe6f0!important;
  border-left:3px solid #6c96c6!important;
  box-shadow:0 12px 32px #28436423,0 2px 5px #243d5b0d!important;
}
html[data-theme="light"] .toast-stack .toast-v10.success {border-left-color:#1b9a70!important}
html[data-theme="light"] .toast-stack .toast-v10.error {border-left-color:#d94f61!important}
html[data-theme="light"] .toast-v10 .toast-main strong {color:#1c3049!important}
html[data-theme="light"] .toast-v10 .toast-main p {color:#526982!important}
html[data-theme="light"] .toast-v10 .toast-close {color:#60768d!important}
html[data-theme="light"] .toast-v10 .toast-close:hover {background:#eef3fa!important;color:#243f60!important}
html[data-theme="light"] .toast-v10 .toast-icon {background:#eaf2ff!important;color:#2f6bb0!important}
html[data-theme="light"] .toast-v10.success .toast-icon {background:#e4f7ed!important;color:#147b55!important}
html[data-theme="light"] .toast-v10.error .toast-icon {background:#ffebee!important;color:#bd3f52!important}
/* Floating P&L must stay semantically green/red, including table values. */
html[data-theme="light"] .topbar #floating-pnl.positive,
html[data-theme="light"] .header-account-strip #floating-pnl.positive,
html[data-theme="light"] .blotter td.positive,
html[data-theme="light"] .blotter td .positive {color:#087a50!important}
html[data-theme="light"] .topbar #floating-pnl.negative,
html[data-theme="light"] .header-account-strip #floating-pnl.negative,
html[data-theme="light"] .blotter td.negative,
html[data-theme="light"] .blotter td .negative {color:#c8394d!important}
html[data-theme="light"] .trade-selected-zone.profit {background:linear-gradient(180deg,#16967b0c,#16967b0a)!important;border-color:#16967b3c!important}
html[data-theme="light"] .trade-selected-zone.loss {background:linear-gradient(180deg,#db51510a,#db51510f)!important;border-color:#db51513b!important}
