/* The live panel shared by Kube Dino and Kube Ping: status dot, metrics,
   the "Inspect" drawer and the per-pod rows. */

.dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent);
}

.cluster {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.cluster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cluster h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cluster.is-offline .dot {
  background: var(--muted);
  box-shadow: none;
}

.cluster-status {
  color: var(--muted);
  font-size: 0.7rem;
  white-space: nowrap;
}

/* Ready replicas lead; CPU and memory are the small print under them. */
.ready {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 1.25rem 0 1rem;
}

.ready-value {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ready-label {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metrics {
  margin: 0 0 1rem;
}

.metrics div {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-top: 1px solid var(--line);
}

.metrics dt {
  color: var(--muted);
}

.metrics dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.inspect {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.inspect summary {
  color: var(--muted);
  cursor: pointer;
}

.inspect summary:hover {
  color: var(--fg);
}

.pods {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.pods li + li {
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
}

/* One pod: label on the left, value on the right; long names are cut. */
.pod {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.2rem 1rem;
  margin: 0;
}

.pod dt {
  color: var(--muted);
}

.pod dd {
  margin: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pod .is-ready {
  color: var(--ok);
}

.pod .is-waiting {
  color: var(--warn);
}

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

