:root {
  --bg: #070707;
  --surface: #121212;
  --line: #2a2a2a;
  --ink: #f3f1ec;
  --muted: #9a9a96;
  --ok: #16a34a;
  --danger: #dc2626;
  --serif: Gelasio, Georgia, serif;
  --sans: "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: var(--ink);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 4vw;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.brand img {
  width: 32px;
  height: 32px;
}

nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

main {
  padding: 24px 4vw 64px;
  max-width: 1280px;
}

.kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0 0 8px;
}

.lede {
  color: var(--muted);
  max-width: 40rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}

form label,
.grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

input,
select,
button {
  font: inherit;
  color: var(--ink);
  background: #000;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

button {
  cursor: pointer;
  background: #f3f1ec;
  color: #111;
  border: 0;
}

button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

button.danger {
  background: #3a1010;
  color: #fecaca;
}

.err {
  color: #fecaca;
}

.muted {
  color: var(--muted);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 120px;
}

.stat b {
  display: block;
  font-size: 1.25rem;
}

.toolbar {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.toolbar input {
  flex: 1;
  max-width: 320px;
}

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px 12px;
  margin-top: 12px;
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, 2fr);
  gap: 12px;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
  max-height: 70vh;
}

.list button {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface);
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.list button.on {
  background: #1c1c1c;
}

.pay {
  border-top: 1px solid var(--line);
  padding: 8px 0;
  font-size: 0.9rem;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}
