/* Dashboard screen. Owned by the dashboard view. */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.card h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.card .metric { margin: 6px 0 2px; font-size: 26px; font-variant-numeric: tabular-nums; }
.card p { margin: 2px 0 0; font-size: 13px; }

/* The status colour is carried by a left edge rather than a full tint: three red
   blocks side by side read as one alarm, an edge keeps each card legible. */
.card.status { border-left: 3px solid var(--border); }
.card.status.ok { border-left-color: var(--ok); }
.card.status.bad { border-left-color: var(--danger); }

.row.between { justify-content: space-between; }

.stats h2, main > div > h2 { font-size: 15px; margin: 22px 0 8px; }
.stats table { margin-bottom: 8px; }

/* --- release channel ----------------------------------------------------- */
.card.release { border-left: 3px solid var(--ok); }
.card.release.bad { border-left-color: var(--danger); }

.files { list-style: none; margin: 8px 0 0; padding: 0; }
.files li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 13px; }
.files .mono { word-break: break-all; }

.cmd {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
}

.ghost-link {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}
.ghost-link:hover { border-color: var(--accent); }
