.theme-toggle{white-space:nowrap;min-height:36px;padding:8px 12px;border:1px solid #718096;border-radius:8px;background:transparent;color:inherit;cursor:pointer}.login-card>.theme-toggle{display:block;margin:0 0 18px auto;width:auto}
html[data-theme=light]{--bg:#f3f5f8;--panel:#fff;--line:#d6dee8;--text:#182536;--muted:#596a7e;--gold:#876322;color:#182536;background:#f3f5f8;color-scheme:light}
html[data-theme=light] body{background:#f3f5f8;color:var(--text)}
html[data-theme=light] :is(.rail,.terminal,.below,.settings-card,.sentiment-card,.last-scan-card,.signal-panel,.chart-title,.login-card,dialog,.op-metric,.chart-symbol-matches,.watch-panel){background:#fff;color:var(--text);border-color:#d6dee8;box-shadow:0 4px 18px #24344b08}
html[data-theme=light] .options-workspace{background:#fff!important}
html[data-theme=light] :is(input,select,textarea,button,.scan-column-heading select){color:#24344b;background-color:#f8fafc;border-color:#c3cedb}
html[data-theme=light] :is(th,.last-scan-table th,.last-scan-heading,.metrics>div){background:#edf2f7;color:#34465c;border-color:#d6dee8}
html[data-theme=light] :is(.muted,small,.eyebrow,.rail-caption,.last-scan-help,.settings-card p,.settings-card label,dialog label,.intro p,.identity p,.page-footer){color:#596a7e}
html[data-theme=light] :is(.gold,.wordmark span){color:#876322}
html[data-theme=light] :is(.gold-button,button.active,nav button.active){background:#eee2c9;color:#634714;border-color:#b49a63}
html[data-theme=light] :is(.watch-row:hover,tbody tr:hover,nav button:hover,.chart-symbol-matches button:hover){background:#eaf0f6;color:#182536}
html[data-theme=light] :is(.notice,.account,.chart-toolbar,.chart-legend,.indicator-controls,td,.intro){border-color:#d6dee8}
html[data-theme=light] #logout-button{color:#34465c}
html[data-theme=light] :is(#chart-wrap,#chart,.mtf-table){background:#fff;color:#24344b}
html[data-theme=light] :is(.buy,.positive){color:#087958}html[data-theme=light] :is(.sell,.negative){color:#bd3838}
html[data-theme=light] :is(#metrics>div,.chart-panel,.chart-toolbar,.indicator-controls,.chart-legend,.dashboard-disclosures,.mtf-dashboards,.mtf-table h3,.last-scan-controls button,.last-scan-table td button,#position-size input,#toast){background:#f1f5f9;color:#24344b;border-color:#cbd5e1}
html[data-theme=light] #chart-message{background:#ffffffee}
html[data-theme=light] :is(.last-scan-controls select,.last-scan-table .stock-name){color:#24344b;background:#f8fafc}
html[data-theme=light] :is(.oi-atm,.op-atm){background:#f4e8cc}
html[data-theme=light] #signin>button{background:#b58b42;color:#fff;border-color:#98712e}
html[data-theme=light] :is(.dashboard-disclosures summary,.price-line,#price-line,.chart-footer,.panel-note,.list-heading,.mtf-table th,.mtf-table td){color:#46596e}
html[data-theme=light] .price-line strong{color:#182536}
html[data-theme=light] :is(.last-scan-heading h2,.price-line b,.price-line span:first-child){color:#34465c}
/* Light theme: readable signal badges and options data hierarchy. */
html[data-theme=light] .last-scan-table .profast-badge{color:#075d46;background:#d8f1e7;border:1px solid #80bba4;font-weight:750;letter-spacing:.25px;box-shadow:none}
html[data-theme=light] .last-scan-table :is(.buy,.hit-distance){color:#086448;font-weight:650}
html[data-theme=light] .last-scan-table :is(.sell,.sl-price){color:#a93629;font-weight:650}
html[data-theme=light] .last-scan-table .wait-distance{color:#805509;font-weight:650}
html[data-theme=light] .last-scan-table small{color:#526176}
html[data-theme=light] .last-scan-table .stock-name{background:transparent;color:#182536}
html[data-theme=light] .last-scan-table .is-waiting{background:#fffcf4}
html[data-theme=light] .op-contract-values>div{background:#f3f6fa;border-color:#cbd5e1;box-shadow:0 2px 6px #24344b06}
html[data-theme=light] :is(.op-heading small,.op-controls label,.op-hint,#op-status,.op-contract-values small,.op-metric small){color:#526176}
html[data-theme=light] :is(.op-metric,.op-contract-values)>strong{color:#1d3046}
html[data-theme=light] .op-metric:nth-child(3) strong{color:#087252}
html[data-theme=light] .op-metric:nth-child(4) strong{color:#ac402c}
html[data-theme=light] #op-contract-values>div:nth-child(2) strong{color:#805a13!important}
html[data-theme=light] #op-contract-values>div:nth-child(3) strong{color:#305db1!important}
html[data-theme=light] #op-contract-values>div:nth-child(4) strong{color:#087252!important}
html[data-theme=light] #op-contract-values>div:nth-child(5) strong{color:#ac402c!important}
html[data-theme=light] .op-legend span{color:#34465c;font-weight:650;background:#f3f6fa;padding:7px 10px;border:1px solid #d6dee8;border-radius:7px}
html[data-theme=light] #op-content th{background:#e8eef5;color:#34465c;border-bottom:1px solid #bdcbdc;font-weight:650}
html[data-theme=light] #op-content td{color:#24344b;border-color:#dce4ee}
html[data-theme=light] #op-content tr[data-atm=true]{background:#f8edcf!important}
html[data-theme=light] #op-content tr[data-atm=true] button{background:#805a13;color:#fff;border-color:#805a13;font-weight:700}
html[data-theme=light] #op-content :is(td:nth-child(2),td:nth-child(8)){background:#edf3fa;color:#243e60;font-weight:700}
html[data-theme=light] :is(#op-content .table-scroll,#op-oi,#op-ce,#op-pe,.op-tabs){border-color:#cbd5e1}
html[data-theme=light] .op-source{background:#f8edcf;color:#705014;border-color:#c6ae7b}
html[data-theme=light] .op-tabs button{color:#526176}
html[data-theme=light] .op-tabs button.active{background:#e6edf7;color:#203f6c;border-color:#9fb3cf;font-weight:700}
html[data-theme=light] #op-summary{grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr))}
html[data-theme=light] .op-metric{min-width:0}
html[data-theme=light] .op-metric strong{font-size:17px;overflow-wrap:anywhere}

html[data-theme=light] .chart-symbol-matches button[aria-selected=true]{background:#dce8f7;color:#173a69;box-shadow:inset 3px 0 #365f94}
.chart-symbol-matches button[aria-selected=true]{outline:2px solid var(--gold);outline-offset:-2px}

/* Warm gold refinement: brand accents; trading direction keeps green/red. */
html[data-theme=light]{--bg:#f7f6f2;--gold:#8b651c;--line:#e2dccf}
html[data-theme=light] body{background:#f7f6f2}
html[data-theme=light] .rail{background:#fffefa;border-right-color:#e5dcc9}
html[data-theme=light] :is(.eyebrow,.rail-caption){color:#927132}
html[data-theme=light] :is(nav button.active,.op-tabs button.active,#timeframes button.active){background:#f3e6c9;color:#705019;border-color:#c6a359;box-shadow:inset 3px 0 #b28b3e}
html[data-theme=light] :is(nav button:hover,.watch-row:hover,.chart-symbol-matches button:hover){background:#faf3e4}
html[data-theme=light] :is(.gold-button,#signin>button){background:linear-gradient(135deg,#c5a35a,#a78338);color:#211a0c;border-color:#a3823d;font-weight:700}
html[data-theme=light] :is(.last-scan-heading,.mtf-table h3,.chart-title){background:#fffaf0;border-color:#e7d9bb}
html[data-theme=light] :is(th,.last-scan-table th,#op-content th){background:#f5efdf;color:#695329;border-color:#e5d8bc}
html[data-theme=light] :is(.settings-card,.sentiment-card,.last-scan-card,.login-card){border-color:#e1d7c1;box-shadow:0 5px 20px #70501908}
html[data-theme=light] :is(.sentiment-card,.last-scan-card,.login-card){border-top:3px solid #b9954d}
html[data-theme=light] #metrics>div{background:#fffdf7;border-color:#e4dbc8;border-top:2px solid #c5a45f}
html[data-theme=light] .index-strip{background:#fffdf7;border-color:#e0d2b1;box-shadow:inset 3px 0 #b9954d}
html[data-theme=light] :is(.index-chip b,.last-scan-heading h2){color:#806127}
html[data-theme=light] :is(input,select,textarea):focus-visible{outline:2px solid #aa8032;outline-offset:2px}
html[data-theme=light] button:focus-visible{outline:2px solid #aa8032;outline-offset:2px}
html[data-theme=light] .chart-symbol-matches button[aria-selected=true]{background:#f3e6c9;color:#654817;box-shadow:inset 3px 0 #ad8436}
html[data-theme=light] :is(.notice,.op-source){background:#fcf8ed;border-color:#e2d4b5}

.brand-slogan{font-size:10px!important;letter-spacing:1.8px;line-height:1.6;color:var(--gold,#c7a66b)!important;font-weight:600;display:block}.login-card>.brand-slogan{text-align:center;margin:0 0 20px} @media(max-width:600px){.brand-slogan{font-size:9px!important;letter-spacing:1px}}

/* Compact single-row screener headers and toolbar. */
.scan-column-heading{display:flex;flex-direction:row;align-items:center;gap:0}
.scan-column-heading select{width:100%;min-width:66px;max-width:122px;height:29px;padding:4px 18px 4px 6px;border:1px solid transparent;border-radius:5px;font-size:10px;font-weight:700;letter-spacing:.35px;background-color:transparent;color:inherit;cursor:pointer}
.scan-column-heading select:hover{border-color:#9d854f;background-color:#c5a35a12}
.scan-column-heading select.is-filtered{background:#c5a35a1c;border-color:#9d854f;color:#d7ba79}
html[data-theme=light] .scan-column-heading select{background-color:transparent;border-color:transparent;color:#695329}
html[data-theme=light] .scan-column-heading select.is-filtered{background:#eadbb8;border-color:#bda267;color:#634916}
.last-scan-table th{padding:7px 5px}
.last-scan-controls{gap:10px;align-items:end}
.last-scan-controls label{font-size:10px;letter-spacing:.7px;gap:4px}
.last-scan-controls select{height:34px;min-height:34px;padding:6px 28px 6px 10px;font-size:12px;border-radius:6px}
.last-scan-controls button{height:34px;min-height:34px;padding:6px 12px;font-size:12px;border-radius:6px}
