.trend-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}

.trend-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.trend-metric {
  border-radius: 18px;
  padding: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  display: grid;
  gap: 8px;
  align-content: start;
}

.trend-metric span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.trend-metric strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 0;
  line-height: 1.08;
}

.trend-metric__delta,
.trend-inline {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-wrap: pretty;
}

.trend-row {
  display: grid;
  gap: 8px;
}

.trend-row__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.trend-row__meta span {
  color: var(--muted);
}

.trend-bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--blue-100);
}

.trend-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #3554df, #7b95ff);
}

.is-up {
  color: var(--success);
}

.is-down {
  color: var(--danger);
}

@media (max-width: 1180px) {
  .trend-layout,
  .trend-metrics {
    grid-template-columns: 1fr;
  }
}
