:root {
  color-scheme: light;
  --bg: #f4f1eb;
  --surface: #ffffff;
  --surface-muted: #ebe7df;
  --text: #1f2726;
  --muted: #69706d;
  --line: #d7d2c9;
  --accent: #176f74;
  --accent-strong: #0f565a;
  --accent-soft: #d7eeee;
  --danger: #a33a2f;
  --shadow: 0 12px 34px rgba(31, 39, 38, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  grid-template-areas:
    "map controls"
    "preview controls";
  align-items: start;
  min-height: 100vh;
}

.map-pane {
  grid-area: map;
  display: grid;
  grid-template-rows: auto auto auto;
  min-width: 0;
}

.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.map-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: min(680px, 62vw);
}

.search-box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  width: min(460px, 38vw);
  min-width: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 5px rgba(31, 39, 38, 0.08);
}

.search-box input {
  min-width: 0;
  min-height: 40px;
  border: 0;
  border-radius: 8px 0 0 8px;
  padding: 9px 11px;
  color: var(--text);
  background: transparent;
}

.search-box button {
  min-height: 40px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0 7px 7px 0;
  padding: 8px 12px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.search-box button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.search-results {
  position: absolute;
  z-index: 1001;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: min(360px, 58vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-result,
.search-status {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.search-result {
  display: grid;
  gap: 3px;
  cursor: pointer;
}

.search-result:hover,
.search-result:focus {
  background: var(--accent-soft);
}

.search-result:last-child,
.search-status:last-child {
  border-bottom: 0;
}

.search-result strong {
  font-size: 0.9rem;
}

.search-result span,
.search-status {
  color: var(--muted);
  font-size: 0.82rem;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

h2 {
  font-size: 0.98rem;
}

.shape-toggle {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.shape-toggle button {
  min-width: 86px;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.shape-toggle button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 5px rgba(31, 39, 38, 0.12);
}

#map {
  height: clamp(42rem, 92vh, 64rem);
}

.control-pane {
  grid-area: controls;
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  max-height: 100vh;
  padding: 16px;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: #fbfaf7;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(31, 39, 38, 0.04);
}

.panel h2 {
  margin-bottom: 14px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.setting-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.setting-label:has(.info-button:hover),
.setting-label:has(.info-button:focus-visible) {
  z-index: 5000;
}

.info-button {
  position: relative;
  z-index: 5001;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  background: var(--surface-muted);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  cursor: help;
}

.info-button:hover,
.info-button:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}


.frame-settings {
  display: grid;
}

.settings-disabled {
  opacity: 0.58;
}


input[type="number"] {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text);
  background: #fff;
}

input[type="number"]:disabled {
  color: var(--muted);
  background: var(--surface-muted);
  cursor: not-allowed;
  opacity: 0.65;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

output {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

#buildButton {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.build-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#buildButton:disabled {
  cursor: wait;
  opacity: 0.7;
}

.secondary-button {
  width: 100%;
  min-height: 40px;
  margin: 10px 0 14px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent-strong);
  font-weight: 800;
  cursor: pointer;
}

.secondary-button:disabled {
  border-color: var(--line);
  color: var(--muted);
  cursor: wait;
  opacity: 0.75;
}

.inspect-readout {
  padding-top: 2px;
}

.preview-panel {
  grid-area: preview;
  display: grid;
  grid-template-rows: auto minmax(clamp(48rem, 118vh, 80rem), 1fr) auto;
  gap: 14px;
  min-height: clamp(60rem, 132vh, 92rem);
  padding: 18px 24px 28px;
  border-top: 1px solid var(--line);
  background: #fbfaf7;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.preview-mode {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  background: var(--surface);
}

.preview-mode label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  border-radius: 6px;
  padding: 6px 8px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.preview-mode input {
  accent-color: var(--accent);
}

.preview-mode label:has(input:checked) {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.download-link {
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.download-link.disabled {
  border-color: var(--line);
  color: var(--muted);
  pointer-events: none;
}

#viewer {
  position: relative;
  min-height: clamp(48rem, 118vh, 80rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #18201f;
}

#viewer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.build-progress {
  display: grid;
  gap: 8px;
}

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

.build-progress-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.build-progress progress {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--surface-muted);
}

.build-progress progress::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--surface-muted);
}

.build-progress progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--accent);
}

