:root {
  --bg: #f4f7f5;
  --card: #fff;
  --text: #14231b;
  --muted: #6d7d73;
  --green: #1f7a4d;
  --green2: #e8f5ee;
  --amber: #a96b00;
  --amberbg: #fff5dc;
  --red: #a83b3b;
  --redbg: #fdeaea;
  --blue: #2d6ea3;
  --border: #dfe8e2;
  --shadow: 0 8px 24px rgba(20, 55, 35, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  max-width: 920px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 24px;
}

.topbar {
  position: sticky;
  top: 0;
  /* Keep header controls and their dropdowns above in-flow weather alerts. */
  z-index: 100;
  background: rgba(244, 247, 245, 0.94);
  backdrop-filter: blur(12px);
  padding: 18px 18px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(223, 232, 226, 0.7);
}

.topbar h1 {
  margin: 2px 0 0;
  font-size: 24px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-copy {
  min-width: 0;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #fff;
  flex: 0 0 auto;
}

.eyebrow {
  font-size: 12px;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.icon-btn,
.dialog-close {
  border: 0;
  background: var(--card);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.screen {
  display: none;
  padding: 18px;
}

.screen.active {
  display: block;
}

@keyframes homeViewEnterLeft {
  from { opacity: .72; transform: translate3d(32px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes homeViewEnterRight {
  from { opacity: .72; transform: translate3d(-32px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.screen.active.view-enter-left { animation: homeViewEnterLeft 560ms cubic-bezier(.22, 1, .36, 1) both; }

.screen.active.view-enter-right { animation: homeViewEnterRight 560ms cubic-bezier(.22, 1, .36, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .screen.active.view-enter-left, .screen.active.view-enter-right { animation: none; }

}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.hero {
  background: linear-gradient(135deg, #ffffff 20%, #eaf7ef);
}

.hero-row,
.section-title,
.split,
.coord-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  margin: 16px 2px 10px;
}

.section-title h2,
.section-title h3 {
  margin: 0;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.primary,
.secondary,
.feedback-buttons button,
.chips button {
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  cursor: pointer;
  font-weight: 700;
}

.primary {
  background: var(--green);
  color: white;
  width: 100%;
}

.secondary {
  background: var(--green2);
  color: var(--green);
}

.link-btn {
  border: 0;
  background: none;
  color: var(--green);
  font-weight: 700;
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.forecast-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.weather-art-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f7faf8 100%);
}

.forecast-card-inner {
  position: relative;
  z-index: 1;
}

.forecast-card-art {
  position: absolute;
  inset: 0;
  background-position: right center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.7;
  pointer-events: none;
  filter: saturate(0.98) contrast(1.02);
}

.weather-art-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.64) 34%,
    rgba(255, 255, 255, 0.3) 72%,
    rgba(255, 255, 255, 0.08) 100%
  );
  pointer-events: none;
}

.weather-art-card .card-head,
.weather-art-card .temp,
.weather-art-card .weather-line,
.weather-art-card .foliar-compact {
  position: relative;
  z-index: 1;
}

.weather-art-card .foliar-compact {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(2px);
}

.forecast-card h4 {
  margin: 0 0 8px;
}

.temp {
  font-size: 24px;
  font-weight: 800;
}

.weather-line {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  font-size: 13px;
}

.forecast-card .rain-summary-line {
  display: block;
  line-height: 1.45;
}

.confidence {
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 999px;
  font-weight: 800;
}

.confidence.high {
  background: #e5f5ea;
  color: #22663e;
}

.confidence.medium {
  background: var(--amberbg);
  color: var(--amber);
}

.confidence.low {
  background: var(--redbg);
  color: var(--red);
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.decision-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 15px;
  box-shadow: var(--shadow);
}

.decision-card h4 {
  margin: 0 0 6px;
}

.decision-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.measure-fab {
  position: fixed;
  right: max(18px, calc((100vw - 920px) / 2 + 18px));
  bottom: 88px;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(31, 122, 77, 0.3);
}

.form-card {
  display: grid;
  gap: 14px;
}

.form-card label {
  display: grid;
  gap: 7px;
  font-weight: 700;
  font-size: 14px;
}

.form-card input,
.form-card select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfdfc;
}

.coord-row > label {
  flex: 1;
}

.split > * {
  flex: 1;
}

.map {
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.hidden {
  display: none !important;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.segmented input {
  display: none;
}

.segmented label {
  padding: 12px;
  text-align: center;
  background: #fff;
  cursor: pointer;
}

.segmented input:checked + label {
  background: var(--green2);
  color: var(--green);
}

.warning {
  background: var(--amberbg);
  color: var(--amber);
  padding: 12px;
  border-radius: 12px;
}

.result-card {
  border-left: 5px solid var(--green);
}

.feedback-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.feedback-buttons button {
  background: #f0f4f1;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips button {
  background: #f2f5f3;
  padding: 9px 12px;
}

.chips button.selected {
  background: var(--green2);
  color: var(--green);
}

details summary {
  font-weight: 800;
  cursor: pointer;
}

details p {
  line-height: 1.55;
  color: #46564d;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(920px, 100%);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  z-index: 30;
}

.bottom-nav button {
  border: 0;
  background: none;
  color: var(--muted);
  display: grid;
  gap: 3px;
  justify-items: center;
  font-size: 18px;
}

.bottom-nav button span {
  font-size: 10px;
}

.bottom-nav button.active {
  color: var(--green);
  font-weight: 800;
}

dialog {
  border: 0;
  border-radius: 20px;
  max-width: 520px;
  width: calc(100% - 36px);
  padding: 0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.35);
}

.dialog-body {
  position: relative;
  padding: 24px;
}

.dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
  box-shadow: none;
  background: #f1f4f2;
  font-size: 22px;
}

@media (max-width: 640px) {
  .forecast-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-row {
    align-items: flex-start;
  }

  .split {
    flex-direction: column;
    align-items: stretch;
  }

  .coord-row {
    align-items: stretch;
  }

  .section-title {
    align-items: flex-start;
  }

  .measure-fab {
    right: 16px;
  }

  .topbar {
    padding-top: calc(14px + env(safe-area-inset-top));
  }

}


.source-box {
  font-size: 13px;
  line-height: 1.5;
  background: #f8fbf9;
  border-style: dashed;
}

.source-box strong {
  color: var(--green);
}

.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-select {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 9px 10px;
  font-weight: 800;
  color: var(--green);
}

.current-card {
  padding: 18px;
}

.current-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.current-icon {
  font-size: 48px;
  line-height: 1;
}

.weather-icon-stack {
  position: relative;
  display: inline-block;
  width: 1.18em;
  height: 1em;
  vertical-align: -0.08em;
}

.weather-icon-stack .weather-icon-celestial {
  position: absolute;
  top: -0.08em;
  left: 0;
  z-index: 1;
  font-size: 0.72em;
}

.weather-icon-stack .weather-icon-phenomenon {
  position: absolute;
  right: 0;
  bottom: -0.04em;
  z-index: 2;
  font-size: 0.8em;
}

.weather-icon-stack .weather-icon-hail {
  position: absolute;
  right: 0.04em;
  bottom: -0.12em;
  z-index: 3;
  color: #8cc9ef;
  font-size: 0.2em;
  text-shadow: -0.24em 0 #c9e8fa;
}

.weather-icon-stack.weather-icon-sunset .weather-icon-celestial {
  font-size: 0.76em;
  filter: saturate(1.12);
}

.current-desc {
  font-weight: 800;
  font-size: 15px;
}

.current-temp {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -1px;
}

.live-pill {
  background: #e7f7ed;
  color: #17623b;
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 800;
  font-size: 11px;
}

.current-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.current-metrics > div {
  background: #f7faf8;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px;
  display: grid;
  gap: 2px;
}

.current-metrics b {
  font-size: 16px;
}

.current-metrics span {
  font-size: 10px;
  color: var(--muted);
}

.sun-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .current-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .current-main {
    grid-template-columns: auto 1fr;
  }

  .live-pill {
    grid-column: 1/-1;
    justify-self: start;
  }

  .sun-row {
    flex-direction: column;
    gap: 5px;
  }

}


.critical-alert {
  border: 1px solid #efb4b4;
  background: #fff5f5;
  border-radius: 18px;
  padding: 15px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}

.critical-alert.severe {
  border-left: 6px solid #b42318;
}

.critical-alert.watch {
  border-left: 6px solid #d97706;
  background: #fffaf0;
}

.critical-alert h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.critical-alert p {
  margin: 0;
  color: #5b4b4b;
  font-size: 13px;
  line-height: 1.45;
}

.critical-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 9px;
  font-size: 11px;
}

.critical-badge {
  background: #b42318;
  color: #fff;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.critical-tag {
  background: #fff;
  border: 1px solid #eccaca;
  border-radius: 999px;
  padding: 4px 7px;
  font-weight: 700;
}

.threshold-signal-wrap {
  margin: 12px 0 16px;
  border: 1px solid #f2c078;
  border-radius: 18px;
  background: #fffaf0;
  padding: 13px;
}

.threshold-signal-wrap.agri-threshold-wrap {
  border-color: #dfb357;
  background: #fffbef;
}

.threshold-signal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.threshold-signal-heading h3 {
  margin: 2px 0 0;
  color: #7a4810;
  font-size: 17px;
}

.threshold-signal-kicker {
  color: #a35a08;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.09em;
}

.threshold-signal-badge,
.threshold-signal-level {
  border-radius: 999px;
  background: #d97706;
  color: #fff;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.threshold-signal-list {
  display: grid;
  gap: 9px;
}

.threshold-signal-card {
  border: 1px solid #f0cf99;
  border-left: 5px solid #d97706;
  border-radius: 15px;
  background: #fff;
  padding: 12px 14px;
}

.threshold-signal-card.signal-yellow { border-color: #e9b949; border-left-color: #d6a321; background: #fff9e8; }

.threshold-signal-card.signal-yellow .threshold-signal-level { background: #f3c969; color: #4f3900; }

.threshold-signal-card.signal-orange { border-color: #ef8b3a; border-left-color: #dc6d13; background: #fff3e8; }

.threshold-signal-card.signal-orange .threshold-signal-level { background: #ef8b3a; color: #fff; }

.threshold-signal-card.signal-green { border-color: #67b87a; border-left-color: #399951; background: #effaf2; }

.threshold-signal-card.signal-green .threshold-signal-level { background: #67b87a; color: #fff; }

.standard-ad-slot { margin:14px 0; min-height:76px; border:1px dashed #b9c7bf; border-radius:14px; background:#f5f7f6; display:flex; align-items:center; justify-content:center; gap:12px; padding:12px 16px; color:#66736b; text-align:left; }

.standard-ad-slot.hidden { display:none; }

.standard-ad-slot > span { border:1px solid #aebbb3; border-radius:6px; padding:3px 6px; font-size:9px; font-weight:900; letter-spacing:.08em; }

.standard-ad-slot div { display:grid; gap:2px; }

.standard-ad-slot strong { font-size:12px; }

.standard-ad-slot small { font-size:10px; }

.push-alarm-radio { border:1px solid #d8e3dc; border-radius:14px; padding:12px; display:flex; flex-wrap:wrap; gap:10px 18px; }

.push-alarm-radio legend { padding:0 6px; font-size:12px; font-weight:850; color:#173d2a; }

.push-alarm-radio label { display:flex; align-items:center; gap:7px; font-weight:800; cursor:pointer; }

.push-alarm-radio input[type="radio"] { width:18px; height:18px; accent-color:#287d50; }

.push-alarm-radio small { flex-basis:100%; color:var(--muted); line-height:1.45; }

.push-alarm-radio:disabled { opacity:.58; }

.threshold-signal-top,
.threshold-signal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.threshold-signal-type {
  color: #9a4f08;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.threshold-signal-card h4 {
  margin: 9px 0 5px;
  font-size: 15px;
}

.threshold-signal-card > strong {
  color: #6d3d0c;
  font-size: 14px;
}

.threshold-signal-meta {
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
}

.threshold-signal-meta span {
  border: 1px solid #efd5ad;
  border-radius: 999px;
  padding: 4px 7px;
  background: #fffdf8;
}

@media (max-width: 640px) {
  .threshold-signal-heading {
    align-items: flex-start;
  }

}


.title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gauge-block {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: #f8fbf9;
}

.gauge-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.gauge-head span {
  font-weight: 800;
}

.gauge-head strong {
  font-size: 15px;
}

.gauge-track {
  height: 12px;
  border-radius: 999px;
  background: #e7ece8;
  overflow: hidden;
}

.gauge-fill {
  height: 100%;
  border-radius: 999px;
}

.gauge-block.low .gauge-fill {
  background: #41a85f;
}

.gauge-block.medium .gauge-fill {
  background: #d5a100;
}

.gauge-block.high .gauge-fill {
  background: #e57f22;
}

.gauge-block.very-high .gauge-fill {
  background: #cf3b30;
}

.gauge-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.current-metrics {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 640px) {
  .current-metrics {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .gauge-head {
    align-items: flex-start;
  }

}

.metric-card {
  background: #f7faf8;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px;
  display: grid;
  gap: 2px;
}

.metric-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}

.metric-card b {
  font-size: 28px;
  line-height: 1.1;
}

.metric-card span {
  font-size: 12px;
  color: var(--muted);
}

.mini-gauge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.mini-gauge-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 13px;
  background: #fff;
}

.mini-gauge-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.mini-gauge-title {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.mini-gauge-level {
  margin-top: 6px;
  font-weight: 800;
  font-size: 14px;
}

.mini-gauge-track {
  height: 8px;
  border-radius: 999px;
  background: #e7ece8;
  overflow: hidden;
  margin-top: 8px;
}

.mini-gauge-fill {
  height: 100%;
  border-radius: 999px;
}

.mini-gauge-card.low .mini-gauge-fill {
  background: #41a85f;
}

.mini-gauge-card.medium .mini-gauge-fill {
  background: #d5a100;
}

.mini-gauge-card.high .mini-gauge-fill {
  background: #e57f22;
}

.mini-gauge-card.very-high .mini-gauge-fill {
  background: #cf3b30;
}

.mini-gauge-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .mini-gauge-grid {
    grid-template-columns: 1fr;
  }

}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.info-inline {
  border: 0;
  background: #eef4f0;
  color: var(--green);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.metric-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.current-metrics {
  grid-template-columns: repeat(4, 1fr);
}

.mini-gauge-top strong {
  font-size: 15px;
}

@media (max-width: 860px) {
  .current-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

}

.quick-feedback {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
}

.quick-feedback-copy {
  display: grid;
  gap: 3px;
}

.quick-feedback-actions {
  display: flex;
  gap: 8px;
}

.quick-feedback-actions button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f7faf8;
  cursor: pointer;
  font-size: 18px;
}

.quick-feedback-actions button.selected {
  background: var(--green2);
  border-color: #9dcdb4;
}

.quick-feedback-status {
  grid-column: 1/-1;
}

.info-modal-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 36px;
}

.info-modal-hero h2 {
  margin: 2px 0 0;
}

.info-modal-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--green2);
  color: var(--green);
  font-weight: 900;
  font-size: 20px;
}

.info-modal-section {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fbf9;
  display: grid;
  gap: 6px;
}

.info-modal-section > span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 800;
}

.info-modal-section p {
  margin: 0;
  line-height: 1.55;
  color: #46564d;
}

.source-layer-head {
  margin-bottom: 8px;
}

.source-layer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
}

.source-layer-detail {
  font-size: 12px;
  color: var(--muted);
  padding: 4px 0 8px;
}

.source-state {
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 999px;
}

.source-state.active {
  background: #e5f5ea;
  color: #22663e;
}

.source-state.pending {
  background: var(--amberbg);
  color: var(--amber);
}

@media (max-width: 640px) {
  .quick-feedback {
    grid-template-columns: 1fr;
  }

  .quick-feedback-actions {
    justify-content: flex-start;
  }

}

.period-line {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.period-badge,
.sunset-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 800;
}

.period-badge.day {
  background: #fff4cf;
  color: #8b6500;
}

.period-badge.night {
  background: #ecebff;
  color: #4e4a9a;
}

.sunset-chip {
  background: #f4f7f5;
  color: var(--muted);
  border: 1px solid var(--border);
}

.disease-risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.disease-detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 15px;
  box-shadow: var(--shadow);
}

.disease-detail-card h4 {
  margin: 0;
  font-size: 14px;
}

.disease-level-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin: 10px 0 8px;
}

.disease-level-row strong {
  font-size: 15px;
}

.disease-level-row span {
  font-size: 11px;
  color: var(--muted);
}

.disease-detail-card .mini-gauge-fill {
  height: 100%;
  border-radius: 999px;
}

.disease-detail-card.low .mini-gauge-fill {
  background: #41a85f;
}

.disease-detail-card.medium .mini-gauge-fill {
  background: #d5a100;
}

.disease-detail-card.high .mini-gauge-fill {
  background: #e57f22;
}

.disease-detail-card.very-high .mini-gauge-fill {
  background: #cf3b30;
}

.disease-detail-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  min-height: 50px;
}

.disease-basis {
  border-top: 1px solid var(--border);
  padding-top: 9px;
  display: grid;
  gap: 3px;
}

.disease-basis span {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.disease-basis b {
  font-size: 11px;
}

@media (max-width: 760px) {
  .disease-risk-grid {
    grid-template-columns: 1fr;
  }

}


.garden-switcher-wrap {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  max-width: 300px;
}

.garden-switcher-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.garden-switcher {
  appearance: none;
  -webkit-appearance: none;
  background: #f7faf8;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 38px 10px 12px;
  font: inherit;
  color: var(--text);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(1em + 2px),
    calc(100% - 12px) calc(1em + 2px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.garden-dropdown-hint {
  font-size: 18px;
  color: var(--muted);
  margin-left: 6px;
}

.hidden {
  display: none !important;
}

.section-title-with-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.advice-mini {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: #f7faf8;
  border: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.35;
}

.advice-mini strong {
  display: block;
  margin-bottom: 2px;
}

.advice-mini.foliar {
  background: #f6fbf7;
}

.advice-mini.soil {
  background: #f7fbfa;
}

.advice-mini-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.advice-mini-head strong {
  margin: 0;
}

.advice-level {
  font-weight: 800;
  margin: 4px 0 2px 0;
  color: var(--text);
}

.foliar-compact {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: #f7faf8;
  border: 1px solid var(--border);
}

.foliar-compact-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.foliar-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.foliar-compact-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.foliar-answer {
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.foliar-answer.yes {
  color: #1f7a3f;
}

.foliar-answer.limited {
  color: #a36f00;
}

.foliar-answer.no {
  color: #b73c33;
}

.foliar-gauge {
  height: 8px;
  border-radius: 999px;
  background: #e8ece9;
  overflow: hidden;
}

.foliar-gauge-fill {
  height: 100%;
  border-radius: 999px;
}

.foliar-gauge-fill.yes {
  background: #41a85f;
}

.foliar-gauge-fill.limited {
  background: #d5a100;
}

.foliar-gauge-fill.no {
  background: #cf3b30;
}

.foliar-reason {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.foliar-note {
  margin-top: 6px;
  line-height: 1.35;
}

.tiny {
  font-size: 11px;
}

@media (max-width: 760px) {
  .foliar-compact-main {
    grid-template-columns: auto 1fr;
    grid-template-areas: "a b" "c c";
  }

  .foliar-answer {
    grid-area: a;
  }

  .foliar-gauge {
    grid-area: b;
  }

  .foliar-reason {
    grid-area: c;
  }

}

.hero-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hero-actions {
    width: 100%;
  }

  .hero-actions .secondary {
    flex: 1;
  }

}

.sun-duo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sunrise-chip,
.sunset-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f6f8f6;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.dryness-line strong {
  color: var(--text);
}

@media (max-width: 760px) {
  .period-line {
    flex-direction: column;
    align-items: flex-start;
  }

  .sun-duo {
    width: 100%;
  }

}

@media (max-width: 640px) {
  .brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .topbar h1 {
    font-size: 22px;
  }

}


.source-layer-detail a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.source-layer-detail a:hover {
  text-decoration: underline;
}


#useLocationBtn:disabled {
  opacity: 0.65;
  cursor: wait;
}


/* TerraSky V3.1 — forecast graph & compact location */
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-location-card {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 7px 10px;
  cursor: pointer;
  max-width: 250px;
  color: var(--text);
}

.top-location-icon {
  font-size: 19px;
  color: var(--green);
}

.top-location-copy {
  display: grid;
  text-align: left;
  min-width: 0;
}

.top-location-copy strong {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-location-copy small {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forecast-chart {
  padding: 14px 16px 10px;
  overflow: hidden;
}

.forecast-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.forecast-svg-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.forecast-svg {
  width: 100%;
  min-width: 640px;
  height: auto;
  display: block;
}

.fc-grid {
  stroke: #e7ece9;
  stroke-width: 1;
}

.fc-axis {
  font-size: 10px;
  fill: #738178;
}

.fc-date {
  font-size: 11px;
  font-weight: 800;
  fill: #26382f;
}

.fc-small {
  font-size: 9px;
  fill: #64746b;
}

.fc-weather {
  font-size: 17px;
}

.fc-foliar {
  font-size: 9px;
  font-weight: 800;
}

.fc-foliar.good {
  fill: #23834d;
}

.fc-foliar.limited {
  fill: #b77910;
}

.fc-foliar.bad {
  fill: #b43a34;
}

.fc-band {
  fill: rgba(219, 77, 60, 0.12);
  stroke: none;
}

.fc-temp-line {
  fill: none;
  stroke: #d94b3c;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fc-vpd-line-shadow {
  fill: none;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 6.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 9 4;
  pointer-events: none;
}

.fc-vpd-line {
  fill: none;
  stroke: #0b6f3f;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 9 4;
  filter: drop-shadow(0 1px 1px rgba(11, 111, 63, 0.22));
  pointer-events: none;
}

.fc-temp-dot {
  fill: #fff;
  stroke: #d94b3c;
  stroke-width: 2.5;
}

.fc-vpd-dot {
  fill: #fff;
  stroke: #0b6f3f;
  stroke-width: 2.6;
  pointer-events: none;
}

.fc-legend {
  font-size: 10px;
  font-weight: 800;
}

.fc-legend.temp {
  fill: #d94b3c;
}

.fc-legend.band {
  fill: #9c6e68;
}

.fc-legend.vpd {
  fill: #1f7a4d;
}

.vpd-axis {
  fill: #1f7a4d;
}

.bottom-nav button span {
  max-width: 110px;
  text-align: center;
  line-height: 1.05;
}

@media (max-width: 700px) {
  .topbar {
    align-items: flex-start;
  }

  .top-actions {
    gap: 6px;
  }

  .top-location-card {
    max-width: 150px;
    padding: 6px 8px;
  }

  .top-location-copy strong {
    font-size: 11px;
  }

  .top-location-copy small {
    font-size: 9px;
  }

  .forecast-chart {
    padding: 12px 10px 8px;
  }

  .forecast-chart-head {
    align-items: flex-start;
  }

  .forecast-chart-head .confidence {
    font-size: 9px;
    padding: 5px 7px;
  }

  .bottom-nav button span {
    font-size: 9px;
  }

}


.fc-hum-text {
  fill: #2f6fb1;
}

.fc-hum-line {
  fill: none;
  stroke: #2f6fb1;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2 5;
}

.fc-hum-dot {
  fill: #fff;
  stroke: #2f6fb1;
  stroke-width: 2.2;
}

.fc-legend.humidity {
  fill: #2f6fb1;
}

.hum-axis {
  fill: #2f6fb1;
}

.fc-date {
  font-size: 12px;
}

.fc-small {
  font-size: 10px;
}

.fc-weather {
  font-size: 18px;
}

@media (max-width: 700px) {
  .forecast-svg {
    min-width: 680px;
  }

}


/* TerraSky V3.3 — Bugün bahçemde / kişisel karar dili */
.today-garden {
  background: linear-gradient(135deg, #ffffff 0%, #eef8f2 100%);
  border-left: 5px solid var(--green);
}

.today-garden-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.today-garden-head h3 {
  margin: 4px 0 0;
  font-size: 20px;
}

.today-garden-text {
  margin: 0;
  color: #405248;
  line-height: 1.58;
  font-size: 14px;
}

.today-plant-comment {
  margin-top: 13px;
  padding: 12px 14px;
  border: 1px solid #cfe3d7;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.today-plant-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.today-plant-comment-head strong {
  color: #244d3c;
  font-size: 13px;
}

.today-plant-comment p {
  margin: 7px 0 0;
  color: #405248;
  font-size: 13px;
  line-height: 1.5;
}

.today-plant-metrics {
  display: block;
  margin-top: 8px;
  color: #688075;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.45;
}

.today-garden-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.today-action-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f4f8f5;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 800;
  color: #365245;
}

.comment-threshold-badges,
.weather-summary-alerts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.comment-threshold-badges {
  margin-top: 12px;
}

.comment-threshold-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid #efbd74;
  border-radius: 999px;
  background: #fff7e8;
  color: #854909;
  font-size: 11px;
  line-height: 1.15;
  box-shadow: 0 3px 10px rgba(126, 75, 10, 0.08);
}

.comment-threshold-badge b {
  font-weight: 900;
}

.comment-threshold-badge > span {
  font-weight: 850;
  white-space: nowrap;
}

.comment-threshold-badge small {
  padding-left: 6px;
  border-left: 1px solid #e9c893;
  color: #9a6c34;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.comment-threshold-badge.agri {
  border-color: #d7ba72;
  background: #fff9e9;
  color: #6f5310;
}

@media (max-width: 640px) {
  .today-garden-head {
    align-items: flex-start;
  }

  .today-garden-head h3 {
    font-size: 18px;
  }

  .today-garden-text {
    font-size: 13px;
  }

}


/* V3.4 preview */
#criticalAlertWrap {
  margin-bottom: 14px;
  position: relative;
  /* The alert is prominent, but must never cover navigation or menus. */
  z-index: 1;
}

#criticalAlertWrap:not(.hidden) {
  background: #fff7f6;
  border: 2px solid #d92d20;
  border-radius: 20px;
  padding: 10px 12px 4px;
  box-shadow: 0 12px 34px rgba(180, 35, 24, 0.16);
}

#criticalAlertWrap .section-title {
  margin: 0 2px 8px;
}

#criticalAlertWrap .section-title h3 {
  color: #9f1f17;
}

.critical-emergency-line {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

.critical-emergency-label {
  background: #b42318;
  color: #fff;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.critical-event-type {
  color: #9f1f17;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fc-small,
.fc-foliar {
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
}

.fc-small {
  font-size: 9.5px;
}

.fc-foliar {
  font-size: 9.5px;
}

@media (max-width: 700px) {
  .forecast-svg {
    min-width: 760px;
  }

}


/* V3.6 preview — address finder */
.card-soft {
  background: #f8fbf9;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  margin: 6px 0 2px;
}

.selected-address {
  margin-top: 10px;
  background: #eef7f1;
  border: 1px solid #c8e3d0;
  border-radius: 14px;
  padding: 9px 11px;
  font-size: 12px;
  color: #355645;
}

.selected-address strong {
  margin-right: 6px;
}


/* V3.7 — real active garden switcher */
.active-garden-select-wrap {
  position: relative;
  margin-top: 6px;
}

#gardenMeta {
  margin-top: 7px;
  max-width: 720px;
  line-height: 1.4;
  white-space: normal;
}

.active-garden-select-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--text);
  text-align: left;
  display: block;
  max-width: 100%;
}

.active-garden-select-btn:disabled {
  cursor: default;
}

.active-garden-select-btn #gardenTitle {
  display: block;
  font-size: 1.5em;
  font-weight: 800;
  line-height: 1.2;
}

.active-garden-select-btn:hover .garden-dropdown-hint {
  color: var(--green);
}

.active-garden-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 60;
  width: min(380px, calc(100vw - 64px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 7px;
  box-shadow: 0 18px 42px rgba(25, 52, 37, 0.18);
}

.active-garden-option {
  width: 100%;
  border: 0;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}


.active-garden-option {
  padding: 8px;
  gap: 8px;
}

.active-garden-pick {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.active-garden-delete-mini {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  display: grid;
  place-items: center;
}

.active-garden-delete-mini:hover {
  background: #fff1f0;
  border-color: #f3c1bb;
}

.active-garden-option:hover {
  background: #f4f8f5;
}

.active-garden-option.active {
  background: #eaf6ee;
}

.active-garden-option-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.active-garden-option-main strong {
  display: block;
  font-size: 13px;
  color: var(--text);
}

.active-garden-option-main small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.small-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 18px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--border);
}

.active-check {
  color: var(--green);
  font-weight: 900;
  font-size: 18px;
}

@media (max-width: 640px) {
  .active-garden-menu {
    width: min(340px, calc(100vw - 48px));
  }

}


/* V3.8 — sunrise/sunset integrated into current conditions */
.current-main-copy {
  min-width: 0;
}

.sun-plain-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
}

.sun-plain {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.sunrise-inline,
.sunset-inline,
.sunrise-chip,
.sunset-chip {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 760px) {
  .sun-plain-row {
    gap: 10px;
  }

}

.conditions-box > strong {
  font-size: 0.96rem !important;
  color: #294f39 !important;
}

.conditions-box ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 10px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.conditions-box li {
  margin: 0 !important;
  padding: 9px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e1ebe4;
  color: #40584a;
  font-size: 0.84rem;
  line-height: 1.3;
}

.phenology-warning,
.phenology-ok {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin-top: 10px;
  padding: 10px 11px;
  border-radius: 11px;
  font-size: 0.84rem;
  line-height: 1.35;
}

.phenology-warning {
  background: #fff0ed;
  border: 1px solid #f1c6bc;
  color: #8d3024;
}

.phenology-warning.yellow { background:#fff9e8; border-color:#e9b949; color:#5d4500; }

.phenology-warning.orange { background:#fff3e8; border-color:#ef8b3a; color:#773500; }

.phenology-warning b {
  white-space: nowrap;
  color: #a12c20;
}

.phenology-ok {
  background: #edf8f1;
  border: 1px solid #cce8d5;
  color: #28613d;
}

.phenology-ok b {
  color: #19814a;
}

@media (max-width: 640px) {
  .conditions-box ul {
    grid-template-columns: 1fr;
  }

  .phenology-warning {
    display: grid;
    gap: 4px;
  }

}


/* V41: stronger artwork on the three-day forecast cards */
.forecast-card-art {
  opacity: 0.87 !important;
}

.privacy-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--green);
}

.privacy-link-card span {
  font-size: 0.78rem;
  color: var(--muted);
}


/* V3.9 preview — compact transparent sunrise/sunset beside temperature */
.temp-sun-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.sun-mini-set {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 0;
}

.sun-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.sun-mini b {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}

.sun-mini:first-child {
  color: #d58a00;
}

.sun-mini:last-child {
  color: #a55b36;
}

@media (max-width: 640px) {
  .temp-sun-row {
    gap: 10px;
  }

  .sun-mini-set {
    gap: 8px;
  }

  .sun-mini {
    font-size: 12px;
  }

  .sun-mini b {
    font-size: 11px;
  }

}


/* V4.0 preview — sunrise/sunset icons matching TerraSky weather icon language */
.sun-status-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  overflow: visible;
}

.sun-status-icon .sun-disc {
  fill: #f7b521;
  stroke: none;
}

.sun-status-icon .sunset-disc {
  fill: #f18a4a;
}

.sun-status-icon .horizon {
  fill: none;
  stroke: #8a9a90;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.sun-status-icon .direction {
  fill: none;
  stroke: #2f8a58;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sun-status-icon .ray {
  fill: none;
  stroke: #f0a020;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.sunset-mini .sun-status-icon .direction {
  stroke: #b85d47;
}

.sunset-mini .sun-status-icon .ray {
  stroke: #e07b4d;
}

.sun-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}


/* v20 preview - sunrise/sunset compact badges + expanded info affordances */
.sun-compact-set {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-left: 12px;
  flex-wrap: wrap;
}

.sun-compact-set .info-inline {
  margin-top: 4px;
}

.sun-compact-item {
  display: grid;
  gap: 2px;
  min-width: 72px;
}

.sun-compact-top {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #365246;
}

.sun-compact-top b {
  font-size: 13px;
  line-height: 1;
}

.sun-compact-label {
  font-size: 11px;
  line-height: 1.1;
  color: var(--muted);
}

.sun-status-icon {
  width: 18px;
  height: 18px;
  overflow: visible;
}

.sun-horizon,
.sun-direction,
.sun-ray {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sun-horizon {
  stroke: #b2bdb6;
}

.sun-direction {
  stroke: #5a9473;
}

.sun-ray {
  stroke: #f2be57;
}

.sun-arc {
  fill: none;
  stroke: #f2be57;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.sunset-arc {
  stroke: #f19953;
}

.sunset-ray {
  stroke: #cda870;
}

.sunset-direction {
  stroke: #ae6b46;
}

@media (max-width: 640px) {
  .sun-compact-set {
    margin-left: 0;
    margin-top: 8px;
    gap: 8px;
  }

  .sun-compact-item {
    min-width: 64px;
  }

}

.forecast-chart-head .section-title-with-info,
.source-layer-head.section-title-with-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.today-garden-head .eyebrow button.info-inline {
  vertical-align: middle;
  margin-left: 4px;
}

.info-inline {
  box-shadow: none;
}

.leaflet-marker-icon {
  cursor: grab;
}

.leaflet-marker-icon:active {
  cursor: grabbing;
}


/* v23 — selected F sunrise/sunset icon set */
.sun-status-icon {
  width: 21px;
  height: 21px;
}

.sunrise-horizon {
  stroke: #629668;
}

.sunset-horizon {
  stroke: #a99f7f;
}

.sun-arc {
  stroke: #f7b331;
  stroke-width: 2.8;
}

.sunset-arc {
  stroke: #ec6849;
}

.sun-ray {
  stroke: #f7b331;
  stroke-width: 2;
}

.sunset-ray {
  stroke: #e94f3a;
}

.sunrise-direction {
  stroke: #3f7d57;
  stroke-width: 2.2;
}

.sunset-direction {
  stroke: #ee6745;
  stroke-width: 2.2;
}


/* v26 source truthfulness */
.source-state.pending {
  white-space: nowrap;
}


/* v27 preview — delete saved garden/location */
.danger-btn {
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #e1aaaa;
  border-radius: 14px;
  background: #fff6f6;
  color: #a33b3b;
  font-weight: 800;
  cursor: pointer;
}

.danger-btn:hover {
  background: #fdeaea;
  border-color: #d58e8e;
}


/* v28 preview - compact speed gauges in current metric cards */
.metric-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.metric-card-body {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 8px;
  align-items: center;
}

.metric-copy {
  display: grid;
  gap: 3px;
}

.metric-copy b {
  font-size: 18px;
  line-height: 1.05;
}

.metric-copy span {
  font-size: 11px;
  color: var(--muted);
}

.metric-level-chip {
  display: inline-flex;
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  margin-top: 2px;
}

.metric-level-chip.low {
  background: #e8f6ec;
  color: #1f7a41;
}

.metric-level-chip.medium {
  background: #fff2d8;
  color: #9d6900;
}

.metric-level-chip.high {
  background: #ffe7d2;
  color: #bb5a05;
}

.metric-level-chip.very-high {
  background: #fde0de;
  color: #b43831;
}


.metric-dial {
  width: 108px;
  justify-self: end;
}

.metric-dial-svg {
  width: 108px;
  height: 66px;
  display: block;
}

.metric-dial-track {
  fill: none;
  stroke: #e6ece8;
  stroke-width: 10;
  stroke-linecap: round;
}

.metric-dial-value {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}

.metric-dial.low .metric-dial-value {
  stroke: #41a85f;
}

.metric-dial.medium .metric-dial-value {
  stroke: #d5a100;
}

.metric-dial.high .metric-dial-value {
  stroke: #e57f22;
}

.metric-dial.very-high .metric-dial-value {
  stroke: #cf3b30;
}

.metric-dial-needle {
  stroke: #224734;
  stroke-width: 3;
  stroke-linecap: round;
}

.metric-dial-center {
  fill: #224734;
}

.metric-dial-label {
  font-size: 14px;
  font-weight: 800;
  fill: #203a2f;
}

@media (max-width: 860px) {
  .metric-card-body {
    grid-template-columns: 1fr;
  }

  .metric-dial {
    justify-self: start;
  }

}


.wind-direction-card .mini-gauge-track {
  margin-top: 10px;
}

.wind-direction-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.wind-direction-arrow {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #f4f8f5;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
  color: #1f6b46;
  line-height: 1;
  flex: 0 0 38px;
}

.wind-direction-copy {
  min-width: 0;
}

.wind-direction-copy .mini-gauge-level {
  margin-top: 0;
  font-size: 13px;
}

.wind-direction-copy p {
  margin-top: 4px;
}


.forecast-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-top: 8px;
}

.forecast-legend-chip {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.forecast-legend-chip.temp {
  color: #d94b3c;
}

.forecast-legend-chip.band {
  color: #9c6e68;
}

.forecast-legend-chip.vpd {
  color: #1f7a4d;
}

.forecast-legend-chip.humidity {
  color: #2f6fb1;
}

.wind-direction-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #f4f8f5;
  display: grid;
  place-items: center;
  color: #334057;
  flex: 0 0 44px;
}

.wind-arrow-svg {
  width: 28px;
  height: 28px;
  display: block;
}

.stress-card {
  background: linear-gradient(180deg, #fbfdfb 0%, #f6faf7 100%);
}

.stress-scale {
  position: relative;
  margin-top: 4px;
}

.stress-segments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.stress-segments .seg {
  height: 14px;
  border-radius: 999px;
}

.stress-segments .seg.low {
  background: #4db267;
}

.stress-segments .seg.medium {
  background: #d5a100;
}

.stress-segments .seg.high {
  background: #e57f22;
}

.stress-segments .seg.very-high {
  background: #cf3b30;
}

.stress-pointer {
  position: relative;
  height: 14px;
  margin-top: 4px;
}

.stress-pointer span {
  position: absolute;
  left: calc(var(--left, 50%) - 1px);
  top: 0;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid #2d4638;
  transform: translateX(-50%);
}

.stress-pointer {
  --left: 50%;
}

.stress-pointer[style] {
  --left: 0;
}

.stress-label-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.stress-label-row b {
  font-size: 10px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.wind-direction-card .mini-gauge-track {
  margin-top: 10px;
}

.wind-direction-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.wind-direction-copy {
  min-width: 0;
}

.wind-direction-copy .mini-gauge-level {
  margin-top: 0;
  font-size: 13px;
}

.wind-direction-copy p {
  margin-top: 4px;
}

@media (max-width: 760px) {
  .forecast-legend-row {
    gap: 6px 10px;
  }

  .forecast-legend-chip {
    font-size: 10px;
  }

  .stress-label-row b {
    font-size: 9px;
  }

}


/* Premium dryness stress card */
.premium-stress-card {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  background: linear-gradient(135deg, #fbfdfb 0%, #f3f9f4 48%, #eef6f0 100%);
  border: 1px solid #dbe9df;
  box-shadow: 0 8px 24px rgba(27, 72, 47, 0.06);
}

.premium-stress-card::before {
  content: "";
  position: absolute;
  right: -36px;
  top: -36px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(63, 168, 99, 0.12),
    rgba(63, 168, 99, 0) 70%
  );
}

.premium-stress-card::after {
  content: "";
  position: absolute;
  left: -28px;
  bottom: -34px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(229, 127, 34, 0.1),
    rgba(229, 127, 34, 0) 70%
  );
}

.stress-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  z-index: 1;
}

.stress-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #476458;
  margin-bottom: 6px;
}

.stress-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.stress-title-row h4 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stress-state-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}

.stress-state-pill.low {
  background: #e9f7ee;
  color: #207145;
  border-color: #caead5;
}

.stress-state-pill.medium {
  background: #fff5d9;
  color: #9d7100;
  border-color: #f5df8d;
}

.stress-state-pill.high {
  background: #fff0e3;
  color: #bc640d;
  border-color: #f5c089;
}

.stress-state-pill.very-high {
  background: #fde8e7;
  color: #b63a33;
  border-color: #f2b2ad;
}

.stress-kpi {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}

.stress-kpi strong {
  font-size: 34px;
  letter-spacing: -0.04em;
  color: var(--text);
}

.stress-kpi span {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  margin-top: 4px;
}

.stress-body {
  position: relative;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
  z-index: 1;
}

.stress-meter {
  display: grid;
  place-items: center;
}

.stress-arc {
  position: relative;
  width: 176px;
  height: 110px;
}

.stress-arc-track,
.stress-arc-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 176px;
  height: 88px;
  border-radius: 176px 176px 0 0;
  border: 14px solid transparent;
  border-bottom: 0;
  box-sizing: border-box;
}

