/* Semantic dark surfaces share generated brand tokens with the light UI. */
.theme-switching *,.theme-switching *::before,.theme-switching *::after{transition:none!important;}
[data-theme-control]{font:inherit;min-height:44px;border:1px solid var(--control-border);border-radius:8px;padding:8px;background:var(--panel);color:var(--ink);max-width:140px;}
.theme-control{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);}
[data-theme=dark] .smartstock-body a{color:var(--link);}
[data-theme=dark] .catalyst-receiving button:not(.secondary):not(.draft-choice),
[data-theme=dark] .signin-form-content .btn-login{color:var(--inverse-text);}
[data-theme=dark] .catalyst-receiving button.secondary,
[data-theme=dark] .password-field button,
[data-theme=dark] .catalyst-receiving .eyebrow,
[data-theme=dark] .signin-form-content .eyebrow,
[data-theme=dark] .receipt-totals div:last-child,
[data-theme=dark] .draft-choice-amount,
[data-theme=dark] .pos-stock,
[data-theme=dark] .report-daily-details>summary,
[data-theme=dark] .report-ledger-wrap details>summary{color:var(--ink);}
[data-theme=dark] .signin-story,[data-theme=dark] .signin-story .workspace-brand,
[data-theme=dark] .report-metric:first-child{color:var(--inverse-text)!important;}
[data-theme=dark] .home-actions .button-link:not(:first-child){color:var(--ink)!important;}
[data-theme=dark] .home-actions .button-link:not(:first-child) .catalyst-icon{color:var(--ink);}
[data-theme=dark] .workspace-topbar a{color:var(--ink);}
[data-theme=dark] .workspace-help{color:var(--inverse-muted)!important;}
[data-theme=dark] a.workspace-brand{color:var(--inverse-text)!important;}
[data-theme=dark] .workspace-nav a{color:var(--inverse-muted);}
[data-theme=dark] .workspace-nav a[aria-current=page]{color:var(--deep);}
[data-theme=dark] .workspace-nav a:hover{color:var(--inverse-text);}
[data-theme=dark] .chart-positive{fill:var(--chart-positive);}
[data-theme=dark] .chart-negative{fill:var(--chart-negative);}
[data-theme=dark] .ui-progress::after{background:var(--accent);}
/* Operator app uses the same file, with its own existing component names. */
[data-theme=dark] .catalyst-admin-body a{color:var(--link);}
[data-theme=dark] .catalyst-admin-body .button,[data-theme=dark] .catalyst-admin-body button{color:var(--inverse-text);}
[data-theme=dark] .catalyst-admin-body .button.secondary,[data-theme=dark] .catalyst-admin-body button.secondary{color:var(--ink);}
[data-theme=dark] .catalyst-admin-body aside a,[data-theme=dark] .catalyst-admin-body .auth-story{color:var(--inverse-text);}
[data-theme=dark] .catalyst-admin-body aside nav a[aria-current=page]{color:var(--deep);}
[data-theme=dark] .catalyst-admin-body .metrics article:first-child{color:var(--inverse-text);}
[data-theme=dark] input[type=checkbox]{accent-color:var(--accent);}
@media(max-width:600px){.theme-control{flex-wrap:wrap;gap:4px;}}
