:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #27382d;
  background: #f5f6f1;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --forest: #284a38;
  --leaf: #739257;
  --muted: #7d877b;
  --line: #e8ebe4;
  --paper: #fff;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #f5f6f1;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #9aaf6f;
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: clamp(20px, 3.2vw, 48px);
  padding: 0 max(28px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid #e8ebe3;
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--forest);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.08em;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.055em;
}

.brand-caption {
  color: #879084;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.main-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: clamp(13px, 1.8vw, 28px);
  margin: 0 auto;
}

.nav-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 6px;
  color: #737d71;
  font-size: 0.83rem;
  font-weight: 550;
  white-space: nowrap;
  text-decoration: none;
  transition: color 150ms ease;
}

.nav-link:hover,
.nav-link.is-current {
  color: var(--forest);
}

.nav-link.is-current {
  position: relative;
}

.nav-link.is-current::after {
  position: absolute;
  right: 0;
  bottom: -18px;
  left: 0;
  height: 2px;
  background: #7e9b5b;
  content: "";
}

.alert-count {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  color: #fff;
  background: #bc654a;
  font-size: 0.65rem;
  font-weight: 700;
}

.header-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 18px;
}

.selected-farm-pill {
  display: inline-flex;
  min-width: 126px;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border: 1px solid #e8ebe4;
  border-radius: 9px;
  color: #53614f;
  background: #fff;
  text-decoration: none;
}

.farm-pill-icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  color: #66814f;
  background: #eff4e9;
}

.selected-farm-pill > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.farm-pill-name {
  max-width: 112px;
  overflow: hidden;
  color: #465644;
  font-size: 0.65rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.farm-pill-id {
  color: #929a8f;
  font-size: 0.55rem;
}

.farm-pill-chevron {
  margin-left: auto;
  color: #929a8f;
  font-size: 0.75rem;
}

.demo-pill,
.rover-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #597448;
  font-size: 0.73rem;
  font-weight: 650;
  white-space: nowrap;
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7b9b5f;
  box-shadow: 0 0 0 3px rgb(123 155 95 / 13%);
}

.avatar-link {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #dfe6d9;
  border-radius: 50%;
  color: var(--forest);
  background: #edf2e8;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.dashboard-main {
  width: min(100% - 56px, 1400px);
  margin: 0 auto;
  padding: 36px 0 30px;
}

.dashboard-page:not([data-auth-state="ready"]) .dashboard-main {
  visibility: hidden;
}

.auth-status {
  display: none;
  width: min(100% - 36px, 560px);
  margin: 24px auto;
  padding: 14px 16px;
  border: 1px solid #e4e9dc;
  border-radius: 9px;
  color: #64734f;
  background: #fff;
  font-size: 0.8rem;
  line-height: 1.5;
}

.dashboard-page:not([data-auth-state="ready"]) .auth-status {
  display: block;
}

.welcome-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #8a9385;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #83a264;
}

.eyebrow-divider {
  color: #c1c8bc;
}

h1,
h2,
p {
  margin-top: 0;
}

.welcome-row h1 {
  margin: 0;
  color: #25372c;
  font-size: clamp(1.7rem, 3.1vw, 2.45rem);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1.16;
}

.welcome-row h1 span {
  color: #809864;
  font-family: Georgia, serif;
  font-weight: 400;
  font-style: italic;
}

.welcome-copy {
  margin: 8px 0 0;
  color: #818a7e;
  font-size: 0.89rem;
}

.date-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid #e3e7df;
  border-radius: 9px;
  color: #586454;
  background: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.date-button > span:first-child {
  color: #82976b;
  font-size: 1rem;
}

.chevron {
  margin-left: 5px;
  color: #929b8f;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metric-card,
.panel {
  border: 1px solid #e8ebe4;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 14px rgb(44 62 47 / 2.5%);
}

.metric-card {
  min-height: 196px;
  padding: 17px 18px 13px;
}

.metric-top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.metric-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #69834f;
  background: #eff4e9;
  font-size: 1.05rem;
}

.temperature-card .metric-icon {
  color: #bf7854;
  background: #fbf0e9;
}

