/* Explicit surfaces avoid inherited legacy gradients and keep both themes readable. */
html[data-theme="light"] { color-scheme: only light; }
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme] body.polish,
html[data-theme] body.polish .app-shell,
html[data-theme] body.polish .main,
html[data-theme] body.polish .content,
html[data-theme] body.polish .login-page {
  background: var(--bg-page); color: var(--text-main);
}
html[data-theme] .polish .login-panel,
html[data-theme] .polish .login-panel-card,
html[data-theme] .polish .ps-icon-button {
  background: var(--bg-card); color: var(--text-main); border-color: var(--border-strong);
}
html[data-theme] .polish .login-panel:before { display: none; }
html[data-theme] .polish .brand-logo.login {
  display: block; width: min(250px, 68vw); height: auto; padding: 14px;
  margin: 0 auto 22px; border-radius: 16px; background: #fff;
  filter: none; mix-blend-mode: normal; opacity: 1; color-scheme: only light;
}
html[data-theme] .polish .ps-brand > img { background: #fff; opacity: 1; filter: none; }
html[data-theme] .polish .field input,
html[data-theme] .polish .field select,
html[data-theme] .polish .field textarea {
  background: var(--bg-card); color: var(--text-main); border-color: var(--border-strong);
}
html[data-theme="dark"] .polish .btn.secondary { background: #302652; color: #e9e2ff; border-color: #8d77cb; }
html[data-theme="light"] .polish .btn.secondary { background: #f1ecff; color: #5936bd; border-color: #baa8eb; }
html[data-theme] .polish .or-tabs .btn[aria-pressed="true"] { background: #12646b; color: #fff; border-color: #5bb1b4; }
html[data-theme="dark"] .polish .muted,
html[data-theme="dark"] .polish .lc-local-note { color: var(--text-muted); }
html[data-theme="dark"] .polish .at-count { background: #15433e; color: #a1f3df; }
html[data-theme] .polish .or-panel,
html[data-theme] .polish .or-plan-heading,
html[data-theme] .polish .or-plan-card { background: var(--bg-card); color: var(--text-main); border-color: var(--border-soft); }
@media print { html[data-theme] body.polish { background: #fff; color: #000; } }
