.institution-workspace-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
}

.institution-workspace-summary h2 {
  margin: 5px 0 8px;
  font-size: 1.2rem;
}

.institution-workspace-summary p,
.institution-workspace-summary__access span {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.institution-workspace-summary__access {
  display: grid;
  gap: 4px;
  max-width: 320px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.institution-workspace-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.78fr) minmax(440px, 1.75fr) minmax(250px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.institution-folders,
.institution-documents,
.institution-document-details {
  min-width: 0;
}

.institution-folder-list,
.institution-document-list {
  display: grid;
  gap: 8px;
}

.institution-folder,
.institution-document {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink);
  text-align: left;
}

.institution-folder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
}

.institution-folder span {
  overflow-wrap: anywhere;
  font-weight: 750;
}

.institution-folder strong {
  min-width: 28px;
  border-radius: 4px;
  padding: 3px 6px;
  background: #e4efe9;
  color: var(--green-dark);
  font-size: 0.78rem;
  text-align: center;
}

.institution-folder.is-selected,
.institution-document.is-selected {
  border-color: var(--green);
  background: #edf8f3;
  box-shadow: inset 3px 0 0 var(--green);
}

.institution-inline-form {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #f5faf7;
}

.institution-inline-form[hidden] {
  display: none;
}

.institution-document-form {
  grid-template-columns: minmax(220px, 1fr) minmax(110px, 0.3fr) minmax(130px, 0.35fr) minmax(220px, 0.8fr) auto;
  align-items: end;
}

.institution-upload-progress {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.institution-upload-progress[hidden] {
  display: none;
}

.institution-upload-progress progress {
  width: 100%;
  height: 10px;
  accent-color: var(--green);
}

.institution-document-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.institution-document-toolbar > strong {
  align-self: center;
  color: var(--muted);
  white-space: nowrap;
}

.institution-document {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 12px;
}

.institution-document__kind {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid #bfd2c9;
  border-radius: 4px;
  background: #ffffff;
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.institution-document__body,
.institution-document__meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.institution-document__body strong {
  overflow-wrap: anywhere;
}

.institution-document__body small,
.institution-document__meta small {
  color: var(--muted);
}

.institution-document__meta {
  text-align: right;
}

.institution-document-empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--muted);
}

.institution-document-empty p {
  margin-bottom: 0;
}

.institution-document-details > div {
  display: grid;
  gap: 14px;
}

.institution-document-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.institution-document-actions button {
  width: 100%;
}

.institution-version-history {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 12px;
}

.institution-version-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin-top: 8px;
}

.institution-document-meta {
  display: grid;
  gap: 0;
  margin: 0;
}

.institution-document-meta div {
  display: grid;
  grid-template-columns: minmax(90px, 0.7fr) minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}

.institution-document-meta dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.institution-document-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.prototype-inline-note {
  border-left: 3px solid var(--amber);
  padding-left: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.analytics-filter-panel {
  margin-bottom: 16px;
}

.analytics-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

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

.analytics-metrics .metric.is-attention {
  border-color: #d8b45a;
  background: #fffaf0;
}

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

.analytics-official-tables {
  display: grid;
  gap: 24px;
  margin-bottom: 16px;
}

.analytics-table-section {
  display: grid;
  gap: 10px;
}

.analytics-table-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.analytics-table-heading h3 {
  margin: 0;
  font-size: 1rem;
}

.analytics-table-heading span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.analytics-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.analytics-table th,
.analytics-table td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  text-align: center;
  vertical-align: middle;
}

.analytics-table th:first-child,
.analytics-table td:first-child {
  text-align: left;
}

.analytics-table th:last-child,
.analytics-table td:last-child {
  border-right: 0;
}

.analytics-table thead th {
  background: #dfeae5;
  font-size: 0.76rem;
  line-height: 1.35;
}

.analytics-table tbody th {
  min-width: 220px;
  background: #f4f7f5;
  font-weight: 700;
}

.analytics-table tfoot th,
.analytics-table tfoot td {
  border-bottom: 0;
  background: #dfeae5;
  font-weight: 800;
}

.analytics-zone-table {
  min-width: 760px;
}

.analytics-violation-table {
  min-width: 1500px;
}