.build-progress progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--accent);
}

.empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #d4ddd9;
  text-align: center;
}

.readout {
  display: grid;
  gap: 8px;
  margin: 0;
}

.readout div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: baseline;
}

.readout dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.readout dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.leaflet-container {
  background: #b9d7da;
}

.leaflet-container.is-panning {
  cursor: grabbing;
}

.leaflet-control-layers {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(31, 39, 38, 0.18);
}

.leaflet-drag-shape {
  stroke: var(--accent);
  stroke-width: 2;
  fill: var(--accent);
  fill-opacity: 0.18;
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "map"
      "controls"
      "preview";
  }

  .map-tools {
    min-width: 0;
    width: 100%;
  }

  .search-box {
    width: 100%;
    min-width: 0;
  }

  .control-pane {
    position: static;
    max-height: none;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  #map {
    height: clamp(34rem, 82vh, 56rem);
  }

  .preview-panel {
    grid-template-rows: auto minmax(clamp(36rem, 98vh, 64rem), 1fr) auto;
    min-height: clamp(46rem, 112vh, 76rem);
    padding: 16px;
  }

  #viewer {
    min-height: clamp(36rem, 98vh, 64rem);
  }
}

@media (max-width: 620px) {
  .pane-header {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  .map-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .shape-toggle button {
    min-width: 0;
  }

  .control-pane {
    padding: 12px;
  }


}

.info-tooltip {
  position: fixed;
  z-index: 10000;
  max-width: min(280px, calc(100vw - 24px));
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--text);
  color: white;
  box-shadow: 0 10px 28px rgba(31, 39, 38, 0.28);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(2px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.info-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Public-facing nautical experience */
:root {
  --bg: #eef4f2;
  --surface: #fffdf7;
  --surface-muted: #e4eee9;
  --text: #102827;
  --muted: #60716d;
  --line: #bfd0ca;
  --accent: #0b6f7a;
  --accent-strong: #084d59;
  --accent-soft: #d8efee;
  --danger: #a33a2f;
  --deep: #0c2f3a;
  --deep-2: #123f4a;
  --foam: #f6fbf8;
  --brass: #b88948;
  --wood: #9a6a43;
  --shadow: 0 16px 42px rgba(12, 47, 58, 0.16);
}

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

.app-shell {
  grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-areas:
    "hero hero"
    "map controls"
    "preview controls";
  gap: 0;
}

.site-hero {
  grid-area: hero;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: end;
  padding: clamp(32px, 6vw, 72px) clamp(24px, 6vw, 80px) clamp(26px, 4vw, 46px);
  background: var(--deep);
  color: var(--foam);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-copy {
  max-width: 780px;
}

.site-hero .eyebrow {
  color: #9bd5d2;
}

.site-hero h1 {
  max-width: 11ch;
  margin: 0;
  color: #fff9ec;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 760px;
  margin: 22px 0 0;
  color: #d8e9e4;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
}

.hero-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff9ec;
  font-weight: 900;
}

.hero-steps strong,
.hero-steps small {
  grid-column: 2;
}

.hero-steps strong {
  color: #fff9ec;
  font-size: 0.98rem;
}

.hero-steps small {
  color: #bdd6d1;
  font-size: 0.88rem;
  line-height: 1.35;
}

.map-pane,
.preview-panel {
  background: var(--foam);
}

.pane-header {
  padding: 18px clamp(18px, 3vw, 34px);
  background: var(--foam);
}

.pane-header h2,
.preview-header h2 {
  color: var(--deep);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
}

.map-tools {
  min-width: min(650px, 58vw);
}

.search-box,
.shape-toggle,
.preview-mode,
.panel {
  border-color: var(--line);
  box-shadow: 0 2px 12px rgba(12, 47, 58, 0.06);
}

.search-box button,
#buildButton {
  background: var(--accent);
}

.search-box button:hover,
#buildButton:not(:disabled):hover {
  background: var(--accent-strong);
}