.humidity-card .metric-icon {
  color: #648aa1;
  background: #edf4f7;
}

.health-card .metric-icon {
  color: #927d48;
  background: #f7f3e8;
}

.metric-label {
  color: #788273;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.075em;
}

.metric-menu {
  margin-left: auto;
  color: #aab1a5;
  font-size: 0.68rem;
  letter-spacing: 0.11em;
}

.metric-reading {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 15px 0 2px;
  color: #2b3d31;
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.07em;
}

.metric-unit {
  color: #526250;
  font-size: 1.08rem;
  font-weight: 550;
  letter-spacing: -0.03em;
}

.metric-change {
  margin-left: 7px;
  font-size: 0.67rem;
  font-weight: 650;
  letter-spacing: 0;
}

.positive {
  color: #65834d;
}

.neutral {
  color: #899184;
  font-weight: 500;
}

.metric-foot {
  margin: 0;
  color: #939b90;
  font-size: 0.7rem;
}

.mini-chart {
  display: flex;
  height: 36px;
  align-items: flex-end;
  gap: 5px;
  margin-top: 9px;
  border-bottom: 1px solid #edf0e9;
}

.mini-chart i {
  flex: 1;
  height: var(--bar-height);
  border-radius: 3px 3px 0 0;
  background: #dce8d1;
}

.mini-chart i:nth-child(3n) {
  background: #bacda8;
}

.temperature-chart i {
  background: #f1e0d4;
}

.temperature-chart i:nth-child(3n) {
  background: #eac4aa;
}

.humidity-chart i {
  background: #d7e8ee;
}

.humidity-chart i:nth-child(3n) {
  background: #b7d2dd;
}

.mini-chart i:nth-child(1) { --bar-height: 36%; }
.mini-chart i:nth-child(2) { --bar-height: 43%; }
.mini-chart i:nth-child(3) { --bar-height: 39%; }
.mini-chart i:nth-child(4) { --bar-height: 55%; }
.mini-chart i:nth-child(5) { --bar-height: 49%; }
.mini-chart i:nth-child(6) { --bar-height: 64%; }
.mini-chart i:nth-child(7) { --bar-height: 57%; }
.mini-chart i:nth-child(8) { --bar-height: 69%; }
.mini-chart i:nth-child(9) { --bar-height: 61%; }
.mini-chart i:nth-child(10) { --bar-height: 76%; }
.mini-chart i:nth-child(11) { --bar-height: 69%; }
.mini-chart i:nth-child(12) { --bar-height: 86%; }

.temperature-chart i:nth-child(odd) { --bar-height: 48%; }
.temperature-chart i:nth-child(2n) { --bar-height: 64%; }
.temperature-chart i:nth-child(5n) { --bar-height: 83%; }
.humidity-chart i:nth-child(odd) { --bar-height: 62%; }
.humidity-chart i:nth-child(2n) { --bar-height: 47%; }
.humidity-chart i:nth-child(4n) { --bar-height: 77%; }

.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: #a1a99d;
  font-size: 0.57rem;
  font-weight: 600;
}

.health-progress {
  height: 7px;
  margin: 21px 0 11px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf0e9;
}

