/* ---------- main column ---------- */
main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px;
  min-height: 57px;
  border-bottom: 1px solid var(--border);
}
.topbar h1 { font-size: 16px; margin: 0; font-weight: 600; }
.meta { color: var(--muted); font-size: 12px; }
.meta.stale { color: var(--warn); }

/* The freshness tally, in the same four colours the cards are ringed in — the
   dot is the key and the cards are what it reads. Text stays muted so the line
   is still one sentence rather than four coloured fragments; only the dot
   carries the colour, which is enough to match it to a card and quiet enough
   to sit in a topbar all day. */
.meta .tier { white-space: nowrap; }
.meta .tier i {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--fresh);
  vertical-align: baseline;
}
.meta .tier-instant { --fresh: var(--good); }
.meta .tier-cron    { --fresh: var(--accent); }
.meta .tier-build   { --fresh: var(--warn); }
/* Red is not a tier but a fault — see cards.css. It's the one count worth
   reading before the others, so it takes the text colour too. */
.meta .tier-down { --fresh: var(--bad); color: var(--bad); }
.spacer { margin-left: auto; }

nav.tabs {
  display: flex; gap: 2px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: thin;
}
nav.tabs button {
  background: none; border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 11px 12px;
  font: inherit; cursor: pointer; white-space: nowrap;
}
nav.tabs button:hover { color: var(--text); }
nav.tabs button[aria-selected="true"] {
  color: var(--text);
  border-bottom-color: #f78166;
}
.count {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 6px; margin-left: 6px;
  font-size: 11px; font-variant-numeric: tabular-nums;
}
/* A tab with nothing behind it — this repo has no tracker, this person has never
   opened a PR. The badge slot says so rather than showing a zero, which reads as
   a measurement, or nothing at all, which reads as an oversight. The tab stays
   clickable: it's how you find out, and the tooltip and the tab itself both
   carry the full sentence. Dashed and dim so it can't be mistaken for a count. */
.count.none {
  background: none; border-style: dashed;
  color: var(--muted); font-variant-numeric: normal;
}

.content { padding: 20px 24px 60px; }

/* ---------- controls ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
input[type="search"], select, input[type="number"] {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 6px 10px;
  font: inherit;
}
input[type="search"] { min-width: 260px; }
input[type="number"] { width: 72px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.seg button {
  background: var(--panel); border: none; color: var(--muted);
  padding: 6px 11px; font: inherit; cursor: pointer;
}
.seg button + button { border-left: 1px solid var(--border); }
.seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); }
.seg button:hover { color: var(--text); }
/* For a card header rather than the toolbar, where a full-size control would
   set the header's height and tower over the title beside it. Matched to
   .excl-btn, since the two sit in the same slot on different pages. */
.seg.mini button { padding: 4px 9px; font-size: 11px; }
.ghost {
  background: var(--panel); border: 1px solid var(--border); border-radius: 6px;
  padding: 5px 11px; font-size: 12px; color: var(--text);
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.ghost:hover { border-color: var(--accent); text-decoration: none; }
.minlabel { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
