:root {
  --bg: #f3f6f5;
  --surface: #ffffff;
  --text: #17201f;
  --muted: #5d6b69;
  --line: #dfe6e4;
  --accent: #0b7f78;
  --accent-soft: #e2f3f1;
  --warm: #e0a526;
  --ok: #2a9d4a;
  --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: #0d1413;
    --surface: #141d1c;
    --text: #e4ecea;
    --muted: #8a9c99;
    --line: #223230;
    --accent: #45d2c4;
    --accent-soft: #123330;
    --warm: #f0bd48;
    --ok: #4cc66d;
  }
}

* { 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.6;
}

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

.wrap { max-width: 920px; margin: 0 auto; padding: 0 18px; }

/* 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: 13px;
  padding-bottom: 13px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 26px;
  height: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
}
.brand .logo i { background: var(--accent); border-radius: 3px; }
.brand .logo i:nth-child(1) { opacity: .5; }
.brand .logo i:nth-child(4) { background: var(--warm); }
.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: 30px 0 44px; }
h1 { font-size: 26px; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 18px; margin: 28px 0 8px; }
p.lead { color: var(--muted); margin: 0 0 22px; max-width: 700px; }
.path { font-family: var(--mono); font-size: 14px; color: var(--muted); margin: 0 0 8px; }

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

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

/* 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: 11.5px;
  text-transform: uppercase;
  letter-spacing: .7px;
  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.5em; 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; }
}
