/* Shared UI-only contrast rules. Print/export documents are not changed.
   Semantic classes are used in source; exact legacy selectors support the
   currently published chunks until their sources are reconciled. */
html.dark {
  --primary: 348 83% 47%;
}
html.light .text-primary {
  color: #9f1239 !important;
}
html.dark .text-primary {
  color: #fda4af !important;
}

:is(html.light, html.dark) :is(button, a)[class~="bg-primary"] {
  color: #ffffff !important;
}
:is(html.light, html.dark) :is(.rp-solid-success, button[class~="bg-[#10b981]"]) {
  background-color: #047857 !important;
  color: #ffffff !important;
}
:is(html.light, html.dark) :is(.rp-solid-success, button[class~="bg-[#10b981]"]):hover {
  background-color: #065f46 !important;
}
:is(html.light, html.dark) :is(.rp-solid-warning, button[class~="bg-[#f59e0b]"]) {
  background-color: #b45309 !important;
  color: #ffffff !important;
}
:is(html.light, html.dark) :is(.rp-solid-warning, button[class~="bg-[#f59e0b]"]):hover {
  background-color: #92400e !important;
}

html.light :is(.rp-status-success, [class~="text-[#10b981]"], [class~="text-[#3fb950]"]) {
  color: #166534 !important;
}
html.light :is(.rp-status-warning, [class~="text-[#e3b341]"], [class~="text-[#f59e0b]"]) {
  color: #854d0e !important;
}
html.light :is(.rp-status-info, [class~="text-[#58a6ff]"]) {
  color: #1d4ed8 !important;
}
html.dark :is(.rp-status-info, [class~="text-[#58a6ff]"]) {
  color: #93c5fd !important;
}
html.dark .rp-status-success { color: #86efac !important; }
html.dark .rp-status-warning { color: #fcd34d !important; }

html.light :is(.rp-environment-testing, button[style*="227, 179, 65"]) {
  background: #fef3c7 !important;
  color: #78350f !important;
  border: 1px solid #b45309 !important;
}
html.light :is(.rp-environment-production, button[style*="63, 185, 80"]) {
  background: #dcfce7 !important;
  color: #166534 !important;
  border: 1px solid #15803d !important;
}
html.dark .rp-environment-testing {
  background: #382d13;
  color: #fcd34d;
  border: 1px solid #a16207;
}
html.dark .rp-environment-production {
  background: #102d1e;
  color: #86efac;
  border: 1px solid #15803d;
}
:is(html.light, html.dark) :is(.rp-environment-testing, .rp-environment-production, button[style*="227, 179, 65"], button[style*="63, 185, 80"]) svg {
  color: inherit !important;
}

.rp-systems-downloads button {
  color: var(--color-secondary-foreground) !important;
}
