.editor-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  height: 100vh;
}

.editor-panel {
  background: var(--panel);
  border-right: 1px solid var(--panel-line);
  overflow: auto;
  padding: 16px;
}

.editor-map {
  min-width: 0;
  min-height: 100vh;
}

.leaflet-container {
  background: #061011;
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
textarea {
  border: 1px solid var(--panel-line);
  background: #071011;
  color: var(--text);
  font: inherit;
  min-height: 32px;
  padding: 4px 8px;
}

button {
  cursor: pointer;
}

button:hover {
  border-color: var(--radar);
}

button.is-active {
  border-color: var(--warn);
  color: #ffb59d;
}

textarea {
  min-height: 180px;
  resize: vertical;
  width: 100%;
  font-family: Consolas, monospace;
  font-size: 12px;
}

#targetSelect {
  min-height: 160px;
}

.editor-link {
  color: var(--target);
  text-decoration: none;
}

.waypoint-list {
  color: var(--muted);
  margin: 0;
  padding-left: 20px;
  font-size: 12px;
}

.waypoint-list li {
  border-left: 3px solid transparent;
  cursor: pointer;
  margin: 4px 0;
  padding-left: 6px;
}

.waypoint-list li.selected {
  border-left-color: var(--warn);
  color: #ffb59d;
}

.target-dot {
  align-items: center;
  background: #123c7c;
  border: 2px solid #2d65b8;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(18, 60, 124, 0.75);
  display: flex;
  height: 16px;
  justify-content: center;
  width: 16px;
}

.target-dot.selected {
  background: var(--warn);
  border-color: #ffd0bd;
  box-shadow: 0 0 14px rgba(255, 114, 71, 0.9);
}

.vector-handle {
  color: #123c7c;
  filter: drop-shadow(0 0 5px rgba(18, 60, 124, 0.8));
  font-size: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  transform-origin: center;
  width: 22px;
}

.vector-handle.selected {
  color: var(--warn);
  filter: drop-shadow(0 0 7px rgba(255, 114, 71, 0.95));
}

.waypoint-dot {
  background: #55ff7a;
  border: 1px solid #d8f7e2;
  border-radius: 999px;
  height: 10px;
  width: 10px;
}

.waypoint-dot.selected {
  background: var(--warn);
  border-color: #ffd0bd;
  box-shadow: 0 0 10px rgba(255, 114, 71, 0.9);
}

.editor-drag-tooltip {
  background: rgba(7, 16, 17, 0.94);
  border: 1px solid var(--panel-line);
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  padding: 5px 7px;
}

.editor-drag-tooltip::before {
  border-top-color: var(--panel-line);
}

@media (max-width: 900px) {
  .editor-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .editor-panel {
    border-right: 0;
    border-bottom: 1px solid var(--panel-line);
  }

  .editor-map {
    min-height: 70vh;
  }
}