.health-progress span {
  display: block;
  width: 92%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #93ae73, #66864c);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.85fr);
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  padding: 20px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-heading .eyebrow {
  margin-bottom: 6px;
}

.panel-heading h2 {
  margin: 0;
  color: #2c3c31;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.subtle-count {
  margin-left: 8px;
  color: #969e92;
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0;
}

.text-action {
  color: #68824f;
  font-size: 0.72rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.text-action span {
  margin-left: 4px;
}

.farm-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  margin: 20px 0 13px;
  color: #737e70;
  font-size: 0.68rem;
}

.farm-summary > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-dot.healthy { background: #88a96b; }
.legend-dot.attention { background: #d2945f; }
.legend-dot.scanning { background: #7297a0; }

.field-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 11px;
  border: 1px solid #e8ede1;
  border-radius: 10px;
  background-color: #f4f6ef;
  background-image: linear-gradient(rgb(255 255 255 / 45%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 45%) 1px, transparent 1px);
  background-size: 18px 18px;
}

.zone {
  display: flex;
  min-height: 55px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgb(83 111 66 / 11%);
  border-radius: 7px;
  color: #45603b;
  background: #e4eddc;
}

.zone > span {
  font-size: 0.68rem;
  font-weight: 700;
}

.zone small {
  color: #77876c;
  font-size: 0.59rem;
  font-weight: 550;
}

.zone small b {
  color: #6f9351;
}

.attention-zone {
  border-color: #f0dfc8;
  color: #895b35;
  background: #f8eddf;
}

.attention-zone small b {
  color: #c17a42;
}

.scanning-zone {
  border-color: #d6e4e6;
  color: #486f79;
  background: #e8f1f1;
}

.scanning-zone small {
  color: #63828a;
}

.map-footnote {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: #919a8d;
  font-size: 0.64rem;
}

.map-pin {
  color: #758b5f;
  font-size: 0.9rem;
}

.map-updated {
  margin-left: auto;
  color: #a0a89c;
}

.rover-panel {
  min-width: 0;
}

.rover-live {
  padding: 7px 9px;
  border-radius: 99px;
  background: #f0f5eb;
  font-size: 0.65rem;
}

.rover-scene {
  position: relative;
  height: 172px;
  margin: 16px 0 14px;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(180deg, #dce9e2 0%, #edf1dc 69%, #d5dfc2 100%);
}

.sun-disc {
  position: absolute;
  top: 20px;
  right: 34px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #f2d89b;
}

.field-hill {
  position: absolute;
  right: -15%;
  bottom: -38%;
  left: -15%;
  height: 80%;
  border-radius: 50% 50% 0 0;
}

.hill-back {
  right: -20%;
  bottom: -45%;
  left: -10%;
  background: #afc19a;
  transform: rotate(-7deg);
}

.hill-front {
  right: -18%;
  bottom: -57%;
  left: -20%;
  background: #879e70;
  transform: rotate(7deg);
}

.crop {
  position: absolute;
  z-index: 1;
  color: #526f43;
  font-size: 2rem;
  line-height: 1;
}

.crop-one { bottom: 42px; left: 8%; }
.crop-two { bottom: 55px; left: 25%; font-size: 1.7rem; }
.crop-three { bottom: 38px; left: 42%; }
.crop-four { right: 25%; bottom: 54px; font-size: 1.7rem; }
.crop-five { right: 7%; bottom: 41px; }

.rover-illustration {
  position: absolute;
  z-index: 2;
  bottom: 43px;
  left: 51%;
  width: 59px;
  height: 35px;
  transform: translateX(-50%);
}

.rover-body {
  position: absolute;
  right: 4px;
  bottom: 7px;
  left: 4px;
  height: 21px;
  border: 2px solid #536251;
  border-radius: 7px 9px 5px 5px;
  background: #f9f8e9;
}

.rover-body::after {
  position: absolute;
  top: 7px;
  left: 10px;
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: #8fa27b;
  content: "";
}

.rover-camera {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 24px;
  width: 12px;
  height: 10px;
  border: 2px solid #465649;
  border-radius: 3px;
  background: #7993a0;
}

.rover-wheel {
  position: absolute;
  bottom: 0;
  width: 13px;
  height: 13px;
  border: 3px solid #405142;
  border-radius: 50%;
  background: #d8ddca;
}

.wheel-left { left: 5px; }
.wheel-right { right: 5px; }

.scan-beam {
  position: absolute;
  z-index: 1;
  top: 33px;
  left: 48%;
  width: 86px;
  height: 58px;
  border-top: 1px solid rgb(224 185 106 / 53%);
  background: linear-gradient(180deg, rgb(245 214 151 / 20%), transparent);
  clip-path: polygon(46% 0, 55% 0, 100% 100%, 0 100%);
}

.rover-details {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
}

.rover-details > div {
  display: grid;
  gap: 5px;
}

.detail-label {
  color: #929b8e;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.rover-details strong {
  color: #37463a;
  font-size: 0.73rem;
  font-weight: 650;
}

.tag-scanning {
  display: inline-block;
  margin-left: 4px;
  padding: 3px 5px;
  border-radius: 4px;
  color: #537782;
  background: #edf4f4;
  font-size: 0.56rem;
  font-weight: 600;
}

.detail-secondary {
  color: #929b8e;
  font-weight: 450;
}

.rover-link {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #edf0e9;
  color: #66814f;
  font-size: 0.72rem;
  font-weight: 650;
  text-decoration: none;
}

.activity-panel {
  padding-bottom: 9px;
}

.activity-list {
  margin-top: 8px;
}

.activity-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 70px auto;
  align-items: center;
  gap: 12px;
  min-height: 57px;
  border-top: 1px solid #f0f2ed;
}

.activity-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 9px;
  font-size: 0.9rem;
}

.moisture-icon {
  color: #ad7448;
  background: #fbf1e6;
}

.rover-icon {
  color: #66839a;
  background: #eef4f7;
}

.health-icon {
  color: #6b8554;
  background: #eff4e9;
}

.activity-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.activity-copy strong {
  overflow: hidden;
  color: #485548;
  font-size: 0.72rem;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-copy span,
.activity-item time {
  color: #929a8f;
  font-size: 0.64rem;
}

.activity-item time {
  white-space: nowrap;
}

.activity-severity {
  justify-self: end;
  padding: 5px 8px;
  border-radius: 99px;
  color: #a26d3e;
  background: #fbf1e6;
  font-size: 0.59rem;
  font-weight: 650;
  white-space: nowrap;
}

.severity-neutral {
  color: #687f8c;
  background: #eff4f6;
}

.severity-healthy {
  color: #688050;
  background: #f0f5e9;
}

.data-disclaimer {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 15px 0 0;
  color: #91998d;
  font-size: 0.67rem;
}

.data-disclaimer span {
  color: #83966d;
}

.section-anchor {
  position: relative;
  top: -90px;
}

/* Login */
.login-page {
  min-height: 100vh;
  background: #fff;
}

.login-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr);
}

.login-art {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  padding: 34px clamp(36px, 6vw, 92px) 25px;
  color: #fff;
  background: linear-gradient(145deg, #263f32, #38583e 58%, #526b42);
}

.login-brand {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  color: #fff;
}

.login-brand .brand-mark {
  color: var(--forest);
  background: #dce8c5;
}

.login-brand .brand-caption {
  color: #c1cbb8;
}

.login-message {
  position: relative;
  z-index: 2;
  margin-top: clamp(58px, 10vh, 105px);
}

.art-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d5dfc9;
  font-size: 0.75rem;
  font-weight: 550;
}

.art-kicker .status-indicator {
  background: #bdd58e;
  box-shadow: 0 0 0 3px rgb(189 213 142 / 16%);
}

.login-message h1 {
  margin: 20px 0 13px;
  font-size: clamp(3rem, 5.2vw, 5.2rem);
  font-weight: 550;
  letter-spacing: -0.075em;
  line-height: 0.99;
}

.login-message h1 span {
  color: #cedcae;
  font-family: Georgia, serif;
  font-weight: 400;
  font-style: italic;
}

.login-message p {
  max-width: 370px;
  margin: 0;
  color: #d1d9cb;
  font-size: 0.93rem;
  line-height: 1.7;
}

.landscape-art {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 39%;
  min-height: 255px;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgb(20 43 31 / 14%));
}

