:root {
  color-scheme: light;
  --paper: #f3efe5;
  --paper-soft: #faf8f0;
  --paper-deep: #ded8ca;
  --ink: #213633;
  --ink-soft: #4a5d58;
  --muted: #7c857d;
  --line: rgba(33,54,51,.14);
  --line-strong: rgba(33,54,51,.28);
  --amber: #f2a33a;
  --sea: #fbfbf8;
  --land: #c4c4c0;
  --land-outline: rgba(92,96,94,.46);
  --sphere-outline: rgba(154,158,154,.42);
  --panel: rgba(250,248,240,.76);
  --shadow: rgba(33,54,51,.12);
  --earthmap-topbar-height: 82px;
  --earthmap-footer-height: 48px;
  --z-render-shell-topbar-height: var(--earthmap-topbar-height);
  --z-render-shell-footer-height: var(--earthmap-footer-height);
  --z-color-choice-surface: rgba(255,255,248,.46);
  --z-color-choice-line: rgba(33,54,51,.14);
  --z-color-choice-code-bg: rgba(255,255,248,.66);
  --z-color-choice-code-line: rgba(33,54,51,.14);
  --z-color-choice-label: var(--muted);
  --z-color-choice-code-text: rgba(33,54,51,.72);
  --z-color-choice-focus-ring: rgba(33,54,51,.09);
  --z-editor-tabs-surface: rgba(255,255,248,.62);
  --z-editor-tabs-line: var(--line);
  --z-editor-tabs-shadow: rgba(33,54,51,.08);
  --z-editor-tab-text: var(--ink-soft);
  --z-editor-tab-hover-text: var(--ink);
  --z-editor-tab-hover-surface: rgba(33,54,51,.035);
  --z-editor-tab-active-text: var(--ink);
  --z-editor-tab-active-line: var(--ink-soft);
  --z-browser-card-accent-rgb: 154, 100, 25;
  --z-browser-card-border: rgba(33,54,51,.12);
  --z-browser-card-bg-top: rgba(255,255,248,.38);
  --z-browser-card-bg-bottom: rgba(255,255,248,.18);
  --z-browser-active-border: rgba(33,54,51,.16);
  --z-browser-active-bg-top: rgba(255,255,248,.62);
  --z-browser-active-bg-bottom: rgba(255,255,248,.36);
  --z-browser-child-bg: rgba(33,54,51,.025);
  --z-browser-row-hover-bg: rgba(33,54,51,.035);
  --z-browser-button-hover-bg: rgba(33,54,51,.055);
  --z-browser-text: var(--ink);
  --z-browser-title: var(--ink);
  --z-browser-muted: var(--muted);
  --z-browser-active-title: #9a6419;
  --z-browser-menu-trigger: var(--ink-soft);
  --z-browser-menu-trigger-border: var(--line);
  --z-browser-menu-trigger-bg: rgba(255,255,248,.58);
  --z-browser-menu-bg: rgba(246,242,231,.98);
  --z-browser-menu-border: var(--line);
  --z-browser-menu-shadow: rgba(33,54,51,.16);
  --z-browser-menu-text: var(--ink);
  --z-browser-menu-action-hover-bg: rgba(33,54,51,.06);
  --z-browser-delete-progress: rgba(196,105,95,.66);
  --z-browser-delete-text: var(--ink);
  --z-browser-row-action-border: var(--line);
  --z-browser-row-action-bg: rgba(255,255,248,.58);
  --csv-code-bg: rgba(255,255,248,.72);
  --csv-code-border: rgba(33,54,51,.16);
  --csv-code-text: rgba(33,54,51,.78);
  --csv-code-header: #8a5ea8;
  --csv-code-boundary: #0f6f82;
  --csv-code-value: #7b5b12;
  --csv-code-unit: #4f7a33;
  --csv-code-source: #9a6419;
  --csv-code-meta-key: #4f6f9e;
  --csv-code-comma: rgba(33,54,51,.34);
  --csv-code-error: #b94b4b;
  --earthmap-shell-background:
    radial-gradient(circle at 50% 8%, rgba(255,255,248,.94), transparent 38%),
    linear-gradient(145deg, var(--paper-soft), var(--paper) 60%, var(--paper-deep));
  --earthmap-globe-rim: rgba(92,96,94,.58);
}

body.earthmap-theme-dark {
  color-scheme: dark;
  --paper: #182128;
  --paper-soft: #20282e;
  --paper-deep: #11181d;
  --ink: #d9dee2;
  --ink-soft: #a8b2ba;
  --muted: #7f8a92;
  --line: rgba(207,216,222,.13);
  --line-strong: rgba(255,179,71,.38);
  --amber: #ffb347;
  --sea: #c8ebff;
  --land: #e0e0e0;
  --land-outline: #2e8eba;
  --sphere-outline: rgba(255,179,71,.34);
  --panel: rgba(45,53,59,.72);
  --shadow: rgba(0,0,0,.28);
  --z-color-choice-surface: rgba(255,255,255,.045);
  --z-color-choice-line: rgba(207,216,222,.13);
  --z-color-choice-code-bg: rgba(255,255,255,.045);
  --z-color-choice-code-line: rgba(207,216,222,.14);
  --z-color-choice-label: var(--muted);
  --z-color-choice-code-text: rgba(217,222,226,.76);
  --z-color-choice-focus-ring: rgba(255,179,71,.14);
  --z-editor-tabs-surface: rgba(255,255,255,.045);
  --z-editor-tabs-line: var(--line);
  --z-editor-tabs-shadow: rgba(0,0,0,.22);
  --z-editor-tab-text: var(--ink-soft);
  --z-editor-tab-hover-text: var(--ink);
  --z-editor-tab-hover-surface: rgba(255,255,255,.04);
  --z-editor-tab-active-text: var(--amber);
  --z-editor-tab-active-line: var(--amber);
  --z-browser-card-accent-rgb: 255, 179, 71;
  --z-browser-card-border: rgba(255,179,71,.16);
  --z-browser-card-bg-top: rgba(255,255,255,.026);
  --z-browser-card-bg-bottom: rgba(255,255,255,.014);
  --z-browser-active-border: rgba(255,179,71,.2);
  --z-browser-active-bg-top: rgba(255,179,71,.035);
  --z-browser-active-bg-bottom: rgba(255,179,71,.018);
  --z-browser-child-bg: rgba(255,255,255,.012);
  --z-browser-row-hover-bg: rgba(255,255,255,.024);
  --z-browser-button-hover-bg: rgba(255,255,255,.055);
  --z-browser-text: var(--ink);
  --z-browser-title: var(--ink);
  --z-browser-muted: var(--muted);
  --z-browser-active-title: var(--amber);
  --z-browser-menu-trigger: rgba(217,222,226,.82);
  --z-browser-menu-trigger-border: rgba(255,255,255,.12);
  --z-browser-menu-trigger-bg: rgba(255,255,255,.045);
  --z-browser-menu-bg: rgba(43,49,55,.98);
  --z-browser-menu-border: rgba(255,255,255,.1);
  --z-browser-menu-shadow: rgba(0,0,0,.34);
  --z-browser-menu-text: var(--ink);
  --z-browser-menu-action-hover-bg: rgba(255,255,255,.06);
  --z-browser-delete-progress: rgba(196,105,95,.72);
  --z-browser-delete-text: var(--ink);
  --z-browser-row-action-border: rgba(255,255,255,.12);
  --z-browser-row-action-bg: rgba(255,255,255,.045);
  --csv-code-bg: rgba(16, 20, 24, 0.72);
  --csv-code-border: rgba(255,179,71,.18);
  --csv-code-text: #dce6ef;
  --csv-code-header: #c99df0;
  --csv-code-boundary: #56b6c2;
  --csv-code-value: #e5c07b;
  --csv-code-unit: #98c379;
  --csv-code-source: #ffb347;
  --csv-code-meta-key: #7db8c9;
  --csv-code-comma: #7f8a92;
  --csv-code-error: #e06c75;
  --earthmap-shell-background:
    radial-gradient(circle at 50% 8%, rgba(255,179,71,.08), transparent 38%),
    linear-gradient(145deg, var(--paper-soft), var(--paper) 62%, var(--paper-deep));
  --earthmap-globe-rim: rgba(255,179,71,.5);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; }
html { background: var(--paper); }
body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--earthmap-shell-background);
}
body.earthmap-theme-dark {
  background: var(--earthmap-shell-background);
}
button { font: inherit; color: inherit; touch-action: manipulation; }

