:root {
  color-scheme: light;
  --bg: #f5efe4;
  --bg-accent: #d8f0b4;
  --panel: rgba(255, 252, 246, 0.88);
  --panel-border: rgba(80, 102, 24, 0.18);
  --text: #28311a;
  --muted: #5d6a41;
  --accent: #8fc93a;
  --accent-strong: #5f8f19;
  --shadow: 0 18px 50px rgba(81, 104, 25, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Yu Gothic UI", "Hiragino Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 28%),
    radial-gradient(circle at right, rgba(143, 201, 58, 0.28), transparent 25%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-accent) 100%);
}

.app {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 24px;
}

.panel + .panel {
  margin-top: 18px;
}

.hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lead {
  margin: 0;
  max-width: 48rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.status-row,
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(143, 201, 58, 0.14);
  color: var(--accent-strong);
  font-weight: 700;
}

label,
.message-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(95, 143, 25, 0.22);
  border-radius: 18px;
  padding: 16px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

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

.ghost-button {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border: 1px solid rgba(95, 143, 25, 0.16);
}

.conversation {
  display: grid;
  gap: 16px;
}

.message {
  border-radius: 22px;
  padding: 16px 18px;
}

.message.user {
  background: rgba(255, 255, 255, 0.78);
}

.message.ai {
  background: rgba(143, 201, 58, 0.12);
}

.message p {
  margin: 0;
  white-space: pre-wrap;
}

audio {
  width: 100%;
}

@media (max-width: 640px) {
  .app {
    width: min(100% - 20px, 920px);
    padding-top: 20px;
  }

  .panel {
    padding: 18px;
    border-radius: 22px;
  }
}