.art-sun {
  position: absolute;
  top: 8%;
  right: 20%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e3d19e;
  box-shadow: 0 0 50px rgb(227 209 158 / 17%);
}

.art-cloud {
  position: absolute;
  top: 22%;
  width: 86px;
  height: 11px;
  border-radius: 20px;
  background: rgb(219 227 205 / 15%);
}

.cloud-one { left: 13%; }
.cloud-two { top: 38%; right: 14%; width: 60px; }

.art-hill {
  position: absolute;
  right: -8%;
  bottom: -42%;
  left: -12%;
  height: 93%;
  border-radius: 50% 50% 0 0;
}

.art-hill-back {
  bottom: -53%;
  background: #60734e;
  transform: rotate(-7deg);
}

.art-hill-mid {
  right: -24%;
  bottom: -69%;
  left: -21%;
  background: #718655;
  transform: rotate(6deg);
}

.art-hill-front {
  right: -22%;
  bottom: -91%;
  left: -9%;
  background: #849861;
  transform: rotate(-4deg);
}

.art-row {
  position: absolute;
  z-index: 1;
  bottom: 3%;
  left: -12%;
  width: 125%;
  height: 45%;
  border-top: 1px solid rgb(217 226 189 / 20%);
  border-radius: 50%;
  transform: rotate(-13deg);
}

