/* =========================================================
   WIRTZ HUB · HERRAMIENTAS · UTILIDADES DEL SISTEMA
   Limpieza · sesión · diagnóstico · autocorrección
   Premium · minimalista · responsive · dark mode corregido
   ========================================================= */

/* =========================================================
   PAGE
   ========================================================= */

.system-tools-page {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 7px;
  min-height: calc(100vh - var(--topbar-height) - 44px);
  animation: systemToolsPageIn 0.24s ease both;
}

/* =========================================================
   BLOQUES BASE
   ========================================================= */

.system-tools-hero,
.system-tools-kpis,
.system-tools-panel,
.system-tool-card,
.system-tools-result {
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--panel-solid) 97%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.035),
    0 12px 28px rgba(0, 0, 0, 0.035);
  overflow: hidden;
  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

html[data-theme="dark"] .system-tools-hero,
html[data-theme="dark"] .system-tools-kpis,
html[data-theme="dark"] .system-tools-panel,
html[data-theme="dark"] .system-tool-card,
html[data-theme="dark"] .system-tools-result {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(7, 7, 7, 0.92);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.025),
    0 14px 34px rgba(0, 0, 0, 0.34);
}

/* =========================================================
   HERO
   ========================================================= */

.system-tools-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 74px;
  padding: 9px;
}

.system-tools-hero__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.system-tools-hero span,
.system-tools-kpis span,
.system-tools-section-head span,
.system-tool-card span,
.system-tools-result span {
  color: var(--muted);
  font-size: 7.4px;
  font-weight: 950;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

html[data-theme="dark"] .system-tools-hero span,
html[data-theme="dark"] .system-tools-kpis span,
html[data-theme="dark"] .system-tools-section-head span,
html[data-theme="dark"] .system-tool-card span,
html[data-theme="dark"] .system-tools-result span {
  color: rgba(255, 255, 255, 0.42);
}

.system-tools-hero h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

html[data-theme="dark"] .system-tools-hero h2 {
  color: rgba(255, 255, 255, 0.94);
}

.system-tools-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 720;
  line-height: 1.4;
}

html[data-theme="dark"] .system-tools-hero p {
  color: rgba(255, 255, 255, 0.48);
}

.system-tools-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 0;
}

/* =========================================================
   BOTONES
   ========================================================= */

.system-tools-btn,
.system-tool-card footer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 8px;
  background: transparent;
  color: var(--text-strong);
  font-size: 8.5px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition),
    opacity var(--transition);
}

.system-tools-btn:hover,
.system-tool-card footer button:hover {
  border-color: rgba(0, 0, 0, 0.24);
  background: rgba(0, 0, 0, 0.055);
}

.system-tools-btn:active,
.system-tool-card footer button:active {
  transform: scale(0.98);
}

.system-tools-btn:focus-visible,
.system-tool-card footer button:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--text-strong) 16%, transparent);
}

.system-tools-btn .icon,
.system-tool-card footer button .icon {
  width: 11px;
  height: 11px;
  stroke-width: 2.15;
}

html[data-theme="dark"] .system-tools-btn,
html[data-theme="dark"] .system-tool-card footer button {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.84);
}

html[data-theme="dark"] .system-tools-btn:hover,
html[data-theme="dark"] .system-tool-card footer button:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.95);
}

/* Botón principal corregido para dark mode */
.system-tools-btn--dark,
.system-tool-card footer button.is-primary {
  border-color: rgba(17, 24, 39, 0.92);
  background: rgba(17, 24, 39, 0.96);
  color: #ffffff;
}

.system-tools-btn--dark:hover,
.system-tool-card footer button.is-primary:hover {
  border-color: rgba(17, 24, 39, 1);
  background: rgba(17, 24, 39, 0.9);
  opacity: 0.96;
}

