:root {
  --ink: var(--text);
  --line: var(--border);
  --soft: var(--bg-subtle);
  --panel: var(--card);
  --green: var(--accent);
  --red: var(--color-error);
}

* {
  box-sizing: border-box;
}

body {
  color: var(--ink);
  background: var(--bg);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-8) var(--space-4);
  background: var(--mb-dark);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: var(--mb-white);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.02;
  letter-spacing: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-light);
}

.topbar h1 {
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: var(--leading-tight);
}

.topbar-title {
  flex: 1 1 auto;
  min-width: 280px;
}

.topbar p,
.section-title p {
  color: var(--muted);
  margin-top: var(--space-2);
  font-size: var(--text-md);
  line-height: 1.35;
}

.topbar p {
  color: rgba(255, 255, 255, .68);
  font-size: var(--text-sm);
  line-height: 1.3;
}

.meta {
  display: flex;
  flex: 0 1 680px;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: var(--space-2);
  color: rgba(255, 255, 255, .68);
  font-size: var(--text-sm);
  min-width: 260px;
}

.topbar .mb-badge--ghost {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .78);
}

.topbar .toggle {
  color: rgba(255, 255, 255, .78);
}

.privacy-toggle {
  justify-content: flex-end;
}

.language-toggle {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, .78);
  cursor: pointer;
  font: inherit;
  font-size: var(--text-xs);
  font-weight: var(--fw-demi);
  min-width: 40px;
  padding: 7px 11px;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  border-color: rgba(255, 255, 255, .5);
  color: var(--mb-white);
}

.logout-form {
  margin: 0;
}

.is-hidden {
  display: none !important;
}

main {
  padding: var(--space-5) var(--space-8) var(--space-8);
}

.dashboard-loading {
  align-items: center;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  inset: 0;
  justify-content: center;
  padding: var(--space-6);
  position: fixed;
  text-align: center;
  z-index: 1000;
}

.dashboard-loading-mark {
  display: grid;
  height: 128px;
  place-items: center;
  position: relative;
  width: 128px;
}

.dashboard-loading-mark::before {
  animation: dashboard-spin 900ms linear infinite;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  content: "";
  inset: 0;
  position: absolute;
}

.dashboard-loading-logo {
  height: 84px;
  object-fit: contain;
  position: relative;
  width: 84px;
}

.dashboard-loading p {
  color: var(--muted);
  font-size: var(--text-md);
  font-weight: var(--fw-demi);
}

@keyframes dashboard-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-loading-mark::before {
    animation: none;
  }
}

.login-page {
  min-height: 100vh;
}

.login-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-6);
}

.login-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: var(--space-4);
  max-width: 420px;
  padding: var(--space-6);
  width: 100%;
}

.login-logo {
  height: auto;
  justify-self: center;
  width: 132px;
}

.login-card h1 {
  color: var(--ink);
  font-size: 28px;
  text-align: center;
}

.login-card label {
  display: grid;
  gap: var(--space-2);
}

.login-card label span {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--fw-demi);
}

.login-card input {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

.login-submit {
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  color: var(--mb-dark);
  cursor: pointer;
  font: inherit;
  font-weight: var(--fw-demi);
  padding: 10px 12px;
}

.login-error {
  color: var(--color-error);
  font-size: var(--text-sm);
}

.login-success {
  color: var(--color-success-text);
  font-size: var(--text-sm);
}

.login-links,
.login-guidance {
  color: var(--muted);
  font-size: var(--text-sm);
}

.login-links {
  margin: 0;
  text-align: center;
}

.login-links a {
  color: var(--accent);
  font-weight: var(--fw-demi);
  text-decoration: none;
}

.admin-page {
  min-height: 100vh;
}

.admin-header {
  align-items: center;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: var(--space-5) var(--space-8);
}

.admin-header h1,
.admin-section h2 {
  color: var(--ink);
}

.admin-header h1 {
  font-size: 24px;
}

.admin-header p {
  color: var(--muted);
  margin-top: var(--space-1);
}

.admin-shell {
  display: grid;
  gap: var(--space-5);
}

.admin-section {
  display: grid;
  gap: var(--space-4);
}

.admin-form {
  align-items: end;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) minmax(150px, .6fr) auto;
}

.admin-form label {
  display: grid;
  gap: var(--space-2);
}

.admin-form label span {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--fw-demi);
}

