/* CasinoLab v25.11: white-theme consistency. All rules isolated to white mode. */
html[data-theme="light"] .ticker-clock,
html[data-theme="light"] .ticker-start,
html[data-theme="light"] .header-volume {border-left-color:#e1e7ef!important;border-right-color:#e1e7ef!important}
html[data-theme="light"] .ticker-start {border-left:0!important}
html[data-theme="light"] .market-ticker-viewport{border-color:#e1e7ef!important}
html[data-theme="light"] .toolbar .separator,
html[data-theme="light"] .header-separator,
html[data-theme="light"] .editor-split,
html[data-theme="light"] .drawing-editor .editor-split{background:#e1e7ef!important;border-color:#e1e7ef!important}
html[data-theme="light"] .markets-tabs{
  background:#fff!important;border-bottom:1px solid #e1e7ef!important;
}
html[data-theme="light"] .markets-tab{background:#fff!important;color:#51667f!important}
html[data-theme="light"] .markets-tab:hover{background:#f1f6fc!important;color:#214c79!important}
html[data-theme="light"] .markets-tab.active{background:#eef5fd!important;color:#24599a!important;border-bottom-color:#4482c2!important}
html[data-theme="light"] .markets-drawer-header{
  background:#f8fafd!important;color:#172b44!important;border-bottom:1px solid #e1e7ef!important;
}
html[data-theme="light"] .markets-drawer-header .md-title,
html[data-theme="light"] .markets-drawer-header .md-title strong{color:#1b304b!important}
html[data-theme="light"] .markets-drawer-header .md-title small{color:#657992!important}
html[data-theme="light"] .markets-drawer-header .md-symbol{background:#e8f1fa!important;border-color:#d1e1f1!important;color:#2d5f92!important}
html[data-theme="light"] #markets-drawer-close{background:#eef3f9!important;color:#476079!important;border-color:#d8e2ed!important}
html[data-theme="light"] #markets-drawer-close:hover{background:#e0eaf5!important;color:#1c497a!important}
html[data-theme="light"] .markets-search,html[data-theme="light"] .markets-search-field{background:#fff!important;border-color:#e1e7ef!important}
html[data-theme="light"] .markets-search .markets-search-field input{background:#fff!important;border-color:#dbe5f1!important;color:#223c57!important}
html[data-theme="light"] .markets-search .markets-search-field svg{color:#7b91a8!important}
/* Red Sell with matching border; Buy stays green. */
html[data-theme="light"] .ticket .ticket-price-cards .price-side-card.sell-card{
 background:#e45153!important;border:1px solid #c83e42!important;color:#fff!important;
 box-shadow:0 3px 12px #dc525427!important;
}
html[data-theme="light"] .ticket .ticket-price-cards .price-side-card.sell-card:hover:not(:disabled){background:#d9474a!important;border-color:#b8323b!important}
html[data-theme="light"] .ticket .ticket-price-cards .price-side-card.sell-card strong,
html[data-theme="light"] .ticket .ticket-price-cards .price-side-card.sell-card span{color:#fff!important}
/* Chart appearance dialog: header/sidebar/footer previously retained dark-mode backgrounds. */
html[data-theme="light"] #chart-properties-dialog,
html[data-theme="light"] #chart-properties-dialog #chart-properties-form,
html[data-theme="light"] #chart-properties-dialog .properties-content,
html[data-theme="light"] #chart-properties-dialog .properties-fields,
html[data-theme="light"] #chart-properties-dialog .properties-fields section{background:#fff!important;color:#243a52!important}
html[data-theme="light"] #chart-properties-dialog .properties-header{
 background:#f7f9fc!important;color:#1d3450!important;border-bottom:1px solid #e1e7ef!important;
}
html[data-theme="light"] #chart-properties-dialog .properties-header strong{color:#1b3049!important}
html[data-theme="light"] #chart-properties-dialog .properties-header .kicker{color:#75869b!important}
html[data-theme="light"] #chart-properties-dialog .properties-header button{color:#667d93!important;background:transparent!important}
html[data-theme="light"] #chart-properties-dialog .properties-nav{
 background:#f6f8fb!important;border-right:1px solid #e1e7ef!important;
}
html[data-theme="light"] #chart-properties-dialog .properties-nav button{
 background:transparent!important;border-color:transparent!important;color:#586c83!important;
}
html[data-theme="light"] #chart-properties-dialog .properties-nav button:hover{background:#eaf1f9!important;color:#2b5278!important}
html[data-theme="light"] #chart-properties-dialog .properties-nav button.active{
 background:#e5f0fb!important;color:#215b93!important;font-weight:700!important;
}
html[data-theme="light"] #chart-properties-dialog .prop-section-title{
 color:#213b56!important;border-bottom:1px solid #e1e7ef!important;
}
html[data-theme="light"] #chart-properties-dialog .prop-row{color:#4a5e77!important}
html[data-theme="light"] #chart-properties-dialog .prop-row select{
 background:#fff!important;color:#2b415c!important;border:1px solid #d7e1ed!important;
}
html[data-theme="light"] #chart-properties-dialog .properties-footer{
 background:#f7f9fc!important;border-top:1px solid #e1e7ef!important;
}
html[data-theme="light"] #chart-properties-dialog .properties-footer button{
 background:#fff!important;border-color:#cddbeb!important;color:#344c66!important;
}
html[data-theme="light"] #chart-properties-dialog .properties-footer #cp-save{
 background:#147f61!important;border-color:#147f61!important;color:#fff!important;
}
/* Drawing settings: override high-specificity redesigned dark surfaces and nested fields. */
html[data-theme="light"] #draw-settings-dialog.drawing-settings-dialog.redesigned,
html[data-theme="light"] #draw-settings-dialog #draw-settings-form,
html[data-theme="light"] #draw-settings-dialog .draw-tab-pane{
 background:#fff!important;border-color:#dce5f0!important;color:#273e57!important;
}
html[data-theme="light"] #draw-settings-dialog .draw-modal-head{
 background:#f7f9fc!important;border-bottom:1px solid #e1e7ef!important;
}
html[data-theme="light"] #draw-settings-dialog .draw-modal-head strong{color:#1b304b!important}
html[data-theme="light"] #draw-settings-dialog .draw-modal-head button{color:#627890!important;background:transparent!important}
html[data-theme="light"] #draw-settings-dialog .draw-modal-tabs{
 background:#f7f9fc!important;border-bottom:1px solid #e1e7ef!important;
}
html[data-theme="light"] #draw-settings-dialog .draw-modal-tabs button{color:#64788f!important;background:transparent!important}
html[data-theme="light"] #draw-settings-dialog .draw-modal-tabs button.active{
 color:#1f5d96!important;background:#edf4fc!important;border-bottom-color:#4886c0!important;
}
html[data-theme="light"] #draw-settings-dialog .draw-tab-pane label,
html[data-theme="light"] #draw-settings-dialog .tool-specific-pane label,
html[data-theme="light"] #draw-settings-dialog .drawing-subtitle{color:#2a405b!important}
html[data-theme="light"] #draw-settings-dialog .draw-tab-pane p,
html[data-theme="light"] #draw-settings-dialog .risk-panel-explain{color:#697e95!important}
html[data-theme="light"] #draw-settings-dialog .draw-tab-pane select,
html[data-theme="light"] #draw-settings-dialog .draw-tab-pane input:not([type="checkbox"]),
html[data-theme="light"] #draw-settings-dialog .tool-specific-pane input[type="number"],
html[data-theme="light"] #draw-settings-dialog .tool-specific-pane select{
 background:#fff!important;color:#203b58!important;border:1px solid #d5e0ed!important;
}
html[data-theme="light"] #draw-settings-dialog .draw-tab-pane input[type="color"]{
 background:#f7f9fd!important;border-color:#d7e1ed!important;
}
html[data-theme="light"] #draw-settings-dialog .draw-modal-footer{
 background:#f7f9fc!important;border-top:1px solid #e1e7ef!important;
}
html[data-theme="light"] #draw-settings-dialog .draw-modal-footer button{
 background:#fff!important;color:#415b73!important;border-color:#d3e0ed!important;
}
html[data-theme="light"] #draw-settings-dialog .draw-modal-footer button[type="submit"]{
 background:#178568!important;color:#fff!important;border-color:#178568!important;
}
html[data-theme="light"] #draw-settings-dialog .tool-specific-pane .draw-check-row{border-top-color:#e1e7ef!important}
html[data-theme="light"] .drawing-editor{
 background:#fff!important;color:#293e57!important;border:1px solid #dce4ef!important;
 box-shadow:0 5px 20px #152b4220!important;
}
html[data-theme="light"] .drawing-editor button{color:#52677d!important}
html[data-theme="light"] .drawing-editor button:hover{background:#edf3fa!important;color:#24527e!important;border-color:#d8e4f1!important}
html[data-theme="light"] .drawing-editor select{background:#fff!important;color:#2f4560!important;border-color:#dce6f0!important}
@media(max-width:760px){
 /* Keep 16px input font size to prevent iOS focus zoom. Only placeholder looks smaller. */
 #market-search{font-size:16px!important}
 #market-search::placeholder{font-size:11px!important;color:#8091a4!important;opacity:1}
 .risk-inline-form .risk-inline-label{display:none!important}
}
