:root {
  color-scheme: light dark;
  --bg: #f4f1ea;
  --panel: #fffdf7;
  --text: #1e2523;
  --muted: #65706c;
  --line: #c9cec9;
  --accent: #176b5b;
  --danger: #a33131;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: var(--accent); }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem max(1rem, calc((100% - 72rem) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.brand { color: var(--text); font-weight: 750; text-decoration: none; }
nav { display: flex; gap: 1rem; }
.page { width: min(72rem, calc(100% - 2rem)); margin: 2rem auto; }
.login-card, section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: .7rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.login-card { width: min(28rem, 100%); margin: 8vh auto 0; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}
form { display: grid; gap: .75rem; margin: .75rem 0; }
label { font-weight: 650; }
input, select, button {
  width: 100%;
  min-height: 2.75rem;
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  font: inherit;
}
input[type="checkbox"] { width: auto; min-height: auto; }
button {
  width: fit-content;
  cursor: pointer;
  background: var(--accent);
  color: white;
  border: 0;
  font-weight: 700;
}
.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
}
.muted { color: var(--muted); }
.error, .warning { color: var(--danger); font-weight: 650; }
.status { text-transform: capitalize; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: .65rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th { white-space: nowrap; }
.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121715;
    --panel: #1b211f;
    --text: #f0f3ee;
    --muted: #aeb8b3;
    --line: #46504c;
    --accent: #79d6bd;
    --danger: #ffaaa5;
  }
  button { color: #10231e; }
}