.stress-arc-track {
  border-top-color: #dfe8e2;
  border-left-color: #dfe8e2;
  border-right-color: #dfe8e2;
  transform: rotate(0deg);
}

.stress-arc-fill {
  clip-path: inset(0 calc(100% - var(--pct)) 0 0 round 176px 176px 0 0);
}

.stress-arc-fill.low {
  border-top-color: #49b165;
  border-left-color: #49b165;
  border-right-color: #49b165;
}

.stress-arc-fill.medium {
  border-top-color: #d5a100;
  border-left-color: #d5a100;
  border-right-color: #d5a100;
}

.stress-arc-fill.high {
  border-top-color: #e57f22;
  border-left-color: #e57f22;
  border-right-color: #e57f22;
}

.stress-arc-fill.very-high {
  border-top-color: #cf3b30;
  border-left-color: #cf3b30;
  border-right-color: #cf3b30;
}

.stress-needle {
  position: absolute;
  left: calc(50% - 2px);
  bottom: 8px;
  width: 4px;
  height: 72px;
  transform-origin: 50% calc(100% - 6px);
  transform: rotate(calc(-90deg + (180deg * var(--pct) / 100)));
}

.stress-needle::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 4px;
  height: 64px;
  border-radius: 999px;
  background: linear-gradient(180deg, #31463c 0%, #1f2f27 100%);
}

.stress-needle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #294135;
  box-shadow: 0 0 0 4px #f8fbf9;
}

.stress-center {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 92px;
}

.stress-center b {
  font-size: 14px;
  color: var(--text);
}

.stress-center span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.stress-scale-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  margin-bottom: 10px;
}

.stress-scale-inline .step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #597164;
}

.stress-scale-inline .step::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.stress-scale-inline .s1::before {
  background: #49b165;
}

.stress-scale-inline .s2::before {
  background: #d5a100;
}

.stress-scale-inline .s3::before {
  background: #e57f22;
}

.stress-scale-inline .s4::before {
  background: #cf3b30;
}

.premium-stress-card .gauge-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #50665b;
  max-width: 48ch;
}

@media (max-width: 760px) {
  .stress-body {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stress-kpi {
    align-items: flex-start;
  }

  .stress-title-row h4 {
    font-size: 20px;
  }

  .stress-meter {
    justify-content: flex-start;
  }

  .stress-arc {
    margin: auto;
  }

  .premium-stress-card .gauge-note {
    font-size: 13px;
  }

}


/* v35 — Premium Composite Dryness Stress Card */
.premium-composite-card {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid #dbe8df;
  border-radius: 22px;
  padding: 18px;
  background: radial-gradient(
      circle at 88% 8%,
      rgba(85, 181, 113, 0.16),
      transparent 24%
    ),
    radial-gradient(circle at 5% 100%, rgba(229, 127, 34, 0.1), transparent 26%),
    linear-gradient(145deg, #ffffff 0%, #f7fbf8 55%, #f1f7f3 100%);
  box-shadow: 0 10px 30px rgba(31, 77, 49, 0.08);
}

.premium-composite-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.premium-composite-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.premium-composite-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.premium-composite-title-row h4 {
  margin: 0;
  font-size: 23px;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.premium-title-with-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.premium-title-with-info .info-inline {
  flex: 0 0 auto;
}

.premium-composite-kpi {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}

.premium-composite-kpi strong {
  font-size: 38px;
  letter-spacing: -0.045em;
  color: var(--text);
}

.premium-composite-kpi span {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.premium-composite-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 8px;
}

.premium-dial-wrap {
  display: grid;
  place-items: center;
}

.premium-dial {
  width: 205px;
  height: 120px;
  overflow: visible;
}

.premium-dial-bg,
.premium-dial-low,
.premium-dial-mid,
.premium-dial-high {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
}

.premium-dial-bg {
  stroke: #e8efea;
}

.premium-dial-low {
  stroke: #49b165;
  stroke-dasharray: 53 267;
}

.premium-dial-mid {
  stroke: #d6a100;
  stroke-dasharray: 67 253;
  stroke-dashoffset: -57;
}

.premium-dial-high {
  stroke: #e57f22;
  stroke-dasharray: 88 232;
  stroke-dashoffset: -130;
}

.premium-composite-card.very-high .premium-dial-high {
  stroke: #cf3b30;
}

.premium-dial-needle {
  stroke: #23392e;
  stroke-width: 4;
  stroke-linecap: round;
}

.premium-dial-hub {
  fill: #23392e;
  stroke: #fff;
  stroke-width: 4;
}

.premium-dial-value {
  font-size: 25px;
  font-weight: 900;
  fill: #20392d;
}

.premium-dial-unit {
  font-size: 11px;
  font-weight: 800;
  fill: #708279;
}

.premium-dial-caption {
  margin-top: -3px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef5f0;
  font-size: 11px;
  font-weight: 900;
  color: #385b47;
}

.premium-composite-copy {
  min-width: 0;
}

.premium-action-box {
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(213, 229, 218, 0.95);
  box-shadow: 0 4px 12px rgba(39, 80, 54, 0.04);
}

.premium-action-label {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a8d82;
}

.premium-action-box strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: #2f4739;
}

.premium-scale-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.premium-scale-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.premium-scale-item span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex: 0 0 9px;
}

.premium-scale-item b {
  font-size: 10px;
  color: #64786d;
  white-space: nowrap;
}

.premium-scale-item.s1 span {
  background: #49b165;
}

.premium-scale-item.s2 span {
  background: #d6a100;
}

.premium-scale-item.s3 span {
  background: #e57f22;
}

.premium-scale-item.s4 span {
  background: #cf3b30;
}

.premium-composite-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #5b6f64;
}

@media (max-width: 760px) {
  .premium-composite-main {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .premium-dial-wrap {
    justify-content: center;
  }

  .premium-composite-head {
    align-items: flex-start;
  }

  .premium-composite-kpi strong {
    font-size: 32px;
  }

  .premium-composite-title-row h4 {
    font-size: 20px;
  }

  .premium-scale-row {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* v36 — wind direction correctness + compass cue */
.wind-direction-arrow {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #fff 0 56%, transparent 57%),
    conic-gradient(
      from -2deg,
      #dbe6df 0 1deg,
      transparent 1deg 89deg,
      #dbe6df 89deg 91deg,
      transparent 91deg 179deg,
      #dbe6df 179deg 181deg,
      transparent 181deg 269deg,
      #dbe6df 269deg 271deg,
      transparent 271deg
    );
  border: 1px solid #dce8e0;
  display: grid;
  place-items: center;
  color: #334057;
  flex: 0 0 50px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.wind-arrow-svg {
  width: 31px;
  height: 31px;
  display: block;
}

.wind-direction-row {
  align-items: center;
}


/* v37 — Daily VPD stress bands in the 3-day chart */
.fc-stress-band {
  stroke-width: 1;
}

.fc-stress-band.low {
  fill: #e8f6ed;
  stroke: #bfe5ca;
}

.fc-stress-band.medium {
  fill: #fff5d9;
  stroke: #f0da83;
}

.fc-stress-band.high {
  fill: #fff0e2;
  stroke: #efbf87;
}

.fc-stress-band.very-high {
  fill: #fde8e6;
  stroke: #efa9a4;
}

.fc-stress-band-text {
  font-size: 10px;
  font-weight: 900;
}

.fc-stress-band-text.low {
  fill: #247247;
}

.fc-stress-band-text.medium {
  fill: #936a00;
}

.fc-stress-band-text.high {
  fill: #b45b0a;
}

.fc-stress-band-text.very-high {
  fill: #b33631;
}


/* v38 mobile fit for 3-day forecast chart */
.forecast-legend-row.mobile {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 6px;
}

.forecast-chart-head.mobile {
  gap: 8px;
}

.forecast-chart-head.mobile strong {
  font-size: 16px;
  line-height: 1.2;
  display: block;
}

.forecast-svg-wrap.mobile {
  overflow-x: hidden;
}

.forecast-svg.mobile {
  min-width: 0;
  width: 100%;
  display: block;
}

.fc-date.mobile {
  font-size: 9px;
  font-weight: 900;
}

.fc-small.mobile {
  font-size: 8.5px;
}

.fc-weather.mobile {
  font-size: 15px;
}

.fc-foliar.mobile {
  font-size: 8.5px;
  font-weight: 900;
}

.fc-stress-band-text.mobile {
  font-size: 8px;
  font-weight: 900;
}

@media (max-width: 560px) {
  .forecast-chart {
    padding: 12px 10px 10px;
  }

  .forecast-chart .muted.small {
    font-size: 11px;
    line-height: 1.3;
  }

  .forecast-legend-chip {
    font-size: 11px;
  }

  .forecast-chart-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .forecast-chart-head .confidence {
    align-self: flex-start;
    font-size: 10px;
    padding: 6px 8px;
  }

}


/* v40 compact wind/dew/mobile forecast */
.wind-combo-card {
  position: relative;
}

.wind-combo-body {
  margin-bottom: 6px;
}

.wind-inline-direction {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 7px;
  border-top: 1px solid #e5ece7;
}

.wind-inline-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f2f7f4;
  border: 1px solid #dce8e0;
  display: grid;
  place-items: center;
  color: #334057;
  flex: 0 0 30px;
}

.wind-inline-arrow .wind-arrow-svg {
  width: 20px;
  height: 20px;
}

.wind-inline-direction > div:last-child {
  display: grid;
  gap: 1px;
}

.wind-inline-direction strong {
  font-size: 11px;
  line-height: 1.1;
}

.wind-inline-direction span {
  font-size: 9px;
  color: var(--muted);
}

.dew-card .dew-risk-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-top: 7px;
  font-size: 11px;
  color: var(--muted);
}

.dew-card .dew-risk-line b {
  font-size: 12px;
  color: var(--text);
}

.mobile-mini-chart {
  width: 100%;
  margin-top: 8px;
  background: #fbfdfb;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  box-sizing: border-box;
}

.mobile-mini-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.mobile-day-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.mobile-day-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 8px 6px;
  text-align: center;
}

.mobile-day-date {
  font-size: 9px;
  font-weight: 900;
  line-height: 1.15;
  min-height: 22px;
}

.mobile-day-weather {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 4px;
}

.mobile-day-weather span {
  font-size: 16px;
}

.mobile-day-weather strong {
  font-size: 11px;
  white-space: nowrap;
}

.mobile-vpd-pill {
  margin-top: 6px;
  padding: 5px 3px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-vpd-pill.low {
  background: #e8f6ed;
  color: #247247;
}

.mobile-vpd-pill.medium {
  background: #fff5d9;
  color: #936a00;
}

.mobile-vpd-pill.high {
  background: #fff0e2;
  color: #b45b0a;
}

.mobile-vpd-pill.very-high {
  background: #fde8e6;
  color: #b33631;
}

.mobile-day-stats {
  display: grid;
  gap: 2px;
  margin-top: 6px;
  font-size: 8.5px;
  color: #5f7066;
}

.mobile-foliar {
  margin-top: 6px;
  font-size: 8.5px;
  font-weight: 900;
}

.mobile-foliar.good {
  color: #23834d;
}

.mobile-foliar.limited {
  color: #b77910;
}

.mobile-foliar.bad {
  color: #b43a34;
}

@media (max-width: 560px) {
  .forecast-svg {
    min-width: 0 !important;
  }

  .forecast-svg-wrap {
    overflow-x: hidden;
  }

  .forecast-chart-head.mobile {
    flex-direction: column;
    gap: 6px;
  }

  .forecast-chart-head.mobile .confidence {
    align-self: flex-start;
  }

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

  .wind-inline-direction strong {
    font-size: 10px;
  }

}


/* v41 — mobile forecast cleanup */
.fc-inline-label {
  font-size: 10px;
  font-weight: 800;
}

.fc-inline-label.temp {
  fill: #d94b3c;
}

.fc-inline-label.hum {
  fill: #2f6fb1;
}


.mobile-forecast-axis-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 2px 4px 6px;
  font-size: 11px;
  font-weight: 800;
}

.mobile-forecast-axis-label .temp {
  color: #d94b3c;
}

.mobile-forecast-axis-label .hum {
  color: #2f6fb1;
}


@media (max-width: 560px) {
  .fc-inline-label {
    font-size: 9px;
  }

  .forecast-mobile-day .mini-day-meta,
  .forecast-mobile-day .mobile-day-weather {
    display: none !important;
  }

}


/* v42 — mobile forecast cards simplified */
.mobile-agro-summary {
  margin-top: 8px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 6px;
  border-radius: 12px;
  background: #f3f8f5;
  color: #355a46;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 800;
  text-align: center;
}

.mobile-chart-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 4px 3px;
  font-size: 10px;
  font-weight: 900;
}

.mobile-chart-labels .temp {
  color: #d94b3c;
}

.mobile-chart-labels .hum {
  color: #2f6fb1;
}

@media (max-width: 390px) {
  .mobile-agro-summary {
    font-size: 9px;
    padding: 6px 5px;
  }

  .mobile-chart-labels {
    font-size: 9px;
  }

}


.forecast-risk-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 6px 0 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f7faf8;
}

.forecast-risk-summary .summary-title {
  font-size: 11px;
  font-weight: 900;
  color: #587063;
}

.forecast-risk-summary strong {
  font-size: 13px;
  color: #183228;
}

.forecast-risk-summary .info-inline {
  margin-left: auto;
}

.forecast-risk-summary.low {
  background: #eff9f2;
}

.forecast-risk-summary.medium {
  background: #fffaf0;
}

.forecast-risk-summary.high {
  background: #fff4ea;
}

.forecast-risk-summary.very-high {
  background: #fdf0ef;
}

@media (max-width: 560px) {
  .forecast-risk-summary {
    padding: 8px 10px;
    gap: 6px 10px;
  }

  .forecast-risk-summary strong {
    font-size: 12px;
  }

  .forecast-risk-summary .summary-title {
    width: 100%;
  }

  .forecast-risk-summary .info-inline {
    margin-left: 0;
  }

}


/* v43 — integrated TerraSky Weather Risk strip */
.fc-risk-title {
  font-size: 10px;
  font-weight: 900;
  fill: #40574b;
}

.fc-risk-fill {
  stroke-width: 1;
}

.fc-risk-fill.low {
  fill: #e7f6ec;
  stroke: #b7dfc3;
}

.fc-risk-fill.medium {
  fill: #fff4cf;
  stroke: #ebd47b;
}

.fc-risk-fill.high {
  fill: #ffeddc;
  stroke: #eeb06e;
}

.fc-risk-fill.very-high {
  fill: #fde6e4;
  stroke: #e7a09b;
}

.fc-risk-text {
  font-size: 9px;
  font-weight: 900;
}

.fc-risk-text.low {
  fill: #247247;
}

.fc-risk-text.medium {
  fill: #8f6a00;
}

.fc-risk-text.high {
  fill: #a95708;
}

.fc-risk-text.very-high {
  fill: #a93430;
}


@media (max-width: 560px) {
  .fc-risk-title {
    font-size: 9px;
  }

  .fc-risk-text {
    font-size: 8px;
  }

  .mobile-mini-chart {
    padding-bottom: 0;
  }

}


/* v45 — clean forecast chart + VPD band */
.forecast-risk-summary,
.fc-risk-title,
.fc-risk-segment {
  display: none !important;
}


.forecast-legend-clear {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 8px 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fbfdfb;
}

.forecast-legend-clear > div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.3;
}

.forecast-legend-clear small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.forecast-legend-clear .vpd-legend-full {
  grid-column: 1/-1;
}

.legend-swatch {
  display: inline-block;
  flex: 0 0 auto;
  margin-top: 5px;
}

.legend-swatch.temp-line {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: #d94b3c;
}

.legend-swatch.hum-line {
  width: 22px;
  height: 0;
  border-top: 3px dashed #2f6fb1;
}

.legend-swatch.confidence-band {
  width: 22px;
  height: 10px;
  border-radius: 3px;
  background: #f5c8c2;
  opacity: 0.8;
}

.legend-vpd-gradient {
  width: 34px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
  margin-top: 4px;
  background: linear-gradient(
    90deg,
    #b8d7f0 0 17%,
    #cfe8d6 17% 35%,
    #f6e49a 35% 60%,
    #f5bf87 60% 82%,
    #e8a19a 82% 100%
  );
}

.fc-vpd-title {
  font-size: 10px;
  font-weight: 900;
  fill: #40574b;
}

.fc-vpd-band {
  stroke-width: 1;
}

.fc-vpd-band.very-low {
  fill: #e6f2fb;
  stroke: #b9d9f0;
}

.fc-vpd-band.comfortable {
  fill: #e8f6ed;
  stroke: #bfe5ca;
}

.fc-vpd-band.caution {
  fill: #fff5d9;
  stroke: #f0da83;
}

.fc-vpd-band.high {
  fill: #fff0e2;
  stroke: #efbf87;
}

.fc-vpd-band.very-high {
  fill: #fde8e6;
  stroke: #efa9a4;
}

.fc-vpd-band-text {
  font-size: 9px;
  font-weight: 900;
}

.fc-vpd-band-text.very-low {
  fill: #3d6f92;
}

.fc-vpd-band-text.comfortable {
  fill: #247247;
}

.fc-vpd-band-text.caution {
  fill: #936a00;
}

.fc-vpd-band-text.high {
  fill: #b45b0a;
}

.fc-vpd-band-text.very-high {
  fill: #b33631;
}


@media (max-width: 560px) {
  .forecast-legend-clear {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-bottom: 8px;
    padding: 9px 10px;
  }

  .forecast-legend-clear .vpd-legend-full {
    grid-column: auto;
  }

  .forecast-legend-clear > div {
    font-size: 10px;
  }

  .forecast-legend-clear small {
    font-size: 9px;
  }

  .fc-vpd-title {
    font-size: 9px;
  }

  .fc-vpd-band-text {
    font-size: 8px;
  }

}


/* v46 — five current-condition cards */
@media (min-width: 980px) {
  .current-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

}

.wind-direction-card {
  min-width: 0;
}

.wind-direction-card .wind-direction-row {
  margin-top: 8px;
}


/* v47 wind direction as separate sexy card */
.wind-inline-direction,
.wind-inline-arrow {
  display: none !important;
}

.wind-direction-card {
  background: linear-gradient(180deg, #f8fbf9 0%, #f3f8f5 100%);
}

.wind-direction-card .mini-gauge-top strong {
  font-size: 18px;
  line-height: 1.05;
}

.wind-direction-card .mini-gauge-level {
  font-size: 12px;
  font-weight: 700;
  color: #5f7066;
}

.wind-direction-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.wind-direction-arrow {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #eef5f0 100%);
  box-shadow: inset 0 0 0 1px #d7e4dc;
  display: grid;
  place-items: center;
  color: #31485f;
  flex: 0 0 54px;
}

.wind-arrow-svg {
  width: 32px;
  height: 32px;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.06));
}

.wind-direction-copy p {
  margin-top: 3px;
  font-size: 12px;
  color: #7d8b83;
  line-height: 1.35;
}

@media (min-width: 980px) {
  .current-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

}