.shape-toggle {
  background: #dce9e5;
}

.shape-toggle button.active,
.preview-mode label:has(input:checked) {
  background: #fffdf7;
  color: var(--deep);
}

#map {
  height: clamp(28rem, 58vh, 42rem);
  border-bottom: 1px solid var(--line);
}

.control-pane {
  background: #eaf2ef;
  border-left: 1px solid var(--line);
  padding: 18px;
}

.panel {
  background: rgba(255, 253, 247, 0.96);
}

.panel h2 {
  color: var(--deep);
  font-size: 1.02rem;
}

.info-button {
  background: #e7f1ed;
}

.secondary-button,
.download-link {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.preview-panel {
  grid-template-rows: auto minmax(clamp(28rem, 68vh, 48rem), 1fr) auto;
  min-height: clamp(36rem, 82vh, 58rem);
  padding: 20px clamp(18px, 3vw, 34px) 30px;
  border-top: 1px solid var(--line);
}

.preview-header {
  align-items: flex-start;
}

.preview-toolbar {
  max-width: 100%;
}

#viewer {
  min-height: clamp(28rem, 68vh, 48rem);
  border-color: #173d45;
  border-radius: 10px;
  background: #102827;
  box-shadow: 0 14px 34px rgba(12, 47, 58, 0.2);
}

.empty-state {
  color: #dcece7;
}

.readout dt {
  color: #6a7975;
}

.leaflet-drag-shape {
  stroke: #0b6f7a;
  fill: #0b6f7a;
}

@media (max-width: 1120px) {
  .site-hero {
    grid-template-columns: 1fr;
  }

  .hero-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-steps li {
    grid-template-columns: 34px 1fr;
  }
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "map"
      "controls"
      "preview";
  }

  .site-hero {
    padding: 32px 18px 28px;
  }

  .hero-steps {
    grid-template-columns: 1fr;
  }

  #map {
    height: clamp(26rem, 66vh, 38rem);
  }

  .preview-panel {
    grid-template-rows: auto minmax(clamp(26rem, 70vh, 40rem), 1fr) auto;
    min-height: clamp(34rem, 82vh, 50rem);
  }

  #viewer {
    min-height: clamp(26rem, 70vh, 40rem);
  }
}

@media (max-width: 620px) {
  .site-hero h1 {
    font-size: clamp(2.7rem, 18vw, 4.6rem);
  }

  .preview-header,
  .preview-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .download-actions,
  .preview-mode {
    justify-content: stretch;
    width: 100%;
  }

  .preview-mode label,
  .download-link {
    flex: 1;
    justify-content: center;
  }
}

/* Guided public workflow pane */
.app-shell {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) 380px;
  grid-template-areas:
    "hero hero hero"
    "guide map controls"
    "guide preview controls";
}

.guide-pane {
  grid-area: guide;
  align-self: stretch;
  padding: 18px 0 18px clamp(18px, 3vw, 34px);
  background: var(--foam);
}

.guide-card {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  background: #fffdf7;
  box-shadow: 0 10px 26px rgba(12, 47, 58, 0.08);
}

.guide-card h2 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.15;
}

.guide-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.guide-steps li {
  counter-increment: guide-step;
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #e1ebe7;
}

.guide-steps li::before {
  content: counter(guide-step);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--deep);
  color: #fff9ec;
  font-size: 0.76rem;
  font-weight: 900;
}

.guide-steps strong,
.guide-steps span {
  grid-column: 2;
}

.guide-steps strong {
  color: var(--deep);
  font-size: 0.9rem;
  line-height: 1.28;
}

.guide-steps span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-areas:
      "hero hero"
      "guide controls"
      "map controls"
      "preview controls";
  }

  .guide-pane {
    padding: 18px clamp(18px, 3vw, 34px) 0;
  }

  .guide-card {
    position: static;
    max-height: none;
  }

  .guide-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
  }
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "guide"
      "map"
      "controls"
      "preview";
  }

  .guide-pane {
    padding: 16px;
  }
}

