:root {
  --bg: #f7f7f2;
  --surface: #ffffff;
  --accent: #146356;
  --accent-soft: #d8efe9;
  --text: #1f2a2a;
  --muted: #667777;
  --danger: #b23a48;
  --border: #dde5e5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', 'Inter', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #ecf6f3, var(--bg));
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.nav {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav a:hover {
  background: var(--accent-soft);
}

.nav a.active {
  background: var(--accent);
  color: #fff;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

h1 {
  margin-top: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input,
textarea,
select,
button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font: inherit;
}

button {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

button.secondary {
  background: #fff;
  color: var(--accent);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--border);
}

.actions {
  display: flex;
  gap: 8px;
}

a.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
}

a.button-link.secondary {
  background: #fff;
  color: var(--accent);
}

.error {
  color: var(--danger);
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
}
