* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f6f3;
  color: #1f2a1f;
}

.logo {
  display: block;
  max-width: 160px;
  width: 100%;
  margin: 0 auto 16px;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
  min-height: 100vh;
}

h1 {
  font-size: 1.4rem;
  margin: 0 0 16px;
}

h2 {
  font-size: 1.1rem;
  margin: 24px 0 8px;
}

button {
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  background: #3a7d34;
  color: white;
  cursor: pointer;
  min-height: 44px;
}

button.secondary {
  background: #eee;
  color: #1f2a1f;
}

button.danger {
  background: #b3261e;
}

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

input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  font-size: 1rem;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 8px;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

.card {
  background: white;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 30px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle .slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 30px;
  transition: 0.15s;
}

.toggle .slider::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.15s;
}

.toggle input:checked + .slider {
  background: #3a7d34;
}

.toggle input:checked + .slider::before {
  transform: translateX(20px);
}

.error {
  color: #b3261e;
  margin: 8px 0;
}

.muted {
  color: #666;
  font-size: 0.9rem;
}

.instructions-block {
  background: #fff8e1;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
  white-space: pre-wrap;
}

.toast {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: #1f2a1f;
  color: white;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}
