/* Keep creative surfaces readable when the legacy dark route CSS stays loaded.
   Theme-scoped: no changes to the sidebar, other routes, layout or calculations. */
html[data-operation-theme="audivita"][data-direto-creative-classic-modern="true"] main {
  --av-creative-panel: #f2eef6;
  --av-creative-soft: #e7deef;
  --av-creative-field: #ffffff;
  --av-creative-ink: #2a1d3e;
  --av-creative-muted: #675873;
  --av-creative-line: #cfc1de;
  --av-creative-accent: #6525b3;
}
html[data-operation-theme="audivita"][data-direto-creative-classic-modern="true"] main :is(.card-hero, .grid > button.group.text-left.w-full.rounded-xl) {
  background: linear-gradient(145deg, #f0ebf5, #e6dfed) !important;
  border-color: var(--av-creative-line) !important;
  color: var(--av-creative-ink) !important;
  box-shadow: 0 5px 18px rgb(42 29 62 / 5%) !important;
  backdrop-filter: none !important;
}
/* A middle-tone filter panel separates white editable fields from the canvas. */
html[data-operation-theme="audivita"][data-direto-creative-classic-modern="true"] main .card-hero:has(input):not(:has(table)) {
  background: #e8e2ed !important;
}
/* The main indicators and ranking get a restrained violet accent, not a dark fill. */
html[data-operation-theme="audivita"][data-direto-creative-classic-modern="true"] main :is(.card-hero, .grid > button.group.text-left.w-full.rounded-xl).rounded-2xl:not(:has(input, table)) {
  background: linear-gradient(145deg, #e5daef, #f0eaf5) !important;
  box-shadow: inset 0 3px 0 #ad91c5, 0 5px 18px rgb(42 29 62 / 5%) !important;
}
html[data-operation-theme="audivita"][data-direto-creative-classic-modern="true"] main button:is(.card-hero, .grid > button.group.text-left.w-full.rounded-xl).rounded-2xl {
  background: linear-gradient(145deg, #e9dfef, #f4f0f6) !important;
}
html[data-operation-theme="audivita"][data-direto-creative-classic-modern="true"] main .grid > button.group.text-left.w-full.rounded-xl > .card-hero {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
html[data-operation-theme="audivita"][data-direto-creative-classic-modern="true"] main .card-hero :is(label, [class*="text-foreground"]) {
  color: var(--av-creative-ink) !important;
}
html[data-operation-theme="audivita"][data-direto-creative-classic-modern="true"] main .card-hero [class*="text-muted-foreground"] {
  color: var(--av-creative-muted) !important;
}
html[data-operation-theme="audivita"][data-direto-creative-classic-modern="true"] main [class*="uppercase"][class*="tracking-"] {
  color: #584269 !important;
}
html[data-operation-theme="audivita"][data-direto-creative-classic-modern="true"] main .card-hero :is([class~="text-primary"], [class*="text-primary/"], [class*="text-violet"], [class*="text-purple"]) {
  color: var(--av-creative-accent) !important;
}
html[data-operation-theme="audivita"][data-direto-creative-classic-modern="true"] main .card-hero :is([class*="text-emerald"], [class*="text-green"]) {
  color: #147a4b !important;
}
html[data-operation-theme="audivita"][data-direto-creative-classic-modern="true"] main .card-hero :is([class*="text-rose"], [class*="text-red"], [class~="text-destructive"]) {
  color: #b42346 !important;
}
html[data-operation-theme="audivita"][data-direto-creative-classic-modern="true"] main .card-hero :is([class*="text-amber"], [class*="text-yellow"]) {
  color: #885600 !important;
}
html[data-operation-theme="audivita"][data-direto-creative-classic-modern="true"] main :is(input, select, [role="combobox"], button[aria-haspopup="dialog"]) {
  color: var(--av-creative-ink) !important;
  background: var(--av-creative-field) !important;
  border-color: #bda9d5 !important;
  box-shadow: none !important;
}
html[data-operation-theme="audivita"][data-direto-creative-classic-modern="true"] main :is([role="combobox"], button[aria-haspopup="dialog"]) span {
  color: inherit !important;
}
html[data-operation-theme="audivita"][data-direto-creative-classic-modern="true"] main input::placeholder {
  color: var(--av-creative-muted) !important;
  opacity: 1 !important;
}
html[data-operation-theme="audivita"][data-direto-creative-classic-modern="true"] main :is(input, select, [role="combobox"], button[aria-haspopup="dialog"]):is(:hover, :focus-visible, [data-state="open"]) {
  border-color: var(--av-creative-accent) !important;
  background: var(--av-creative-soft) !important;
}
html[data-operation-theme="audivita"][data-direto-creative-classic-modern="true"] main :is(input, select, button):focus-visible {
  outline-color: var(--av-creative-accent) !important;
}
html[data-operation-theme="audivita"][data-direto-creative-classic-modern="true"] main :is(table, [class*="max-h-"][class*="overflow-auto"]) {
  background: var(--av-creative-panel) !important;
  border-color: var(--av-creative-line) !important;
}
html[data-operation-theme="audivita"][data-direto-creative-classic-modern="true"] main table :is(th, thead) {
  background: var(--av-creative-soft) !important;
  color: #584269 !important;
  border-color: var(--av-creative-line) !important;
}
html[data-operation-theme="audivita"][data-direto-creative-classic-modern="true"] main table td {
  color: var(--av-creative-ink) !important;
  border-color: #ebe3f2 !important;
}
html[data-operation-theme="audivita"][data-direto-creative-classic-modern="true"] main table tbody tr:nth-child(even) {
  background: #ebe5f1 !important;
}
html[data-operation-theme="audivita"][data-direto-creative-classic-modern="true"] main table tbody tr:hover {
  background: #f3ecfa !important;
  box-shadow: inset 3px 0 var(--av-creative-accent) !important;
}