.admin-form input,
.admin-form select {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

.admin-success,
.admin-error {
  border-radius: var(--radius);
  font-weight: var(--fw-demi);
  padding: var(--space-3);
}

.admin-success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

.admin-error {
  background: var(--color-error-bg);
  color: var(--color-error-text);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  background: var(--card);
  border: 1px solid var(--line);
  border-collapse: collapse;
  width: 100%;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.admin-table th {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--fw-demi);
}

.admin-empty {
  color: var(--muted);
  text-align: center;
}

.admin-actions {
  display: flex;
  gap: var(--space-2);
}

.admin-actions button {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 6px 10px;
}

.farm-card-guidance {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--fw-demi);
  margin-bottom: var(--space-2);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.farm-card {
  border: 1px solid var(--line);
  cursor: pointer;
  font: inherit;
  min-height: 122px;
  text-align: left;
  padding: var(--space-4);
  transition: border-color .15s ease, opacity .15s ease, transform .15s ease;
}

.farm-card.is-active {
  border-color: var(--farm-color);
}

.farm-card.is-muted {
  opacity: .44;
}

.farm-card.is-static {
  cursor: default;
}

.farm-card:hover,
.farm-card:focus-visible {
  transform: translateY(-1px);
}

.farm-card.is-static:hover,
.farm-card.is-static:focus-visible {
  transform: none;
}

.farm-card__label {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--fw-demi);
}

.farm-card__label i {
  background: var(--farm-color);
  display: inline-block;
  height: 10px;
  width: 10px;
}

.farm-card strong {
  display: block;
  font-size: var(--text-md);
  font-weight: var(--fw-demi);
  margin-top: var(--space-2);
}

.farm-card__planting-line {
  display: block;
  color: var(--muted);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}

.farm-card__delta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: var(--text-sm);
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.farm-card__delta .delta {
  min-width: 62px;
  padding: 3px 7px;
}

.farm-card__delta-label {
  font-weight: var(--fw-demi);
}

.farm-card .bar {
  height: 7px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  margin-top: var(--space-3);
  overflow: hidden;
}

.farm-card .bar i {
  display: block;
  height: 100%;
}

.tabs,
.toolbar,
.segmented {
  display: flex;
  align-items: center;
}

.tabs {
  flex-wrap: wrap;
  gap: var(--space-2);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-4);
}

.tab {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: var(--fw-demi);
  padding: 11px 14px 10px;
}

.tab.is-active {
  border-color: var(--accent);
  color: var(--ink);
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.toolbar {
  justify-content: flex-end;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.segmented {
  flex-wrap: wrap;
  gap: var(--space-2);
}

.farm-filter {
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--fw-demi);
  padding: 7px 12px;
}

.farm-filter.is-active {
  background: var(--mb-dark);
  border-color: var(--mb-dark);
  box-shadow: inset 0 0 0 1px var(--mb-dark);
  color: var(--mb-white);
}

.toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--muted);
  font-size: var(--text-sm);
  white-space: nowrap;
}

.map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  min-height: 650px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

#map {
  min-height: 650px;
  background: var(--bg-subtle);
}

.static-figure-shell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.static-figure {
  display: block;
  height: auto;
  min-width: 0;
  width: 100%;
}

.explainer-video {
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: block;
  width: 100%;
}

.map-error {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-weight: var(--fw-demi);
  justify-content: center;
  min-height: 650px;
  padding: var(--space-6);
  text-align: center;
}

.map-panel {
  border-left: 1px solid var(--line);
  padding: var(--space-5);
  background: var(--panel);
}

.map-panel h2,
.section-title h2 {
  font-size: 20px;
  line-height: 1.15;
}

.legend {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-2);
  color: var(--muted);
  font-size: var(--text-sm);
  margin: 14px 0 22px;
}

.gradient {
  height: 12px;
  background: linear-gradient(90deg, var(--color-error), var(--bg-subtle) 20%, var(--mb-pale) 45%, var(--accent) 100%);
}

.stand-detail {
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.45;
}

.stand-detail strong {
  color: var(--ink);
  font-size: 18px;
}

.stand-detail dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2) var(--space-3);
  margin: 14px 0 0;
}

.stand-detail dt {
  color: var(--muted);
}

.stand-detail dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.section-title {
  margin: var(--space-5) 0;
}

.section-title .source-note {
  color: var(--muted);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

.shared-scale-title {
  max-width: 960px;
}

.shared-scale-toolbar {
  justify-content: flex-start;
}

.zoom-control {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: var(--text-sm);
  font-weight: var(--fw-demi);
  gap: var(--space-3);
}

.zoom-control input {
  width: 180px;
}

.data-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: 0 0 var(--space-4);
}

