/* pest-pressure-scorecard.css — the top-of-tab tile row. Glass tiles on the
   cosmic palette; tokens from css/base.css. Pulses on value change. */

.ipm-scorecard { padding: 10px clamp(12px, 2vw, 24px) 11px; border-bottom: 1px solid var(--glass-border, rgba(255,255,255,.08)); flex: none; }
.ipm-sc-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }

.ipm-sc-tile {
  --t: #38bdf8; display: flex; align-items: center; gap: 11px; text-align: left; cursor: default;
  padding: 9px 12px; border-radius: 13px; min-width: 0;
  background: var(--glass-1, rgba(255,255,255,.05)); border: 1px solid var(--glass-border-2, rgba(255,255,255,.12));
  transition: border-color .15s, background .15s;
}
.ipm-sc-tile:hover { border-color: color-mix(in srgb, var(--t) 45%, transparent); background: var(--glass-2, rgba(255,255,255,.08)); }
.ipm-sc-ic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--t); background: color-mix(in srgb, var(--t) 14%, transparent); }
.ipm-sc-ic svg { width: 19px; height: 19px; }
.ipm-sc-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ipm-sc-val { font: 800 20px/1.1 var(--font-display, 'Space Grotesk', sans-serif); color: var(--t); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ipm-sc-lbl { font-size: 10.5px; letter-spacing: .02em; color: var(--text-dim, #94a3b8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ipm-sc-tile.is-zero { opacity: .82; }
.ipm-sc-tile.is-zero .ipm-sc-val { color: var(--text-secondary, #cbd5e1); }

.ipm-sc-tile.is-pulse { animation: ipm-sc-pulse .55s ease; }
@keyframes ipm-sc-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--t) 45%, transparent); }
  50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--t) 22%, transparent); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) { .ipm-sc-tile.is-pulse { animation: none; } }

@media (max-width: 1100px) { .ipm-sc-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .ipm-sc-row { grid-template-columns: repeat(2, 1fr); } .ipm-sc-val { font-size: 18px; } }