.analytics-breakdown {
  display: grid;
  gap: 14px;
}

.analytics-breakdown-row {
  display: grid;
  gap: 7px;
}

.analytics-breakdown-row__label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 0.9rem;
}

.analytics-bar {
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #e5ece8;
  accent-color: var(--green);
}

.analytics-bar::-webkit-progress-bar {
  border-radius: 4px;
  background: #e5ece8;
}

.analytics-bar::-webkit-progress-value {
  border-radius: 4px;
  background: var(--green);
}

.analytics-bar::-moz-progress-bar {
  border-radius: 4px;
  background: var(--green);
}

.analytics-notification-list {
  display: grid;
  gap: 10px;
}

.analytics-notification {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid #ddc784;
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 14px;
  background: #fffaf0;
}

.analytics-notification div {
  display: grid;
  gap: 4px;
}

.analytics-notification p,
.analytics-notification small,
.analytics-empty {
  margin: 0;
  color: var(--muted);
}

.current-zone-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 118px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
}

.current-zone-status h2 {
  margin: 5px 0 8px;
  font-size: 1.15rem;
}

.current-zone-status p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.45;
}

.current-zone-status small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.4;
}

.current-zone-status.is-inside {
  border-color: rgba(15, 111, 98, 0.35);
  border-left-color: var(--green);
  background: #edf8f3;
}

.current-zone-status.is-inside p {
  color: var(--green-dark);
}

.current-zone-status.is-outside,
.current-zone-status.is-unavailable {
  border-color: rgba(173, 63, 50, 0.3);
  border-left-color: var(--red);
  background: #fff3f0;
}

.current-zone-status.is-outside p,
.current-zone-status.is-unavailable p {
  color: #7d2b22;
}

.mini-map.live-croatia-map {
  min-height: 430px;
  border-width: 3px;
  background: #c8e1e8;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.mini-map.live-croatia-map.is-inside {
  border-color: var(--green);
  box-shadow: inset 0 0 0 2px rgba(15, 111, 98, 0.12);
}

.mini-map.live-croatia-map.is-outside {
  border-color: #bd5a48;
}

.live-croatia-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.live-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.live-map-actions button {
  min-height: 44px;
  min-width: 44px;
}

.live-map-location-detail {
  margin: 12px 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.live-croatia-map__accuracy {
  fill: rgba(27, 105, 190, 0.16);
  stroke: #236eb5;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.live-map-zone-badge.is-uncertain,
.current-zone-status.is-uncertain {
  border-color: #b98018;
  background: #fff6df;
  color: #6b4c0f;
}

.live-croatia-map.is-uncertain {
  border-color: #b98018;
}

.live-croatia-map__land {
  fill: #e8f1ed;
  fill-rule: evenodd;
  stroke: #728f86;
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}

.live-croatia-map__protected {
  fill: rgba(204, 80, 39, 0.08);
  fill-rule: evenodd;
  stroke: #c4491d;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.live-croatia-map.is-inside .live-croatia-map__protected {
  fill: rgba(15, 111, 98, 0.18);
  stroke: #0f6f62;
}

.live-croatia-map__marker {
  fill: #206ed0;
}

.live-croatia-map__report-pin {
  cursor: pointer;
  fill: #c4491d;
  stroke: #ffffff;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.live-croatia-map__report-pin[data-sync-status="synced"] {
  fill: var(--green);
}

.live-croatia-map__report-pin:focus {
  outline: none;
  stroke: #102f2a;
  stroke-width: 5;
}

.live-croatia-map__report-pin-hit {
  fill: transparent;
  stroke: none;
}

.live-croatia-map.is-inside .live-croatia-map__marker {
  fill: #206ed0;
}

.live-croatia-map__pulse {
  opacity: 0.2;
}

.live-croatia-map__dot {
  stroke: #ffffff;
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}

.live-map-tracking-badge,
.live-map-zone-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  max-width: calc(100% - 24px);
  border: 1px solid rgba(16, 84, 67, 0.28);
  border-radius: 4px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green-dark);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.3;
}

.live-map-tracking-badge {
  top: 12px;
}

.live-map-zone-badge {
  bottom: 12px;
}

