:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1c2128;
  --muted: #667085;
  --line: #e4e7ec;
  --accent: #2f6fed;
  --accent-soft: #e8efff;
  --ok: #1a9f5a;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --surface: #171b21;
    --text: #e6e9ee;
    --muted: #8b94a3;
    --line: #262c35;
    --accent: #6c9bff;
    --accent-soft: #1b2740;
    --ok: #3ccf82;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .2px;
}
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 28px;
  height: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
}
.brand .logo i { background: var(--accent); border-radius: 2px; }
.brand .logo i:nth-child(2n) { opacity: .45; }
.brand .logo i:nth-child(5) { opacity: 1; background: var(--ok); }
.brand small { color: var(--muted); font-weight: 400; font-size: 13px; }

nav a {
  margin-left: 18px;
  color: var(--muted);
  font-size: 14px;
}
nav a:hover, nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* content */
main { padding: 28px 0 40px; }
h1 { font-size: 26px; margin: 0 0 6px; }
h2 { font-size: 18px; margin: 28px 0 10px; }
p.lead { color: var(--muted); margin: 0 0 22px; max-width: 720px; }
.path { font-family: var(--mono); font-size: 14px; color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}
.status .card { padding: 12px 14px; }
.status b { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.status span { font-size: 17px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; }

/* listing */
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
table.list td { padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr:hover { background: var(--accent-soft); }
table.list td.name { font-family: var(--mono); width: 100%; white-space: normal; word-break: break-all; }
table.list td.num { text-align: right; color: var(--muted); font-family: var(--mono); }
table.list td.date { color: var(--muted); font-family: var(--mono); }
table.list .ico { display: inline-block; width: 1.4em; color: var(--muted); }

.note { color: var(--muted); font-size: 13px; margin-top: 12px; }

pre, code { font-family: var(--mono); font-size: 13px; }
pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  overflow-x: auto;
}

/* error pages */
.center { text-align: center; padding: 70px 0; }
.center .code { font-size: 72px; font-weight: 800; color: var(--accent); line-height: 1; }

/* footer */
footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding: 18px 0 30px;
}
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--muted); margin-left: 14px; }
footer a:first-child { margin-left: 0; }

@media (max-width: 640px) {
  nav a { margin-left: 12px; }
  table.list th.hide-s, table.list td.hide-s { display: none; }
  table.list th, table.list td { padding-left: 10px; padding-right: 10px; }
  h1 { font-size: 22px; }
}
