:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #273a32;
  background: #edf3ea;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --green: #43845e;
  --deep: #244d38;
  --mint: #dceee0;
  --paper: #fbfcf8;
  --muted: #86928a;
  --line: #e7ece4;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #edf3ea; }
button, input, textarea, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.app-shell { width: min(100%, 480px); height: 100dvh; min-height: 620px; margin: auto; display: flex; flex-direction: column; overflow: hidden; background: var(--paper); position: relative; box-shadow: 0 22px 80px #50684e1a; }
.topbar { flex: none; height: 76px; padding: max(13px, env(safe-area-inset-top)) 22px 10px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-mark { width: 43px; height: 43px; border-radius: 15px; display: grid; place-items: center; background: #e4f1e6; }
.brand-mark svg { width: 31px; height: 31px; fill: none; stroke: #43845e; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark svg path:first-child, .brand-mark svg path:nth-child(2) { fill: #80b98d; stroke: none; }
.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-copy strong { font-size: 16px; letter-spacing: .04em; font-weight: 700; color: #304c3d; }
.brand-copy small { font-size: 10px; color: #89978c; letter-spacing: .025em; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #e6ebe4; border-radius: 12px; color: #63816c; background: #fff; cursor: pointer; }
.icon-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.profile-button { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 9px 0 5px; border: 1px solid #e6ebe4; border-radius: 12px; background: #fff; color: #536e5d; font-size: 11px; cursor: pointer; }
.profile-avatar { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 9px; background: #f7ebd9; color: #ad7c49; font-size: 15px; }
.trust-line { height: 31px; margin: 0 22px; display: flex; align-items: center; gap: 7px; padding: 0 11px; border-radius: 9px; background: #f1f6ef; color: #728276; font-size: 10px; letter-spacing: .01em; }
.trust-check { color: #498c60; font-weight: 700; font-size: 12px; }
.trust-line i { height: 3px; width: 3px; border-radius: 50%; background: #b2c1b3; margin: 0 2px; }
.conversation { flex: 1 1 auto; min-height: 0; padding: 0 22px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #dfe8dc transparent; }
.welcome { padding: 3px 0 26px; }
.welcome-art { height: 178px; margin: 4px 0 5px; position: relative; overflow: hidden; border-radius: 24px; background: radial-gradient(ellipse at 49% 115%, #e5efdf 0, #e5efdf 30%, transparent 30.5%), linear-gradient(130deg,#f3f7e9 4%,#edf5eb 48%,#e5f1e7 100%); }
.art-sun { position: absolute; width: 91px; height: 91px; border-radius: 50%; right: 68px; top: 28px; background: #f7eac8; opacity: .72; }
.art-leaf { position: absolute; width: 55px; height: 29px; border-radius: 100% 0 100% 0; background: #c5dfc5; transform: rotate(-20deg); top: 42px; left: 57px; }
.leaf-two { width: 39px; height: 22px; top: 87px; left: 96px; transform: rotate(27deg); background: #d6e9d1; }
.art-ground { position: absolute; width: 186px; height: 37px; background: #d4e7d3; bottom: -22px; left: calc(50% - 93px); border-radius: 50%; }
.art-sprout { position: absolute; left: calc(50% - 33px); bottom: 21px; width: 66px; height: 98px; }
.art-sprout i { position: absolute; left: 31px; bottom: 2px; width: 4px; height: 66px; border-radius: 4px; background: #659970; transform: rotate(1deg); }
.art-sprout b { position: absolute; width: 28px; height: 42px; border-radius: 90% 12% 90% 12%; bottom: 50px; left: 5px; background: linear-gradient(140deg,#9ac99b,#61a174); transform: rotate(-35deg); }
.art-sprout b:nth-child(2) { left: 33px; bottom: 61px; transform: rotate(50deg) scaleX(-1); background: linear-gradient(120deg,#b6d8a7,#82b683); }
.art-sprout em { position: absolute; left: 20px; bottom: 3px; width: 28px; height: 26px; border-radius: 42% 46% 48% 48%; background: #f6f2de; box-shadow: inset 0 -2px #e6e4cc; }
.art-sprout em::before { content: ""; position: absolute; top: 9px; left: 8px; width: 3px; height: 4px; border-radius: 50%; background: #5d715b; box-shadow: 9px 0 #5d715b; }
.art-sprout em::after { content: ""; position: absolute; top: 12px; left: 12px; width: 5px; height: 3px; border-bottom: 1px solid #c58372; border-radius: 50%; }
.art-dot { position: absolute; width: 5px; height: 5px; background: #e6c78b; border-radius: 50%; }
.dot-one { top: 35px; right: 166px; }.dot-two { bottom: 43px; right: 88px; width: 4px; height: 4px; background: #aac7a5; }.dot-three { top: 70px; right: 32px; width: 3px; height: 3px; }
.eyebrow, .sheet-kicker { margin: 0; color: #849387; font: 600 9px/1.4 "DM Sans", sans-serif; letter-spacing: .19em; }
.welcome h1 { margin: 8px 0 9px; color: #2c4938; font-size: clamp(25px, 6.7vw, 30px); line-height: 1.46; font-weight: 600; letter-spacing: -.045em; }
.welcome h1 span { color: #568769; }
.welcome-copy { margin: 0; color: #78857c; font-size: 12px; line-height: 1.9; }
.suggestion-heading { display: flex; align-items: center; gap: 7px; margin: 24px 0 10px; font-size: 11px; font-weight: 600; color: #435c4b; }
.sparkle { color: #d2a665; font-size: 13px; }
.suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.suggestion { min-height: 53px; display: flex; align-items: center; gap: 7px; padding: 8px 9px; border: 1px solid #e9eee7; border-radius: 14px; text-align: left; background: #fff; color: #58685d; font-size: 10px; cursor: pointer; transition: transform .18s, border-color .18s; }
.suggestion:hover { transform: translateY(-1px); border-color: #cbdccc; }
.suggestion > span:nth-child(2) { flex: 1; line-height: 1.5; }
.suggestion b { color: #a3afa3; font-size: 12px; font-weight: 400; }
.suggestion-icon { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; font-size: 13px; }
.food { background: #edf4e5; color: #779452; }.bowl { background: #f9eee1; color: #c58d59; }.temp { background: #e8f2f3; color: #6795a0; }.heart { background: #f8e9e7; color: #cd8377; }
.mini-note { display: flex; align-items: center; gap: 7px; margin-top: 18px; color: #97a197; font-size: 9px; line-height: 1.6; }
.note-icon { flex: none; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #f1f4ee; color: #87978a; font: 600 10px/1 "DM Sans", sans-serif; }
.composer-wrap { flex: none; padding: 10px 20px max(13px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, #fbfcf800, #fbfcf8 17%); }
.composer { min-height: 56px; display: flex; align-items: flex-end; gap: 9px; padding: 8px 8px 8px 16px; border: 1px solid #e3eae1; border-radius: 19px; background: #fff; box-shadow: 0 6px 24px #405d4610; }
.composer:focus-within { border-color: #b8d1bc; box-shadow: 0 0 0 3px #deedde80, 0 6px 24px #405d4610; }
.composer textarea { flex: 1; max-height: 120px; min-height: 36px; padding: 8px 0 6px; resize: none; border: 0; outline: 0; color: #38483e; background: transparent; font-size: 12px; line-height: 1.6; }
.composer textarea::placeholder { color: #a0aaa0; }
.send-button { flex: none; width: 37px; height: 37px; display: grid; place-items: center; border: 0; border-radius: 13px; background: #548967; color: #fff; cursor: pointer; transition: background .18s, transform .18s; }
.send-button:hover { background: #3e7654; transform: translateY(-1px); }.send-button:disabled { background: #bdc9bd; cursor: wait; }
.send-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.composer-meta { display: flex; justify-content: space-between; gap: 8px; padding: 7px 3px 0; color: #a0aaa0; font-size: 9px; }
.disclaimer { margin: 8px 2px 0; color: #a2aaa1; text-align: center; font-size: 9px; line-height: 1.6; }
.messages { padding: 15px 0 20px; display: flex; flex-direction: column; gap: 17px; }
.message { display: flex; gap: 8px; align-items: flex-start; animation: rise .28s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.message.user { justify-content: flex-end; }
.message-avatar { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 10px; background: #e4f1e6; color: #548367; }
.message-avatar svg { width: 20px; height: 20px; fill: none; stroke: #5e926b; stroke-width: 1.8; stroke-linecap: round; }.message-avatar svg .leaf-fill { fill: #92c397; stroke: none; }
.message-card { min-width: 0; max-width: calc(100% - 38px); padding: 12px 13px; border: 1px solid #ebefe9; border-radius: 5px 15px 15px 15px; background: #fff; box-shadow: 0 4px 18px #465b4610; }
.message.user .message-card { max-width: 84%; border: 0; border-radius: 15px 5px 15px 15px; background: #e6f1e6; color: #42624b; box-shadow: none; }
.message-copy { white-space: pre-wrap; overflow-wrap: anywhere; color: #58675d; font-size: 11px; line-height: 1.85; }
.message.user .message-copy { color: #405b47; }
.message-stamp { display: flex; align-items: center; gap: 5px; margin-bottom: 7px; color: #5a8866; font-size: 9px; font-weight: 600; }
.message-stamp .tiny-sprout { color: #79a77d; font-size: 12px; }
.message-alert { margin: -2px 0 9px; padding: 8px 9px; border-left: 2px solid #d89a5c; border-radius: 4px 9px 9px 4px; background: #fff6e8; color: #8f653d; font-size: 10px; line-height: 1.65; }
.source-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #edf0eb; }
.source-label { color: #8d998d; font-size: 9px; }
.source-chip { display: flex; align-items: center; gap: 7px; width: 100%; min-width: 0; padding: 7px 8px; border: 1px solid #e8eee6; border-radius: 9px; text-align: left; background: #f9fbf7; color: #58695c; font-size: 9px; cursor: pointer; }
.source-chip .book { color: #789474; font-size: 12px; }.source-chip span:nth-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.source-chip b { color: #87a18a; font-weight: 500; }
.typing-dots { display: flex; gap: 4px; padding: 5px 2px; }.typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: #8fae91; animation: bounce 1s infinite ease-in-out; }.typing-dots i:nth-child(2) { animation-delay: .14s; }.typing-dots i:nth-child(3) { animation-delay: .28s; }
@keyframes bounce { 0%,80%,100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-4px); opacity: 1; } }
.inline-error { color: #9a6547; font-size: 10px; line-height: 1.6; }.error-retry { margin-top: 8px; padding: 5px 9px; border: 1px solid #ead9c9; border-radius: 8px; color: #8b6348; background: #fffaf4; font-size: 9px; cursor: pointer; }
.sheet { width: 100%; max-width: 480px; max-height: min(88dvh, 760px); padding: 0; border: 0; border-radius: 24px 24px 0 0; background: transparent; color: inherit; overflow: visible; align-self: end; margin: auto auto 0; }
.sheet::backdrop { background: #22342966; backdrop-filter: blur(3px); }.sheet[open] { animation: sheet-up .25s ease-out; }
@keyframes sheet-up { from { transform: translateY(20px); opacity: .65; } to { transform: translateY(0); opacity: 1; } }
.sheet-card { max-height: min(88dvh,760px); padding: 10px 22px max(22px,env(safe-area-inset-bottom)); overflow: auto; border-radius: 24px 24px 0 0; background: #fbfcf8; box-shadow: 0 -15px 50px #243b2e20; }
.sheet-handle { width: 37px; height: 4px; margin: 1px auto 19px; border-radius: 4px; background: #dce4da; }
.sheet-heading { display: flex; align-items: flex-start; justify-content: space-between; }.sheet-heading h2 { margin: 4px 0 0; color: #2f4c39; font-size: 21px; font-weight: 600; letter-spacing: -.03em; }
.close-button { width: 31px; height: 31px; border: 0; border-radius: 11px; color: #829085; background: #f0f3ed; font-size: 21px; line-height: 1; cursor: pointer; }
.sheet-intro { margin: 9px 0 19px; color: #909a90; font-size: 10px; line-height: 1.6; }
.sheet-card label { display: flex; flex-direction: column; gap: 7px; margin: 12px 0; color: #5f6e62; font-size: 10px; font-weight: 500; }
.sheet-card input, .sheet-card textarea, .sheet-card select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #e4eae1; border-radius: 11px; outline: none; background: #fff; color: #4b5c4f; font-size: 11px; }
.sheet-card input:focus, .sheet-card textarea:focus, .sheet-card select:focus { border-color: #b7d0b9; box-shadow: 0 0 0 2px #e1efe2; }.sheet-card textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.optional { margin-left: 4px; color: #a1aaa0; font-size: 9px; font-weight: 400; }
.sheet-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 19px; }.text-button { padding: 9px 4px; border: 0; color: #9a8171; background: transparent; font-size: 10px; cursor: pointer; }.primary-button { min-width: 132px; height: 42px; padding: 0 18px; border: 0; border-radius: 13px; background: #548967; color: #fff; font-size: 11px; cursor: pointer; }
.privacy-note { margin: 13px 0 0; color: #a0aaa0; font-size: 9px; line-height: 1.6; }
.source-detail { padding-top: 12px; }.source-detail h3 { margin: 0 0 6px; color: #324a39; font-size: 16px; font-weight: 600; line-height: 1.55; }.source-location { margin: 0 0 13px; color: #869286; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }.source-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 12px 0; }.source-fact { padding: 9px; border: 1px solid #e8ede5; border-radius: 10px; background: #fff; }.source-fact small { display: block; margin-bottom: 4px; color: #a0aaa0; font-size: 8px; }.source-fact strong { color: #5c715f; font-size: 10px; font-weight: 500; }.source-excerpt { margin: 13px 0; padding: 12px; border-radius: 12px; background: #f1f6ef; color: #667267; font-size: 10px; line-height: 1.85; white-space: pre-wrap; }.source-link { display: inline-flex; margin: 2px 0 8px; color: #4f8560; font-size: 10px; }
button:focus-visible, a:focus-visible { outline: 3px solid #a9cba8; outline-offset: 2px; }
@media (min-width: 481px) { body { padding: 22px 0; }.app-shell { height: calc(100dvh - 44px); min-height: 620px; border: 1px solid #e0e8dd; border-radius: 30px; }.sheet { margin-bottom: max(calc((100dvh - 760px) / 2), 0px); border-radius: 24px; }.sheet-card { border-radius: 24px; } }
@media (max-height: 720px) { .welcome-art { height: 142px; }.welcome-art .art-sprout { transform: scale(.86); transform-origin: bottom; }.welcome h1 { font-size: 25px; }.suggestion-heading { margin-top: 15px; }.mini-note { margin-top: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