.live-map-zone-badge.is-inside {
  border-color: var(--green);
  background: #dcefe8;
  color: var(--green-dark);
}

.live-map-zone-badge.is-outside {
  border-color: #bd5a48;
  background: #fff3f0;
  color: #7d2b22;
}

.mini-map {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid #cbd9d3;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(59, 125, 151, 0.38), rgba(207, 231, 224, 0.62)),
    #d6e9e3;
}

.large-map {
  min-height: 540px;
}

.map-gridlines {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(#ffffff 1px, transparent 1px),
    linear-gradient(90deg, #ffffff 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.map-zone {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 170px;
  min-height: 86px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 48% 52% 46% 54%;
  color: #0f2a24;
  font-weight: 800;
  text-align: center;
}

.zone-one {
  left: 8%;
  top: 18%;
  background: rgba(206, 235, 221, 0.86);
}

.zone-two {
  right: 9%;
  top: 28%;
  background: rgba(212, 224, 243, 0.86);
}

.zone-three {
  left: 38%;
  bottom: 16%;
  background: rgba(245, 223, 181, 0.9);
}

.map-point {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--red);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(17, 39, 33, 0.24);
}

.point-one {
  left: 28%;
  top: 34%;
}

.point-two {
  right: 22%;
  top: 44%;
}

.point-three {
  left: 54%;
  bottom: 25%;
}

.lock-notice {
  min-height: 44px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
  line-height: 1.35;
}

.guidance-panel h2 {
  margin-top: 6px;
}

.map-picker[hidden] {
  display: none;
}

.map-picker {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
}

.map-picker__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(9, 22, 18, 0.58);
}

.map-picker__panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(820px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  padding: 18px;
}

.picker-map {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid #cbd9d3;
  border-radius: var(--radius);
  background: #b7d1d8;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.picker-map:focus {
  outline: 3px solid rgba(25, 113, 91, 0.28);
  outline-offset: 3px;
}

.picker-map.is-dragging {
  cursor: grabbing;
}

.picker-map.is-offline-reference {
  background: #b7d1d8;
}

.picker-map.is-offline-reference .official-land-boundary {
  fill: #eaf3ef;
  stroke-width: 2.4;
}

.marker-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.picker-marker circle {
  fill: var(--red);
  stroke: #ffffff;
  stroke-width: 4;
  filter: drop-shadow(0 8px 10px rgba(17, 39, 33, 0.32));
}

.picker-marker line {
  stroke: var(--red);
  stroke-width: 3;
}

.picker-marker[hidden] {
  display: none;
}

