:root {
  --up: #0a84ff;
  --up-track: rgba(10, 132, 255, 0.2);
  --down: rgba(10, 132, 255, 0.3);
}

#resource-card {
  padding: 24px 0;
  gap: 24px;
}

.resource {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resource-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.resource-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.04px;
  line-height: 22px;
  color: var(--text);
}
.resource-name { display: inline-flex; align-items: center; gap: 4px; }
.resource-pct { font-variant-numeric: tabular-nums; }

.resource-bar {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 0 16px;
}

.bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--up-track);
  border-radius: 100px;
  min-width: 0;
}

.rect {
  flex: 1 1 0;
  min-width: 0;
  height: 6px;
  background: var(--up);
  box-shadow: inset 0 0 1.8px rgba(0, 0, 0, 0.5);
  border-radius: 3px;
}
.rect.down {
  background: var(--down);
  filter: blur(1px);
}
.rect.empty {
  background: rgba(10, 132, 255, 0.15);
  filter: none;
}

.resource-foot {
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.08px;
  color: var(--text-muted);
}

.preloader__card--resources {
  padding: 24px 0;
  gap: 24px;
}
.skeleton-bar--resource {
  height: 70px;
  border-radius: 16px;
}

/* On the status page we want only 6px between the card and the powered
   block — overriding body's default 24px flex gap so margin-top reads as
   the literal spacing. */
body[data-page="uptime"] { gap: 0; }

.powered {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.08px;
  color: var(--text-muted);
}
.powered a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
}
.powered img { display: block; }
