/* The dashboard: headline tiles, what needs attention, server cards. */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem;
  margin: 1.25rem 0 1.5rem; }

.tile { display: flex; flex-direction: column; gap: 0.2rem; padding: 1.1rem 1.3rem; color: var(--text);
  background: var(--card); border-radius: var(--radius); text-decoration: none; }
.tile-link:hover { background: var(--muted-bg); }
.tile-label { color: var(--muted); font-size: 14px; }
.tile-value { white-space: nowrap; font-size: 28px; font-weight: 600; line-height: 1.2;
  font-variant-numeric: tabular-nums; }
.tile-of { font-size: 19px; font-weight: 400; color: var(--muted); }
.dots { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 0.6rem; }
.tile-bar { height: 8px; margin-top: 0.6rem; border-radius: 999px; background: var(--muted-bg); overflow: hidden; }
.tile-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--chart); }
.dot { width: 14px; height: 14px; border-radius: 4px; background: var(--st-good); }
.dot-warn { background: transparent; box-shadow: inset 0 0 0 2px var(--st-warning); }
.dot-off { background: var(--muted-bg); }
.tile-sub { color: var(--muted); font-size: 13.5px; line-height: 1.4; }

.dash-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1rem; align-items: start;
  margin-bottom: 1.5rem; }
.dash-col { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.dash-mid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 0.75rem; margin-bottom: 1.25rem;
  align-items: start; }
.section-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.section-row h2 { margin: 0; }

.attn-list, .activity { list-style: none; margin: 0; padding: 0; }
.attn { display: grid; grid-template-columns: 1.6rem 1fr auto; gap: 0.7rem; align-items: center; padding: 0.75rem 0; }
.attn + .attn, .activity li + li { border-top: 1px solid var(--line); }
.attn .mark { font-size: 1.1rem; }
.attn-text a::after { content: "\00a0\203a"; text-decoration: none; display: inline-block; }
.attn-bad .mark { color: var(--st-critical); }
.attn-warn .mark { color: var(--st-warning); }
.attn-info .mark { color: var(--info-text); }
.attn a { color: var(--text); }
.all-clear { padding: 0.75rem 0.25rem; }
.all-clear .mark { color: var(--st-good); }
.activity li { display: flex; flex-direction: column; padding: 0.65rem 0; line-height: 1.4; }
.activity li small { font-size: 13.5px; }

.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.srv-card { display: flex; flex-direction: column; gap: 0.7rem; padding: 1.1rem 1.3rem; background: var(--bg);
  border: 1px solid var(--line); border-radius: 16px; }
.srv-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.srv-name { font-size: 16px; font-weight: 600; }
.srv-age { margin-left: auto; }
.meter-row { display: grid; grid-template-columns: 5.5rem 1fr; align-items: center; gap: 0.5rem; }
.meter-label { color: var(--muted); }
.srv-numbers { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }

/* A thin segmented bar: 8px, fully rounded ends, no text; the legend beside it names every part. */
.segbar { display: flex; gap: 2px; height: 8px; border-radius: 999px; overflow: hidden; background: var(--muted-bg); }
.seg { display: block; height: 100%; min-width: 3px; }
.seg-good { background: var(--st-good); }
.seg-wait { background: var(--muted); }
.seg-bad { background: var(--st-critical); }
.legend { display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; margin-top: 0.35rem; color: var(--muted); }
.swatch { display: inline-block; width: 9px; height: 9px; margin-right: 0.35rem; border-radius: 50%; }

@media (max-width: 1000px) {
  .dash-mid, .dash-cols { grid-template-columns: minmax(0, 1fr); }
}

/* The chart card and "Now playing". */
.hist .section-row { flex-wrap: wrap; }
.chart-figures { display: flex; flex-wrap: wrap; gap: 0.5rem 3rem; margin-bottom: 0.75rem; }
.chart-value { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.change { font-size: 14px; font-weight: 600; margin-left: 0.4rem; }
.change-up { color: var(--ok-text); }
.change-down { color: var(--bad-text); }
.chart { display: block; width: 100%; height: 180px; }
.chart .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; fill: none; }
.chart .area { fill: color-mix(in srgb, var(--chart) 14%, transparent); stroke: none; }
.chart .line-a, .chart .line-b { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke;
  stroke-linejoin: round; }
.chips-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.range-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border: 0;
  border-radius: 999px; background: var(--pill); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.range-chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); font-weight: 600; }
.chart .line-a { stroke: var(--chart); }
.chart .line-b { stroke: var(--text); }
.chart-empty { position: relative; }
.chart-note { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; text-align: center; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 0.15rem; }
.sw-a { background: var(--chart); }
.sw-b { background: var(--text); }
.np-row { padding: 0.6rem 0; }
.np-head { display: flex; justify-content: space-between; gap: 1rem; }
.np-row .tile-bar { margin-top: 0.3rem; }