.picker-accuracy[hidden] { display: none; }
.picker-accuracy { fill: rgba(37, 111, 197, 0.16); stroke: #256fc5; stroke-width: 2; }
.picker-marker.is-device circle { fill: #256fc5; }
.picker-marker.is-device line { stroke: #256fc5; }
.picker-marker:not(.is-device) circle { fill: #7648a3; }
.picker-marker:not(.is-device) line { stroke: #7648a3; }
.live-croatia-map.is-manual .live-croatia-map__dot { fill: #7648a3; }
.live-croatia-map.is-manual .live-croatia-map__pulse { fill: rgba(118, 72, 163, 0.2); }
.picker-coordinate-label { display: block; margin: 16px 0 8px; font-weight: 700; }
.picker-coordinate-row { margin-bottom: 16px; }
.picker-coordinate-row input { min-width: 0; width: 100%; }
.picker-source-details { margin: 0 0 16px; color: var(--muted); font-size: 0.9rem; }
.picker-source-details summary { cursor: pointer; margin-bottom: 16px; }
#closeLocationPickerTop { min-width: 44px; min-height: 44px; font-size: 1.4rem; }
.picker-map + .protected-area-map-status { margin-top: 12px; }
.plain-map-panel { margin-bottom: 20px; min-width: 0; }
.cadastre-shortcut { margin-bottom: 18px; }
.cadastre-shortcut__link { display: flex; align-items: center; justify-content: center; min-height: 44px; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.cadastre-shortcut p { margin: 8px 0 0; color: var(--muted); font-size: 0.85rem; overflow-wrap: anywhere; }
.map-picker__panel.is-inline { width: 100%; max-height: none; padding: 0; overflow: visible; border: 0; box-shadow: none; }
.simple-map .boundary-layer,
.simple-map .map-data-badge__item,
.simple-map .protected-area-map-status,
.simple-map .picker-source-details,
.simple-map[data-mode="browse"] [data-picker-selection],
.simple-map[data-mode="browse"] #closeLocationPickerTop { display: none; }
.picker-gps-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.picker-gps-actions button { flex: 1; min-width: 0; }
.simple-map .picker-map { height: clamp(340px, 55vh, 540px); min-height: 340px; }
.simple-map .picker-status { margin: 12px 0 0; overflow-wrap: anywhere; }
.simple-map .panel-heading { flex-direction: row; align-items: center; }
.simple-map #closeLocationPickerTop { flex: 0 0 44px; width: 44px; }
.simple-map .map-data-badge { font-size: 0.72rem; padding: 6px 8px; }
.simple-map .picker-map.is-offline-reference { background: #eef1ef; }
.simple-map.has-protected-areas .boundary-layer { display: block; }
.simple-map.has-protected-areas .official-land-boundary { display: none; }
.simple-map.has-protected-areas .map-data-badge__protected { display: flex; }
.simple-map.has-protected-areas .protected-area-map-status { display: block; margin: 0 0 14px; }
.simple-map.has-protected-areas .protected-area-map-status.is-inside {
  border-color: #bd651c; background: #fff3df; color: #71400f;
}
.simple-map.has-protected-areas .protected-area-map-status.is-outside {
  border-color: #a3c8bc; background: #edf8f3; color: var(--green-dark);
}
.protected-area-fill { fill: #d47727; fill-opacity: 0.16; stroke: none; }
.map-zone-source { margin: 10px 0 16px; color: var(--muted); font-size: 0.78rem; }
.cadastre-controls { margin: 0 0 14px; min-width: 0; }
.cadastre-toggle { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; }
.cadastre-toggle input { width: 22px; height: 22px; flex: 0 0 22px; margin: 0; accent-color: var(--green-dark); }
.cadastre-toggle span { font-weight: 700; }
.cadastre-toggle small { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 400; }
.cadastre-status { margin: 6px 0 10px; font-size: 0.85rem; overflow-wrap: anywhere; color: var(--muted); }
.cadastre-status[data-state="error"], .cadastre-status[data-state="offline"] { color: #76500e; }
.map-cadastre-source { margin: 10px 0 16px; color: var(--muted); font-size: 0.78rem; overflow-wrap: anywhere; }
.cadastre-layer { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.cadastre-crosshair { position: absolute; z-index: 4; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%); pointer-events: none; }
.cadastre-crosshair::before, .cadastre-crosshair::after { content: ""; position: absolute; background: #111; box-shadow: 0 0 0 1px white; }
.cadastre-crosshair::before { width: 22px; height: 2px; top: 10px; }
.cadastre-crosshair::after { height: 22px; width: 2px; left: 10px; }
.cadastre-picked-point { fill: #fff8; stroke: #111; stroke-width: 3; }
.cadastre-parcel-panel { margin-top: 14px; }
.cadastre-parcel-result { margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; }
.cadastre-parcel-result p { font-size: 0.85rem; margin: 8px 0; }
.cadastre-parcel-result a { display: block; text-align: center; }
.protected-area-map-status.is-uncertain {
  background: #fff6de; border-color: #be820e; color: #76500e;
}

.tile-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.boundary-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.official-land-boundary {
  fill: rgba(22, 111, 84, 0.08);
  stroke: #0f6f62;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.protected-area-boundary {
  fill: none;
  stroke: #c4491d;
  stroke-width: 2.25;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.map-tile {
  image-rendering: auto;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.map-controls {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 12px;
  display: grid;
  gap: 6px;
}

.map-controls button {
  width: 42px;
  min-height: 38px;
  border: 1px solid rgba(16, 84, 67, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: var(--green-dark);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(17, 39, 33, 0.14);
}

.map-controls button:hover {
  border-color: var(--green);
}

.map-data-badge {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 12px;
  display: grid;
  gap: 6px;
  max-width: calc(100% - 82px);
  padding: 8px 10px;
  border: 1px solid rgba(16, 84, 67, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 8px 18px rgba(17, 39, 33, 0.14);
}

.map-data-badge__item {
  display: flex;
  gap: 7px;
  align-items: center;
}

.map-mode-badge {
  width: fit-content;
  border-radius: 3px;
  padding: 4px 6px;
  background: #dcefe8;
  color: #0f594a;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.is-offline-reference .map-mode-badge {
  background: #fff1d8;
  color: #805515;
}

.map-data-badge__swatch {
  width: 22px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 2px;
}

.map-data-badge__swatch.is-land {
  border: 2px solid #0f6f62;
  background: rgba(22, 111, 84, 0.12);
}

.map-data-badge__swatch.is-protected {
  height: 12px;
  border: 2px solid #c4491d;
  background: rgba(212, 119, 39, 0.16);
}

.map-attribution {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 5;
  border-radius: 4px;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.9);
  color: #245;
  font-size: 0.72rem;
  text-decoration: none;
}

.picker-output {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 12px 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.picker-output span {
  color: var(--muted);
  font-weight: 800;
}

.picker-output output {
  font-weight: 900;
}

.picker-status {
  margin: -6px 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.protected-area-map-status {
  margin: -6px 0 16px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--radius);
  padding: 11px 12px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.4;
}

.protected-area-map-status.is-loading {
  border-left-color: var(--amber);
}

.protected-area-map-status.is-inside {
  border-color: rgba(15, 111, 98, 0.35);
  border-left-color: var(--green);
  background: #edf8f3;
  color: var(--green-dark);
}

.protected-area-map-status.is-outside,
.protected-area-map-status.is-unavailable {
  border-color: rgba(173, 63, 50, 0.3);
  border-left-color: var(--red);
  background: #fff3f0;
  color: #7d2b22;
}

.map-readiness {
  margin: -6px 0 16px;
  border-left: 3px solid var(--amber);
  padding: 8px 10px;
  background: #fff8e9;
  color: #76500e;
  font-size: 0.86rem;
  line-height: 1.4;
}

.reference-assets-panel {
  margin-top: 18px;
}

.reference-assets-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(170px, 0.8fr) minmax(190px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.reference-assets-controls label,
.reference-asset-decision label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.reference-assets-controls input,
.reference-assets-controls select,
.reference-asset-decision input,
.reference-asset-decision select,
.reference-asset-decision textarea {
  width: 100%;
}

.reference-assets-controls > strong {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.reference-assets-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.reference-assets-list {
  display: grid;
  gap: 8px;
  max-height: 560px;
  overflow: auto;
}

.reference-asset-row {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 156px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.reference-asset-row:hover,
.reference-asset-row.is-selected {
  border-color: var(--green);
  background: var(--surface-soft);
}

.reference-asset-row__main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.reference-asset-row__main strong,
.reference-asset-row__main small {
  overflow-wrap: anywhere;
}

.reference-asset-row__main small {
  color: var(--muted);
}

.reference-asset-row code {
  color: var(--muted);
  font-size: 0.72rem;
  text-align: right;
}

.reference-asset-row .status-pill {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 0.74rem;
  white-space: nowrap;
}

.reference-asset-row .status-pill.is-success {
  border-color: rgba(15, 111, 98, 0.35);
  background: #edf8f3;
  color: var(--green-dark);
}

.reference-asset-row .status-pill.is-info {
  background: #eef5fb;
  color: #245b78;
}

.reference-asset-row .status-pill.is-warning {
  background: #fff8e9;
  color: #76500e;
}

.reference-asset-row .status-pill.is-muted {
  background: var(--surface-soft);
  color: var(--muted);
}

.reference-asset-decision {
  display: grid;
  gap: 12px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.reference-asset-decision[hidden] {
  display: none;
}

.reference-asset-decision > div {
  display: grid;
  gap: 4px;
}

.reference-asset-decision p {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}
.tdi-official-fields {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 16px 16px 2px;
  background: var(--surface-soft);
}

.tdi-official-fields legend {
  padding: 0 8px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
}

.surveillance-action-selector {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface-soft);
}

.surveillance-action-selector legend {
  padding: 0 8px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
}

.surveillance-action-selector > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.surveillance-action-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.surveillance-action-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #ffffff;
}

.surveillance-action-options input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}
