/* UCHEBKA BY -- tenant-safe UI-only hotfix 2026-11-03.
   Does not access data, network APIs, AI engines or persistent storage. */
html[data-theme="dark"] [data-mono-groups-page] select,
html[data-theme="dark"] [data-mono-groups-page] select option,
html[data-theme="dark"] [data-mono-groups-page] input:not([type="checkbox"]):not([type="radio"]) {
  color-scheme: dark;
  color: var(--ui-text) !important;
  background-color: var(--ui-surface) !important;
}
html[data-theme="light"] [data-mono-groups-page] select,
html[data-theme="light"] [data-mono-groups-page] select option,
html[data-theme="light"] [data-mono-groups-page] input:not([type="checkbox"]):not([type="radio"]) {
  color-scheme: light;
  color: var(--ui-text) !important;
  background-color: var(--ui-surface) !important;
}
/* Document and template header controls were white on a nearly white surface. */
html[data-theme="light"] [data-admin-shell] button[class*="bg-[var(--ui-surface)]/10"][class*="text-white"],
html[data-theme="light"] [data-admin-shell] a[class*="border-white/20"][class*="text-white"] {
  background-color: var(--ui-surface) !important;
  color: var(--ui-text) !important;
  border: 1px solid var(--ui-border) !important;
}
html[data-theme="light"] [data-admin-shell] button[class*="bg-[var(--ui-surface)]/10"][class*="text-white"]:hover,
html[data-theme="light"] [data-admin-shell] a[class*="border-white/20"][class*="text-white"]:hover {
  background-color: var(--ui-surface-soft) !important;
}