:root {
  --terra-green: #245c3a;
  --terra-green-dark: #164228;
  --terra-green-soft: #e7f2e9;
  --terra-beige: #f6f1e6;
  --terra-gold: #b78338;
  --ink: #213129;
  --muted: #657269;
  --line: #dbe4da;
  --paper: #ffffff;
  --danger: #a93d32;
  --warning: #9a651e;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #e7f2e9 0, var(--terra-beige) 470px, #fbfaf6 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; z-index: 2000; top: 8px; left: 8px; transform: translateY(-150%); border-radius: 8px; padding: 10px 14px; color: #fff; background: var(--terra-green-dark); font-weight: 800; }
.skip-link:focus { transform: translateY(0); }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid #d49b36; outline-offset: 3px; }
.auth-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(18, 44, 28, .72); backdrop-filter: blur(6px); }
.auth-backdrop[hidden] { display: none; }
.auth-card { width: min(420px, 100%); border-radius: 22px; padding: 26px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .28); text-align: center; }
.auth-card h2 { margin: 12px 0 8px; color: var(--terra-green-dark); }
.auth-card p { margin: 0 0 20px; color: var(--muted); line-height: 1.55; }
.auth-provider { width: 100%; margin-top: 10px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #88928b; font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 14px; padding: 3px; border-radius: 11px; background: var(--terra-green-soft); }
.auth-tabs button { border: 0; border-radius: 8px; padding: 8px; color: var(--muted); background: transparent; font-weight: 700; }
.auth-tabs button.active { color: var(--terra-green-dark); background: #fff; box-shadow: 0 2px 8px rgba(24,63,38,.1); }
.auth-card form { display: grid; gap: 7px; text-align: left; }
.auth-card form label { margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.auth-card form input { width: 100%; border: 1px solid #cbd9cd; border-radius: 10px; padding: 11px 12px; color: var(--ink); background: #fff; }
.auth-card form input:focus { outline: 2px solid rgba(36,92,58,.18); border-color: var(--terra-green); }
.auth-link { border: 0; margin-top: 12px; padding: 5px; color: var(--terra-green); background: transparent; font-size: 12px; font-weight: 750; text-decoration: underline; }
.auth-message { min-height: 20px; margin-top: 14px !important; color: var(--danger) !important; font-size: 12px; font-weight: 700; }
.auth-message[data-tone="success"] { border-radius: 10px; padding: 10px 12px; color: var(--terra-green-dark) !important; background: var(--terra-green-soft); }
.auth-user { position: fixed; z-index: 30; top: 12px; right: 12px; border: 1px solid #cbd9cd; border-radius: 999px; padding: 7px 11px; color: var(--terra-green-dark); background: rgba(255,255,255,.94); font-size: 12px; font-weight: 700; box-shadow: 0 4px 16px rgba(24,63,38,.12); }

.shell {
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 18px 96px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  margin: 0 -18px;
  padding: 10px 18px;
  border-bottom: 1px solid #d9e5d8;
  background: rgba(246, 241, 230, .93);
  backdrop-filter: blur(16px);
}

.brand { display: flex; min-width: 0; align-items: center; gap: 10px; }
.brand-logo {
  width: 50px;
  height: 50px;
  flex: none;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 9px rgba(22, 66, 40, .22);
}
.brand strong { display: block; font-size: 16px; letter-spacing: -.2px; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.brand-badge {
  flex: none;
  border: 1px solid #bdd1bd;
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--terra-green);
  background: #f8fcf8;
  font-size: 10px;
  font-weight: 750;
}

main { padding-top: 22px; }
.civil-defense-alert {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 0 0 14px;
  border: 2px solid #9f1717;
  border-radius: 16px;
  padding: 14px;
  color: #fff;
  background: linear-gradient(135deg, #be2020, #8f1010);
  box-shadow: 0 9px 24px rgba(143, 16, 16, .28);
}
.civil-defense-alert[hidden] { display: none; }
.civil-defense-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 50%; color: #8f1010; background: #fff; font-size: 22px; }
.civil-defense-alert strong { display: block; font-size: 14px; }
.civil-defense-alert p { margin: 5px 0; font-size: 13px; font-weight: 750; line-height: 1.4; }
.civil-defense-alert small { display: block; color: #ffe6e6; font-size: 11px; line-height: 1.4; }
.civil-defense-alert a { display: inline-block; margin-top: 8px; color: #fff; font-size: 12px; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.hero { max-width: 590px; margin: 0 auto; padding: 25px 0 27px; text-align: center; }
.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--terra-green-dark);
  background: #d5e9d7;
  font-size: 12px;
  font-weight: 750;
}
.hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(29px, 8vw, 42px);
  line-height: 1.08;
  letter-spacing: -1.6px;
}
.hero p, .intro { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 0 0 25px; }
.home-auth { margin: 0 0 18px; border-radius: 18px; padding: 17px; }
.home-auth-heading { display: flex; align-items: center; gap: 11px; }
.home-auth-heading > span { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 12px; background: var(--terra-green-soft); }
.home-auth h2 { margin: 0; color: var(--terra-green-dark); font-size: 17px; }
.home-auth p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.home-auth-providers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.home-auth-providers .button { min-width: 0; padding: 10px 7px; }
.home-auth-providers small { display: block; margin-top: 2px; font-size: 8px; line-height: 1.15; }
.home-auth-providers .provider-pending { border-color: #bdc8be; color: #617066; background: #f4f6f4; }
.home-auth-email { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px 18px; margin-top: 12px; }
.home-auth-connected { display: flex; align-items: center; gap: 11px; color: #174b2c; background: #e4f4e7; }
.home-auth-connected > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; background: var(--terra-green); }
.home-auth-identity { min-width: 0; }
.home-auth-connected strong, .home-auth-connected small { display: block; }
.home-auth-connected small { margin-top: 2px; color: #46664f; }
#home-language-slot { margin-left: auto; }
.language-selector { display: flex; align-items: center; gap: 8px; }
.language-selector-label { color: #46664f; font-size: 11px; font-weight: 750; white-space: nowrap; }
.language-options { display: inline-flex; gap: 5px; }
.language-option { position: relative; display: grid; width: 42px; height: 34px; place-items: center; border: 1px solid #adc8b3; border-radius: 9px; color: #173f2a; background: rgba(255,255,255,.78); cursor: pointer; line-height: 1; }
.language-flag { display: block; width: 28px; height: 20px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(20,45,28,.18); }
.language-option:hover { background: #fff; }
.language-option:focus-visible { outline: 3px solid rgba(36,92,58,.3); outline-offset: 2px; }
.language-option.active { border: 2px solid var(--terra-green-dark); background: #fff; box-shadow: 0 0 0 2px rgba(36,92,58,.12); }
.language-check { position: absolute; right: -4px; bottom: -5px; display: grid; width: 15px; height: 15px; place-items: center; border-radius: 50%; color: #fff; background: var(--terra-green-dark); font-size: 9px; font-weight: 900; }
.language-check:empty { display: none; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.feature, .card {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 4px 13px rgba(26, 56, 37, .06);
}
.feature { min-height: 102px; border-radius: 16px; padding: 13px 6px; color: #46554b; text-align: center; font-size: 11px; font-weight: 700; }
.feature b { display: grid; width: 36px; height: 36px; margin: 0 auto 8px; place-items: center; border-radius: 11px; color: var(--terra-green); background: var(--terra-green-soft); font-size: 18px; }

.platform-coming-soon { margin: 0 0 24px; border: 1px solid #c9d9ca; border-radius: 20px; padding: 17px; background: linear-gradient(145deg, #f8fcf7, #edf5ed); box-shadow: 0 6px 18px rgba(26, 56, 37, .06); }
.platform-coming-soon-copy { text-align: center; }
.platform-coming-soon-copy .pill { padding: 5px 10px; font-size: 10px; }
.platform-coming-soon h2 { margin: 10px 0 5px; color: var(--terra-green-dark); font-size: 18px; letter-spacing: -.35px; }
.platform-coming-soon p { max-width: 500px; margin: 0 auto; color: var(--muted); font-size: 12px; line-height: 1.45; }
.platform-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
.platform-card { display: flex; align-items: center; gap: 11px; min-width: 0; border: 1px solid #d3e0d3; border-radius: 15px; padding: 12px; background: rgba(255, 255, 255, .9); }
.platform-card > div { min-width: 0; }
.platform-card strong, .platform-card .coming-soon-badge { display: block; }
.platform-card strong { color: #304a38; font-size: 13px; }
.platform-icon { display: grid; width: 43px; height: 43px; flex: 0 0 43px; place-items: center; border-radius: 13px; }
.platform-icon svg { width: 25px; height: 25px; fill: currentColor; }
.platform-icon-ios { color: #222a25; background: #edf0ee; }
.platform-icon-android { color: #2f7144; background: #e1f1e4; }
.coming-soon-badge { width: fit-content; margin-top: 4px; border-radius: 999px; padding: 3px 7px; color: #76551b; background: #f7e8bd; font-size: 9px; font-weight: 850; letter-spacing: .25px; text-transform: uppercase; }

.upload { border: 1.5px dashed #8db696; border-radius: 21px; padding: 29px 17px 22px; background: rgba(255, 255, 255, .77); text-align: center; transition: .2s ease; }
.upload.over { border-color: var(--terra-green); background: #edf8ee; transform: translateY(-1px); }
.upload-mark { display: grid; width: 48px; height: 48px; margin: 0 auto; place-items: center; border-radius: 50%; background: var(--terra-green-soft); font-size: 23px; }
.upload h2 { margin: 12px 0 6px; font-size: 18px; }
.upload p { max-width: 420px; margin: 0 auto 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.upload-note { display: block; max-width: 450px; margin: 16px auto 0; color: #738176; font-size: 11px; line-height: 1.4; }

.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.button { border: 1px solid var(--terra-green); border-radius: 12px; padding: 11px 15px; color: #fff; background: var(--terra-green); font-size: 13px; font-weight: 750; transition: .16s ease; }
.button:hover { border-color: var(--terra-green-dark); background: var(--terra-green-dark); }
.button.secondary { color: var(--terra-green); background: #fff; }
.button.secondary:hover { background: var(--terra-green-soft); }
.button.video-button { border-color: #315f80; background: #315f80; }
.button.video-button:hover { border-color: #244862; background: #244862; }
.guided-video-guide { border-color: #b7cad8; background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(235,244,249,.94)); }
.guided-video-guide ol { margin: 12px 0; padding-left: 21px; }
.guided-video-guide li { margin: 7px 0; color: var(--ink); font-size: 13px; line-height: 1.45; }
.guided-video-guide small { display: block; color: var(--muted); line-height: 1.45; }

.recent { margin-top: 27px; }
.recent h2, .page-title { margin: 0 0 8px; font-size: 21px; letter-spacing: -.5px; }
.history-item { display: flex; gap: 12px; margin: 11px 0; border-radius: 17px; padding: 11px; cursor: pointer; transition: .16s ease; }
.history-item:hover { border-color: #a7c5aa; transform: translateY(-1px); }
.history-copy { min-width: 0; flex: 1; }
.thumb { display: block; width: 76px; height: 76px; flex: none; border-radius: 12px; background: #e9f3e9; object-fit: cover; }
.thumb-placeholder { display: grid; place-items: center; font-size: 29px; }
.history-item h3 { overflow: hidden; margin: 0; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.history-item p { display: -webkit-box; overflow: hidden; margin: 3px 0; color: var(--muted); font-size: 12px; line-height: 1.33; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.history-item .latin { color: #829087; font-style: italic; }
.history-item .history-date { color: #89958b; font-size: 10px; }

.status { display: inline-block; float: right; border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 800; }
.healthy { color: #176b37; background: #d9f1df; }
.attention { color: #875719; background: #fbebc7; }
.problem { color: #9a342c; background: #f9dcd7; }
.inconclusive { color: #536159; background: #e8ece8; }

.bottom { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; border-top: 1px solid #d9e5d8; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); }
.bottom nav { display: grid; width: min(720px, 100%); grid-template-columns: repeat(3, 1fr); padding: 7px 14px; }
.nav { border: 0; border-radius: 10px; padding: 5px; color: #839087; background: transparent; font-size: 10px; }
.nav i { display: block; margin-bottom: 1px; font-size: 19px; font-style: normal; }
.nav.active { color: var(--terra-green); background: #eff7ef; font-weight: 800; }

.guide { padding-top: 6px; padding-bottom: 90px; }
.guide .intro { margin-bottom: 17px; }
.guide-section-heading { display: flex; align-items: center; gap: 13px; margin: 8px 0 12px; padding: 13px 15px; border: 1px solid #c8daca; border-radius: 17px; background: linear-gradient(135deg, #f5faf4, #e9f3e9); }
.guide-section-heading > span { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: white; background: var(--terra-green-dark); font-size: 16px; font-weight: 900; }
.guide-section-heading h1, .guide-section-heading h2 { margin: 0; color: var(--terra-green-dark); font-size: 20px; }
.guide-section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.guide-observation-heading { margin-top: 30px; background: linear-gradient(135deg, #fffaf0, #f4eddd); border-color: #dfd0ae; }
.guide-observation-heading > span { background: #8a623d; }
.guide-caution { border-left: 4px solid #d1a54d; border-radius: 9px; padding: 10px 12px; background: #fffaf0; line-height: 1.5; }
.search { width: 100%; margin: 4px 0 7px; border: 1px solid #cbdacb; border-radius: 12px; padding: 12px 13px; outline: none; color: var(--ink); background: #fff; }
.search:focus { border-color: #58946a; box-shadow: 0 0 0 3px rgba(88, 148, 106, .16); }
.empty { padding: 52px 20px; color: var(--muted); text-align: center; }
.empty-icon { display: grid; width: 62px; height: 62px; margin: 0 auto 12px; place-items: center; border-radius: 16px; background: #edf2ed; font-size: 28px; }
.empty p { margin: 5px 0; font-size: 13px; }
.disease { margin: 13px 0; border-radius: 17px; padding: 16px; }
.disease summary { cursor: pointer; list-style: none; font-size: 15px; font-weight: 800; }
.disease summary::-webkit-details-marker { display: none; }
.disease summary::after { float: right; color: var(--terra-green); content: '+'; font-size: 19px; }
.disease[open] summary::after { content: '–'; }
.disease p, .disease li { color: var(--muted); font-size: 13px; line-height: 1.5; }
.disease h4 { margin: 15px 0 4px; font-size: 13px; }
.disease ul { margin: 5px 0 0; padding-left: 20px; }

.loading { max-width: 440px; margin: 50px auto; text-align: center; }
.loading h2 { margin: 17px 0 8px; font-size: 20px; }
.spinner { width: 39px; height: 39px; margin: auto; border: 4px solid #cde7d1; border-top-color: var(--terra-green); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.result { padding-top: 3px; }
.back { border: 0; padding: 6px 0 15px; color: var(--terra-green); background: transparent; font-size: 13px; font-weight: 750; }
.result-image { display: block; width: 100%; max-height: 340px; border-radius: 20px; background: #e7f2e9; object-fit: cover; }
.reference-notice { margin-top: 13px; border-left: 4px solid var(--terra-gold); border-radius: 10px; padding: 11px 13px; background: #fff8e8; }
.reference-notice b { color: #73531d; font-size: 12px; }
.reference-notice p { margin: 4px 0 0; color: #685b43; font-size: 12px; line-height: 1.43; }
.result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 18px 0 11px; }
.result-head h1 { margin: 0; font-size: 27px; letter-spacing: -.7px; }
.latin { margin: 4px 0; color: #7d8b80; font-size: 13px; font-style: italic; }
.result-grid { display: grid; grid-template-columns: 1.55fr .75fr; gap: 10px; }
.result-grid .card { min-height: 92px; border-radius: 15px; padding: 14px; }
.result-grid small, .product-card small { display: block; color: #78867c; font-size: 10px; font-weight: 800; letter-spacing: .25px; text-transform: uppercase; }
.result-grid strong { display: block; margin-top: 5px; font-size: 14px; line-height: 1.35; }
.section, .reassessment, .product-card { margin-top: 12px; border-radius: 17px; padding: 16px; }
.section h3, .reassessment h3, .product-card h3 { margin: 0 0 9px; font-size: 15px; }
.section ul { margin: 0; padding-left: 20px; }
.section li { margin: 7px 0; color: #415148; font-size: 13px; line-height: 1.42; }
.actions { border-color: #b8d4bb; background: #f6fbf6; }
.actions h3 { color: var(--terra-green-dark); }
.reassessment p, .product-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.46; }
.product-card { border-color: #c9dabc; background: #fcfffa; }
.product-card.product-relevant { border-color: #8caf87; background: #f2f9ed; }
.product-card h3 { margin-top: 5px; color: var(--terra-green-dark); }
.product-card div { margin-top: 12px; padding-top: 11px; border-top: 1px solid #dce8da; }
.product-card b, .product-card span { display: block; }
.product-card b { margin-bottom: 3px; color: #3a573f; font-size: 12px; }
.product-card span { color: var(--muted); font-size: 12px; line-height: 1.42; }
.chat { margin-top: 12px; border-color: #bfd8c2; border-radius: 17px; padding: 16px; background: #fcfffb; }
.chat-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.chat-heading h3 { margin: 0; font-size: 16px; }
.chat-heading p { max-width: 410px; margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.42; }
.chat-heading span { flex: none; border-radius: 999px; padding: 5px 7px; color: var(--terra-green-dark); background: #e5f3e7; font-size: 9px; font-weight: 800; }
.chat-messages { display: grid; gap: 9px; max-height: 410px; margin: 14px 0; overflow-y: auto; padding: 2px; scroll-behavior: smooth; }
.chat-message { max-width: 91%; border-radius: 14px; padding: 10px 12px; background: #edf4ed; }
.chat-message.user { justify-self: end; color: #fff; background: var(--terra-green); }
.chat-message small { display: block; margin-bottom: 3px; color: #638069; font-size: 10px; font-weight: 800; }
.chat-message.user small { color: #d8eedb; }
.chat-message p { margin: 0; font-size: 13px; line-height: 1.46; white-space: pre-wrap; }
.chat-empty { border: 1px dashed #c4d8c5; border-radius: 13px; padding: 14px; color: #516458; background: #f5faf5; }
.chat-empty b { color: var(--terra-green-dark); font-size: 13px; }
.chat-empty p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.chat-pending { width: fit-content; border-radius: 999px; padding: 8px 11px; color: #5c6e61; background: #eef3ee; font-size: 12px; }
.chat-form { border-top: 1px solid #dce8dc; padding-top: 13px; }
.chat-form label { display: block; margin-bottom: 7px; color: #405445; font-size: 12px; font-weight: 800; }
.chat-form textarea { display: block; width: 100%; min-height: 78px; resize: vertical; border: 1px solid #c6d7c7; border-radius: 12px; padding: 10px 11px; outline: none; color: var(--ink); background: #fff; font-size: 13px; line-height: 1.4; }
.chat-form textarea:focus { border-color: #58946a; box-shadow: 0 0 0 3px rgba(88, 148, 106, .16); }
.chat-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; }
.chat-actions small { max-width: 300px; color: #758078; font-size: 10px; line-height: 1.35; }
.chat-buttons { display: flex; flex: none; gap: 8px; }
.voice-button.is-listening { border-color: var(--danger); color: var(--danger); background: #fff1ef; }
.chat-form.is-pending .button { cursor: wait; opacity: .72; }
.chat-form .button:disabled { cursor: wait; opacity: .72; }
.consult-note { margin: 14px 3px; color: #6f6657; font-size: 11px; line-height: 1.45; text-align: center; }
.result-actions { margin-top: 18px; }
.danger-button { border: 1px solid #c55b50; color: #943b33; background: #fff7f6; }
.danger-button:hover { background: #ffebe8; }
.privacy-card { margin-top: 22px; border-color: #ead0cc; padding: 16px; background: #fffafa; }
.privacy-card h2 { margin: 0 0 7px; font-size: 16px; }
.privacy-card p { margin: 0 0 13px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.privacy-card .buttons { justify-content: flex-start; }
.privacy-link { color: var(--terra-green-dark); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal-links { align-items: center; color: #53665a; display: flex; flex-wrap: wrap; font-size: .82rem; gap: .55rem; justify-content: center; margin: 1.5rem auto 6rem; text-align: center; }
.legal-links a { color: var(--terra-green-dark); font-weight: 800; }
.privacy-page { max-width: 760px; margin: 0 auto; padding: 28px 20px 48px; }
.privacy-page h1 { color: var(--terra-green-dark); }
.privacy-page h2 { margin-top: 28px; color: var(--terra-green-dark); font-size: 18px; }
.privacy-page p, .privacy-page li { color: var(--muted); line-height: 1.65; }
.privacy-page a { color: var(--terra-green-dark); }

.toast { position: fixed; z-index: 50; top: 86px; left: 50%; width: min(calc(100% - 36px), 480px); transform: translateX(-50%); border-radius: 12px; padding: 12px 15px; color: #fff; background: #263c2c; box-shadow: 0 12px 30px rgba(21, 48, 30, .24); font-size: 13px; text-align: center; }
.finance-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.finance-summary div { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #f9fbf8; }
.finance-summary small, .finance-summary strong { display: block; }
.finance-summary strong { margin-top: 4px; color: var(--terra-green-dark); font-size: 15px; }
.photo-guide { margin: 12px 0; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: rgba(255,255,255,.72); }
.photo-guide summary { cursor: pointer; color: var(--terra-green-dark); font-weight: 800; }
.photo-guide ul { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.guided-capture { background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(237,245,238,.92)); }
.guided-capture-controls { display: grid; gap: 6px; margin: 14px 0 10px; }
.guided-capture-controls label { color: var(--terra-green-dark); font-size: 12px; font-weight: 800; }
.guided-capture-controls select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: #fff; color: var(--ink); }
.guided-capture ol { display: grid; gap: 7px; margin: 10px 0; padding: 0; list-style: none; }
.guided-capture li { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 13px; line-height: 1.4; }
.guided-capture li span { display: grid; width: 24px; height: 24px; flex: none; place-items: center; border-radius: 50%; background: var(--terra-green-dark); color: #fff; font-size: 11px; font-weight: 900; }
.guided-capture small { display: block; color: var(--muted); line-height: 1.45; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 390px) {
  .home-auth-providers { grid-template-columns: 1fr; }
  .finance-summary { grid-template-columns: 1fr; }
  .growth-stats { grid-template-columns: 1fr; }
  .shell { padding-right: 13px; padding-left: 13px; }
  .platform-cards { grid-template-columns: 1fr; }
  .top { margin-right: -13px; margin-left: -13px; padding-right: 13px; padding-left: 13px; }
  .brand-badge { display: none; }
  .result-grid { grid-template-columns: 1fr; }
  .chat-heading { display: block; }
  .chat-heading span { display: inline-block; margin-top: 8px; }
  .chat-actions { align-items: flex-end; }
  .chat-actions small { max-width: 180px; }
  .chat-buttons { gap: 6px; }
}

@media (min-width: 640px) {
  .shell { padding-right: 28px; padding-left: 28px; }
  .top { margin-right: -28px; margin-left: -28px; padding-right: 28px; padding-left: 28px; }
  .hero { padding-top: 35px; }
  .feature { padding-top: 16px; }
}

/* --- ESTILOS FASE 1: CLIMA, GPS, CHECKLIST E COMPARTILHAMENTO --- */
.weather-widget {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  border: 1px solid #b2cfb7;
  border-radius: 12px;
  padding: 4px 9px;
  background: #f0f7f1;
  font-size: 11px;
  color: var(--terra-green-dark);
}
.weather-widget.weather-prompt {
  cursor: pointer;
  background: #ffffff;
  transition: background .15s ease;
}
.weather-widget.weather-prompt:hover {
  background: var(--terra-green-soft);
}
.weather-widget.weather-ready {
  cursor: pointer;
  max-width: min(420px, 58vw);
}
.weather-widget.weather-loading {
  opacity: .75;
}
.weather-region {
  font-weight: 800;
  color: var(--terra-green-dark);
}
.weather-info {
  color: var(--muted);
  font-size: 10px;
}
.weather-forecast {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px 9px;
  color: var(--muted);
  font-size: 9px;
}

/* Minha Área: pequena produção e horta doméstica */
.farm-page { display: grid; gap: 22px; padding-bottom: 96px; }
.farm-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.farm-hero h1 { margin: 7px 0 0; color: var(--terra-green-dark); }
.mode-switch { display: inline-flex; flex-wrap: wrap; padding: 3px; border: 1px solid #c5d8c7; border-radius: 18px; background: #eef5ee; }
.mode-switch button { border: 0; border-radius: 999px; padding: 7px 10px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.mode-switch button.active { background: var(--terra-green-dark); color: white; }
.farm-page > .card { padding: 20px; border-color: #cadbcd; border-radius: 20px; box-shadow: 0 8px 24px rgba(38, 82, 48, .07); }
.farm-page > .card h2 { margin: 0 0 10px; font-size: 18px; line-height: 1.25; color: var(--terra-green-dark); }
.farm-page > .card > p { margin: 0 0 14px; color: #53665a; line-height: 1.55; }
.farm-page > .card > small { display: block; margin-top: 12px; line-height: 1.45; color: var(--muted); }
.farm-quick-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.farm-quick-nav a { display: flex; align-items: center; gap: 8px; min-height: 48px; border: 1px solid #c9dccc; border-radius: 14px; padding: 9px 10px; color: var(--terra-green-dark); background: #f7fbf7; font-size: 12px; font-weight: 800; text-decoration: none; }
.farm-quick-nav a span, .farm-group-heading > span { display: grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: white; background: var(--terra-green-dark); font-weight: 900; }
.farm-group-heading { display: flex; align-items: center; gap: 12px; scroll-margin-top: 16px; margin: 6px 0 -8px; padding: 2px 4px 10px; border-bottom: 2px solid #c9dccc; }
.farm-group-heading > span { width: 36px; height: 36px; font-size: 15px; }
.farm-group-heading h2 { margin: 0; color: var(--terra-green-dark); font-size: 19px; }
.farm-group-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.farm-alert { border-left: 5px solid #d9a127; }
.farm-alert ul, .farm-notes { margin: 0; padding-left: 19px; }
.farm-list { display: grid; gap: 10px; margin-bottom: 16px; }
.farm-item, .farm-task { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #d7e3d8; border-radius: 14px; padding: 12px 13px; background: #f8fbf8; }
.farm-item div, .farm-task span { display: grid; gap: 2px; flex: 1; }
.farm-item p { margin: 3px 0 0; color: var(--muted); }
.farm-item small, .farm-task small { color: var(--muted); }
.farm-item button, .farm-task button { border: 0; background: transparent; color: #9b3c32; font-size: 20px; cursor: pointer; }
.farm-task.done span { text-decoration: line-through; opacity: .6; }
.farm-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; border: 1px solid #d8e5da; border-radius: 16px; padding: 14px; background: #f5f9f5; }
.farm-form input, .farm-form select { width: 100%; min-height: 45px; border: 1px solid #bdcebf; border-radius: 11px; padding: 11px 12px; background: white; font-size: 14px; }
.farm-form input:focus, .farm-form select:focus { outline: 3px solid rgba(55, 128, 75, .16); border-color: #4d8959; }
.farm-form .button { width: 100%; }
.farm-empty { color: var(--muted); margin: 6px 0; }
.photo-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.photo-compare figure { margin: 0; border: 1px solid #d5e1d6; border-radius: 12px; overflow: hidden; background: #f8fbf8; }
.photo-compare img { display: block; width: 100%; height: 170px; object-fit: cover; }
.photo-compare figcaption { padding: 8px; font-size: 11px; color: var(--muted); }
.photo-compare figcaption button { display: block; margin-top: 6px; border: 0; padding: 0; color: #943b33; background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }
.growth-card { overflow: hidden; }
.growth-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 12px 0; }
.growth-stats div { border: 1px solid #d5e1d6; border-radius: 13px; padding: 12px 8px; background: #f7fbf7; text-align: center; }
.growth-stats strong, .growth-stats small { display: block; }
.growth-stats strong { color: var(--terra-green-dark); font-size: 22px; }
.growth-stats small { margin-top: 4px; color: var(--muted); line-height: 1.25; }
.challenge-meter { overflow: hidden; height: 10px; margin: 12px 0; border-radius: 999px; background: #dce8dc; }
.challenge-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--terra-green), #7ca85d); }
.challenge-list { display: grid; gap: 7px; padding: 0; list-style: none; }
.challenge-list li { border: 1px solid #d9e4d9; border-radius: 10px; padding: 9px 11px; color: #5f6f64; }
.challenge-list li.done { border-color: #a8c6aa; color: var(--terra-green-dark); background: #f0f8f0; font-weight: 800; }
.badge-row { display: flex; flex-wrap: wrap; gap: 7px; }
.badge-row span { border-radius: 999px; padding: 6px 10px; color: #654f17; background: #f7e8b7; font-size: 11px; font-weight: 800; }
.join-request, .team-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0; border: 1px solid #d5e1d6; border-radius: 12px; padding: 11px; background: #f8fbf8; }
.join-request span, .join-request small, .team-summary small { display: block; }
.team-summary { display: block; }
.team-summary p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.inspection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.inspection-grid label { border: 1px solid #d8e4d9; border-radius: 9px; padding: 8px; text-transform: capitalize; }
.reference { color: var(--muted); font-size: 11px; }
.occurrence-map { position: relative; min-height: 260px; margin: 12px 0; overflow: hidden; border: 1px solid #bdd2bf; border-radius: 15px; background-color: #eef5ea; background-image: linear-gradient(rgba(70,110,74,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(70,110,74,.08) 1px, transparent 1px); background-size: 28px 28px; }
.occurrence-map::before, .occurrence-map::after { position: absolute; content: ''; background: rgba(49,91,57,.17); transform: rotate(-18deg); }
.occurrence-map::before { width: 120%; height: 18px; top: 42%; left: -10%; }
.occurrence-map::after { width: 18px; height: 120%; top: -10%; left: 63%; }
.occurrence-map small { position: absolute; right: 8px; bottom: 7px; z-index: 2; border-radius: 7px; padding: 3px 6px; background: rgba(255,255,255,.88); color: var(--muted); font-size: 9px; }
.map-north { position: absolute; top: 8px; right: 9px; z-index: 2; font-weight: 900; }
.map-marker { position: absolute; z-index: 3; display: grid; place-items: center; width: 27px; height: 27px; transform: translate(-50%, -50%); border: 2px solid white; border-radius: 50%; color: white; background: #37804b; box-shadow: 0 3px 9px rgba(0,0,0,.22); font-size: 11px; font-weight: 900; text-decoration: none; }
.map-marker.medium { background: #d49224; }
.map-marker.high { background: #b64135; }
.empty-map { display: grid; place-content: center; text-align: center; color: var(--muted); }
.empty-map b, .empty-map span { position: relative; z-index: 2; }
.occurrence-list { display: grid; gap: 7px; padding-left: 0; list-style: none; }
.occurrence-list li { border-bottom: 1px solid #e0e8e0; padding: 7px 0; font-size: 12px; }
.occurrence-list button { float: right; border: 0; color: #943b33; background: transparent; cursor: pointer; }
.severity { display: inline-block; border-radius: 999px; padding: 2px 6px; color: #276037; background: #e5f3e7; font-size: 9px; font-weight: 900; }
.severity.média { color: #7a5114; background: #fff1d4; }
.severity.alta { color: #8b3028; background: #fde4e1; }
.pest-monitoring { display: grid; gap: 8px; margin: 12px 0; }
.pest-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px auto; align-items: center; gap: 10px; border: 1px solid #d8e4d9; border-radius: 12px; padding: 9px 10px; background: #f8fbf8; }
.pest-row > div:first-child { display: grid; gap: 2px; }
.pest-row small, .pest-row span { color: var(--muted); font-size: 10px; }
.pest-row > button { border: 0; color: #943b33; background: transparent; font-size: 18px; cursor: pointer; }
.pest-meter { height: 9px; overflow: hidden; border-radius: 99px; background: #e3ebe3; }
.pest-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #62a466, #d49a25, #b64236); }
.library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.library-card { border: 1px solid #d3e1d4; border-radius: 14px; padding: 12px; background: #fbfdf9; }
.library-card h3 { margin: 7px 0 2px; color: var(--terra-green-dark); }
.library-card p { margin: 8px 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.library-card > button { border: 0; padding: 0; color: #943b33; background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }
.bottom nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 640px) {
  .home-auth-connected { align-items: flex-start; flex-wrap: wrap; }
  #home-language-slot { width: 100%; margin: 4px 0 0; }
  .language-selector { justify-content: space-between; }
  .farm-hero { align-items: stretch; flex-direction: column; }
  .mode-switch { align-self: flex-start; }
  .farm-page { gap: 18px; }
  .farm-page > .card { padding: 17px; border-radius: 17px; }
  .farm-quick-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .farm-group-heading { margin-top: 8px; }
  .farm-form { grid-template-columns: 1fr; }
  .photo-compare img { height: 130px; }
  .pest-row { grid-template-columns: minmax(0, 1fr) auto; }
  .pest-meter { grid-column: 1 / -1; grid-row: 2; }
  .library-grid { grid-template-columns: 1fr; }
  .bottom .nav { font-size: 10px; }
}

.location-context-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  border: 1px solid #c0d9c4;
  border-radius: 999px;
  padding: 5px 11px;
  background: #eef7ef;
  font-size: 11px;
  color: var(--terra-green-dark);
  font-weight: 700;
}

.checklist-section ul {
  list-style: none;
  padding-left: 0;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 9px 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8faf8;
  border: 1px solid #e1ebe2;
  transition: background .15s ease;
}
.checklist-item:hover {
  background: #eff7f0;
}
.checklist-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--terra-green);
  cursor: pointer;
}
.checklist-item label {
  cursor: pointer;
  font-size: 13px;
  line-height: 1.42;
  color: var(--ink);
}
.checklist-item.done label {
  text-decoration: line-through;
  color: #839186;
}

.result-utility-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.button.whatsapp-button {
  background: #25d366;
  border-color: #20bd5a;
  color: #ffffff;
}
.button.whatsapp-button:hover {
  background: #1eb857;
}

body.support-modal-open { overflow: hidden; }
.terra-support-fab {
  position: fixed;
  z-index: 45;
  right: clamp(18px, 3vw, 44px);
  bottom: 96px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  color: #fff;
  background: #1ebc5a;
  box-shadow: 0 10px 28px rgba(18, 82, 43, .32);
  font-size: 13px;
  font-weight: 850;
}
.terra-support-fab:hover { background: #159c49; }
.terra-support-fab svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.terra-support-backdrop {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 18px;
  background: rgba(14, 39, 24, .72);
  backdrop-filter: blur(4px);
}
.terra-support-backdrop[hidden] { display: none; }
.terra-support-panel {
  position: relative;
  width: min(590px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border: 1px solid #c8dacb;
  border-radius: 22px;
  padding: 24px;
  background: #fffdf8;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}
.terra-support-panel h2 { margin: 10px 36px 7px 0; color: var(--terra-green-dark); }
.terra-support-panel > p { margin: 0 0 16px; color: var(--muted); line-height: 1.5; }
.terra-support-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--terra-green-dark); background: #fff; font-size: 24px; line-height: 1; }
.terra-support-panel fieldset { margin: 14px 0; border: 0; padding: 0; }
.terra-support-panel legend { margin-bottom: 8px; color: var(--terra-green-dark); font-size: 13px; font-weight: 850; }
.support-reasons, .support-data { display: grid; gap: 8px; }
.support-reasons label, .support-data label, .support-final-consent { display: flex; align-items: flex-start; gap: 10px; border: 1px solid #d8e4d9; border-radius: 12px; padding: 10px 11px; background: #fff; }
.support-reasons input, .support-data input, .support-final-consent input { width: 18px; height: 18px; flex: none; margin: 1px 0 0; accent-color: var(--terra-green); }
.support-reasons b, .support-data b { display: block; color: var(--ink); font-size: 13px; }
.support-reasons small, .support-data small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.support-data input:disabled + span { opacity: .55; }
.support-photo-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 13px 0; }
.support-photo-picker .button { margin: 0; }
.support-photo-picker small { flex: 1 1 240px; color: var(--muted); line-height: 1.4; }
.support-location-button { width: 100%; margin-bottom: 12px; }
.support-final-consent { color: var(--ink); font-size: 12px; line-height: 1.45; }
.terra-support-panel .support-privacy { margin: 10px 0; color: var(--terra-green-dark); font-size: 11px; font-weight: 750; }
.support-last-case { border-left: 3px solid var(--gold); padding: 8px 10px; background: var(--cream); color: var(--ink) !important; font-size: 12px; }
.reschedule-list, .support-cases { display: grid; gap: 10px; margin-top: 12px; }
.reschedule-item, .support-case { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 11px; background: rgba(255,255,255,.82); }
.reschedule-item div, .support-case div { display: grid; gap: 3px; min-width: 0; }
.reschedule-item small, .support-case small { color: var(--muted); line-height: 1.35; }
.support-case span { width: max-content; border-radius: 999px; padding: 3px 8px; background: var(--pale-green); color: var(--terra-green-dark); font-size: 11px; font-weight: 800; }
@media (max-width: 620px) {
  .reschedule-item, .support-case { align-items: stretch; flex-direction: column; }
  .reschedule-item .button, .support-case .button { width: 100%; }
}
.support-send { width: 100%; margin-top: 2px; }
.support-limit { display: block; margin-top: 10px; color: var(--muted); font-size: 10px; line-height: 1.45; text-align: center; }

.calendar-panel { width: min(650px, 100%); }
.calendar-form { display: grid; gap: 11px; }
.calendar-form > label, .calendar-date-row label { display: grid; gap: 5px; color: var(--terra-green-dark); font-size: 12px; font-weight: 800; }
.calendar-form input, .calendar-form select, .calendar-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; color: var(--ink); background: #fff; font: inherit; }
.calendar-date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calendar-provider-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 14px; }
.calendar-provider-grid .button { margin: 0; }
.calendar-sync-box { margin-top: 14px; border: 1px solid #c9dccb; border-radius: 14px; padding: 13px; background: var(--cream); }
.calendar-sync-box b { color: var(--terra-green-dark); }
.calendar-sync-box p, .calendar-sync-box small { display: block; margin: 5px 0 9px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.calendar-inline-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.calendar-inline-actions .button { margin: 0; }
.farm-task > label { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 180px; }
.farm-task .calendar-task-button { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #bfd3c2; border-radius: 9px; padding: 7px 9px; color: var(--terra-green-dark); background: #fff; font-size: 11px; font-weight: 800; }
@media (max-width: 620px) {
  .calendar-date-row, .calendar-provider-grid { grid-template-columns: 1fr; }
  .calendar-inline-actions { justify-content: stretch; }
  .calendar-inline-actions .button, .calendar-task-button { width: 100%; justify-content: center; }
  .farm-task { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .terra-support-fab { right: 14px; bottom: 84px; width: 50px; height: 50px; justify-content: center; padding: 0; }
  .terra-support-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .terra-support-backdrop { align-items: end; padding: 0; }
  .terra-support-panel { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
}
.button.audio-button {
  background: #e67e22;
  border-color: #d35400;
  color: #ffffff;
}
.button.audio-button:hover {
  background: #d35400;
}
.button.audio-button.is-speaking {
  animation: pulse-audio 1.2s ease infinite alternate;
}
@keyframes pulse-audio {
  from { opacity: 1; }
  to { opacity: .7; }
}

/* --- ESTILOS FASE 2: GALERIA E MULTI-FOTO --- */
.multi-photo-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.photo-slot {
  position: relative;
  border: 1.5px dashed #adcbad;
  border-radius: 14px;
  padding: 12px;
  background: #fbfdfb;
  text-align: center;
  cursor: pointer;
  transition: all .15s ease;
}
.photo-slot:hover {
  border-color: var(--terra-green);
  background: #f2f9f3;
}
.photo-slot.has-file {
  border-style: solid;
  border-color: #8db696;
  background: #ffffff;
}
.photo-slot img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
}
.photo-slot-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--terra-green-dark);
  margin-top: 4px;
}
.photo-slot-sub {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.photo-slot-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  background: rgba(169, 61, 50, .85);
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.result-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.result-gallery-item {
  position: relative;
}
.result-gallery-item img {
  display: block;
  width: 100%;
  max-height: 280px;
  border-radius: 16px;
  object-fit: cover;
  background: #e7f2e9;
}
.result-gallery-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(22, 66, 40, .82);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

/* --- ESTILOS FASE 3: MODO OFFLINE E CALCULADORA AGRONÔMICA --- */
.offline-banner {
  margin-bottom: 14px;
  border: 1px solid #e2c08d;
  border-radius: 12px;
  padding: 10px 14px;
  background: #fffbf2;
  color: #7a541e;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.offline-banner strong {
  display: block;
  font-size: 13px;
}

.calc-card {
  margin-top: 16px;
  padding: 20px;
  border-radius: 20px;
  border-color: #bcd5c0;
  background: #f7fbf7;
}
.calc-card h3 {
  margin: 6px 0 0;
  color: var(--terra-green-dark);
}
.calc-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.calc-header > p { max-width: 390px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.calculator-stack { display: grid; gap: 18px; }
.calculator-block { border: 1px solid #ceded0; border-radius: 17px; padding: 16px; background: white; box-shadow: 0 5px 16px rgba(38, 82, 48, .05); }
.calculator-title { display: flex; align-items: flex-start; gap: 11px; }
.calculator-title > span { display: grid; flex: 0 0 auto; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: white; background: var(--terra-green-dark); font-weight: 900; }
.calculator-title h4 { margin: 0; color: var(--terra-green-dark); font-size: 15px; }
.calculator-title p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.calc-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #435748;
  margin-bottom: 4px;
}
.calc-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c3d6c5;
  border-radius: 10px;
  padding: 10px 11px;
  font-size: 14px;
  background: #ffffff;
}
.calc-result {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--terra-green-soft);
  color: var(--terra-green-dark);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}
.calc-guidance { display: block; margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.45; }

@media (max-width: 640px) {
  .calc-card { padding: 17px; border-radius: 17px; }
  .calc-header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .calculator-block { padding: 14px; }
}

/* --- ESTILOS 5 RECURSOS PEQUENO PRODUTOR --- */
.pest-alert-banner {
  margin: 16px 0 20px;
  border: 1px solid #f1c79a;
  border-left: 5px solid #e67e22;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff8f0;
  color: #7c4815;
}
.pest-alert-banner h3 {
  margin: 0 0 4px;
  font-size: 14px;
  color: #a04000;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pest-alert-banner p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #6e411b;
}

.loss-prevention-card {
  margin-top: 12px;
  border: 1px solid #b8dfbe;
  border-radius: 15px;
  padding: 13px 15px;
  background: #f2faf3;
  color: var(--terra-green-dark);
}
.loss-prevention-card b {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--terra-green-dark);
}
.loss-prevention-card p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #3b5742;
}

.button.pdf-button {
  background: #2c3e50;
  border-color: #1a252f;
  color: #ffffff;
}
.button.pdf-button:hover {
  background: #1a252f;
}

.export-watermark {
  display: none;
}

.crop-calendar-section {
  margin-top: 20px;
  padding: 20px;
  border-radius: 20px;
  border-color: #c0dbc4;
}
.crop-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.crop-calendar-header h3 {
  margin: 0;
  font-size: 16px;
}
.crop-item {
  border: 1px solid #d4e5d6;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: #ffffff;
}
.crop-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.crop-item-title {
  font-weight: 800;
  font-size: 14px;
  color: var(--terra-green-dark);
}
.crop-item-dates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
}
.crop-milestone {
  border-radius: 6px;
  padding: 4px 7px;
  background: #f4f8f4;
  color: #405745;
}
.crop-milestone b {
  color: var(--terra-green-dark);
}

.crop-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #dce8dc;
}
.crop-form select, .crop-form input {
  border: 1px solid #c3d6c5;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
}

/* --- ESTILO DE IMPRESSÃO PDF --- */
@media print {
  body { background: #fff !important; color: #000 !important; }
  .top, .bottom, .back, .result-utility-bar, .chat, .buttons, .weather-widget, .auth-user { display: none !important; }
  .shell { width: 100% !important; max-width: 100% !important; padding: 0 !important; }
  .result { padding-bottom: 74px !important; }
  .card, .section, .product-card { border: 1px solid #ccc !important; box-shadow: none !important; page-break-inside: avoid; }
  .result-image, .result-gallery img { max-height: 220px !important; }
  .export-watermark {
    display: block !important;
    position: fixed;
    right: 12mm;
    bottom: 8mm;
    left: 12mm;
    z-index: 20;
    border-top: 2px solid #b8953b;
    padding: 9px 0;
    background: #fff;
    color: #173f2a;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
  }
  .export-watermark a { color: inherit; }
}

/* --- EXPERIÊNCIA PERSONALIZADA E CRESCIMENTO V31 --- */
.today-panel { margin: 18px 0 26px; padding: 20px; border: 1px solid #a9cdb0; border-bottom: 4px solid #86af8c; border-radius: 20px; background: linear-gradient(135deg, #fbfffb, #edf7ef); box-shadow: 0 7px 0 rgba(76, 132, 85, .12), 0 18px 34px rgba(28, 74, 40, .08); }
.home-journey-hero { padding-bottom: 14px; }
.home-journey-hero h1 { margin-bottom: 7px; }
.home-profile { display: grid; gap: 16px; margin: 0 0 18px; padding: 20px; border: 1px solid #b7cfba; border-bottom: 4px solid #93b99a; border-radius: 20px; background: linear-gradient(145deg, #ffffff, #f1f8f2); box-shadow: 0 7px 0 rgba(82, 136, 91, .12), 0 18px 34px rgba(28, 74, 40, .08); }
.home-profile-intro { max-width: 680px; }
.home-profile h2 { margin: 7px 0 5px; color: var(--terra-green-dark); font-size: 22px; line-height: 1.18; }
.home-profile p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.home-profile-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.profile-choice { display: grid; grid-template-columns: 42px minmax(0, 1fr) 16px; align-items: center; gap: 10px; min-height: 104px; border: 1px solid #c8dbcb; border-bottom: 4px solid #aac8ae; border-radius: 16px; padding: 14px; color: var(--terra-green-dark); background: #fff; box-shadow: 0 4px 0 rgba(57, 108, 66, .10), 0 10px 20px rgba(28, 74, 40, .05); text-align: left; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease; }
.profile-choice:hover, .profile-choice:focus-visible { border-color: var(--terra-green); box-shadow: 0 6px 0 rgba(57, 108, 66, .14), 0 15px 26px rgba(28, 74, 40, .12); outline: 3px solid rgba(38, 126, 68, .18); outline-offset: 2px; transform: translateY(-2px); }
.profile-choice.active { border-color: var(--terra-green-dark); border-bottom-color: #0d3f23; color: #fff; background: linear-gradient(145deg, #1d6236, #124826); box-shadow: 0 6px 0 #0d3f23, 0 16px 28px rgba(18, 72, 38, .24); }
.profile-choice-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #edf6ee; font-size: 23px; }
.profile-choice.active .profile-choice-icon { background: rgba(255,255,255,.17); }
.profile-choice-copy { display: grid; gap: 5px; min-width: 0; }
.profile-choice-copy strong { color: inherit; font-size: 15px; line-height: 1.2; }
.profile-choice-copy small { color: #607466; font-size: 11px; line-height: 1.35; }
.profile-choice.active .profile-choice-copy small { color: #e1f2e5; }
.profile-choice-arrow { font-size: 26px; font-weight: 300; line-height: 1; opacity: .7; }
.home-profile-help { padding-top: 2px; font-size: 11px !important; }
.today-help { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.today-grid article[role="button"] { cursor: pointer; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.today-grid article[role="button"]:hover,
.today-grid article[role="button"]:focus-visible { border-color: var(--terra-green); box-shadow: 0 7px 18px rgb(27 85 48 / 10%); outline: 3px solid rgb(38 126 68 / 18%); outline-offset: 2px; transform: translateY(-1px); }
.today-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 15px; border-bottom: 1px solid #d5e6d7; }
.today-heading h2 { margin: 5px 0; }
.today-heading p { margin: 0; color: var(--muted); }
.today-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 17px; }
.today-grid article { display: flex; flex-direction: column; gap: 6px; min-height: 106px; padding: 15px; border: 1px solid #cadfce; border-bottom: 4px solid #b7d4bc; border-radius: 16px; background: #fff; box-shadow: 0 4px 0 rgba(57, 108, 66, .08), 0 10px 22px rgba(28, 74, 40, .05); }
.today-grid small, .today-grid span { color: var(--muted); }
.today-grid strong { color: var(--terra-green-dark); line-height: 1.35; font-size: 16px; }
.farm-tools-toggle { width: 100%; margin: 8px 0 18px; }
.farm-page:not(.show-all)[data-mode="producer"] [data-profiles]:not([data-profiles~="producer"]),
.farm-page:not(.show-all)[data-mode="home"] [data-profiles]:not([data-profiles~="home"]),
.farm-page:not(.show-all)[data-mode="garden"] [data-profiles]:not([data-profiles~="garden"]) { display: none; }
.scientific-sources { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #d7e4d8; color: var(--muted); font-size: 12px; line-height: 1.55; }
.scientific-sources a { color: var(--terra-green-dark); font-weight: 700; }
.seasonal-crops { border-color: #d9c681; background: linear-gradient(135deg, #fffdf6, #f6f9ef); }
.seasonal-crop-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 8px; padding: 0; list-style: none; }
.seasonal-crop-list li { padding: 10px 12px; border: 1px solid #e5ddbd; border-radius: 12px; background: #fff; color: var(--terra-green-dark); }
.result-primary-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.result-action-menu { position: relative; }
.result-action-menu > summary { box-sizing: border-box; width: 100%; list-style: none; text-align: center; cursor: pointer; }
.result-action-menu > summary::-webkit-details-marker { display: none; }
.result-action-menu > div { display: grid; gap: 8px; padding: 10px; border: 1px solid #d6e3d8; border-radius: 14px; background: #fff; box-shadow: 0 12px 28px rgba(23,63,42,.12); }
.specialist-priority { box-shadow: 0 0 0 3px rgba(184,149,59,.2); }
.pwa-install-card { position: fixed; z-index: 90; right: 16px; bottom: 92px; left: 16px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; max-width: 720px; margin: auto; padding: 14px; border: 1px solid #a9cdb0; border-radius: 18px; background: #fff; box-shadow: 0 18px 48px rgba(20,55,35,.24); }
.pwa-install-card div { display: flex; flex-direction: column; gap: 4px; }
.pwa-install-card span { color: var(--muted); font-size: 12px; }
.pwa-install-close { border: 0; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }
.invite-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top, #edf8ef, #f6f1e6 62%); }
.invite-card { width: min(720px, 100%); padding: 28px; border: 1px solid #bfd9c4; border-radius: 24px; background: #fff; box-shadow: 0 20px 60px rgba(23,63,42,.16); text-align: center; }
.invite-logo { width: min(220px, 65%); border-radius: 14px; }
.invite-card h1 { color: var(--terra-green-dark); }
.invite-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; padding: 0; list-style: none; }
.invite-benefits li { padding: 14px; border-radius: 14px; background: #f1f8f2; color: #31523a; }
.invite-note { color: var(--muted); font-size: 12px; }

/* --- CICLO DE ACOMPANHAMENTO V53 --- */
.care-plan-card, .retention-card, .guided-round, .quick-care { border-color: #b7d4bd; background: linear-gradient(145deg, #fff, #f4faf5); }
.care-plan-heading, .round-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.care-plan-heading h2, .round-heading h2 { margin: 6px 0 0; }
.care-plan-heading > strong, .round-heading > strong { color: var(--terra-green-dark); font-size: 13px; }
.care-plan-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0; padding: 0; list-style: none; counter-reset: care-step; }
.care-plan-flow li { position: relative; padding: 12px 8px; border: 1px solid #d4e1d6; border-radius: 12px; background: #fff; color: var(--muted); font-size: 12px; text-align: center; }
.care-plan-flow li.done { border-color: #7daf88; background: #eaf6ec; color: #194c2d; font-weight: 700; }
.care-plan-action, .care-plan-result, .care-plan-prompt { padding: 13px; border-radius: 13px; background: #fff; }
.care-plan-action p, .care-plan-result { margin: 5px 0; line-height: 1.5; }
.care-outcomes, .quick-care-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.care-outcomes button, .quick-care-actions button { flex: 1 1 135px; min-height: 42px; border: 1px solid #9fc4a7; border-radius: 12px; background: #fff; color: var(--terra-green-dark); font-weight: 750; cursor: pointer; }
.care-outcomes button:hover, .quick-care-actions button:hover { background: #eaf6ec; }
.care-plan-list { display: grid; gap: 10px; }
.care-plan-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid #d5e5d8; border-radius: 14px; background: #fff; }
.care-plan-row h3, .care-plan-row p { margin: 6px 0; }
.passport-grid { display: grid; gap: 14px; margin: 16px 0; }
.passport-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 145px; gap: 14px; padding: 16px; border: 1px solid #d1e1d4; border-radius: 17px; background: #fff; }
.passport-card.passport-selected { border-color: #b8953b; box-shadow: 0 0 0 3px rgba(184,149,59,.18); }
.passport-summary { display: flex; gap: 12px; align-items: center; }
.passport-summary img, .passport-placeholder { width: 76px; height: 76px; flex: 0 0 76px; border-radius: 15px; object-fit: cover; }
.passport-placeholder { display: grid; place-items: center; background: #edf6ee; font-size: 32px; }
.passport-summary h3, .passport-summary p { margin: 5px 0; }
.passport-milestones { margin: 10px 0; padding-left: 20px; font-size: 12px; line-height: 1.55; }
.passport-qr { grid-column: 2; grid-row: 1 / span 4; display: grid; place-items: start center; }
.passport-qr svg { width: 132px; height: 132px; }
.passport-notify, .passport-card .buttons { grid-column: 1; }
.guided-round { margin: 12px 0 20px; }
.round-list { display: grid; gap: 8px; margin: 15px 0; }
.round-item { display: block; cursor: pointer; }
.round-item input { position: absolute; opacity: 0; pointer-events: none; }
.round-item span { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid #d3e1d5; border-radius: 13px; background: #fff; }
.round-item span b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e5f2e8; color: #245c3a; }
.round-item.done span { opacity: .7; text-decoration: line-through; }
.round-item.done span b { background: #245c3a; color: #fff; }
.notification-preferences { display: grid; gap: 9px; margin: 12px 0; padding: 12px; border-radius: 13px; background: #f4f8f4; }
.notification-preferences label { display: flex; align-items: center; gap: 8px; }
.notification-preferences input[type="time"] { padding: 7px; border: 1px solid #bfd1c2; border-radius: 8px; }

@media (max-width: 700px) {
  .home-profile { padding: 16px; }
  .home-profile-choices { grid-template-columns: 1fr; }
  .profile-choice { min-height: 82px; }
  .today-heading { align-items: stretch; flex-direction: column; }
  .today-grid, .invite-benefits, .result-primary-actions { grid-template-columns: 1fr; }
  .pwa-install-card { grid-template-columns: 1fr auto; }
  .pwa-install-card .button { grid-column: 1; }
  .care-plan-heading, .round-heading { flex-direction: column; }
  .care-plan-flow { grid-template-columns: repeat(2, 1fr); }
  .care-plan-row, .passport-card { grid-template-columns: 1fr; }
  .passport-qr, .passport-notify, .passport-card .buttons { grid-column: 1; grid-row: auto; }
  .passport-qr { justify-items: start; }
}

/* --- REFINAMENTO DE INTERFACE V58: HIERARQUIA E RESPIRAÇÃO VISUAL --- */
/* Camada exclusivamente visual: não altera fluxos, conteúdos nem comportamentos. */
body {
  background:
    radial-gradient(circle at 50% -10%, rgba(214, 236, 216, .72), transparent 36rem),
    linear-gradient(180deg, #f5f7f1 0%, #f8f6ee 68%, #f4f7f2 100%);
}

.shell {
  width: min(100%, 880px);
  padding: 0 22px 116px;
}

.top {
  margin-right: -22px;
  margin-left: -22px;
  padding-right: 22px;
  padding-left: 22px;
  border-bottom-color: #d2e0d3;
  background: rgba(250, 251, 247, .92);
}

.feature,
.card {
  border: 1px solid #cbdccb;
  border-bottom: 3px solid #b8d0ba;
  border-radius: 18px;
  box-shadow: 0 4px 0 rgba(48, 100, 59, .08), 0 14px 28px rgba(28, 74, 40, .055);
}

.feature {
  padding: 15px 9px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.feature:hover {
  border-color: #91ba99;
  box-shadow: 0 6px 0 rgba(48, 100, 59, .11), 0 18px 30px rgba(28, 74, 40, .09);
  transform: translateY(-2px);
}

.button {
  min-height: 44px;
  border-bottom: 3px solid #114726;
  box-shadow: 0 3px 0 rgba(17, 71, 38, .22), 0 8px 16px rgba(28, 74, 40, .10);
}

.button:hover {
  box-shadow: 0 4px 0 rgba(17, 71, 38, .24), 0 12px 20px rgba(28, 74, 40, .14);
  transform: translateY(-1px);
}

.button.secondary {
  border-bottom-color: #b6cfba;
  box-shadow: 0 3px 0 rgba(48, 100, 59, .10), 0 8px 16px rgba(28, 74, 40, .055);
}

.history-item {
  border: 1px solid #d2e1d3;
  border-bottom: 3px solid #bed5c1;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 3px 0 rgba(48, 100, 59, .06), 0 10px 18px rgba(28, 74, 40, .045);
}

.guide,
.result {
  padding-top: 14px;
}

.guide .intro,
.result-head {
  margin-bottom: 20px;
}

.guide-section-heading {
  padding: 15px 17px;
  border-bottom-width: 3px;
  box-shadow: 0 4px 0 rgba(48, 100, 59, .07), 0 12px 22px rgba(28, 74, 40, .04);
}

.result-grid {
  gap: 14px;
}

.result-grid .card {
  border-bottom-width: 3px;
  box-shadow: 0 4px 0 rgba(48, 100, 59, .07), 0 12px 20px rgba(28, 74, 40, .045);
}

.farm-page {
  gap: 26px;
  padding-top: 14px;
}

.farm-page > .card {
  padding: 22px;
  border-bottom: 4px solid #b3cfb7;
  box-shadow: 0 6px 0 rgba(48, 100, 59, .09), 0 18px 32px rgba(28, 74, 40, .06);
}

.farm-quick-nav {
  gap: 12px;
}

.farm-quick-nav a {
  min-height: 58px;
  border-bottom: 3px solid #b9d1bc;
  padding: 11px 12px;
  background: linear-gradient(145deg, #ffffff, #f0f7f1);
  box-shadow: 0 3px 0 rgba(48, 100, 59, .07), 0 9px 16px rgba(28, 74, 40, .04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.farm-quick-nav a:hover,
.farm-quick-nav a:focus-visible {
  border-color: var(--terra-green);
  box-shadow: 0 5px 0 rgba(48, 100, 59, .11), 0 13px 22px rgba(28, 74, 40, .09);
  outline: 3px solid rgba(38, 126, 68, .16);
  outline-offset: 2px;
  transform: translateY(-2px);
}

.care-plan-row,
.passport-card,
.crop-item,
.round-item span {
  border-bottom-width: 3px;
  box-shadow: 0 3px 0 rgba(48, 100, 59, .06), 0 8px 16px rgba(28, 74, 40, .035);
}

.bottom {
  border-top: 1px solid #cbdccb;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -8px 24px rgba(28, 74, 40, .06);
}

.bottom nav {
  width: min(880px, 100%);
  padding: 9px 22px 10px;
}

.nav {
  min-height: 49px;
  border-radius: 13px;
}

.nav.active {
  box-shadow: inset 0 -2px 0 rgba(22, 83, 43, .12);
}

@media (max-width: 700px) {
  .shell { padding: 0 14px 98px; }
  .top { margin-right: -14px; margin-left: -14px; padding-right: 14px; padding-left: 14px; }
  .feature, .card { border-radius: 16px; }
  .farm-page { gap: 20px; padding-top: 10px; }
  .farm-page > .card { padding: 17px; }
  .farm-quick-nav { gap: 9px; }
  .farm-quick-nav a { min-height: 52px; }
  .bottom nav { padding-right: 10px; padding-left: 10px; }
}
