* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
  background: #f7f7f5;
  color: #222;
}

h1 { font-size: 1.3rem; }
h2 { font-size: 1.1rem; margin-top: 24px; }

.field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label { font-weight: 600; font-size: 0.9rem; }

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

textarea { resize: vertical; }

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radio-group label {
  font-weight: normal;
  display: flex;
  align-items: center;
  gap: 4px;
}

button {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  background: #2f6f4f;
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

button:active { opacity: 0.85; }

.button-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.errors {
  background: #fdecea;
  color: #b3261e;
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.invalid {
  border-color: #b3261e !important;
  outline: 1px solid #b3261e;
}

#clear-draft-btn {
  background: #999;
  margin-top: 24px;
  width: 100%;
}

#weather-status { font-size: 0.95rem; }

.generate-status {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #555;
}

.generate-status.error {
  color: #b3261e;
}
