/* Stylesheet for the `metrics` island. Ships alongside main.mjs + metrics.json
   in the same directory; the entry resolves this file via import.meta.url so it
   loads correctly whether served direct from the CDN or through the proxy. */
.keen-metrics {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  border: 1px solid #0ea5e9;
  border-radius: 14px;
  padding: 18px 20px;
  background: #f0f9ff;
  color: #075985;
}
.keen-metrics__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.keen-metrics__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 999px;
  padding: 3px 10px;
}
.keen-metrics__origin {
  font-size: 0.78rem;
  color: #0284c7;
}
.keen-metrics__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.keen-metrics__card {
  background: #fff;
  border: 1px solid #bae6fd;
  border-radius: 11px;
  padding: 12px 14px;
}
.keen-metrics__label {
  font-size: 0.75rem;
  color: #0284c7;
  margin-bottom: 4px;
}
.keen-metrics__value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: #0c4a6e;
}
.keen-metrics__delta {
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 2px;
}
.keen-metrics__delta--up {
  color: #059669;
}
.keen-metrics__delta--down {
  color: #dc2626;
}
.keen-metrics__state {
  margin: 0;
  font-size: 0.85rem;
  color: #0284c7;
}
.keen-metrics__state--error {
  color: #b91c1c;
}
