/* OMNEX design tokens. Legacy API/storage identifiers deliberately stay intact. */
:root{--ox-bg:#090d14;--ox-surface:#111823;--ox-raised:#172130;--ox-border:#263346;--ox-text:#f1f6fc;--ox-muted:#91a1b6;--ox-blue:#6b9dff;--ox-blue-strong:#477ef1;--ox-soft:#528cff18;--ox-shadow:0 18px 60px #0003;--accent:var(--ox-blue);--accent-2:#43c3db;--nova-accent:var(--ox-blue);--nova-surface:var(--ox-surface);--panel:var(--ox-surface);--line:var(--ox-border);--muted:var(--ox-muted);--font:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color-scheme:dark}
body.light{--ox-bg:#f5f7fb;--ox-surface:#fff;--ox-raised:#edf2f9;--ox-border:#d7e0eb;--ox-text:#172333;--ox-muted:#61748a;--ox-blue:#326cda;--ox-blue-strong:#326cda;--ox-soft:#3473df0c;--ox-shadow:0 14px 50px #273f6510;color-scheme:light}
body,body.light{background:var(--ox-bg);color:var(--ox-text);font-family:var(--font);background-image:none;accent-color:var(--ox-blue)}button,input,select,textarea{font-family:var(--font)}button:focus-visible,summary:focus-visible,a:focus-visible{outline:2px solid var(--ox-blue);outline-offset:3px}::selection{background:#528cff55}a{color:var(--ox-blue)}
#sidebar,body.light #sidebar{background:var(--ox-bg);border-color:var(--ox-border);width:242px;flex-basis:242px;padding-inline:13px}#sidebar .side-top{padding:4px 6px 16px;margin:0 0 12px}#sidebar .side-top h2,body.light #sidebar .side-top h2{display:flex;align-items:center;gap:9px;color:var(--ox-text);background:none;letter-spacing:.045em;font-size:20px;font-weight:750}#sidebar .side-top h2 img{object-fit:contain;flex:none}#sidebar .side-foot,body.light #sidebar .side-foot{background:var(--ox-bg)}#sidebar .search,body.light #sidebar .search{background:var(--ox-surface);border-color:var(--ox-border)}#sidebar #new{background:var(--ox-surface);border-color:var(--ox-border);color:var(--ox-text);border-radius:10px;min-height:44px}#sidebar #new:hover{border-color:var(--ox-blue)}.nova-nav-item,body.light .nova-nav-item{color:var(--ox-muted);border-radius:9px;font-size:12px;min-height:42px}.nova-nav-item svg{color:inherit}.nova-nav-item.active,body.light .nova-nav-item.active,.nova-nav-item:hover{background:var(--ox-soft);color:var(--ox-text);border-color:transparent}.professional-submenu,.office-submenu{border-color:var(--ox-border)}#history .item:hover{background:var(--ox-surface)}#history .title,#chatSearch{color:var(--ox-muted)}#sidebar .label{color:var(--ox-muted);letter-spacing:.1em}#sideAccount,#premium,body.light #premium{border-color:var(--ox-border);background:var(--ox-surface);color:var(--ox-text);border-radius:10px}
#assistantView,body.light #assistantView{background:var(--ox-bg)}#assistantView>header,.dash-topbar,body.light .dash-topbar{background:var(--ox-bg);border-color:var(--ox-border);height:64px}.brand .logo{display:flex;align-items:center;gap:8px;color:var(--ox-text);letter-spacing:.04em;font-size:17px;font-weight:750}.brand .logo img{object-fit:contain}.brand .logo>span{display:none}header button,body.light header button{border-color:var(--ox-border);background:var(--ox-surface);color:var(--ox-text);border-radius:9px;min-height:38px}#assistantView #chat{max-width:970px;padding-inline:clamp(16px,4vw,48px)}#welcome{padding:22px 0 24px;max-width:780px;align-self:center}#welcome .omnex-symbol{width:112px;height:112px;margin:0 auto 20px;border:0;box-shadow:none;border-radius:0;background:none;animation:omnex-breathe 8s ease-in-out infinite}#welcome .omnex-symbol img{width:100%;height:100%;object-fit:contain}#welcome>small{color:var(--ox-muted);font-size:10px;letter-spacing:.16em}#welcome h1{color:var(--ox-text);font-size:clamp(29px,3.6vw,44px);line-height:1.13;letter-spacing:-.045em;font-weight:650;margin:17px 0}#welcome h1 em{background:none;color:var(--ox-blue);font-weight:600}#welcome>p,body.light #welcome>p{color:var(--ox-muted);font-size:14px;line-height:1.7;max-width:560px;margin:0 auto}.omnex-capabilities{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:24px 0 0}.omnex-capabilities button{display:flex;align-items:center;gap:8px;min-height:42px;padding:10px 13px;background:var(--ox-surface);border:1px solid var(--ox-border);color:var(--ox-text);border-radius:10px;font-size:12px;transition:background .15s,border-color .15s}.omnex-capabilities button svg{color:var(--ox-blue)}.omnex-capabilities button:hover{background:var(--ox-raised);border-color:var(--ox-blue)}.omnex-owner-suggestions:empty{display:none}
#assistantView footer,body.light #assistantView footer{background:none;width:min(860px,calc(100% - 34px));padding:0;margin:0 auto max(22px,env(safe-area-inset-bottom));border:0;box-shadow:none}#assistantView .composer,body.light #assistantView .composer{border:1px solid var(--ox-border);background:var(--ox-surface);box-shadow:var(--ox-shadow);border-radius:18px;padding:15px 16px 10px}#assistantView .composer:focus-within{border-color:var(--ox-blue);box-shadow:0 0 0 3px var(--ox-soft),var(--ox-shadow)}#assistantView textarea{color:var(--ox-text);font-size:15px;line-height:1.6;min-height:42px}#assistantView textarea::placeholder{color:var(--ox-muted)}#assistantView .tools{gap:7px}.tools>button:not(#send),.mode-btn,body.light .mode-btn{background:transparent;border-color:var(--ox-border);color:var(--ox-muted);min-height:36px;border-radius:9px}#send{background:var(--ox-blue-strong);color:white;border-radius:11px;min-width:40px;min-height:40px}#send:hover{filter:brightness(1.12)}#assistantView .composer-meta{color:var(--ox-muted)}.mode-menu,#langMenu,#moreMenu,body.light .mode-menu,body.light #langMenu,body.light #moreMenu{background:var(--ox-raised);border-color:var(--ox-border);color:var(--ox-text);box-shadow:var(--ox-shadow)}.mode-opt{color:var(--ox-text)}.mode-opt:hover,.mode-opt.selected{background:var(--ox-soft)}.msg,body.light .msg{background:var(--ox-surface);border-color:var(--ox-border);color:var(--ox-text);border-radius:14px}.msg.user,body.light .msg.user{background:var(--ox-raised);border-color:var(--ox-border)}.msg.assistant{background:transparent}.msg pre{background:var(--ox-surface);border-color:var(--ox-border)}.msg th,.msg td{border-color:var(--ox-border)}.msg a{color:var(--ox-blue)}.msg h1,.msg h2,.msg h3{color:var(--ox-text)}.message-actions button{color:var(--ox-muted)}
.dashboard-view,.dash-shell,body.light .dashboard-view{background:var(--ox-bg);color:var(--ox-text)}.dash-brand{color:var(--ox-text);letter-spacing:.04em}.dash-brand>svg{display:none}.dash-brand img{object-fit:contain}.dash-brand>b{display:none}.dash-profile{color:var(--ox-text)}.dash-avatar{background:var(--ox-soft);color:var(--ox-blue)}.workspace-intro .dash-eyebrow,.dash-eyebrow{color:var(--ox-blue)}.workspace-intro h1,.workspace-group h2,.dash-page-intro h1,.dash-section-head h2,body.light .workspace-intro,body.light .workspace-group{color:var(--ox-text)}.workspace-intro p,.workspace-group p,.dash-page-intro p{color:var(--ox-muted)}.dash-office-card,.dash-panel,.dash-setting-card,.dash-doc-row,.workspace-chat-box,body.light .dash-office-card,body.light .dash-panel,body.light .dash-setting-card{background:var(--ox-surface);border-color:var(--ox-border);color:var(--ox-text);box-shadow:none;border-radius:12px}.dash-office-card:hover{border-color:var(--ox-blue);background:var(--ox-raised)}.dash-file-icon{background:var(--ox-soft);color:var(--ox-blue);border-color:var(--ox-border)}.dash-card-copy small,.dash-panel p,.dash-doc-row small{color:var(--ox-muted)}.dash-quick-row button{background:var(--ox-surface);border-color:var(--ox-border);color:var(--ox-text)}.dash-settings-grid{gap:12px}
#officeView,#engineeringView,#professionalView,.pw-shell,body.light #officeView,body.light #professionalView{background:var(--ox-bg);color:var(--ox-text)}.pw-heading h1,.pw-heading h2{letter-spacing:-.025em}.pw-note,.pw-autosave-note{color:var(--ox-muted)}.pw-card,.pw-project-bar,.pw-browse,.pw-result,.pw-warning,body.light .pw-card{background:var(--ox-surface);border-color:var(--ox-border);color:var(--ox-text);border-radius:11px}.pw-button,.pw-row>button,.pw-project-bar button{background:var(--ox-raised);border-color:var(--ox-border);color:var(--ox-text)}.pw-button.primary,.pw-row>button.primary,.pw-project-bar button.primary{background:var(--ox-blue-strong);border-color:var(--ox-blue-strong);color:#fff}.pw-field>span,.pw-field>label{color:var(--ox-muted)}.pw-field input,.pw-field select,.pw-field textarea,.pw-input,.pw-select{background:var(--ox-bg);border-color:var(--ox-border);color:var(--ox-text)}.nova-workbench{background:var(--ox-bg);border-color:var(--ox-border);color:var(--ox-text);border-radius:12px}.nova-workbench-header,.nova-workbench-side,.nova-workbench-tools,.nova-workbench-footer,.nova-workbench-panel-tabs{background:var(--ox-surface);border-color:var(--ox-border);color:var(--ox-text)}.nova-workbench-actions button,.nova-workbench-panel-tabs button,.nova-workbench button{border-color:var(--ox-border)}.nova-workbench-actions [aria-expanded=true],.nova-workbench-panel-tabs [aria-selected=true],.nova-history-button:hover{background:var(--ox-soft);color:var(--ox-blue)}.nova-command-bar{background:transparent;border-color:var(--ox-border)}.nova-command-bar textarea,.nova-command-bar select{background:var(--ox-bg);color:var(--ox-text);border-color:var(--ox-border);border-radius:10px}.nova-command-bar .primary,.nova-command-launcher{background:var(--ox-blue-strong);border-color:var(--ox-blue-strong);color:#fff}.office-ribbon,.office-ribbon-panel,.office-app-tabs,.office-sheet-navigation{background:var(--ox-surface);border-color:var(--ox-border)}.office-ribbon [aria-selected=true],.office-ribbon button.active{background:var(--ox-blue-strong);color:white}.nova-workbench textarea:not(.code-editor),.nova-workbench select,.nova-workbench input:not([type=color]){border-color:var(--ox-border);color:var(--ox-text);background:var(--ox-bg)}
#auth article,.modal article,body.light #auth article,#modal article,body.light #modal article{background:var(--ox-surface);border-color:var(--ox-border);box-shadow:var(--ox-shadow);color:var(--ox-text);border-radius:18px}#auth .orb{height:64px;width:64px;background:none;box-shadow:none;margin-bottom:15px}#auth .orb img{width:64px;height:64px;object-fit:contain}#auth input,body.light #auth input,#authIn .acts button{background:var(--ox-bg);border-color:var(--ox-border);color:var(--ox-text);border-radius:10px;min-height:46px}#auth .main,body.light #auth .main,#modal article>button:last-of-type{background:var(--ox-blue-strong);color:white;border-radius:10px}#auth .tabs{background:var(--ox-bg);border-radius:10px}#auth .tabs button{min-height:40px;color:var(--ox-muted)}#auth .tabs button.on{background:var(--ox-raised);color:var(--ox-text)}#auth p,#auth .hint{color:var(--ox-muted)}#auth .link{color:var(--ox-blue)}#auth h1,#auth h2{color:var(--ox-text)}#auth h1{letter-spacing:-.035em}#auth #authClose,#close{min-height:42px;min-width:42px}
.premium-page,.membership-page{background:var(--ox-bg);color:var(--ox-text)}.premium-card,.membership-details,.premium-feature,.membership-panel{background:var(--ox-surface);border-color:var(--ox-border);color:var(--ox-text)}.premium-tag{color:var(--ox-blue);background:var(--ox-soft)}.premium-page h1{color:var(--ox-text);letter-spacing:-.04em}.premium-page p{color:var(--ox-muted)}.premium-page .main,.membership-actions button:first-child{background:var(--ox-blue-strong);color:white}
#owner,.o-shell,.cc-shell,.ns-shell,.nl-shell{color:var(--ox-text)}.o-head,.o-body,.o-sidebar,.o-content,.o-panel,.o-card,.o-stat,.cc-group,.cc-card,.cc-panel,.cc-stat,.ns-panel,.ns-card,.nl-panel{background:var(--ox-surface);border-color:var(--ox-border);color:var(--ox-text);box-shadow:none}.o-head h2,.cc-content h2,.ns-brand h2{letter-spacing:-.025em;color:var(--ox-text)}.cc-note,.cc-group small,.o-muted,.ns-note{color:var(--ox-muted)}.cc-group button,.cc-button,.o-tab,.o-button{color:var(--ox-text);border-color:var(--ox-border)}.cc-button,.o-button{background:var(--ox-raised);border-radius:9px}.cc-button.primary,.o-button.primary{background:var(--ox-blue-strong);color:#fff}.cc-group button.active{background:var(--ox-soft);color:var(--ox-blue)}.cc-shell input,.cc-shell select,.cc-shell textarea,.o-body input,.o-body select,.o-body textarea,.ns-shell input,.ns-shell textarea{background:var(--ox-bg);color:var(--ox-text);border-color:var(--ox-border)}.cc-field{color:var(--ox-muted)}.cc-shell table th,.cc-shell table td{border-color:var(--ox-border)}
@keyframes omnex-breathe{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-5px) rotate(1deg)}}
@media(min-width:1000px){#assistantView:not(.has-messages) footer{margin-bottom:clamp(30px,6vh,74px)}#assistantView:not(.has-messages) #welcome{padding-top:35px}}
@media(max-width:700px){#sidebar,body.light #sidebar{width:276px;flex-basis:276px}#assistantView>header{height:58px;padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right))}#assistantView #chat{padding:18px 18px;scrollbar-gutter:auto}#welcome{padding:12px 0;max-width:100%}#welcome .omnex-symbol{width:78px;height:78px;margin-bottom:16px}#welcome h1{font-size:31px;margin:14px 0;line-height:1.15}#welcome>small{font-size:9px;letter-spacing:.1em}#welcome>p{font-size:12px;max-width:340px;line-height:1.65}.omnex-capabilities{gap:6px;margin-top:21px}.omnex-capabilities button{min-height:42px;font-size:11px;padding:9px 11px;gap:6px}.omnex-capabilities button svg{width:16px;height:16px}#assistantView footer{width:calc(100% - 20px);margin-bottom:max(8px,env(safe-area-inset-bottom))}#assistantView .composer{border-radius:15px;padding:11px 10px 8px}#assistantView textarea{font-size:16px;min-height:39px}#assistantView .tools{gap:4px}.mode-btn{font-size:11px}.composer-meta{padding-top:4px}.dash-shell{padding-inline:14px}.nova-workbench{border-radius:10px}#auth article{padding:25px 22px;max-height:calc(var(--app-h,100dvh) - 24px);overflow:auto}.cc-shell{gap:12px}.brand .logo{font-size:15px}.brand .logo img{width:26px;height:26px}}
@media(max-height:650px){#welcome .omnex-symbol{width:58px;height:58px;margin-bottom:10px}#welcome h1{font-size:28px}#welcome>p{font-size:12px}.omnex-capabilities{margin-top:13px}#welcome{padding:10px 0}#assistantView:not(.has-messages) footer{margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){#welcome .omnex-symbol{animation:none}*{scroll-behavior:auto!important}}

/* The empty home is one centered working block; conversations retain the anchored composer. */
#assistantView:not(.has-messages) #chat{flex:0 1 auto;margin:auto auto 0;overflow:visible}#assistantView:not(.has-messages) footer{margin:8px auto auto}#assistantView.has-messages .omnex-capabilities{display:none}#assistantView #theme{display:grid!important;place-items:center;min-width:36px;width:36px;min-height:36px;padding:8px}#assistantView .tools #send{background:var(--ox-blue-strong);box-shadow:none;border:1px solid transparent}#assistantView footer .omnex-capabilities{margin-top:20px}#assistantView:not(.has-messages) #welcome{padding-bottom:20px}@media(max-width:700px){#assistantView:not(.has-messages) footer{margin-top:6px}#assistantView:not(.has-messages) #welcome{padding:12px 0 18px}#assistantView #welcome .omnex-symbol{width:92px;height:92px;margin-bottom:15px}#assistantView footer .omnex-capabilities{margin-top:14px}}

#professionalView,#officeView,#engineeringView,.pw-shell,.office-shell,.eng-shell{background:var(--ox-bg);color:var(--ox-text)}.nova-workbench{background:var(--ox-surface);color:var(--ox-text);border-color:var(--ox-border)}.nova-workbench-header,.nova-workbench-tools,.nova-workbench-side,.nova-workbench-panel-tabs,.nova-workbench-footer{background:var(--ox-surface);border-color:var(--ox-border)}.nova-workbench-panel,.pw-card,.pw-tabs,.pw-project-bar,.dash-panel,.dash-setting-card,.dash-office-card,.cc-group,.cc-shell,.o-dialog,.o-head,.o-tabs,.o-card,.ns-shell,.ns-header,.ns-card{color:var(--ox-text);border-color:var(--ox-border);background:var(--ox-surface)}.nova-workbench button,.pw-button,.cc-button,.o-btn,.ns-button{border-color:var(--ox-border);background:var(--ox-raised);color:var(--ox-text)}.nova-workbench .primary,.pw-button.primary,.cc-button.primary,.o-btn.primary,.ns-button.primary{background:var(--ox-blue-strong);color:white}.cc-shell input,.cc-shell select,.cc-shell textarea,.o-dialog input,.o-dialog select,.o-dialog textarea{background:var(--ox-bg);border-color:var(--ox-border);color:var(--ox-text)}.cc-note,.cc-field,.pw-note,.pw-field,.o-muted{color:var(--ox-muted)}.cc-group button{color:var(--ox-muted)}.cc-group button.active{background:var(--ox-soft);color:var(--ox-blue)}.pw-heading h1,.office-title,.dash-page-intro h1{color:var(--ox-text)}.dash-office-card:hover{background:var(--ox-raised);border-color:var(--ox-blue)}:root{--accent:#528cff;--accent-2:#49cce0;--nova-accent:var(--accent);--ox-blue:var(--accent)}
body.light #sidebar #new{background:var(--ox-surface);color:var(--ox-text);border-color:var(--ox-border)}body.light #assistantView footer .omnex-capabilities button{background:var(--ox-surface);color:var(--ox-text);border-color:var(--ox-border)}body.light #assistantView>header #theme,body.light #assistantView>header #account{background:var(--ox-surface);color:var(--ox-text);border-color:var(--ox-border)}
#professionalView,#officeView,#engineeringView,body.light #professionalView,body.light #officeView,body.light #engineeringView{background:var(--ox-bg);color:var(--ox-text)}.pw-shell,.office-shell,.eng-shell{color:var(--ox-text)}.nova-workbench{background:var(--ox-surface);color:var(--ox-text);border-color:var(--ox-border)}.nova-workbench-header,.nova-workbench-tools,.nova-workbench-side,.nova-workbench-panel-tabs{background:var(--ox-surface);border-color:var(--ox-border)}.nova-workbench-panel,.nova-workbench-footer{color:var(--ox-text)}.nova-workbench-header button,.nova-workbench-tools button,.nova-workbench-panel-tabs button,.pw-button{border-color:var(--ox-border);background:var(--ox-raised);color:var(--ox-text)}.pw-button.primary{background:var(--ox-blue-strong);color:#fff}.pw-card,.dash-panel,.dash-office-card,.dash-setting-card,.dash-placeholder,body.light .dash-panel,body.light .dash-office-card{background:var(--ox-surface);border-color:var(--ox-border);color:var(--ox-text)}.pw-heading h1,.office-top h1,.office-top h2,.dash-page-intro h1,.workspace-intro h1{color:var(--ox-text)}.dash-brand>svg{display:none}.cc-shell,.o-dialog{color:var(--ox-text)}.o-dialog,.o-head,.cc-group,.cc-panel,body.light .o-dialog,body.light .o-head{background:var(--ox-surface);border-color:var(--ox-border)}.cc-shell input,.cc-shell select,.cc-shell textarea,.cc-button{background:var(--ox-bg);color:var(--ox-text);border-color:var(--ox-border)}.cc-button.primary{background:var(--ox-blue-strong);color:white}.cc-group button{color:var(--ox-muted)}.cc-group button.active{background:var(--ox-soft);color:var(--ox-blue)}.cc-note,.cc-group small{color:var(--ox-muted)}.o-head h2,.cc-content h2{color:var(--ox-text)}

body .o-dialog,body .o-head{background:var(--ox-surface);border-color:var(--ox-border);color:var(--ox-text)}body .o-dialog .o-mark{background:none;object-fit:contain;box-shadow:none;padding:0}body .o-dialog .cc-group,body .o-dialog .cc-button,body .o-dialog .cc-shell input,body .o-dialog .cc-shell select{background:var(--ox-surface);border-color:var(--ox-border);color:var(--ox-text)}body .o-dialog .cc-group button.active{background:var(--ox-soft);color:var(--ox-blue)}body .o-dialog .cc-button.primary{background:var(--ox-blue-strong);color:white}
/* Keep the complete home block centered in both themes and short mobile viewports. */
body #assistantView:not(.has-messages)>footer{margin:8px auto auto}
@media(max-width:700px){body #assistantView:not(.has-messages)>footer{margin:6px auto auto;width:calc(100% - 24px)}body #assistantView:not(.has-messages) #chat{margin-top:auto}}
.provider-grid{display:grid;gap:18px;min-width:0}.provider-card{padding:18px;min-width:0;overflow-wrap:anywhere}.provider-card h3{margin:0 0 10px}.provider-card .pw-field{display:flex;flex-direction:column;gap:6px;margin:12px 0}.provider-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.provider-checks{display:flex;gap:8px 18px;flex-wrap:wrap}.provider-checks .pw-field{flex-direction:row;align-items:center}.provider-card input[type=checkbox]{width:20px;height:20px;flex:none;min-height:20px}.provider-model{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;border:1px solid var(--ox-border);border-radius:10px;margin:14px 0;padding:12px;min-width:0}.provider-card select,.provider-card input{max-width:100%;min-width:0;min-height:42px}.provider-card details>summary{cursor:pointer;padding:14px 0;min-height:44px}.provider-metrics{width:100%;border-collapse:collapse;margin:16px 0;font-size:12px}.provider-metrics th,.provider-metrics td{padding:8px 4px;text-align:left;border-bottom:1px solid var(--ox-border)}.provider-card small{letter-spacing:0;color:var(--ox-muted);line-height:1.6}.provider-card .pw-row{flex-wrap:wrap}@media(max-width:600px){.provider-card{padding:12px}.provider-metrics{font-size:9px}.provider-metrics th,.provider-metrics td{padding:6px 2px}.provider-model{grid-template-columns:1fr}.provider-card .pw-row button{min-height:44px}}

body.light{--accent:var(--ox-blue);--nova-accent:var(--ox-blue);--nova-surface:var(--ox-surface);--panel:var(--ox-surface);--line:var(--ox-border);--muted:var(--ox-muted)}
/* Native editor content keeps readable contrast in the light application theme. */
body.light .excel-grid-wrap,body.light .excel-grid td{background:var(--ox-surface);color:var(--ox-text)}body.light .excel-grid th{background:var(--ox-raised);color:var(--ox-text);border-color:var(--ox-border)}body.light .excel-grid td{border-color:var(--ox-border)}body.light .excel-grid td:focus{outline-color:var(--ox-blue)}body.light .formula-bar,body.light .chart-preview,body.light .office-toolbar{background:var(--ox-surface);border-color:var(--ox-border);color:var(--ox-text)}
body.light .pw-editor-panel,body.light .pw-preview-panel,body.light .pw-ai-panel{background:var(--ox-surface);border-color:var(--ox-border);color:var(--ox-text)}body.light .pw-editor{background:#fff;border-color:var(--ox-border)}body.light .pw-highlight{color:#24354c}body.light .pw-token{color:#6554c7}body.light .pw-line-numbers{background:var(--ox-raised);color:var(--ox-muted)}body.light .pw-console,body.light .pw-diff pre{background:var(--ox-raised);color:var(--ox-text)}
.nova-workbench .pw-editor textarea.pw-code-input{background:transparent;color:transparent;-webkit-text-fill-color:transparent;caret-color:#fff}body.light .nova-workbench .pw-editor textarea.pw-code-input{background:transparent;color:transparent;-webkit-text-fill-color:transparent;caret-color:#172333}
body.light .pw-status{color:#246451}
.pw-editor pre.pw-highlight{position:relative;z-index:2;pointer-events:none;background:transparent}
#officeView .nova-workbench button.primary,#professionalView .nova-workbench button.primary,#officeView .office-ribbon [aria-selected=true],#professionalView .nova-workbench [aria-selected=true],#officeView .nova-workbench [aria-expanded=true][data-workbench-action],#professionalView .nova-workbench [aria-expanded=true][data-workbench-action]{background:var(--ox-blue-strong);border-color:var(--ox-blue-strong);color:#fff}
/* Mobile originally hid the highlight layer; keep it visible with matching caret metrics. */
.nova-workbench .pw-editor pre.pw-highlight{display:block}
@media(max-width:768px){.nova-workbench .pw-editor pre.pw-highlight,.nova-workbench .pw-editor textarea.pw-code-input{font:16px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;padding:12px;white-space:pre}}

body.light .msg.user .text{color:#172033}
