:root {
  color-scheme: light;
  --ink: #142017;
  --muted: #5e6d5e;
  --line: rgba(29, 73, 43, 0.18);
  --paper: #f8f6e8;
  --panel: rgba(255, 255, 247, 0.94);
  --field: #eef2d5;
  --green: #567b0b;
  --green-deep: #050505;
  --green-soft: #e7f5bf;
  --yellow: #ff6a00;
  --yellow-bright: #8cc80b;
  --yellow-soft: #fff0b8;
  --red: #a13c32;
  --red-soft: #f9dedb;
  --blue: #3a6f8d;
  --blue-soft: #dcebf0;
  --shadow: 0 18px 48px rgba(18, 57, 31, 0.18);
  --inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.68) 0%, rgba(248, 246, 232, 0.78) 34%, rgba(248, 246, 232, 0.96) 70%),
    url("./assets/tractor-field-bg.png");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 96px auto auto 50%;
  z-index: 0;
  width: min(760px, 82vw);
  aspect-ratio: 1;
  background: url("../assets/trailblazer-logo.png") center / contain no-repeat;
  opacity: 0.05;
  transform: translateX(-50%);
  pointer-events: none;
}

.app-shell,
.site-footer {
  position: relative;
  z-index: 1;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 249, 220, 0.22);
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(12px);
  padding: 11px max(16px, calc((100vw - 1420px) / 2));
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff9dc;
  font-weight: 950;
  text-decoration: none;
}

.brand-link img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

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

.site-links a {
  border: 1px solid rgba(255, 249, 220, 0.35);
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff9dc;
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
}

.site-links a.active,
.site-links a:hover,
.site-links a:focus-visible {
  background: var(--yellow-bright);
  color: var(--green-deep);
  outline: 0;
}

.app-shell {
  width: min(1420px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  min-height: 142px;
  padding: 12px 0 18px;
  color: #fffdee;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.dashboard-logo {
  width: clamp(96px, 12vw, 150px);
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45));
}

.dashboard-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 230, 110, 0.38);
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
  background: rgba(250, 249, 232, 0.95);
  box-shadow: var(--shadow);
  padding: 16px;
}

.dashboard-intro span {
  display: block;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard-intro strong {
  display: block;
  margin-top: 5px;
  color: var(--green-deep);
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  line-height: 1.25;
}

.dashboard-intro p {
  border-left: 4px solid var(--yellow-bright);
  padding-left: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.4;
}

.tool-info-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 16px;
}

.how-to-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 247, 0.95);
  box-shadow: var(--shadow);
  padding: 12px 14px;
}

.how-to-card summary,
.quick-menu summary {
  cursor: pointer;
  color: var(--green-deep);
  font-weight: 950;
}

.how-to-card ol {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-weight: 720;
  line-height: 1.45;
}

.feedback-button,
.version-note {
  border: 1px solid rgba(140, 200, 11, 0.42);
  border-radius: 999px;
  background: rgba(255, 249, 220, 0.95);
  padding: 10px 14px;
  color: var(--green-deep);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  text-shadow: none;
}

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

.quick-menu {
  display: none;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 247, 0.96);
  padding: 12px 14px;
}

.quick-menu nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.quick-menu a {
  border-radius: 999px;
  background: var(--green-soft);
  padding: 8px 11px;
  color: var(--green-deep);
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
}

.site-footer {
  display: grid;
  gap: 6px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding: 16px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.4;
}

.site-footer a {
  color: var(--green-deep);
  font-weight: 950;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--yellow-bright);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
  max-width: 760px;
}

.status-pill {
  min-width: 112px;
  border: 1px solid rgba(140, 200, 11, 0.55);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.78);
  box-shadow: var(--inner-glow), 0 10px 28px rgba(0, 0, 0, 0.18);
  padding: 9px 14px;
  color: #fff4bf;
  font-weight: 700;
  text-align: center;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.home-link {
  border: 1px solid rgba(140, 200, 11, 0.55);
  border-radius: 999px;
  background: rgba(255, 249, 220, 0.94);
  padding: 9px 14px;
  color: var(--green-deep);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  text-shadow: none;
}

.control-band {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(760px, 1.3fr);
  gap: 14px;
  align-items: start;
  position: relative;
  overflow: visible;
  border: 1px solid rgba(255, 230, 110, 0.35);
  border-radius: 8px;
  background: rgba(250, 249, 232, 0.94);
  box-shadow: var(--shadow);
  padding: 14px;
}

.control-band::before,
.location-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--green-deep), var(--green), var(--yellow-bright), var(--green));
}