.filter-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.filter-label {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--fw-demi);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.impact-slide-export {
  align-self: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: var(--text-xs);
  font-weight: var(--fw-demi);
  margin-left: auto;
  padding: 7px 11px;
}

.impact-slide-export:hover,
.impact-slide-export:focus {
  border-color: var(--accent);
  color: var(--ink);
}

.impact-slide-export:disabled {
  cursor: wait;
  opacity: .6;
}

.table-wrap,
.scorecard-chart {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  overflow: auto;
}

.scorecard-chart {
  padding: var(--space-4);
}

.scorecard-grid {
  display: grid;
  grid-template-columns: minmax(130px, .75fr) minmax(124px, .55fr) minmax(320px, 2fr) 104px minmax(190px, .9fr);
  min-width: 980px;
}

.scorecard-heading,
.scorecard-cell {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  min-height: 58px;
  padding: 10px 12px;
}

.scorecard-heading {
  align-items: flex-start;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wide);
  min-height: 96px;
  text-transform: uppercase;
}

.scorecard-axis-heading {
  display: block;
}

.scorecard-sort {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: var(--space-2);
  justify-content: space-between;
  letter-spacing: inherit;
  padding: 0;
  text-align: left;
  text-transform: inherit;
  width: 100%;
}

.scorecard-sort.is-active {
  color: var(--ink);
}

.scorecard-sort.numeric {
  justify-content: flex-end;
}

.scorecard-axis {
  height: 54px;
  margin-top: var(--space-3);
  position: relative;
}

.scorecard-axis-line,
.lollipop-track {
  background: var(--line);
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
}

.scorecard-axis-line {
  top: 14px;
}

.scorecard-tick {
  color: var(--muted);
  font-size: 12px;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.scorecard-tick i {
  background: #bcc5cc;
  display: block;
  height: 20px;
  margin: 0 auto 8px;
  width: 1px;
}

.scorecard-tick b {
  font-weight: var(--fw-normal);
}

.scorecard-row-label strong {
  font-weight: var(--fw-bold);
}

.scorecard-lollipop {
  position: relative;
}

.lollipop-track {
  top: 50%;
}

.lollipop-zero {
  background: #3b4650;
  height: 24px;
  position: absolute;
  top: calc(50% - 12px);
  width: 2px;
}

.lollipop-stem {
  height: 5px;
  position: absolute;
  top: calc(50% - 2.5px);
}

.lollipop-stem.good,
.lollipop-dot.good {
  background: var(--accent);
}

.lollipop-stem.bad,
.lollipop-dot.bad {
  background: var(--color-error);
}

.lollipop-dot {
  border: 2px solid var(--card);
  border-radius: var(--radius-full);
  height: 18px;
  position: absolute;
  top: calc(50% - 9px);
  transform: translateX(-50%);
  width: 18px;
}

.scorecard-cell.numeric,
.scorecard-heading.numeric {
  justify-content: flex-end;
}

.scorecard-area {
  align-items: stretch;
  flex-direction: column;
  gap: var(--space-1);
}

.scorecard-area-label {
  color: var(--ink);
  font-size: var(--text-sm);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 980px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  font-size: var(--text-base);
}

th {
  background: var(--soft);
  color: var(--muted);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

td.numeric,
th.numeric {
  text-align: right;
}

.delta {
  border-radius: var(--radius-sm);
  display: inline-block;
  font-weight: var(--fw-bold);
  min-width: 72px;
  padding: 5px 8px;
  text-align: center;
}

.delta.good {
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

.delta.bad {
  background: var(--color-error-bg);
  color: var(--color-error-text);
}

.coverage-track {
  display: block;
  width: 100%;
  height: 10px;
  background: var(--bg-subtle);
  vertical-align: middle;
}

.coverage-track i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.empty-cell {
  color: var(--muted);
  font-weight: var(--fw-demi);
  padding: var(--space-6);
  text-align: center;
}

.impact-chart {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4);
  min-height: 520px;
}

.impact-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
}

.impact-subtabs {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
}

.impact-subtab {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: var(--fw-demi);
  padding: 9px 12px 8px;
}

.impact-subtab.is-active {
  border-color: var(--accent);
  color: var(--ink);
}

.impact-panel {
  display: none;
}

.impact-panel.is-active {
  display: block;
}

.legend-item {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--fw-demi);
  gap: var(--space-2);
  padding: 7px 12px;
}

.legend-item.is-muted {
  opacity: .44;
}

.legend-item i {
  display: inline-block;
  height: 10px;
  width: 10px;
}