@media (max-width: 620px) {
  .guide-steps {
    grid-template-columns: 1fr;
  }
}

.map-frame {
  padding: 20px clamp(18px, 3vw, 34px) 24px;
  background: var(--foam);
}

.map-frame #map {
  height: clamp(26rem, 54vh, 40rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(12, 47, 58, 0.14);
}

@media (max-width: 960px) {
  .map-frame {
    padding: 16px;
  }

  .map-frame #map {
    height: clamp(25rem, 62vh, 38rem);
  }
}

/* Keep settings from sliding behind the intro hero on the public layout. */
.site-hero {
  position: relative;
  z-index: 30;
}

.control-pane {
  position: relative;
  top: auto;
  align-self: start;
  max-height: none;
}

@media (max-width: 960px) {
  .control-pane {
    position: static;
  }
}

/* Refined nautical palette: deep water, chart paper, brass hardware, and sea glass. */
:root {
  --bg: #e8f1ef;
  --surface: #fffaf0;
  --surface-muted: #e2ece8;
  --text: #10252b;
  --muted: #5f6f70;
  --line: #bdccc6;
  --accent: #147c89;
  --accent-strong: #0a5665;
  --accent-soft: #d6eeeb;
  --danger: #b95443;
  --deep: #092d3b;
  --deep-2: #123f57;
  --foam: #f4faf6;
  --brass: #b9853e;
  --wood: #8e623f;
  --chart: #fff4dc;
  --coral: #c86f5d;
  --shadow: 0 18px 44px rgba(9, 45, 59, 0.18);
}

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

.site-hero {
  background: var(--deep);
  color: var(--foam);
  border-bottom-color: rgba(255, 250, 240, 0.18);
}

.site-hero .eyebrow,
.eyebrow {
  color: var(--brass);
}

.site-hero h1,
.hero-steps strong,
.hero-steps span {
  color: var(--chart);
}

.hero-lede {
  color: #d7e7e4;
}

.hero-steps small {
  color: #b9cfcd;
}

.hero-steps li {
  border-top-color: rgba(255, 244, 220, 0.18);
}

.hero-steps span {
  border-color: rgba(255, 244, 220, 0.32);
  background: rgba(255, 244, 220, 0.06);
}

.map-pane,
.preview-panel,
.guide-pane,
.map-frame {
  background: var(--foam);
}

.pane-header {
  background: var(--foam);
}

.control-pane {
  background: #dfeae7;
}

.panel,
.guide-card,
.search-box,
.preview-mode {
  background: var(--surface);
}

.panel,
.guide-card,
.search-box,
.shape-toggle,
.preview-mode,
.map-frame #map,
#viewer {
  border-color: var(--line);
}

.panel h2,
.guide-card h2,
.pane-header h2,
.preview-header h2,
.guide-steps strong,
.shape-toggle button.active,
.preview-mode label:has(input:checked) {
  color: var(--deep);
}

.search-box button,
#buildButton,
.guide-steps li::before {
  background: var(--accent);
}

.search-box button:hover,
#buildButton:not(:disabled):hover {
  background: var(--accent-strong);
}

.secondary-button,
.download-link {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--surface);
}

.secondary-button:hover,
.download-link:not(.disabled):hover {
  border-color: var(--brass);
  color: #694720;
  background: #fff5df;
}

.shape-toggle,
.info-button {
  background: #d9e7e4;
}

.preview-mode label:has(input:checked) {
  background: #fff2d5;
}

input[type="range"],
input[type="checkbox"],
.preview-mode input {
  accent-color: var(--accent);
}

output {
  background: #fff1ce;
  color: #6b4719;
}

#viewer {
  background: #0d2830;
  box-shadow: 0 16px 36px rgba(9, 45, 59, 0.22);
}

.map-frame #map {
  box-shadow: 0 16px 34px rgba(9, 45, 59, 0.16);
}

.leaflet-drag-shape {
  stroke: var(--brass);
  fill: var(--accent);
}

.info-tooltip {
  background: #10252b;
  border-color: rgba(255, 244, 220, 0.18);
}
