.orion-preferences{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex-shrink:0;font:12px Inter,Arial,sans-serif;letter-spacing:normal}
.orion-preferences label{display:flex;align-items:center;gap:5px;color:var(--text,#edf3f8)}
.orion-preferences label span{white-space:nowrap;flex-shrink:0}
.orion-preferences select{min-height:36px;max-width:150px;border:1px solid var(--line2,#46525e);border-radius:8px;padding:5px 8px;background:var(--panel,#111820);color:var(--text,#edf3f8);font:inherit}
.orion-preferences select:focus-visible{outline:2px solid var(--cyan,var(--green,#14a6bc));outline-offset:2px}
.topbar:has(.orion-preferences){height:auto;min-height:72px;flex-wrap:wrap;padding-block:12px;gap:12px}
.topbar .nav:has(.orion-preferences),.topbar .product-nav:has(.orion-preferences),.tb-right:has(.orion-preferences){flex-wrap:wrap;overflow:visible}
body:has(.orion-preferences) .theme-toggle-group,body:has(.orion-preferences) #langBtn,body:has(.orion-preferences) .lang-group{display:none}
html[data-orion-theme=light]{color-scheme:light;background:#f3f6fa}
html[data-orion-theme=sepia]{color-scheme:light;background:#f4ecd9}
body[data-orion-theme=light]{--bg:#f3f6fa;--bg2:#e8eef4;--panel:#fff;--panel2:#f0f4f8;--line:#cbd5e1;--line2:#a3b2c3;--border:#cbd5e1;--text:#172638;--muted:#526579;--green:#087345;--cyan:#076c80;--cyan2:#075c70;--blue:#075ba4;--gold:#866017;--gold2:#75500b;--violet:#6542ac;--violet2:#583996;--red:#b3263b}
body[data-orion-theme=sepia]{--bg:#f4ecd9;--bg2:#eaddc3;--panel:#fff8e8;--panel2:#efe4cc;--line:#d2c1a0;--line2:#ad9874;--border:#d2c1a0;--text:#392f22;--muted:#756044;--green:#356336;--cyan:#386969;--cyan2:#2b5858;--blue:#3b617b;--gold:#88651d;--gold2:#715213;--violet:#75508b;--violet2:#654277;--red:#a33332}
body[data-orion-theme]:not([data-orion-theme=dark]){background:var(--bg)!important;color:var(--text)!important}
body[data-orion-theme]:not([data-orion-theme=dark]){--muted2:var(--muted);--muted3:var(--muted);--green2:var(--green);--green3:var(--green);--amber:var(--gold);--purple:var(--violet)}
body[data-orion-theme]:not([data-orion-theme=dark]){--orion-soft-white:var(--text)}
body[data-orion-theme]:not([data-orion-theme=dark]) :is(.lock-cover,.sess-bar){background:var(--panel)!important}
body[data-orion-theme]:not([data-orion-theme=dark]) :is(.row1>.panel .ph-title,.oc-lbl,.oc-level-card.entry .oc-val,.oc-confidence-label,.sess-block,.sess-status,#orionChartLabel,#orionChartTime){color:var(--text)!important;text-shadow:none!important}
body[data-orion-theme]:not([data-orion-theme=dark]) :is(#orionDecisionPanel,.validation-item,.decision-context-grid>div,.decision-mtf-grid>div,.price-map-row,.stop-summary-grid>div,.decision-conf-chip::after,.conf-chip::after){background:var(--panel)!important;color:var(--text)!important;border-color:var(--line2)!important}
body[data-orion-theme]:not([data-orion-theme=dark]) :is(.truth,.truth strong,.unset,.lock,.lock-card){background:var(--panel)!important;color:var(--text)!important;border-color:var(--line2)!important}
body[data-orion-theme]:not([data-orion-theme=dark]) :is(button.active,.filter-btn.active,.nav a.active,.product-nav a.active){background:var(--line)!important;font-weight:800}
body[data-orion-theme]:not([data-orion-theme=dark]) :is(.panel,.card,.topbar,.savebar,.gate,.loading,.gate-card,.metric,.compare-cell,.stop-lock,.research-agent,.agent-message,.agent-heading,.agent-progress,.orion-account-drawer,.orion-account-button,.orion-account-overlay .orion-account-fact,.modal-content,.notice,.boundary,.signal-card,.ph,.pb,.controls,.filters){background:var(--panel)!important;border-color:var(--line)!important;color:var(--text)!important}
body[data-orion-theme]:not([data-orion-theme=dark]) :is(input,select,textarea,button,.nav a,.product-nav a,.ghost,.choice span,.chip,.badge,.status-chip,.btn-outline,.btn-sm,.page-button){background:var(--panel2)!important;border-color:var(--line2)!important;color:var(--text)!important}
body[data-orion-theme]:not([data-orion-theme=dark]) :is(h1,h2,h3,h4,p,small,label,.label,.title,.subtitle,.status,.context-note,.k,.v,.s,.field span,th,td,footer,.number,.eyebrow,.orion-account-fact span){color:var(--text)!important}
body[data-orion-theme]:not([data-orion-theme=dark]) :is(.ok,.green,.positive,.win){color:var(--green)!important}
body[data-orion-theme]:not([data-orion-theme=dark]) :is(.err,.red,.negative,.loss){color:var(--red)!important}
body[data-orion-theme]:not([data-orion-theme=dark]) .choice input:checked+span{background:var(--line)!important;border-color:var(--cyan)!important;font-weight:800}
body[data-orion-theme]:not([data-orion-theme=dark]) .orion-account-overlay{background:#1b233466!important}
@media(max-width:880px){.orion-preferences{width:100%;justify-content:flex-start}.topbar:has(.orion-preferences){position:relative}.orion-preferences label{flex:1}.orion-preferences select{width:100%;max-width:none}.orion-preferences label span{font-size:11px}}