html[data-theme="dark"] .system-tools-btn--dark,
html[data-theme="dark"] .system-tool-card footer button.is-primary {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .system-tools-btn--dark:hover,
html[data-theme="dark"] .system-tool-card footer button.is-primary:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* =========================================================
   KPIS
   ========================================================= */

.system-tools-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.system-tools-kpis article {
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 48px;
  padding: 8px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  transition:
    background var(--transition),
    border-color var(--transition);
}

.system-tools-kpis article:last-child {
  border-right: 0;
}

.system-tools-kpis article:hover {
  background: rgba(0, 0, 0, 0.045);
}

html[data-theme="dark"] .system-tools-kpis article {
  border-right-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .system-tools-kpis article:hover {
  background: rgba(255, 255, 255, 0.045);
}

.system-tools-kpis strong {
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.system-tools-kpis small {
  color: var(--muted-2);
  font-size: 7px;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="dark"] .system-tools-kpis small {
  color: rgba(255, 255, 255, 0.38);
}

/* Acentos KPI */
.system-tools-kpis article:nth-child(1) strong {
  color: #7c3aed;
}

.system-tools-kpis article:nth-child(2) strong {
  color: #16a34a;
}

.system-tools-kpis article:nth-child(3) strong {
  color: #2563eb;
}

.system-tools-kpis article:nth-child(4) strong {
  color: #ca8a04;
}

html[data-theme="dark"] .system-tools-kpis article:nth-child(1) strong {
  color: #a78bfa;
}

html[data-theme="dark"] .system-tools-kpis article:nth-child(2) strong {
  color: #4ade80;
}

html[data-theme="dark"] .system-tools-kpis article:nth-child(3) strong {
  color: #60a5fa;
}

html[data-theme="dark"] .system-tools-kpis article:nth-child(4) strong {
  color: #facc15;
}

/* =========================================================
   RESULTADO
   ========================================================= */

.system-tools-result {
  display: none;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 8px;
}

.system-tools-result.is-visible {
  display: grid;
  animation: systemToolsResultIn 0.2s ease both;
}

.system-tools-result__icon {
  display: grid;
  width: 28px;
  height: 28px;
  min-width: 28px;
  place-items: center;
  border: 1px solid color-mix(in srgb, #16a34a 28%, rgba(0, 0, 0, 0.12));
  border-radius: 9px;
  background: color-mix(in srgb, #16a34a 6%, transparent);
  color: #16a34a;
  transition:
    color var(--transition),
    transform var(--transition),
    filter var(--transition);
}

.system-tools-result:hover .system-tools-result__icon {
  transform: translateY(-1px);
  filter: saturate(1.12) contrast(1.03);
}

html[data-theme="dark"] .system-tools-result__icon {
  border-color: color-mix(in srgb, #4ade80 30%, rgba(255, 255, 255, 0.12));
  background: color-mix(in srgb, #4ade80 8%, transparent);
  color: #4ade80;
}

.system-tools-result__icon .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.15;
}

.system-tools-result__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.system-tools-result strong {
  color: var(--text-strong);
  font-size: 9.5px;
  font-weight: 950;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.system-tools-result p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  font-weight: 740;
  line-height: 1.35;
}

html[data-theme="dark"] .system-tools-result strong {
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .system-tools-result p {
  color: rgba(255, 255, 255, 0.48);
}

.system-tools-result__close {
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
}

/* =========================================================
   PANEL
   ========================================================= */

.system-tools-panel {
  display: grid;
  gap: 0;
}

.system-tools-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 8px 9px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .system-tools-section-head {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.system-tools-section-head h3 {
  margin: 2px 0 0;
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.04em;
}

.system-tools-section-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 8px;
  font-weight: 720;
  line-height: 1.35;
}

.system-tools-section-head .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.15;
  color: #7c3aed;
}

html[data-theme="dark"] .system-tools-section-head h3 {
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .system-tools-section-head p {
  color: rgba(255, 255, 255, 0.48);
}

html[data-theme="dark"] .system-tools-section-head .icon {
  color: #a78bfa;
}

/* =========================================================
   GRID UTILIDADES
   ========================================================= */

.system-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.system-tool-card {
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 8px;
  border: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.system-tool-card:nth-child(3n) {
  border-right: 0;
}

.system-tool-card:hover {
  background: rgba(0, 0, 0, 0.035);
}

html[data-theme="dark"] .system-tool-card {
  border-right-color: rgba(255, 255, 255, 0.075);
  border-bottom-color: rgba(255, 255, 255, 0.075);
  background: transparent;
}

html[data-theme="dark"] .system-tool-card:hover {
  background: rgba(255, 255, 255, 0.045);
}

.system-tool-card__head {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.system-tool-card__icon {
  display: grid;
  width: 30px;
  height: 30px;
  min-width: 30px;
  place-items: center;
  border: 1px solid color-mix(in srgb, #2563eb 28%, rgba(0, 0, 0, 0.12));
  border-radius: 10px;
  background: color-mix(in srgb, #2563eb 6%, transparent);
  color: #2563eb;
  transition:
    color var(--transition),
    transform var(--transition),
    filter var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.system-tool-card:hover .system-tool-card__icon {
  transform: translateY(-1px);
  filter: saturate(1.12) contrast(1.03);
}

html[data-theme="dark"] .system-tool-card__icon {
  border-color: color-mix(in srgb, #60a5fa 30%, rgba(255, 255, 255, 0.12));
  background: color-mix(in srgb, #60a5fa 8%, transparent);
  color: #60a5fa;
}

.system-tool-card__icon .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.15;
}

.system-tool-card__title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.system-tool-card h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: -0.035em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="dark"] .system-tool-card h3 {
  color: rgba(255, 255, 255, 0.9);
}

.system-tool-card__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 19px;
  padding: 2px 7px;
  border: 1px solid color-mix(in srgb, #16a34a 28%, rgba(0, 0, 0, 0.12));
  border-radius: 999px;
  background: color-mix(in srgb, #16a34a 5%, transparent);
  color: #16a34a;
  font-size: 7.4px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.system-tool-card__status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #16a34a;
}

html[data-theme="dark"] .system-tool-card__status {
  border-color: color-mix(in srgb, #4ade80 30%, rgba(255, 255, 255, 0.12));
  background: color-mix(in srgb, #4ade80 8%, transparent);
  color: #4ade80;
}

html[data-theme="dark"] .system-tool-card__status::before {
  background: #4ade80;
}

.system-tool-card__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.system-tool-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: 7.9px;
  font-weight: 720;
  line-height: 1.32;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

html[data-theme="dark"] .system-tool-card__body p {
  color: rgba(255, 255, 255, 0.46);
}

.system-tool-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 7px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .system-tool-card footer {
  border-top-color: rgba(255, 255, 255, 0.075);
}

.system-tool-card footer button {
  min-height: 25px;
  padding: 4px 7px;
  font-size: 7.8px;
}

/* =========================================================
   NOTA
   ========================================================= */

.system-tools-note {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 9px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background: color-mix(in srgb, #7c3aed 4%, transparent);
}

html[data-theme="dark"] .system-tools-note {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: rgba(124, 58, 237, 0.055);
}

.system-tools-note__icon {
  display: grid;
  width: 25px;
  height: 25px;
  min-width: 25px;
  place-items: center;
  border: 1px solid color-mix(in srgb, #7c3aed 28%, rgba(0, 0, 0, 0.12));
  border-radius: 8px;
  background: color-mix(in srgb, #7c3aed 6%, transparent);
  color: #7c3aed;
}

html[data-theme="dark"] .system-tools-note__icon {
  border-color: color-mix(in srgb, #a78bfa 30%, rgba(255, 255, 255, 0.12));
  background: color-mix(in srgb, #a78bfa 8%, transparent);
  color: #a78bfa;
}

.system-tools-note__icon .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.15;
}

.system-tools-note strong {
  display: block;
  color: var(--text-strong);
  font-size: 9px;
  font-weight: 950;
  line-height: 1.1;
}

.system-tools-note p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 7.8px;
  font-weight: 720;
  line-height: 1.32;
}

html[data-theme="dark"] .system-tools-note strong {
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .system-tools-note p {
  color: rgba(255, 255, 255, 0.48);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {
  .system-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-tool-card:nth-child(3n) {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
  }

  .system-tool-card:nth-child(2n) {
    border-right: 0;
  }

  html[data-theme="dark"] .system-tool-card:nth-child(3n) {
    border-right-color: rgba(255, 255, 255, 0.075);
  }
}

@media (max-width: 760px) {
  .system-tools-page {
    gap: 6px;
  }

  .system-tools-hero {
    grid-template-columns: 1fr;
    align-items: flex-start;
    padding: 8px;
  }

  .system-tools-actions {
    justify-content: flex-start;
  }

  .system-tools-actions,
  .system-tools-btn {
    width: 100%;
  }

  .system-tools-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-tools-kpis article:nth-child(2n) {
    border-right: 0;
  }

  .system-tools-kpis article:nth-child(n + 3) {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  html[data-theme="dark"] .system-tools-kpis article:nth-child(n + 3) {
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  .system-tools-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .system-tools-result {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .system-tools-result__close {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .system-tools-grid,
  .system-tools-kpis {
    grid-template-columns: 1fr;
  }

  .system-tool-card,
  .system-tool-card:nth-child(2n),
  .system-tool-card:nth-child(3n),
  .system-tools-kpis article {
    border-right: 0;
  }

  .system-tools-kpis article {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .system-tools-kpis article:first-child {
    border-top: 0;
  }

  html[data-theme="dark"] .system-tools-kpis article {
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  .system-tool-card__head {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .system-tool-card__status {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .system-tool-card footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .system-tool-card footer button {
    width: 100%;
  }

  .system-tools-note {
    grid-template-columns: 1fr;
  }

  .system-tools-note__icon {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 420px) {
  .system-tools-hero,
  .system-tools-kpis,
  .system-tools-panel,
  .system-tools-result {
    border-radius: 12px;
  }

  .system-tools-hero h2 {
    font-size: 18px;
  }

  .system-tools-section-head {
    padding: 8px;
  }

  .system-tool-card {
    min-height: 112px;
  }
}

/* =========================================================
   ANIMACIONES
   ========================================================= */

@keyframes systemToolsPageIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes systemToolsResultIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respeta usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  .system-tools-page,
  .system-tools-page *,
  .system-tools-page *::before,
  .system-tools-page *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   FIX · UTILIDADES · COLOR TEXTO BOTONES
   Claro: negro · Oscuro: blanco
   ========================================================= */

/* Botones en modo claro */
.system-tools-btn,
.system-tools-btn span,
.system-tool-card footer button,
.system-tool-card footer button span {
  color: #111111 !important;
}

/* Iconos en botones modo claro */
.system-tools-btn .icon,
.system-tool-card footer button .icon {
  color: #111111 !important;
  stroke: #111111 !important;
}

/* Evita botones negros con texto gris en modo claro */
.system-tools-btn--dark,
.system-tool-card footer button.is-primary {
  border-color: rgba(17, 17, 17, 0.22) !important;
  background: rgba(17, 17, 17, 0.06) !important;
  color: #111111 !important;
}

.system-tools-btn--dark:hover,
.system-tool-card footer button.is-primary:hover {
  border-color: rgba(17, 17, 17, 0.36) !important;
  background: rgba(17, 17, 17, 0.1) !important;
  color: #111111 !important;
}

/* Botones en modo oscuro */
html[data-theme="dark"] .system-tools-btn,
html[data-theme="dark"] .system-tools-btn span,
html[data-theme="dark"] .system-tool-card footer button,
html[data-theme="dark"] .system-tool-card footer button span {
  color: #ffffff !important;
}

/* Iconos en botones modo oscuro */
html[data-theme="dark"] .system-tools-btn .icon,
html[data-theme="dark"] .system-tool-card footer button .icon {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* Botón principal en modo oscuro */
html[data-theme="dark"] .system-tools-btn--dark,
html[data-theme="dark"] .system-tool-card footer button.is-primary {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .system-tools-btn--dark:hover,
html[data-theme="dark"] .system-tool-card footer button.is-primary:hover {
  border-color: rgba(255, 255, 255, 0.32) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

/* Disabled visible pero más apagado */
.system-tools-btn:disabled,
.system-tool-card footer button:disabled {
  opacity: 0.58;
}

.system-tools-btn:disabled,
.system-tools-btn:disabled span,
.system-tool-card footer button:disabled,
.system-tool-card footer button:disabled span {
  color: #111111 !important;
}

html[data-theme="dark"] .system-tools-btn:disabled,
html[data-theme="dark"] .system-tools-btn:disabled span,
html[data-theme="dark"] .system-tool-card footer button:disabled,
html[data-theme="dark"] .system-tool-card footer button:disabled span {
  color: #ffffff !important;
}