:root {
  --bg: #111213;
  --surface: #18191b;
  --text: #e4e4e6;
  --muted: #8b8d92;
  --accent: #4ea1ff;
  --ok: #4cc38a;
  --warn: #e5a440;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 760px; margin: 0 auto; padding: 56px 16px; }
h1 { font-size: 22px; font-weight: 600; margin: 0 0 24px; }
.intro { margin: -12px 0 24px; color: var(--muted); max-width: 64ch; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.mirror {
  background: var(--surface);
  border-radius: 6px;
  padding: 16px 18px;
}
.mirror + .mirror { margin-top: 12px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.name { font-size: 16px; font-weight: 600; }
.status { font-size: 13px; color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-right: 6px; }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
pre {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 4px;
  overflow-x: auto;
  color: var(--text);
}

/* Usage stats (filled from /stats.json) */
h2 { font-size: 16px; font-weight: 600; margin: 40px 0 4px; }
.note { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 600px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { background: var(--surface); border-radius: 6px; padding: 14px 16px; }
.tile .label, .tile .sub { font-size: 13px; color: var(--muted); }
.tile .value { font-size: 22px; font-weight: 600; line-height: 1.4; }
#stats-note { margin: 12px 0 0; }

/* nginx autoindex listings (markup injected via sub_filter) */
h1 a { color: var(--text); }
h1 .sep { color: var(--muted); font-weight: 400; }
hr { display: none; }
.listing pre {
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  line-height: 1.8;
  color: var(--muted);
}
