:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --card: #fff;
  --ink: #1c2430;
  --muted: #5c6b7a;
  --line: #d5dde6;
  --accent: #0f5c4c;
  --accent-2: #14715e;
  --danger: #8d2b2b;
  --warn: #8a5a00;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "PT Sans", "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
}
header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  background: var(--accent);
  color: white;
}
header a { color: white; }
.brand { font-weight: 700; }
nav a { margin-left: 12px; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
.card, form.card, table {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.card, form.card { padding: 16px; margin-bottom: 16px; }
h1 { font-size: 1.4rem; margin: 0 0 12px; }
h2 { font-size: 1.1rem; }
label { display: block; margin: 10px 0 4px; font-weight: 600; }
input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
textarea { min-height: 80px; }
button, .button {
  display: inline-block;
  margin: 6px 6px 0 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
button.secondary, .button.secondary { background: #3e5568; }
button.danger { background: var(--danger); }
.actions { display: flex; flex-wrap: wrap; }
.flash { background: #e5f6ef; border: 1px solid #b7e0d0; padding: 10px 12px; border-radius: 8px; }
.error { background: #fdecec; border: 1px solid #f0c2c2; padding: 10px 12px; border-radius: 8px; }
.muted { color: var(--muted); }
table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #eef3f6; }
.grid { display: grid; gap: 12px; }
@media (min-width: 800px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
}
.big button, .big .button { min-height: 52px; font-size: 1.05rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.filters label { margin: 0; }
.filters input, .filters select { width: auto; }
.warn { color: var(--warn); }