.location-form label,
.settings label {
  display: grid;
  gap: 7px;
  position: relative;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.settings label[hidden] {
  display: none;
}

.help-button {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  width: 22px;
  min-width: 22px;
  height: 18px;
  margin-left: 4px;
  place-items: center;
  border: 1px solid rgba(117, 89, 12, 0.36);
  border-radius: 4px;
  background:
    repeating-linear-gradient(0deg, rgba(117, 89, 12, 0.12) 0 1px, transparent 1px 4px),
    linear-gradient(135deg, #fff1a9, #d6bf54);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 238, 0.62),
    0 1px 2px rgba(18, 57, 31, 0.12);
  color: transparent;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
  vertical-align: middle;
}

.help-button::before {
  content: "?";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--green-deep);
  font-size: 0.8rem;
  font-weight: 950;
  line-height: 1;
  transform: translateY(-1px);
}

.help-button::after {
  content: attr(data-help);
  position: absolute;
  z-index: 140;
  left: 0;
  bottom: calc(100% + 8px);
  display: none;
  width: min(280px, 82vw);
  border: 1px solid rgba(31, 95, 47, 0.28);
  border-radius: 8px;
  background: #fffdf0;
  box-shadow: 0 12px 30px rgba(18, 57, 31, 0.18);
  padding: 10px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  pointer-events: none;
  text-transform: none;
}

.help-button:hover::after,
.help-button:focus-visible::after,
.help-button.is-open::after {
  display: none;
}

.help-tooltip {
  position: fixed;
  z-index: 2147483647;
  display: none;
  width: min(300px, calc(100vw - 28px));
  border: 1px solid rgba(31, 95, 47, 0.28);
  border-radius: 8px;
  background: #fffdf0;
  box-shadow: 0 16px 38px rgba(18, 57, 31, 0.28);
  padding: 10px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
  pointer-events: none;
  text-transform: none;
}

.help-tooltip.visible {
  display: block;
}

.setting-note {
  grid-column: 1 / -1;
  border: 1px solid rgba(196, 147, 22, 0.32);
  border-radius: 6px;
  background: #fff8d8;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.preset-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

input,
select {
  min-height: 42px;
  width: 100%;
  border: 1px solid rgba(31, 95, 47, 0.24);
  border-radius: 6px;
  background: #fffdf0;
  color: var(--ink);
  padding: 0 12px;
}

.input-row button {
  min-height: 42px;
  border-radius: 6px;
  background: linear-gradient(180deg, #2e7b3f, var(--green));
  box-shadow: var(--inner-glow);
  color: #fff8d2;
  padding: 0 18px;
  font-weight: 800;
}

.location-button {
  min-height: 38px;
  width: 100%;
  border: 1px solid rgba(31, 95, 47, 0.24);
  border-radius: 6px;
  background: linear-gradient(180deg, #fff9cf, #f2df7b);
  color: var(--green-deep);
  font-weight: 850;
}

.location-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.settings {
  display: grid;
  grid-template-columns: repeat(6, minmax(104px, 1fr));
  gap: 9px;
}

.unit-input {
  display: grid;
  grid-template-columns: 1fr 34px;
}

.unit-input input {
  border-radius: 6px 0 0 6px;
}

.unit-input span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 6px 6px 0;
  background: #efe6af;
  color: var(--muted);
  font-weight: 800;
}

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

.summary-tile,
.location-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.summary-tile {
  min-height: 94px;
  padding: 16px;
  border-top: 4px solid var(--yellow-bright);
}

.summary-label {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-value {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.05rem, 1.7vw, 1.65rem);
  line-height: 1.1;
  color: var(--green-deep);
}

.plan-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.emc-panel {
  margin-bottom: 16px;
}

.plan-card,
.emc-card {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 252, 230, 0.96), rgba(244, 240, 205, 0.95));
  box-shadow: var(--shadow);
  padding: 16px;
  border-top: 4px solid var(--green);
}

.plan-card span,
.emc-card span,
.hourly-grid > span,
.emc-grid > span,
.operation-heading,
.timeline-heading,
.windows-heading {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-card strong,
.emc-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.16rem;
  line-height: 1.25;
}

.plan-card p,
.emc-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: 14px;
}

.location-card {
  display: grid;
  position: relative;
  overflow: visible;
  gap: 14px;
  padding: 16px;
}

.location-head,
.best-window,
.metrics-row,
.window-row,
.day-cell {
  min-width: 0;
}

.location-card > *,
.best-window > *,
.insight-strip > *,
.metrics-row > *,
.operation-grid > *,
.window-row > *,
.hourly-grid > *,
.emc-grid > * {
  min-width: 0;
}

.location-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.place-region {
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.place-name {
  margin-top: 4px;
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--green-deep);
}

.ghost-button {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #efe6af;
  color: var(--green-deep);
  font-size: 1.2rem;
  font-weight: 900;
}

.best-window {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  padding: 14px;
  box-shadow: var(--inner-glow);
}

