.edit-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.edit-toolbar select { flex: 1 1 220px; min-width: 0; max-width: 100%; }
.edit-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.edit-tools .btn { min-height: 44px; white-space: normal; }
.edit-tools .btn[aria-pressed="true"] { outline: 3px solid #d99d39; }
.btn:disabled { opacity: .45; cursor: default; }
#editMap { height: 500px; min-width: 0; }
.edit-pin { background: #123c2d; color: white; border: 2px solid white; border-radius: 50%; text-align: center; line-height: 24px; font-weight: bold; box-shadow: 0 2px 6px #0005; }
.edit-pin.car { background: #2969a0; }
.edit-handle { display: grid; place-items: center; border: 0; background: transparent; cursor: grab; touch-action: none; }
.edit-handle span { width: 18px; height: 18px; background: white; border: 3px solid #207745; border-radius: 50%; box-shadow: 0 1px 5px #0007; pointer-events: none; }
.edit-handle.midpoint span { width: 12px; height: 12px; background: #d7eadf; border-width: 2px; }
.edit-handle.selected span, .edit-handle:focus span { border-color: #ab640d; background: #ffe6af; }
.edit-handle:focus-visible { outline: 2px solid #ab640d; border-radius: 50%; }
.edit-handle.leaflet-drag-target { cursor: grabbing; }
.edit-points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.edit-points label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.edit-points input { width: 100%; margin: 0; }
#editStatus { min-height: 40px; padding: 10px 0; overflow-wrap: anywhere; }
#editDemo { background: #fff2cf; padding: 12px; border-radius: 8px; }
[hidden] { display: none !important; }
.edit-stop { border: 2px solid var(--line); border-radius: 12px; padding: 12px; margin: 10px 0; overflow-wrap: anywhere; }
.edit-stop.selected { border-color: var(--accent); background: #edf5ec; }
.edit-stop-title { border: 0; padding: 6px 0; background: transparent; color: var(--green); text-align: left; font: inherit; font-weight: 650; cursor: pointer; }
.edit-stop-pin { background: #52665f; color: white; border: 3px solid white; border-radius: 50%; text-align: center; line-height: 30px; font-weight: 700; box-shadow: 0 1px 5px #0005; }
.edit-stop-pin.selected { border-color: #f2be57; }
.edit-stop .btn[aria-pressed="true"] { background: var(--green); color: white; }
@media (max-width: 650px) {
  #editMap { height: 350px; }
  .edit-tools .btn { flex: 1 1 130px; }
  .edit-points { grid-template-columns: 1fr; gap: 10px; }
}
