:root {
  color-scheme: light;
  --ink: #202d24;
  --muted: #6d786e;
  --paper: #f4f5ed;
  --panel: #fffefa;
  --line: #e4e7dc;
  --green: #2f6b45;
  --green-deep: #224e36;
  --green-pale: #e6efe4;
  --amber: #d28b31;
  --red: #bb5c42;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, textarea, select { font: inherit; }
button, select { color: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 2; display: flex; width: 238px; flex-direction: column; padding: 28px 18px 20px; background: #213d2d; color: #f5f6ef; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; color: inherit; text-decoration: none; }
.brand-logo { display: block; flex: 0 0 auto; width: 48px; height: 42px; padding: 2px; border-radius: 4px; background: #f4f1df; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: Georgia, serif; font-size: 17px; font-weight: 600; }
.brand small { margin-top: 3px; color: #b4c3b1; font-size: 9px; letter-spacing: 1.2px; }
.location-pill { display: flex; align-items: center; gap: 8px; margin: 44px 6px 25px; color: #c4d1bf; font-size: 11px; }
.location-dot { width: 7px; height: 7px; border-radius: 50%; background: #e2a345; }
.nav-list { display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 11px; border-radius: 4px; color: #c3d0c2; font-size: 13px; text-decoration: none; }
.nav-item:hover, .nav-item.is-active { background: #315640; color: white; }
.nav-icon { width: 18px; color: #d6e3cf; font-size: 18px; text-align: center; }
.sidebar-bottom { display: flex; gap: 10px; align-items: flex-start; margin-top: auto; padding: 14px 9px; border-top: 1px solid #45634e; }
.sidebar-bottom .status-icon { margin-top: 3px; color: #9bd184; font-size: 10px; }
.sidebar-bottom strong, .sidebar-bottom small { display: block; }
.sidebar-bottom strong { font-size: 11px; font-weight: 600; }
.sidebar-bottom small { margin-top: 4px; color: #b2c2b0; font-size: 10px; }
.main-content { max-width: 1480px; min-height: 100vh; margin-left: 238px; padding: 0 46px 22px; }
.topbar { display: flex; height: 66px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.breadcrumb-separator { color: #b9c0b5; }
.language-control { display: flex; height: 34px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); font-size: 11px; }
.language-control select { max-width: 118px; border: 0; outline: 0; appearance: none; background: transparent; font-size: 11px; cursor: pointer; }
.select-chevron { margin-left: -5px; color: var(--muted); }
.welcome-row { display: flex; min-height: 143px; align-items: center; justify-content: space-between; gap: 20px; }
.eyebrow { display: block; margin: 0 0 8px; color: #718073; font-size: 9px; font-weight: 700; letter-spacing: 1.15px; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: 0; }
h1 { margin-bottom: 6px; font-size: 30px; }
.welcome-copy { margin: 0; color: var(--muted); font-size: 13px; }
.season-note { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-left: 2px solid var(--amber); background: #fbf4e8; }
.season-symbol { color: #c17a20; font-size: 20px; }
.season-note span:not(.season-symbol), .season-note strong { display: block; }
.season-note span:not(.season-symbol) { color: #8c744e; font-size: 8px; font-weight: 700; letter-spacing: .9px; }
.season-note strong { margin-top: 4px; font-size: 11px; font-weight: 600; }
.overview-grid { display: grid; grid-template-columns: minmax(240px, .82fr) minmax(400px, 1.45fr); gap: 16px; }
.weather-panel, .market-panel { min-height: 227px; padding: 19px 20px 15px; border: 1px solid var(--line); background: var(--panel); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.panel-heading .eyebrow { margin-bottom: 5px; }
h2 { margin-bottom: 0; font-size: 18px; }
.live-tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; background: #eff3e8; color: #65704f; font-size: 8px; font-weight: 700; letter-spacing: .7px; }
.live-tag span:first-child { width: 5px; height: 5px; border-radius: 50%; background: #93a865; }
.live-tag.is-live { background: #e6efe4; color: #315f3c; }.live-tag.is-live span:first-child { background: #4e9b59; }
.live-tag.is-error { background: #f7e9e3; color: #8d4635; }.live-tag.is-error span:first-child { background: #bb5c42; }
.weather-main { display: flex; align-items: center; gap: 24px; margin: 14px 0 13px; }
.weather-temp { color: var(--green-deep); font-family: Georgia, serif; font-size: 51px; line-height: 1; }
.weather-temp span { font-size: 30px; vertical-align: top; }
.weather-condition { display: flex; align-items: center; gap: 9px; }
.weather-glyph { color: #a8a27e; font-size: 25px; }
.weather-condition strong, .weather-condition span { display: block; }
.weather-condition strong { font-size: 11px; font-weight: 600; }
.weather-condition div span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.weather-foot { display: flex; gap: 20px; padding-top: 10px; border-top: 1px solid #edf0e8; color: var(--muted); font-size: 10px; }
.weather-foot b { margin-right: 5px; color: var(--green); font-size: 12px; }
.weather-foot strong { margin-left: 3px; color: var(--ink); font-weight: 600; }
.data-note { margin: 10px 0 0; color: #838d82; font-size: 9px; line-height: 1.45; }
.market-heading { margin-bottom: 12px; }
.text-button { padding: 5px 0 5px 8px; border: 0; background: transparent; color: var(--green); font-size: 10px; }
.text-button span:first-child { margin-right: 4px; font-size: 15px; vertical-align: -1px; }
.market-table { width: 100%; }
.market-row { display: grid; grid-template-columns: 1.1fr .85fr 1fr; min-height: 34px; align-items: center; border-top: 1px solid #edf0e8; font-size: 10px; }
.market-header { min-height: 25px; border-top: 0; color: #858e82; font-size: 8px; font-weight: 700; letter-spacing: .5px; }
.crop-name { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.crop-dot { width: 7px; height: 7px; border-radius: 50%; }
.maize { background: #dda738; }.beans { background: #63885f; }.coffee { background: #986346; }
.market-name { color: var(--muted); }
.market-row strong { font-size: 10px; font-weight: 600; }
.service-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.service-facts div { padding: 9px 10px; border-top: 1px solid #edf0e8; }
.service-facts strong, .service-facts span { display: block; }
.service-facts strong { color: var(--green-deep); font-size: 10px; }
.service-facts span { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.data-note a { color: var(--green); }
.advisor-section { margin-top: 27px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-heading h2 { font-size: 22px; }
.advisor-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; background: #e7eee2; color: #4c6b4a; font-size: 9px; white-space: nowrap; }
.advisor-badge span:first-child { color: #719158; font-size: 13px; }
.advisor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 15px; }
.question-panel { padding: 15px 16px 12px; border: 1px solid var(--line); background: var(--panel); }
.question-panel > label { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 600; }
.question-panel textarea { display: block; width: 100%; min-height: 77px; resize: vertical; padding: 11px 12px; border: 1px solid #e5e8df; border-radius: 2px; outline: none; background: #fbfcf8; color: var(--ink); font-size: 12px; line-height: 1.5; }
.question-panel textarea:focus { border-color: #789b77; box-shadow: 0 0 0 2px #e6efe4; }
.question-panel textarea::placeholder { color: #9ba39a; }
.composer-bottom { display: flex; min-height: 43px; align-items: center; gap: 10px; }
.upload-button { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 10px; cursor: pointer; }
.upload-button span:first-child { font-size: 17px; }
.photo-name { overflow: hidden; max-width: 140px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ask-button { display: inline-flex; min-height: 33px; align-items: center; gap: 13px; margin-left: auto; padding: 0 12px; border: 0; border-radius: 2px; background: var(--green); color: white; font-size: 10px; }
.ask-button:hover { background: var(--green-deep); }
.ask-button span:last-child { font-size: 14px; }
.safety-note { display: flex; gap: 6px; margin: 7px 0 0; color: #7e887d; font-size: 9px; line-height: 1.45; }
.safety-note span:first-child { color: #a07e39; }
.photo-preview { position: relative; width: 112px; margin-top: 8px; }
.photo-preview img { display: block; width: 112px; height: 72px; object-fit: cover; border: 1px solid var(--line); }
.photo-preview button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fffefa; color: var(--ink); font-size: 16px; }
.photo-consent { display: flex; align-items: flex-start; gap: 7px; margin-top: 10px; color: #344638; font-size: 10px; line-height: 1.45; }
.photo-consent input { flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--green); }
.photo-privacy { margin: 5px 0 0 21px; color: #778176; font-size: 9px; line-height: 1.45; }
.quick-prompts { padding: 15px 14px; border-left: 2px solid #d8dfd1; background: #edf0e7; }
.quick-prompts .eyebrow { margin-bottom: 8px; }
.prompt-chip { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 5px; padding: 8px 0; border: 0; border-top: 1px solid #dce2d7; background: transparent; color: #344638; font-size: 10px; text-align: left; }
.prompt-chip:hover { color: var(--green); }
.prompt-chip span { color: #718975; }
.advice-result { margin-top: 12px; padding: 15px 18px; border: 1px solid #d8e4d4; border-left: 3px solid var(--green); background: #fafff7; }
.advice-result h3 { margin: 0 0 7px; font-family: Georgia, serif; font-size: 17px; font-weight: 500; }
.advice-result p, .advice-result li { color: #465448; font-size: 11px; line-height: 1.6; }
.advice-result p { margin-bottom: 6px; }
.advice-result ol { margin: 6px 0 0; padding-left: 19px; }
.advice-result .demo-warning { margin: 10px 0 0; color: #8d6635; font-size: 9px; }
.advice-result .diagnosis-copy { margin: 0; white-space: pre-line; }
.page-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); color: #828b80; font-size: 9px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 1400px) { .main-content { padding-right: 64px; padding-left: 64px; } }
@media (max-width: 980px) { .sidebar { width: 205px; }.main-content { margin-left: 205px; padding-right: 25px; padding-left: 25px; }.overview-grid { grid-template-columns: 1fr; }.weather-panel, .market-panel { min-height: unset; } }
@media (max-width: 680px) {
  .sidebar { position: static; width: auto; height: 58px; flex-direction: row; align-items: center; padding: 0 15px; }
  .brand { padding: 0; gap: 7px; }.brand-logo { width: 36px; height: 32px; }.brand strong { font-size: 13px; }.brand small { font-size: 8px; }
  .location-pill, .sidebar-bottom { display: none; }.nav-list { display: flex; gap: 2px; margin-left: auto; }.nav-item { min-height: 36px; gap: 5px; padding: 0 7px; font-size: 10px; }.nav-icon { width: auto; font-size: 14px; }.muhe-home-link span:last-child { display: none; }
  .main-content { margin: 0; padding: 0 15px 18px; }.topbar { height: 53px; }.breadcrumb { font-size: 10px; }.language-control { height: 31px; gap: 5px; padding: 0 7px; }.language-control select { max-width: 88px; font-size: 10px; }
  .welcome-row { min-height: 126px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; }.welcome-row h1 { font-size: 26px; }.season-note { padding: 7px 10px; }.season-symbol { font-size: 16px; }
  .overview-grid { gap: 10px; }.weather-panel, .market-panel { padding: 15px; }.advisor-section { margin-top: 23px; }.section-heading { align-items: flex-start; flex-direction: column; gap: 9px; }.section-heading h2 { font-size: 20px; }.advisor-layout { grid-template-columns: 1fr; }.quick-prompts { border-left: 0; border-top: 2px solid #d8dfd1; }.prompt-chip { min-height: 36px; }.page-footer { flex-direction: column; gap: 5px; }
  .service-facts { grid-template-columns: 1fr; gap: 0; }
}