:root {
  --forest-950: #0b1714;
  --forest-900: #10241f;
  --forest-850: #153029;
  --forest-800: #193a31;
  --forest-700: #285548;
  --sage-500: #739487;
  --sage-300: #b7c9c2;
  --cream-50: #fbfaf6;
  --cream-100: #f4f1e8;
  --cream-200: #e8e1d2;
  --ink-900: #17201c;
  --ink-700: #45514c;
  --ink-500: #6f7974;
  --gold-500: #c79a46;
  --gold-300: #e1c07e;
  --red-600: #a43d32;
  --white: #ffffff;
  --shadow-lg: 0 24px 70px rgba(8, 24, 19, 0.18);
  --shadow-md: 0 14px 40px rgba(8, 24, 19, 0.14);
  --sidebar-width: 390px;
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--forest-950);
  color: var(--ink-900);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.noscript {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--cream-50);
  padding: 2rem;
  text-align: center;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: 66px minmax(0, 1fr);
  width: 100%;
  height: 100%;
}

.topbar {
  z-index: 1200;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 18px;
  color: var(--cream-50);
  background: linear-gradient(90deg, var(--forest-950), var(--forest-900));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 28px rgba(5, 16, 13, 0.25);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(225, 192, 126, 0.7);
  border-radius: 50%;
  color: var(--gold-300);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: inset 0 0 0 4px rgba(225, 192, 126, 0.08);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.05;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.brand-copy span {
  margin-top: 5px;
  color: var(--sage-300);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.topbar-spacer {
  flex: 1;
}

.data-status {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 330px;
  color: var(--sage-300);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.data-status i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 5px rgba(199, 154, 70, 0.12);
}

.data-status.live i {
  background: #67c691;
  box-shadow: 0 0 0 5px rgba(103, 198, 145, 0.12);
}

.data-status.error i {
  background: #dc7167;
  box-shadow: 0 0 0 5px rgba(220, 113, 103, 0.12);
}

.topbar-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  padding: 9px 13px;
  color: var(--cream-50);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 750;
}

.topbar-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sidebar {
  position: relative;
  z-index: 1000;
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  background: var(--cream-50);
  border-right: 1px solid rgba(20, 48, 41, 0.14);
  box-shadow: 12px 0 40px rgba(9, 27, 22, 0.12);
}

.sidebar-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--sage-300) transparent;
}

.hero-panel,
.control-panel,
.parcel-panel,
.detail-panel,
.assets-panel,
.source-panel {
  padding: 22px 22px 24px;
  border-bottom: 1px solid var(--cream-200);
}

.hero-panel {
  background:
    radial-gradient(circle at 95% 0%, rgba(199, 154, 70, 0.13), transparent 36%),
    var(--cream-50);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--forest-700);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--forest-950);
}

h1 {
  margin-bottom: 8px;
  font-size: 29px;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.1;
}

.hero-description,
.muted-copy,
.source-panel p {
  color: var(--ink-700);
  font-size: 13px;
  line-height: 1.55;
}