@media (max-width: 640px) {
  .current-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .wind-direction-arrow {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

}


/* v48 wind direction card simplification */
.wind-direction-card {
  background: linear-gradient(180deg, #f8fbf9 0%, #f3f8f5 100%);
  padding: 14px 14px 16px;
}

.wind-direction-card .mini-gauge-top {
  display: block;
  margin-bottom: 10px;
}

.wind-direction-card .mini-gauge-title {
  font-size: 15px;
  font-weight: 700;
  color: #20392b;
}

.wind-direction-card .mini-gauge-top strong,
.wind-direction-card .mini-gauge-level,
.wind-direction-card .mini-gauge-track,
.wind-direction-card p,
.wind-direction-copy {
  display: none !important;
}

.wind-direction-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 138px;
}

.wind-direction-card .wind-direction-arrow {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #eef5f0 100%);
  box-shadow: inset 0 0 0 1px #d7e4dc;
  display: grid;
  place-items: center;
  color: #42536a;
  flex: 0 0 72px;
}

.wind-direction-card .wind-arrow-svg {
  width: 44px;
  height: 44px;
  display: block;
}

.wind-direction-name {
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  color: #18362c;
  letter-spacing: -0.02em;
  text-align: center;
}

@media (max-width: 640px) {
  .wind-direction-core {
    min-height: 112px;
  }

  .wind-direction-card .wind-direction-arrow {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .wind-direction-card .wind-arrow-svg {
    width: 40px;
    height: 40px;
  }

  .wind-direction-name {
    font-size: 26px;
  }

}


/* v50 — clearer wind direction + VPD level bands */
.forecast-vpd-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.forecast-vpd-strip.mobile {
  gap: 6px;
}

.forecast-vpd-band {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 10px;
  background: #fff;
  display: grid;
  gap: 4px;
  text-align: center;
}

.forecast-vpd-band strong {
  font-size: 12px;
  line-height: 1.15;
  color: #314339;
}

.forecast-vpd-band span {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.forecast-vpd-band.very-low {
  background: #eef7fd;
  border-color: #c9dfef;
}

.forecast-vpd-band.very-low span {
  color: #3d6f92;
}

.forecast-vpd-band.comfortable {
  background: #eef9f1;
  border-color: #cbe8d3;
}

.forecast-vpd-band.comfortable span {
  color: #247247;
}

.forecast-vpd-band.caution {
  background: #fff8e7;
  border-color: #edd894;
}

.forecast-vpd-band.caution span {
  color: #936a00;
}

.forecast-vpd-band.high {
  background: #fff3e6;
  border-color: #efc694;
}

.forecast-vpd-band.high span {
  color: #b45b0a;
}

.forecast-vpd-band.very-high {
  background: #feeceb;
  border-color: #efb0aa;
}

.forecast-vpd-band.very-high span {
  color: #b33631;
}


.wind-direction-card {
  padding: 14px 16px !important;
  background: #fff !important;
}

#infoDialog:has(.settings-form) {
  width: min(760px, calc(100% - 24px));
  max-width: 760px;
  max-height: 92dvh;
}

#infoDialog:has(.settings-form) .dialog-body {
  padding: 24px;
  max-height: 92dvh;
  overflow: auto;
}

.membership-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(135deg, #f0fbf4, #fff9ec);
  border-color: #cfe4d6;
}

.membership-section.is-pro {
  background: linear-gradient(135deg, #173d2a, #245d41);
  border-color: #173d2a;
  color: #fff;
}

.membership-section h3 {
  margin: 2px 0 4px;
}

.membership-section.is-pro h3,
.membership-section.is-pro p,
.membership-section.is-pro .membership-kicker {
  color: #fff;
}

.membership-section p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.membership-kicker {
  color: #287d50;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.membership-upgrade,
.membership-active {
  flex: 0 0 auto;
  white-space: nowrap;
}

.membership-active {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.threshold-grid.is-locked input:disabled,
.threshold-grid select:disabled,
.threshold-grid input:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.pro-inline-lock {
  min-height: 0;
  border-radius: 999px;
  padding: 5px 9px;
  background: #173d2a;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.threshold-grid.is-locked input:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.pro-price {
  display: inline-block;
  margin: 2px 0 12px;
  border-radius: 999px;
  background: #eaf6ee;
  color: #176d43;
  padding: 8px 12px;
  font-weight: 900;
}


.pro-restore-link {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.pro-restore-link:hover,
.pro-restore-link:focus-visible {
  color: #176d43;
}

.pro-pending {
  display: block;
  margin-top: 12px;
}

.pro-threshold-panel {
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
  border-color: #cfe4d6;
}

.pro-threshold-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  color: #173d2a;
  list-style: none;
}

.pro-threshold-panel > summary::-webkit-details-marker {
  display: none;
}

.pro-threshold-panel > summary b {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 7px;
  background: #173d2a;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.pro-threshold-panel > summary small {
  color: var(--muted);
  text-align: right;
}

.pro-threshold-fields,
.pro-threshold-lock {
  border-top: 1px solid #dfe9e2;
  padding: 16px;
}

.pro-threshold-lock {
  text-align: center;
  background: linear-gradient(135deg, #f3faf5, #fffaf0);
}

.pro-threshold-lock p {
  max-width: 560px;
  margin: 8px auto 12px;
  color: var(--muted);
  line-height: 1.45;
}

.threshold-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.threshold-profile-grid label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #40564a;
}

.threshold-profile-grid input {
  width: 100%;
  border: 1px solid #d7e3dc;
  border-radius: 12px;
  background: #fff;
  padding: 11px;
  color: var(--text);
}

@media (max-width: 640px) {
  .threshold-profile-grid {
    grid-template-columns: 1fr;
  }

  .pro-threshold-panel > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .pro-threshold-panel > summary small {
    text-align: left;
  }

}

@media (max-width: 640px) {
  .top-actions {
    gap: 5px;
  }

  .lang-select {
    padding: 8px 7px;
  }

  .top-actions .icon-btn {
    width: 38px;
    height: 38px;
  }

  #infoDialog:has(.settings-form) {
    width: calc(100% - 12px);
    max-height: 96dvh;
  }

  #infoDialog:has(.settings-form) .dialog-body {
    padding: 18px 14px;
  }

  .membership-section,
  .pro-gate-actions {
    align-items: stretch;
    flex-direction: column;
  }

}

.wind-direction-card .metric-card-head {
  margin-bottom: 8px;
}

.wind-direction-card .metric-title {
  font-size: 14px;
}

.wind-direction-simple {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
}

.wind-direction-arrow-badge {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #f4f8f5;
  border: 1px solid #dbe7df;
  display: grid;
  place-items: center;
  color: #42536a;
  flex: 0 0 46px;
}

.wind-direction-arrow-badge .wind-arrow-svg {
  width: 28px;
  height: 28px;
  display: block;
}

.wind-direction-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.wind-direction-text strong {
  font-size: 18px;
  line-height: 1.1;
  color: #20392b;
}

.wind-direction-text span {
  font-size: 12px;
  line-height: 1.25;
  color: #708178;
  font-weight: 700;
}


@media (max-width: 640px) {
  .forecast-vpd-strip {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .forecast-vpd-band {
    padding: 8px;
  }

  .forecast-vpd-band strong,
  .forecast-vpd-band span {
    font-size: 11px;
  }

  .wind-direction-simple {
    min-height: 64px;
    gap: 10px;
  }

  .wind-direction-arrow-badge {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .wind-direction-arrow-badge .wind-arrow-svg {
    width: 24px;
    height: 24px;
  }

  .wind-direction-text strong {
    font-size: 16px;
  }

  .wind-direction-text span {
    font-size: 11px;
  }

}


/* v51 — premium wind direction + VPD scale bands */
.wind-direction-card {
  display: grid;
  align-content: start;
  min-height: 160px;
}

.wind-direction-card .metric-card-head {
  margin-bottom: 10px;
}

.wind-direction-premium {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 96px;
}

.wind-direction-premium-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 1px solid #dce7df;
  background: linear-gradient(180deg, #fafcfa 0%, #f1f6f2 100%);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.wind-direction-premium-icon .wind-arrow-svg {
  width: 30px;
  height: 30px;
  display: block;
  color: #465677;
}

.wind-direction-premium-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.wind-direction-premium-copy b {
  font-size: 19px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #20372a;
}

.wind-direction-premium-copy span {
  font-size: 12px;
  line-height: 1.3;
  color: #71837a;
  font-weight: 700;
}


.forecast-vpd-band {
  gap: 6px;
  text-align: left;
}

.forecast-vpd-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.forecast-vpd-head strong {
  font-size: 12px;
  line-height: 1.15;
  color: #314339;
}

.forecast-vpd-head span {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.forecast-vpd-band small {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  color: #50655b;
}

.forecast-vpd-scale {
  position: relative;
  padding-top: 2px;
}

.forecast-vpd-segs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.forecast-vpd-segs i {
  display: block;
  height: 8px;
  border-radius: 999px;
}

.forecast-vpd-segs .very-low {
  background: #88b8d8;
}

.forecast-vpd-segs .comfortable {
  background: #4db267;
}

.forecast-vpd-segs .caution {
  background: #d5a100;
}

.forecast-vpd-segs .high {
  background: #e57f22;
}

.forecast-vpd-segs .very-high {
  background: #cf3b30;
}

.forecast-vpd-marker {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
}

.forecast-vpd-marker::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #20392b;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(31, 57, 43, 0.18);
}

.version-history {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.version-history summary {
  font-size: 11px;
  color: #63756b;
  font-weight: 800;
}

@media (max-width: 640px) {
  .wind-direction-card {
    min-height: 148px;
  }

  .wind-direction-premium {
    grid-template-columns: 52px 1fr;
    gap: 10px;
    min-height: 88px;
  }

  .wind-direction-premium-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .wind-direction-premium-icon .wind-arrow-svg {
    width: 27px;
    height: 27px;
  }

  .wind-direction-premium-copy b {
    font-size: 18px;
  }

  .forecast-vpd-segs i {
    height: 7px;
  }

}


/* v52 — final clean wind direction card */
.wind-direction-v52 {
  padding: 14px 16px !important;
  min-height: 168px !important;
  background: #fff !important;
}

.wind-direction-v52 .info-inline {
  display: none !important;
}

.wind-direction-v52 .metric-card-head {
  margin-bottom: 12px !important;
}

.wind-direction-v52 .metric-title {
  font-size: 14px !important;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #20372a;
}

.wind-direction-v52-body {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
}

.wind-direction-v52-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 999px;
  border: 1px solid #d8e4dc;
  background: linear-gradient(180deg, #fafcfb 0%, #eef4f0 100%);
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 2px 6px rgba(34, 66, 49, 0.05);
}

.wind-direction-v52-rot {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  transform-origin: 50% 50%;
}

.wind-direction-v52 .wind-arrow-svg {
  width: 30px;
  height: 30px;
  display: block;
  color: #53627a;
}

.wind-direction-v52-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.wind-direction-v52-copy b {
  font-size: 28px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #17362a;
  font-weight: 900;
}

.wind-direction-v52-copy span {
  font-size: 13px;
  line-height: 1.25;
  color: #6e8177;
  font-weight: 700;
}

@media (max-width: 640px) {
  .wind-direction-v52 {
    min-height: 156px !important;
    padding: 13px 14px !important;
  }

  .wind-direction-v52-body {
    gap: 12px;
    min-height: 80px;
  }

  .wind-direction-v52-icon {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .wind-direction-v52-rot {
    width: 28px;
    height: 28px;
  }

  .wind-direction-v52 .wind-arrow-svg {
    width: 28px;
    height: 28px;
  }

  .wind-direction-v52-copy b {
    font-size: 24px;
  }

  .wind-direction-v52-copy span {
    font-size: 12px;
  }

}


/* v53 — round compass wind direction card */
.wind-direction-v53 {
  padding: 14px 16px !important;
  min-height: 168px !important;
  background: #fff !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.wind-direction-v53 .metric-card-head {
  margin-bottom: 12px !important;
}

.wind-direction-v53 .metric-title {
  font-size: 14px !important;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #20372a;
}

.wind-direction-v53-compass {
  position: relative;
  align-self: center;
  width: 92px;
  height: 92px;
  margin: 6px auto 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fcfefd 0%, #eef4f0 100%);
  border: 1px solid #d9e5de;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 6px 18px rgba(34, 66, 49, 0.05);
}

.wind-direction-v53-ring {
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  border: 1.5px solid #d6e1db;
}

.wind-direction-v53-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  margin-top: -20px;
  display: grid;
  place-items: center;
  transform-origin: 50% 50%;
}

.wind-direction-v53 .wind-arrow-svg {
  width: 36px;
  height: 36px;
  display: block;
  color: #53627a;
}

.wind-direction-v53-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  border-radius: 999px;
  background: #2f5b46;
  box-shadow: 0 0 0 3px rgba(47, 91, 70, 0.08);
}

.wind-direction-v53-copy {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.wind-direction-v53-copy b {
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #17362a;
  font-weight: 900;
}

.wind-direction-v53-copy span {
  font-size: 14px;
  line-height: 1.2;
  color: #6e8177;
  font-weight: 800;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .wind-direction-v53 {
    min-height: 160px !important;
    padding: 12px 14px !important;
  }

  .wind-direction-v53-compass {
    width: 84px;
    height: 84px;
  }

  .wind-direction-v53-arrow {
    width: 36px;
    height: 36px;
    margin-left: -18px;
    margin-top: -18px;
  }

  .wind-direction-v53 .wind-arrow-svg {
    width: 32px;
    height: 32px;
  }

  .wind-direction-v53-copy b {
    font-size: 22px;
  }

  .wind-direction-v53-copy span {
    font-size: 13px;
  }

}


/* v54 alignment fixes */
.metric-card {
  overflow: hidden;
}

.metric-card-head {
  min-height: 24px;
  align-items: flex-start !important;
}

.metric-card-head .info-inline {
  align-self: flex-start;
  position: relative;
  top: 0;
}

.metric-title {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  line-height: 1.15 !important;
  min-height: 24px;
}

.metric-title > * {
  display: inline-flex;
  align-items: center;
}

.wind-direction-v53 {
  justify-content: flex-start;
}

.wind-direction-v53 .metric-card-head {
  width: 100%;
  margin-bottom: 8px !important;
}

.wind-direction-v53 .metric-title {
  font-size: 15px !important;
  font-weight: 800;
  min-height: 24px;
}


/* v55 wind direction card: clearer arrow, same font system as other cards */
.wind-direction-v55 {
  padding: 11px !important;
  display: grid;
  gap: 6px;
  background: #f7faf8;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.wind-direction-v55 .metric-card-head {
  min-height: 24px;
  align-items: center !important;
  margin-bottom: 0 !important;
}

.wind-direction-v55 .metric-title {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  line-height: 1.15 !important;
}

.wind-direction-v55-compass {
  position: relative;
  align-self: center;
  width: 96px;
  height: 96px;
  margin: 4px auto 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fcfefd 0%, #f2f7f4 100%);
  border: 1px solid #d9e5de;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.wind-direction-v55-ring {
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  border: 1.5px solid #d6e1db;
}

.wind-direction-v55-cross::before,
.wind-direction-v55-cross::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #d8e3dd;
  transform: translate(-50%, -50%);
}

.wind-direction-v55-cross::before {
  width: 1px;
  height: 58px;
}

.wind-direction-v55-cross::after {
  width: 58px;
  height: 1px;
}

.wind-direction-v55-mark {
  position: absolute;
  font-size: 10px;
  font-weight: 800;
  color: #8aa094;
  line-height: 1;
}

.wind-direction-v55-mark.top {
  left: 50%;
  top: 5px;
  transform: translateX(-50%);
}

.wind-direction-v55-mark.right {
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
}

.wind-direction-v55-mark.bottom {
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
}

.wind-direction-v55-mark.left {
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
}

.wind-direction-v55-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  margin-left: -23px;
  margin-top: -23px;
  display: grid;
  place-items: center;
  transform-origin: 50% 50%;
}

.wind-direction-v55 .wind-arrow-svg {
  width: 40px;
  height: 40px;
  display: block;
  color: #52627b;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.7));
}

.wind-direction-v55-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  border-radius: 999px;
  background: #2f5b46;
  box-shadow: 0 0 0 3px rgba(47, 91, 70, 0.08);
}

.wind-direction-v55-copy {
  display: grid;
  gap: 1px;
  justify-items: center;
  text-align: center;
  padding-bottom: 2px;
}

.wind-direction-v55-copy b {
  font-size: 26px;
  line-height: 1.05;
  font-weight: 900;
  color: #17362a;
  letter-spacing: -0.02em;
  margin: 0;
}

.wind-direction-v55-copy span {
  font-size: 12px;
  line-height: 1.2;
  color: var(--muted);
  font-weight: 700;
  margin: 0;
}

@media (max-width: 640px) {
  .wind-direction-v55-compass {
    width: 88px;
    height: 88px;
  }

  .wind-direction-v55-arrow {
    width: 42px;
    height: 42px;
    margin-left: -21px;
    margin-top: -21px;
  }

  .wind-direction-v55 .wind-arrow-svg {
    width: 36px;
    height: 36px;
  }

  .wind-direction-v55-copy b {
    font-size: 24px;
  }

}


/* v56 premium iOS-like wind direction card */
.wind-direction-v56 {
  background: linear-gradient(180deg, #fbfdfc 0%, #f4f8f6 100%);
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  overflow: hidden;
}

.wind-direction-v56 .metric-card-head {
  min-height: 24px;
  align-items: center !important;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0;
}

.wind-direction-v56 .metric-title {
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: var(--text) !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wind-direction-v56-body {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding-top: 2px;
}

.wind-direction-v56-compass {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 25%,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(250, 253, 251, 0.96) 38%,
    rgba(241, 247, 244, 0.98) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -6px 16px rgba(204, 219, 211, 0.22),
    0 8px 20px rgba(67, 91, 78, 0.06);
}

.wind-direction-v56-ring {
  position: absolute;
  border-radius: 999px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.wind-direction-v56-ring.outer {
  width: 96px;
  height: 96px;
  border: 1px solid #dce8e1;
}

.wind-direction-v56-ring.inner {
  width: 72px;
  height: 72px;
  border: 1px solid #e2ece7;
}

.wind-direction-v56-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  margin-left: -23px;
  margin-top: -23px;
  display: grid;
  place-items: center;
  transform-origin: 50% 50%;
}

.wind-direction-v56 .wind-arrow-svg {
  width: 40px;
  height: 40px;
  display: block;
  color: #4f6078;
  filter: drop-shadow(0 2px 3px rgba(66, 83, 101, 0.12));
}

.wind-direction-v56-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  border-radius: 999px;
  background: #2f5b46;
  box-shadow: 0 0 0 4px rgba(47, 91, 70, 0.08);
}

.wind-direction-v56-copy {
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
  min-height: 40px;
}

.wind-direction-v56-copy b {
  font-size: 20px;
  line-height: 1.05;
  font-weight: 900;
  color: #17362a;
  letter-spacing: -0.02em;
  margin: 0;
  font-family: inherit;
}

.wind-direction-v56-copy span {
  font-size: 12px;
  line-height: 1.2;
  color: var(--muted);
  font-weight: 700;
  margin: 0;
  font-family: inherit;
}

@media (max-width: 640px) {
  .wind-direction-v56-compass {
    width: 90px;
    height: 90px;
  }

  .wind-direction-v56-ring.outer {
    width: 90px;
    height: 90px;
  }

  .wind-direction-v56-ring.inner {
    width: 68px;
    height: 68px;
  }

  .wind-direction-v56-arrow {
    width: 42px;
    height: 42px;
    margin-left: -21px;
    margin-top: -21px;
  }

  .wind-direction-v56 .wind-arrow-svg {
    width: 36px;
    height: 36px;
  }

  .wind-direction-v56-copy b {
    font-size: 18px;
  }

}


/* v57 wind direction refinements */
.wind-direction-v56 {
  gap: 4px;
  padding: 11px;
  align-content: start;
}

.wind-direction-v56 .metric-card-head {
  min-height: 24px;
  align-items: flex-start !important;
  margin-bottom: 0;
}

.wind-direction-v56 .metric-title {
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  font-family: inherit !important;
}

.wind-direction-v56-body {
  gap: 6px;
  padding-top: 0;
  align-content: start;
}

.wind-direction-v56-compass {
  width: 82px;
  height: 82px;
  margin: 2px auto 0;
  border-radius: 999px;
  background: radial-gradient(
    circle at 32% 24%,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(249, 252, 250, 0.97) 40%,
    rgba(241, 247, 244, 0.98) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -6px 14px rgba(204, 219, 211, 0.2),
    0 6px 14px rgba(67, 91, 78, 0.05);
}

.wind-direction-v56-ring.outer {
  width: 82px;
  height: 82px;
  border: 1px solid #dce8e1;
}

.wind-direction-v56-ring.inner {
  width: 62px;
  height: 62px;
  border: 1px solid #e2ece7;
}

.wind-direction-v56-arrow {
  width: 54px;
  height: 54px;
  margin-left: -27px;
  margin-top: -27px;
}

.wind-direction-v56 .wind-arrow-svg {
  width: 50px;
  height: 50px;
  color: #566883;
  filter: drop-shadow(0 2px 3px rgba(66, 83, 101, 0.1));
}

.wind-direction-v56-dot {
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  margin-top: -3.5px;
  background: #2f5b46;
  box-shadow: 0 0 0 3px rgba(47, 91, 70, 0.08);
}

.wind-direction-v56-copy {
  gap: 1px;
  min-height: auto;
  padding-bottom: 0;
}

.wind-direction-v56-copy b {
  font-size: 18px;
  line-height: 1.08;
  font-weight: 900;
  margin: 0;
  font-family: inherit;
}

.wind-direction-v56-copy span {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0;
  font-family: inherit;
}

@media (max-width: 640px) {
  .wind-direction-v56 {
    padding: 10px;
  }

  .wind-direction-v56-compass {
    width: 78px;
    height: 78px;
  }

  .wind-direction-v56-ring.outer {
    width: 78px;
    height: 78px;
  }

  .wind-direction-v56-ring.inner {
    width: 58px;
    height: 58px;
  }

  .wind-direction-v56-arrow {
    width: 52px;
    height: 52px;
    margin-left: -26px;
    margin-top: -26px;
  }

  .wind-direction-v56 .wind-arrow-svg {
    width: 48px;
    height: 48px;
  }

  .wind-direction-v56-copy b {
    font-size: 17px;
  }

  .wind-direction-v56-copy span {
    font-size: 10.5px;
  }

}


/* v60 wind-direction clarity */
.wind-direction-v56-compass {
  width: 74px;
  height: 74px;
}

.wind-direction-v56-ring.outer {
  width: 74px;
  height: 74px;
}

.wind-direction-v56-ring.inner {
  width: 56px;
  height: 56px;
}

.wind-direction-v56-arrow {
  width: 62px;
  height: 62px;
  margin-left: -31px;
  margin-top: -31px;
}

.wind-direction-v56 .wind-arrow-svg {
  width: 60px;
  height: 60px;
  color: #52657f;
  filter: drop-shadow(0 2px 3px rgba(66, 83, 101, 0.12));
}

.wind-direction-v56-copy b {
  font-size: 16px;
  line-height: 1.08;
}

.wind-direction-v56-copy span {
  font-size: 10px;
  line-height: 1.15;
}

@media (max-width: 640px) {
  .wind-direction-v56-compass {
    width: 70px;
    height: 70px;
  }

  .wind-direction-v56-ring.outer {
    width: 70px;
    height: 70px;
  }

  .wind-direction-v56-ring.inner {
    width: 52px;
    height: 52px;
  }

  .wind-direction-v56-arrow {
    width: 58px;
    height: 58px;
    margin-left: -29px;
    margin-top: -29px;
  }

  .wind-direction-v56 .wind-arrow-svg {
    width: 56px;
    height: 56px;
  }

  .wind-direction-v56-copy b {
    font-size: 15px;
  }

  .wind-direction-v56-copy span {
    font-size: 9.5px;
  }

}


/* v60 — wind direction folded into the wind-speed card */
.wind-combo-card {
  position: relative;
}

.wind-combo-card .metric-card-head {
  padding-right: 82px;
}

.wind-card-direction {
  position: absolute;
  right: 11px;
  top: 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: #8f9693;
  z-index: 2;
  pointer-events: auto;
}

.wind-card-direction-arrow {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  transform-origin: 50% 50%;
}

.wind-card-direction small {
  display: block;
  max-width: 46px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8.5px;
  line-height: 1;
  font-weight: 800;
  color: #66776e;
  letter-spacing: 0;
  text-align: right;
  order: -1;
}

.wind-pointer-svg {
  width: 27px;
  height: 27px;
  display: block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.8));
}

@media (max-width: 640px) {
  .wind-combo-card .metric-card-head {
    padding-right: 76px;
  }

  .wind-card-direction {
    right: 10px;
    top: 11px;
    gap: 4px;
  }

  .wind-card-direction-arrow {
    width: 25px;
    height: 25px;
  }

  .wind-card-direction small {
    max-width: 43px;
    font-size: 8px;
  }

  .wind-pointer-svg {
    width: 25px;
    height: 25px;
  }

}


/* v67 — location-aware moon phase beside sunset */
.moon-phase-item {
  min-width: 88px;
}

.moon-phase-icon {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  font-size: 21px;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(31, 45, 72, 0.12));
  transform-origin: center;
}

.moon-phase-icon.southern {
  transform: scaleX(-1);
}

.moon-phase-item .sun-compact-top {
  color: #465070;
}

.moon-phase-item .sun-compact-label {
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .moon-phase-item {
    min-width: 78px;
  }

  .moon-phase-icon {
    width: 21px;
    height: 21px;
    font-size: 19px;
  }

  .sun-compact-set {
    gap: 7px;
  }

}

.source-trust-summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0 4px;
}

.source-trust-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.source-technical-details {
  margin-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.source-technical-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  list-style-position: inside;
}

.source-technical-details[open] summary {
  margin-bottom: 8px;
}

.source-state.medium {
  background: #fff4d8;
  color: #8a6500;
}


/* v68 — mobile-first header, astronomy alignment and VPD details */
.brand-copy .eyebrow {
  white-space: nowrap;
}

.forecast-vpd-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.forecast-vpd-value .info-inline {
  width: 18px;
  height: 18px;
  font-size: 10px;
}

