:root {
  color-scheme: dark;
  --bg: #12110f;
  --card: #1c1b17;
  --line: #343128;
  --text: #f4f0e6;
  --muted: #a39d90;
  --accent: #e0a45a;
  --ok: #8fbf7a;
  --bad: #e07a68;
  --shadow: 0 16px 40px rgb(0 0 0 / 0.28);
  font-family: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
button, input, select { font: inherit; color: inherit; }
button, .button {
  background: var(--accent);
  color: #24180c;
  border: 0;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  cursor: pointer;
  font-weight: 650;
}
button.ghost, .ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.gate {
  max-width: 36rem;
  margin: 12vh auto;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.eyebrow { letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0; }
h1, h2, h3 { font-weight: 650; letter-spacing: -0.02em; }
h1 { margin: 0.2rem 0 0.6rem; font-size: 2.4rem; }
.muted, .error { color: var(--muted); }
.error { color: var(--bad); min-height: 1.2em; }
.shell { max-width: 1180px; margin: 0 auto; padding: 1.2rem; }
header.top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.who { display: flex; gap: 0.7rem; align-items: center; }
.who img, .avatar { width: 36px; height: 36px; border-radius: 50%; background: #2a2722; object-fit: cover; }
nav.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
nav.tabs button[aria-selected="true"] { background: var(--accent); color: #24180c; }
nav.tabs button { background: #2a2722; color: var(--text); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.8rem; }
.stat strong { display: block; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.45rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.missing { color: var(--bad); }
.ok { color: var(--ok); }
.scroll { overflow-x: auto; }
label.row { display: flex; gap: 0.4rem; align-items: center; }
input[type="text"], input[type="number"], input[type="search"], select {
  background: #12110f;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  width: 100%;
}
.toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; margin: 0.6rem 0; }
.toolbar label { display: grid; gap: 0.25rem; min-width: 10rem; }
.notice { color: var(--accent); min-height: 1.2em; }
details { margin-top: 0.4rem; }
.checks { display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; max-height: 14rem; overflow: auto; }
.split { color: var(--accent); }
.individual { color: #8eb6d8; }
footer { color: var(--muted); font-size: 0.85rem; margin: 2rem 0 1rem; }
footer a { color: var(--accent); }
@media (max-width: 720px) {
  .shell { padding: 0.7rem; }
  header.top { align-items: flex-start; flex-direction: column; }
}
