/* Dark workspace parity: override the light-only component surfaces explicitly. */
.nexus-app[data-theme="dark"] {
 --nx-canvas:#0d1522; --nx-surface:#192638; --nx-elevated:#203149;
 --nx-soft:#142134; --nx-line:#304156; --nx-border:#304156;
 --nx-ink:#e7eef8; --nx-text:#e7eef8; --nx-muted:#adbed3; --nx-secondary:#adbed3;
 background:radial-gradient(ellipse at 90% 0,#1b3050 0,transparent 55%),#0d1522;
}
.nexus-app[data-theme="dark"] .nexus-page .nexus-workspace {
 color:var(--nx-text);
}
.nexus-app[data-theme="dark"] .nexus-page .nexus-workspace>div[class*="bg-gray-900"],
.nexus-app[data-theme="dark"] .nexus-page :is(.nexus-panel,.nexus-service-panel,.nexus-automation,.nexus-dialog) {
 background:var(--nx-surface); color:var(--nx-text); border-color:var(--nx-border);
}
.nexus-app[data-theme="dark"] .nexus-page .nexus-automation>summary {
 color:var(--nx-text); background:transparent;
}
.nexus-app[data-theme="dark"] .nexus-page .nexus-automation>summary:hover { background:#22354d; }
.nexus-app[data-theme="dark"] .nexus-page .nexus-automation>summary>span { color:#8adbbd; }
.nexus-app[data-theme="dark"] .nexus-page .nexus-workspace details { border-color:var(--nx-border); }
.nexus-app[data-theme="dark"] .nexus-page .xtn-workspace-nav {
 background:#142134; border:1px solid var(--nx-border); color:var(--nx-secondary);
}
.nexus-app[data-theme="dark"] .nexus-page .xtn-workspace-nav a { color:var(--nx-secondary); background:transparent; }
.nexus-app[data-theme="dark"] .nexus-page .xtn-workspace-nav a:hover { background:#22354d; color:#e7eef8; }
.nexus-app[data-theme="dark"] .nexus-page .xtn-workspace-nav a[aria-current="page"] {
 background:#29486c; color:#d5e8ff; box-shadow:inset 0 1px #ffffff0d;
}
.nexus-app[data-theme="dark"] .nexus-page .nexus-record-table thead { background:#142134; }
.nexus-app[data-theme="dark"] .nexus-page .nexus-record-table th { color:#b8c9df; }
.nexus-app[data-theme="dark"] .nexus-page .nexus-record-table tbody tr {
 background:transparent; color:var(--nx-text); border-color:var(--nx-border);
}
.nexus-app[data-theme="dark"] .nexus-page .nexus-record-table tbody tr:hover { background:#203149; }
.nexus-app[data-theme="dark"] .nexus-page .nexus-record-table td:last-child button {
 background:#233851; color:#c4dcfa; border:1px solid #39516d; box-shadow:none;
}
.nexus-app[data-theme="dark"] .nexus-page .nexus-record-table td:last-child button:hover { background:#304c6d; color:#fff; }
.nexus-app[data-theme="dark"] .nexus-page .nexus-record-table td:last-child button[class*="text-yellow-"] { background:#42351e; border-color:#715626; color:#ffdb91; }
.nexus-app[data-theme="dark"] .nexus-page .nexus-record-table td:last-child button[class*="text-purple-"] { background:#352b4d; border-color:#584574; color:#dec4ff; }
.nexus-app[data-theme="dark"] .nexus-page .nexus-record-table td:last-child button[class*="text-red-"] { background:#452937; border-color:#704052; color:#ffb4c7; }
.nexus-app[data-theme="dark"] .nexus-page .nexus-record-table td:last-child button[class*="text-cyan-"] { background:#1e4160; border-color:#3d6487; color:#b5deff; }
.nexus-app[data-theme="dark"] .nexus-page .nexus-record-table td:last-child button[class*="text-gray-"] { background:#26364a; border-color:#3a4d65; color:#bacbe0; }
.nexus-app[data-theme="dark"] .nexus-page input:is([type="checkbox"],[type="radio"]) { color-scheme:dark; background:#142134; border-color:#71849f; }
.nexus-app[data-theme="dark"] .nexus-page :is([class*="bg-blue-950"],[class*="bg-sky-950"],[class*="bg-cyan-900"]) { background:#1c3853; }
.nexus-app[data-theme="dark"] .nexus-page :is([class*="bg-amber-950"],[class*="bg-yellow-950"],[class*="bg-amber-900"],[class*="bg-orange-900"]) { background:#3c321f; }
.nexus-app[data-theme="dark"] .nexus-page :is([class*="bg-red-950"],[class*="bg-rose-950"],[class*="bg-red-900"]) { background:#402637; }
.nexus-app[data-theme="dark"] .nexus-page [class*="bg-emerald-950"] { background:#173d35; }