@media (max-width: 640px) {
  .topbar {
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand-block {
    flex: 1 1 auto;
    gap: 9px;
    overflow: hidden;
  }

  .brand-copy {
    overflow: hidden;
  }

  .brand-copy .eyebrow {
    font-size: 10px;
    letter-spacing: 0.035em;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .topbar h1 {
    font-size: 21px;
    line-height: 1.08;
    margin-top: 3px;
  }

  .top-actions {
    flex: 0 0 auto;
    gap: 4px;
  }

  .lang-select {
    padding: 7px 6px;
    border-radius: 10px;
    font-size: 11px;
  }

  .topbar .icon-btn {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .temp-sun-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }

  .sun-compact-set {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: start;
    margin: 0;
    gap: 6px;
  }

  .sun-compact-item,
  .moon-phase-item {
    min-width: 0;
  }

  .sun-compact-label,
  .moon-phase-item .sun-compact-label {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sun-compact-set > .info-inline {
    margin-top: 2px;
  }

}

@media (max-width: 480px) {
  .top-location-card {
    max-width: none;
    padding: 6px;
    width: 35px;
    height: 35px;
    justify-content: center;
  }

  .top-location-copy {
    display: none;
  }

  .top-location-icon {
    font-size: 17px;
  }

}

@media (max-width: 370px) {
  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-copy .eyebrow {
    font-size: 9px;
    letter-spacing: 0.02em;
  }

  .topbar h1 {
    font-size: 19px;
  }

  .sun-compact-label,
  .moon-phase-item .sun-compact-label {
    font-size: 9px;
  }

}


/* v69 — VPD explanation beside the daily VPD values */
.forecast-vpd-legend {
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafcfb;
  display: flex;
  align-items: center;
  gap: 12px;
}

.forecast-vpd-legend-title {
  font-size: 10px;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
}

.forecast-vpd-legend-items {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.forecast-vpd-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 10px;
  color: #50655b;
}

.forecast-vpd-legend-item i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.forecast-vpd-legend-item i.very-low {
  background: #88b8d8;
}

.forecast-vpd-legend-item i.comfortable {
  background: #4db267;
}

.forecast-vpd-legend-item i.caution {
  background: #d5a100;
}

.forecast-vpd-legend-item i.high {
  background: #e57f22;
}

.forecast-vpd-legend-item i.very-high {
  background: #cf3b30;
}

.forecast-vpd-legend-item b {
  font-size: 10px;
  color: #314339;
}

.forecast-vpd-legend-item small {
  font-size: 9px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .forecast-vpd-legend {
    display: grid;
    gap: 6px;
    padding: 8px;
  }

  .forecast-vpd-legend-title {
    font-size: 9px;
  }

  .forecast-vpd-legend-items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 8px;
  }

  .forecast-vpd-legend-item {
    font-size: 9px;
    min-width: 0;
  }

  .forecast-vpd-legend-item b {
    font-size: 9px;
  }

  .forecast-vpd-legend-item small {
    font-size: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

}


/* v70 — model-confirmed hourly rain windows in the three-day chart */
.forecast-rain-band {
  cursor: pointer;
  outline: none;
}

.forecast-rain-band rect {
  pointer-events: all;
  transition:
    opacity 0.18s ease,
    filter 0.18s ease;
}

.forecast-rain-band:hover rect,
.forecast-rain-band:focus rect {
  opacity: 0.92;
  filter: saturate(1.18);
}

.forecast-rain-legend {
  margin: 5px 0 12px;
  padding: 9px 10px;
  border: 1px solid #d6e7f2;
  border-radius: 12px;
  background: #f7fbfe;
  display: grid;
  gap: 7px;
}

.forecast-rain-legend-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #345f78;
  font-size: 10px;
  line-height: 1.25;
}

.rain-hatch-swatch {
  width: 22px;
  height: 12px;
  flex: 0 0 auto;
  border: 1px solid #aacce1;
  border-radius: 3px;
  background: repeating-linear-gradient(
    90deg,
    rgba(220, 238, 254, 0.75) 0,
    rgba(220, 238, 254, 0.75) 3px,
    rgba(111, 167, 207, 0.58) 3px,
    rgba(111, 167, 207, 0.58) 4px
  );
}

.forecast-rain-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rain-window-chip {
  appearance: none;
  border: 1px solid #c8dfec;
  border-radius: 999px;
  background: #fff;
  color: #416779;
  padding: 5px 8px;
  font: inherit;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
}

.rain-window-chip:hover,
.rain-window-chip:focus-visible {
  border-color: #75a9ca;
  background: #eef8fd;
  outline: none;
}

@media (max-width: 640px) {
  .forecast-rain-legend {
    margin-top: 2px;
    padding: 8px;
    gap: 6px;
  }

  .forecast-rain-legend-title {
    font-size: 9px;
  }

  .rain-hatch-swatch {
    width: 19px;
    height: 11px;
  }

  .forecast-rain-chips {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .rain-window-chip {
    width: 100%;
    text-align: left;
    padding: 5px 7px;
    font-size: 8.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

}


/* v71 — day/hour x-axis aligned with the three daily VPD columns */
.fc-x-baseline,
.fc-x-tick {
  stroke: #bdcbc3;
  stroke-width: 1;
}

.fc-day-divider {
  stroke: #dce5e0;
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.fc-x-day {
  font-size: 10px;
  font-weight: 850;
  fill: #314339;
}

.fc-x-hour {
  font-size: 8.5px;
  font-weight: 700;
  fill: #7a8981;
}

@media (max-width: 560px) {
  .fc-x-day {
    font-size: 8.5px;
  }

  .fc-x-hour {
    font-size: 7.5px;
  }

  .fc-day-divider {
    stroke: #e1e9e4;
  }

}


/* v72 — feels-like temperature stays with the primary temperature */
.current-temp-block {
  display: grid;
  align-content: center;
  gap: 1px;
  flex: 0 0 auto;
}

.current-feels {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.current-feels strong {
  color: #4f6258;
  font-size: 12px;
  font-weight: 850;
}

@media (max-width: 640px) {
  .current-temp-block {
    gap: 0;
  }

  .current-feels {
    font-size: 10px;
    margin-top: -1px;
  }

  .current-feels strong {
    font-size: 11px;
  }

}


/* v76 — editable field history and compact mobile navigation */
.screen-heading-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.back-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--green);
  border-radius: 11px;
  min-height: 38px;
  padding: 8px 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.back-btn:hover {
  background: var(--green2);
}

.active-garden-edit-mini,
.active-garden-delete-mini {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.active-garden-edit-mini {
  color: var(--green);
}

.active-garden-edit-mini:hover {
  background: var(--green2);
  border-color: #b9ddc4;
}

.small-badge {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  font-size: 24px;
  flex: 0 0 auto;
}

#gardenMeta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.meta-edit-btn {
  border: 0;
  background: var(--green2);
  color: var(--green);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.phenology-history-block {
  display: grid;
  gap: 12px;
  margin: 4px 0 2px;
}

.history-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.history-head > div {
  display: grid;
  gap: 3px;
}

.history-head small {
  display: block;
  line-height: 1.35;
}

.form-card .season-label {
  width: 94px;
  flex: 0 0 auto;
  font-size: 11px;
}

.form-card .season-label input {
  padding: 8px 9px;
}

.phenology-history-list {
  display: grid;
  gap: 7px;
}

.history-empty {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
  background: #fff;
}

.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 10px;
  background: #fff;
}

.history-row > div:first-child {
  display: grid;
  gap: 2px;
}

.history-row strong {
  font-size: 12px;
}

.history-row span {
  color: var(--muted);
  font-size: 11px;
}

.history-row-actions {
  display: flex;
  gap: 6px;
}

.history-icon-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--green);
  cursor: pointer;
}

.history-icon-btn.danger {
  color: var(--red);
}

.history-editor {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 10px;
  align-items: end;
}

.history-editor-actions {
  grid-column: 1/-1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.history-editor-actions .secondary {
  padding: 9px 12px;
  font-size: 12px;
}

@media (max-width: 640px) {
  .screen-heading {
    align-items: center;
  }

  .screen-heading-main {
    gap: 7px;
  }

  .screen-heading h2 {
    font-size: 20px;
  }

  .back-btn {
    min-width: 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    display: grid;
    place-items: center;
    font-size: 18px;
  }

  .back-text {
    display: none;
  }

  .active-garden-option {
    gap: 6px;
    padding: 7px;
  }

  .active-garden-pick {
    min-width: 0;
  }

  .active-garden-option-main {
    gap: 8px;
  }

  .active-check {
    font-size: 16px;
  }

  .active-garden-edit-mini,
  .active-garden-delete-mini {
    width: 34px;
    height: 34px;
  }

  .small-badge {
    width: 38px;
    height: 38px;
    font-size: 23px;
  }

  .history-head {
    align-items: start;
  }

  .history-head > div {
    min-width: 0;
  }

  .form-card .season-label {
    width: 82px;
  }

  .history-editor {
    grid-template-columns: 1fr;
  }

  .history-editor-actions {
    grid-column: 1;
  }

}


/* v77 — field observation and forecast validation in one daily calibration card */
.daily-verify {
  display: grid;
  gap: 13px;
  padding: 15px 16px;
  background: linear-gradient(135deg, #fff 35%, #eff8f2);
}

.daily-verify-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.daily-verify-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.verify-action {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}

.verify-action:hover {
  border-color: #9dcdb4;
  background: #f8fcf9;
}

.verify-action.completed {
  border-color: #add9bb;
  background: #edf8f1;
}

.verify-action-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--green2);
  color: var(--green);
  font-size: 17px;
  font-weight: 900;
  flex: 0 0 auto;
}

.verify-action > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.verify-action strong {
  font-size: 12px;
  line-height: 1.25;
}

.verify-action small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.2;
}

.verify-action.completed small {
  color: var(--green);
  font-weight: 800;
}

.forecast-verify-panel {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: grid;
  gap: 10px;
}

.forecast-verify-panel > strong {
  font-size: 12px;
}

.forecast-verify-panel .quick-feedback-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.forecast-verify-panel .quick-feedback-actions button {
  width: auto;
  height: auto;
  min-height: 46px;
  padding: 7px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.forecast-verify-panel .quick-feedback-actions button span {
  font-size: 17px;
}

.forecast-verify-panel .quick-feedback-actions button small {
  font-size: 10px;
  font-weight: 800;
}

.feedback-detail {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #dce8e0;
  border-radius: 12px;
  background: #fff;
}

.feedback-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.feedback-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feedback-chips button {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f7faf8;
  color: #4f6258;
  padding: 6px 8px;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.feedback-chips button.selected {
  background: var(--green2);
  border-color: #9dcdb4;
  color: var(--green);
}

@media (max-width: 520px) {
  .daily-verify {
    padding: 13px;
    gap: 11px;
  }

  .daily-verify-actions {
    grid-template-columns: 1fr;
  }

  .verify-action {
    padding: 10px 11px;
  }

  .forecast-verify-panel .quick-feedback-actions button {
    min-height: 44px;
  }

}


/* v79 — simplified harvest inputs; history stays available without crowding the form */
.advanced-history {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fafcfb;
  overflow: hidden;
}

.advanced-history > summary {
  padding: 12px 14px;
  color: #52665b;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  list-style-position: inside;
}

.advanced-history[open] > summary {
  border-bottom: 1px solid var(--border);
  background: #f2f8f4;
  color: var(--green);
}

.advanced-history .phenology-history-block {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}


/* v79.1 — compact forecast validation in Current Conditions header */
.current-title-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.header-feedback {
  position: relative;
  display: flex;
  align-items: center;
}

.forecast-feedback-info {
  appearance: none;
  border: 1px solid #cfe0d6;
  background: #eef4f0;
  color: var(--green);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.forecast-feedback-info.completed {
  background: #e1f3e7;
  border-color: #9fceb0;
  color: #17623b;
}

.header-feedback-panel {
  position: absolute;
  right: 0;
  top: 31px;
  z-index: 18;
  display: flex;
  gap: 5px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(25, 55, 38, 0.16);
}

.header-feedback-panel button {
  appearance: none;
  border: 1px solid transparent;
  background: #f5f8f6;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  font-size: 18px;
}

.header-feedback-panel button:hover {
  background: #edf6f0;
  border-color: #c5dfce;
}

.header-feedback-panel button.selected {
  background: #e2f4e8;
  border-color: #97c9a8;
}

@media (max-width: 640px) {
  .current-section-title {
    align-items: center;
  }

  .current-title-actions {
    gap: 6px;
  }

  #currentUpdated {
    font-size: 10px;
    white-space: nowrap;
  }

  .current-metrics .metric-humidity {
    order: 1;
  }

  .current-metrics .metric-rainToday {
    order: 2;
  }

  .current-metrics .metric-wind {
    order: 3;
  }

  .current-metrics .metric-gust {
    order: 4;
  }

}


/* v82 - visible forecast validation, clickable brand, help disclaimer */
.brand-block[role="button"] {
  cursor: pointer;
  border-radius: 14px;
  outline: none;
}

.brand-block[role="button"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(31, 122, 77, 0.18);
}

.header-feedback {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.quick-feedback-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.quick-feedback-icon {
  appearance: none;
  border: 1px solid transparent;
  background: #f5f8f6;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}

.quick-feedback-icon:hover {
  background: #edf6f0;
  border-color: #c5dfce;
}

.quick-feedback-icon.selected {
  background: #e2f4e8;
  border-color: #97c9a8;
  box-shadow: inset 0 0 0 1px rgba(31, 122, 77, 0.08);
}

.feedback-info {
  margin-left: 1px;
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .current-title-actions {
    gap: 5px;
    min-width: 0;
  }

  .quick-feedback-icons {
    gap: 2px;
  }

  .quick-feedback-icon {
    width: 29px;
    height: 29px;
    font-size: 15px;
  }

  .feedback-info {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

}


/* V83 forecast correction dialog */
.feedback-correction-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.feedback-correction-form label {
  display: grid;
  gap: 6px;
}

.feedback-correction-form label span {
  font-weight: 700;
}

.feedback-correction-form input {
  width: 100%;
}

.feedback-correction-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.form-error {
  font-size: 0.9rem;
  color: #a52828;
  font-weight: 700;
}

@media (max-width: 640px) {
  .feedback-correction-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .feedback-correction-actions button {
    width: 100%;
  }

}


/* V84 — current gauges fit their cards; observation criteria moved into validation dialog */
.current-metrics .metric-card {
  overflow: hidden;
  min-width: 0;
}

.current-metrics .metric-card-body {
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 4px;
  min-width: 0;
}

.current-metrics .metric-copy {
  min-width: 0;
}

.current-metrics .metric-dial {
  width: 92px;
  max-width: 100%;
  justify-self: end;
  overflow: hidden;
}

.current-metrics .metric-dial-svg {
  width: 92px;
  height: 58px;
  max-width: 100%;
}

.current-metrics .metric-dial-label {
  font-size: 12px;
}

.feedback-correction-form .feedback-exposure {
  max-width: 280px;
}

.feedback-correction-form select {
  width: 100%;
}

@media (max-width: 860px) {
  .current-metrics .metric-card-body {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 3px;
  }

  .current-metrics .metric-dial,
  .current-metrics .metric-dial-svg {
    width: 88px;
  }

}

@media (max-width: 640px) {
  .current-metrics .metric-card-body {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .current-metrics .metric-dial {
    width: 92px;
    justify-self: center;
  }

  .current-metrics .metric-dial-svg {
    width: 92px;
    height: 58px;
  }

}


/* V86 — mobile live badge placement */
.current-temp-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-pill-mobile {
  display: none;
}

.live-pill-desktop {
  display: inline-flex;
}

@media (max-width: 640px) {
  .live-pill-mobile {
    display: inline-flex;
    align-self: center;
    white-space: nowrap;
  }

  .live-pill-desktop {
    display: none;
  }

  .current-temp-line {
    justify-content: flex-start;
    gap: 10px;
  }

  .live-pill {
    grid-column: auto;
    justify-self: auto;
  }

}


/* V88 — mobile Live badge locked beside primary temperature */
@media (max-width: 640px) {
  .current-temp-line {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: max-content !important;
    max-width: 100%;
  }

  .current-temp-line .live-pill-mobile {
    display: inline-flex !important;
    align-items: center !important;
    position: static !important;
    grid-column: auto !important;
    justify-self: auto !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  .current-main > .live-pill-desktop {
    display: none !important;
  }

}


/* V89 — mobile/tablet live badge fixed immediately beside temperature */
@media (max-width: 860px) {
  .current-temp-line {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: auto !important;
    max-width: 100% !important;
    flex-wrap: nowrap !important;
  }

  .current-temp-line .live-pill-mobile {
    display: inline-flex !important;
    align-items: center !important;
    position: static !important;
    grid-column: auto !important;
    justify-self: auto !important;
    margin: 0 !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
  }

  .current-main > .live-pill-desktop {
    display: none !important;
  }

}


.preview-location-btn {
  width: 100%;
  margin-top: 12px;
  border-color: #287b58;
  color: #185f42;
}

.temporary-location-note {
  margin: 8px 10px;
  padding: 10px;
  border-radius: 12px;
  background: #eef8f2;
  display: grid;
  gap: 5px;
}

.temporary-location-note small {
  color: var(--muted);
}

/* V97 Lite Weather — V91 visual language preserved */
.lite-onboarding {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(160deg, #eff8f2 0%, #f9fbfa 55%, #edf6f1 100%);
  display: grid;
  place-items: center;
  padding: 22px;
  font-family: inherit;
}

.lite-onboarding.hidden {
  display: none !important;
}

.lite-onboarding-card {
  width: min(620px, 100%);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #dce9e1;
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 28px 80px rgba(27, 72, 47, 0.18);
}

.lite-brand-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
}

.lite-logo {
  width: 150px;
  height: 92px;
  object-fit: contain;
  border-radius: 0;
}

.lite-brand-row > div {
  display: flex;
  flex-direction: column;
}

.lite-brand-row strong {
  font-size: 22px;
  color: #163326;
}

.lite-brand-row span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #278254;
  font-weight: 900;
}

.lite-onboarding h2 {
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
  color: #142c21;
}

.lite-intro {
  font-size: 16px;
  line-height: 1.55;
  color: #64766d;
  margin: 0 0 24px;
  max-width: 520px;
}

.lite-choice-grid {
  display: grid;
  gap: 12px;
}

.lite-choice {
  appearance: none;
  width: 100%;
  border: 1px solid #dce8e0;
  background: #fff;
  border-radius: 20px;
  padding: 17px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 13px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 7px 20px rgba(22, 63, 41, 0.05);
}

.lite-choice-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #eff8f2;
  display: grid;
  place-items: center;
  font-size: 25px;
}

.lite-choice strong {
  display: block;
  font-size: 17px;
  color: #183227;
  margin-bottom: 3px;
}

.lite-choice small {
  display: block;
  color: #728078;
  font-size: 13px;
}

.lite-choice b {
  font-size: 29px;
  color: #25784d;
  font-weight: 500;
}

.lite-top-badge {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #e7f6ec;
  color: #177346;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.09em;
  border: 1px solid #c7e7d2;
}

.lite-top-badge.pro {
  background: linear-gradient(135deg, #173d2a, #287d50);
  border-color: #173d2a;
  color: #fff;
}

body.weather-mode:not(.agri-mode-on) #todayInGarden,
body.weather-mode:not(.agri-mode-on) #harvestForecastWrap,
body.weather-mode:not(.agri-mode-on) #decisionGrid,
body.weather-mode:not(.agri-mode-on) #cropDiseaseWrap {
  display: none !important;
}

body.weather-mode:not(.agri-mode-on) .section-title:has([data-i18n="decisions"]) {
  display: none !important;
}

body.weather-mode #forecastGrid .foliar-compact {
  display: none !important;
}

body.weather-mode .weather-plain-summary {
  display: block !important;
  margin-top: 14px;
  background: linear-gradient(135deg, #f8fcf9, #eef7f1);
}

.weather-plain-summary h3 {
  margin: 3px 0 7px;
}

.weather-plain-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

body.weather-mode .weather-hidden-field {
  display: none !important;
}

body.weather-mode #mapDragHint {
  font-size: 12px;
}

body.weather-mode .form-card {
  max-width: 820px;
  margin-inline: auto;
}

body.weather-mode .bottom-nav button[data-nav="garden"] span {
  font-size: 0;
}

body.weather-mode .bottom-nav button[data-nav="garden"] span:after {
  content: "Konum";
  font-size: 12px;
}

@media (max-width: 640px) {
  .lite-onboarding {
    padding: 12px;
  }

  .lite-onboarding-card {
    padding: 22px;
    border-radius: 24px;
  }

  .lite-onboarding h2 {
    font-size: 31px;
  }

  .lite-choice {
    grid-template-columns: 42px 1fr auto;
    padding: 14px;
  }

  .lite-choice-icon {
    width: 40px;
    height: 40px;
  }

  .current-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .mini-gauge-grid {
    grid-template-columns: 1fr !important;
  }

}


/* Lite Weather V4 — weather-only cleanup */
body.weather-mode .current-metrics .wind-direction-card {
  order: 4;
}

body.weather-mode .current-metrics .metric-gust {
  order: 5;
}

@media (max-width: 640px) {
  body.weather-mode .current-metrics .metric-humidity {
    order: 1;
  }

  body.weather-mode .current-metrics .metric-rainToday {
    order: 2;
  }

  body.weather-mode .current-metrics .metric-wind {
    order: 3;
  }

  body.weather-mode .current-metrics .wind-direction-card {
    order: 4;
  }

  body.weather-mode .current-metrics .metric-gust {
    order: 5;
  }

}


/* V99 — restored Lite onboarding flow */
.lite-onboarding {
  padding: 0;
  background: #eef5f0;
  display: block;
  overflow: auto;
}

.lite-step {
  display: none;
  min-height: 100dvh;
}

.lite-step.active {
  display: flex;
}

.lite-step-splash {
  position: relative;
  flex-direction: column;
  padding: clamp(28px, 5vw, 56px);
  color: #fff;
  background: linear-gradient(
      180deg,
      rgba(10, 42, 27, 0.08),
      rgba(6, 41, 24, 0.12) 35%,
      rgba(5, 35, 20, 0.86) 100%
    ),
    radial-gradient(
      circle at 72% 22%,
      rgba(255, 226, 145, 0.9) 0 6%,
      rgba(255, 226, 145, 0.12) 25%,
      transparent 45%
    ),
    linear-gradient(145deg, #b9d9d1 0%, #8fbea5 38%, #47795b 66%, #153d2a 100%);
  overflow: hidden;
}

.lite-step-splash:before,
.lite-step-splash:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.45;
  pointer-events: none;
}

.lite-step-splash:before {
  width: 48vw;
  height: 48vw;
  min-width: 280px;
  min-height: 280px;
  left: -18vw;
  top: 18vh;
  background: radial-gradient(circle, #1f6f46 0 25%, transparent 26%),
    radial-gradient(circle at 70% 40%, #84b769 0 22%, transparent 23%);
}

.lite-step-splash:after {
  width: 58vw;
  height: 34vw;
  right: -12vw;
  bottom: 13vh;
  background: radial-gradient(ellipse, #24583d 0 36%, transparent 38%),
    radial-gradient(ellipse at 20% 70%, #6d9e57 0 30%, transparent 31%);
}

.lite-splash-brand,
.lite-splash-copy {
  position: relative;
  z-index: 2;
}

.lite-splash-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
}

.lite-splash-logo {
  display: block;
  width: clamp(132px, 24vw, 190px);
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.lite-splash-brand > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lite-splash-brand strong {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  color: #fff;
}

.lite-splash-brand span {
  font-size: 10px;
  letter-spacing: 0.28em;
  font-weight: 800;
  margin-top: 5px;
}

.lite-splash-spacer {
  flex: 1;
  min-height: 180px;
}

.lite-splash-copy {
  max-width: 560px;
}

.lite-splash-copy h2 {
  color: #fff;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 0.98;
  margin: 0 0 18px;
  letter-spacing: -0.045em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.2);
}

.lite-splash-copy p {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
}

.lite-start-btn {
  width: min(380px, 100%);
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #159147, #42b859);
  color: #fff;
  padding: 17px 26px;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: center;
  box-shadow: 0 14px 35px rgba(8, 75, 37, 0.3);
  cursor: pointer;
}

.lite-start-btn b {
  font-size: 24px;
}

.lite-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  width: min(380px, 100%);
  margin-top: 18px;
}

.lite-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.lite-dots i.active {
  background: #fff;
}


.logo-text-fallback {
  display: none !important;
}

.brand-logo.terrasky-wordmark {
  width: 86px;
  height: 116px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  object-fit: contain;
}

.lite-step-purpose {
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(160deg, #f6f8f6, #edf4ef);
}

.lite-purpose-card {
  position: relative;
  width: min(650px, 100%);
  background: #fff;
  border-radius: 30px;
  padding: 34px;
  box-shadow: 0 26px 70px rgba(27, 72, 47, 0.14);
  border: 1px solid #e1ebe4;
}

.lite-skip {
  position: absolute;
  right: 26px;
  top: 26px;
  border: 0;
  background: transparent;
  color: #67766e;
  font-weight: 700;
  cursor: pointer;
}

.lite-purpose-card h2 {
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.02;
  margin: 8px 0 12px;
  color: #142b21;
}

.lite-purpose-note {
  margin-top: 18px;
  border-radius: 16px;
  background: #f1f6f2;
  padding: 14px 16px;
  color: #52675b;
  font-size: 13px;
  line-height: 1.4;
}

.lite-choice-icon.weather {
  background: #edf7ff;
}

.lite-choice-icon.pro {
  background: #fff7e8;
}

@media (min-width: 850px) {
  .lite-step-splash {
    max-width: 560px;
    margin: 0 auto;
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.12);
  }

}

@media (max-width: 640px) {
  .lite-step-splash {
    padding: 28px 24px 24px;
  }

  .lite-splash-logo {
    width: 138px;
    height: auto;
  }

  .lite-splash-brand {
    gap: 11px;
  }

  .lite-splash-brand strong {
    font-size: 28px;
  }

  .lite-splash-brand span {
    font-size: 9px;
    letter-spacing: 0.2em;
  }

  .lite-splash-spacer {
    min-height: 28vh;
  }

  .lite-step-purpose {
    padding: 0;
  }

  .lite-purpose-card {
    min-height: 100dvh;
    border-radius: 0;
    padding: 28px 22px 24px;
    box-shadow: none;
  }

  .lite-purpose-card h2 {
    font-size: 34px;
    margin-top: 24px;
  }

  .lite-brand-row {
    padding-right: 56px;
  }

  .lite-choice {
    border-radius: 18px;
    padding: 15px 14px;
  }

  .lite-purpose-note {
    margin-top: 16px;
  }

  .brand-logo.terrasky-wordmark {
    width: 80px;
    height: 108px;
  }

}


/* V100 — direct choice page + location-first flow */
.lite-purpose-direct {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lite-purpose-compact-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.lite-mini-kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4d6859;
  font-weight: 800;
}

.lite-intro.compact {
  margin: 0;
  max-width: none;
}

.direct-grid {
  gap: 14px;
}

.lite-choice.direct {
  padding: 18px 18px;
  border-radius: 22px;
  min-height: 92px;
}

.lite-choice.direct strong {
  font-size: 18px;
}

.lite-choice.direct small {
  font-size: 13px;
  line-height: 1.45;
}

.screen-flow-intro {
  margin: -4px 0 14px;
  padding: 0 2px;
  line-height: 1.45;
}

.weather-mode .screen-flow-intro {
  display: block;
}

@media (max-width: 640px) {
  .lite-purpose-direct {
    min-height: 100dvh;
  }

  .lite-choice.direct {
    padding: 16px 14px;
    min-height: 88px;
  }

  .screen-flow-intro {
    margin: 0 0 12px;
  }

}


/* V101 weather-only simplification: hide agricultural dryness/VPD UI */
.weather-mode [data-info="dryness"],
.weather-mode .dryness-card,
.weather-mode .vpd-card,
.weather-mode .current-vpd,
.weather-mode .vpd-gauge,
.weather-mode .forecast-vpd-strip,
.weather-mode .vpd-legend,
.weather-mode .forecast-vpd-legend {
  display: none !important;
}


/* V102 — forecast validation remains available in plain weather mode */
body.weather-mode #quickFeedback:not(.hidden) {
  display: flex !important;
  align-items: center;
}

body.weather-mode #quickFeedback .quick-feedback-icons {
  display: flex;
  gap: 5px;
}


/* V103 — plain-weather contextual day comment */
body.weather-mode .weather-plain-summary {
  border-left: 4px solid #2f8b57;
}

body.weather-mode .weather-plain-summary .eyebrow {
  letter-spacing: 0.08em;
  font-weight: 800;
}

body.weather-mode #weatherSummaryTitle {
  margin-top: 4px;
}


/* V118 — fixed TerraSky weather scene set, visibly mounted on comment card */
body.weather-mode .weather-plain-summary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 150px;
  padding: 24px 28px;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  background: #f7fbf8 !important;
  border-left: 0 !important;
}

body.weather-mode .weather-plain-summary > * {
  position: relative;
  z-index: 3;
  max-width: 68%;
}

body.weather-mode .weather-plain-summary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.46;
  transition:
    opacity 0.25s ease,
    filter 0.25s ease;
}

body.weather-mode .weather-plain-summary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.83) 45%,
    rgba(255, 255, 255, 0.4) 72%,
    rgba(255, 255, 255, 0.1) 100%
  );
  pointer-events: none;
}

/* Day */
body.weather-mode
  .weather-plain-summary[data-time-theme="day"][data-weather-art="clear"]::before {
  background-image: url("./weather-art/day-clear.svg");
}

body.weather-mode
  .weather-plain-summary[data-time-theme="day"][data-weather-art="partly"]::before {
  background-image: url("./weather-art/day-partly.svg");
}

body.weather-mode
  .weather-plain-summary[data-time-theme="day"][data-weather-art="cloudy"]::before {
  background-image: url("./weather-art/day-cloudy.svg");
}

body.weather-mode
  .weather-plain-summary[data-time-theme="day"][data-weather-art="rain"]::before {
  background-image: url("./weather-art/day-rain.svg");
}

body.weather-mode
  .weather-plain-summary[data-time-theme="day"][data-weather-art="storm"]::before {
  background-image: url("./weather-art/day-storm.svg");
}

body.weather-mode
  .weather-plain-summary[data-time-theme="day"][data-weather-art="wind"]::before {
  background-image: url("./weather-art/day-wind.svg");
}

body.weather-mode
  .weather-plain-summary[data-time-theme="day"][data-weather-art="fog"]::before {
  background-image: url("./weather-art/day-fog.svg");
}

body.weather-mode
  .weather-plain-summary[data-time-theme="day"][data-weather-art="snow"]::before {
  background-image: url("./weather-art/day-snow.svg");
}

/* Night */
body.weather-mode
  .weather-plain-summary[data-time-theme="night"][data-weather-art="clear"]::before {
  background-image: url("./weather-art/night-clear.svg");
}

body.weather-mode
  .weather-plain-summary[data-time-theme="night"][data-weather-art="partly"]::before {
  background-image: url("./weather-art/night-partly.svg");
}

body.weather-mode
  .weather-plain-summary[data-time-theme="night"][data-weather-art="cloudy"]::before {
  background-image: url("./weather-art/night-cloudy.svg");
}

body.weather-mode
  .weather-plain-summary[data-time-theme="night"][data-weather-art="rain"]::before {
  background-image: url("./weather-art/night-rain.svg");
}

body.weather-mode
  .weather-plain-summary[data-time-theme="night"][data-weather-art="storm"]::before {
  background-image: url("./weather-art/night-storm.svg");
}

body.weather-mode
  .weather-plain-summary[data-time-theme="night"][data-weather-art="wind"]::before {
  background-image: url("./weather-art/night-wind.svg");
}

body.weather-mode
  .weather-plain-summary[data-time-theme="night"][data-weather-art="fog"]::before {
  background-image: url("./weather-art/night-fog.svg");
}

body.weather-mode
  .weather-plain-summary[data-time-theme="night"][data-weather-art="snow"]::before {
  background-image: url("./weather-art/night-snow.svg");
}

/* Sunset is intentionally available only for clear / partly-cloudy conditions. */
body.weather-mode
  .weather-plain-summary[data-time-theme="sunset"][data-weather-art="clear"]::before {
  background-image: url("./weather-art/sunset-clear.svg");
}

body.weather-mode
  .weather-plain-summary[data-time-theme="sunset"][data-weather-art="partly"]::before {
  background-image: url("./weather-art/sunset-partly.svg");
}

body.weather-mode .weather-plain-summary[data-time-theme="sunset"]::after {
  background: linear-gradient(
    90deg,
    rgba(255, 251, 245, 0.93) 0%,
    rgba(255, 239, 222, 0.78) 45%,
    rgba(246, 173, 121, 0.3) 75%,
    rgba(236, 125, 88, 0.08) 100%
  );
}

body.weather-mode .weather-plain-summary[data-time-theme="night"]::after {
  background: linear-gradient(
    90deg,
    rgba(249, 251, 254, 0.95) 0%,
    rgba(239, 244, 250, 0.84) 46%,
    rgba(128, 149, 176, 0.34) 78%,
    rgba(38, 58, 88, 0.1) 100%
  );
}

body.weather-mode #weatherSummaryTitle {
  margin: 0 0 8px;
  font-size: clamp(21px, 3vw, 27px);
}

body.weather-mode #weatherSummaryText {
  font-size: 14px;
  line-height: 1.55;
  color: #38493f;
  margin: 0;
}

@media (max-width: 640px) {
  body.weather-mode .weather-plain-summary {
    min-height: 162px;
    padding: 20px 18px;
    border-radius: 18px;
  }

  body.weather-mode .weather-plain-summary > * {
    max-width: 82%;
  }

  body.weather-mode .weather-plain-summary::before {
    background-position: 64% center;
    opacity: 0.42;
  }

  body.weather-mode .weather-plain-summary::after {
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.88) 55%,
      rgba(255, 255, 255, 0.48) 82%,
      rgba(255, 255, 255, 0.14) 100%
    );
  }

  body.weather-mode .weather-plain-summary[data-time-theme="sunset"]::after {
    background: linear-gradient(
      90deg,
      rgba(255, 251, 245, 0.96) 0%,
      rgba(255, 239, 222, 0.86) 55%,
      rgba(246, 173, 121, 0.38) 84%,
      rgba(236, 125, 88, 0.12) 100%
    );
  }

  body.weather-mode .weather-plain-summary[data-time-theme="night"]::after {
    background: linear-gradient(
      90deg,
      rgba(249, 251, 254, 0.96) 0%,
      rgba(239, 244, 250, 0.89) 55%,
      rgba(128, 149, 176, 0.42) 84%,
      rgba(38, 58, 88, 0.14) 100%
    );
  }

  body.weather-mode #weatherSummaryTitle {
    font-size: 21px;
  }

  body.weather-mode #weatherSummaryText {
    font-size: 13.5px;
  }

}


/* V119 — stronger weather art, white comment copy */
body.weather-mode .weather-plain-summary {
  background: #1f2f38 !important;
  color: #fff;
}

body.weather-mode .weather-plain-summary::before {
  opacity: 0.66 !important;
  filter: saturate(1.12) contrast(1.08) brightness(0.78);
  background-position: center;
}

body.weather-mode .weather-plain-summary::after {
  background: linear-gradient(
    90deg,
    rgba(10, 18, 22, 0.78) 0%,
    rgba(10, 18, 22, 0.6) 44%,
    rgba(10, 18, 22, 0.3) 72%,
    rgba(10, 18, 22, 0.1) 100%
  ) !important;
}

body.weather-mode .weather-plain-summary[data-time-theme="sunset"]::before {
  opacity: 0.68 !important;
  filter: saturate(1.15) contrast(1.06) brightness(0.82) sepia(0.1);
}

body.weather-mode .weather-plain-summary[data-time-theme="sunset"]::after {
  background: linear-gradient(
    90deg,
    rgba(43, 20, 18, 0.76) 0%,
    rgba(58, 29, 22, 0.55) 45%,
    rgba(109, 53, 31, 0.26) 74%,
    rgba(150, 78, 40, 0.1) 100%
  ) !important;
}

body.weather-mode .weather-plain-summary[data-time-theme="night"]::before {
  opacity: 0.62 !important;
  filter: saturate(1.05) contrast(1.1) brightness(0.6);
}

body.weather-mode .weather-plain-summary[data-time-theme="night"]::after {
  background: linear-gradient(
    90deg,
    rgba(7, 13, 25, 0.82) 0%,
    rgba(12, 24, 40, 0.66) 46%,
    rgba(18, 39, 62, 0.34) 74%,
    rgba(24, 48, 72, 0.12) 100%
  ) !important;
}

body.weather-mode #weatherSummaryTitle {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}

body.weather-mode #weatherSummaryText {
  color: rgba(255, 255, 255, 0.94) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}

@media (max-width: 640px) {
  body.weather-mode .weather-plain-summary::before {
    opacity: 0.22 !important;
    background-position: 68% center;
  }

  body.weather-mode .weather-plain-summary::after {
    background: linear-gradient(
      90deg,
      rgba(10, 18, 22, 0.84) 0%,
      rgba(10, 18, 22, 0.69) 52%,
      rgba(10, 18, 22, 0.38) 78%,
      rgba(10, 18, 22, 0.14) 100%
    ) !important;
  }

  body.weather-mode .weather-plain-summary[data-time-theme="sunset"]::before {
    opacity: 0.58 !important;
  }

  body.weather-mode .weather-plain-summary[data-time-theme="night"]::before {
    opacity: 0.2 !important;
  }

}


/* V120 simple weather art set */
body.weather-mode .weather-plain-summary {
  background: #20313b !important;
  color: #fff;
}

body.weather-mode .weather-plain-summary::before {
  opacity: 0.54 !important;
  filter: none !important;
  background-size: cover !important;
  background-position: center !important;
}

body.weather-mode .weather-plain-summary::after {
  background: linear-gradient(
    90deg,
    rgba(15, 24, 30, 0.76) 0%,
    rgba(15, 24, 30, 0.58) 43%,
    rgba(15, 24, 30, 0.28) 72%,
    rgba(15, 24, 30, 0.08) 100%
  ) !important;
}

body.weather-mode #weatherSummaryTitle {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

body.weather-mode #weatherSummaryText {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

body.weather-mode
  .weather-plain-summary[data-time-theme="day"][data-weather-art="clear"]::before {
  background-image: url("./weather-art/clear.svg") !important;
}

body.weather-mode
  .weather-plain-summary[data-time-theme="night"][data-weather-art="clear"]::before {
  background-image: url("./weather-art/clear-night.svg") !important;
}

body.weather-mode
  .weather-plain-summary[data-time-theme="day"][data-weather-art="partly"]::before {
  background-image: url("./weather-art/partly.svg") !important;
}

body.weather-mode
  .weather-plain-summary[data-time-theme="night"][data-weather-art="partly"]::before {
  background-image: url("./weather-art/partly-night.svg") !important;
}

body.weather-mode
  .weather-plain-summary[data-time-theme="day"][data-weather-art="cloudy"]::before {
  background-image: url("./weather-art/cloudy.svg") !important;
}

body.weather-mode
  .weather-plain-summary[data-time-theme="night"][data-weather-art="cloudy"]::before {
  background-image: url("./weather-art/cloudy-night.svg") !important;
}

body.weather-mode
  .weather-plain-summary[data-time-theme="day"][data-weather-art="rain"]::before {
  background-image: url("./weather-art/rain.svg") !important;
}

body.weather-mode
  .weather-plain-summary[data-time-theme="night"][data-weather-art="rain"]::before {
  background-image: url("./weather-art/rain-night.svg") !important;
}

body.weather-mode
  .weather-plain-summary[data-time-theme="day"][data-weather-art="storm"]::before {
  background-image: url("./weather-art/storm.svg") !important;
}

body.weather-mode
  .weather-plain-summary[data-time-theme="night"][data-weather-art="storm"]::before {
  background-image: url("./weather-art/storm-night.svg") !important;
}

body.weather-mode
  .weather-plain-summary[data-time-theme="day"][data-weather-art="wind"]::before {
  background-image: url("./weather-art/wind.svg?v=v60r8") !important;
}

body.weather-mode
  .weather-plain-summary[data-time-theme="night"][data-weather-art="wind"]::before {
  background-image: url("./weather-art/wind-night.svg?v=v60r8") !important;
}

body.weather-mode
  .weather-plain-summary[data-time-theme="day"][data-weather-art="fog"]::before {
  background-image: url("./weather-art/fog.svg") !important;
}

body.weather-mode
  .weather-plain-summary[data-time-theme="night"][data-weather-art="fog"]::before {
  background-image: url("./weather-art/fog-night.svg") !important;
}

body.weather-mode
  .weather-plain-summary[data-time-theme="day"][data-weather-art="snow"]::before {
  background-image: url("./weather-art/snow.svg") !important;
}

body.weather-mode
  .weather-plain-summary[data-time-theme="night"][data-weather-art="snow"]::before {
  background-image: url("./weather-art/snow-night.svg") !important;
}

body.weather-mode
  .weather-plain-summary[data-time-theme="sunset"][data-weather-art="clear"]::before {
  background-image: url("./weather-art/clear-sunset.svg") !important;
  opacity: 0.56 !important;
}