.best-window.green {
  background: linear-gradient(135deg, #cfe8bf, #f4e7a8);
}

.best-window.yellow {
  background: linear-gradient(135deg, #fff0b8, #f9dfa0);
}

.best-window.red {
  background: linear-gradient(135deg, #f9dedb, #f1c1ba);
}

.window-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.window-date {
  display: block;
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}

.bale-date {
  display: block;
  font-size: 1.35rem;
  text-align: right;
  overflow-wrap: anywhere;
}

.window-score {
  display: block;
  margin-top: -6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  text-align: right;
  overflow-wrap: anywhere;
}

.insight-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 118px), 1fr));
  gap: 8px;
}

.insight-strip div,
.hourly-grid,
.emc-grid,
.operation-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf0, #f6f1cf);
  padding: 10px;
}

.insight-strip span,
.operation-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.insight-strip strong {
  display: block;
  margin-top: 5px;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

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

.stress-yellow strong {
  color: var(--yellow);
}

.stress-red strong {
  color: var(--red);
}

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

.history-yellow strong {
  color: var(--yellow);
}

.history-red strong {
  color: var(--red);
}

.history-neutral strong {
  color: var(--muted);
}

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

.exit-yellow strong {
  color: var(--yellow);
}

.exit-red strong {
  color: var(--red);
}

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

.rain-yellow strong {
  color: var(--yellow);
}

.rain-red strong {
  color: var(--red);
}

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

.crop-yellow strong {
  color: var(--yellow);
}

.crop-red strong {
  color: var(--red);
}

.operation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.operation-grid .operation-heading {
  grid-column: 1 / -1;
  min-height: auto;
  border: 0;
  background: transparent;
  padding: 0;
}

.operation-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 1rem;
}

.operation-grid small {
  display: block;
  min-height: 32px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
  gap: 8px;
}

.metrics-row div {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf0, #f6f1cf);
  padding: 10px;
}

.metrics-row span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.metrics-row strong {
  display: block;
  margin-top: 7px;
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(10, minmax(74px, 1fr));
  gap: 6px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.timeline-heading {
  grid-column: 1 / -1;
}

.hourly-grid {
  display: grid;
  gap: 8px;
}

.hourly-grid div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.hourly-grid div:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.hourly-grid strong {
  flex: 0 0 auto;
}

.hourly-grid span:not(:first-child) {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  text-align: right;
}

.emc-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(74px, 1fr));
  gap: 6px;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.emc-grid > span {
  grid-column: 1 / -1;
}

.emc-day {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf0;
  padding: 8px;
}

.emc-day span,
.emc-day small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.emc-day strong {
  display: block;
  margin: 4px 0;
  font-size: 1rem;
}

.emc-day.green strong {
  color: var(--green);
}

.emc-day.yellow strong {
  color: var(--yellow);
}

.emc-day.red strong {
  color: var(--red);
}

.day-cell {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 5px;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf0;
  padding: 8px;
}

.day-cell.green {
  border-color: rgba(39, 116, 71, 0.45);
  background: #dcebd1;
}

.day-cell.yellow {
  border-color: rgba(168, 111, 0, 0.5);
  background: #fff0b8;
}

.day-cell.red {
  border-color: rgba(161, 60, 50, 0.45);
  background: var(--red-soft);
}

.day-name {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.day-date {
  font-weight: 900;
}

.day-temp {
  font-size: 1.12rem;
  font-weight: 900;
}

.day-detail {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.windows-list {
  display: grid;
  gap: 8px;
}

.windows-heading {
  margin-bottom: -2px;
}

.window-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(92px, auto);
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.rating-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rating-badge.green {
  background: var(--green);
  color: #fff8d2;
}

.rating-badge.yellow {
  background: var(--yellow);
  color: #fff;
}

.rating-badge.red {
  background: var(--red);
  color: #fff;
}

.window-reason {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.window-row strong {
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere;
}

.empty-state,
.error-state {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
  box-shadow: var(--shadow);
  color: var(--muted);
  font-weight: 750;
}

.error-state {
  border-color: rgba(161, 60, 50, 0.35);
  color: var(--red);
}

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

@media (max-width: 860px) {
  .app-shell {
    width: min(100% - 20px, 720px);
    padding-top: 12px;
  }

  .topbar,
  .control-band,
  .dashboard-intro,
  .tool-info-bar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  .settings,
  .summary-grid,
  .plan-band {
    grid-template-columns: 1fr;
  }

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

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

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

  .metrics-row div,
  .insight-strip div {
    min-height: 68px;
    padding: 8px;
  }

  .metrics-row strong,
  .insight-strip strong {
    font-size: 0.92rem;
  }

  .hourly-grid div {
    display: grid;
  }

  .hourly-grid span:not(:first-child) {
    text-align: left;
  }

  .window-row {
    grid-template-columns: 1fr;
  }

  .best-window {
    grid-template-columns: 1fr;
  }

  .bale-date,
  .window-score {
    text-align: left;
  }

  .window-row strong {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    min-height: 118px;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .quick-menu {
    display: block;
  }
}
