#route-open {
  width: max-content;
  min-height: 38px;
  padding: 5px 10px;
  border: 1px solid #50716d;
  border-radius: 7px;
  background: #15343bf5;
  color: #b3f2de;
  font-size: 12px;
  font-weight: 700;
  pointer-events: auto;
}
#route-open:hover { background: #255253; }
.share-point-actions { flex-wrap: wrap; justify-content: center; }
#share-point-send[hidden] + #route-add-point { display:none; }
#route-dialog {
  width: min(560px, calc(100vw - 20px));
  max-height: min(78dvh, 690px);
  overflow: auto;
  overscroll-behavior: contain;
}
#route-dialog form { margin:0; }
#route-dialog .dialog-head { display:flex;align-items:center;justify-content:space-between; }
#route-dialog .glyph-btn { font-size:23px; }
#route-note, #route-message { margin:12px 0; }
#route-message:empty { display:none; }
#route-stops {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}
#route-stops li {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 5px 6px;
  border: 1px solid #3e5356;
  border-radius: 8px;
  background: #173035;
}
.route-index, .route-waypoint {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #abebd6;
  color: #123332;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.route-index { flex:none; width: 25px; height:25px; font-size:13px; }
.route-place {
  flex: 1;
  min-width:0;
  padding:3px 0;
  text-align:left;
  overflow-wrap:anywhere;
  color:#fff7ee;
  font-weight:650;
  border:0;
  background:transparent;
}
.route-place small { display:block; font-size:12px; color:#becdc8; font-weight:normal; margin-top:2px; }
.route-stop-tools, .route-actions {display:flex;gap:5px;align-items:center;}
.route-stop-tools button, .route-actions button {
  border:1px solid #55736d;
  border-radius:6px;
  background:#244647;
  color:#fbf4e7;
  min-width:36px;
  min-height:40px;
}
.route-stop-tools button { font-size:17px; }
.route-stop-tools button:disabled { opacity:.4; }
.route-actions { flex-wrap:wrap; margin-top:12px; }
.route-actions button { padding:6px 11px;font-weight:650; }
.route-actions .route-primary { background:#a6e7d5; color:#123530; }
.route-waypoints { position:absolute;inset:0;z-index:5;pointer-events:none;overflow:hidden; }
.route-waypoint {
  position:absolute;
  width:22px;height:22px;
  margin-left:5px;margin-top:-25px;
  border:2px solid #133c38;
  box-shadow:0 1px 3px #0b2326aa;
  font: bold 12px/1 system-ui,sans-serif;
}
.route-waypoint::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 20px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid #16352e;
  background: #c8fbe8;
}
.route-waypoint[hidden] { display:none; }
@media(max-width:480px) {
  #route-dialog { padding:15px;max-height:84dvh; }
  .route-stop-tools {gap:2px;}
  .route-stop-tools button {min-width:34px;min-height:44px;}
  #route-stops li {gap:5px;}
  .route-actions button {min-height:44px;}
}
@media(max-height:420px) {
  #route-dialog {max-height:95dvh;}
  #route-open {min-height:28px;}
}
