:root {
  --forest: #173f2d;
  --forest-2: #245b40;
  --leaf: #3f8d4f;
  --leaf-soft: #eaf3e7;
  --lime: #b9d94f;
  --paper: #ffffff;
  --page: #edf1eb;
  --panel: #f5f7f3;
  --ink: #19261e;
  --muted: #708078;
  --line: #d9e2da;
  --line-strong: #c8d5ca;
  --danger: #b24e42;
  --shadow: 0 12px 34px rgba(23, 63, 45, 0.07);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, textarea:focus-visible { outline: 3px solid rgba(185, 217, 79, 0.5); outline-offset: 2px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-shell {
  display: grid;
  grid-template-columns: clamp(260px, 18vw, 310px) minmax(600px, 1fr) clamp(260px, 18vw, 310px);
  gap: 12px;
  min-height: 100vh;
  padding: 12px;
}

.left-sidebar, .right-sidebar, .chat-panel, .context-banner {
  border: 1px solid var(--line);
  background: var(--paper);
}

.left-sidebar, .right-sidebar {
  position: sticky;
  top: 12px;
  height: calc(100vh - 24px);
  overflow: auto;
  border-radius: 17px;
  box-shadow: var(--shadow);
}

.left-sidebar { display: flex; flex-direction: column; padding: 18px 14px; scrollbar-width: none; -ms-overflow-style: none; }
.left-sidebar::-webkit-scrollbar { display: none; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 18px; }
.brand-mark { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 12px; color: var(--forest); background: var(--lime); }
.brand-mark svg { width: 25px; height: 25px; }
.brand small, .brand h1 { display: block; margin: 0; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: 0.05em; }
.brand h1 { margin-top: 3px; font-family: Georgia, "Noto Serif SC", serif; font-size: 18px; }
.section-label { margin: 0 8px 8px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.expert-nav { display: grid; gap: 6px; }
.expert-button { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; align-items: center; width: 100%; padding: 10px; border: 1px solid transparent; border-radius: 11px; color: var(--ink); text-align: left; background: transparent; }
.expert-button:hover { background: #f7f9f6; }
.expert-button.active { border-color: #b8d0ba; background: var(--leaf-soft); }
.expert-button.active::before { position: absolute; top: 11px; bottom: 11px; left: -15px; width: 3px; border-radius: 3px; background: var(--leaf); content: ""; }
.expert-icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--forest-2); background: #f8faf7; }
.expert-button.active .expert-icon { border-color: var(--forest-2); color: white; background: var(--forest-2); }
.expert-button strong, .expert-button small { display: block; }
.expert-button strong { font-size: 15px; }
.expert-button small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.history-section { display: grid; gap: 14px; margin-top: 20px; padding: 16px 2px 0; border-top: 1px solid var(--line); }
.new-chat-button { display: flex; min-height: 46px; align-items: center; justify-content: center; gap: 7px; width: 100%; border: 1px solid var(--forest-2); border-radius: 9px; color: white; background: var(--forest-2); font-size: 14px; font-weight: 700; }
.new-chat-button:hover { background: var(--forest); }
.new-chat-button svg { width: 17px; height: 17px; }
.history-heading { display: flex; align-items: center; justify-content: space-between; }
.history-heading strong { font-size: 15px; }
.history-heading button { padding: 3px 0; border: 0; color: var(--leaf); background: transparent; font-size: 12px; font-weight: 700; }
.history-list {
  display: grid;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.history-list::-webkit-scrollbar { display: none; }
.history-item { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 72px; padding: 10px 34px 10px 10px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.history-item:hover, .history-item.active { border-color: #a9c4ab; background: #f3f7f1; }
.history-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 9px; color: var(--forest-2); background: var(--leaf-soft); font-size: 11px; font-weight: 800; }
.history-copy { min-width: 0; }
.history-copy strong, .history-copy small { display: block; }
.history-copy strong { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.history-copy small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.history-delete { position: absolute; right: 7px; bottom: 9px; display: grid; width: 25px; height: 25px; place-items: center; border: 0; border-radius: 6px; color: #a2afa6; background: transparent; }
.history-delete:hover { color: var(--danger); background: white; }
.history-delete svg { width: 14px; height: 14px; }
.history-empty { margin: 0; padding: 18px 10px; border: 1px dashed var(--line-strong); color: var(--muted); font-size: 12px; text-align: center; }

.main-workspace { display: flex; height: calc(100vh - 24px); min-width: 0; min-height: 0; flex-direction: column; gap: 10px; }
.workspace-header { display: flex; min-height: 60px; align-items: center; gap: 10px; padding: 0 4px; }
.header-icon, .context-icon, .stage-heading-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid #bcd0bd; border-radius: 10px; color: var(--forest-2); background: var(--leaf-soft); }
.workspace-header p, .workspace-header h2 { margin: 0; }
.workspace-header p { color: var(--leaf); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.workspace-header h2 { margin-top: 2px; font-family: Georgia, "Noto Serif SC", serif; font-size: 24px; }
.ready-pill { margin-left: auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; font-size: 11px; }
.ready-pill i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--leaf); }
.context-banner { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-radius: 12px; }
.context-icon { width: 34px; height: 34px; flex-basis: 34px; }
.context-banner p, .context-banner h3 { margin: 0; }
.context-banner p { color: var(--leaf); font-size: 11px; font-weight: 700; }
.context-banner h3 { margin-top: 3px; font-family: Georgia, "Noto Serif SC", serif; font-size: 20px; }

.chat-panel { display: flex; min-height: 0; flex: 1; flex-direction: column; overflow: hidden; border-radius: 15px; box-shadow: var(--shadow); }
.chat-window { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 14px; padding: 18px; overflow-y: auto; background: var(--panel); scroll-behavior: smooth; }
.message { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; max-width: 92%; }
.message.user { grid-template-columns: minmax(0, 1fr) 34px; align-self: flex-end; }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #bed1bf; border-radius: 9px; color: var(--forest-2); background: var(--leaf-soft); font-size: 11px; font-weight: 800; }
.avatar svg { width: 20px; height: 20px; stroke-width: 1.9; }
.assistant-avatar { border-radius: 11px 11px 11px 4px; background: #e7f2e4; }
.message.user .avatar { grid-column: 2; border-color: #bfd0c1; border-radius: 11px 11px 4px 11px; color: white; background: var(--forest-2); }
.bubble { padding: 13px 15px; border: 1px solid var(--line); border-radius: 4px 12px 12px 12px; color: #425149; background: white; font-size: 14px; line-height: 1.7; }
.message.user .bubble { grid-column: 1; grid-row: 1; border-color: #b9ceb9; border-radius: 12px 4px 12px 12px; background: var(--leaf-soft); }
.bubble p { margin: 0; }
.bubble p + p { margin-top: 7px; }
.bubble strong { color: var(--forest); }
.source { display: block; margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line); color: var(--leaf); font-size: 11px; font-weight: 700; }
.conversation-session-strip { display: grid; gap: 2px; max-width: calc(92% - 44px); margin-left: 44px; padding: 10px 13px; border-left: 3px solid var(--lime); color: #dce8de; background: var(--forest); }
.conversation-session-strip span { color: #b8cebc; font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.conversation-session-strip strong { color: white; font-size: 14px; }
.conversation-session-strip p { margin: 0; font-size: 11px; }
.stage-story-heading { display: flex; align-items: baseline; gap: 9px; margin-bottom: 9px; }
.stage-story-heading span { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; color: white; background: var(--forest-2); font-size: 9px; font-weight: 700; }
.stage-story-heading strong { font-family: Georgia, "Noto Serif SC", serif; font-size: 16px; }
.option-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 0 44px; max-width: 88%; }
.option-button { min-width: 112px; padding: 10px 12px; border: 1px solid #b9cbbb; border-radius: 8px; color: var(--forest); background: white; font-size: 13px; font-weight: 700; text-align: left; }
.option-button:hover { border-color: var(--leaf); background: #f1f6ef; transform: translateY(-1px); }
.option-button small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 400; }
.option-button.primary { border-color: var(--forest-2); color: white; background: var(--forest-2); }
.option-button.primary small { color: #cbd9ce; }
.option-wrap.used .option-button { cursor: default; opacity: 0.45; pointer-events: none; }
.crop-browser { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 88%; margin: -4px 0 0 44px; }
.crop-card { position: relative; display: flex; min-height: 218px; padding: 15px; overflow: hidden; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; color: #435148; background: white; text-align: left; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.crop-card::before { position: absolute; inset: 0 0 auto; height: 4px; background: var(--card-accent, var(--leaf)); content: ""; }
.crop-card:hover { border-color: var(--card-accent, var(--leaf)); box-shadow: 0 10px 22px rgba(23, 63, 45, .09); transform: translateY(-2px); }
.crop-card.recommended { border-color: #a8c770; box-shadow: 0 8px 18px rgba(63, 141, 79, .08); }
.crop-tone-1 { --card-accent: #4e9a58; --card-soft: #e8f3e5; }
.crop-tone-2 { --card-accent: #78a64c; --card-soft: #eff6e4; }
.crop-tone-3 { --card-accent: #259477; --card-soft: #e2f4ee; }
.crop-tone-4 { --card-accent: #478c69; --card-soft: #e6f1ea; }
.crop-tone-5 { --card-accent: #a05f83; --card-soft: #f5e9ef; }
.crop-tone-6 { --card-accent: #65964d; --card-soft: #ebf3e5; }
.crop-card-visual { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--card-accent); background: var(--card-soft); }
.crop-card-visual svg { width: 25px; height: 25px; stroke-width: 1.7; }
.crop-card-type { position: absolute; top: 17px; right: 13px; padding: 4px 7px; border-radius: 999px; color: var(--card-accent); background: var(--card-soft); font-size: 10px; font-weight: 700; }
.crop-card-name { display: flex; align-items: center; gap: 6px; margin-top: 11px; color: var(--forest); font-size: 16px; }
.crop-card-name em { padding: 2px 6px; border-radius: 999px; color: white; background: var(--leaf); font-size: 8px; font-style: normal; }
.crop-card-trait { display: -webkit-box; min-height: 36px; margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.crop-card-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-top: 10px; }
.crop-card-meta > span { padding: 7px; border-radius: 7px; background: #f6f8f5; }
.crop-card-meta small, .crop-card-meta b { display: block; }
.crop-card-meta small { color: var(--muted); font-size: 9px; }
.crop-card-meta b { margin-top: 2px; color: var(--forest); font-size: 11px; }
.crop-card-action { display: flex; justify-content: space-between; margin-top: auto; padding-top: 10px; color: var(--card-accent); font-size: 11px; font-weight: 700; }
.crop-browser.used .crop-card { opacity: 0.5; pointer-events: none; }
.variety-profile { margin: 10px 0; overflow: hidden; border: 1px solid #cfddcf; border-radius: 10px; background: #fbfcfa; }
.variety-profile-title { padding: 12px 14px; color: white; background: var(--forest-2); }
.variety-profile-title span { color: #cce0cf; font-size: 10px; font-weight: 700; }
.variety-profile-title h4 { margin: 3px 0; font-size: 18px; }
.variety-profile-title p { color: #e2ece4; font-size: 12px; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.profile-grid > div { padding: 9px 10px; background: white; }
.profile-grid span, .profile-grid strong { display: block; }
.profile-grid span { color: var(--muted); font-size: 9px; }
.profile-grid strong { margin-top: 3px; color: var(--forest); font-size: 12px; }
.planting-advice { padding: 11px 13px; border-top: 1px solid var(--line); background: #f0f5ec; }
.planting-advice > strong { color: var(--leaf); font-size: 11px; }
.planting-advice p { margin-top: 4px; font-size: 12px; }
.scene-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 10px 0; }
.scene-comparison section { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fafbf9; }
.scene-comparison section.selected { border-color: var(--leaf); box-shadow: inset 0 3px var(--lime); background: #f1f6ee; }
.scene-comparison section > span { color: var(--leaf); font-size: 10px; font-weight: 700; }
.scene-comparison h4 { margin: 4px 0 8px; color: var(--forest); font-size: 13px; }
.scene-comparison dl, .scene-comparison dd { margin: 0; }
.scene-comparison dl { display: grid; gap: 7px; }
.scene-comparison dt { color: var(--muted); font-size: 9px; font-weight: 700; }
.scene-comparison dd { margin-top: 2px; color: #526158; font-size: 11px; line-height: 1.5; }
.scene-decision { padding: 11px 13px; border-left: 3px solid var(--lime); background: #edf4e8; }
.scene-decision span { color: var(--leaf); font-size: 10px; font-weight: 700; }
.scene-decision h4 { margin: 3px 0 5px; color: var(--forest); font-size: 14px; }
.scene-decision p { font-size: 12px; }
.scene-decision > strong { display: block; margin-top: 7px; color: #8a5b23; font-size: 11px; }
.result-card { margin-top: 10px; padding: 12px; border-left: 3px solid var(--lime); background: #f0f4eb; }
.result-card > span { display: block; color: var(--leaf); font-size: 11px; font-weight: 700; }
.result-card h4 { margin: 4px 0 5px; color: var(--forest); font-size: 15px; }
.result-card p { color: #59675e; font-size: 13px; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 10px; border: 1px solid var(--line); background: var(--line); }
.metric { padding: 8px; background: white; }
.metric span, .metric strong { display: block; }
.metric span { color: var(--muted); font-size: 10px; }
.metric strong { margin-top: 3px; color: var(--forest); font-size: 13px; }
.parameter-panel { display: grid; gap: 13px; max-width: 88%; margin: -4px 0 0 44px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.parameter-panel > strong { color: var(--forest); font-size: 15px; }
.parameter-panel > small { color: var(--muted); font-size: 11px; }
.range-control { display: grid; gap: 7px; color: #4f5f55; font-size: 13px; }
.range-control span { display: flex; justify-content: space-between; gap: 12px; }
.range-control b { color: var(--leaf); font-size: 11px; }
.range-control input { width: 100%; accent-color: var(--forest-2); }
.panel-submit { justify-self: start; padding: 10px 22px; border: 1px solid var(--forest-2); border-radius: 8px; color: white; background: var(--forest-2); font-size: 13px; font-weight: 700; }
.panel-submit:hover { background: var(--forest); }
.parameter-panel.used { opacity: 0.58; pointer-events: none; }
.day-log { margin-top: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfa; }
.day-log p + p { margin-top: 5px; padding-top: 5px; border-top: 1px dashed var(--line); }
.seedling-log p { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 9px; align-items: center; }
.seedling-log p > span { color: #536259; }
.seedling-log p > em { padding: 3px 7px; border-radius: 999px; color: var(--leaf); background: var(--leaf-soft); font-size: 9px; font-style: normal; white-space: nowrap; }
.seedling-log .event-row { margin: 7px -3px -3px; padding: 9px 3px 3px; color: #8a5b23; background: #fff8e9; }
.seedling-log .event-row > em { color: #9a661d; background: #f7e6bd; }
.seedling-warning { padding: 13px 14px; border: 1px solid #e4cf9e; border-left: 4px solid #d59a2d; border-radius: 9px; background: #fff9ec; }
.seedling-warning > span { color: #9a661d; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.seedling-warning h4 { margin: 4px 0 7px; color: #7b4e18; font-size: 16px; }
.seedling-warning p { color: #655843; }
.seedling-warning > strong { display: block; margin-top: 8px; color: var(--forest); font-size: 12px; }
.seedling-evaluation { margin-top: 10px; overflow: hidden; border: 1px solid #cad8ca; border-radius: 10px; background: white; }
.evaluation-heading { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; color: white; background: var(--forest-2); }
.evaluation-heading span { color: #cfe0d2; font-size: 10px; }
.evaluation-heading h4 { margin: 2px 0 0; font-size: 22px; }
.evaluation-heading > strong { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; font-size: 20px; line-height: 1; }
.evaluation-heading > strong small { margin-top: -12px; font-size: 8px; font-weight: 400; }
.grade-良 .evaluation-heading { background: #4d7f54; }
.grade-中 .evaluation-heading { background: #8a6a34; }
.evaluation-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.evaluation-checks span { padding: 9px 8px; color: #4d5c52; background: white; font-size: 10px; text-align: center; }
.seedling-evaluation > p { padding: 11px 13px; color: #55645a; background: #f3f7f1; font-size: 12px; }
.choice-forecast { padding: 12px 13px; border: 1px solid #cad9ca; border-left: 4px solid var(--leaf); border-radius: 9px; background: #f3f8f0; }
.choice-forecast.warning { border-color: #e3d1a6; border-left-color: #d49a31; background: #fff9ed; }
.choice-forecast > span { color: var(--leaf); font-size: 10px; font-weight: 700; }
.choice-forecast.warning > span { color: #9a671e; }
.choice-forecast h4 { margin: 4px 0 5px; color: var(--forest); font-size: 14px; }
.choice-forecast p { color: #536158; font-size: 12px; }
.decision-preview { margin-top: 10px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.decision-preview > span { color: var(--leaf); font-size: 10px; font-weight: 700; }
.decision-preview > div { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.decision-preview > div strong { padding: 6px 9px; border-radius: 7px; color: var(--forest); background: var(--leaf-soft); font-size: 12px; }
.decision-preview > div b { color: var(--muted); }
.decision-preview p { color: var(--muted); font-size: 11px; }
.nutrition-report { margin-top: 10px; overflow: hidden; border: 1px solid #cbd9cb; border-radius: 10px; background: white; }
.nutrition-report > span { display: block; padding: 11px 13px 0; color: var(--leaf); font-size: 10px; font-weight: 700; }
.nutrition-report > h4 { margin: 4px 13px 10px; color: var(--forest); font-size: 14px; line-height: 1.6; }
.nutrition-description { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--line); }
.nutrition-description > div { padding: 10px 12px; background: #fafbf9; }
.nutrition-description b { color: var(--forest); font-size: 10px; }
.nutrition-description p { margin-top: 3px; color: #59675e; font-size: 11px; }
.nutrition-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.nutrition-metrics > div { padding: 10px 8px; background: white; }
.nutrition-metrics span, .nutrition-metrics strong { display: block; }
.nutrition-metrics span { color: var(--muted); font-size: 9px; }
.nutrition-metrics strong { margin-top: 3px; color: var(--forest); font-size: 12px; }
.nutrition-summary { padding: 12px 13px; border-top: 3px solid var(--lime); background: var(--forest); }
.nutrition-summary span { display: block; color: #b9d0be; font-size: 9px; }
.nutrition-summary strong { display: block; margin-top: 4px; color: white; font-size: 13px; }
.nutrition-summary p { margin-top: 5px; color: #d5e0d7; font-size: 11px; }
.standard-list { display: grid; gap: 1px; margin: 10px 0; border: 1px solid var(--line); background: var(--line); }
.standard-list div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; background: white; }
.standard-list span { color: var(--muted); font-size: 11px; }
.standard-list strong { font-size: 11px; }
.harvest-standard-list { display: grid; gap: 1px; margin: 10px 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--line); }
.harvest-standard-list > div { display: grid; grid-template-columns: 1.15fr 1.15fr 1.25fr .75fr; gap: 8px; align-items: center; padding: 9px 10px; background: white; }
.harvest-standard-list .heading { color: var(--muted); background: #eef4eb; font-size: 9px; font-weight: 700; }
.harvest-standard-list span { color: #58665d; font-size: 10px; }
.harvest-standard-list strong { color: var(--leaf); font-size: 10px; }
.harvest-ending { padding: 15px; border: 1px solid #c9dac8; border-radius: 11px; background: linear-gradient(135deg, #eef7e9, white); }
.harvest-ending.regret { border-color: #decfb8; background: linear-gradient(135deg, #fff7e8, white); }
.harvest-ending > span { color: var(--leaf); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.harvest-ending.regret > span { color: #9a681f; }
.harvest-ending h4 { margin: 4px 0 7px; color: var(--forest); font-size: 17px; }
.harvest-ending p { color: #526158; line-height: 1.8; }
.harvest-ending > strong { display: block; margin-top: 9px; color: var(--leaf); font-size: 11px; }
.harvest-ending.regret > strong { color: #9a681f; }
.final-report { overflow: hidden; border: 1px solid #cad8ca; border-radius: 11px; background: white; }
.final-report-heading { position: relative; padding: 14px 80px 14px 15px; color: white; background: var(--forest-2); }
.final-report-heading > span { color: #c8dccd; font-size: 10px; }
.final-report-heading h4 { margin: 3px 0 0; font-size: 18px; }
.final-report-heading > strong { position: absolute; top: 12px; right: 15px; display: grid; width: 56px; height: 56px; place-items: center; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; font-size: 19px; line-height: 1; }
.final-report-heading > strong small { margin-top: -13px; font-size: 7px; font-weight: 400; }
.final-report .quality-grid { margin: 0; border-width: 0 0 1px; }
.planting-summary { padding: 12px 14px; }
.planting-summary > span, .learning-achievements > span { color: var(--leaf); font-size: 10px; font-weight: 700; }
.planting-summary > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 8px; }
.planting-summary p { padding: 8px; border-radius: 7px; background: #f5f8f3; }
.planting-summary small, .planting-summary strong { display: block; }
.planting-summary small { color: var(--muted); font-size: 8px; }
.planting-summary strong { margin-top: 3px; color: var(--forest); font-size: 10px; }
.planting-summary blockquote { margin: 9px 0 0; padding: 9px 11px; border-left: 3px solid var(--lime); color: #55635a; background: #eef4e9; font-size: 11px; }
.learning-achievements { padding: 12px 14px; border-top: 1px solid var(--line); background: #fbfcfa; }
.learning-achievements ol { display: grid; gap: 6px; margin: 8px 0 0; padding-left: 19px; color: #526158; font-size: 11px; }
.learning-achievements b { color: var(--forest); }
.quality-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin: 10px 0; border: 1px solid var(--line); background: var(--line); }
.quality-grid div { padding: 8px 5px; text-align: center; background: white; }
.quality-grid span, .quality-grid strong { display: block; }
.quality-grid span { color: var(--muted); font-size: 10px; }
.quality-grid strong { margin-top: 3px; color: var(--forest); font-size: 14px; }
.recommendation-block { max-width: 88%; margin-left: 44px; }
.recommendation-heading { margin-bottom: 9px; padding-left: 1px; }
.recommendation-heading strong, .recommendation-heading small { display: block; }
.recommendation-heading strong { color: var(--forest); font-size: 14px; }
.recommendation-heading small { margin-top: 1px; color: var(--muted); font-size: 10px; }
.recommendation-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.recommendation-list button { position: relative; display: grid; min-height: 64px; padding: 10px 38px 10px 12px; border: 1px solid var(--line); border-radius: 9px; color: #4d5b52; background: white; text-align: left; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.recommendation-list button:hover { border-color: #9fbea3; color: var(--forest); background: #f6faf4; transform: translateY(-1px); }
.question-topic { align-self: end; color: var(--leaf); font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.recommendation-list button strong { align-self: start; margin-top: 2px; color: var(--forest); font-size: 12px; font-weight: 600; }
.recommendation-list button i { position: absolute; top: 50%; right: 13px; color: #7ca083; font-size: 15px; font-style: normal; transform: translateY(-50%); }
.answer-detail > p { color: #4c5b52; }
.answer-detail > p + p { margin-top: 9px; }
.answer-points { margin: 11px 0 9px; padding: 11px 13px; border-left: 3px solid var(--lime); background: #f2f6ef; }
.answer-points > span { display: block; color: var(--leaf); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.answer-points ul { display: grid; gap: 4px; margin: 7px 0 0; padding-left: 18px; color: #4e5d53; font-size: 12px; line-height: 1.65; }
.answer-points li::marker { color: var(--leaf); }
.answer-note { padding-top: 8px; border-top: 1px dashed var(--line-strong); color: var(--muted) !important; font-size: 12px; }
.reading-card { margin-top: 12px; padding: 12px; border: 1px solid #d6e3d4; border-radius: 9px; background: #f4f8f1; }
.reading-card > strong { display: flex; align-items: center; gap: 7px; color: var(--forest); font-size: 13px; }
.reading-card > strong svg { width: 17px; height: 17px; }
.reading-list { display: grid; gap: 7px; margin-top: 9px; }
.reading-list button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; color: #435449; background: white; font-size: 12px; text-align: left; }
.reading-list button:hover { border-color: var(--leaf); color: var(--forest); }
.reading-list button span { flex: 0 0 auto; color: var(--leaf); font-size: 10px; }
.composer { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 10px; padding: 13px 15px; border-top: 1px solid var(--line); background: #f8faf7; }
.composer textarea {
  min-height: 72px;
  padding: 12px 14px;
  resize: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: white;
  font-size: 14px;
  line-height: 1.6;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.composer textarea:focus {
  outline: 0;
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(63, 141, 79, 0.12);
}
.composer button { display: grid; width: 42px; height: 42px; align-self: center; place-items: center; border: 0; border-radius: 10px; color: white; background: var(--forest-2); }
.composer button:hover { background: var(--forest); }
.composer button svg { width: 17px; height: 17px; }

.right-sidebar { padding: 18px 14px; }
.stage-heading { display: flex; align-items: center; gap: 10px; padding: 0 5px 17px; }
.stage-heading h2, .stage-heading small { display: block; margin: 0; }
.stage-heading h2 { font-family: Georgia, "Noto Serif SC", serif; font-size: 18px; }
.stage-heading small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.stage-heading-icon { color: #557d62; background: #f6f8f5; }
.stage-list { position: relative; display: grid; gap: 5px; }
.stage-list::before { position: absolute; top: 42px; bottom: 42px; left: 31px; width: 1px; background: #d0dad1; content: ""; }
.stage-button { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 9px; align-items: center; min-height: 76px; padding: 9px; border: 1px solid transparent; border-radius: 11px; color: var(--muted); text-align: left; background: transparent; }
.stage-button:hover { background: #f6f8f5; }
.stage-button.active { border-color: #b7cdb9; color: var(--forest); background: var(--leaf-soft); }
.stage-icon { z-index: 1; display: grid; width: 34px; height: 34px; margin-left: 5px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: white; font: 700 9px Georgia, serif; }
.stage-button.active .stage-icon { border-color: var(--forest-2); color: white; background: var(--forest-2); }
.stage-button small, .stage-button strong, .stage-button em { display: block; }
.stage-button small { font-size: 11px; }
.stage-button strong { margin: 2px 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 15px; }
.stage-button em { font-size: 11px; font-style: normal; }
.stage-note { margin: 18px 5px 0; padding: 14px; border-top: 3px solid var(--lime); color: white; background: var(--forest); }
.stage-note span, .stage-note strong { display: block; }
.stage-note span { color: #a9beae; font-size: 10px; letter-spacing: 0.08em; }
.stage-note strong { margin-top: 5px; font-size: 14px; }
.stage-note p { margin: 6px 0 0; color: #d0dcd3; font-size: 11px; line-height: 1.6; }

@media (max-width: 1080px) {
  .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .right-sidebar { position: relative; grid-column: 2; height: auto; }
  .stage-list { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; }
  .stage-list::before, .stage-note { display: none; }
  .stage-button { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

@media (max-width: 760px) {
  .app-shell { display: block; padding: 0; }
  .left-sidebar, .right-sidebar { position: relative; top: 0; height: auto; border-radius: 0; }
  .left-sidebar { padding: 14px; }
  .brand { padding-bottom: 12px; }
  .expert-nav { grid-template-columns: 1fr 1fr; }
  .expert-button { grid-template-columns: 34px 1fr; padding: 8px; }
  .expert-icon { width: 34px; height: 34px; }
  .history-section { display: none; }
  .main-workspace { height: 760px; padding: 0 12px 12px; }
  .right-sidebar { padding: 14px 12px; }
  .stage-list { grid-template-columns: repeat(5, 125px); }
}

@media (max-width: 480px) {
  .brand h1 { font-size: 15px; }
  .workspace-header { min-height: 56px; }
  .ready-pill { display: none; }
  .context-banner h3 { font-size: 14px; }
  .chat-window { padding: 13px 10px; }
  .message { max-width: 100%; }
  .option-wrap, .recommendation-block, .parameter-panel, .crop-browser { max-width: 100%; margin-left: 0; }
  .recommendation-list { grid-template-columns: 1fr; }
  .option-button { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .metric-row { grid-template-columns: 1fr; }
  .quality-grid { grid-template-columns: repeat(3, 1fr); }
  .crop-browser { grid-template-columns: 1fr; }
  .scene-comparison { grid-template-columns: 1fr; }
  .nutrition-metrics, .nutrition-description { grid-template-columns: repeat(2, 1fr); }
  .harvest-standard-list > div { grid-template-columns: 1fr 1fr; }
  .harvest-standard-list .heading { display: none; }
  .planting-summary > div { grid-template-columns: 1fr; }
}