.row-two {
  bottom: -12%;
  left: -4%;
  transform: rotate(-18deg);
}

.row-three {
  bottom: -26%;
  left: 5%;
  transform: rotate(-23deg);
}

.art-plant {
  position: absolute;
  z-index: 2;
  color: #d2dfac;
  font-size: 2.3rem;
}

.plant-a { bottom: 24%; left: 13%; }
.plant-b { bottom: 31%; left: 30%; font-size: 1.9rem; }
.plant-c { right: 32%; bottom: 21%; }
.plant-d { right: 11%; bottom: 34%; font-size: 1.9rem; }
.plant-e { right: 46%; bottom: 39%; font-size: 1.7rem; }
.plant-f { bottom: 17%; left: 47%; font-size: 1.7rem; }

.land-card {
  position: absolute;
  z-index: 3;
  right: clamp(23px, 5vw, 72px);
  bottom: 25%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 12px;
  color: #f8faf2;
  background: rgb(38 60 43 / 76%);
  box-shadow: 0 10px 30px rgb(20 43 31 / 15%);
  backdrop-filter: blur(10px);
}

.land-card-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: #d7e5bd;
  background: rgb(255 255 255 / 12%);
}

.land-card > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.land-card b {
  font-size: 0.69rem;
}

.land-card small {
  color: #c5d0bb;
  font-size: 0.59rem;
}

.land-card strong {
  margin-left: 8px;
  color: #e2edca;
  font-size: 1rem;
}