.hero-description {
  margin-bottom: 18px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.summary-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(21, 48, 41, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 20px rgba(16, 36, 31, 0.05);
}

.summary-card.wide {
  grid-column: 1 / -1;
}

.summary-card span {
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-card strong {
  color: var(--forest-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading.compact {
  margin-bottom: 12px;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.action-button,
.mini-button,
.dialog-button {
  border: 1px solid rgba(18, 44, 37, 0.16);
  border-radius: 9px;
  color: var(--forest-900);
  background: var(--white);
  font-size: 12px;
  font-weight: 750;
  transition:
    transform 120ms ease,
    background-color 120ms ease,
    border-color 120ms ease;
}

.action-button {
  min-height: 42px;
  padding: 9px 11px;
  text-align: left;
}

.action-button span {
  display: inline-block;
  min-width: 18px;
  color: var(--gold-500);
  font-size: 16px;
}

.action-button:hover,
.mini-button:hover,
.dialog-button:hover {
  border-color: rgba(18, 44, 37, 0.34);
  background: var(--cream-100);
  transform: translateY(-1px);
}

.action-button.primary,
.dialog-button.primary {
  border-color: var(--forest-900);
  color: var(--cream-50);
  background: var(--forest-900);
}

.action-button.active {
  border-color: var(--gold-500);
  color: var(--cream-50);
  background: var(--forest-800);
  box-shadow: 0 0 0 3px rgba(199, 154, 70, 0.15);
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 750;
}

.select-input,
.search-field,
.asset-dialog input,
.asset-dialog select,
.asset-dialog textarea {
  width: 100%;
  border: 1px solid rgba(17, 42, 35, 0.17);
  border-radius: 9px;
  color: var(--ink-900);
  background: var(--white);
  outline: none;
}

.select-input {
  height: 42px;
  padding: 0 12px;
}

.select-input:focus,
.search-field:focus-within,
.asset-dialog input:focus,
.asset-dialog select:focus,
.asset-dialog textarea:focus {
  border-color: var(--forest-700);
  box-shadow: 0 0 0 3px rgba(40, 85, 72, 0.12);
}

.switch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}

.switch-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 700;
}

.switch-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-control > span {
  position: relative;
  width: 30px;
  height: 18px;
  border-radius: 99px;
  background: #c8cfcb;
  transition: background-color 120ms ease;
}

.switch-control > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 120ms ease;
}

.switch-control input:checked + span {
  background: var(--forest-700);
}

.switch-control input:checked + span::after {
  transform: translateX(12px);
}

.text-button {
  border: 0;
  padding: 4px 0;
  color: var(--forest-700);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  margin-bottom: 12px;
  padding: 0 11px;
}

.search-field span {
  color: var(--sage-500);
  font-size: 18px;
}

.search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink-900);
  background: transparent;
  font-size: 12px;
}

.parcel-list,
.asset-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.parcel-row,
.asset-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: 1px solid rgba(18, 44, 37, 0.11);
  border-radius: 11px;
  padding: 11px 12px;
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.76);
  text-align: left;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease,
    background-color 120ms ease;
}

.parcel-row:hover,
.asset-row:hover {
  z-index: 1;
  border-color: rgba(40, 85, 72, 0.35);
  box-shadow: 0 9px 24px rgba(16, 36, 31, 0.08);
  transform: translateY(-1px);
}

.parcel-row.selected {
  border-color: var(--forest-700);
  background: #eef2ec;
  box-shadow: 0 0 0 2px rgba(40, 85, 72, 0.1);
}

.parcel-index {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--cream-50);
  background: var(--forest-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(225, 192, 126, 0.28);
}

.parcel-row.selected .parcel-index {
  background: var(--red-600);
}

.parcel-copy,
.asset-copy {
  min-width: 0;
  flex: 1;
}

.parcel-copy strong,
.asset-copy strong {
  display: block;
  margin-bottom: 3px;
  color: var(--forest-950);
  font-size: 12px;
}

.parcel-copy span,
.asset-copy span {
  display: block;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parcel-acres {
  flex: 0 0 auto;
  color: var(--forest-700);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
}

.detail-panel {
  background: #f0f3ed;
}

.icon-close,
.icon-button {
  border: 0;
  color: inherit;
  background: transparent;
}

.icon-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--ink-700);
  font-size: 22px;
  line-height: 1;
}

.icon-close:hover {
  background: rgba(16, 36, 31, 0.08);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.detail-item {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(16, 36, 31, 0.11);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.62);
}

.detail-item.wide {
  grid-column: 1 / -1;
}

.detail-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-item strong {
  display: block;
  color: var(--forest-950);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.detail-callout {
  margin: 0;
  padding: 11px 12px;
  border-left: 3px solid var(--gold-500);
  color: var(--ink-700);
  background: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  line-height: 1.5;
}

.count-pill {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 99px;
  color: var(--cream-50);
  background: var(--forest-700);
  font-size: 10px;
  font-weight: 850;
}

.asset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.mini-button {
  padding: 8px 10px;
}

.mini-button.danger {
  color: var(--red-600);
}

.asset-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--white);
  background: var(--forest-700);
  font-size: 11px;
  font-weight: 850;
}

