.catalog-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 26px;
}

.catalog-stats-strip[hidden] {
  display: none;
}

.catalog-stat-card {
  --stat-accent: #244f7c;
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 122px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid #e2e8ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 3px 0 var(--stat-accent), 0 9px 26px rgba(25, 49, 78, .06);
  animation: catalog-stat-enter .38s cubic-bezier(.2, .75, .25, 1) both;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.catalog-stat-card:nth-child(2) { animation-delay: 45ms; }
.catalog-stat-card:nth-child(3) { animation-delay: 90ms; }
.catalog-stat-card:nth-child(4) { animation-delay: 135ms; }

.catalog-stat-card:hover {
  z-index: 1;
  transform: translateY(-3px);
  border-color: #cdd8e4;
  box-shadow: inset 0 3px 0 var(--stat-accent), 0 16px 34px rgba(25, 49, 78, .1);
}

.catalog-stat-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #edf3f8;
  color: var(--stat-accent);
}

.catalog-stat-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.catalog-stat-copy { min-width: 0; }

.catalog-stat-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.catalog-stat-label > span {
  color: #6e7e91;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.catalog-stat-chip,
.catalog-stat-state {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f0f4f8;
  color: #718196;
  font-size: 10px;
  font-weight: 700;
}

.catalog-stat-copy > strong {
  display: block;
  margin-top: 8px;
  white-space: nowrap;
  color: #183553;
  font-size: clamp(24px, 2vw, 30px);
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  letter-spacing: -.025em;
  line-height: 1.12;
}

.catalog-stat-copy > strong > small {
  margin: 0 0 0 4px;
  color: #8795a6;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.catalog-stat-copy > p {
  margin: 7px 0 0;
  overflow: hidden;
  color: #78889c;
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-stat-card--active {
  --stat-accent: #244f7c;
  border-color: #e2e8ef;
  background: #fff;
  box-shadow: inset 0 3px 0 var(--stat-accent), 0 9px 26px rgba(25, 49, 78, .06);
}

.catalog-stat-card--active:hover {
  border-color: #cdd8e4;
  box-shadow: inset 0 3px 0 var(--stat-accent), 0 16px 34px rgba(25, 49, 78, .1);
}

.catalog-stat-card--active .catalog-stat-icon {
  background: #edf3f8;
  color: #244f7c;
}

.catalog-stat-card--active .catalog-stat-label > span,
.catalog-stat-card--active .catalog-stat-copy > p { color: #6e7e91; }
.catalog-stat-card--active .catalog-stat-copy > strong { color: #183553; }
.catalog-stat-card--active .catalog-stat-copy > strong > small { color: #8795a6; }
.catalog-stat-card--active .catalog-stat-chip { background: #f0f4f8; color: #718196; }

.catalog-stat-card--positive { --stat-accent: #2c8a5a; }
.catalog-stat-card--positive .catalog-stat-icon { background: #eaf6ef; }
.catalog-stat-card--positive .catalog-stat-copy > strong { color: #157545; }
.catalog-stat-card--positive .catalog-stat-chip { background: #eaf6ef; color: #247c51; }

.catalog-stat-card--negative { --stat-accent: #c7555d; }
.catalog-stat-card--negative .catalog-stat-icon { background: #fbecee; }
.catalog-stat-card--negative .catalog-stat-copy > strong { color: #b8454e; }
.catalog-stat-card--negative .catalog-stat-chip { background: #fbecee; color: #b84a53; }

.catalog-stat-card--updated { --stat-accent: #597ca5; }
.catalog-stat-card--updated .catalog-stat-icon { background: #eef3f8; }
.catalog-stat-card--updated .catalog-stat-copy > strong { font-size: clamp(22px, 1.8vw, 27px); }

.catalog-stat-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2d9761;
  box-shadow: 0 0 0 3px rgba(45, 151, 97, .12);
}

.catalog-stat-state.is-syncing i { background: #b8862e; box-shadow: 0 0 0 3px rgba(184, 134, 46, .14); }

@keyframes catalog-stat-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1280px) {
  .catalog-stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .catalog-stats-strip { gap: 10px; margin: 15px 0 18px; }
  .catalog-stat-card { min-height: 112px; padding: 15px; grid-template-columns: 36px minmax(0, 1fr); gap: 11px; border-radius: 13px; }
  .catalog-stat-icon { width: 36px; height: 36px; border-radius: 10px; }
  .catalog-stat-icon svg { width: 18px; height: 18px; }
  .catalog-stat-label > span { font-size: 11px; }
  .catalog-stat-copy > strong { font-size: 23px; }
  .catalog-stat-copy > p { font-size: 11px; }
}

@media (max-width: 470px) {
  .catalog-stats-strip { grid-template-columns: 1fr; }
  .catalog-stat-card { min-height: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-stat-card,
  .catalog-stat-state i { animation: none; }
  .catalog-stat-card { transition: none; }
}
