
    html, body {
      margin: 0;
      height: 100%;
      font-family: Arial, sans-serif;
    }

    #map {
      height: 100%;
      width: 100%;
    }

    .panel {
      position: absolute;
      top: 12px;
      right: 12px;
      z-index: 1000;
      background: white;
      padding: 14px;
      width: 320px;
      max-height: calc(100vh - 40px);
      overflow-y: auto;
      border-radius: 8px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    }

    .panel h2 {
      margin: 0 0 10px;
      font-size: 18px;
    }

    .panel label {
      display: block;
      margin-top: 8px;
      font-size: 13px;
    }

    .panel input[type="number"] {
      width: 80px;
      margin-left: 6px;
    }

    .summary {
      margin-top: 12px;
      font-size: 14px;
      line-height: 1.5;
    }

    button {
      margin-top: 10px;
      padding: 8px 10px;
      border: 0;
      border-radius: 4px;
      cursor: pointer;
    }

    .primary {
      background: #2563eb;
      color: white;
    }

    .secondary {
      background: #e5e7eb;
    }

    .map-symbol {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.78);
      border: 1px solid rgba(31, 41, 55, 0.25);
      font-size: 13px;
      font-weight: 600;
      color: rgba(31, 41, 55, 0.75);
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    }

    .bridge-symbol {
      color: rgba(67, 56, 202, 0.75);
    }

    .winding-symbol {
      color: rgba(5, 150, 105, 0.8);
    }

    .panel {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1000;
  background: white;
  padding: 14px;
  width: 320px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.panel-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  background: #e5e7eb;
  color: #111827;
  font-size: 18px;
  line-height: 28px;
}

.panel.collapsed {
  width: 44px;
  height: 44px;
  padding: 0;
  overflow: hidden;
}

.panel.collapsed > *:not(.panel-toggle) {
  display: none;
}

.panel.collapsed .panel-toggle {
  position: static;
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

@media (max-width: 700px) {
  .panel {
    top: auto;
    right: 8px;
    left: 8px;
    bottom: 8px;
    width: auto;
    max-height: 45vh;
    border-radius: 12px;
  }

  .panel.collapsed {
    left: auto;
    width: 44px;
    height: 44px;
  }
}

.waypoint-list {
  margin-top: 8px;
  font-size: 13px;
}

.waypoint-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 4px;
  align-items: center;
  margin-bottom: 6px;
  padding: 6px;
  background: #f3f4f6;
  border-radius: 6px;
}

.waypoint-item button {
  margin: 0;
  padding: 4px 6px;
  font-size: 12px;
}

.waypoint-marker {
  background: none;
  border: none;
}

.waypoint-marker-inner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: white;
  border: 2px solid white;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}