body.weather-mode
  .weather-plain-summary[data-time-theme="sunset"][data-weather-art="partly"]::before {
  background-image: url("./weather-art/partly-sunset.svg") !important;
  opacity: 0.56 !important;
}

body.weather-mode
  .weather-plain-summary[data-time-theme="sunset"][data-weather-art="cloudy"]::before {
  background-image: url("./weather-art/cloudy.svg") !important;
}

body.weather-mode
  .weather-plain-summary[data-time-theme="sunset"][data-weather-art="rain"]::before {
  background-image: url("./weather-art/rain.svg") !important;
}

body.weather-mode
  .weather-plain-summary[data-time-theme="sunset"][data-weather-art="storm"]::before {
  background-image: url("./weather-art/storm.svg") !important;
}

body.weather-mode
  .weather-plain-summary[data-time-theme="sunset"][data-weather-art="wind"]::before {
  background-image: url("./weather-art/wind.svg?v=v60r8") !important;
}

body.weather-mode
  .weather-plain-summary[data-time-theme="sunset"][data-weather-art="fog"]::before {
  background-image: url("./weather-art/fog.svg") !important;
}

body.weather-mode
  .weather-plain-summary[data-time-theme="sunset"][data-weather-art="snow"]::before {
  background-image: url("./weather-art/snow.svg") !important;
}

body.weather-mode .weather-plain-summary[data-time-theme="sunset"]::after {
  background: linear-gradient(
    90deg,
    rgba(45, 22, 17, 0.72) 0%,
    rgba(61, 31, 23, 0.52) 43%,
    rgba(105, 53, 30, 0.24) 72%,
    rgba(155, 83, 43, 0.07) 100%
  ) !important;
}

@media (max-width: 640px) {
  body.weather-mode .weather-plain-summary::before {
    opacity: 0.48 !important;
    background-position: 66% center !important;
  }

  body.weather-mode .weather-plain-summary[data-time-theme="sunset"]::before {
    opacity: 0.5 !important;
  }

}


/* V123 — very light background artwork */
body.weather-mode .weather-plain-summary::before {
  opacity: 0.11 !important;
}

body.weather-mode .weather-plain-summary::after {
  background: linear-gradient(
    90deg,
    rgba(15, 24, 30, 0.5) 0%,
    rgba(15, 24, 30, 0.34) 45%,
    rgba(15, 24, 30, 0.15) 74%,
    rgba(15, 24, 30, 0.04) 100%
  ) !important;
}

body.weather-mode .weather-plain-summary[data-time-theme="sunset"]::before {
  opacity: 0.12 !important;
}

body.weather-mode .weather-plain-summary[data-time-theme="sunset"]::after {
  background: linear-gradient(
    90deg,
    rgba(45, 22, 17, 0.46) 0%,
    rgba(61, 31, 23, 0.3) 45%,
    rgba(105, 53, 30, 0.13) 74%,
    rgba(155, 83, 43, 0.04) 100%
  ) !important;
}

body.weather-mode .weather-plain-summary[data-time-theme="night"]::before {
  opacity: 0.1 !important;
}

body.weather-mode .weather-plain-summary[data-time-theme="night"]::after {
  background: linear-gradient(
    90deg,
    rgba(7, 13, 25, 0.54) 0%,
    rgba(12, 24, 40, 0.36) 46%,
    rgba(18, 39, 62, 0.16) 74%,
    rgba(24, 48, 72, 0.05) 100%
  ) !important;
}

@media (max-width: 640px) {
  body.weather-mode .weather-plain-summary::before {
    opacity: 0.09 !important;
  }

  body.weather-mode .weather-plain-summary[data-time-theme="sunset"]::before {
    opacity: 0.1 !important;
  }

  body.weather-mode .weather-plain-summary[data-time-theme="night"]::before {
    opacity: 0.08 !important;
  }

  body.weather-mode .weather-plain-summary::after {
    background: linear-gradient(
      90deg,
      rgba(15, 24, 30, 0.56) 0%,
      rgba(15, 24, 30, 0.4) 54%,
      rgba(15, 24, 30, 0.18) 80%,
      rgba(15, 24, 30, 0.05) 100%
    ) !important;
  }

}


/* V124 — light card base + 30% artwork */
body.weather-mode .weather-plain-summary {
  background: linear-gradient(135deg, #fbfcfb 0%, #f1f4f2 100%) !important;
  color: #17231d !important;
}

body.weather-mode .weather-plain-summary::before {
  opacity: 0.36 !important;
  filter: none !important;
}

body.weather-mode .weather-plain-summary::after {
  background: linear-gradient(
    90deg,
    rgba(250, 252, 251, 0.92) 0%,
    rgba(246, 249, 247, 0.76) 42%,
    rgba(242, 246, 244, 0.42) 72%,
    rgba(242, 246, 244, 0.12) 100%
  ) !important;
}

body.weather-mode .weather-plain-summary[data-time-theme="sunset"]::before,
body.weather-mode .weather-plain-summary[data-time-theme="night"]::before {
  opacity: 0.36 !important;
}

body.weather-mode .weather-plain-summary[data-time-theme="sunset"]::after,
body.weather-mode .weather-plain-summary[data-time-theme="night"]::after {
  background: linear-gradient(
    90deg,
    rgba(250, 252, 251, 0.92) 0%,
    rgba(246, 249, 247, 0.76) 42%,
    rgba(242, 246, 244, 0.42) 72%,
    rgba(242, 246, 244, 0.12) 100%
  ) !important;
}

body.weather-mode #weatherSummaryTitle {
  color: #17231d !important;
  text-shadow: none !important;
}

body.weather-mode #weatherSummaryText {
  color: #415048 !important;
  text-shadow: none !important;
}

@media (max-width: 640px) {
  body.weather-mode .weather-plain-summary::before,
  body.weather-mode .weather-plain-summary[data-time-theme="sunset"]::before,
  body.weather-mode .weather-plain-summary[data-time-theme="night"]::before {
    opacity: 0.36 !important;
  }

  body.weather-mode .weather-plain-summary::after,
  body.weather-mode .weather-plain-summary[data-time-theme="sunset"]::after,
  body.weather-mode .weather-plain-summary[data-time-theme="night"]::after {
    background: linear-gradient(
      90deg,
      rgba(250, 252, 251, 0.95) 0%,
      rgba(246, 249, 247, 0.82) 56%,
      rgba(242, 246, 244, 0.5) 80%,
      rgba(242, 246, 244, 0.16) 100%
    ) !important;
  }

}


/* V126 — 10-year historical climate reference */
.climate-compare {
  margin-top: 14px;
  padding: 18px 20px;
  background: linear-gradient(145deg, #fbfcfb, #f2f5f3);
  border: 1px solid #dfe7e2;
  box-shadow: 0 8px 24px rgba(30, 58, 43, 0.05);
}

.climate-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.climate-head h3 {
  margin: 3px 0 0;
  color: #1d3127;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.climate-source {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 9px;
  background: #e8f2ec;
  color: #2e6748;
  font-size: 10px;
  font-weight: 900;
  border: 1px solid #d2e4d9;
}

.climate-lead {
  margin: 10px 0 14px;
  color: #63756b;
  font-size: 13px;
  line-height: 1.45;
}

.climate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.climate-stat {
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #e2e9e5;
  display: grid;
  gap: 3px;
}

.climate-stat span {
  font-size: 10px;
  font-weight: 850;
  color: #667970;
}

.climate-stat strong {
  font-size: 18px;
  line-height: 1.15;
  color: #21372c;
}

.climate-stat strong.warm {
  color: #bb5e30;
}

.climate-stat strong.cool {
  color: #3977a5;
}

.climate-stat strong.neutral {
  color: #2d6f4c;
}

.climate-stat small {
  font-size: 9px;
  line-height: 1.3;
  color: #8a9890;
}

.climate-foot {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #e2e9e5;
  color: #718078;
  font-size: 10px;
  line-height: 1.4;
}

.climate-compare.loading .climate-stat strong {
  opacity: 0.45;
}

@media (max-width: 640px) {
  .climate-compare {
    padding: 15px 14px;
    border-radius: 18px;
  }

  .climate-head h3 {
    font-size: 18px;
  }

  .climate-source {
    font-size: 9px;
    padding: 5px 8px;
  }

  .climate-lead {
    font-size: 12px;
    margin: 8px 0 11px;
  }

  .climate-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .climate-stat {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 10px 11px;
  }

  .climate-stat span {
    font-size: 10px;
  }

  .climate-stat strong {
    font-size: 16px;
    text-align: right;
  }

  .climate-stat small {
    grid-column: 1/-1;
  }

  .climate-foot {
    font-size: 9.5px;
  }

}


.forecast-interactive-wrap {
  position: relative;
}

.forecast-tooltip {
  position: absolute;
  left: 12px;
  top: 10px;
  z-index: 6;
  background: rgba(24, 33, 28, 0.92);
  color: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  display: grid;
  gap: 2px;
  min-width: 132px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-3px);
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
}

.forecast-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.forecast-tooltip strong {
  font-size: 12px;
  font-weight: 900;
}

.forecast-tooltip span {
  font-size: 12px;
}

.fc-hover-line {
  stroke: #6b7d74;
  stroke-width: 1.3;
  stroke-dasharray: 4 4;
  opacity: 0.8;
}

.fc-hover-temp-dot {
  fill: #fff;
  stroke: #d94b3c;
  stroke-width: 2.4;
}

.fc-hover-hum-dot {
  fill: #fff;
  stroke: #2f6fb1;
  stroke-width: 2.2;
}


.forecast-status-inline {
  font-size: 12px;
  font-weight: 700;
  color: #5a6d63;
  display: inline;
  white-space: nowrap;
  margin-left: 2px;
}

.fc-day-divider {
  stroke: #c8d5ce;
  stroke-width: 1.8;
  stroke-dasharray: 0;
}

@media (max-width: 640px) {
  .forecast-status-inline {
    display: inline !important;
    margin-left: 2px;
    font-size: 10.5px;
    white-space: nowrap;
  }

  .fc-day-divider {
    stroke-width: 2;
  }

}


.forecast-rain-band rect {
  opacity: 0.88;
}

.forecast-rain-band:hover rect,
.forecast-rain-band:focus rect {
  opacity: 1;
  filter: saturate(1.24) brightness(1.02);
}


.forecast-snow-band {
  cursor: pointer;
  outline: none;
}

.forecast-snow-band rect {
  pointer-events: all;
  opacity: 0.88;
  transition:
    opacity 0.18s ease,
    filter 0.18s ease;
}

.forecast-snow-band:hover rect,
.forecast-snow-band:focus rect {
  opacity: 1;
  filter: saturate(1.18) brightness(1.03);
}

.snow-hatch-swatch {
  width: 22px;
  height: 12px;
  flex: 0 0 auto;
  border: 1px solid #c2b6ff;
  border-radius: 3px;
  background: repeating-linear-gradient(
    0deg,
    rgba(239, 232, 255, 0.9) 0,
    rgba(239, 232, 255, 0.9) 3px,
    rgba(141, 127, 227, 0.55) 3px,
    rgba(141, 127, 227, 0.55) 4px
  );
}

.snow-window-chip {
  appearance: none;
  border: 1px solid #d6ccff;
  border-radius: 999px;
  background: #fff;
  color: #5f54a8;
  padding: 5px 8px;
  font: inherit;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
}

.snow-window-chip:hover,
.snow-window-chip:focus-visible {
  border-color: #9889ef;
  background: #f5f2ff;
  outline: none;
}

.forecast-rain-legend-title.snow {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .snow-hatch-swatch {
    width: 19px;
    height: 11px;
  }

  .snow-window-chip {
    width: 100%;
    text-align: left;
    padding: 5px 7px;
    font-size: 8.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

}

body:not(.agri-mode-on) .agri-mode-only {
  display: none !important;
}

body:not(.agri-mode-on) .foliar-compact {
  display: none !important;
}

body.agri-mode-on .agri-mode-bar {
  border-color: #a9d7ba;
  box-shadow: 0 8px 24px rgba(31, 122, 77, 0.1);
}

body.agri-mode-on .agri-mode-toggle {
  background: #184f36;
}


.legend-swatch.vpd-line {
  height: 0;
  border-top: 3px dashed #1f7a4d;
  background: transparent;
  border-radius: 0;
}


/* R18 — optional hourly wind layer for Standard and Pro */
.forecast-wind-toggle {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #b9d9d7;
  border-radius: 999px;
  background: #f4fbfa;
  color: #285b59;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  grid-column: 1 / -1;
  width: fit-content;
  font-weight: 800;
}

.forecast-wind-toggle.active {
  border-color: #238b86;
  background: #def3f1;
  color: #145e5a;
  box-shadow: inset 0 0 0 1px rgba(35,139,134,.12);
}

.legend-swatch.wind-line {
  width: 22px;
  height: 0;
  border-top: 3px solid #238b86;
}

.fc-wind-line-shadow {
  fill: none;
  stroke: rgba(255,255,255,.8);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fc-wind-line {
  fill: none;
  stroke: #238b86;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fc-wind-scale {
  fill: #1d706b;
  font-size: 9px;
  font-weight: 850;
}

.fc-hover-wind-dot {
  fill: #238b86;
  stroke: #fff;
  stroke-width: 1.5;
}

@media (max-width: 560px) {
  .forecast-wind-toggle {
    width: 100%;
    min-height: 40px;
    justify-content: center;
    font-size: 11px;
  }

}

body:not(.agri-mode-on) .agri-profile-btn {
  display: none !important;
}

body.agri-profile-editor .agri-profile-fields {
  display: grid;
  gap: 14px;
}

body.agri-profile-editor .location-only {
  display: none !important;
}

body.agri-profile-editor .garden-form-card {
  gap: 14px;
}

.location-coords {
  display: none !important;
}


/* BASE V3: weather/agriculture as sibling tabs */
.view-tabs-wrap {
  padding: 8px;
  margin: 4px 0 14px;
  background: linear-gradient(135deg, #f7fbf8, #eef8f2);
}

.view-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.view-tab {
  appearance: none;
  border: 1px solid #d7e5dd;
  background: #fff;
  color: #416256;
  border-radius: 14px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: 0.16s ease;
}

.view-tab:hover {
  border-color: #9bc8ad;
  background: #f7fbf8;
}

.view-tab.active {
  background: #1f7a4d;
  border-color: #1f7a4d;
  color: #fff;
  box-shadow: 0 8px 18px rgba(31, 122, 77, 0.14);
}

body.agri-mode-on .view-tabs-wrap {
  border-color: #a9d7ba;
  box-shadow: 0 8px 24px rgba(31, 122, 77, 0.1);
}

@media (max-width: 640px) {
  .view-tabs-wrap {
    padding: 7px;
    margin-bottom: 12px;
  }

  .view-tabs {
    gap: 6px;
  }

  .view-tab {
    padding: 10px 8px;
    border-radius: 12px;
    font-size: 12px;
    white-space: nowrap;
  }

}

@media (max-width: 640px) {
  body.agri-profile-editor .screen[data-screen="garden"] {
    padding: 12px;
  }

  body.agri-profile-editor .garden-form-card {
    padding: 14px;
    border-radius: 16px;
  }

  body.agri-profile-editor .agri-profile-fields {
    gap: 12px;
  }

  body.agri-profile-editor .harvest-input-block {
    padding: 12px;
  }

  body.agri-profile-editor .form-card label {
    font-size: 13px;
  }

  body.agri-profile-editor .form-card input,
  body.agri-profile-editor .form-card select {
    min-height: 46px;
  }

}


/* BASE V7 tab hit-area hardening */
.view-tabs-wrap,
.view-tabs,
.view-tab {
  position: relative;
}

.view-tabs {
  z-index: 8;
}

.view-tab {
  z-index: 9;
  pointer-events: auto !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(31, 122, 77, 0.14);
}


/* BASE V8 — restore original agricultural VPD strip + explanation UI in weather-first mode */
body.weather-mode.agri-mode-on .forecast-vpd-strip {
  display: grid !important;
}

body.weather-mode.agri-mode-on .forecast-vpd-legend {
  display: flex !important;
}

@media (max-width: 640px) {
  body.weather-mode.agri-mode-on .forecast-vpd-strip {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body.weather-mode.agri-mode-on .forecast-vpd-legend {
    display: grid !important;
    gap: 6px;
    padding: 8px;
  }

}


/* BASE V9 — keep V71/V72 micrograph UI; long localized VPD label wraps safely on mobile */
@media (max-width: 560px) {
  .forecast-legend-clear.mobile > div {
    min-width: 0;
  }

  .forecast-legend-clear.mobile strong {
    white-space: normal;
    line-height: 1.2;
  }

}


.planting-advisor-card {
  display: grid;
  gap: 12px;
}

.planting-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.planting-card-head h3 {
  margin: 4px 0 0 0;
  font-size: 1.12rem;
}

.planting-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.planting-meta-row div,
.planting-why,
.planting-next {
  background: #f7faf8;
  border: 1px solid #e2ece4;
  border-radius: 14px;
  padding: 12px;
}

.planting-meta-row span,
.planting-why strong,
.planting-next strong {
  display: block;
  color: #587162;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.planting-why ul {
  margin: 0;
  padding-left: 18px;
}

.planting-why li {
  margin: 0 0 6px 0;
}

.planting-next p {
  margin: 0;
}

.eyebrow {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2f7a4d;
}

@media (max-width: 760px) {
  .planting-card-head {
    flex-direction: column;
  }

  .planting-meta-row {
    grid-template-columns: 1fr;
  }

}


/* BASE V13 — clearer day separation, compact VPD panel, localized date picker */
.fc-day-divider {
  stroke: #9fb4a9 !important;
  stroke-width: 2.5 !important;
  opacity: 0.95 !important;
}

@media (max-width: 640px) {
  .fc-day-divider {
    stroke-width: 2.8 !important;
  }

}

.forecast-vpd-panel {
  margin-top: 10px;
  border: 1px solid #dce7df;
  border-radius: 18px;
  background: #fbfdfb;
  padding: 10px 12px 8px;
}

.forecast-vpd-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px 8px;
}

.forecast-vpd-panel-head strong {
  font-size: 13px;
  color: #284936;
}

.forecast-vpd-panel .forecast-vpd-strip {
  margin-top: 0;
}

.forecast-vpd-panel .forecast-vpd-legend {
  margin-top: 8px;
  border: 0;
  border-top: 1px solid #e3ebe6;
  border-radius: 0;
  padding: 8px 2px 0;
  background: transparent;
}

.forecast-vpd-panel .forecast-vpd-legend-title {
  display: none;
}

.forecast-vpd-panel .forecast-vpd-legend-items {
  gap: 8px;
}

.localized-date-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
  position: relative;
}

.date-picker-btn {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  min-height: 46px;
}

.date-picker-btn:hover,
.date-picker-btn:focus-visible {
  border-color: #7aa88c;
  background: #f4faf6;
  outline: none;
}

.native-date-proxy {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  left: 0;
  bottom: 0;
}

@media (max-width: 640px) {
  .forecast-vpd-panel {
    padding: 9px 9px 7px;
  }

  .forecast-vpd-panel-head strong {
    font-size: 12px;
  }

  .forecast-vpd-panel .forecast-vpd-legend-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
  }

}


/* BASE V14: compact top-location management */
.top-location-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.top-location-card {
  min-width: 150px;
}

.top-location-menu {
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  z-index: 1200;
}

.top-location-action {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 11px 12px;
  font-weight: 800;
  color: var(--green, #18784b);
  cursor: pointer;
  border-radius: 10px;
}

.top-location-action:hover {
  background: #eef8f1;
}

.top-location-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}


/* BASE V15 — one canonical location control in top bar */
.screen[data-screen="home"] > .hero {
  display: none !important;
}

.wind-direction-card {
  display: none !important;
}

.location-pin-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf8f1;
  color: var(--green);
  font-weight: 900;
  flex: 0 0 auto;
}

.location-plant-profile {
  display: inline-flex;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #edf8f1;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  width: max-content;
}

.top-location-menu {
  max-height: min(68vh, 520px);
  overflow: auto;
}

.top-location-card:disabled {
  opacity: 1;
  cursor: pointer;
}

@media (max-width: 640px) {
  .top-location-wrap {
    position: static;
  }

  .top-location-menu {
    position: absolute !important;
    top: calc(100% + 4px) !important;
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
    max-width: none !important;
    max-height: 70vh;
  }

  .active-garden-option {
    align-items: center;
  }

  .active-garden-option-main small {
    max-width: 190px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

}


/* BASE V18 — location-first dropdown */
.top-location-card {
  position: relative;
  padding-right: 30px;
}

.top-location-caret {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--muted);
  transition: transform 0.16s ease;
}

.top-location-card[aria-expanded="true"] .top-location-caret {
  transform: translateY(-50%) rotate(180deg);
}

.top-location-menu {
  width: min(360px, calc(100vw - 24px));
  padding: 8px;
}

.top-location-menu-head {
  display: grid;
  gap: 2px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.top-location-menu-head strong {
  font-size: 13px;
  color: var(--text);
}

.top-location-menu-head small {
  font-size: 11px;
  color: var(--muted);
}

.active-garden-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px 34px;
  align-items: center;
  gap: 2px;
  border-radius: 12px;
}

.active-garden-option.active {
  background: #eef8f1;
}

.active-garden-pick {
  min-width: 0;
}

.active-garden-option-main {
  min-width: 0;
}

.active-garden-option-main > span:last-child {
  min-width: 0;
  display: grid;
}

.active-garden-option-main strong,
.active-garden-option-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-location-add {
  margin-top: 4px;
  background: #f3faf5;
}

.location-plant-profile {
  display: none !important;
}

@media (max-width: 760px) {
  .top-location-card {
    width: auto !important;
    min-width: 44px !important;
    max-width: 170px !important;
    height: auto !important;
    padding: 7px 28px 7px 9px !important;
    justify-content: flex-start !important;
  }

  .top-location-copy {
    display: grid !important;
  }

  .top-location-copy strong {
    max-width: 95px;
  }

  .top-location-copy small {
    max-width: 110px;
  }

  .top-location-caret {
    display: block;
  }

  .top-location-menu {
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
    max-height: 70vh;
  }

}

@media (max-width: 430px) {
  .top-location-card {
    max-width: 145px !important;
  }

  .top-location-copy strong {
    max-width: 78px;
  }

  .top-location-copy small {
    max-width: 88px;
  }

  .active-garden-option {
    grid-template-columns: minmax(0, 1fr) 32px 32px;
  }

}


.home-date-stamp {
  margin-left: auto;
  font-size: 0.88rem;
  color: #64756b;
  font-weight: 650;
  text-transform: capitalize;
}

@media (max-width: 760px) {
  .home-date-stamp {
    font-size: 0.78rem;
    max-width: 46%;
    text-align: right;
  }

}


/* V38: weather page date and reliable mobile crop artwork */
.weather-page-date {
  display: block;
  margin: -4px 4px 10px;
  text-align: right;
  min-height: 1.2em;
}

@media (max-width: 760px) {
  .weather-page-date {
    max-width: none;
    margin: -2px 2px 9px;
    font-size: 0.79rem;
    text-align: right;
  }

}

.planting-reference {
  background: #f8fbf8;
  border: 1px solid #e0ebe1;
  border-radius: 14px;
  padding: 12px;
}

.planting-reference strong {
  display: block;
  color: #587162;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.planting-reference p {
  margin: 0;
  line-height: 1.45;
}

.planting-next-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.planting-next-head strong {
  margin-bottom: 0;
}


/* Selected crop summary in planting card uses the same full-bleed image language. */
.planting-meta-row .planting-crop-meta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 82px;
  background-image: var(--plant-meta-art);
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.planting-meta-row .planting-crop-meta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(4, 24, 13, 0.05) 28%,
    rgba(4, 24, 13, 0.72) 100%
  );
}

.planting-meta-row .planting-crop-meta span,
.planting-meta-row .planting-crop-meta strong {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.planting-meta-row .planting-crop-meta span {
  margin-bottom: 3px;
}


@media (max-width: 760px) {
  .planting-meta-row .planting-crop-meta {
    min-height: 76px;
  }

}


.planting-meta-row .planting-crop-meta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 112px;
  background: #f7fbf8 !important;
  color: #153d29 !important;
  display: grid;
  grid-template-rows: 70px auto auto;
  align-content: start;
  gap: 2px;
  padding: 0 12px 10px;
}

.planting-meta-row .planting-crop-meta::before {
  content: none !important;
  display: none !important;
}

.planting-meta-row .planting-crop-art {
  display: block;
  width: 100%;
  height: 70px;
  margin: 0 auto 4px;
  background-image: var(--plant-meta-art);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

.planting-meta-row .planting-crop-meta span,
.planting-meta-row .planting-crop-meta strong {
  color: #153d29 !important;
  text-shadow: none !important;
}

.planting-meta-row .planting-crop-meta span {
  margin-bottom: 0;
  font-size: 0.82rem;
  color: #65786c !important;
}

.planting-meta-row .planting-crop-meta strong {
  font-size: 1.05rem;
  line-height: 1.15;
}


@media (max-width: 760px) {
  .planting-meta-row .planting-crop-meta {
    min-height: 102px;
    grid-template-rows: 62px auto auto;
    padding: 0 10px 9px;
  }

  .planting-meta-row .planting-crop-art {
    height: 62px;
  }

}

.planting-meta-row .planting-crop-meta {
  min-height: 116px !important;
  grid-template-rows: 76px auto auto !important;
  background: #fff !important;
  padding: 0 12px 10px !important;
}

.planting-meta-row .planting-crop-art {
  width: 100% !important;
  height: 100% !important;
  min-height: 76px !important;
  background-image: var(--plant-meta-art) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  margin: 0 0 5px !important;
  border-radius: 10px 10px 7px 7px;
}

@media (max-width: 760px) {
  .planting-meta-row .planting-crop-meta {
    min-height: 104px !important;
    grid-template-rows: 66px auto auto !important;
    padding: 0 9px 9px !important;
  }

  .planting-meta-row .planting-crop-art {
    min-height: 66px !important;
  }

}


/* Fenoloji kartındaki ürün görseli: tüm kartı kaplar; açıklama etiketi yok. */
.planting-meta-row .planting-crop-meta {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  min-height: 160px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  background: #eef6f0 !important;
}

.planting-meta-row .planting-crop-art {
  position: absolute !important;
  inset: 0 !important;
  z-index: -2 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  background-image: var(--plant-meta-art) !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
}

.planting-meta-row .planting-crop-meta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(4, 24, 13, 0) 48%,
    rgba(4, 24, 13, 0.7) 100%
  );
}

.planting-meta-row .planting-crop-meta strong {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  color: #fff !important;
  font-size: 1.08rem !important;
  line-height: 1.1 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.72) !important;
}

.planting-meta-row .planting-crop-meta span {
  display: none !important;
}


@media (max-width: 760px) {
  .planting-meta-row .planting-crop-meta {
    min-height: 130px !important;
  }

}


/* V37 timing verdicts, maturity checks and visible evidence */
.timing-verdict {
  display: flex;
  gap: 8px 14px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 10px 0 14px;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid #d9e5dc;
  background: #f7faf8;
}

.timing-verdict strong {
  font-size: 0.95rem;
}

.timing-verdict span {
  font-size: 0.84rem;
  color: #52645a;
  line-height: 1.35;
}

.timing-verdict.early,
.timing-verdict.late {
  background: #fff7ed;
  border-color: #fed7aa;
}

.timing-verdict.early strong,
.timing-verdict.late strong {
  color: #9a4b08;
}

.timing-verdict.approaching {
  background: #fffbeb;
  border-color: #fde68a;
}

.timing-verdict.approaching strong {
  color: #8a6200;
}

.timing-verdict.ready,
.timing-verdict.ok {
  background: #edf9f1;
  border-color: #b9e2c8;
}

.timing-verdict.ready strong,
.timing-verdict.ok strong {
  color: #176b3b;
}

.decision-source-row {
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid rgba(43, 86, 59, 0.12);
  display: grid;
  gap: 5px;
}

.decision-source-row > strong {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64766a;
}

.decision-source-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.decision-source-links a {
  font-size: 0.76rem;
  color: #176b3b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.decision-source-links span {
  font-size: 0.72rem;
  color: #91a097;
}

.decision-weather-source {
  font-size: 0.72rem;
  color: #748278;
  line-height: 1.3;
}

@media (max-width: 760px) {
  .timing-verdict {
    display: grid;
    gap: 4px;
  }

  .decision-source-links {
    gap: 5px;
  }

  .decision-source-links a {
    font-size: 0.72rem;
  }

}

.info-source-evidence {
  display: grid;
  gap: 9px;
}

.info-source-evidence > div {
  display: grid;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.info-source-evidence > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-source-evidence small {
  color: var(--muted);
  line-height: 1.4;
}

.source-score-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(70px, 120px) auto auto;
  gap: 8px;
  align-items: center;
  padding-top: 9px;
}

.source-score-row > div:first-child {
  display: grid;
  gap: 1px;
}

.source-score-row small {
  font-size: 0.69rem;
  color: var(--muted);
}

.source-score-row > b {
  font-size: 0.75rem;
}

.source-score-meter {
  height: 6px;
  border-radius: 99px;
  background: #e5ebe7;
  overflow: hidden;
}

.source-score-meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #d5a42f, #2d8b57);
  border-radius: inherit;
}

.source-score-detail {
  padding-left: 0;
  border-bottom: 1px solid rgba(43, 86, 59, 0.08);
}

@media (max-width: 620px) {
  .source-score-row {
    grid-template-columns: 1fr auto;
  }

  .source-score-meter {
    grid-column: 1/-1;
    grid-row: 2;
  }

  .source-score-row .source-state {
    justify-self: end;
  }

}


/* TerraSky comment card — expressive weather art and contextual risk state */
body.weather-mode .weather-plain-summary::before,
body.weather-mode .weather-plain-summary[data-time-theme="sunset"]::before,
body.weather-mode .weather-plain-summary[data-time-theme="night"]::before {
  opacity: 0.36 !important;
}

/* V60 R9 — the comment decision owns the artwork URL. */
body.weather-mode .weather-plain-summary::before {
  background-image: var(--comment-weather-art) !important;
}

.weather-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.weather-summary-alerts {
  justify-content: flex-end;
  flex: 0 1 auto;
}

.weather-summary-alert {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.15;
  box-shadow: 0 4px 12px rgba(20, 30, 25, 0.16);
}

.weather-summary-alert.heat {
  background: #d94841;
}

.weather-summary-alert.frost {
  background: #2775c7;
}

.weather-summary-alert.rain {
  background: #287fae;
}

.weather-summary-alert.wind {
  background: #d87a16;
}

.weather-summary-alert.storm {
  background: #7b3fa0;
}

.weather-plain-summary[data-alert-kind="heat"] {
  border-color: rgba(217, 72, 65, 0.72) !important;
  box-shadow: 0 10px 28px rgba(217, 72, 65, 0.16) !important;
}

.weather-plain-summary[data-alert-kind="frost"] {
  border-color: rgba(39, 117, 199, 0.72) !important;
  box-shadow: 0 10px 28px rgba(39, 117, 199, 0.16) !important;
}

.weather-plain-summary[data-alert-kind="rain"] {
  border-color: rgba(40, 127, 174, 0.72) !important;
  box-shadow: 0 10px 28px rgba(40, 127, 174, 0.16) !important;
}

.weather-plain-summary[data-alert-kind="wind"] {
  border-color: rgba(216, 122, 22, 0.76) !important;
  box-shadow: 0 10px 28px rgba(216, 122, 22, 0.16) !important;
}

.weather-plain-summary[data-alert-kind="storm"] {
  border-color: rgba(123, 63, 160, 0.76) !important;
  box-shadow: 0 10px 28px rgba(123, 63, 160, 0.18) !important;
}

