/* Estilos específicos del comparador "Los 3 modos" (Tema 1) */
.tm-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .tm-layout { grid-template-columns: 1fr; } }

.tm-schematic-wrap { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 12px; }
.tm-schematic-wrap svg { width: 100%; height: auto; display: block; }
.tm-arrow-label { font-family: var(--font-mono); font-size: 11px; fill: var(--brand-ink); }
.tm-mode-label { font-family: var(--font-display); font-weight: 700; font-size: 11px; }

.tm-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.tm-bar-row { display: grid; grid-template-columns: 100px 1fr 90px; align-items: center; gap: 10px; }
.tm-bar-name { font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; }
.tm-bar-track { background: var(--color-bg); border-radius: 999px; height: 14px; overflow: hidden; }
.tm-bar-fill { height: 100%; border-radius: 999px; transition: width var(--transition); }
.tm-bar-value { font-family: var(--font-mono); font-size: 0.8rem; text-align: right; }

.tm-verdict {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(14, 155, 181, 0.1);
  border-left: 4px solid var(--color-interactive);
  font-size: 0.95rem;
}
.tm-verdict strong { color: var(--brand-primary); }

.tm-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; margin-top: 10px; }
.tm-table th { text-align: left; color: var(--color-muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--color-border); }
.tm-table td { padding: 0; }
.tm-table-row-btn {
  width: 100%; text-align: left; background: transparent; border: none;
  padding: 8px; cursor: pointer; font-family: var(--font-body); font-size: 0.86rem;
  display: grid; grid-template-columns: 1fr auto; gap: 8px; border-radius: var(--radius-sm);
}
.tm-table-row-btn:hover { background: var(--color-bg); }
.tm-table-row-btn:focus-visible { outline: 2px solid var(--color-interactive); outline-offset: -2px; }
.tm-table-row-btn.active { background: rgba(29, 30, 148, 0.08); font-weight: 700; color: var(--brand-primary); }
.tm-table-row-btn .k-value { font-family: var(--font-mono); color: var(--color-muted); }
.tm-table-row-btn.active .k-value { color: var(--brand-primary); }
