/* Shared semantic theme layer; loaded after each existing application stylesheet. */
html[data-theme]{color-scheme:light;--nx-bg:#f4f6f3;--nx-surface:#fff;--nx-text:#192b26;--nx-muted:#53645c;--nx-line:#dce3dd;--nx-accent:#24644e;--nx-soft:#edf4ef}
html[data-theme=dark]{color-scheme:dark;--nx-bg:#14221c;--nx-surface:#1c2e25;--nx-text:#e5eee7;--nx-muted:#b1c3b5;--nx-line:#3b5144;--nx-accent:#9cd9b9;--nx-soft:#253b30;background:#14221c}
.nx-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:40px;min-height:40px;padding:8px 10px;border:1px solid var(--nx-line);border-radius:6px;background:var(--nx-surface);color:var(--nx-text);font:500 12px/1.3 system-ui;cursor:pointer;flex-shrink:0}
.nx-theme-toggle:hover{background:var(--nx-soft)}.nx-theme-toggle:disabled,.nx-theme-toggle[aria-disabled=true]{opacity:.6;cursor:wait}.nx-theme-toggle:focus-visible{outline:3px solid var(--nx-accent);outline-offset:3px}.nx-theme-toggle svg{flex-shrink:0}.nx-theme-floating{position:fixed;top:12px;right:12px;z-index:60}.nx-theme-status{position:fixed;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.nx-public-contact{display:flex;flex-direction:column;gap:8px;font-style:normal;font-size:13px;margin-top:18px;overflow-wrap:anywhere}.nx-console-topbar>div{min-width:0}.nx-console-topbar h1{overflow-wrap:anywhere}.nx-console-topbar .nx-theme-toggle{margin-left:8px}.nx-public .nx-mobile-nav .nx-theme-toggle{align-self:start}.nx-public .nx-account-nav .nx-theme-label{display:none}
html[data-theme=dark] body{background:var(--nx-bg);color:var(--nx-text)}
html[data-theme=dark] body :is(h1,h2,h3,h4,strong,label,legend){color:var(--nx-text)}
html[data-theme=dark] body :is(input,select,textarea,option){background:var(--nx-surface);color:var(--nx-text);border-color:var(--nx-line);color-scheme:dark}
html[data-theme=dark] body :is(input,textarea)::placeholder{color:#9daf9f;opacity:1}
html[data-theme=dark] body :is(input,select,textarea):disabled{background:var(--nx-bg);color:var(--nx-muted)}
html[data-theme=dark] body :is(.bg-white,[class*="bg-white/"],.bg-slate-900,.bg-slate-950){background:var(--nx-surface);color:var(--nx-text)}
html[data-theme=dark] body :is([class*="bg-slate-50"],[class*="bg-slate-100"],[class*="bg-slate-200"],.bg-gray-50,.bg-gray-100){background:var(--nx-bg)}
html[data-theme=dark] body :is([class*="text-slate-"],[class*="text-gray-"]){color:var(--nx-muted)}
html[data-theme=dark] body :is(.text-slate-700,.text-slate-800,.text-slate-900,.text-slate-950,.text-gray-900,.text-white){color:var(--nx-text)}
html[data-theme=dark] body :is([class*="border-slate-"],[class*="border-white"],[class*="border-gray-"],[class*="divide-slate-"]>*+*){border-color:var(--nx-line)}
html[data-theme=dark] body :is([class*="bg-blue-"],[class*="bg-indigo-"],[class*="bg-sky-"]){background:#203b3f}
html[data-theme=dark] body :is([class*="text-blue-"],[class*="text-indigo-"],[class*="text-sky-"]){color:#a6d7df}
html[data-theme=dark] body :is([class*="border-blue-"],[class*="border-indigo-"]){border-color:#42666a}
html[data-theme=dark] body [class*="bg-emerald-"]{background:#203e31}
html[data-theme=dark] body :is([class*="text-emerald-"],[class*="text-green-"]){color:#a1dec0}
html[data-theme=dark] body [class*="border-emerald-"]{border-color:#416b53}
html[data-theme=dark] body :is([class*="bg-amber-"],[class*="bg-yellow-"]){background:#3a321c}
html[data-theme=dark] body :is([class*="text-amber-"],[class*="text-yellow-"]){color:#f0d38c}
html[data-theme=dark] body [class*="border-amber-"]{border-color:#76663c}
html[data-theme=dark] body [class*="bg-red-"]{background:#43272e}
html[data-theme=dark] body [class*="text-red-"]{color:#ffb8c2}
html[data-theme=dark] body [class*="border-red-"]{border-color:#83505b}
html[data-theme=dark] body :is(button,a).bg-slate-950,html[data-theme=dark] body :is(button,a).bg-blue-600,html[data-theme=dark] body .nx-primary-action{background:var(--nx-accent);color:#14221c;border-color:var(--nx-accent)}
html[data-theme=dark] .nx-public .nx-button{background:var(--nx-accent);color:#14221c}
html[data-theme=dark] body :is([class*="hover:bg-slate-"]):hover{background:var(--nx-soft)}
html[data-theme=dark] body :is(button,a).bg-slate-950:hover{background:#b0e6c9;color:#14221c}
html[data-theme=dark] body :is(.surface-glow,.metric-grid,[class*="bg-gradient-"]){background-image:none}
html[data-theme=dark] body :is(.nx-sidebar-backdrop,[id$=SidebarBackdrop]){background:#0009}
html[data-theme=dark] body :is(.nx-error,.nx-alert){background:#43272e;color:#ffb8c2;border-color:#83505b}
html[data-theme=dark] .nx-publisher svg[role=img] text{fill:var(--nx-muted)}
html[data-theme=dark] .nx-publisher svg[role=img] line{stroke:var(--nx-line)}
html[data-theme=dark] .nx-publisher svg[role=img] :is(polyline,path){stroke:var(--nx-accent)}
html[data-theme=dark] .nx-publisher svg[role=img] circle{fill:var(--nx-accent)}
html[data-theme=dark] .nx-publisher svg[role=img] polygon{fill:var(--nx-soft)}
html[data-theme=dark] body :focus-visible{outline:3px solid var(--nx-accent);outline-offset:3px}
@media(max-width:650px){.nx-console-topbar{gap:10px}.nx-console-topbar .nx-theme-label{display:none}.nx-console-topbar .nx-account-dot{display:none}.nx-console-topbar .nx-account-link>span:nth-child(2){display:none}.nx-console-topbar .nx-theme-toggle{margin-left:0}.nx-public .nx-mobile-nav .nx-theme-label{display:inline}}

/* Form outlines remain distinct from their surfaces in both palettes. */
html[data-theme=light] body :is(input:not([type=hidden]),select,textarea){border-color:#7b8f80}
html[data-theme=light] body :is(input,textarea)::placeholder{color:#63766a;opacity:1}
html[data-theme=dark] body :is(input:not([type=hidden]),select,textarea){border-color:#758e7d}
