/* ============================================================
   LOGOPRUEBAS: entradas y salidas en crudo
   ============================================================ */

.io-panel {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 1.2rem; padding: 0.4rem 0.2rem 0.2rem;
}
.io-intro { font-size: 0.85rem; line-height: 1.5; margin: 0; color: var(--muted); }
.io-group { display: flex; flex-direction: column; gap: 0.7rem; }
.io-group-title { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em; }
.io-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.io-dot.in { background: var(--accent); }
.io-dot.out { background: var(--mode); }
.io-count { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 0.05rem 0.5rem; }

.io-grid { display: grid; gap: 0.65rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.io-card {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.72rem 0.85rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.io-info { display: flex; flex-direction: column; gap: 0.05rem; min-width: 0; flex: 1; }
.io-id { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.05em; color: var(--muted); }
.io-label { font-size: 0.9rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.io-state { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; color: var(--muted); white-space: nowrap; text-align: right; }
.io-card.on .io-state { color: var(--run); }
.io-card.pending .io-state { color: var(--pending); }

.io-lamp {
  width: 16px; height: 16px; border-radius: 50%; flex: none; background: var(--unknown);
  border: 2px solid color-mix(in srgb, var(--unknown) 55%, #000); transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.io-in.on .io-lamp { background: var(--run); border-color: color-mix(in srgb, var(--run) 55%, #000); box-shadow: 0 0 9px var(--run-glow); }

.io-switch { border: 0; background: none; padding: 0; cursor: pointer; flex: none; -webkit-tap-highlight-color: transparent; }
.io-switch-track { display: block; width: 44px; height: 25px; border-radius: 999px; background: var(--unknown); position: relative; transition: background 0.2s; }
.io-switch-thumb { position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); transition: transform 0.2s; }
.io-out.on .io-switch-track { background: var(--mode); }
.io-out.on .io-switch-thumb { transform: translateX(19px); }
.io-out.pending .io-switch-track { background: var(--pending); }
.io-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 999px; }
.io-switch:disabled, .io-switch.readonly { opacity: 0.5; cursor: not-allowed; }
