/* ═══ §10 · TAB: SCAN ═════════════════════════════════════════════════════════════════ */

/* ONE COLUMN, ALWAYS. auto-fill/minmax made the scanner card a different width at every
   viewport (and 2–3 per row on a desktop), which is why it never matched the race card. */
.scanner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.scanner-card {
  padding: 14px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.scanner-card-off { opacity: 0.55; }
.scanner-card-head { display: flex; align-items: center; gap: 8px; }
.scanner-card-name { font-size: 0.9rem; font-weight: 600; flex: 1; }
.scanner-card-type {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}
.scanner-card-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.35;
  min-height: 2em;
}
.scanner-card-meta { font-family: var(--font-mono); font-size: 0.66rem; margin-top: 2px; }
.scanner-card-err {
  color: var(--accent-red);
  font-size: 0.63rem;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.scanner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}
.scanner-dot.active {
  background: var(--accent-green);
  box-shadow: var(--glow-green);
  animation: pulse 2s ease-in-out infinite;
}
.scanner-dot.inactive { background: var(--accent-red); opacity: 0.5; }

/* the top-N preview inside a card. `.scanner-top` is the HOST the renderer reconciles into —
   it holds either the row list or the honest-empty line, and it must not collapse to zero
   height between the two states or the card visibly jumps on every 10s repaint. */
.scanner-top { min-height: 1.4em; }
.scanner-top-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 6px;
  padding: 6px 0 2px;
  border-top: 1px solid var(--glass-border);
}
.scanner-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
}
.scanner-top-tick { font-weight: 600; letter-spacing: 0.04em; min-width: 0; }
.scanner-top-pct {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.scanner-empty {
  font-size: 0.75rem;
  color: var(--text-dim);
  padding: 10px 0 4px;
  text-align: center;
  font-style: italic;
  overflow-wrap: anywhere;
}

