:root {
  --ink: #18312b;
  --muted: #6d7a75;
  --paper: #f8f5ee;
  --card: #fffdf8;
  --line: #dedfd7;
  --green: #1e694f;
  --green-dark: #144b3a;
  --lime: #dff08d;
  --peach: #f4b58b;
  --shadow: 0 22px 60px rgba(24, 49, 43, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(223,240,141,.48), transparent 27rem),
    radial-gradient(circle at 100% 35%, rgba(244,181,139,.22), transparent 25rem),
    var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  min-height: 100vh;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.page-shell { width: min(100% - 32px, 760px); margin: 0 auto; }
.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 780; letter-spacing: -.03em; }
.brand small { margin-left: 4px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.brand-mark { width: 31px; height: 31px; border-radius: 10px 10px 10px 3px; display: grid; place-items: center; background: var(--ink); color: var(--lime); font-family: Georgia, serif; font-size: 18px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.locale-select { width: auto; max-width: 145px; height: 40px; padding: 0 30px 0 12px; border-radius: 999px; background-color: rgba(255,255,255,.55); font-size: 12px; font-weight: 700; cursor: pointer; }
.icon-button { width: 40px; height: 40px; border: 1px solid rgba(24,49,43,.14); background: rgba(255,255,255,.55); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.hero { padding: 54px 4px 38px; }
.shop-badge { display: inline-flex; gap: 8px; align-items: center; border: 1px solid rgba(24,49,43,.12); border-radius: 999px; padding: 8px 13px; background: rgba(255,255,255,.42); font-size: 13px; font-weight: 650; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ca678; box-shadow: 0 0 0 4px rgba(76,166,120,.13); }
.eyebrow { margin: 28px 0 12px; font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--green); }
.hero h1 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(42px, 7vw, 64px); line-height: 1.12; letter-spacing: -.045em; font-weight: 500; }
.hero h1 em { color: var(--green); font-style: normal; position: relative; }
.hero-copy { max-width: 520px; color: var(--muted); line-height: 1.8; font-size: 16px; margin: 22px 0 0; }
.review-card { border: 1px solid rgba(24,49,43,.12); background: rgba(255,253,248,.87); box-shadow: var(--shadow); border-radius: 28px; padding: 34px; backdrop-filter: blur(12px); }
.section-heading, .result-intro { display: flex; gap: 15px; align-items: flex-start; }
.step-number { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: .05em; }
h2 { margin: 1px 0 5px; font-size: 21px; letter-spacing: -.025em; }
.section-heading p, .result-intro p { margin: 0; color: var(--muted); font-size: 13px; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 11px 15px; background: white; cursor: pointer; transition: .18s ease; }
.chip:hover { transform: translateY(-1px); border-color: #aab7b0; }
.chip.selected { background: var(--ink); color: white; border-color: var(--ink); }
.chip.selected::before { content: "✓"; margin-right: 7px; color: var(--lime); }
.offering-group{margin:-4px 0 27px;padding:17px 18px 1px;border-radius:17px;background:rgba(223,240,141,.22);border:1px solid rgba(30,105,79,.09)}.offering-heading{display:flex;justify-content:space-between;gap:15px;align-items:baseline}.offering-heading b{font-size:13px}.offering-heading span{color:var(--muted);font-size:11px}.offering-chips{margin:13px 0 16px}.offering-chips .chip{background:rgba(255,255,255,.78);padding:9px 13px;font-size:12px}.offering-chips .chip.selected{background:var(--ink)}
.field-group { position: relative; margin-top: 22px; }
.field-group label { display: flex; justify-content: space-between; font-weight: 680; font-size: 14px; margin: 0 2px 9px; }
.optional { color: #9a9f9b; font-size: 12px; font-weight: 500; }
textarea, input, select { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.78); color: var(--ink); outline: none; transition: .18s; }
textarea { resize: vertical; min-height: 108px; padding: 15px 16px 27px; line-height: 1.6; }
input, select { padding: 13px 14px; }
textarea:focus, input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,105,79,.09); }
.textarea-wrap { position: relative; }
.counter { position: absolute; right: 13px; bottom: 10px; color: #9a9f9b; font-size: 11px; }
.counter b { font-weight: 500; }
.voice-button { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: white; color: var(--green); font-size: 12px; font-weight: 750; cursor: pointer; }
.voice-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.voice-button.listening { color: white; background: #b84e42; border-color: #b84e42; animation: voice-pulse 1.2s infinite; }
.voice-help { display: inline; margin-left: 7px; color: #929992; font-size: 10px; }
@keyframes voice-pulse { 50% { box-shadow: 0 0 0 5px rgba(184,78,66,.12); } }
.compact-field { margin-top: 16px; }
.preference-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 9px; font-size: 12px; color: var(--muted); font-weight: 650; }
.segmented { display: flex; padding: 3px; height: 47px; border: 1px solid var(--line); background: white; border-radius: 14px; }
.segmented button { flex: 1; border: 0; background: transparent; border-radius: 10px; cursor: pointer; font-size: 13px; }
.segmented button.active { color: white; background: var(--green); }
.primary-button { width: 100%; border: 0; border-radius: 15px; padding: 16px 18px; color: white; background: var(--green); font-weight: 750; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 18px; transition: .2s ease; box-shadow: 0 8px 20px rgba(30,105,79,.18); }
.primary-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.primary-button:disabled, .text-button:disabled { opacity: .6; cursor: wait; transform: none; }
.button-arrow { font-size: 20px; transition: transform .2s; }
.primary-button:hover .button-arrow { transform: translateX(4px); }
.trust-note { margin: 13px 0 0; color: var(--muted); text-align: center; font-size: 11px; }
.trust-note span { color: var(--green); font-weight: bold; }
.form-error { min-height: 18px; color: #ad3e32; font-size: 12px; margin: 10px 2px 4px; }
.result-section { padding: 48px 0 10px; }
.draft-list { display: grid; gap: 14px; margin-top: 22px; }
.preference-hint { margin: 18px 0 -8px 49px; padding: 9px 12px; border-radius: 10px; background: rgba(223,240,141,.35); color: var(--green-dark); font-size: 11px; }
.draft-card { position: relative; border: 1px solid var(--line); background: var(--card); border-radius: 20px; padding: 20px; box-shadow: 0 7px 24px rgba(24,49,43,.05); }
.draft-label { color: var(--green); font-weight: 800; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.draft-text { width: 100%; min-height: 112px; margin: 10px 0 14px; padding: 0; border: 0; background: transparent; font-size: 15px; line-height: 1.8; resize: vertical; }
.draft-text:focus { box-shadow: none; }
.draft-actions { display: flex; gap: 9px; }
.draft-actions button { flex: 1; border-radius: 11px; padding: 11px; cursor: pointer; font-weight: 700; font-size: 13px; }
.copy-button { border: 1px solid var(--line); background: white; }
.publish-button { border: 1px solid var(--green); background: var(--green); color: white; }
.text-button { display: block; margin: 18px auto 0; border: 0; background: transparent; color: var(--green); font-weight: 700; cursor: pointer; padding: 10px; }
.batch-status { margin: 16px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; text-align: center; }
.calibration-panel { margin: 18px 0 4px; padding: 18px; border: 1px solid rgba(30,105,79,.14); border-radius: 17px; background: rgba(223,240,141,.19); }
.calibration-panel strong, .generation-limit strong { display: block; font-size: 14px; }
.calibration-panel > p, .generation-limit p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.feedback-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.feedback-chips button { border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; background: rgba(255,255,255,.88); color: var(--ink); cursor: pointer; font-size: 11px; transition: .18s ease; }
.feedback-chips button:hover { border-color: var(--green); }
.feedback-chips button.selected { border-color: var(--ink); background: var(--ink); color: white; }
.feedback-chips button.selected::before { content: "✓"; margin-right: 5px; color: var(--lime); }
.calibration-panel .feedback-error { min-height: 16px; margin-top: 8px; color: #ad3e32; }
.generation-limit { margin-top: 18px; padding: 18px; border-radius: 17px; background: rgba(24,49,43,.06); text-align: center; }
.hidden { display: none; }
footer { display: flex; justify-content: space-between; padding: 50px 3px 35px; color: #929992; font-size: 11px; }
footer span:first-child { font-weight: 800; color: var(--ink); }
dialog { width: min(92vw, 480px); border: 0; border-radius: 24px; padding: 0; color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.22); }
dialog::backdrop { background: rgba(15,28,24,.42); backdrop-filter: blur(3px); }
dialog form { padding: 28px; }
.dialog-header { display: flex; justify-content: space-between; margin-bottom: 25px; }
.dialog-header .eyebrow { margin: 0 0 6px; }
.dialog-header .icon-button { font-size: 24px; border: 0; }
dialog label { display: block; margin: 16px 0; font-size: 13px; font-weight: 700; }
dialog label input { margin-top: 8px; font-weight: 400; }
.field-help { color: var(--muted); font-size: 11px; margin: -7px 0 20px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 20px 0; }
.metric { padding: 12px; background: var(--paper); border-radius: 12px; text-align: center; }
.metric b { display: block; font-size: 20px; }
.metric span { font-size: 10px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; color: white; background: var(--ink); border-radius: 999px; padding: 11px 17px; font-size: 13px; transition: .25s; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 600px) {
  .page-shell { width: min(100% - 22px, 760px); }
  .topbar { height: 66px; }
  .locale-select { max-width: 112px; }
  .hero { padding: 38px 5px 28px; }
  .hero h1 { font-size: 39px; }
  .hero-copy { font-size: 14px; }
  .review-card { padding: 24px 18px; border-radius: 22px; }
  .chip-grid { gap: 8px; }
  .chip { padding: 10px 12px; font-size: 13px; }
  .preference-row { grid-template-columns: 1fr; gap: 16px; }
  .draft-actions { flex-direction: column; }
  .voice-help { display: block; margin: 6px 2px 0; }
  .preference-hint { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