.login-art-footer {
  position: relative;
  z-index: 2;
  margin: auto 0 0;
  color: #c4cfbd;
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.login-art-footer span {
  padding: 0 6px;
  color: #d6dfa9;
}

.login-form-side {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px clamp(28px, 7vw, 100px);
}

.login-mobile-brand {
  display: none;
}

.login-card {
  width: min(100%, 390px);
}

.login-overline {
  color: #80916d;
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.login-card h2 {
  margin: 11px 0 6px;
  color: #26382c;
  font-size: clamp(1.7rem, 3vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.055em;
}

.login-subtitle {
  margin: 0 0 27px;
  color: #899286;
  font-size: 0.85rem;
}

.google-button,
.sign-in-button {
  display: flex;
  width: 100%;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}

.google-button {
  border: 1px solid #e0e5dc;
  color: #38453a;
  background: #fff;
}

.google-button:hover {
  background: #f8faf6;
}

.google-button:disabled {
  color: #939b90;
  background: #f8f9f6;
  cursor: not-allowed;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 22px 0;
  color: #9aa195;
  font-size: 0.68rem;
  white-space: nowrap;
}

.form-divider::before,
.form-divider::after {
  height: 1px;
  flex: 1;
  background: #ecefe9;
  content: "";
}

#login-form label {
  display: block;
  margin-bottom: 8px;
  color: #465346;
  font-size: 0.73rem;
  font-weight: 650;
}

.input-wrap {
  display: flex;
  min-height: 47px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #e2e7df;
  border-radius: 8px;
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.input-wrap:focus-within {
  border-color: #93a77c;
  box-shadow: 0 0 0 3px rgb(147 167 124 / 12%);
}

.input-icon {
  color: #9aa592;
  font-size: 0.9rem;
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #344237;
  background: transparent;
  font-size: 0.79rem;
}

.input-wrap input::placeholder {
  color: #b0b7ad;
}

.input-wrap:focus-within input:focus-visible {
  outline: 0;
}

.password-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.password-label label {
  margin: 0 !important;
}

.password-label a,
.login-terms a {
  color: #6d8654;
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
}

.password-toggle {
  padding: 5px 0 5px 5px;
  border: 0;
  color: #718568;
  background: transparent;
  font-size: 0.69rem;
  font-weight: 650;
  cursor: pointer;
}

.remember-row {
  display: flex !important;
  align-items: center;
  gap: 9px;
  margin: 16px 0 19px !important;
  color: #7d877b !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  cursor: pointer;
}

.remember-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.checkmark {
  width: 15px;
  height: 15px;
  border: 1px solid #d5ddd1;
  border-radius: 4px;
  background: #fff;
}

.remember-row input:checked + .checkmark {
  border-color: #617c4d;
  background: #617c4d;
  box-shadow: inset 0 0 0 3px #fff;
}

.remember-row input:focus-visible + .checkmark {
  outline: 3px solid #9aaf6f;
  outline-offset: 2px;
}

.sign-in-button {
  justify-content: space-between;
  padding: 0 16px;
  border: 1px solid var(--forest);
  color: #fff;
  background: var(--forest);
}

.sign-in-button:hover {
  background: #355a42;
}

.sign-in-button span {
  font-size: 1.1rem;
  font-weight: 400;
}

.form-message {
  min-height: 17px;
  margin: 10px 0 0;
  color: #657f51;
  font-size: 0.68rem;
  line-height: 1.45;
}

.form-message.is-error {
  color: #b45c45;
}

.login-terms {
  margin: 19px 0 0;
  color: #9aa195;
  font-size: 0.64rem;
  line-height: 1.6;
  text-align: center;
}

.login-terms a {
  font-size: inherit;
}

.login-side-footer {
  display: flex;
  width: min(100%, 390px);
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 35px;
  color: #a1a89e;
  font-size: 0.55rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.login-side-footer a {
  color: #718568;
  font-size: 0.64rem;
  letter-spacing: 0;
  text-decoration: none;
}

/* Farm selection */
.farm-select-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 0, #e9eee2 0, transparent 48%),
    #f5f6f1;
}

.farm-select-header {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(22px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid #e8ebe4;
  background: rgb(255 255 255 / 90%);
}

.plain-button {
  padding: 8px 11px;
  border: 0;
  border-radius: 7px;
  color: #66745f;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 650;
  cursor: pointer;
}

.plain-button:hover {
  background: #eff3ea;
}

.farm-select-main {
  width: min(100% - 36px, 600px);
  margin: clamp(50px, 10vh, 105px) auto 50px;
  text-align: center;
}

.farm-select-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin: 0 auto 18px;
  border: 1px solid #e0e8d8;
  border-radius: 16px;
  color: #68834f;
  background: #fff;
  box-shadow: 0 5px 16px rgb(44 62 47 / 4%);
  font-size: 1.45rem;
}

.farm-select-main > .eyebrow {
  justify-content: center;
  margin-bottom: 7px;
}

.farm-select-main h1 {
  margin: 0;
  color: #293b2f;
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  font-weight: 650;
  letter-spacing: -0.06em;
}

.farm-select-copy {
  margin: 9px 0 26px;
  color: #7f897d;
  font-size: 0.84rem;
}

.farm-list {
  display: grid;
  gap: 10px;
  text-align: left;
}

.farm-option {
  display: flex;
  width: 100%;
  min-height: 76px;
  align-items: center;
  gap: 13px;
  padding: 12px 15px;
  border: 1px solid #e6eae2;
  border-radius: 11px;
  color: #324336;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.farm-option:hover {
  transform: translateY(-1px);
  border-color: #bdcdb0;
  box-shadow: 0 7px 20px rgb(44 62 47 / 6%);
}

.farm-option-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: #64804d;
  background: #eff4e9;
  font-size: 1.15rem;
}

.farm-option-details {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.farm-option-details strong {
  overflow: hidden;
  color: #3a493b;
  font-size: 0.83rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.farm-option-details span {
  color: #8c9589;
  font-size: 0.68rem;
}

.farm-option-arrow {
  margin-left: auto;
  color: #7f9467;
  font-size: 1rem;
}

.farm-admin-note {
  margin: 23px auto 0;
  color: #929a8f;
  font-size: 0.69rem;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .site-header {
    gap: 18px;
    padding-right: 22px;
    padding-left: 22px;
  }

  .main-nav {
    gap: 13px;
  }

  .nav-link {
    font-size: 0.75rem;
  }

  .header-actions {
    gap: 12px;
  }

  .selected-farm-pill {
    min-width: 0;
  }

  .farm-pill-name {
    max-width: 83px;
  }

  .login-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(410px, 1.1fr);
  }

  .login-art {
    padding-right: 40px;
    padding-left: 40px;
  }
}

@media (max-width: 850px) {
  .site-header {
    min-height: 70px;
    justify-content: space-between;
  }

  .menu-toggle {
    display: flex;
    width: 42px;
    height: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: #314336;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .site-header[data-menu-open="true"] .menu-toggle span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header[data-menu-open="true"] .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header[data-menu-open="true"] .menu-toggle span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 18px;
    left: 18px;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 9px;
    border: 1px solid #e8ebe4;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 40px rgb(39 56 45 / 12%);
  }

  .site-header[data-menu-open="true"] .main-nav {
    display: flex;
    flex-direction: column;
  }

  .nav-link {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .nav-link.is-current::after {
    display: none;
  }

  .header-actions {
    margin-left: 0;
  }

  .selected-farm-pill {
    order: 1;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  }

  .login-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(380px, 1.2fr);
  }

  .login-art {
    padding-right: 28px;
    padding-left: 28px;
  }
}

@media (max-width: 650px) {
  .site-header {
    padding-right: 18px;
    padding-left: 18px;
  }

  .header-actions {
    gap: 0;
  }

  .selected-farm-pill {
    max-width: 138px;
    padding: 4px 6px;
    border: 0;
    background: transparent;
  }

  .farm-pill-icon {
    display: none;
  }

  .farm-pill-name {
    max-width: 92px;
    font-size: 0.59rem;
  }

  .farm-pill-id {
    font-size: 0.5rem;
  }

  .farm-pill-chevron {
    margin-left: 1px;
    font-size: 0.65rem;
  }

  .demo-pill {
    display: none;
  }

  .dashboard-main {
    width: calc(100% - 32px);
    padding-top: 26px;
  }

  .welcome-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .welcome-row h1 {
    font-size: 1.9rem;
  }

  .welcome-copy {
    font-size: 0.81rem;
  }

  .date-button {
    min-height: 36px;
  }

  .metric-grid {
    gap: 10px;
  }

  .metric-card {
    min-height: 186px;
    padding: 13px 12px 11px;
  }

  .metric-label {
    font-size: 0.57rem;
  }

  .metric-reading {
    font-size: 1.78rem;
  }

  .metric-change {
    margin-left: 3px;
    font-size: 0.59rem;
  }

  .metric-foot {
    font-size: 0.63rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 16px;
  }

  .farm-summary {
    gap: 10px;
    font-size: 0.62rem;
  }

  .zone {
    min-height: 49px;
    padding: 7px;
  }

  .activity-item {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 9px 0;
  }

  .activity-item time {
    grid-column: 2;
    grid-row: 2;
  }

  .activity-severity {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .activity-copy strong {
    font-size: 0.67rem;
  }

  .activity-copy span {
    font-size: 0.6rem;
  }

  .data-disclaimer {
    align-items: flex-start;
    font-size: 0.63rem;
    line-height: 1.5;
  }

  .login-layout {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
  }

  .login-art {
    display: none;
  }

  .login-form-side {
    min-height: 100vh;
    justify-content: flex-start;
    padding: 22px 24px 20px;
  }

  .login-mobile-brand {
    display: block;
    width: min(100%, 390px);
    margin-bottom: clamp(46px, 10vh, 82px);
  }

  .login-card {
    width: min(100%, 390px);
  }

  .login-card h2 {
    font-size: 1.75rem;
  }

  .login-side-footer {
    margin-top: auto;
  }

  .farm-select-main {
    margin-top: 55px;
  }
}

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