:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --panel: #ffffff;
  --ink: #24302f;
  --muted: #66736d;
  --line: #d8ddd5;
  --brand: #23615b;
  --brand-strong: #164540;
  --accent: #c97824;
  --danger: #b42318;
  --warning: #a15c08;
  --ok: #277a46;
  --shadow: 0 1px 4px rgba(27, 39, 36, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

td input,
td select {
  min-width: 86px;
}

td input[type="checkbox"] {
  width: auto;
  min-width: 0;
}

button {
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  padding: 0.62rem 0.85rem;
  font-weight: 650;
}

button:hover {
  background: var(--brand-strong);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

button.secondary {
  background: #e6ebe5;
  color: var(--ink);
}

button.danger {
  background: #fde8e4;
  color: var(--danger);
}

button.danger:hover {
  background: #fbd1ca;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0.52rem 0.58rem;
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

label input,
label select,
label textarea {
  color: var(--ink);
  font-weight: 400;
}
