:root {
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #263b33;
  background: #f7f4e9;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 211, 120, .32), transparent 28%),
    radial-gradient(circle at 90% 15%, rgba(117, 174, 144, .25), transparent 30%),
    linear-gradient(180deg, #fbf9f1 0%, #eef5ed 100%);
}

.shell { width: min(100%, 520px); min-height: 100vh; margin: 0 auto; padding: 22px 18px 36px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.brand { font-weight: 800; letter-spacing: .06em; color: #4d765f; }
.step { color: #74857c; font-size: 13px; }
.card { background: rgba(255,255,255,.9); border: 1px solid rgba(84,119,99,.12); border-radius: 24px; padding: 24px; box-shadow: 0 16px 50px rgba(67,94,77,.11); }
.hero { padding-top: 48px; }
.sprout { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 22px; background: #e2efe4; font-size: 38px; }
.eyebrow { color: #b57832; font-size: 13px; font-weight: 800; letter-spacing: .12em; }
h1 { margin: 10px 0 12px; font-size: clamp(30px, 9vw, 44px); line-height: 1.12; color: #29493a; }
h2 { margin: 0 0 10px; font-size: 25px; color: #29493a; }
h3 { margin: 0 0 8px; color: #355b47; }
p { line-height: 1.75; }
.muted { color: #75847c; font-size: 14px; }
.quote { margin: 22px 0; padding: 16px; border-left: 4px solid #efbd68; border-radius: 12px; background: #fff8e9; color: #72552b; }
.actions { display: grid; gap: 12px; margin-top: 24px; }
.btn { width: 100%; border: 0; border-radius: 15px; padding: 15px 18px; font-weight: 800; transition: transform .15s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { color: white; background: linear-gradient(135deg, #5c9173, #3f7359); box-shadow: 0 9px 24px rgba(61,112,86,.25); }
.btn-secondary { color: #467158; background: #eaf3eb; }
.btn-ghost { color: #718078; background: transparent; border: 1px solid #d7e2d9; }
.field { margin-top: 18px; }
label { display: block; margin-bottom: 8px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #d5dfd7; border-radius: 14px; padding: 13px 14px; color: #294238; background: #fcfdfb; outline: none; }
input:focus, select:focus, textarea:focus { border-color: #6d9d80; box-shadow: 0 0 0 3px rgba(109,157,128,.14); }
textarea { min-height: 118px; resize: vertical; line-height: 1.6; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice { border: 1px solid #d7e1d9; border-radius: 14px; padding: 13px; background: #fff; text-align: left; color: #4a6155; }
.choice.active { border-color: #5f9074; background: #eaf4ec; color: #315c45; font-weight: 700; }
.progress { height: 8px; overflow: hidden; margin: 12px 0 24px; border-radius: 999px; background: #e4ebe5; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #efbd68, #68a07f); }
.chat { display: grid; gap: 13px; margin: 18px 0; }
.bubble { max-width: 88%; padding: 13px 15px; border-radius: 17px; line-height: 1.65; }
.bubble.ai { background: #edf4ee; border-bottom-left-radius: 5px; }
.bubble.user { justify-self: end; color: white; background: #5d8d72; border-bottom-right-radius: 5px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tag { padding: 8px 11px; border-radius: 999px; color: #426d54; background: #e6f1e8; font-size: 13px; }
.task-box { margin-top: 18px; padding: 18px; border-radius: 18px; background: #fff8e7; border: 1px solid #f0deb5; }
.task-meta { display: flex; gap: 10px; color: #7e6941; font-size: 13px; }
.task-box ol { padding-left: 22px; line-height: 1.8; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; margin: 18px 0; }
.stat { padding: 15px; border-radius: 16px; background: #edf5ee; }
.stat strong { display: block; font-size: 25px; color: #416d54; }
.notice { padding: 13px; border-radius: 13px; background: #f4f1e8; color: #786f5e; font-size: 12px; line-height: 1.6; }
.checkline { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; color: #64736b; font-size: 13px; line-height: 1.5; }
.checkline input { width: auto; margin-top: 3px; }
.error { margin-top: 10px; color: #a64d44; font-size: 13px; }
.day-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 20px 0; }
.day-chip { border: 1px solid #d9e2db; border-radius: 14px; padding: 11px 5px; color: #68786f; background: #fff; }
.day-chip strong, .day-chip span { display: block; }
.day-chip strong { font-size: 19px; }
.day-chip span { margin-top: 3px; font-size: 10px; }
.day-chip.current { border-color: #e2ae55; background: #fff7e6; color: #7d5a22; }
.day-chip.done { border-color: #70a084; background: #e7f2e9; color: #386248; }
.day-chip:disabled { cursor: not-allowed; opacity: .38; }
.rating { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rate { border: 1px solid #d7e1d9; border-radius: 12px; padding: 10px 0; color: #587064; background: #fff; }
.rate.active { border-color: #5f9074; color: white; background: #5f9074; }
.post-list { display: grid; gap: 14px; margin-top: 20px; }
.post { padding: 17px; border: 1px solid #dce6de; border-radius: 18px; background: #fff; }
.post-head { display: flex; justify-content: space-between; color: #738179; font-size: 12px; }
.post img { width: 100%; max-height: 340px; object-fit: cover; margin: 10px 0; border-radius: 14px; }
.auth-card { margin-top: 5vh; }
.account-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; color: #62746a; font-size: 14px; }
.text-button { border: 0; padding: 6px 0; color: #557863; background: transparent; }
.server-status { margin: 12px 0 18px; padding: 10px 12px; border-radius: 10px; background: #f4f1e8; color: #786f5e; font-size: 12px; line-height: 1.5; }
.server-status.ok { background: #e8f3eb; color: #3e7252; }
.server-status.error { background: #fff0ee; color: #a64d44; }

@media (max-width: 380px) { .card { padding: 20px; } .choice-grid { grid-template-columns: 1fr; } }