.weather-plain-summary[data-alert-level="critical"] .weather-summary-alert {
  outline: 2px solid rgba(255, 255, 255, 0.82);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .weather-summary-head {
    display: grid;
    justify-items: start;
    gap: 6px;
  }

  .weather-summary-alert {
    font-size: 10px;
    padding: 4px 8px;
  }

  .weather-summary-alerts {
    justify-content: flex-start;
  }

  .comment-threshold-badge {
    font-size: 10px;
    padding: 5px 8px;
  }

  .comment-threshold-badge small {
    display: none;
  }

}

.current-greeting{font-size:.9rem;font-weight:800;color:var(--green);margin:0 0 .35rem .1rem;letter-spacing:.01em}


/* V60 R31 — proportional header logo + daily plant-comment artwork fit */
@media (max-width: 370px) {
  .brand-logo.terrasky-wordmark {
    width: 72px;
    height: 97px;
  }

}

body.weather-mode .weather-plain-summary.garden-comment-mode::before {
  opacity: 0.40 !important;
  background-size: auto 100% !important;
  background-position: right center !important;
  background-repeat: no-repeat !important;
}


/* V60 R32 — home wordmark +20% over R31, proportional */
.brand-logo.terrasky-wordmark { width: 103px !important; height: 139px !important; }

@media (max-width: 640px) { .brand-logo.terrasky-wordmark { width: 96px !important; height: 130px !important; }
 }

@media (max-width: 370px) { .brand-logo.terrasky-wordmark { width: 86px !important; height: 116px !important; }
 }

.threshold-note { margin: 2px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }


