:root {
  color-scheme: light;
  --bg: #f6f5f2;
  --surface: #ffffff;
  --ink: #20201d;
  --muted: #6b6a64;
  --line: #dad7ce;
  --accent: #166c57;
  --accent-strong: #104d3f;
  --danger: #a33c2f;
  --warning: #9a6a19;
  --unknown: #646a73;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

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

button {
  border: 0;
  cursor: pointer;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fbfaf7;
  color: var(--ink);
}

.primary-button,
.secondary-button,
.danger-button,
.text-button {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 700;
}

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

.primary-button:hover {
  background: var(--accent-strong);
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fbfaf7;
  color: var(--ink);
}

.secondary-button:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

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

.danger-button:hover {
  background: #7f2b22;
}

.text-button {
  background: transparent;
  color: var(--muted);
}

.text-button:hover {
  color: var(--ink);
}

.link {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.empty,
.error-text,
.status-text {
  color: var(--muted);
}

.notice {
  border-left: 4px solid var(--danger);
  padding: 12px 14px;
  background: #fff8f6;
  color: var(--danger);
}