.impact-segment {
  cursor: pointer;
}

.impact-segment:hover,
.impact-segment:focus {
  opacity: .82;
}

.impact-chart svg {
  display: block;
  width: 100%;
  height: 520px;
}

.latest-math-title {
  max-width: 960px;
}

.latest-math-explainer {
  display: grid;
  gap: var(--space-4);
}

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

.latest-panel {
  padding: var(--space-4);
}

.latest-matrix-panel {
  overflow-x: auto;
}

.latest-panel__header {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.latest-panel__header strong {
  font-size: var(--text-md);
}

.latest-eyebrow {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.latest-matrix {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 74px repeat(4, minmax(150px, 1fr));
  min-width: 850px;
}

.latest-matrix__heading {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wide);
  min-height: 28px;
  text-transform: uppercase;
}

.latest-matrix__heading--pick {
  color: var(--ink);
}

.latest-matrix__unit {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-weight: var(--fw-bold);
  min-height: 72px;
}

.latest-cell,
.latest-pick {
  min-height: 72px;
}

.latest-cell {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  padding: 9px 11px;
  position: relative;
}

.latest-cell.is-selected {
  background: var(--color-success-bg);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.latest-cell--empty {
  align-items: center;
  border-style: dashed;
  color: var(--muted);
  font-weight: var(--fw-demi);
}

.latest-cell__metric {
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
}

.latest-cell__unit {
  color: var(--muted);
  font-size: var(--text-sm);
}

.latest-cell strong.good {
  color: var(--color-success-text);
}

.latest-cell strong.bad {
  color: var(--color-error-text);
}

.latest-cell__badge {
  background: var(--accent);
  color: var(--mb-white);
  font-size: 10px;
  font-style: normal;
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wide);
  padding: 2px 6px;
  position: absolute;
  right: 7px;
  text-transform: uppercase;
  top: 7px;
}

.latest-pick {
  align-items: center;
  background: var(--mb-dark);
  color: var(--mb-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9px;
  text-align: center;
}

.latest-pick span {
  color: rgba(255, 255, 255, .68);
  font-size: var(--text-sm);
  font-weight: var(--fw-demi);
}

.latest-pick strong {
  font-size: var(--text-md);
}

.latest-summary-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 74px repeat(4, minmax(150px, 1fr));
  margin-top: var(--space-3);
  min-width: 850px;
}

.latest-summary-card {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
}

.latest-summary-card.is-latest {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), var(--shadow-sm);
}

.latest-summary-card__head {
  align-items: center;
  display: flex;
  gap: var(--space-2);
  justify-content: space-between;
}

.latest-summary-card__head span {
  font-weight: var(--fw-bold);
}

.latest-summary-card__head strong {
  font-size: var(--text-md);
}

.latest-summary-card__head strong.good {
  color: var(--color-success-text);
}

.latest-summary-card__head strong.bad {
  color: var(--color-error-text);
}

.latest-summary-card p {
  color: var(--muted);
  font-size: var(--text-sm);
}

.latest-bar-row {
  align-items: center;
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 64px minmax(0, 1fr) 44px;
}

.latest-bar-row span {
  color: var(--muted);
  font-size: var(--text-sm);
}

.latest-bar-row i {
  background: var(--border);
  display: block;
  height: 11px;
}

.latest-bar-row--observed i {
  background: var(--accent);
}

.latest-bar-row strong {
  font-size: var(--text-sm);
  text-align: right;
}

.chart-tooltip {
  background: rgba(0, 37, 32, .96);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  color: var(--mb-white);
  font-size: var(--text-sm);
  line-height: 1.35;
  max-width: 280px;
  opacity: 0;
  padding: 9px 11px;
  pointer-events: none;
  position: fixed;
  transform: translateY(4px);
  transition: opacity .12s ease;
  white-space: pre-line;
  z-index: 10000;
}

.chart-tooltip.is-visible {
  opacity: 1;
}

.empty-state {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-weight: var(--fw-demi);
  min-height: 488px;
  justify-content: center;
  text-align: center;
}

@media (max-width: 1100px) {
  .summary-strip {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .map-shell {
    grid-template-columns: 1fr;
  }

  .map-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-5) var(--space-5) var(--space-4);
  }

  .topbar-title {
    min-width: 0;
  }

  .meta {
    align-items: flex-start;
    align-content: flex-start;
    flex: none;
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
  }

  main {
    padding: var(--space-4) var(--space-5) var(--space-6);
  }

  .summary-strip {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
