:root {
  --fill-smaller: 0.18;
  --fill-larger: 0.07;
  --background: #ffffff;
  --text: #0f172a;
  --muted-text: #94a3b8;
  --tooltip-background: #ffffff;
  --tooltip-text: #1e293b;
  --metric-value-max: 110px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

#app {
  min-height: 100vh;
  transition: opacity 0.2s ease;
}

#app[data-connection-status="stale"],
#app[data-connection-status="error"] {
  opacity: 0.82;
}

.dashboard {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 0;
}

.provider-block {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-height: 0;
}

.metric-row {
  position: relative;
  flex: 1 1 50%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 56px;
}

.metric-row--placeholder {
  opacity: 0.6;
}

.metric-fill {
  position: absolute;
  inset: 0 auto 0 0;
  transition: width 0.55s ease;
}

.metric-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.metric-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted-text);
}

.metric-value {
  font-size: min(var(--metric-value-max), calc(100vh / (var(--provider-count, 1) * 2) * 0.62));
  line-height: 1;
  font-weight: 200;
  font-variant-numeric: tabular-nums;
  font-family: "Geist", sans-serif;
}

[data-tip]:not([data-tip=""])::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  white-space: nowrap;
  background: var(--tooltip-background);
  color: var(--tooltip-text);
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: 7px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

[data-tip]:not([data-tip=""]):hover::after {
  opacity: 1;
}