/* R33 preview - data source and licence disclosure */
.source-license-list{display:grid;gap:10px;margin:12px 0}
.source-license-item{display:grid;gap:3px;padding:12px;border:1px solid var(--line,#dfe7df);border-radius:14px;background:rgba(255,255,255,.6)}
.source-license-item span{font-size:.9rem}
.source-license-item small{color:var(--muted,#68756d);line-height:1.35}



/* V60 R34 — sparse daily surprise + permanent mobile rain-percent alignment */
.daily-surprise-card { margin: 14px 0; padding: 14px 16px; border: 1px solid rgba(112, 92, 42, .18); background: linear-gradient(135deg, rgba(255,250,231,.96), rgba(246,250,244,.96)); }

.daily-surprise-head { display:flex; align-items:center; gap:8px; margin-bottom:6px; }

.daily-surprise-head strong { font-size: 1rem; }

.daily-surprise-card p { margin:0; line-height:1.45; }

.daily-surprise-card small { display:block; margin-top:8px; color:var(--muted,#68756d); }

@media (max-width:640px) {
  .current-metrics .metric-rainToday .metric-copy { display:grid; grid-template-columns:auto auto; justify-content:start; align-items:baseline; column-gap:3px; text-align:left; }

  .current-metrics .metric-rainToday .metric-copy > b { grid-column:1; grid-row:1; white-space:nowrap; }

  .current-metrics .metric-rainToday .metric-copy > span { grid-column:2; grid-row:1; white-space:nowrap; line-height:1; margin:0 !important; transform:none !important; }

  .current-metrics .metric-rainToday .metric-copy > .metric-level-chip { grid-column:1 / -1; grid-row:2; justify-self:start; }

}


/* R35 — consistent confidence/source evidence */
.insight-source-evidence{display:inline-flex;align-items:center;gap:6px;margin-left:8px;font-size:11px;opacity:.88;vertical-align:middle}

.insight-source-evidence span{font-weight:700}
.insight-source-evidence small{font-size:11px}

.weather-summary-alerts{display:flex;flex-wrap:wrap;align-items:center;gap:6px}

.weather-summary-alerts .insight-source-evidence{flex-basis:100%;margin-left:0}


/* R35.5 — purchase success feedback */
.pro-activated-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); z-index: 10050; padding: 10px 16px; border-radius: 999px; background: rgba(20, 32, 25, .94); color: #fff; font-weight: 700; box-shadow: 0 8px 28px rgba(0,0,0,.22); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }

.pro-activated-toast.show { opacity: 1; transform: translate(-50%, 0); }

.forecast-frost-badge{margin-top:7px;border-radius:9px;padding:6px 8px;font-size:11px;font-weight:800}
.forecast-frost-badge.watch{background:#fff7ed;color:#9a3412}
.forecast-frost-badge.critical{background:#fee2e2;color:#991b1b}
.metric-info{margin-left:auto}
.fire-risk-badge{display:inline-flex;align-items:center;gap:4px;background:#b42318;color:#fff;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;margin-right:6px}
.seasonal-planting-line{display:block;margin-top:10px;padding-top:9px;border-top:1px solid var(--border);line-height:1.45}
.seasonal-planting-line b{color:var(--green)}

/* R35.8 compact fire-risk detail trigger */
.fire-risk-badge[data-fire-risk]{border:0;cursor:pointer;font:inherit}


/* R36 final — stable Standard web ad inventory + privacy actions */
[data-web-ad-slot]{min-height:90px;margin:14px 0;align-items:center;justify-content:center;text-align:center}

@media (max-width:640px){[data-web-ad-slot]{min-height:72px;margin:10px 0}
}


/* R36.7 preview — independent chart layers and VPD threshold windows. */
.forecast-chart { container-type: inline-size; }

.forecast-layer-toggle {
  grid-column: auto;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
}

.forecast-layer-toggle strong { min-width: 0; white-space: normal; overflow-wrap: anywhere; }

@container (max-width: 470px) {
  .forecast-legend-clear { grid-template-columns: minmax(0, 1fr); }

}

.forecast-layer-toggle:not(.active) {
  background: #f5f6f5;
  border-color: #d7ded9;
  color: #65746b;
  box-shadow: none;
}

.forecast-layer-toggle:disabled { opacity: .5; cursor: not-allowed; }

.forecast-layer-toggle .legend-swatch { flex: 0 0 22px; }

.forecast-confidence-legend { grid-column: 1 / -1; }

.forecast-vpd-window { cursor: pointer; outline: none; }

.forecast-vpd-window rect { pointer-events: all; opacity: .8; transition: opacity .18s ease; }

.forecast-vpd-window:hover rect,
.forecast-vpd-window:focus rect { opacity: 1; }

.vpd-hatch-swatch {
  width: 22px;
  height: 12px;
  flex: 0 0 auto;
  border: 1px solid #e1b261;
  border-radius: 3px;
  background: repeating-linear-gradient(135deg, #fff0d8 0, #fff0d8 4px, #d69637 4px, #d69637 5px);
}

.vpd-window-chip {
  appearance: none;
  border: 1px solid #e1b261;
  border-radius: 999px;
  background: #fffaf2;
  color: #785017;
  padding: 5px 8px;
  font: inherit;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.vpd-window-chip:hover,
.vpd-window-chip:focus-visible { background: #fff0d8; outline: 2px solid #d69637; }

.fc-hover-vpd-dot { fill: #fff; stroke: #0b6f3f; stroke-width: 2.5; }


/* Plant view keeps the mini graph and uses a plant-specific outlook in place of repeated daily weather cards. */
body.agri-mode-on #forecastGrid { display: none; }

.current-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }

.current-card-head .current-greeting { margin-bottom: 0; }

.current-source-score { margin-left: auto; border-radius: 999px; padding: 5px 9px; background: #eaf5ed; border: 1px solid #c5e5cf; color: #285d3d; font-size: 10px; font-weight: 700; white-space: nowrap; }

.current-source-score b { font-size: 11px; }

.current-card-scores { display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap; margin: 10px 0 12px; position: relative; z-index: 1; }

.current-card-scores .current-source-score { margin-left: 0; }

.current-likelihood-score { border-radius: 999px; padding: 5px 9px; background: #fff5dd; border: 1px solid #e9d59e; color: #775315; font-size: 10px; font-weight: 700; white-space: nowrap; }

.current-likelihood-score b { font-size: 11px; }

@media (max-width: 470px) { .current-card-scores { justify-content: flex-start; }
 }


/* Share icon follows the supplied curved-arrow reference inside Current Conditions. */
.current-card-share-head { position: relative; min-height: 42px; padding-right: 48px; margin-bottom: 4px; }

.current-card-share-head .current-greeting { margin-bottom: 0; }

.current-share-btn { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 42px; height: 42px; padding: 5px; border: 0; border-radius: 10px; background: transparent; color: #173b2b; cursor: pointer; }

.current-share-btn svg { display: block; width: 28px; height: 28px; }

.current-share-btn:hover, .current-share-btn:focus-visible { background: rgba(220, 241, 227, .65); outline: 2px solid #7ab68c; outline-offset: 2px; }

.share-status {
  position: absolute;
  z-index: 61;
  right: 0;
  top: calc(100% + 5px);
}

.share-status:not(:empty) {
  max-width: min(300px, 90vw);
  padding: 8px 11px;
  border-radius: 9px;
  background: #24563a;
  color: #fff;
  font-size: 12px;
}

.top-location-current {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 5px;
  border: 1px solid #b9dcc5;
  background: #eaf7ee;
  color: #145e37;
  font-size: 13px;
  white-space: normal;
}

.top-location-current:hover,
.top-location-current:focus-visible { background: #d9f0e1; outline: 2px solid #6eaf81; }

.top-location-current:disabled { opacity: .7; cursor: wait; }

.top-location-status { margin: 2px 8px 8px; padding: 9px 10px; border-radius: 8px; background: #fff4df; color: #69451c; font-size: 12px; line-height: 1.35; }


/* R37 UX preview — tester feedback */
.card { box-shadow: 0 10px 28px rgba(25, 55, 39, .12); margin-bottom: 18px; }

.location-map-bottom { margin-top: 18px; }

.location-map-bottom .map { min-height: 280px; }

.garden-form-card #saveGardenBtn { position: relative; z-index: 1; box-shadow: 0 6px 16px rgba(25,55,39,.14); }

.pull-refresh-pill { position: fixed; left: 50%; top: 74px; transform: translate(-50%,-140%); z-index: 80; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.96); border: 1px solid var(--border); box-shadow: 0 8px 22px rgba(25,55,39,.14); font-size: 12px; font-weight: 700; transition: transform .18s ease; pointer-events:none; }

.pull-refresh-pill.visible { transform: translate(-50%,0); }

.pull-refresh-pill.loading { transform: translate(-50%,0); }

@media (max-width: 640px) { .card { margin-bottom: 20px; }
 }


/* Overnight dew / fog / frost panel */
.dew-card h3{margin:0 0 14px}
.dew-card h3 small{font-size:.8em;font-weight:500}

.dew-head,.dew-risk-list>div{display:flex;justify-content:space-between;gap:12px;align-items:center}

.dew-risk{padding:5px 12px;border-radius:20px;background:#f3ead7;font-size:.85em}

.dew-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}

.dew-metrics>div{background:rgba(128,128,128,.06);padding:12px;border-radius:12px;min-width:0}

.dew-metrics span{display:block;font-size:.78em;opacity:.8}
.dew-metrics b{display:block;margin-top:5px}

.dew-card svg{width:100%;display:block;overflow:visible;color:inherit}
.dew-card svg text{fill:currentColor;font-size:12px;font-family:inherit}

.dew-legend{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:.8em;margin:8px 0 18px}

.dew-temperature{color:#df642f}
.dew-point{color:#3989dc}
.dew-risk-list{display:grid;gap:9px;border-top:1px solid rgba(128,128,128,.2);padding-top:14px}

.dew-risk-list .risk-0{color:#37834c}
.dew-risk-list .risk-1{color:#986414}
.dew-risk-list .risk-2{color:#c03c2a}

.dew-advice{background:rgba(80,160,90,.12);border-radius:12px;padding:12px}

@media(max-width:420px){.dew-metrics{gap:6px}
.dew-metrics>div{padding:9px}
.dew-card svg text{font-size:14px}
}


.current-location-label{font-size:.85em;font-weight:600;overflow-wrap:anywhere;opacity:.85;margin-top:4px}

.current-card-share-head>div{min-width:0}
.current-card-share-head .current-share-btn{flex-shrink:0}


.dew-toggle{width:100%;padding:14px 16px;margin:0 0 12px;text-align:start;border:1px solid var(--border);border-radius:14px;background:var(--card);color:inherit;font:inherit;font-weight:600;cursor:pointer}
.dew-toggle:focus-visible{outline:2px solid #3989dc;outline-offset:3px}


.dew-risk-label{display:flex;align-items:center;gap:9px}
.dew-card .dew-icon{width:24px;height:24px;flex:0 0 24px;overflow:visible}
.dew-icon-6{color:#3989dc}
.dew-icon-7{color:#738794}
.dew-icon-8{color:#5b9ba5}
.dew-icon-9{color:#6383b2}


/* Reference-style graph, nightly risk list and garden advice. */
.dew-chart-box,.dew-night-box{border:1px solid var(--border);border-radius:16px;padding:16px;margin:12px 0;background:var(--card)}

.dew-night-box h4{margin:0 0 12px;font-size:1rem}
.dew-night-box .dew-risk-list{border:0;padding:0;gap:12px}

.dew-icon.risk-0{color:#37834c}
.dew-icon.risk-1{color:#986414}
.dew-icon.risk-2{color:#c03c2a}

.dew-advice{display:flex;gap:9px;align-items:flex-start;color:#14552c;background:#cceac5;border-radius:16px;line-height:1.5}

.dew-card .dew-advice-icon{width:22px;height:22px;flex:0 0 22px;margin-top:2px}

@media(max-width:420px){.dew-chart-box,.dew-night-box{padding:12px}
}


/* Scoped dusk palette: other screens and share PNGs keep their own appearance. */
.current-card{transition:background-color .3s ease,color .3s ease,border-color .3s ease}

.current-card.current-night{--muted:#b9cbd5;--border:#3b5362;--green:#9bd8b6;background:#172c3b;color:#eff6fa;border-color:#3b5362;box-shadow:0 8px 24px rgba(14,31,44,.2);color-scheme:dark}

.current-night .current-feels strong,.current-night .sun-compact-top,.current-night .current-share-btn{color:#dcecf5}

.current-night .current-share-btn:hover,.current-night .current-share-btn:focus-visible{background:#294659}

.current-night .current-metrics .metric-card{background:#213e50;border-color:#3b596a;color:#eff6fa}

.current-night .metric-title,.current-night .metric-copy>b{color:#eff6fa}

.current-night .metric-dial-label{fill:#eff6fa}

.current-night .info-inline{background:#294659;border-color:#6d899b;color:#e5eff6}

.current-night .mini-gauge-card,.current-night .stress-card{--muted:#52665b;--border:#cbdad1;color:#173b2b;color-scheme:light}

@media(prefers-reduced-motion:reduce){.current-card{transition:none}
}


.current-night .wind-card-direction{background:#294659;color:#dcecf5}


.convective-alerts h3{margin:0 0 12px}
.convective-alert{border:1px solid #e7c476;background:#fff7e6;border-radius:14px;padding:12px;margin:10px 0}
.convective-alert h4{margin:0 0 6px;color:#82531b}
.convective-alert p{margin:6px 0;line-height:1.45}
.convective-alert small{display:block;overflow-wrap:anywhere;color:#685637}


.pressure-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.pressure-card p{margin:10px 0;line-height:1.45}
.pressure-card details{border-top:1px solid var(--border);padding-top:10px}
.pressure-card summary{cursor:pointer;color:var(--green);font-weight:600}


/* Garden notebook: reference layout, scoped to the dialog. */
.garden-journal{max-width:760px;background:#f2f7f3;color:#202c26;padding:18px;border-radius:26px;font-family:inherit}

.journal-head{display:flex;align-items:center;margin-bottom:18px}
.journal-head small,.journal-group header small{letter-spacing:.15em;color:#78847c;font-weight:600}
.journal-head h2{margin:5px 0;font-size:1.4rem}
.journal-head p{margin:0;color:#748078}

.journal-tabs{display:flex;gap:4px;margin:16px 0 24px}
.journal-tabs button{flex:1;display:flex;align-items:center;justify-content:center;gap:9px;padding:13px 10px;border:1px solid #dce3dc;border-radius:22px;background:#edf2ec;color:#7c867e;font:inherit;cursor:pointer}
.journal-tabs button[aria-selected="true"]{background:#f5f9f5;color:#23352b;box-shadow:0 3px 7px #18392318}
.garden-journal svg{width:24px;height:24px;flex-shrink:0;vertical-align:middle}

.garden-journal .journal-hero{display:flex;align-items:center;gap:18px;width:100%;padding:24px 22px;text-align:left;background:linear-gradient(120deg,#123d30,#238668);color:white;border:0;border-radius:30px;box-shadow:0 18px 26px #174e3020;cursor:pointer;margin-bottom:24px;font:inherit}
.journal-hero>span:nth-child(2){flex:1;min-width:0}
.journal-hero strong{display:block;font-size:1.2rem;font-weight:650}
.journal-hero small{display:block;line-height:1.5;margin-top:8px;color:#bed6c9;font-size:.95rem}
.journal-hero-icon{display:grid;place-items:center;width:62px;height:62px;border:1px solid #ffffff26;border-radius:50%;background:#ffffff16;flex-shrink:0}
.journal-hero-icon svg{width:32px;height:32px}
.journal-hero-plus svg{width:30px;height:30px}

.journal-group{margin:22px 0}
.journal-group>header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 22px}
.journal-group>header h3{margin:7px 0 0;font-size:1.15rem}
.journal-group-todo{border:1px solid #dce1d9;border-radius:26px;overflow:hidden;box-shadow:0 2px 5px #12392312}
.journal-group-todo>header{background:#fff8e8}
.journal-group-todo>header>.journal-chip{background:#95680e;color:white;border:none}
.journal-group-todo .journal-list-box{border:0;border-radius:0;box-shadow:none}

.journal-list-box{background:white;border:1px solid #dce1d9;border-radius:26px;overflow:hidden;box-shadow:0 2px 5px #12392312}
.journal-entry{padding:22px;border-bottom:1px solid #dce1d9}
.journal-entry:last-child{border-bottom:0}
.journal-overdue{background:#fff5f7}
.journal-entry-top{display:flex;gap:15px;align-items:flex-start}
.journal-dot{width:13px;height:13px;border-radius:50%;margin-top:7px;background:var(--entry-color,#6a8977);flex-shrink:0}
.journal-entry-body{flex:1;min-width:0}
.journal-entry h3{margin:0;font-size:1.08rem;line-height:1.45;overflow-wrap:anywhere}
.journal-entry h4{margin:10px 0 0;font-size:1rem}
.journal-job-heading{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.journal-job-heading .journal-actions{margin-left:auto}
.journal-chip{display:inline-block;border:1px solid #dce1d9;border-radius:30px;padding:4px 10px;color:#27382f;font-size:.83rem;line-height:1.3}
.journal-late-chip{background:#be4633;border-color:#be4633;color:white}
.journal-entry p{line-height:1.55;overflow-wrap:anywhere;margin:10px 0}
.journal-entry-note,.journal-entry-date{color:#7a867e}
.journal-product{font-weight:500}
.journal-expense-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:7px}
.journal-money{white-space:nowrap;font-size:1.08rem}
.journal-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:6px}
.garden-journal .journal-icon-button{padding:6px;border:0;background:transparent;color:#203c2c;cursor:pointer}
.garden-journal .journal-complete{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;padding:14px;border:0;border-radius:17px;background:#175e49;color:white;font:inherit;margin:17px 0 10px;cursor:pointer}
.journal-entry-details{margin-top:12px;color:#6d7e73;font-size:.85rem}
.journal-entry-details summary{cursor:pointer;line-height:1.5}
.journal-weather{background:#f0f6f0;padding:10px;border-radius:10px}
.journal-empty{padding:18px;color:#7a867e}

.journal-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.journal-toolbar button,.journal-form button,.journal-filters button,[data-jmore],.journal-import{padding:10px 13px;border:1px solid #dce1d9;border-radius:12px;background:#edf5ee;color:#204c31;font:inherit;cursor:pointer}
.journal-filters,.journal-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.journal-filters label,.journal-form label{display:flex;flex-direction:column;gap:6px;font-size:.9rem}
.journal-filters input,.journal-filters select,.journal-form input,.journal-form select,.journal-form textarea{width:100%;padding:10px;border:1px solid #dce1d9;border-radius:10px;background:white;color:#23352b;box-sizing:border-box;font:inherit}
.journal-note{grid-column:1/-1}
.journal-form{border:1px solid #dce1d9;background:white;border-radius:20px;padding:18px;margin:12px 0 20px}
.journal-form h3{margin-top:0}
.garden-journal [hidden]{display:none!important}
.journal-note textarea{min-height:80px;resize:vertical}
.journal-form>button{margin-top:12px}
.journal-import{display:inline-flex;gap:6px;align-items:center}
.journal-import input{max-width:160px;font-size:.8rem}
[data-jmessage]{color:#985221}
.journal-filter-box,.journal-backup{margin:14px 0;font-size:.9rem;color:#6a7c70}
.journal-filter-box>summary,.journal-backup>summary{padding:8px 0;cursor:pointer}
.journal-backup{border-top:1px solid #dce1d9;padding-top:10px}
.journal-backup p{line-height:1.5}
.garden-journal button:focus-visible,.garden-journal summary:focus-visible{outline:3px solid #54a28a;outline-offset:3px}

@media(max-width:480px){.garden-journal{padding:12px}
.journal-form-grid,.journal-filters{grid-template-columns:1fr}
.journal-hero strong{font-size:1.08rem}
.garden-journal .journal-hero{padding:20px 16px;gap:12px}
.journal-hero-icon{width:48px;height:48px}
.journal-entry{padding:18px 14px}
.journal-entry-top{gap:10px}
.journal-job-heading{gap:7px}
.journal-job-heading .journal-actions{margin-left:auto}
.journal-money{font-size:1rem}
.journal-expense-heading h3{font-size:1rem}
.journal-tabs button{font-size:.95rem}
.journal-group>header{padding:18px}
}



.pressure-card svg{display:block;width:100%;color:var(--text)}
.pressure-card svg text{fill:currentColor;font:12px system-ui,sans-serif}
.pressure-value{font-size:1.6rem;font-weight:750;margin:12px 0 4px}
.pressure-trust{padding:6px 10px;border-radius:14px;font-size:.8rem;font-weight:600}
.pressure-trust.trust-high{color:#25633c;background:#e6f4e9}
.pressure-trust.trust-medium{color:#835b1f;background:#fff1d7}
.pressure-trust.trust-low{color:#8a4326;background:#fbe9de}
.pressure-legend{font-size:.8rem;margin:8px 0;line-height:1.5}
.pressure-card h4{margin:14px 0 8px}
@media(max-width:440px){.pressure-card svg text{font-size:14px}
}

#infoDialog:has(.garden-journal){max-width:800px;background:#f2f7f3}

#infoDialog:has(.garden-journal) .dialog-body{padding:6px}

#infoDialog:has(.garden-journal) .journal-head{padding-right:34px}


.journal-status-tabs{margin:0 0 18px}


.current-card>#pressureTrend{border-top:1px solid var(--border);margin-top:16px;padding-top:14px;background:transparent;box-shadow:none;border-radius:0}

.current-card .pressure-card svg{color:inherit}


.current-night .pressure-trust.trust-high{background:#294e3a;color:#c3edcf}

.current-night .pressure-trust.trust-medium{background:#584622;color:#ffe0a1}

.current-night .pressure-trust.trust-low{background:#59372d;color:#ffd6ba}

.current-night .pressure-series{stroke:#8bc7ff}
.current-night .pressure-chart circle{fill:#8bc7ff}
.current-night .pressure-chart polygon{fill:#8bc7ff}


.pressure-micro-head{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;font-size:.85rem}
.pressure-micro-head .pressure-trust{font-size:.65rem;padding:3px 6px}
.pressure-micro-readout{font-size:.78rem;font-weight:600}
.pressure-average-legend{display:flex;gap:12px;flex-wrap:wrap;margin:6px 0;font-size:.72rem}
.pressure-low-label{color:#956419}
.pressure-high-label{color:#4b804e}
.pressure-micro-note{display:block;font-size:.65rem;line-height:1.45}
.pressure-chart [role="button"]{cursor:pointer}
.pressure-chart [role="button"]:focus{outline:none}
.pressure-chart [role="button"]:focus circle:last-child{stroke:currentColor;stroke-width:2}
.current-night .pressure-low-label{color:#f4cc8a}
.current-night .pressure-high-label{color:#b8e0b6}
.current-card>#pressureTrend{margin-top:12px;padding-top:10px}


.current-night .pressure-micro-chart g circle:first-of-type{fill:transparent}


/* Minimal pressure sparkline: no panel, axes, legend or explanatory blocks. */
.current-card #pressureTrend{border:0;border-radius:0;background:transparent;box-shadow:none;padding:0;margin:8px 0 0;min-width:0;color:#537a70}
.pressure-spark-head{display:flex;align-items:center;gap:8px;color:inherit;font-size:.67rem;line-height:1.3}
.pressure-spark-head>span:first-child{flex:1;opacity:.8}
.pressure-spark-value{font-weight:600;white-space:nowrap}
.pressure-spark-value small{font-size:.58rem;font-weight:400;opacity:.75}
.pressure-trust-dot{width:5px;height:5px;border-radius:50%;flex-shrink:0;background:#759683}
.pressure-trust-dot.trust-medium{background:#bda068}
.pressure-trust-dot.trust-low{background:#b97d68}
.current-card .pressure-micro-chart{color:inherit;height:48px;width:100%;overflow:visible}
.current-card .pressure-micro-chart .pressure-series{stroke:currentColor;stroke-width:1.15}
.current-card .pressure-micro-chart .pressure-hit{fill:transparent!important}
.current-card .pressure-micro-chart .pressure-latest{fill:currentColor}
.current-night #pressureTrend{color:#a4c3cc}
.current-night .pressure-trust-dot.trust-high{background:#a0c5ab}
.current-night .pressure-trust-dot.trust-medium{background:#d3bc8a}
.current-night .pressure-trust-dot.trust-low{background:#ceaa99}

@media(min-width:980px){.current-card .current-main:has(#pressureTrend:not(.hidden)){grid-template-columns:auto minmax(0,1fr) minmax(220px,320px) auto}
.current-card .current-main>#pressureTrend{align-self:start;margin:0 8px 0 12px}
.current-card .current-main .pressure-micro-chart{height:52px}
}

@media(max-width:979px){.current-card .current-main>#pressureTrend{grid-column:1/-1}
.current-card>#pressureTrend{margin-top:10px}
}


.current-card .pressure-normal-reference{stroke:#95651f;opacity:.9;stroke-width:1;vector-effect:non-scaling-stroke}
.current-card .pressure-reference-label{fill:#95651f;opacity:.95}
.current-night .pressure-normal-reference{stroke:#e8c784}
.current-night .pressure-reference-label{fill:#e8c784}


.current-card .pressure-normal-reference{stroke:#ae7016;opacity:1;stroke-width:1.8;stroke-dasharray:none;stroke-linecap:butt;vector-effect:non-scaling-stroke}
.current-night .pressure-normal-reference{stroke:#f4ce78}


/* R37.5 soft disclosure and logbook controls */
#plantDewToggle,#plantCountersToggle,#gardenJournalBtn{display:flex;align-items:center;gap:10px;background:#e5efe7;color:#245c3a;border:1px solid #d0e0d3;border-radius:16px;padding:14px 16px;min-height:48px;width:100%;font-size:clamp(11px,3.2vw,15px);white-space:nowrap;margin:12px 0}
 .disclosure-arrow{font-size:20px;margin-left:auto}

.logbook-icon{width:30px;height:30px;flex:none}

#plantDewToggle.hidden,#plantCountersToggle.hidden,#gardenJournalBtn.hidden{display:none!important}

.screen[data-screen="home"]{overscroll-behavior-y:contain}


.journal-reminder{padding:12px;background:#e5efe7;border-radius:12px;margin:12px 0}
.journal-reminder input[type="checkbox"]{width:auto}
.journal-reminder [hidden]{display:none!important}


/* R37.8: readable refresh status above the header, including fast cached responses. */
.pull-refresh-pill{top:calc(12px + env(safe-area-inset-top));z-index:2000;max-width:calc(100vw - 32px);padding:11px 18px;font-size:14px;line-height:1.4;color:#204c31;background:#f4faf5;border:1px solid #b4cebb;opacity:0;visibility:hidden;display:flex;align-items:center;gap:9px;transition:opacity .15s ease,transform .15s ease;box-sizing:border-box;text-align:center;box-shadow:0 6px 24px #153f3026}

.pull-refresh-pill.visible,.pull-refresh-pill.loading{opacity:1;visibility:visible}

.pull-refresh-pill.loading::before{content:"";width:14px;height:14px;flex-shrink:0;border:2px solid #b4cebb;border-top-color:#245c3a;border-radius:50%;animation:refresh-status-spin .8s linear infinite}

@keyframes refresh-status-spin{to{transform:rotate(360deg)}}

@media(prefers-reduced-motion:reduce){.pull-refresh-pill{transition:none}
.pull-refresh-pill.loading::before{animation:none}
}


.journal-remind-check{display:flex;align-items:center;gap:9px;min-height:44px;width:fit-content;margin-top:10px;color:#245c3a;cursor:pointer}
.journal-remind-check input{width:20px;height:20px;accent-color:#245c3a;flex-shrink:0;margin:0}
.journal-remind-check small{color:#64756b}
.journal-remind-check:has(input:disabled){cursor:default;opacity:.65}


/* R37.10: done/planned status cards matching the supplied reference. */
.journal-status-choice{border:0;padding:0;margin:0 0 20px;min-width:0}
.journal-status-choice legend{font-size:1rem;font-weight:650;margin-bottom:12px}
.journal-status-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.journal-form .journal-status-card{display:flex;flex-direction:row;align-items:center;gap:12px;padding:16px 12px;min-height:82px;border:2px solid #d7e0da;border-radius:19px;background:#fff;cursor:pointer;box-sizing:border-box}
.journal-form .journal-status-card:has(input:checked){border-color:#245f49;background:#edf4ef}
.journal-form .journal-status-card input{width:20px;height:20px;padding:0;margin:0;accent-color:#245f49;flex-shrink:0}
.journal-status-card span{min-width:0}
.journal-status-card strong{display:block;font-size:1rem;color:#22352b}
.journal-status-card small{display:block;font-size:.85rem;color:#77837b;line-height:1.4;margin-top:5px;overflow-wrap:anywhere}
.journal-status-card:focus-within{outline:3px solid #54a28a;outline-offset:3px}

@media(max-width:360px){.journal-form .journal-status-card{gap:7px;padding:13px 8px}
.journal-status-card strong{font-size:.92rem}
.journal-status-card small{font-size:.78rem}
}


/* R37.23: R37.20 plant layout; remove only the free commentary. */
body.agri-mode-on #weatherPlainSummary .weather-summary-head,
body.agri-mode-on #weatherSummaryText{display:none!important}

body.agri-mode-on #weatherPlainSummary{display:none!important}


/* R37.27 compact mobile chart controls: two columns, two rows. */
.forecast-legend-clear.mobile{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  padding:8px;
}

.forecast-legend-clear.mobile>.forecast-layer-toggle{
  grid-column:auto;
  min-width:0;
  min-height:44px;
  padding:8px;
  gap:6px;
}

.forecast-legend-clear.mobile>.forecast-layer-toggle .legend-swatch{
  flex:0 0 16px;
  width:16px;
}


/* R37.29: source details beside their card heading */
.source-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

.source-heading>.info-inline{flex-shrink:0}


/* R37.37 — responsive current conditions, including enlarged system text. */
.current-main-copy { min-width: 0; }

@media (max-width: 860px) {
  .current-main {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
  }

  .current-main > .current-icon { font-size: 40px; }

  .current-main-copy, .current-temp-block { min-width: 0; max-width: 100%; }

  .current-main-copy .temp-sun-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .current-temp-line {
    width: 100% !important;
    flex-wrap: wrap !important;
    gap: 4px 8px !important;
  }

  .current-temp { font-size: clamp(28px, 8vw, 40px); }

  .current-feels { white-space: normal; overflow-wrap: anywhere; }

  .current-temp-line .live-pill-mobile {
    margin-left: auto !important;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .current-main-copy .sun-compact-set {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin: 0;
    gap: 4px;
  }

  .sun-compact-set .sun-compact-item { min-width: 0; }

  .sun-compact-set .sun-compact-top { flex-wrap: wrap; gap: 3px; }

  .sun-compact-set .sun-compact-top b { font-size: 12px; }

  .sun-compact-set .sun-compact-label {
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    line-height: 1.25;
  }

}


/* R37.38 — device-independent fog symbol. */
.weather-fog-symbol { display:inline-block; width:1.18em; height:1.18em; vertical-align:middle; overflow:visible; }


/* R37.39 — current threshold warning, distinct from official alerts. */
.current-threshold-warning {margin-top:12px;padding:12px;border:1px solid #e6b666;border-radius:12px;background:#fff4df;color:#664410;font-size:12px;}

.current-threshold-warning ul {list-style:none;padding:0;margin:8px 0;display:grid;gap:7px;}

.current-threshold-warning li {display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;}

.current-threshold-warning small {opacity:.85;}


.threshold-signal-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:8px;}


/* R37.40 — moon glyph cannot cover the illumination value. */
.moon-phase-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  font-size: 20px;
  line-height: 1;
  overflow: hidden;
}

@media (max-width: 860px) {
  .sun-compact-set .moon-phase-item .sun-compact-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 4px;
  }

  .moon-phase-item .sun-compact-top b { display: block; white-space: nowrap; }

}

.phenology-history-dialog {width:min(560px,calc(100vw - 24px));max-height:85dvh;overflow:auto;border:1px solid #c9dfd0;border-radius:18px;padding:16px;box-sizing:border-box;}

.phenology-history-dialog::backdrop {background:rgba(18,39,30,.45);}

.phenology-history-dialog .history-editor {grid-template-columns:1fr;}

.threshold-origin-block {margin-top:8px;display:grid;gap:4px;}

.threshold-origin {font-size:11px;line-height:1.4;color:#466953;overflow-wrap:anywhere;}

.threshold-origin-note {display:block;font-size:11px;line-height:1.45;color:#5d675f;margin-top:5px;}

.threshold-explanation {font-size:11px;line-height:1.4;margin:8px 0 0;}

#currentThresholdNotice .current-threshold-warning {margin-top:0;}

.rainfed-note {display:block;font-size:10px;line-height:1.3;color:inherit;opacity:.85;}

/* R37.43: disease model absence is neutral; only forecast condition matches use amber. */
.disease-detail-card.neutral,.mini-gauge-card.neutral{background:rgba(225,234,231,.55);border-color:rgba(91,119,109,.25);color:var(--ink,#203a30)}

.disease-source{display:inline-block;font-size:.78rem;margin-top:.45rem;color:inherit;overflow-wrap:anywhere}

.disease-coverage-note,.plant-heat-coverage{display:block;font-size:.78rem;line-height:1.45;color:var(--muted,#61726b);margin:.5rem 0}

.disease-basis b{overflow-wrap:anywhere}

.season-care-card{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap;padding:1rem 1.2rem;background:rgba(230,240,231,.72)}

.season-care-card>div{flex:1 1 220px}
.season-care-card p{margin:.3rem 0;font-size:.9rem}
.season-care-card button{border-radius:16px;padding:.65rem .85rem;background:#e1ede3;color:#244a32;border:1px solid #bdd0c0}
.season-care-card small{flex-basis:100%;font-size:.8rem}
.season-care-card.hidden{display:none}

.counter-card{border:1px solid rgba(92,128,101,.25);border-radius:22px;padding:18px;background:var(--card,#f4f9f3);color:var(--ink,#19382e);min-width:0}

.counter-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.counter-card-head h4{font-size:1rem;margin:0;font-weight:600}
.counter-card-value{display:flex;align-items:baseline;gap:8px;margin:12px 0 6px}
.counter-card-value strong{font-size:2rem;font-weight:600;font-variant-numeric:tabular-nums}
.counter-card-value span,.counter-card>p,.counter-card-foot{color:var(--muted,#61726b)}
.counter-card>p{font-size:.85rem;margin:6px 0 14px}
.counter-card-foot{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;padding-top:10px;border-top:1px solid rgba(92,128,101,.2);font-size:.75rem}
.counter-card-foot small{font-size:inherit}

@media(max-width:540px){.counter-card{padding:16px}
.counter-card-value strong{font-size:1.8rem}
}


#infoDialog:has(.plant-photo-menu) { width:min(360px,calc(100vw - 28px)); }


/* R37.49: localized header actions, 50px visible icons. */
.top-actions .top-icon-tools{display:flex;align-items:center;gap:8px}

.topbar .top-icon-tools .icon-btn{width:60px!important;height:60px!important;min-width:60px;padding:5px;flex:0 0 60px;font-size:50px!important;line-height:1;display:flex;align-items:center;justify-content:center}

.topbar .top-icon-tools .icon-btn.hidden{display:none!important}

.topbar #gardenJournalBtn{background:transparent!important;border:0!important;box-shadow:none!important;color:#75b780;border-radius:0}

#gardenJournalBtn .logbook-icon{width:50px!important;height:50px!important;flex:0 0 50px}

#gardenJournalBtn .logbook-cover{fill:#94cd9d;stroke:#70a879;stroke-width:1.4}

#gardenJournalBtn .logbook-lines{stroke:#366b43}

#gardenJournalBtn .journal-icon-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media(max-width:760px){
 .topbar{display:flex;align-items:center;justify-content:space-between;gap:8px}

 .topbar .brand-block{flex:0 0 auto}

 .topbar .top-actions{display:flex;flex-direction:column;align-items:flex-end;gap:10px;min-width:0;flex:1 1 auto}

 .topbar .top-location-wrap{min-width:0;max-width:100%}

 .topbar .top-location-card{max-width:100%;box-sizing:border-box}

 .topbar .top-icon-tools{gap:4px}

}

@media(max-width:370px){.topbar .top-icon-tools{gap:0}
.topbar .top-icon-tools .icon-btn{min-width:56px;width:56px!important;flex-basis:56px;padding:3px}
}


/* R37.50: retain the tap area, reduce visible header icons to 43px. */
.topbar .top-icon-tools .icon-btn{font-size:43px!important}

#gardenJournalBtn .logbook-icon{width:43px!important;height:43px!important;flex-basis:43px}


/* R37.51: queued next-release size; hit targets stay large. */
.topbar .top-icon-tools .icon-btn{font-size:40px!important}

#gardenJournalBtn .logbook-icon{width:40px!important;height:40px!important;flex-basis:40px}


/* R37.53: cached forecasts are labelled historical and never trigger fresh advice. */
.offline-data-notice{padding:14px 18px;border-left:4px solid #b8872b}

body.offline-data #plantingAdvisorWrap,body.offline-data #plant72Outlook,body.offline-data #agriDecisionWrap,body.offline-data #decisionGrid,body.offline-data #agriRiskSummary,body.offline-data #plantDecisionMetrics,body.offline-data #seasonCareCard,body.offline-data #weatherPlainSummary,body.offline-data .foliar-compact,body.offline-data .current-card-scores{display:none!important}


body.offline-data .source-trust-summary,body.offline-data .source-score-row,body.offline-data #sourceConfidence{display:none!important}

.topbar .top-icon-tools .icon-btn{width:48px!important;height:48px!important;min-width:48px!important;flex:0 0 48px!important;padding:4px!important;font-size:32px!important}

#gardenJournalBtn .logbook-icon{width:32px!important;height:32px!important;flex:0 0 32px!important}

@media(max-width:370px){.topbar .top-icon-tools .icon-btn{width:45px!important;height:45px!important;min-width:45px!important;flex-basis:45px!important}
}


/* R37.57 — compact two-column daily threshold alerts on phones. */
@media (max-width: 760px) {
  #meteoSignalWrap { padding: 12px; }

  #meteoSignalWrap > h3 { font-size: 15px; margin: 0 0 9px; }

  #meteoSignals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }

  #meteoSignals .threshold-signal-card {
    min-width: 0; padding: 8px; border-left-width: 3px; border-radius: 11px;
    overflow-wrap: anywhere;
  }

  #meteoSignals .threshold-signal-top { gap: 4px; align-items: flex-start; }

  #meteoSignals .threshold-signal-level { padding: 3px 5px; font-size: 9px; letter-spacing: 0; white-space: normal; }

  #meteoSignals .threshold-signal-type { font-size: 9px; line-height: 1.35; }

  #meteoSignals .threshold-signal-card h4 { font-size: 12px; line-height: 1.35; margin: 6px 0 4px; }

  #meteoSignals .threshold-signal-card > strong { font-size: 14px; line-height: 1.3; }

  #meteoSignals .threshold-signal-meta { gap: 4px; margin-top: 6px; font-size: 10px; line-height: 1.35; }

  #meteoSignals .threshold-signal-meta span { min-width: 0; max-width: 100%; padding: 2px 5px; border-radius: 7px; box-sizing: border-box; }

  #meteoSignals .threshold-origin-block { margin-top: 5px; gap: 3px; }

  #meteoSignals .threshold-origin, #meteoSignals .threshold-origin-note,
  #meteoSignals .threshold-explanation { font-size: 10px; line-height: 1.4; }

}

body.agri-mode-on #forecastChart { display:none!important; }

#forecastChart .forecast-vpd-legend { display:block!important; }


/* R37.63 enlarged forecast; retain enough chart width to inspect hourly data. */
#forecastChart .forecast-interactive-wrap{cursor:zoom-in}

.forecast-zoom-dialog{width:min(1100px,96vw);max-width:96vw;max-height:94dvh;padding:20px;border:0;border-radius:22px;background:#f9fcfa;box-shadow:0 20px 70px #123a3440;overflow:auto}

.forecast-zoom-dialog::backdrop{background:#102c3073}

.forecast-zoom-header{display:flex;align-items:center;gap:14px;justify-content:space-between;margin-bottom:14px}

.forecast-zoom-header h2{font-size:20px;margin:0;color:#234a40}

.forecast-zoom-close{flex:0 0 42px;width:42px;height:42px;border:0;border-radius:50%;font-size:28px;background:#e4eee8;color:#234a40;cursor:pointer}

.forecast-zoom-scroll{position:relative;overflow-x:auto;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch}

.forecast-zoom-scroll .forecast-svg{min-width:900px;width:100%;height:auto}

.forecast-zoom-dialog .forecast-legend-clear{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}

@media(max-width:600px){.forecast-zoom-dialog{width:100vw;max-width:100vw;max-height:100dvh;padding:14px;box-sizing:border-box;border-radius:16px}
.forecast-zoom-header h2{font-size:17px}
.forecast-zoom-dialog .forecast-legend-clear{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* R37.67: precipitation explanation stays below the chart, collapsed initially. */
details.forecast-rain-disclosure { display: block; }

.forecast-rain-disclosure > summary {
  display: flex; align-items: center; gap: 8px; min-height: 36px;
  color: #345f78; font-size: 12px; cursor: pointer; list-style: none;
}

.forecast-rain-disclosure > summary::-webkit-details-marker { display: none; }

.forecast-rain-disclosure > summary::after {
  content: "⌄"; margin-left: auto; font-size: 18px; line-height: 1;
}

.forecast-rain-disclosure[open] > summary::after { content: "⌃"; }

.forecast-rain-disclosure > summary:focus-visible {
  outline: 2px solid #1f7a4d; outline-offset: 3px; border-radius: 5px;
}

.forecast-rain-disclosure-content { display: grid; gap: 7px; padding-top: 7px; }


/* R37.70: weather-only regional precipitation, loaded on request. */
#regionalRainCard[hidden],body.agri-mode-on #regionalRainCard{display:none!important}

#regionalRainCard{margin-top:20px}
#regionalRainCard p{margin:8px 0 14px}

.rain-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.rain-head h3{margin:0}

.rain-views{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.rain-views button{flex:1 1 90px;min-width:0;font-size:12px;padding:10px 6px}

.rain-time{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px;margin-top:12px}
.rain-time input{grid-column:1/-1;width:100%}
.rain-time output{font-size:13px}
#rainClose{padding:8px 14px}

@media(max-width:480px){.rain-views button{font-size:11px}
}


/* R37.70: sources stay behind one accessible information button. */
.rain-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

.rain-info{font-size:12px;line-height:1.6;background:#eaf2f5;border-radius:10px;padding:10px 12px;margin:10px 0}

.rain-info[hidden]{display:none}
.rain-info p{margin:6px 0}
.rain-info a{color:#245a70}
.rain-place-label{background:transparent!important;border:0!important;box-shadow:none!important;color:#3c555e!important;font-size:12px!important;text-shadow:0 1px 2px #f3f4ed,1px 0 2px #f3f4ed}

.rain-place-label:before{display:none!important}

/* R37.71: consistent action icon and readable precipitation key. */
#regionalRainOpen{display:inline-flex;align-items:center;justify-content:center;gap:8px}

#regionalRainOpen svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round;flex:none}

.rain-legend-row{display:flex;flex-wrap:wrap;gap:5px 10px;align-items:center}

.rain-legend-row>span:first-child{font-weight:700;min-width:48px}

.rain-legend-item,.rain-legend-extra>span{display:inline-flex;align-items:center;gap:4px}

.rain-legend-extra{display:flex;flex-wrap:wrap;gap:5px 12px}

.rain-swatch{display:inline-block;flex:none;width:16px;height:10px;border:1px solid #6b8796;border-radius:3px;background:#69b5e2}

.rain-swatch.rain.level-1{background:#318fc8}
.rain-swatch.rain.level-2{background:#126da8}
.rain-swatch.rain.level-3{background:#06446c}

.rain-swatch.snow{background-color:#c2a5df;background-image:repeating-linear-gradient(135deg,transparent 0 4px,#68458eaa 4px 6px)}

.rain-swatch.snow.level-1{background-color:#aa86d0}
.rain-swatch.snow.level-2{background-color:#8962b5}
.rain-swatch.snow.level-3{background-color:#62418f}

.rain-swatch.mixed{background:repeating-linear-gradient(135deg,#aa86d0 0 4px,#4f3676 4px 6px)}

.rain-swatch.dry{background:#f3f4ed}
.rain-swatch.unknown{background:#929ba1}

/* R37.72: folded map beside the journal, compact soft header action. */
.topbar .top-icon-tools #regionalRainOpen{width:44px!important;height:44px!important;min-width:44px!important;flex:0 0 44px!important;padding:5px!important;background:transparent;border:0;border-radius:14px;box-shadow:none;transition:background .18s ease}

.topbar #regionalRainOpen img{display:block;width:34px;height:34px;filter:drop-shadow(0 2px 2px #244f3920)}

.topbar #regionalRainOpen:hover{background:#84ba9d18}

.topbar #regionalRainOpen[hidden]{display:none!important}

.topbar #regionalRainOpen:disabled{opacity:.45}

@media(max-width:370px){.topbar .top-icon-tools{flex-wrap:wrap;justify-content:flex-end;max-width:100%}
}

/* R37.76: local-day separators and names follow playback. */
.rain-time .rain-calendar{grid-column:1/-1;position:relative;padding-top:4px;min-width:0}

#rainDayBands{position:absolute;left:9px;right:9px;top:0;height:29px;overflow:hidden;border-radius:5px;pointer-events:none}

.rain-day-band{position:absolute;height:100%;background:#e2ebef;border-left:1px solid #7896a5}

.rain-day-band:nth-child(even){background:#edf3f6}

.rain-day-band[data-current=true]{background:#cee2eb}

.rain-time .rain-calendar input{position:relative;display:block;margin:0;height:23px;width:100%;z-index:1;accent-color:#226b8a}

.rain-day-labels{position:relative;height:26px;margin:4px 9px 0;font-size:12px;line-height:22px}

.rain-day-name{position:absolute;transform:translateX(-50%);white-space:nowrap;color:#496674}

.rain-day-name[aria-current=date]{color:#174f68;font-weight:700;text-decoration:underline;text-underline-offset:4px}

.rain-time output{font-variant-numeric:tabular-nums}

/* Intensity bars share the actual rain/snow palette. */
.rain-legend-scale{display:grid;grid-template-columns:48px minmax(0,1fr);gap:8px;align-items:start}

.rain-legend-heading{font-weight:700;padding-top:1px}

.rain-intensity-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;min-width:0}

.rain-intensity-segment{display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center;min-width:0;font-size:11px;line-height:1.3}

.rain-intensity-segment .rain-swatch{width:100%;height:9px;display:block;border:0;border-radius:0}

.rain-intensity-segment:first-child .rain-swatch{border-radius:5px 0 0 5px}

.rain-intensity-segment:last-child .rain-swatch{border-radius:0 5px 5px 0}

.rain-day-labels{height:32px;font-size:12px;line-height:26px}

.rain-day-name{max-width:32%;overflow:hidden;text-overflow:ellipsis}

.rain-day-name[aria-current=date]{background:#d9eaf0;border-radius:7px;padding:0 5px}

@media(max-width:480px){.rain-day-labels{font-size:11px}
.rain-day-name{max-width:34%}
}
.chill-range-label{margin:5px 0}
.chill-range-track{position:relative;height:10px;border-radius:8px;background:#e0e7e3;overflow:hidden;margin:7px 0}
.chill-range-band{position:absolute;height:100%;background:#b5cdbf}
.chill-range-fill{position:absolute;left:0;top:0;height:100%;background:#398366;border-radius:8px}


/* R37.88: clear accumulated-time vs reference-range distinction. */
.chill-range-track{height:20px;background:#edf2f7;border:2px solid #41536b;border-radius:6px;box-shadow:inset 0 1px 2px #172b4d20}

.chill-range-band{background:repeating-linear-gradient(135deg,#ffcc45 0 5px,#ffeaa0 5px 10px);z-index:2;opacity:.95}

.chill-range-fill{background:#0067d8;border-radius:3px;z-index:3;top:3px;height:10px;box-shadow:0 0 0 1px #fff}

.chill-range-marker{position:absolute;top:0;bottom:0;width:3px;background:#754500;z-index:4}

.chill-range-key{display:flex;gap:6px 12px;flex-wrap:wrap;margin:8px 0;font-size:11px;font-weight:650;color:#20384d}
.chill-range-key>span{display:inline-flex;align-items:center;gap:5px}
.chill-range-key i{display:inline-block;width:12px;height:10px;border:1px solid #41536b;border-radius:2px;flex:none}
.chill-key-fill{background:#0067d8}
.chill-key-range{background:repeating-linear-gradient(135deg,#ffcc45 0 3px,#ffeaa0 3px 6px)}

.current-share-btn[aria-busy="true"]{opacity:.55;cursor:progress}


/* R37.91 ornamental care replaces crop production assessments for these groups. */
body.ornamental-active :is(#plantingAdvisorWrap,#harvestForecastWrap,#plantDecisionMetrics,#plant72Outlook,#agriRiskSummary,#agriThresholdSignalWrap,#todayInGarden,#cropDiseaseWrap,#agriDecisionWrap,#plantCounters,#plantCountersToggle,#seasonCareCard){display:none!important}

body.ornamental-indoor :is(#plantVpdPanel,#plantDewToggle,#plantDewRisk){display:none!important}

#ornamentalCare{border:1px solid #6fa18e;padding:20px;background:linear-gradient(135deg,rgba(93,145,114,.13),transparent 70%)}

@media(max-width:650px){#ornamentalCare{padding:16px}
}

.chill-simple-track{height:14px;border:0;box-shadow:none;border-radius:7px;overflow:hidden;background:#e6eeea}

.chill-simple-fill{display:block;height:100%;border-radius:7px;background:#318cb8}

.chill-simple-scale{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted);margin-top:6px}

.chill-simple-reference{display:flex;justify-content:space-between;flex-wrap:wrap;align-items:baseline;gap:7px 12px;border-top:1px solid var(--border);padding-top:15px;margin-top:14px;line-height:1.5}

.chill-simple-reference>span{color:var(--text);overflow-wrap:anywhere}

.chill-simple-reference strong{font-size:17px;white-space:nowrap}

.chill-simple .chill-simple-status{margin:13px 0 8px;padding:10px 11px;border-radius:10px;font-size:12px;line-height:1.5;font-weight:650;background:#e9eff4;color:#29465a}

.chill-simple .chill-simple-status.below,.chill-simple .chill-simple-status.partial{background:#fff3d4;color:#78500a}

.chill-simple .chill-simple-status.within{background:#e5f3e9;color:#245c3b}

.chill-simple .chill-simple-variety{font-size:12px;line-height:1.5;color:var(--muted);margin:8px 0}

.chill-simple-details{font-size:11px;line-height:1.6;margin:12px 0}
.chill-simple-details summary{cursor:pointer;min-height:28px}
.chill-simple-details p{line-height:1.6}

@media(max-width:650px){.chill-simple-reference{display:grid;gap:4px}
.chill-simple-reference strong{font-size:16px}
}

@media(max-width:350px){.chill-simple .chill-simple-status{padding:8px;font-size:12px}
}
 .care-context{font-weight:600}
.care-advice{line-height:1.6}
.care-liability{display:block;font-size:12px;line-height:1.55;opacity:.85;margin-top:12px}
.care-sources{font-size:12px;margin-top:10px}
.care-sources a{display:block;margin-top:8px;overflow-wrap:anywhere}


/* R37.106: distinct freeze hatching, also legible in night theme. */
.dew-freeze-legend{display:inline-flex;align-items:center;gap:5px}
.dew-freeze-legend i{display:inline-block;width:18px;height:12px;border:1px solid #8764c4;background:repeating-linear-gradient(135deg,rgba(135,100,196,.18) 0 3px,#8764c4 3px 4px,rgba(135,100,196,.18) 4px 7px);border-radius:2px}


/* R37.112 — garden logbook banner, scoped to the journal title. */
#infoDialog:has(.garden-journal) .journal-head{min-height:130px;padding:18px 48px 18px 18px;border-radius:14px;background-color:#f4f8f4;background-image:linear-gradient(90deg,#f4f8f4 0%,rgba(244,248,244,.96) 24%,rgba(244,248,244,.70) 43%,rgba(244,248,244,0) 64%),url('./assets/journal-banner-r37-112.webp');background-size:cover;background-position:center right}

#gardenJournalPanel .journal-head h2{color:#203a2c;line-height:1.3;text-shadow:0 1px 5px #f4f8f4}

#gardenJournalPanel .journal-head small{color:#53695b}

@media(max-width:420px){#infoDialog:has(.garden-journal) .journal-head{min-height:120px;padding-left:14px;background-position:62% center}
#gardenJournalPanel .journal-head h2{max-width:220px}
}


/* R37.113 — approved sage location, settings and help controls. */
.topbar #settingsBtn,.topbar #helpBtn{background:transparent!important;border:0!important;box-shadow:none!important;color:#639b71}

.topbar #settingsBtn svg,.topbar #helpBtn svg{width:30px;height:30px;flex:0 0 30px;display:block}

.topbar #topLocationCard{background:#f0f7f1;border:1px solid #b5d0ba;box-shadow:none;color:#203a2c}

.topbar #topLocationCard .top-location-icon{display:flex;align-items:center;justify-content:center;color:#639b71}

.topbar #topLocationCard .top-location-icon svg{width:27px;height:30px;flex:0 0 27px;display:block}

.topbar #topLocationName{color:#203a2c}
.topbar #topLocationCoords,.topbar #topLocationCard .top-location-caret{color:#557660}

.topbar #settingsBtn:focus-visible,.topbar #helpBtn:focus-visible,.topbar #topLocationCard:focus-visible{outline:3px solid #397348;outline-offset:2px}


/* R37.116: reminder controls share the app's secondary action style. */
.garden-journal .journal-remind-check{display:inline-flex;align-items:center;gap:9px;min-height:44px;max-width:100%;flex-wrap:wrap;border:0;border-radius:14px;padding:13px 16px;background:var(--green2);color:var(--green);font-weight:700;}

.garden-journal .journal-remind-check small{color:inherit;font-weight:400;}

.garden-journal .journal-remind-check:focus-within{outline:3px solid #54a28a;outline-offset:3px;}


/* R37.117: show the complete journal artwork without cropping or stretching. */
#infoDialog:has(.garden-journal) .journal-head{box-sizing:border-box;width:100%;min-height:0;aspect-ratio:1400 / 470;padding:10px 48px 10px 14px;background-image:url('./assets/journal-banner-r37-112.webp');background-size:contain;background-position:center;background-repeat:no-repeat;}

#gardenJournalPanel .journal-head>div{width:46%;min-width:0;}

#gardenJournalPanel .journal-head h2{max-width:none;font-size:clamp(18px,4vw,22px);margin:4px 0;overflow-wrap:normal;}

@media(max-width:420px){#infoDialog:has(.garden-journal) .journal-head{min-height:0;padding:8px 34px 8px 12px;background-position:center;}
#gardenJournalPanel .journal-head small{font-size:10px;}
}


/* R37.137: four icon-only app sharing destinations in the existing green palette. */
.app-share-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;}

.app-share-icon svg{display:block;width:24px;height:24px;flex:none;}


/* R37.138: short botanical note inside the existing weather comment. */
.daily-botany:not([hidden]){display:block;margin-top:12px;padding-top:10px;border-top:1px solid currentColor;text-align:start;opacity:1}

.daily-botany-heading{display:block;font-size:.94em;line-height:1.45}

.daily-botany-text{display:block;margin-top:4px;line-height:1.55}

.daily-botany-source{display:inline-block;max-width:100%;margin-top:5px;font-size:.76em;line-height:1.5;color:inherit;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}

.daily-botany-source:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:3px}


/* R37.148: native SDK banners occupy reserved space in the content flow. */
[data-web-ad-slot].native-banner-slot{display:flex;flex-direction:column;gap:5px;padding:16px 0;min-height:0;border:0;background:transparent;overflow:hidden;margin:8px 0}

[data-web-ad-slot].native-banner-slot.hidden{display:none}

[data-web-ad-slot].native-banner-slot>.native-ad-label{font-size:9px;color:#657569;border:0;padding:0;letter-spacing:.04em;font-weight:500}

[data-web-ad-slot] .native-ad-surface{width:100%;height:50px;min-height:50px;display:block}


/* R37.149: weather sources follow the comment, before the botanical divider. */
.weather-comment-sources{display:block;margin-top:8px;line-height:1.45}

.weather-comment-sources .insight-source-evidence{display:block;margin:4px 0 0;font-size:11px;overflow-wrap:anywhere}

.weather-comment-sources .insight-source-evidence>span{margin-right:6px}


/* R37.150: location-wide seasonal planting options. */
#seasonalPlantingOptions h3{margin:0 0 10px;font-size:1.08rem}

#seasonalPlantingOptions p{line-height:1.55}

.seasonal-planting-list{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:12px 0}

.seasonal-planting-list li{padding:7px 12px;border:1px solid var(--border);border-radius:18px;background:var(--soft);color:var(--green);font-weight:700;overflow-wrap:anywhere;max-width:100%}

.seasonal-planting-source{border-top:1px solid var(--border);padding-top:8px;margin-bottom:0}


/* R37.151: this location-wide card is the first content below the tabs. */
.seasonal-planting-list li small{display:block;font-size:10px;font-weight:400;line-height:1.35;margin-top:3px;color:var(--muted)}

.seasonal-calendar-sources summary{cursor:pointer;font-size:12px;font-weight:700;color:var(--green)}

.seasonal-calendar-sources a{display:block;font-size:12px;margin-top:7px;overflow-wrap:anywhere;color:var(--green)}


/* R37.152: compact planting groups, explanation and attribution in (i). */
.planting-options-head{display:flex;align-items:center;justify-content:space-between;gap:10px}

#seasonalPlantingOptions .planting-options-head h3{margin:0}

.planting-options-head .info-inline{flex:0 0 auto}

.planting-category{padding:10px 0;border-top:1px solid var(--border)}

.planting-category>summary{cursor:pointer;font-weight:700;color:var(--green);min-height:30px}

.planting-category>summary small{float:right;font-weight:400;color:var(--muted);margin-left:8px}

.planting-category p{margin-bottom:0}

.reproductive-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}


/* R37.155: one collapsed location-wide row, one category visible when open. */
#seasonalPlantingOptions{padding:0;margin-bottom:14px}

.planting-options-compact>summary{list-style:none;padding:10px 12px;min-height:44px;box-sizing:border-box;cursor:pointer}

.planting-options-compact>summary::-webkit-details-marker{display:none}

.planting-options-title{flex:1;min-width:0;font-size:14px;font-weight:700;overflow-wrap:anywhere}

.planting-options-action{flex:0 0 auto;font-size:12px;color:var(--green)}

.planting-options-compact .planting-options-hide,.planting-options-compact[open] .planting-options-show{display:none}

.planting-options-compact[open] .planting-options-hide{display:inline}

.planting-options-body{border-top:1px solid var(--border);padding:12px}

.planting-options-body .planting-category{border:0;padding:0}

.planting-category[hidden]{display:none!important}

.planting-options-body .seasonal-planting-list{margin-bottom:0}

.planting-options-compact>summary:focus-visible{outline:2px solid var(--green);outline-offset:2px;border-radius:12px}


/* R37.157: plain, selectable group names in one row. */
.planting-group-buttons{display:grid;grid-template-columns:1.1fr 1fr 1.3fr .85fr .85fr;gap:5px;margin-bottom:10px}

.planting-group-button{min-width:0;min-height:44px;padding:6px 0;border:0;border-radius:0;background:none;color:var(--muted);font:inherit;font-size:clamp(10px,2.7vw,13px);font-weight:600;line-height:1.35;white-space:normal;overflow-wrap:normal;cursor:pointer;box-shadow:none;text-align:center}

.planting-group-button[aria-pressed="true"]{background:none;color:var(--green);font-weight:700;text-decoration:none}

.planting-group-button:focus-visible,.plant-age-inputs input:focus-visible{outline:2px solid var(--green);outline-offset:2px}



/* Matching crops are text under the selected group, without pills. */
.planting-options-body .seasonal-planting-list{display:block;margin:8px 0 0;padding:0;line-height:1.6}

.planting-options-body .seasonal-planting-list li{display:inline;padding:0;border:0;border-radius:0;background:none;color:var(--text);font-weight:400;font-size:13px;overflow-wrap:normal}

.planting-options-body .seasonal-planting-list li:not(:last-child)::after{content:", "}


@media(max-width:360px){.planting-group-button{font-size:9px}
}


/* R37.158: approved thick light-green pencil strokes follow each label. */
.planting-group-word{display:inline-block;position:relative;isolation:isolate;max-width:100%}

.planting-group-pencil{position:absolute;inset:-.18em -.2em;width:calc(100% + .4em);height:calc(100% + .36em);z-index:-1;color:#b4d987;pointer-events:none;opacity:.78}

.planting-group-pencil path{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}

.planting-group-pencil .planting-pencil-wash{stroke-width:9;opacity:.24}

.planting-group-pencil .planting-pencil-lines{stroke-width:2.3;opacity:.85}

.planting-group-button[aria-pressed="true"] .planting-group-pencil{opacity:.95}


/* R37.160: explicit vegetable planting intent, no dropdown. */
.vegetable-record-fields { border: 1px solid var(--line, #dbe8df); border-radius: 12px; padding: 10px 12px; margin: 8px 0; min-width: 0; }

.vegetable-record-fields[hidden] { display: none !important; }

.vegetable-record-fields legend { font-size: .9rem; font-weight: 600; }

.vegetable-record-fields label { display: flex; flex-direction: row; align-items: center; gap: 8px; min-height: 44px; margin: 0; font-size: .9rem; }

.vegetable-record-fields input[type="radio"] { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; padding: 0; accent-color: #23764c; }

.vegetable-record-fields p { margin: 6px 0 0; }

.vegetable-record-fields p:empty { display: none; }

.vegetable-record-fields .planting-record-blocked { color: var(--warning, #a74719); font-weight: 600; }


/* R37.161: searchable plant names inside the botanical comment. */
.daily-botany-plant{color:inherit;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}

.daily-botany-plant:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:3px}


/* R37.164: native notification actions use the shared soft green controls. */
.weather-push-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}

.weather-push-actions [data-weather-push-status]{flex-basis:100%;margin:0 0 2px;color:var(--muted);font-size:13px;line-height:1.5}

/* Transparent native control keeps focus, required/min/max and ISO submission. */
.local-date-control{position:relative;display:flex!important;align-items:center;gap:12px;box-sizing:border-box;width:100%;min-width:0;min-height:48px;padding:12px 14px;background:#fff;border:1px solid #d7e0da;border-radius:14px;color:#20362b;font:inherit;line-height:1.4;text-align:start}

.local-date-control:focus-within{outline:2px solid #34795a;outline-offset:1px}

.local-date-display{flex:1;min-width:0;white-space:nowrap;direction:ltr;text-align:start}

.local-date-icon{width:20px;height:20px;flex:0 0 20px;color:#34795a}

.local-date-icon svg{display:block;width:100%;height:100%}

.local-date-control>input{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;opacity:0!important;cursor:pointer;box-sizing:border-box!important}

.local-date-control.is-disabled{opacity:.6}


/* R37.181: per-day agreement gets its own right-aligned row. */
#sourceConfidence { display: none; }

.forecast-agreement-row { display: flex; justify-content: flex-end; margin: -2px 0 3px; min-height: 18px; }

.forecast-day-agreement { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; line-height: 14px; white-space: nowrap; }

.forecast-day-agreement::before { content: "●"; font-size: 8px; }

.forecast-day-agreement.unavailable { background: var(--card); color: var(--muted); }

/* R37.182: one icon column, one text column and equal row spacing. */
.forecast-card-metrics { display: grid; gap: 6px; margin-top: 8px; }

.forecast-card-metrics .weather-line { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 8px; align-items: start; margin: 0; line-height: 18px; }

.forecast-metric-icon { display: inline-block; width: 18px; text-align: center; }

.forecast-rain-scope { position: static; margin: 0; padding-left: 26px; font-size: 11px; line-height: 14px; text-align: left; color: var(--muted); overflow-wrap: anywhere; }


/* R37.183: approved sage day/night current card, botanical icons and aligned gauges. */
.current-card:not(.current-night){--text:#355743;--muted:#607264;--border:#d2dfcd;--current-needle:#347653;background:#eef4e9;color:#355743}

.current-card.current-night{--text:#eef5ef;--muted:#c0d0c5;--border:#496055;--current-needle:#a5d0b7;background:#172a27;color:#eef5ef;border-color:#496055}

.current-card:not(.current-night) .current-metrics .metric-card{background:#fcfdf9;border-color:#d2dfcd}

.current-card.current-night .current-metrics .metric-card{background:#293f38;border-color:#496055}

.current-night .info-inline{background:#354e43;border-color:#496055;color:#eef5ef}

.current-night .current-feels strong,.current-night .sun-compact-top,.current-night .metric-title,.current-night .metric-copy>b{color:#eef5ef}

.current-night .wind-card-direction{background:transparent;color:#c0d0c5}

.current-night .wind-card-direction small{color:#c0d0c5}

.current-metrics .metric-card-head{padding-right:0;min-height:36px;align-items:center!important;gap:6px}

.current-metrics .metric-title{min-width:0;min-height:36px;flex:1;gap:6px!important;justify-content:flex-start;text-align:left}

.current-metrics .metric-title .current-metric-label{font-size:inherit;color:inherit;line-height:1.15;display:block;min-width:0}

.current-metrics .metric-card-head>.info-inline{align-self:center;flex-shrink:0}

.current-metrics .current-metric-art{display:flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px}

.current-metrics .current-metric-art img{display:block;width:36px;height:36px;max-width:none;flex-shrink:0;object-fit:contain}

.current-metrics .current-nature-art{display:block;width:32px;height:32px;flex:0 0 32px;background-image:url("./assets/current-nature-r37-183.webp");background-size:400% 100%;background-repeat:no-repeat}

.current-nature-humidity{background-position:0% 50%}

.current-nature-wind{background-position:66.666667% 50%}

.current-nature-gust{background-position:100% 50%}

.current-metrics .metric-card{grid-template-rows:36px minmax(0,1fr);gap:4px}

.current-metrics .metric-card-body{display:grid;grid-template-columns:1fr;grid-template-rows:64px 53px;gap:4px;align-items:start;margin:0}

.current-metrics .metric-copy{display:grid;grid-template-rows:25px 25px;gap:4px;min-height:0}

.current-metrics .current-metric-value-line{display:flex;align-items:baseline;gap:4px;white-space:nowrap}

.current-metrics .current-metric-value-line>b{font-size:18px;color:inherit;line-height:1.05}

.current-metrics .current-metric-unit{font-size:11px;color:var(--muted)}

.current-metrics .metric-level-chip{margin:0;align-self:start;justify-self:start}

.current-metrics .metric-dial,.current-metrics .metric-dial-svg{width:84px;height:53px;max-width:100%;justify-self:center;align-self:end}

.current-night .metric-dial-needle{stroke:#a5d0b7}

.current-night .metric-dial-center{fill:#a5d0b7}

.wind-combo-card .wind-card-direction{position:static;justify-content:flex-start;gap:5px;grid-row:3;margin:0}

.wind-combo-card .wind-card-direction-arrow,.wind-combo-card .wind-pointer-svg{width:18px;height:18px}

.wind-combo-card .wind-card-direction small{max-width:none;font-size:9px}

.metric-card.metric-wind{grid-template-rows:36px minmax(0,1fr) 18px}

.metric-card.metric-wind .metric-card-body{grid-row:2}


/* Direction stays beside the speed and level, underneath the information button. */
.current-metrics .metric-wind .metric-card-body{grid-template-columns:minmax(0,1fr) 62px;column-gap:4px}

.current-metrics .metric-wind .metric-copy{grid-column:1;grid-row:1}

.current-metrics .metric-wind .wind-card-direction{position:static;grid-column:2;grid-row:1;display:grid;justify-items:center;justify-content:center;align-content:start;gap:4px;width:62px;min-width:0;margin:0;padding-top:0;color:var(--text)}

.current-metrics .metric-wind .wind-card-direction-arrow,.current-metrics .metric-wind .wind-pointer-svg{width:32px;height:32px}

.current-metrics .metric-wind .wind-card-direction small{order:0;max-width:100%;font-size:11.5px;line-height:14px;font-weight:700;text-align:center;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;color:inherit}

.current-metrics .metric-wind .metric-dial{grid-column:1 / -1;grid-row:2}

.current-metrics .metric-wind .current-metric-value-line,.current-metrics .metric-wind .agreed-value-line{flex-wrap:wrap;column-gap:3px;row-gap:0}

@media(max-width:370px){
  .current-metrics .metric-wind .metric-card-body{grid-template-columns:minmax(0,1fr) 52px;column-gap:3px}

  .current-metrics .metric-wind .wind-card-direction{width:52px}

  .current-metrics .metric-wind .wind-card-direction small{font-size:10.5px;line-height:13px}

  .current-metrics .metric-wind .wind-card-direction-arrow,.current-metrics .metric-wind .wind-pointer-svg{width:30px;height:30px}

}



/* Fit each complete direction name on one line; never split the local wind name. */
.current-metrics .metric-wind .metric-card-body{grid-template-columns:minmax(0,1fr) 70px;column-gap:3px}

.current-metrics .metric-wind .wind-card-direction{width:70px;min-width:0}

.current-metrics .metric-wind .wind-card-direction small{font-size:11px;line-height:14px;white-space:nowrap;overflow-wrap:normal;word-break:normal;overflow:visible;max-width:none;letter-spacing:0}

@media(max-width:370px){
.current-metrics .metric-wind .metric-card-body{grid-template-columns:minmax(0,1fr) 62px;column-gap:2px}

.current-metrics .metric-wind .wind-card-direction{width:62px}

.current-metrics .metric-wind .wind-card-direction small{font-size:10px;line-height:13px;white-space:nowrap}

}


/* R37.190: reserve the complete speed/unit line before allocating direction space. */
.current-metrics .metric-wind .metric-card-body{grid-template-columns:max-content minmax(0,1fr)}

.current-metrics .metric-wind .wind-card-direction{width:100%}

.current-metrics .metric-wind .current-metric-value-line{flex-wrap:nowrap;align-items:baseline}

.current-metrics .metric-wind .current-metric-value-line>*{flex-shrink:0}

.threshold-grid input[readonly]{background:#eef3ef;color:#54665a}


/* R37.200: progressive notification settings; test controls never override hidden. */
.weather-push-actions [hidden]{display:none!important}

.weather-push-actions [data-weather-push-summary]{flex-basis:100%;margin:0;color:var(--muted);font-size:13px;line-height:1.5}

.weather-push-settings,.weather-push-troubleshooting{width:100%;min-width:0}

.weather-push-settings>summary,.weather-push-troubleshooting>summary{padding:12px 0;min-height:44px;box-sizing:border-box;cursor:pointer;font-size:14px;font-weight:600;color:var(--text);line-height:1.5}

.weather-push-settings>summary:focus-visible,.weather-push-troubleshooting>summary:focus-visible{outline:3px solid #90bda1;outline-offset:2px}

.weather-push-fold-content{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:4px 0 12px}

.weather-push-fold-content>p,.weather-push-fold-content>[data-weather-channel-shortcuts],.weather-push-fold-content>[data-weather-push-test-panel]{width:100%;min-width:0;margin:0;overflow-wrap:anywhere}

.weather-push-fold-content .settings-action-row{margin-top:10px}


/* R37.201: one city/nature icon preference shared with Android widgets.
   The chosen artwork is independent of the current-card day/night palette. */
.current-card .current-art-city{width:32px;height:32px;flex:0 0 32px;background-image:url("./assets/current-city-r37-201.webp");background-repeat:no-repeat;background-size:400% 100%}

.current-card .current-art-city > *{visibility:hidden}

.current-card .current-art-city[data-current-art="humidity"]{background-position:0% 50%}

.current-card .current-art-city[data-current-art="rainToday"]{background-position:33.333333% 50%}

.current-card .current-art-city[data-current-art="wind"]{background-position:66.666667% 50%}

.current-card .current-art-city[data-current-art="gust"]{background-position:100% 50%}


/* R37.204: approved Garden set; square center crops preserve source aspect ratio. */
.current-card .current-art-garden{width:32px;height:32px;flex:0 0 32px;background-image:url("./assets/current-garden-r37-204.png");background-repeat:no-repeat;background-size:400% auto}

.current-card .current-art-garden > *{visibility:hidden}

.current-card .current-art-garden[data-current-art="humidity"]{background-position:0% 50%}

.current-card .current-art-garden[data-current-art="rainToday"]{background-position:33.333333% 50%}

.current-card .current-art-garden[data-current-art="wind"]{background-position:66.666667% 50%}

.current-card .current-art-garden[data-current-art="gust"]{background-position:100% 50%}

#infoDialog:has(.settings-form) #closeDialog{display:flex;align-items:center;justify-content:center;box-sizing:border-box;top:28px;right:24px;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #c9ddce;border-radius:14px;background:#edf5ef;color:#245c3a;font-size:26px;line-height:1;z-index:6}

#infoDialog:has(.settings-form) .settings-head{min-height:52px;padding-right:56px}

@media(max-width:640px){#infoDialog:has(.settings-form) #closeDialog{top:22px;right:14px}
}


/* R37.208: information-only palm disease references alongside ornamental care. */
body.agri-mode-on.ornamental-active.palm-active #cropDiseaseWrap{display:block!important}


/* R37.235: plant forecast is headed by the dated timeline. */
body.agri-mode-on .forecast-section-heading{display:none}


/* R37.266: compact Tinman cards. Natural image height replaces the fixed
   artwork row; reserve the 32% visual scale in flow so nothing is clipped.
   Card widths, artwork scale, gauges and typography remain unchanged. */
.current-metrics .tinman-card{grid-template-rows:minmax(24px,max-content) auto;gap:2px;padding-top:8px;padding-bottom:10px}

.current-metrics .tinman-card .metric-card-head,.current-metrics .tinman-card .metric-title{min-height:24px}

.current-metrics .tinman-card .metric-card-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(50px,max-content) auto;column-gap:3px;row-gap:2px;align-content:start}

.current-metrics .tinman-card .metric-copy{grid-row:1;grid-column:1 / -1;grid-template-rows:25px auto}

.current-metrics .tinman-card .tinman-figure{grid-row:2;grid-column:1;width:100%;height:auto;max-height:96px;aspect-ratio:1;object-fit:contain;align-self:start;min-width:0;transform:scale(1.32);transform-origin:center top;margin-bottom:min(32%,30.72px);pointer-events:none}

.current-metrics .tinman-card .metric-dial{grid-row:2;grid-column:2;width:68px;height:43px;max-width:100%;justify-self:end;align-self:center}

.current-metrics .tinman-card .metric-dial-svg{width:100%;height:auto}

.current-metrics .tinman-card.metric-wind .metric-copy{grid-column:1}

.current-metrics .tinman-card.metric-wind .wind-card-direction{grid-column:2;grid-row:1;width:100%;min-width:0;justify-self:end}

@media(max-width:370px){.current-metrics .tinman-card .tinman-figure{max-height:82px;margin-bottom:min(32%,26.24px)}
}


.met-norway-credit{display:block;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.met-norway-credit a{color:inherit;text-decoration:underline}


.metric-level-chip.unknown{background:#e6e9e7;color:#65716a}
.metric-dial.unknown .metric-dial-value,.metric-dial.unknown .metric-dial-needle{display:none}


/* R37.263: explicit image priority while retaining the existing card crop. */
img.forecast-card-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}


/* Avoid exposing translated, partially initialized forecast layouts. */
body.app-booting main { visibility: hidden; }

/* Larger decorative tab icons, without changing button height or outer width. */
.view-tabs-wrap#agriModeBar,.view-tabs-wrap#agriModeBar .view-tabs,.view-tabs-wrap#agriModeBar .view-tab{overflow:visible}

.view-tabs-wrap#agriModeBar .view-tab{padding-inline-start:44px;padding-inline-end:8px}

.view-tabs-wrap#agriModeBar .view-tab::before{content:"";position:absolute;left:5px;top:-9px;width:40px;height:44px;background:center/contain no-repeat;pointer-events:none}

#weatherViewTab::before{background-image:url('./tab-weather.svg')!important}

.view-tabs #agriViewTab::before{background-image:url('./tab-garden.svg')!important}

@media(max-width:360px){.view-tabs-wrap#agriModeBar .view-tab{padding-inline-start:32px;padding-inline-end:4px}
.view-tabs-wrap#agriModeBar .view-tab::before{left:-2px;width:34px;height:40px}
}


/* R37.297: compact daily heading and a single dew disclosure group. */
.forecast-card .card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;flex-wrap:wrap}

.forecast-card .card-head>span{flex:1 1 160px;min-width:0;overflow-wrap:anywhere}

.forecast-card .card-head .forecast-agreement-row{flex:0 0 auto;margin:0;min-height:0}

.forecast-rain-empty p{margin:6px 0 0}

body.ornamental-indoor #plantDewGroup{display:none!important}


/* Release notes: current web version stays visible while details are folded. */
.release-notes-summary {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 44px;
  padding-right: 28px;
  cursor: pointer;
  list-style: none;
}

.release-notes-summary::-webkit-details-marker { display: none; }

.release-notes-summary::after {
  content: "›";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--muted);
}

.release-notes-disclosure[open] > .release-notes-summary::after { transform: translateY(-50%) rotate(90deg); }

.release-notes-summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }

.release-notes-body { display: grid; gap: 3px; padding-top: 8px; }


/* Optional notice does not cover navigation or unsaved forms. */
.android-update-notice { position:fixed;left:12px;right:12px;bottom:80px;z-index:1100;display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px;border:1px solid #207b53;border-radius:14px;background:#f3faf5;color:#164d35;box-shadow:0 4px 18px #0002;font-size:14px; }

.android-update-notice span { flex:1 1 160px; }

.android-update-notice a { color:#176343;font-weight:600; }

.android-update-notice button { border:0;background:transparent;color:inherit;padding:8px; }


/* R37.307 information popups */
.terrasky-info-popup{position:fixed;inset:auto;z-index:2147483000;box-sizing:border-box;width:min(360px,calc(100vw - 16px));max-height:min(520px,calc(100dvh - 16px));overflow:auto;padding:18px;border:1px solid var(--border,#c6d7cb);border-radius:18px;background:var(--card,#fff);color:var(--ink,#20382b);margin:0;box-shadow:0 10px 36px #0003;font-size:14px;line-height:1.5;overscroll-behavior:contain}

.terrasky-info-popup h2{font-size:17px;margin:0 26px 10px 0}
.terrasky-info-popup .info-modal-hero{padding:0}
.terrasky-info-popup .info-modal-icon{display:none}
.terrasky-info-popup a{overflow-wrap:anywhere;text-decoration:underline}
.info-popup-close{position:sticky;float:right;top:0;width:30px;height:30px;border:0;border-radius:50%;font-size:22px;cursor:pointer;background:var(--soft,#eef4ef);color:inherit}
.terrasky-info-popup :focus-visible{outline:2px solid var(--green,#207344);outline-offset:2px}


.insight-sources{display:inline-block;margin-left:8px;font-size:12px}
.insight-sources>summary{cursor:pointer;font-weight:700;color:var(--green);list-style:none}
.insight-sources>summary:after{content:" ⓘ"}


/* R37.308: consistent information popup typography and independent close control. */
.terrasky-info-popup{padding:18px;text-align:start;white-space:normal;overflow-wrap:anywhere}

.terrasky-info-popup .info-popup-close{position:absolute;float:none;inset:10px 10px auto auto;display:grid;place-items:center;padding:0;line-height:1;z-index:1}

.terrasky-info-popup .info-popup-content{min-width:0;padding-top:30px;text-align:start;white-space:normal}

.terrasky-info-popup .info-modal-hero{display:block;padding:0;margin:0 0 12px;text-align:start}

.terrasky-info-popup h2{margin:0 0 12px;font-size:17px;line-height:1.35;text-align:start}

.terrasky-info-popup .info-modal-section{min-width:0;margin-top:12px;padding:12px;gap:6px;text-align:start}

.terrasky-info-popup p{margin:0 0 10px;line-height:1.55;text-align:start}

.terrasky-info-popup .info-modal-section p{margin:0}

.terrasky-info-popup ul,.terrasky-info-popup ol{margin:8px 0;padding-inline-start:20px;text-align:start}

.terrasky-info-popup li+li{margin-top:6px}

.terrasky-info-popup .source-layer-row{flex-wrap:wrap;align-items:flex-start}

.terrasky-info-popup .info-popup-content>:first-child{margin-top:0}

.terrasky-info-popup .info-popup-content>:last-child{margin-bottom:0}


/* R37.324 V26: isolated, accessible Phase 1 preview layout; inactive while flag is off. */
#phase1SmartCareWrap { min-width: 0; }

#phase1SmartCareWrap > summary { cursor: pointer; overflow-wrap: anywhere; }

#phase1SmartCareContent { min-width: 0; overflow-wrap: anywhere; }

#phase1SmartCareContent .phase1-application { padding: 10px 0; border-bottom: 1px solid rgba(60,110,83,.12); }

#phase1SmartCareContent .phase1-application:last-of-type { border-bottom: 0; }

#phase1SmartCareContent li { line-height: 1.55; overflow-wrap: anywhere; }

#phase1SmartCareContent h4 { margin: 14px 0 8px; }

@media (max-width: 420px) { #phase1SmartCareContent { padding: 14px; }
 #phase1SmartCareContent ul { padding-inline-start: 22px; }
 }


/* Phase 1 compact Smart Care */
#phase1SmartCareContent .phase1-smart-hero{padding:12px;border-radius:12px;background:rgba(56,140,80,.09);overflow-wrap:anywhere}
#phase1SmartCareContent .phase1-smart-row{padding:10px 0;border-bottom:1px solid rgba(60,110,83,.12);overflow-wrap:anywhere}
#phase1SmartCareContent .phase1-smart-row:last-of-type{border-bottom:0}
#phase1SmartCareContent p{margin:5px 0;overflow-wrap:anywhere}
#phase1SmartCareWrap{min-width:0;max-width:100%}


/* R37.339: compact, objective microclimate calibration popup */
.feedback-calibration-hero { margin-bottom: 12px; }

.feedback-calibration-hero h2 { margin: 2px 0 0; }

.feedback-calibration-progress { background: var(--card, #f3f7f5); border: 1px solid rgba(38,126,85,.13); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; }

.feedback-calibration-progress-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .9rem; }

.feedback-calibration-progress-head span { color: #267c52; font-weight: 700; white-space: nowrap; }

.feedback-calibration-track { display: flex; gap: 5px; }

.feedback-calibration-segment { height: 7px; border-radius: 20px; flex: 1; background: #dbe5df; }

.feedback-calibration-segment.filled { background: #299365; }

.feedback-calibration-progress .small { line-height: 1.4; }

.feedback-calibration-progress + .feedback-correction-form { margin-top: 14px; }


/* R37.340: compact calibration badge and actual engine adjustment */
.microclimate-badge {border:1px solid #a9d9bf;background:#e8f5ed;color:#146e47;border-radius:999px;padding:3px 7px;font-size:11px;font-weight:700;white-space:nowrap;cursor:pointer;}

.microclimate-badge.hidden {display:none!important;}

.feedback-adjustment-card {margin-top:12px;padding:12px 14px;border:1px solid rgba(38,126,85,.18);border-radius:14px;background:var(--card,#f3f7f5);display:grid;gap:9px;}

.feedback-adjustment-values {display:grid;grid-template-columns:1fr 1fr;gap:8px;}

.feedback-adjustment-values>div {padding:10px;background:rgba(38,126,85,.07);border-radius:9px;display:grid;gap:4px;}

.feedback-adjustment-values small {font-size:12px;color:var(--muted,#66776d);}

.feedback-adjustment-values b {font-size:21px;color:#16794d;font-variant-numeric:tabular-nums;}

@media(max-width:420px){.microclimate-badge {font-size:10px;padding:2px 5px;}
}


/* R37.341 TerraSky calibration popup visual consistency */
.feedback-correction-form {gap:14px;}

.feedback-correction-form > label > span {font-weight:650;color:var(--text,#18372a);}

.feedback-correction-form input[type="number"],
.feedback-correction-form input[type="text"],
.feedback-correction-form select {box-sizing:border-box;width:100%;min-height:44px;padding:10px 13px;border:1px solid rgba(42,109,78,.23);border-radius:12px;background:var(--card,#fff);color:var(--text,#1c3025);font:inherit;outline:none;box-shadow:none;}

.feedback-correction-form input[type="number"]:focus,
.feedback-correction-form input[type="text"]:focus,
.feedback-correction-form select:focus {border-color:#299365;box-shadow:0 0 0 3px rgba(41,147,101,.13);}

.feedback-correction-form .feedback-exposure {border-radius:13px;overflow:hidden;border:1px solid rgba(42,109,78,.15);}

.feedback-correction-form .feedback-exposure label {border-radius:0;}

.feedback-correction-actions,.feedback-correction-actions button {width:100%;}

.feedback-correction-actions {display:block;margin-top:5px;}

.feedback-correction-actions .feedback-save-primary {display:block;width:100%;min-height:48px;border:0;border-radius:14px;background:#267c52;color:#fff;font:inherit;font-weight:700;cursor:pointer;box-shadow:none;}

.feedback-correction-actions .feedback-save-primary:focus-visible {outline:3px solid rgba(41,147,101,.35);outline-offset:2px;}

.feedback-correction-actions .feedback-save-primary:active {background:#17633e;}

@media(max-width:640px){.feedback-correction-actions{display:block;grid-template-columns:none;}
}


/* R37.343: constrain microclimate calibration icon to its tile */
.feedback-calibration-hero .feedback-calibration-icon{box-sizing:border-box;flex:0 0 42px;width:42px;height:42px;min-width:42px;min-height:42px;overflow:hidden;display:grid;place-items:center;padding:8px;background:var(--green2);border-radius:14px}

.feedback-calibration-hero .feedback-calibration-icon svg{display:block;width:24px;height:24px;max-width:100%;max-height:100%;flex-shrink:0;overflow:visible}


/* R37.345: compact microclimate calibration control; no external assets */
.micro-calibration-trigger{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:5px;border:1px solid #b8dec8;border-radius:10px;background:#e8f6ed;color:#176c45;cursor:pointer}

.micro-calibration-trigger:hover,.micro-calibration-trigger:focus-visible{background:#d9efdf;outline-offset:2px}

#quickFeedback .quick-feedback-icons.hidden,#quickFeedback .feedback-info{display:none!important}

.micro-calibration-dialog h2{margin:0 0 8px}
.micro-calibration-dialog p{margin:0 0 16px}

.micro-calibration-choices{display:flex;gap:8px;flex-wrap:wrap}

.micro-calibration-choice{flex:1;min-width:88px;border:1px solid #b8dec8;border-radius:10px;padding:12px 8px;background:#f2faf4;color:#176c45;font-weight:650;cursor:pointer}

.micro-calibration-choice.selected{background:#d8efdf;border-color:#288453}


/* R37.352 — local sunrise/sunset icon in the main current-weather slot */
.current-icon .weather-transition-icon { width: 100%; height: 100%; max-width: 104px; max-height: 104px; display: block; }


/* Local microclimate indicator for dew, fog and frost */
.dew-local-badge{display:inline-flex;align-items:center;gap:3px;padding:3px 8px;border-radius:999px;background:#e0f3e4;color:#246c42;font-size:11px;font-weight:650;white-space:nowrap;margin-left:auto}

.dew-calibration-note{font-size:12px;color:#246c42;background:#eef8ef;border-radius:10px;padding:8px 10px;margin:0 0 12px}


/* R37.358: calibration dialog close alignment and compact in-form explanation */
#infoDialog:has(.feedback-calibration-hero) .dialog-body{position:relative;padding-top:16px}

#infoDialog:has(.feedback-calibration-hero) #closeDialog{position:absolute;top:16px;right:16px;display:flex;align-items:center;justify-content:center;line-height:1;width:44px;height:44px;padding:0;margin:0;transform:none;z-index:2}

#infoDialog:has(.feedback-calibration-hero) .feedback-calibration-hero{padding-right:58px;min-height:44px;align-items:center}

.micro-calibration-explain{margin:12px 0;padding:9px 12px;border:1px solid #d6e6dd;border-radius:12px;background:#f7faf8;font-size:.86rem;line-height:1.45}

.micro-calibration-explain summary{cursor:pointer;display:flex;align-items:center;gap:8px;font-weight:650;list-style:none}

.micro-calibration-explain summary::-webkit-details-marker{display:none}

.micro-calibration-explain p{margin:8px 0 2px}

.micro-calibration-info-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 19px;width:19px;height:19px;border:1px solid #39835c;border-radius:50%;color:#246d46;font-size:12px;font-weight:700;font-style:normal}

.plant-72-item,.plant-timeline-vpd,.forecast-vpd-head{min-width:0;max-width:100%;box-sizing:border-box}


/* R37.369 final: align Settings close control with the Settings header icon. */
#infoDialog:has(.settings-form) #closeDialog{top:36px;right:30px;transform:none;margin:0}

@media(max-width:640px){#infoDialog:has(.settings-form) #closeDialog{top:24px;right:14px}
}

#phase1SmartCareContent, #phase1SmartCareContent * { box-sizing:border-box; }

#phase1SmartCareContent .phase1-timechart { width:100%; min-width:0; }

#phase1SmartCareContent .phase1-timeaxis,
#phase1SmartCareContent .phase1-timeline-row { grid-template-columns:minmax(88px,26%) minmax(0,1fr); gap:10px; min-width:0; }

#phase1SmartCareContent .phase1-timebar { min-width:0; }

#phase1SmartCareContent .phase1-timeline-first { overflow-wrap:anywhere; line-height:1.45; }

#phase1SmartCareContent .phase1-timeaxis-track { min-width:0; }

#phase1SmartCareContent .phase1-timelegend { align-items:center; row-gap:8px; }

@media(max-width:440px) {
 #phase1SmartCareContent .phase1-timeaxis,
 #phase1SmartCareContent .phase1-timeline-row { grid-template-columns:minmax(76px,27%) minmax(0,1fr); gap:8px; }

 #phase1SmartCareContent .phase1-timeaxis-track { font-size:9px; }

 #phase1SmartCareContent .phase1-timeline-name { overflow-wrap:anywhere; }

}

body.plant-layout-grouped .topbar{position:relative;top:auto;background:var(--bg)}


/* R37.390: forecast-local time ticks share the 72-hour bar scale. */
#phase1SmartCareContent .phase1-timeaxis-track{display:block;min-width:0;container-type:inline-size}

.phase1-axis-scale{position:relative;height:34px;width:100%}

.phase1-axis-tick{position:absolute;top:0;transform:translateX(-50%);display:grid;grid-template-rows:14px 14px;white-space:nowrap;text-align:center;font-variant-numeric:tabular-nums;font-size:10px;line-height:14px}

.phase1-axis-tick[data-edge="start"]{transform:none;text-align:left}
.phase1-axis-tick[data-edge="end"]{transform:translateX(-100%);text-align:right}

.phase1-axis-date{font-weight:600}
.phase1-axis-hour{opacity:.85}
.phase1-axis-12{display:none}

@container (max-width:570px){.phase1-axis-6{display:none}
.phase1-axis-12{display:block}
}

@container (max-width:260px){.phase1-axis-12 .phase1-axis-tick:nth-child(even):not([data-edge="end"]){display:none}
.phase1-axis-tick{font-size:9px}
}


/* R37.391: day bands use exact local midnight boundaries, independent of tick thinning. */
.phase1-day-track{position:relative;height:25px;width:100%;margin-bottom:3px}

.phase1-day-band{position:absolute;top:0;height:23px;border-bottom:2px solid #18774e;text-align:center;font-size:11px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box; padding:0 2px}

.phase1-day-band:not(:first-child){border-left:1px solid #7a9886}

#phase1SmartCareContent .phase1-axis-scale{height:19px}

#phase1SmartCareContent .phase1-axis-tick{display:block}

#phase1SmartCareContent .phase1-timebar{position:relative}

.phase1-day-divider{position:absolute;top:0;bottom:0;width:2px;transform:translateX(-50%);background:#294d3b;box-shadow:0 0 0 1px #fff8;pointer-events:none;z-index:2}

@container (max-width:260px){#phase1SmartCareContent .phase1-axis-12 .phase1-axis-tick:nth-child(even):not([data-edge="end"]){display:none}
.phase1-day-band{font-size:9px}
}


#phase1SmartCareContent .phase1-calendar-marker{position:absolute;min-height:0;height:100%;margin:0;box-sizing:border-box;top:0;bottom:0;z-index:3;border:2px solid #356db7;background:transparent;border-radius:2px;min-width:5px;padding:0;cursor:pointer}
#phase1SmartCareContent .phase1-calendar-marker[data-timed="1"]{width:6px;min-width:6px;background:#356db7;transform:translateX(-50%)}
.phase1-day-band:empty{padding:0}


.r324-debug-modal-slot { box-sizing:border-box; width:100%; min-height:88px; margin:14px 0; padding:10px 4px; display:flex; flex-direction:column; align-items:center; gap:5px; border-top:1px solid #d7e3da; }

.r324-debug-modal-slot .native-ad-label { font-size:10px; opacity:.65; }

.r324-debug-modal-slot .native-ad-surface { display:block; width:100%; min-height:60px; }

