:root {
  color: #182024;
  background: #f6f1e9;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 10% 0%, #ffd8a8, transparent 34%), #f6f1e9;
}

.app-shell { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 68px 0; }
.eyebrow { color: #b34e20; font-size: .78rem; font-weight: 800; letter-spacing: .15em; margin: 0; }
h1 { font-family: Georgia, "Songti SC", serif; font-size: clamp(2.4rem, 8vw, 4.5rem); line-height: 1; margin: 12px 0; }
.subtitle { color: #586165; line-height: 1.6; margin: 0 0 32px; }
.generator-form, .upload-panel, .result { background: #fffdf9; border: 1px solid #e6ddd1; border-radius: 20px; box-shadow: 0 18px 50px #4b260b15; padding: 24px; }
.generator-form label { display: block; font-weight: 700; margin-bottom: 8px; }
textarea, select { border: 1px solid #d6cbbd; border-radius: 10px; color: inherit; font: inherit; padding: 12px; width: 100%; }
textarea { min-height: 136px; resize: vertical; }
.options { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); margin: 18px 0 24px; }
.options label { font-size: .9rem; }
button, .button { background: #1c4b3c; border: 0; border-radius: 10px; color: white; cursor: pointer; display: inline-flex; font: inherit; font-weight: 700; justify-content: center; padding: 13px 18px; text-decoration: none; }
button:disabled { cursor: wait; opacity: .65; }
.generator-form > button { width: 100%; }
.upload-panel { margin-top: 24px; }
.upload-panel h2 { font-size: 1.2rem; margin: 0; }
.upload-panel p { color: #586165; line-height: 1.5; }
.upload-panel input { display: block; margin: 16px 0; max-width: 100%; }
.result { margin-top: 24px; }
.status { color: #4b5658; line-height: 1.5; margin: 0 0 16px; }
.status.error { color: #b42318; }
#generated-image { border-radius: 12px; display: block; height: auto; max-width: 100%; }
.actions { display: flex; gap: 12px; margin-top: 16px; }
.button.secondary { background: #7c3028; }
@media (max-width: 520px) { .app-shell { padding: 36px 0; } .options { grid-template-columns: 1fr; } .actions { flex-direction: column; } }