.app-frame { position: relative; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; }
.preview-view,
.details-view { position: absolute; inset: 0; min-width: 0; transition: transform 220ms ease, opacity 180ms ease; }
.preview-view { z-index: 2; opacity: 1; transform: translateY(0); }
.details-view { z-index: 1; opacity: 0; transform: translateY(7%); pointer-events: none; }
.workspace-mode-details .preview-view { opacity: 0; transform: translateY(-7%); pointer-events: none; }
.workspace-mode-details .details-view { z-index: 3; opacity: 1; transform: translateY(0); pointer-events: auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--earthmap-topbar-height);
  min-height: var(--earthmap-topbar-height);
  padding: 18px 18px 10px 20px;
}
.brand-plate,
.brand-mark,
.topbar-actions { display: flex; align-items: center; }
.brand-plate { gap: 14px; height: 54px; min-width: 0; padding: 0 12px; }
.brand-mark { gap: 12px; min-width: 0; }
.topbar-search {
  flex: 1 1 34rem;
  min-width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(18px, 3.2vw, 46px);
}
.search-wrap {
  position: relative;
  width: 100%;
  max-width: 980px;
}
.search-wrap::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 43px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  background: var(--muted);
  opacity: .82;
  mask: url("https://api.iconify.design/material-symbols/search-rounded.svg") center / contain no-repeat;
  -webkit-mask: url("https://api.iconify.design/material-symbols/search-rounded.svg") center / contain no-repeat;
  pointer-events: auto;
}
.map-search-info-button {
  position: absolute;
  z-index: 3;
  left: 9px;
  top: 50%;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: color-mix(in srgb, var(--muted) 86%, transparent);
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.map-search-info-button span {
  width: 18px;
  height: 18px;
  display: block;
  background: currentColor;
  mask: url("https://api.iconify.design/ion/information.svg") center / contain no-repeat;
  -webkit-mask: url("https://api.iconify.design/ion/information.svg") center / contain no-repeat;
}
.map-search-info-button:hover,
.map-search-info-button[aria-expanded="true"] {
  color: var(--amber);
  background: rgba(198,168,106,.11);
  box-shadow: inset 0 0 0 1px rgba(198,168,106,.18);
}
.map-search-info-popup {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  width: min(430px, calc(100vw - 36px));
  padding: 14px 15px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 94%, white);
  box-shadow: 0 18px 42px rgba(33,54,51,.16);
}
.map-search-info-popup[hidden] { display: none; }
.map-search-info-popup strong {
  display: block;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.map-search-info-popup p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.38;
}
.map-search-info-popup p + p { margin-top: 7px; }
.map-search-info-popup code {
  color: var(--ink);
  font: 600 .88em "Source Code Pro", ui-monospace, monospace;
}
.app-search {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px 0 70px;
  color: var(--ink);
  background: rgba(255,255,248,.58);
  box-shadow: 0 10px 24px rgba(33,54,51,.045);
  outline: none;
  font: 600 .94rem/1 Arial, Helvetica, sans-serif;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.app-search::placeholder { color: color-mix(in srgb, var(--muted) 78%, transparent); font-weight: 500; }
.app-search:focus {
  border-color: var(--line-strong);
  background: rgba(255,255,248,.72);
  box-shadow: 0 0 0 4px rgba(33,54,51,.055);
}
.app-search.has-search-error {
  border-color: rgba(196,105,95,.68);
  box-shadow: 0 0 0 4px rgba(196,105,95,.11);
}
.app-search.is-search-blocked {
  cursor: not-allowed;
  opacity: .58;
}
body.earthmap-theme-dark .app-search {
  color: var(--ink);
  background: rgba(255,255,255,.045);
  border-color: rgba(255,179,71,.18);
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}
body.earthmap-theme-dark .app-search.is-search-blocked {
  opacity: .66;
}
body.earthmap-theme-dark .app-search:focus {
  border-color: rgba(255,179,71,.42);
  background: rgba(255,179,71,.08);
  box-shadow: 0 0 0 4px rgba(255,179,71,.1);
}
body.earthmap-theme-dark .search-wrap::before { background: var(--amber); opacity: .9; }
body.earthmap-theme-dark .map-search-info-popup {
  background: color-mix(in srgb, var(--panel) 94%, black);
  border-color: rgba(255,179,71,.16);
  box-shadow: 0 18px 42px rgba(0,0,0,.34);
}
.brand-home-link { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; }
.brand-bird { width: 48px; height: 48px; object-fit: contain; }
body.earthmap-theme-dark .brand-bird {
  filter: brightness(0) saturate(100%) invert(75%) sepia(58%) saturate(889%) hue-rotate(340deg) brightness(104%) contrast(101%);
}
.brand-name {
  color: var(--ink);
  font-size: clamp(1.32rem, 2.05vw, 1.82rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: lowercase;
  white-space: nowrap;
}
body.earthmap-theme-dark .brand-name {
  color: var(--amber);
}
.header-icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.topbar-actions { flex: 0 0 auto; gap: 3px; padding-right: 8px; }
.topbar-icon-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  color: var(--ink);
}
.save-search-layer-button.is-hidden,
.save-search-layer-button[hidden] {
  display: none !important;
}
body.earthmap-theme-dark .topbar-icon-button,
body.earthmap-theme-dark .menu-button {
  color: var(--amber);
}
.theme-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle-button img { width: 23px; height: 23px; display: block; }
.topbar-action-icon {
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}
.topbar-export-icon {
  mask-image: url("https://api.iconify.design/uil/export.svg");
  -webkit-mask-image: url("https://api.iconify.design/uil/export.svg");
}
.topbar-save-search-icon {
  mask-image: url("https://api.iconify.design/material-symbols/save-outline.svg");
  -webkit-mask-image: url("https://api.iconify.design/material-symbols/save-outline.svg");
}
.export-control { position: relative; }
.export-menu {
  position: absolute;
  z-index: 24;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 4px;
  min-width: 134px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(250,248,240,.97);
  box-shadow: 0 18px 44px rgba(33,54,51,.18);
}
.export-menu[hidden] { display: none; }
.export-menu button {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 9px;
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.export-menu button:hover,
.export-menu button:focus-visible {
  border-color: var(--line);
  background: rgba(33,54,51,.055);
}
.earthmap-feedback-toast {
  position: fixed;
  z-index: 80;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(76px + env(safe-area-inset-bottom));
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 94%, white);
  box-shadow: 0 18px 48px rgba(33,54,51,.18);
  font-size: .88rem;
  font-weight: 760;
  animation: earthmapToastIn 180ms ease-out both;
}
.earthmap-feedback-toast.is-hiding {
  animation: earthmapToastOut 180ms ease-in both;
}
@keyframes earthmapToastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes earthmapToastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(8px); }
}
body.earthmap-theme-dark .earthmap-feedback-toast {
  color: var(--amber);
  background: color-mix(in srgb, var(--panel) 94%, black);
  box-shadow: 0 18px 48px rgba(0,0,0,.34);
}
.file-format-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}
.file-format-icon-html {
  mask-image: url("https://api.iconify.design/mdi/language-html5.svg");
  -webkit-mask-image: url("https://api.iconify.design/mdi/language-html5.svg");
}
.file-format-icon-png {
  mask-image: url("https://api.iconify.design/mdi/file-image-outline.svg");
  -webkit-mask-image: url("https://api.iconify.design/mdi/file-image-outline.svg");
}
.menu-lines,
.menu-lines::before,
.menu-lines::after { display: block; width: 21px; height: 2px; border-radius: 999px; background: var(--ink); }
body.earthmap-theme-dark .menu-lines,
body.earthmap-theme-dark .menu-lines::before,
body.earthmap-theme-dark .menu-lines::after {
  background: var(--amber);
}
.menu-lines { position: relative; }
.menu-lines::before,
.menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -7px; }
.menu-lines::after { top: 7px; }
.label {
  margin: 0;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.globe-stage {
  height: calc(100dvh - var(--earthmap-topbar-height) - var(--earthmap-footer-height));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: stretch;
  overflow: hidden;
  padding: 0;
  background: var(--earthmap-shell-background);
}
.editor-section p { color: var(--ink-soft); line-height: 1.5; }
.globe-card { display: grid; min-width: 0; min-height: 0; place-items: stretch; overflow: hidden; }
.globe {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  cursor: grab;
  touch-action: none;
}
.globe:active { cursor: grabbing; }
.earthmap-maplibre-container,
.globe-canvas,
.globe-webgl-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.earthmap-maplibre-container {
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background: var(--earthmap-shell-background);
  transition: opacity 180ms ease;
}
.earthmap-maplibre-container.is-active { opacity: 1; }
.earthmap-maplibre-container .maplibregl-control-container { display: none; }
.earthmap-value-label-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.earthmap-value-label {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: #203430;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: clamp(0.72rem, 0.62rem + 0.18vw, 0.88rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(250, 250, 244, 0.88),
    1px 0 0 rgba(250, 250, 244, 0.82),
    0 -1px 0 rgba(250, 250, 244, 0.72),
    -1px 0 0 rgba(250, 250, 244, 0.72);
  text-rendering: geometricPrecision;
}
body.earthmap-theme-dark .earthmap-value-label {
  background: transparent;
  box-shadow: none;
  color: #fefee9;
  text-shadow:
    0 1px 0 rgba(22, 31, 32, 0.86),
    1px 0 0 rgba(22, 31, 32, 0.82),
    0 -1px 0 rgba(22, 31, 32, 0.72),
    -1px 0 0 rgba(22, 31, 32, 0.72);
}
.globe-webgl-canvas { z-index: 1; }
.globe-canvas { z-index: 2; }
.globe-canvas.is-webgl-hidden { pointer-events: none; }
.globe.is-maplibre-pilot .globe-webgl-canvas,
.globe.is-maplibre-pilot .globe-canvas {
  opacity: 0;
  pointer-events: none;
}
.earthmap-diagnostics-stack {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: min(620px, calc(100% - 28px));
  pointer-events: none;
}
.earthmap-engine-diagnostics {
  --diagnostics-text: var(--ink);
  --diagnostics-soft-text: var(--ink-soft);
  --diagnostics-label: color-mix(in srgb, var(--muted) 78%, var(--ink) 22%);
  --diagnostics-heading: color-mix(in srgb, var(--muted) 62%, var(--ink) 38%);
  position: static;
  min-width: 330px;
  max-width: 100%;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  color: var(--diagnostics-soft-text);
  box-shadow: 0 18px 42px rgba(33,54,51,.10);
  backdrop-filter: blur(16px);
  font-family: "Source Code Pro", "Cascadia Mono", Consolas, monospace;
  font-size: .68rem;
  line-height: 1.35;
  letter-spacing: .02em;
  pointer-events: auto;
  overflow: hidden;
}
.earthmap-harmony-diagnostics {
  max-width: min(620px, calc(100vw - 28px));
}
.diagnostics-console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  touch-action: manipulation;
}
.diagnostics-console-header:hover {
  background: color-mix(in srgb, var(--line) 18%, transparent);
}
.diagnostics-console-chevron {
  color: var(--diagnostics-label);
  font-size: .68rem;
  padding: 0 0 0 16px;
  pointer-events: none;
}
.diagnostics-console-body {
  padding: 0 12px 10px;
}
.earthmap-engine-diagnostics.is-collapsed {
  min-width: 190px;
}
.earthmap-engine-diagnostics strong {
  display: inline;
  margin: 0;
  color: var(--diagnostics-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .68rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.earthmap-engine-diagnostics dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 2px 9px;
  margin: 0;
}
.earthmap-engine-diagnostics .engine-diagnostics-summary {
  grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr);
}
.earthmap-engine-diagnostics dt { color: var(--diagnostics-label); }
.earthmap-engine-diagnostics dd {
  margin: 0;
  color: var(--diagnostics-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.engine-diagnostics-layer-table {
  width: 100%;
  margin: 8px 0 0;
  border-collapse: collapse;
  table-layout: fixed;
}
.engine-diagnostics-layer-table th,
.engine-diagnostics-layer-table td {
  padding: 2px 4px;
  border-top: 1px solid color-mix(in srgb, var(--line) 54%, transparent);
  color: var(--diagnostics-soft-text);
  font-weight: 600;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.engine-diagnostics-layer-table thead th {
  color: var(--diagnostics-heading);
  font-size: .58rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.engine-diagnostics-layer-table tbody th {
  color: var(--diagnostics-text);
}
.engine-diagnostics-layer-table th:nth-child(1),
.engine-diagnostics-layer-table td:nth-child(1) { width: 17%; }
.engine-diagnostics-layer-table th:nth-child(2),
.engine-diagnostics-layer-table td:nth-child(2),
.engine-diagnostics-layer-table th:nth-child(3),
.engine-diagnostics-layer-table td:nth-child(3) { width: 14%; }
.engine-diagnostics-layer-table th:nth-child(4),
.engine-diagnostics-layer-table td:nth-child(4),
.engine-diagnostics-layer-table th:nth-child(5),
.engine-diagnostics-layer-table td:nth-child(5) { width: 12%; }
.engine-diagnostics-layer-table th:nth-child(6),
.engine-diagnostics-layer-table td:nth-child(6) { width: 31%; }
.harmony-diagnostics-table th:nth-child(1),
.harmony-diagnostics-table td:nth-child(1) { width: 13%; }
.harmony-diagnostics-table th:nth-child(2),
.harmony-diagnostics-table td:nth-child(2) { width: 15%; }
.harmony-diagnostics-table th:nth-child(3),
.harmony-diagnostics-table td:nth-child(3),
.harmony-diagnostics-table th:nth-child(4),
.harmony-diagnostics-table td:nth-child(4),
.harmony-diagnostics-table th:nth-child(5),
.harmony-diagnostics-table td:nth-child(5),
.harmony-diagnostics-table th:nth-child(6),
.harmony-diagnostics-table td:nth-child(6) { width: 9%; }
.harmony-diagnostics-table th:nth-child(7),
.harmony-diagnostics-table td:nth-child(7) {
  width: 36%;
  white-space: normal;
}
.earthmap-engine-diagnostics .engine-diagnostics-note {
  grid-template-columns: max-content minmax(0, 1fr);
  margin-top: 7px;
}
body.earthmap-theme-dark .earthmap-engine-diagnostics {
  --diagnostics-text: rgba(235, 241, 238, .94);
  --diagnostics-soft-text: rgba(221, 229, 225, .84);
  --diagnostics-label: rgba(183, 198, 193, .78);
  --diagnostics-heading: rgba(199, 211, 207, .84);
  box-shadow: 0 18px 42px rgba(0,0,0,.24);
  text-shadow: 0 1px 2px rgba(0,0,0,.32);
}

.workspace-strip {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 12;
  height: var(--earthmap-footer-height);
  min-height: var(--earthmap-footer-height);
  border: 0;
  border-top: 1px solid var(--line);
  background: rgba(45, 53, 59, 0.96);
  color: rgba(217, 222, 226, 0.45);
  cursor: pointer;
  backdrop-filter: blur(16px);
}
.workspace-strip-top { top: 0; bottom: auto; border-top: 0; border-bottom: 1px solid var(--line); }
.workspace-strip span {
  color: #a8b2ba;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.workspace-strip:hover {
  background: rgba(50, 59, 66, 0.98);
  color: rgba(217, 222, 226, 0.68);
}
.workspace-strip:hover span { color: #d9dee2; }

.workspace-stage { height: 100dvh; display: grid; grid-template-columns: minmax(330px,.86fr) minmax(430px,1.14fr); gap: 20px; padding: 72px 22px 22px; overflow: hidden; }
.app-frame.details-layout-browser .workspace-stage,
.app-frame.details-layout-editor .workspace-stage { grid-template-columns: minmax(0, 1fr); }
.app-frame.details-layout-browser .editor-panel,
.app-frame.details-layout-editor .browser-panel { display: none; }
.workspace-panel {
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--panel);
  box-shadow: 0 18px 70px var(--shadow);
}
.browser-panel {
  display: flex;
  flex-direction: column;
}
.workspace-panel::-webkit-scrollbar { display: none; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel-head > div:first-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.editor-panel-head { justify-content: space-between; }
.panel-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.1;
}
.browser-header-actions { display: inline-flex; align-items: center; gap: 8px; }
.browser-actions-menu-shell { position: relative; display: inline-flex; }
.browser-actions-menu-trigger,
.panel-layout-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}
.browser-actions-menu-trigger:hover,
.browser-actions-menu-trigger[aria-expanded="true"],
.panel-layout-button:hover {
  border-color: var(--line);
  background: rgba(255,255,248,.58);
  color: var(--ink);
}
.panel-layout-button img { width: 18px; height: 18px; display: block; }
.editor-back-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}
.editor-back-button[hidden] { visibility: hidden; display: grid !important; }
.editor-back-button:hover {
  border-color: var(--line);
  background: rgba(255,255,248,.58);
  color: var(--ink);
}
body.earthmap-theme-dark .editor-back-button:hover {
  background: rgba(255,255,255,.04);
}
.editor-back-button-icon {
  width: 18px;
  height: 18px;
  display: block;
  background: currentColor;
  -webkit-mask: url("https://api.iconify.design/mdi/arrow-left.svg") center / contain no-repeat;
  mask: url("https://api.iconify.design/mdi/arrow-left.svg") center / contain no-repeat;
}
.browser-actions-menu-dots {
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 16px 16px;
  mask-size: 16px 16px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8 2.5a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3Zm0 5a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3Zm0 5a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8 2.5a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3Zm0 5a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3Zm0 5a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3Z'/%3E%3C/svg%3E");
}
.browser-actions-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 14;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 184px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(246,242,231,.98);
  box-shadow: 0 16px 36px rgba(33,54,51,.16);
  backdrop-filter: blur(10px);
}
body.earthmap-theme-dark .browser-actions-menu,
body.earthmap-theme-dark .project-card-menu,
body.earthmap-theme-dark .layer-row-menu,
body.earthmap-theme-dark .export-menu {
  background: rgba(45,53,59,.98);
  box-shadow: 0 16px 36px rgba(0,0,0,.28);
}
.browser-actions-menu[hidden] { display: none !important; }
.browser-actions-menu button {
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.browser-actions-menu button:hover { background: rgba(33,54,51,.06); }
.editor-tab[data-editor-tab="background"] {
  --editor-tab-icon: url("https://api.iconify.design/mdi/earth.svg");
}
.editor-tab[data-editor-tab="gearbox"] {
  --editor-tab-icon: url("https://api.iconify.design/mdi/chart-bar.svg");
}
.editor-tab[data-editor-tab="collections"] {
  --editor-tab-icon: url("https://api.iconify.design/mdi/file-import-outline.svg");
}
.editor-tab[data-editor-tab="properties"] {
  --editor-tab-icon: url("https://api.iconify.design/mdi/form-select.svg");
}
.editor-tab[data-editor-tab="statistic-editor"] {
  --editor-tab-icon: url("https://api.iconify.design/mdi/tune-variant.svg");
}
.editor-tab[data-editor-tab="statistic-values"] {
  --editor-tab-icon: url("https://api.iconify.design/mdi/table.svg");
}
.editor-tab[data-editor-tab="statistic-csv"] {
  --editor-tab-icon: url("https://api.iconify.design/mdi/code-json.svg");
}
.editor-tab-panel { min-width: 0; }
.secondary-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,248,.58);
  cursor: default;
}
.project-browser-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  margin-top: 14px;
}
.browser-footer-spacer {
  flex: 1 1 auto;
  min-height: 10px;
}
.project-browser-list > .project-card,
.project-browser-list > .project-browser-row {
  flex: 0 0 auto;
}
.library-browser-list { display: none; }
.library-browser-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.library-browser-heading strong { font-size: .92rem; color: var(--ink-soft); }
.browser-panel > .project-card { display: none; }
.project-card {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-align: left;
}
.project-card:hover > .project-row { background: rgba(33,54,51,.035); }
.project-card.is-active { border-color: rgba(33,54,51,.12); background: rgba(255,255,248,.42); }
body.earthmap-theme-dark .project-card:hover > .project-row { background: rgba(255,255,255,.035); }
body.earthmap-theme-dark .project-card.is-active { border-color: var(--line-strong); background: rgba(255,179,71,.08); }
.project-browser-row {
  display: grid;
  grid-template-columns: 22px 24px 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 50px;
  padding: 7px 10px;
  border-radius: 10px;
}
.project-card-main { min-width: 0; padding: 3px 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 8px; }
.project-card-main:focus-visible { outline: 2px solid rgba(205, 142, 45, .42); outline-offset: 4px; border-radius: 10px; }
.project-card strong,
.project-card span { display: block; }
.project-card strong { color: var(--ink); font-size: .98rem; line-height: 1.16; }
.project-card.is-active > .project-card-main strong { color: #9a6419; }
body.earthmap-theme-dark .project-card.is-active > .project-card-main strong { color: var(--amber); }
.project-card span { margin-top: 3px; color: var(--muted); font-size: .74rem; line-height: 1.35; }
.browser-visibility-checkbox {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #2f8cff;
  justify-self: center;
}
.browser-tree-toggle {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.browser-tree-toggle:hover:not(.browser-tree-toggle-spacer) {
  background: rgba(33,54,51,.055);
  color: var(--ink);
}
.browser-tree-toggle-spacer { pointer-events: none; }
.browser-row-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #9a6419;
}
.browser-row-icon::before,
.layer-row-menu-dots::before {
  content: "";
  display: block;
  width: 17px;
  height: 17px;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.browser-row-icon-project::before {
  -webkit-mask-image: var(--browser-row-icon-url, url("https://api.iconify.design/mdi/folder.svg"));
  mask-image: var(--browser-row-icon-url, url("https://api.iconify.design/mdi/folder.svg"));
}
.browser-row-icon-layers { color: #6f9fca; }
.browser-row-icon-layers::before {
  -webkit-mask-image: url("https://api.iconify.design/ri/treasure-map-line.svg");
  mask-image: url("https://api.iconify.design/ri/treasure-map-line.svg");
}
.browser-row-icon-continental { color: #8d918c; }
.browser-row-icon-continental::before {
  -webkit-mask-image: url("https://api.iconify.design/mdi/earth.svg");
  mask-image: url("https://api.iconify.design/mdi/earth.svg");
}
.browser-row-icon-collections { color: #9f8fc8; }
.browser-row-icon-collections::before {
  -webkit-mask-image: url("https://api.iconify.design/fa-solid/atlas.svg");
  mask-image: url("https://api.iconify.design/fa-solid/atlas.svg");
}
.browser-row-icon-statistics { color: #8cae9a; }
.browser-row-icon-statistics::before {
  -webkit-mask-image: url("https://api.iconify.design/mdi/chart-box-outline.svg");
  mask-image: url("https://api.iconify.design/mdi/chart-box-outline.svg");
}
.browser-row-icon-archive { color: #8f8d83; }
.browser-row-icon-archive::before {
  -webkit-mask-image: url("https://api.iconify.design/mdi/archive-outline.svg");
  mask-image: url("https://api.iconify.design/mdi/archive-outline.svg");
}
.browser-row-icon-dataset { color: #8d918c; }
.browser-row-icon-dataset::before {
  -webkit-mask-image: url("https://api.iconify.design/mdi/database-outline.svg");
  mask-image: url("https://api.iconify.design/mdi/database-outline.svg");
}
.browser-row-icon-trash { color: #9f6f68; }
.browser-row-icon-trash::before {
  -webkit-mask-image: url("https://api.iconify.design/mdi/trash-can-outline.svg");
  mask-image: url("https://api.iconify.design/mdi/trash-can-outline.svg");
}
.browser-visibility-spacer {
  visibility: hidden;
}
.archive-browser-card {
  margin-top: 10px;
  border-color: rgba(33,54,51,.1);
  background: rgba(255,255,248,.24);
}
body.earthmap-theme-dark .archive-browser-card {
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.018);
}
.archive-browser-row {
  min-height: 48px;
}
.archive-browser-tree {
  gap: 6px;
  margin-bottom: 8px;
}
.archive-dataset-list,
.archive-state-folder-list,
.archive-state-item-list {
  display: grid;
  gap: 4px;
}
.archive-dataset-row,
.archive-state-folder-row,
.archive-state-item-row {
  grid-template-columns: 22px 24px 22px minmax(0, 1fr);
  min-height: 42px;
}
.archive-dataset-row {
  background: rgba(33,54,51,.018);
}
body.earthmap-theme-dark .archive-dataset-row {
  background: rgba(255,255,255,.012);
}
.archive-state-folder-row {
  margin-left: 22px;
}
.archive-admin1-folder-row {
  margin-left: 58px;
}
.archive-state-item-list {
  margin: 0 0 4px 58px;
}
.archive-admin1-item-list {
  margin-left: 94px;
}
.archive-state-item-row {
  min-height: 38px;
  padding-top: 5px;
  padding-bottom: 5px;
}
.archive-state-item-row.is-active {
  background: rgba(198,168,106,.12);
  box-shadow: inset 2px 0 0 rgba(154,100,25,.58);
}
.archive-state-item-row.is-active strong { color: #9a6419; }
body.earthmap-theme-dark .archive-state-item-row.is-active {
  background: rgba(255,179,71,.08);
  box-shadow: inset 2px 0 0 rgba(255,179,71,.72);
}
body.earthmap-theme-dark .archive-state-item-row.is-active strong { color: var(--amber); }
.browser-trash-row {
  grid-template-columns: 22px 24px 22px minmax(0, 1fr);
  margin-top: 10px;
}
.project-card-menu-shell { position: relative; display: inline-flex; justify-self: end; }
.project-card-menu-trigger { width: 28px; height: 28px; padding: 0; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink-soft); cursor: pointer; transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease; }
.project-card-menu-trigger:hover,
.project-card-menu-trigger[aria-expanded="true"] { border-color: var(--line); background: rgba(255,255,248,.58); color: var(--ink); }
.project-card-menu-dots { display: block; width: 100%; height: 100%; background: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: 16px 16px; mask-size: 16px 16px; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8 2.5a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3Zm0 5a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3Zm0 5a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8 2.5a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3Zm0 5a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3Zm0 5a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3Z'/%3E%3C/svg%3E"); }
.project-card-menu,
.layer-row-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 12; display: flex; flex-direction: column; gap: 4px; min-width: 168px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: rgba(246,242,231,.98); box-shadow: 0 16px 36px rgba(33,54,51,.16); backdrop-filter: blur(10px); }
.project-card-menu[hidden],
.layer-row-menu[hidden] { display: none !important; }
.project-card-menu-action { position: relative; overflow: hidden; min-width: 150px; padding: 8px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: inherit; text-align: left; white-space: nowrap; cursor: pointer; }
.project-card-menu-action:hover { background: rgba(33,54,51,.06); }
.project-card-menu-action:disabled,
.layer-row-menu-action-disabled {
  color: var(--muted);
  cursor: default;
  opacity: .72;
}
.project-card-menu-action:disabled:hover,
.layer-row-menu-action-disabled:hover { background: transparent; }
.project-card-menu-action-delete { --hold-progress: 0%; }
.project-card-menu-action-delete.is-hold-active,
.project-card-menu-action-delete.is-hold-ready { background: linear-gradient(90deg, rgba(196, 105, 95, .66) 0%, rgba(196, 105, 95, .66) var(--hold-progress), transparent var(--hold-progress), transparent 100%), rgba(33,54,51,.06); color: var(--ink); }
.project-layer-tree {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  margin: 0 0 4px 34px;
  padding: 0;
  border-left: 0;
}
.project-layer-tree-heading { display: flex; align-items: center; min-height: 20px; }
.layer-folder-row {
  min-height: 46px;
  padding-left: 0;
}
.layer-folder-row.has-folder-action {
  grid-template-columns: 22px 24px 22px minmax(0, 1fr) 26px 26px;
}
.layer-folder-row:hover { background: rgba(33,54,51,.035); }
.layer-folder-row.is-drop-target,
.library-subfolder-row.is-drop-target {
  border-color: rgba(154,100,25,.32);
  background: rgba(198,168,106,.16);
  box-shadow: inset 0 0 0 1px rgba(154,100,25,.2);
}
.layer-folder-row.is-drop-invalid,
.library-subfolder-row.is-drop-invalid {
  opacity: .62;
}
body.earthmap-theme-dark .layer-folder-row.is-drop-target,
body.earthmap-theme-dark .library-subfolder-row.is-drop-target {
  border-color: rgba(255,179,71,.38);
  background: rgba(255,179,71,.1);
  box-shadow: inset 0 0 0 1px rgba(255,179,71,.22);
}
.library-subfolder-list { display: grid; gap: 4px; margin-top: 4px; }
.library-subfolder-row {
  grid-template-columns: 22px 24px 22px minmax(0, 1fr) 28px;
  min-height: 42px;
  margin-left: 34px;
  padding-left: 0;
  background: rgba(33,54,51,.018);
}
body.earthmap-theme-dark .library-subfolder-row {
  background: rgba(255,255,255,.01);
}
.browser-row-icon-subfolder { color: #9a6419; }
body.earthmap-theme-dark .browser-row-icon-subfolder { color: var(--amber); }
.browser-row-icon-subfolder::before {
  -webkit-mask-image: url("https://api.iconify.design/mdi/folder-outline.svg");
  mask-image: url("https://api.iconify.design/mdi/folder-outline.svg");
}
.library-subfolder-items {
  display: grid;
  gap: 4px;
  margin: 2px 0 6px 58px;
}
.library-subfolder-items .library-item-card {
  padding-left: 12px;
}
.library-item-list { display: grid; gap: 4px; margin-top: 4px; }
.library-empty { margin: 0; color: var(--muted); font-size: .86rem; }
.library-item-card {
  --layer-color: #c6a86a;
  position: relative;
  display: grid;
  grid-template-columns: 22px 24px 12px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 50px;
  padding: 7px 10px 7px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.library-item-card::before {
  content: none;
}
.library-item-card:hover,
.library-item-card.is-active {
  border-color: rgba(33,54,51,.12);
  background: rgba(255,255,248,.54);
}
.library-item-card[draggable="true"] {
  cursor: grab;
}
.library-item-card[draggable="true"]:active {
  cursor: grabbing;
}
.library-item-card.is-dragging {
  opacity: .46;
  transform: scale(.995);
}
body.earthmap-theme-dark .library-item-card:hover,
body.earthmap-theme-dark .library-item-card.is-active {
  border-color: var(--line-strong);
  background: rgba(255,179,71,.075);
}
.background-map-list {
  display: grid;
  gap: 8px;
}
.background-map-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 3px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,248,.42);
  color: var(--ink);
  font: inherit;
  text-align: left;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}
.background-map-card-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.background-map-card strong {
  font-weight: 700;
}
.background-map-card-copy span {
  color: var(--muted);
  font-size: .9rem;
}
.background-map-card.is-active {
  border-color: rgba(154,100,25,.28);
  background: rgba(255,255,248,.68);
  box-shadow: inset 0 0 0 1px rgba(154,100,25,.12);
}
.background-map-settings-button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}
.background-map-settings-button:hover {
  border-color: var(--line);
  background: rgba(255,255,248,.58);
  color: var(--ink);
}
.background-map-settings-button span {
  width: 17px;
  height: 17px;
  background: currentColor;
  -webkit-mask: url("https://api.iconify.design/mdi/cog-outline.svg") center / contain no-repeat;
  mask: url("https://api.iconify.design/mdi/cog-outline.svg") center / contain no-repeat;
}
body.earthmap-theme-dark .background-map-card {
  border-color: var(--line);
  background: rgba(255,255,255,.035);
  color: var(--amber);
}
body.earthmap-theme-dark .background-map-card.is-active {
  border-color: rgba(255,179,71,.34);
  background: rgba(255,179,71,.08);
  box-shadow: inset 0 0 0 1px rgba(255,179,71,.18);
}
body.earthmap-theme-dark .background-map-settings-button {
  color: var(--amber);
}
body.earthmap-theme-dark .background-map-settings-button:hover {
  border-color: rgba(255,179,71,.34);
  background: rgba(255,179,71,.08);
}
.library-item-type-icon {
  display: inline-flex !important;
  background: transparent;
  box-shadow: none;
  justify-self: center;
}
.library-item-type-icon.browser-row-icon-collections { color: #9f8fc8; }
body.earthmap-theme-dark .library-item-type-icon.browser-row-icon-collections {
  color: var(--amber);
}
.library-item-type-spacer {
  display: block;
  width: 20px;
  height: 20px;
}
.library-item-glyph {
  display: block;
  width: 2px;
  height: 28px;
  border-radius: 2px;
  background: var(--layer-color);
  justify-self: center;
}
.library-item-copy { min-width: 0; display: block; }
.library-item-card strong { color: var(--ink); font-size: .9rem; line-height: 1.16; }
.library-item-card span { color: var(--muted); font-size: .74rem; line-height: 1.35; }
.library-item-card.is-active strong { color: #9a6419; }
body.earthmap-theme-dark .library-item-card.is-active strong { color: var(--amber); }
.library-item-card.is-hidden-layer {
  opacity: .58;
}
.layer-row-menu-shell {
  position: relative;
  display: inline-flex !important;
  justify-self: end;
}
.layer-row-menu-trigger {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.layer-row-menu-trigger:hover,
.layer-row-menu-trigger[aria-expanded="true"] {
  border-color: var(--line);
  background: rgba(255,255,248,.58);
  color: var(--ink);
}
.layer-row-menu-dots {
  display: block !important;
  width: 100%;
  height: 100%;
}
.layer-row-menu-dots::before {
  width: 16px;
  height: 16px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8 2.5a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3Zm0 5a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3Zm0 5a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8 2.5a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3Zm0 5a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3Zm0 5a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3Z'/%3E%3C/svg%3E");
}
.boundary-summary { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,248,.42); }
.boundary-level-list { display: grid; gap: 8px; margin-top: 12px; }
.boundary-level-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(33,54,51,.03); }
.boundary-level-item strong { font-size: .9rem; }
.boundary-level-item span { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.editor-section { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.editor-section h3 { margin: 0; font-size: 1rem; }
.search-field { display: grid; gap: 6px; margin-top: 14px; color: var(--ink-soft); }
.search-field span { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.search-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 12px;
  background: rgba(255,255,248,.66);
  color: var(--ink);
  font: inherit;
}
body.earthmap-theme-dark .search-field input,
body.earthmap-theme-dark .search-result-card {
  background: rgba(255,255,255,.045);
}
.source-toggle-list { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 14px 0; color: var(--ink-soft); }
.source-toggle-list label { display: inline-flex; align-items: center; gap: 7px; }
.collection-import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.gearbox-mode-row,
.gearbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.gearbox-workspace {
  display: grid;
  gap: 12px;
}
.gearbox-panel {
  display: grid;
  gap: 12px;
}
.gearbox-match-summary {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,248,.46);
  color: var(--ink-soft);
}
body.earthmap-theme-dark .gearbox-match-summary {
  background: rgba(255,255,255,.045);
}
.gearbox-panel textarea {
  min-height: 150px;
  font-family: "Source Code Pro", Consolas, monospace;
  font-size: .9rem;
}
.earthmap-csv-code-field {
  min-height: clamp(330px, 52vh, 760px);
}
.earthmap-csv-code-editor {
  position: relative;
  min-height: inherit;
  border: 1px solid var(--csv-code-border);
  border-radius: 14px;
  background: var(--csv-code-bg);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.earthmap-csv-code-editor .csv-code-highlight,
.earthmap-csv-code-editor .csv-code-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: "Source Code Pro", "Cascadia Mono", Consolas, monospace;
  font-size: .82rem;
  line-height: 1.58;
  letter-spacing: .01em;
  tab-size: 2;
  white-space: pre;
  overflow: auto;
}
.earthmap-csv-code-editor .csv-code-highlight {
  color: var(--csv-code-text);
  pointer-events: none;
}
.earthmap-csv-code-editor .csv-code-input {
  color: transparent;
  caret-color: var(--csv-code-text);
  resize: none;
  outline: none;
}
.earthmap-csv-code-editor .csv-code-input::selection {
  background: rgba(255,179,71,.24);
}
.earthmap-csv-code-editor .csv-code-input::placeholder {
  color: transparent;
}
.csv-code-line {
  display: block;
  min-height: 1.58em;
}
.csv-token-header { color: var(--csv-code-header); font-weight: 700; }
.csv-token-boundary { color: var(--csv-code-boundary); }
.csv-token-value { color: var(--csv-code-value); }
.csv-token-unit { color: var(--csv-code-unit); }
.csv-token-source { color: var(--csv-code-source); }
.csv-token-meta-key { color: var(--csv-code-meta-key); }
.csv-token-comma { color: var(--csv-code-comma); }
.csv-token-error { color: var(--csv-code-error); }
.gearbox-style-editor {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,248,.44);
}
.gearbox-style-editor h4 {
  margin: 0;
  color: var(--ink);
  font-size: .92rem;
}
.gearbox-value-style-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--z-editor-tabs-line);
  border-radius: 10px;
  background: var(--z-editor-tabs-surface);
}
.gearbox-value-style-tab {
  min-height: 32px;
  padding: 5px 10px;
  font-size: .74rem;
}
.gearbox-class-list {
  display: grid;
  gap: 10px;
}
.gearbox-class-row {
  display: grid;
  grid-template-columns: minmax(82px, 1fr) minmax(82px, 1fr) minmax(116px, 1.25fr) auto;
  gap: 8px;
  align-items: end;
}
.gearbox-class-swatch {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: rgba(33,54,51,.76);
  font-family: "Source Code Pro", Consolas, monospace;
  font-size: .78rem;
}
.gearbox-class-remove {
  min-height: 36px;
  align-self: end;
}
body.earthmap-theme-dark .gearbox-style-editor {
  background: rgba(255,255,255,.045);
}
body.earthmap-theme-dark .gearbox-class-swatch {
  color: rgba(255,244,214,.82);
}
.gearbox-values-table-panel {
  display: grid;
  gap: 12px;
}
.gearbox-values-table-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}
.gearbox-values-table-title strong {
  color: var(--ink);
  font-size: .96rem;
}
.gearbox-values-table-title span {
  color: var(--muted);
  font-size: .78rem;
}
.gearbox-values-table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,248,.44);
}
.gearbox-values-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}
.gearbox-values-table th,
.gearbox-values-table td {
  padding: 7px;
  border-bottom: 1px solid rgba(33,54,51,.08);
  border-right: 1px solid rgba(33,54,51,.06);
  vertical-align: top;
}
.gearbox-values-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--panel) 92%, white);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}
.gearbox-values-table input {
  width: 150px;
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 6px 8px;
  color: var(--ink);
  background: rgba(255,255,248,.54);
  font: inherit;
}
.gearbox-values-table input:focus {
  border-color: var(--line-strong);
  outline: none;
  background: rgba(255,255,248,.82);
}
.gearbox-boundary-key-cell {
  min-width: 214px;
}
.gearbox-boundary-key-control {
  display: flex;
  align-items: center;
  gap: 6px;
}
.gearbox-source-cell {
  min-width: 230px;
}
.gearbox-source-control {
  display: flex;
  align-items: center;
  gap: 6px;
}
.gearbox-value-cell {
  min-width: 214px;
}
.gearbox-value-control {
  display: flex;
  align-items: center;
  gap: 6px;
}
.gearbox-boundary-key-control input {
  width: 158px;
  min-width: 0;
}
.gearbox-source-control input {
  width: 174px;
  min-width: 0;
}
.gearbox-value-control input {
  width: 158px;
  min-width: 0;
  cursor: pointer;
}
.boundary-key-details-button {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
}
.boundary-key-details-button:hover,
.boundary-key-details-button:focus-visible {
  border-color: var(--line);
  color: #9a6419;
  background: rgba(255,255,248,.56);
  outline: none;
}
.boundary-key-details-icon {
  display: block;
  width: 19px;
  height: 19px;
  background: currentColor;
  mask: url("https://api.iconify.design/mdi/details.svg") center / contain no-repeat;
  -webkit-mask: url("https://api.iconify.design/mdi/details.svg") center / contain no-repeat;
}
.boundary-key-details-dialog {
  width: min(560px, calc(100vw - 34px));
  border: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--panel) 91%, transparent);
  box-shadow: 0 18px 42px rgba(33,54,51,.16);
  backdrop-filter: blur(16px);
  font-family: "Source Code Pro", "Cascadia Mono", Consolas, monospace;
  font-size: .72rem;
  line-height: 1.36;
  letter-spacing: .015em;
}
.boundary-key-details-dialog::backdrop {
  background: rgba(21,31,30,.34);
  backdrop-filter: blur(2px);
}
.boundary-key-details-dialog h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .72rem;
  line-height: 1.25;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.boundary-key-details-dialog p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.38;
}
.boundary-key-details-list {
  display: grid;
  grid-template-columns: minmax(138px, .42fr) minmax(0, 1fr);
  gap: 0;
  margin: 0 0 12px;
  overflow: hidden;
  border-top: 1px solid color-mix(in srgb, var(--line) 54%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 54%, transparent);
  border-radius: 0;
}
.boundary-key-details-list dt,
.boundary-key-details-list dd {
  margin: 0;
  padding: 4px 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 46%, transparent);
  font-size: .68rem;
}
.boundary-key-details-list dt {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
  background: transparent;
}
.boundary-key-details-list dd {
  overflow-wrap: anywhere;
  font-family: inherit;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
}
.boundary-key-details-list dd a {
  color: #9a6419;
  text-decoration: none;
}
.boundary-key-details-list dd a:hover,
.boundary-key-details-list dd a:focus-visible {
  text-decoration: underline;
}
.boundary-key-details-list dt:nth-last-child(2),
.boundary-key-details-list dd:last-child {
  border-bottom: 0;
}
.boundary-key-details-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.boundary-add-dialog {
  width: min(720px, calc(100vw - 34px));
}
.value-details-dialog {
  width: min(640px, calc(100vw - 34px));
}
.value-details-list {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}
.value-details-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(92px, .48fr);
  gap: 8px;
  align-items: end;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--line) 54%, transparent);
  border-radius: 10px;
  background: rgba(255,255,248,.42);
}
.value-details-field {
  display: grid;
  gap: 5px;
}
.value-details-field span {
  color: var(--muted);
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.value-details-field input {
  width: 100%;
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--line) 66%, transparent);
  border-radius: 9px;
  padding: 7px 8px;
  color: var(--ink);
  background: rgba(255,255,248,.66);
  font: 600 .76rem/1.25 "Source Code Pro", "Cascadia Mono", Consolas, monospace;
}
.value-details-field input:focus {
  border-color: color-mix(in srgb, var(--line-strong) 84%, transparent);
  outline: none;
  background: rgba(255,255,248,.86);
}
.boundary-add-context-info {
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--line) 58%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 78%, rgba(154,100,25,.08));
}
.boundary-add-search-field {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
}
.boundary-add-search-field span {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.boundary-add-search-field input {
  width: 100%;
  min-height: 38px;
  border: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(255,255,248,.66);
  font: 600 .78rem/1.3 "Source Code Pro", "Cascadia Mono", Consolas, monospace;
}
.boundary-add-search-field input:focus {
  border-color: color-mix(in srgb, var(--line-strong) 84%, transparent);
  outline: none;
  background: rgba(255,255,248,.86);
}
.boundary-selection-list {
  display: grid;
  gap: 6px;
  max-height: min(42vh, 380px);
  margin: 2px 0 12px;
  overflow: auto;
  scrollbar-width: none;
}
.boundary-selection-list::-webkit-scrollbar {
  display: none;
}
.boundary-selection-row {
  display: grid;
  grid-template-columns: minmax(110px, .9fr) minmax(88px, auto) minmax(140px, 1.1fr) minmax(120px, .9fr);
  gap: 10px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--line) 56%, transparent);
  border-radius: 10px;
  background: rgba(255,255,248,.42);
}
.boundary-selection-row.is-found {
  border-color: color-mix(in srgb, #7fa279 48%, var(--line));
}
.boundary-selection-row.is-blocked {
  border-color: color-mix(in srgb, #c59a57 52%, var(--line));
  opacity: .82;
}
.boundary-selection-row.is-missing {
  opacity: .68;
}
.boundary-selection-term {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.boundary-selection-key {
  color: var(--ink-soft);
  background: transparent;
  font-family: inherit;
  font-size: .7rem;
  font-weight: 700;
}
.boundary-selection-label {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .78rem;
  line-height: 1.25;
}
.boundary-selection-note {
  color: var(--muted);
  font-size: .66rem;
}
.boundary-key-details-dialog > .secondary-button {
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 8px;
  font-family: "Source Code Pro", "Cascadia Mono", Consolas, monospace;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.boundary-key-details-actions > .secondary-button {
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 8px;
  font-family: "Source Code Pro", "Cascadia Mono", Consolas, monospace;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.gearbox-value-source-open {
  display: inline-block;
  margin: 5px 0 0 2px;
  color: #9a6419;
  font-size: .72rem;
  text-decoration: none;
}
.gearbox-value-source-open:hover,
.gearbox-value-source-open:focus-visible {
  text-decoration: underline;
}
.gearbox-values-row-actions {
  white-space: nowrap;
}
.gearbox-values-row-actions .secondary-button {
  min-width: 32px;
  min-height: 32px;
  padding: 0 8px;
}
body.earthmap-theme-dark .gearbox-values-table-wrap {
  background: rgba(255,255,255,.045);
}
body.earthmap-theme-dark .gearbox-values-table th {
  background: color-mix(in srgb, var(--panel) 92%, black);
}
body.earthmap-theme-dark .gearbox-values-table th,
body.earthmap-theme-dark .gearbox-values-table td {
  border-color: rgba(255,255,255,.07);
}
body.earthmap-theme-dark .gearbox-values-table input {
  background: rgba(255,255,255,.045);
}
body.earthmap-theme-dark .gearbox-values-table input:focus {
  background: rgba(255,179,71,.08);
}
body.earthmap-theme-dark .boundary-key-details-button:hover,
body.earthmap-theme-dark .boundary-key-details-button:focus-visible {
  color: var(--amber);
  background: rgba(255,179,71,.08);
}
body.earthmap-theme-dark .boundary-key-details-dialog {
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
}
body.earthmap-theme-dark .boundary-add-context-info {
  background: color-mix(in srgb, var(--panel) 80%, rgba(255,179,71,.08));
}
body.earthmap-theme-dark .value-details-row {
  background: rgba(255,255,255,.045);
}
body.earthmap-theme-dark .value-details-field input {
  color: var(--ink);
  background: rgba(255,255,255,.055);
}
body.earthmap-theme-dark .value-details-field input:focus {
  background: rgba(255,179,71,.075);
}
body.earthmap-theme-dark .boundary-add-search-field input {
  color: var(--ink);
  background: rgba(255,255,255,.055);
}
body.earthmap-theme-dark .boundary-add-search-field input:focus {
  background: rgba(255,179,71,.075);
}
body.earthmap-theme-dark .boundary-selection-row {
  background: rgba(255,255,255,.045);
}
body.earthmap-theme-dark .boundary-selection-row.is-found {
  border-color: color-mix(in srgb, #b9d3aa 42%, var(--line));
}
body.earthmap-theme-dark .boundary-selection-row.is-blocked {
  border-color: color-mix(in srgb, var(--amber) 44%, var(--line));
}
body.earthmap-theme-dark .boundary-key-details-list dt,
body.earthmap-theme-dark .boundary-key-details-list dd {
  border-color: color-mix(in srgb, var(--line) 54%, transparent);
}
body.earthmap-theme-dark .boundary-key-details-list dt {
  background: transparent;
}
body.earthmap-theme-dark .boundary-key-details-list dd {
  background: transparent;
}
body.earthmap-theme-dark .boundary-key-details-list dd a {
  color: var(--amber);
}
body.earthmap-theme-dark .gearbox-value-source-open {
  color: var(--amber);
}
.secondary-button.is-active {
  color: var(--z-editor-tab-active-text);
  border-color: var(--z-editor-tab-active-line);
}
.structured-editor-field-help code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,248,.52);
  color: var(--ink-soft);
  font-family: "Source Code Pro", Consolas, monospace;
  font-size: .92em;
}
body.earthmap-theme-dark .structured-editor-field-help code {
  background: rgba(255,255,255,.045);
}
.search-result-list { display: grid; gap: 10px; margin-top: 12px; }
.search-result-card {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,248,.48);
}
.search-result-card strong { display: block; }
.search-result-card span,
.search-result-card p { margin: 0; color: var(--ink-soft); line-height: 1.45; }
.search-result-card .secondary-button { justify-self: start; cursor: default; opacity: .72; }
.search-result-card .secondary-button:not(:disabled) { cursor: pointer; opacity: 1; }
.empty-state { margin: 0; color: var(--muted); }
.layer-editor-content { display: grid; gap: 14px; margin-top: 16px; }
.layer-color-controls {
  width: 100%;
}
.layer-meta-list {
  display: grid;
  grid-template-columns: minmax(110px, .45fr) minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0;
}
.layer-meta-list dt { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.layer-meta-list dd { margin: 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.structured-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.structured-editor-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.structured-editor-section-header {
  width: 100%;
  margin: 0;
  padding: 4px 2px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #9a6419;
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
}
.structured-editor-section-header:hover,
.structured-editor-section-header:focus-visible {
  color: #b87922;
  outline: none;
}
body.earthmap-theme-dark .structured-editor-section-header {
  color: rgba(255, 179, 71, .92);
}
body.earthmap-theme-dark .structured-editor-section-header:hover,
body.earthmap-theme-dark .structured-editor-section-header:focus-visible {
  color: #ffd089;
}
.structured-editor-section-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-block;
  background: currentColor;
  -webkit-mask: var(--section-icon) center / contain no-repeat;
  mask: var(--section-icon) center / contain no-repeat;
}
.structured-editor-section-copy {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.structured-editor-section-copy strong {
  color: currentColor;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}
.structured-editor-section-description {
  margin: -2px 0 2px;
  color: var(--muted);
  line-height: 1.35;
  font-size: .82rem;
}
.structured-editor-section-chevron {
  margin-left: auto;
  color: rgba(154, 100, 25, .76);
  font-size: .76rem;
  line-height: 1;
}
body.earthmap-theme-dark .structured-editor-section-chevron {
  color: rgba(255, 179, 71, .78);
}
.structured-editor-section-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.structured-editor-section-body[hidden] { display: none !important; }
.structured-editor-field {
  display: grid;
  gap: 5px;
}
.structured-editor-field > span,
.structured-editor-check > span {
  color: var(--ink-soft);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.structured-editor-field input,
.structured-editor-field textarea,
.structured-editor-field select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 10px;
  background: rgba(255,255,248,.68);
  color: var(--ink);
  font: inherit;
}
.structured-editor-field textarea {
  min-height: 76px;
  resize: vertical;
}
.structured-editor-field input[readonly] {
  color: var(--muted);
  background: rgba(33,54,51,.035);
}
body.earthmap-theme-dark .structured-editor-field input,
body.earthmap-theme-dark .structured-editor-field textarea,
body.earthmap-theme-dark .structured-editor-field select {
  background: rgba(255,255,255,.045);
}
.structured-editor-field-help {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.36;
}
.structured-editor-assistant-hint a {
  color: #9a6419;
  text-decoration: none;
  border-bottom: 1px solid rgba(154, 100, 25, .28);
}
.structured-editor-assistant-hint a:hover,
.structured-editor-assistant-hint a:focus-visible {
  border-bottom-color: currentColor;
}
body.earthmap-theme-dark .structured-editor-assistant-hint a {
  color: var(--amber);
  border-bottom-color: rgba(255, 179, 71, .3);
}
.structured-editor-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
}
.structured-editor-check.is-checkbox-end {
  justify-content: space-between;
  gap: 16px;
}
.structured-editor-check.is-checkbox-end input {
  order: 2;
  flex: 0 0 auto;
}
.structured-editor-check.is-checkbox-end span {
  order: 1;
}
.project-icon-field-body {
  display: grid;
  gap: 8px;
}
.project-icon-field-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.project-icon-field-preview {
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(154,100,25,.18);
  border-radius: 8px;
  background: rgba(154,100,25,.045);
  align-self: center;
}
body.earthmap-theme-dark .project-icon-field-preview {
  border-color: rgba(255,179,71,.18);
  background: rgba(255,179,71,.045);
}
.project-icon-field-preview img {
  width: 22px;
  height: 22px;
  display: block;
}
.project-icon-field-meta {
  min-width: 0;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.3;
}
.project-rank-style-list {
  display: grid;
  gap: 10px;
}
.project-rank-style-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 260px) minmax(96px, 120px) minmax(130px, 160px);
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid rgba(33,54,51,.09);
  border-radius: 12px;
  background: rgba(255,255,248,.42);
}
body.earthmap-theme-dark .project-rank-style-row {
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
}
.project-rank-style-label {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.project-rank-style-label strong {
  color: var(--ink);
  font-size: .84rem;
  line-height: 1.25;
}
.project-rank-style-label span {
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.28;
}
@media (max-width: 760px) {
  .project-rank-style-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}
.boundary-feature-list {
  display: grid;
  gap: 6px;
  max-height: 280px;
  overflow: auto;
  scrollbar-width: none;
}
.boundary-feature-list::-webkit-scrollbar { display: none; }
.boundary-feature-row {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(33,54,51,.08);
  border-radius: 11px;
  background: rgba(33,54,51,.025);
}
body.earthmap-theme-dark .boundary-feature-row {
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
}
.boundary-feature-row strong {
  color: var(--ink);
  font-size: .86rem;
}
.boundary-feature-row span {
  color: var(--muted);
  font-size: .75rem;
  overflow-wrap: anywhere;
}
.class-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: center; margin-top: 10px; color: var(--ink-soft); }
.class-row i { height: 18px; border-radius: 999px; background: linear-gradient(90deg, #d9cc98, #f2a33a); }
.class-row:nth-child(3) i { background: linear-gradient(90deg, #b9c59d, #d9cc98); }
.class-row:nth-child(4) i { background: linear-gradient(90deg, #6e9388, #b9c59d); }

.menu-overlay { position: fixed; inset: 0; z-index: 30; background: rgba(33,54,51,.13); backdrop-filter: blur(2px); }
.menu-overlay[hidden] { display: none; }
.side-menu { position: fixed; z-index: 31; inset: 0 auto 0 0; width: min(420px, calc(100vw - 28px)); padding: 18px; border-right: 1px solid var(--line); background: rgba(246,242,231,.97); box-shadow: 24px 0 70px rgba(33,54,51,.15); transform: translateX(-100%); transition: transform 180ms ease; }
.side-menu.is-open { transform: translateX(0); }
.side-menu-inner { display: flex; flex-direction: column; gap: 18px; height: 100%; }
.side-menu-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.side-menu-head strong { display: block; margin-top: 4px; font-size: 1.35rem; }
.menu-close-button { border: 0; background: transparent; cursor: pointer; font-size: 1.4rem; }
.side-menu-list { display: grid; gap: 10px; overflow: auto; }
.side-menu details { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,248,.48); }
.side-menu summary { padding: 13px 14px; cursor: pointer; font-weight: 800; }
.side-menu p { margin: 0; padding: 0 14px 14px; color: var(--ink-soft); line-height: 1.5; }
.project-choice-list { display: grid; gap: 8px; padding: 0 12px 12px; }
.project-choice { padding: 10px 12px; border: 1px solid transparent; border-radius: 11px; color: var(--ink); text-decoration: none; }
.project-choice:hover,
.project-choice[aria-current="page"] { border-color: var(--line); background: rgba(255,255,248,.62); }

@media (max-width: 900px) {
  .topbar-search {
    flex-basis: 26rem;
    padding: 0 clamp(12px, 2.5vw, 24px);
  }
  .globe-stage { align-content: stretch; }
  .workspace-stage { overflow: hidden; grid-template-columns: minmax(0, 1fr); }
  .workspace-panel { overflow: auto; }
  .app-frame.details-layout-normal .editor-panel { display: none; }
}

@media (max-width: 760px) {
  .gearbox-class-row {
    grid-template-columns: 1fr 1fr;
  }
  .gearbox-class-row .structured-editor-field,
  .gearbox-class-row .gearbox-class-swatch {
    min-width: 0;
  }
  .gearbox-class-remove {
    grid-column: 1 / -1;
    justify-self: start;
  }
  :root { --earthmap-topbar-height: 126px; }
  .topbar {
    flex-wrap: wrap;
    align-content: center;
    gap: 6px 8px;
  }
  .brand-plate {
    flex: 1 1 auto;
    order: 1;
  }
  .topbar-actions {
    order: 2;
    margin-left: auto;
  }
  .topbar-search {
    order: 3;
    flex: 1 0 100%;
    justify-content: center;
    padding: 0 14px;
  }
  .search-wrap {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 620px) {
  :root {
    --earthmap-topbar-height: 128px;
    --earthmap-footer-height: calc(52px + env(safe-area-inset-bottom, 0px));
  }
  .earthmap-diagnostics-stack {
    display: none;
  }
  .topbar { padding: 18px 10px 10px 12px; }
  .brand-plate { gap: 8px; padding: 0 4px; }
  .brand-name { font-size: 1.4rem; }
  .brand-home-link,
  .brand-bird { width: 44px; height: 44px; }
  .topbar-search { min-width: 0; padding: 0 6px; }
  .app-search { height: 38px; padding-left: 62px; font-size: .86rem; }
  .map-search-info-button { left: 7px; width: 26px; height: 26px; }
  .map-search-info-button span { width: 16px; height: 16px; }
  .search-wrap::before { left: 37px; width: 16px; height: 16px; }
  .topbar-actions { padding-right: 0; }
  .globe-stage { padding: 0; }
  .preview-view > .workspace-strip:not(.workspace-strip-top) {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 28;
    min-height: var(--earthmap-footer-height);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .workspace-stage { padding: 66px 8px 10px; gap: 10px; }
  .workspace-panel { border-radius: 16px; padding: 16px; }
}