.asset-row .delete-asset {
  flex: 0 0 auto;
  border: 0;
  border-radius: 7px;
  padding: 5px 7px;
  color: var(--red-600);
  background: transparent;
  font-size: 11px;
}

.asset-row .delete-asset:hover {
  background: rgba(164, 61, 50, 0.09);
}

.empty-state {
  padding: 16px;
  border: 1px dashed rgba(18, 44, 37, 0.22);
  border-radius: 10px;
  color: var(--ink-500);
  background: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.source-panel {
  background: var(--cream-100);
}

.source-panel p:last-child {
  margin-bottom: 0;
}

.source-download {
  width: 100%;
  margin: 2px 0 12px;
  color: var(--cream-50);
  border-color: var(--forest-700);
  background: var(--forest-700);
}

.source-download:hover {
  color: var(--cream-50);
  background: var(--forest-900);
}

.legal-note {
  padding-top: 11px;
  border-top: 1px solid rgba(18, 44, 37, 0.12);
  font-size: 10px !important;
}

.map-stage {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  background: #d3d8d3;
}

#map {
  width: 100%;
  height: 100%;
  background: #d3d8d3;
}

.map-overlay {
  position: absolute;
  z-index: 700;
  pointer-events: none;
}

.map-overlay.top-left {
  top: 16px;
  left: 16px;
}

.map-overlay.bottom-left {
  bottom: 17px;
  left: 16px;
}

