/* Server status page (server.html); builds on style.css. */
.auto-refresh { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }

.overall { display: flex; align-items: center; gap: 10px; max-width: 1000px; }
.overall .headline { font-size: 16px; font-weight: 600; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; max-width: 1000px; margin-bottom: 12px; }
.tile { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; }
.tile .label { font-size: 12px; color: var(--muted); }
.tile .value { font-size: 20px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tile .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.meter { height: 6px; background: var(--bg); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent); }
.meter.warn > span { background: #d97706; }
.meter.bad > span { background: var(--danger); }

.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: #dcfce7; color: #166534; }
.pill.warn { background: #fef3c7; color: #92400e; }
.pill.bad { background: #fee2e2; color: #991b1b; }
.pill.info { background: var(--bg); color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 0 12px; max-width: 1000px; }
.grid-2 .card { max-width: none; }

.kv { border-collapse: collapse; width: 100%; }
.kv th, .kv td { border-bottom: 1px solid var(--border); padding: 5px 6px; text-align: left; vertical-align: top; }
.kv th { font-size: 12px; color: var(--muted); font-weight: 600; }
.kv td.num { text-align: right; font-variant-numeric: tabular-nums; }
.kv tr:last-child td { border-bottom: none; }

.notes { margin: 0; padding-left: 18px; }
.notes li { margin: 2px 0; }

@media (max-width: 600px) {
  .grid-2 { grid-template-columns: 1fr; }
  .auto-refresh { display: none; }
}
