/* Exact viewport */
html, body {
  margin: 0;
  padding: 0;
  width: 1024px;
  height: 256px;
  overflow: hidden;
  background: white;
  font-family: Arial, sans-serif;
}

/* Two equal columns; fill entire box with NO gutters */
.card-container {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* A | B */
  grid-template-rows: 1fr;         /* single row */
  gap: 0;                          /* ← no space between cards */
  width: 100%;
  height: 100%;
  padding: 0;                      /* ← no inner padding */
  box-sizing: border-box;
}

/* Each card fills its grid cell completely */
.card {
  width: 100%;
  height: 100%;
  background: #666;
  color: #fff;
  border-radius: 0;                /* ← square edges to avoid slivers */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  padding: 6px;
  font-size: 9px;
  position: relative;              /* keeps ::after overlay positioned */
}

/* Red overlay when fault_mode is true */
.card.fault::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(220, 0, 0, 0.35);
  border-radius: inherit;
  pointer-events: none;
}

/* Label circle (A/B) */
.availability-label {
  margin-bottom: 6px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  background: #d32f2f;
  box-shadow: 0 2px 4px rgba(0,0,0,.25);
}

.availability-label.red   { background: #d32f2f; }
.availability-label.green { background: #2e7d32; }

/* Inner rows */
.row { display: flex; justify-content: space-around; width: 100%; margin-top: 4px; }

/* Icon & text sizing tuned for half-screen cards */
.card img { height: 16px; }
.metric-value { font-size: 9px; }
.power, .standby { font-size: 9px; color: gold; }
.status { margin-top: 4px; text-align: center; font-size: 8px; line-height: 1.1; }

.zespack-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
}


.card-container .card:first-child {
  border-right: 2px solid #999; /* grey line */
}