.map-overlay.bottom-center {
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.map-card,
.coordinate-card,
.measure-card {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--cream-50);
  background: rgba(11, 23, 20, 0.82);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.map-card {
  min-width: 155px;
  border-radius: 11px;
  padding: 11px 13px;
}

.map-card-label {
  display: block;
  margin-bottom: 3px;
  color: var(--sage-300);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.coordinate-card {
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--sage-300);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.measure-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 250px;
  border-radius: 12px;
  padding: 11px 12px 11px 14px;
  pointer-events: auto;
}

.measure-card > div {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.measure-card span {
  color: var(--sage-300);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.measure-card strong {
  margin-top: 3px;
  font-size: 16px;
}

.measure-card button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 7px 9px;
  color: var(--cream-50);
  background: rgba(255, 255, 255, 0.07);
  font-size: 10px;
  font-weight: 800;
}

.leaflet-control-zoom {
  border: 0 !important;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: var(--shadow-md) !important;
}

.leaflet-control-zoom a {
  width: 38px !important;
  height: 38px !important;
  border: 0 !important;
  color: var(--forest-900) !important;
  background: rgba(251, 250, 246, 0.96) !important;
  line-height: 38px !important;
}

.leaflet-control-attribution {
  max-width: min(70vw, 760px);
  border-radius: 6px 0 0 0;
  background: rgba(251, 250, 246, 0.82) !important;
  font-size: 8px !important;
  backdrop-filter: blur(8px);
}

.parcel-label {
  border: 1px solid rgba(255, 255, 255, 0.58) !important;
  border-radius: 7px !important;
  padding: 5px 7px !important;
  color: var(--cream-50) !important;
  background: rgba(11, 23, 20, 0.8) !important;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22) !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  text-align: center;
  pointer-events: none;
}

.parcel-label::before {
  display: none !important;
}

.parcel-label span {
  display: block;
  margin-top: 2px;
  color: var(--gold-300);
  font-size: 8px;
  font-weight: 750;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  color: var(--ink-900);
  background: var(--cream-50);
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.leaflet-popup-content {
  min-width: 230px;
  margin: 15px 16px;
}

.map-popup .popup-eyebrow {
  margin-bottom: 3px;
  color: var(--forest-700);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.map-popup h3 {
  margin: 0 0 10px;
  color: var(--forest-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.popup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.popup-grid div {
  padding: 7px 8px;
  border-radius: 7px;
  background: var(--cream-100);
}

.popup-grid span {
  display: block;
  margin-bottom: 2px;
  color: var(--ink-500);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.popup-grid strong {
  color: var(--forest-950);
  font-size: 10px;
}

.asset-map-marker {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--cream-50);
  border-radius: 50% 50% 50% 7px;
  color: var(--white);
  background: var(--forest-700);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.32);
  font-size: 10px;
  font-weight: 900;
  transform: rotate(-45deg);
}

.asset-map-marker span {
  transform: rotate(45deg);
}

.asset-map-marker.feeder { background: #9a6c2d; }
.asset-map-marker.blind { background: #455f32; }
.asset-map-marker.gate { background: #7c4e3a; }
.asset-map-marker.water { background: #2e6f9f; }
.asset-map-marker.camera { background: #5e4e7a; }
.asset-map-marker.building { background: #803d39; }
.asset-map-marker.road { background: #5d605c; }
.asset-map-marker.note { background: #1c7564; }

.map-crosshair #map,
#map.map-crosshair {
  cursor: crosshair;
}

.toast-region {
  position: fixed;
  z-index: 5000;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(340px, calc(100vw - 36px));
  pointer-events: none;
}

.toast {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  padding: 12px 14px;
  color: var(--cream-50);
  background: rgba(11, 23, 20, 0.94);
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  animation: toast-in 180ms ease-out;
}

.toast.error {
  background: rgba(111, 38, 31, 0.95);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.asset-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  border: 0;
  border-radius: 16px;
  padding: 0;
  color: var(--ink-900);
  background: var(--cream-50);
  box-shadow: 0 30px 100px rgba(5, 16, 13, 0.4);
}

.asset-dialog::backdrop {
  background: rgba(4, 13, 10, 0.58);
  backdrop-filter: blur(5px);
}

.dialog-header,
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
}

.dialog-header {
  border-bottom: 1px solid var(--cream-200);
}

.dialog-header h2 {
  font-size: 24px;
}

.dialog-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.asset-dialog label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 750;
}

.asset-dialog input,
.asset-dialog select,
.asset-dialog textarea {
  padding: 11px 12px;
  resize: vertical;
}

.two-column-fields {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
}

.coordinates-fields {
  grid-template-columns: 1fr 1fr;
}

.coordinates-fields input {
  color: var(--ink-500);
  background: var(--cream-100);
}

.dialog-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--cream-200);
  background: var(--cream-100);
}

.dialog-button {
  padding: 10px 14px;
}

.dialog-button.secondary {
  background: var(--white);
}

.mobile-only {
  display: none;
}

.icon-button {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.icon-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  border-radius: 99px;
  background: currentColor;
}

.floating-button {
  position: absolute;
  z-index: 800;
  top: 14px;
  left: 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 10px;
  padding: 10px 13px;
  color: var(--cream-50);
  background: rgba(11, 23, 20, 0.88);
  box-shadow: var(--shadow-md);
  font-size: 11px;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

@media (max-width: 900px) {
  :root {
    --sidebar-width: min(390px, 92vw);
  }

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

  .topbar {
    grid-column: 1;
  }

  .sidebar {
    position: fixed;
    z-index: 1800;
    top: 66px;
    bottom: 0;
    left: 0;
    width: var(--sidebar-width);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .map-stage {
    grid-column: 1;
  }

  .mobile-only {
    display: block;
  }

  .topbar-button {
    display: none;
  }

  .data-status {
    max-width: 180px;
  }

  .map-overlay.top-left {
    display: none;
  }

  .map-overlay.bottom-left {
    left: 10px;
    bottom: 10px;
  }

  .map-overlay.bottom-center {
    bottom: 54px;
  }
}

@media (max-width: 560px) {
  .topbar {
    gap: 8px;
    padding-inline: 10px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 11px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy span {
    font-size: 9px;
  }

  .data-status {
    max-width: none;
    gap: 0;
    padding: 0;
  }

  .data-status span {
    display: none;
  }

  .data-status i {
    width: 9px;
    height: 9px;
  }

  .hero-panel,
  .control-panel,
  .parcel-panel,
  .detail-panel,
  .assets-panel,
  .source-panel {
    padding-inline: 18px;
  }

  .two-column-fields {
    grid-template-columns: 1fr;
  }

  .coordinates-fields {
    grid-template-columns: 1fr 1fr;
  }

  .coordinate-card {
    display: none;
  }

  .measure-card {
    min-width: min(290px, calc(100vw - 28px));
  }
}
