:root {
  --bg: #f7f7f5;
  --ink: #1f2933;
  --muted: #667085;
  --line: #d8d6d0;
  --panel: #ffffff;
  --brand: #14532d;
  --brand-2: #0f766e;
  --warn: #a15c07;
  --danger: #b42318;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.nav { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-weight: 800; color: var(--ink); letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.button, button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}
.button.secondary { background: transparent; color: var(--brand); }
.button.subtle { border-color: var(--line); background: #fff; color: var(--ink); }
.hero {
  padding: 46px 0 24px;
  background: #edf5ef;
  border-bottom: 1px solid var(--line);
}
.hero h1 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 54px); line-height: 1.05; }
.hero p { max-width: 720px; margin: 0; color: var(--muted); font-size: 18px; }
.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section { padding: 28px 0; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.card h2, .card h3 { margin-top: 0; }
.muted { color: var(--muted); }
.pill {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
}
.form { display: grid; gap: 14px; max-width: 720px; }
.form-row { display: grid; gap: 6px; }
label { font-weight: 700; }
input, select, textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f0efeb; }
.alert { border: 1px solid var(--line); padding: 12px; border-radius: 6px; background: #fff; }
.alert.error { border-color: var(--danger); color: var(--danger); }
.alert.success { border-color: var(--brand); color: var(--brand); }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: #16251d; color: #fff; padding: 20px; }
.sidebar a { color: #fff; display: block; padding: 8px 0; }
.admin-main { padding: 24px; min-width: 0; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); }

@media (max-width: 800px) {
  .grid.three, .grid.two, .admin-shell { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .sidebar { position: static; }
}
