.map-config-panel {
  position: fixed;
  z-index: 220;
  top: 88px;
  right: 24px;
  display: flex;
  flex-direction: column;
  width: 320px;
  height: min(720px, calc(83vh - 8px));
  color: #dff8ff;
  border: 1px solid rgba(83, 212, 255, 0.46);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(13, 33, 49, 0.94), rgba(3, 12, 22, 0.9)),
    rgba(3, 12, 22, 0.92);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.48), inset 0 0 28px rgba(36, 190, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  box-sizing: border-box;
  user-select: none;
  transition:
    box-shadow 0.2s ease,
    width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    left 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.map-interface-overlay {
  position: fixed;
  z-index: 210;
  inset: 0;
  display: none;
  width: 100vw;
  height: 100vh;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.map-interface-overlay.is-active {
  display: block;
}

.region-route-transition {
  position: fixed;
  z-index: 500;
  inset: 0;
  overflow: hidden;
  background: var(--map-page-background, #000);
  opacity: 1;
  pointer-events: none;
  will-change: opacity, filter, transform;
  transition:
    opacity 1.25s cubic-bezier(0.65, 0, 0.35, 1),
    filter 1.25s cubic-bezier(0.65, 0, 0.35, 1),
    transform 1.25s cubic-bezier(0.65, 0, 0.35, 1);
}

.region-route-transition img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.region-route-transition.is-releasing {
  opacity: 0;
  filter: blur(4px);
  transform: scale(1.12);
}

html.is-region-route-entering .large-screen .loading,
html.is-region-route-entering .large-screen .drill-tip {
  visibility: hidden !important;
}

html.is-region-route-entering .large-screen {
  opacity: 0;
  filter: blur(3px);
  transform: scale(0.86);
}

.large-screen,
.map-interface-overlay,
.map-config-panel,
.region-root-drill-bar {
  transform-origin: center center;
  will-change: opacity, filter, transform;
  transition:
    opacity 1.25s cubic-bezier(0.65, 0, 0.35, 1),
    filter 1.25s cubic-bezier(0.65, 0, 0.35, 1),
    transform 1.25s cubic-bezier(0.65, 0, 0.35, 1);
}

html.is-amap-drill-active .large-screen,
html.is-amap-drill-active .map-interface-overlay,
html.is-amap-drill-active .map-config-panel,
html.is-amap-drill-active .region-root-drill-bar {
  opacity: 0 !important;
  filter: blur(3px);
  transform: scale(0.985);
  pointer-events: none !important;
}

html.is-amap-drill-active .region-root-drill-bar {
  transform: translateX(-50%) scale(1.08);
}

html.is-amap-drill-active .large-screen,
html.is-amap-drill-active .map-interface-overlay {
  transform: scale(1.1);
}

.region-root-drill-bar,
.amap-drill-nav {
  position: fixed;
  z-index: 225;
  top: 96px;
  left: calc(50% - 306px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 20px;
  border: 1px solid rgba(75, 135, 166, 0.6);
  border-radius: 4px;
  color: #c4f3fe;
  background: rgba(0, 8, 17, 0.72);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.region-root-drill-bar[hidden],
.amap-drill-view[hidden] {
  display: none !important;
}

.region-root-drill-back,
.amap-drill-back {
  display: flex;
  align-items: center;
  padding: 0 16px 0 0;
  border: 0;
  border-right: 1px solid rgba(75, 135, 166, 0.6);
  color: #c4f3fe;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
}

.region-root-drill-back:hover,
.amap-drill-back:hover {
  color: #7efbf6;
}

.region-root-drill-arrow,
.amap-drill-arrow {
  display: block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-bottom: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.region-root-drill-back:hover .region-root-drill-arrow,
.amap-drill-back:hover .amap-drill-arrow {
  transform: translateX(-3px) rotate(45deg);
}

.region-root-drill-path,
.amap-drill-path {
  font-size: 14px;
  white-space: nowrap;
}

.region-root-drill-path .root,
.amap-drill-path .root {
  color: rgba(255, 255, 255, 0.62);
}

.region-root-drill-path .sep,
.amap-drill-path .sep {
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.3);
}

.region-root-drill-path .current,
.amap-drill-path .current {
  color: #7efbf6;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(126, 251, 246, 0.6);
}

.amap-drill-view {
  position: fixed;
  z-index: 300;
  inset: 0;
  overflow: hidden;
  background: #02070c;
  opacity: 0;
  filter: blur(3px);
  transform: scale(0.86);
  transform-origin: center center;
  pointer-events: none;
  will-change: opacity, filter, transform;
  transition:
    opacity 1.25s cubic-bezier(0.65, 0, 0.35, 1),
    filter 1.25s cubic-bezier(0.65, 0, 0.35, 1),
    transform 1.25s cubic-bezier(0.65, 0, 0.35, 1);
}

.amap-drill-view.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  pointer-events: auto;
}

.amap-drill-map {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #06111b;
  opacity: 0;
  cursor: grab;
  touch-action: none;
  transition: opacity 0s linear;
}

.amap-drill-view.is-map-ready .amap-drill-map {
  opacity: 1;
}

.amap-drill-map.is-dragging {
  cursor: grabbing;
}

.amap-drill-tiles {
  position: absolute;
  inset: 0;
  filter: invert(0.9) hue-rotate(180deg) saturate(0.72) brightness(0.64) contrast(1.18);
}

.amap-drill-tiles img {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
  user-select: none;
}

.amap-drill-zoom {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 74px;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(92, 213, 244, 0.42);
  border-radius: 7px;
  background: rgba(3, 19, 31, 0.88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
}

.amap-drill-zoom button {
  width: 38px;
  height: 38px;
  border: 0;
  color: #c9f7ff;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.amap-drill-zoom button + button {
  border-top: 1px solid rgba(92, 213, 244, 0.25);
}

.amap-drill-zoom button:hover {
  background: rgba(54, 193, 226, 0.16);
}

.amap-drill-attribution {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 20px;
  padding: 4px 8px;
  border-radius: 3px;
  color: rgba(207, 238, 247, 0.72);
  background: rgba(1, 12, 20, 0.7);
  font-size: 11px;
  cursor: pointer;
  pointer-events: auto;
}

.is-draggable-drill-menu {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.is-draggable-drill-menu.is-dragging {
  cursor: grabbing;
  transition: none !important;
}

.is-draggable-drill-menu.has-custom-drag-position {
  transform: none;
}

.amap-drill-tone {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(0, 24, 45, 0.12);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.amap-drill-nav {
  z-index: 3;
}

.amap-drill-mode {
  padding-left: 12px;
  border-left: 1px solid rgba(75, 135, 166, 0.38);
  color: rgba(133, 225, 255, 0.62);
  font-size: 11px;
  white-space: nowrap;
}

.amap-drill-loading {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(199, 242, 255, 0.8);
  font-size: 14px;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease;
}

.amap-drill-loading span {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(71, 210, 255, 0.25);
  border-top-color: #61ddff;
  border-radius: 50%;
  animation: amap-drill-spin 0.8s linear infinite;
}

.amap-drill-view.is-map-ready .amap-drill-loading {
  opacity: 0;
  pointer-events: none;
}

@keyframes amap-drill-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .region-root-drill-bar,
  .amap-drill-nav,
  .large-screen .drill-bar {
    left: 12px;
    max-width: calc(100vw - 24px);
    transform: none;
    box-sizing: border-box;
  }

  .amap-drill-path {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .amap-drill-mode {
    display: none;
  }

  html.is-amap-drill-active .region-root-drill-bar {
    transform: scale(1.08);
  }
}

.map-config-panel::before {
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, #55dbff, transparent);
}

.map-config-panel.is-dragging {
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.62), 0 0 22px rgba(55, 203, 255, 0.15);
}

.map-config-panel.is-resizing {
  transition: none;
}

.map-config-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 16px 0 18px;
  border-bottom: 1px solid rgba(113, 205, 235, 0.14);
  cursor: grab;
  touch-action: none;
}

.map-config-panel.is-dragging .map-config-header {
  cursor: grabbing;
}

.map-config-eyebrow {
  margin-bottom: 4px;
  color: rgba(123, 222, 255, 0.55);
  font-size: 9px;
  letter-spacing: 2.4px;
}

.map-config-title {
  color: #f1fcff;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 1px;
}

.map-config-collapse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(104, 219, 255, 0.25);
  border-radius: 7px;
  color: #8de7ff;
  background: rgba(61, 189, 230, 0.08);
  cursor: pointer;
}

.map-config-collapsed-label {
  display: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
}

.map-config-collapse-icon {
  font-size: 20px;
  line-height: 1;
}

.map-config-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-config-publish {
  height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(99, 232, 255, 0.58);
  border-radius: 7px;
  color: #e9fcff;
  background: linear-gradient(90deg, rgba(19, 149, 201, 0.72), rgba(25, 201, 191, 0.48));
  box-shadow: 0 0 14px rgba(50, 211, 239, 0.12);
  cursor: pointer;
}

.map-config-publish:hover:not(:disabled) {
  border-color: #8af1ff;
  filter: brightness(1.12);
}

.map-config-publish:disabled {
  cursor: wait;
  opacity: 0.55;
}

.map-config-collapse:hover {
  border-color: rgba(104, 219, 255, 0.58);
  background: rgba(61, 189, 230, 0.18);
}

.map-config-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  padding: 14px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(69, 211, 242, 0.72) rgba(3, 17, 28, 0.72);
}

.map-config-body::-webkit-scrollbar {
  width: 8px;
}

.map-config-body::-webkit-scrollbar-track {
  border-radius: 8px;
  background: rgba(3, 17, 28, 0.72);
}

.map-config-body::-webkit-scrollbar-thumb {
  border: 2px solid rgba(3, 17, 28, 0.82);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(76, 221, 248, 0.88), rgba(24, 137, 179, 0.82));
}

.map-config-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #69e9ff, #27a9d7);
}

.map-config-body::-webkit-scrollbar-corner {
  background: rgba(3, 17, 28, 0.72);
}

.map-config-panel.is-collapsed {
  top: 17vh;
  right: calc(26.5vw + 100px);
  width: 112px !important;
  height: 40px !important;
  border-radius: 9px;
}

.map-config-panel.is-transitioning {
  pointer-events: none;
  transition: none;
}

.map-config-panel.is-collapsed::before,
.map-config-panel.is-collapsed .map-config-body,
.map-config-panel.is-collapsed .map-config-header > div:first-child,
.map-config-panel.is-collapsed .map-config-publish {
  display: none;
}

.map-config-panel.is-collapsed .map-config-header {
  width: 100%;
  min-height: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  cursor: grab;
}

.map-config-panel.is-collapsed.is-dragging .map-config-header {
  cursor: grabbing;
}

.map-config-panel.is-collapsed .map-config-header-actions,
.map-config-panel.is-collapsed .map-config-collapse {
  width: 100%;
  height: 100%;
}

.map-config-panel.is-collapsed .map-config-header-actions {
  gap: 0;
}

.map-config-panel.is-collapsed .map-config-collapse {
  border: 0;
  border-radius: 8px;
  line-height: 1;
}

.map-config-panel.is-collapsed .map-config-collapsed-label {
  display: inline;
}

.map-config-resize-handle {
  position: relative;
  flex: 0 0 12px;
  cursor: ns-resize;
  touch-action: none;
}

.map-config-resize-handle::before {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 48px;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(111, 226, 255, 0.9), transparent);
  transform: translateX(-50%);
}

.map-config-panel.is-resizing .map-config-resize-handle::before {
  height: 3px;
  background: linear-gradient(90deg, transparent, #8cecff, transparent);
  box-shadow: 0 0 10px rgba(81, 218, 255, 0.68);
}

.map-config-panel.is-collapsed .map-config-resize-handle {
  display: none;
}

@media (max-width: 900px) {
  .map-config-panel.is-collapsed {
    top: 88px;
    right: 16px;
  }
}

.map-config-item {
  padding: 14px;
  border: 1px solid rgba(120, 218, 250, 0.13);
  border-radius: 9px;
  background: rgba(8, 27, 40, 0.62);
}

.map-config-item + .map-config-item {
  margin-top: 12px;
}

.map-config-item-head,
.map-config-item-head > div,
.map-config-actions {
  display: flex;
  align-items: center;
}

.map-config-item-head {
  justify-content: space-between;
  gap: 8px;
}

.map-config-item.is-section-collapsed > :not(.map-config-item-head) {
  display: none;
}

.map-config-item-head-actions {
  display: flex;
  align-items: center;
  align-self: center;
  flex: none;
  gap: 6px;
}

.map-config-item-toggle {
  display: grid;
  flex: none;
  width: 24px;
  height: 24px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(104, 219, 255, 0.22);
  border-radius: 6px;
  color: #8de7ff;
  background: rgba(61, 189, 230, 0.08);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.map-config-item-toggle:hover {
  border-color: rgba(104, 219, 255, 0.55);
  background: rgba(61, 189, 230, 0.18);
}

.map-config-index {
  margin-right: 8px;
  color: #51d4ff;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.map-config-item strong {
  color: #e7faff;
  font-size: 13px;
  font-weight: 600;
}

.map-config-state {
  display: none;
  flex: none;
  padding: 3px 6px;
  border-radius: 4px;
  color: rgba(183, 230, 243, 0.62);
  background: rgba(128, 201, 222, 0.08);
  font-size: 10px;
}

.map-config-item-head-actions > .map-config-reset {
  flex: none;
  width: 60px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(104, 219, 255, 0.22);
  border-radius: 6px;
  color: rgba(207, 238, 247, 0.82);
  background: rgba(61, 189, 230, 0.08);
  font-size: 10px;
  cursor: pointer;
}

.map-config-item-head-actions > .map-config-reset:hover:not(:disabled) {
  border-color: rgba(104, 219, 255, 0.55);
  background: rgba(61, 189, 230, 0.18);
}

.map-config-item-head-actions > .map-config-reset:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.map-config-state[data-status="success"] {
  color: #80f5d0;
  background: rgba(27, 214, 153, 0.1);
}

.map-config-state[data-status="loading"] {
  color: #81ddff;
}

.map-config-state[data-status="error"] {
  color: #ffaaa6;
  background: rgba(255, 91, 82, 0.1);
}

.map-config-item p {
  margin: 8px 0 10px;
  color: rgba(190, 224, 235, 0.55);
  font-size: 11px;
  line-height: 1.55;
}

.map-theme-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.map-theme-option {
  display: flex;
  align-items: center;
  min-height: 36px;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid rgba(100, 208, 241, 0.16);
  border-radius: 7px;
  color: rgba(220, 247, 255, 0.78);
  background: rgba(2, 16, 28, 0.46);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.map-theme-option:hover {
  border-color: rgba(100, 222, 255, 0.45);
  background: rgba(22, 90, 116, 0.22);
}

.map-theme-option:has(input:checked) {
  border-color: rgba(71, 225, 255, 0.78);
  color: #f0fdff;
  background: linear-gradient(90deg, rgba(18, 137, 180, 0.34), rgba(18, 173, 163, 0.19));
  box-shadow: inset 0 0 16px rgba(57, 215, 244, 0.08), 0 0 12px rgba(45, 208, 237, 0.08);
}

.map-theme-option:has(input:focus-visible) {
  outline: 2px solid rgba(94, 229, 255, 0.75);
  outline-offset: 2px;
}

.map-theme-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.map-theme-option input:disabled {
  cursor: wait;
  opacity: 0.5;
}

.map-config-subtitle {
  margin: 12px 0 7px;
  color: #9deaff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.map-config-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 74px;
  overflow: hidden;
  border: 1px dashed rgba(95, 207, 243, 0.22);
  border-radius: 7px;
  color: rgba(159, 211, 228, 0.38);
  background:
    linear-gradient(45deg, rgba(68, 181, 218, 0.035) 25%, transparent 25%, transparent 75%, rgba(68, 181, 218, 0.035) 75%),
    linear-gradient(45deg, rgba(68, 181, 218, 0.035) 25%, transparent 25%, transparent 75%, rgba(68, 181, 218, 0.035) 75%);
  background-position: 0 0, 8px 8px;
  background-size: 16px 16px;
  font-size: 11px;
}

.map-config-preview img,
.map-config-preview video {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-config-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(95, 207, 243, 0.14);
  border-radius: 7px;
  background: rgba(5, 19, 30, 0.48);
}

.map-config-control-row + .map-config-control-row {
  margin-top: 8px;
}

.map-config-control-row label {
  color: rgba(209, 240, 249, 0.72);
  font-size: 11px;
}

.map-config-control-row select {
  max-width: 164px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(93, 217, 255, 0.24);
  border-radius: 5px;
  color: #bceeff;
  background: #0a2232;
  font-size: 11px;
  outline: none;
}

.map-config-color-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-config-color-control input[type="color"] {
  width: 30px;
  height: 24px;
  padding: 2px;
  border: 1px solid rgba(93, 217, 255, 0.35);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}

.map-config-color-control code,
.map-config-range-row output {
  color: #83e6ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.map-config-range-row {
  display: grid;
  grid-template-columns: 54px 1fr 34px;
  gap: 8px;
}

.map-config-range-row input[type="range"] {
  width: 100%;
  accent-color: #43cffa;
  cursor: pointer;
}

.map-config-range-row output {
  text-align: right;
}

.map-config-switch {
  position: relative;
  display: inline-flex;
  width: 38px;
  height: 20px;
  flex: none;
  cursor: pointer;
}

.map-config-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.map-config-switch span {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(111, 193, 217, 0.28);
  border-radius: 999px;
  background: rgba(54, 92, 108, 0.48);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.map-config-switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  content: "";
  background: #7896a0;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.map-config-switch input:checked + span {
  border-color: rgba(86, 226, 247, 0.64);
  background: rgba(29, 175, 196, 0.42);
}

.map-config-switch input:checked + span::after {
  transform: translateX(18px);
  background: #82efff;
  box-shadow: 0 0 9px rgba(83, 224, 255, 0.5);
}

.map-config-switch input:focus-visible + span {
  outline: 2px solid rgba(91, 223, 255, 0.58);
  outline-offset: 2px;
}

.map-config-shadow-reset {
  width: 100%;
}

.map-config-label-reset {
  width: 100%;
}

.map-config-base-color-reset {
  width: 100%;
}

.map-config-item input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.map-share-dialog {
  z-index: 300;
  width: min(430px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid rgba(99, 222, 255, 0.48);
  border-radius: 14px;
  color: #e8faff;
  background: linear-gradient(145deg, #102d40, #071521);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.7), 0 0 32px rgba(56, 207, 244, 0.12);
}

.map-share-dialog::backdrop {
  background: rgba(0, 8, 15, 0.68);
  backdrop-filter: blur(6px);
}

.map-share-dialog form {
  position: relative;
  padding: 28px;
}

.map-share-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  color: rgba(218, 246, 255, 0.64);
  background: transparent;
  font-size: 23px;
  cursor: pointer;
}

.map-share-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #03251e;
  background: #65ebc7;
  font-size: 20px;
  font-weight: 700;
}

.map-share-dialog h3 {
  margin: 14px 0 6px;
  font-size: 18px;
}

.map-share-dialog p {
  margin: 0 0 16px;
  color: rgba(199, 232, 242, 0.62);
  font-size: 12px;
  line-height: 1.6;
}

.map-share-link-row {
  display: flex;
  gap: 8px;
}

.map-share-link-row input {
  min-width: 0;
  flex: 1;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(98, 212, 244, 0.22);
  border-radius: 6px;
  color: #bceeff;
  background: rgba(2, 12, 20, 0.58);
}

.map-share-copy {
  flex: none;
  padding: 0 14px;
  border: 1px solid rgba(90, 227, 255, 0.45);
  border-radius: 6px;
  color: #e8fbff;
  background: rgba(34, 165, 205, 0.32);
  cursor: pointer;
}

.map-share-feedback {
  min-height: 18px;
  margin-top: 8px;
  color: #72efc9;
  font-size: 11px;
}

.map-config-actions {
  gap: 8px;
  margin-top: 10px;
}

.map-config-actions:empty {
  display: none;
}

.map-config-actions button {
  height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.map-config-upload {
  flex: 1;
  border: 1px solid rgba(79, 211, 255, 0.52);
  color: #dff9ff;
  background: linear-gradient(90deg, rgba(25, 149, 201, 0.42), rgba(34, 190, 214, 0.22));
}

.map-config-upload:hover:not(:disabled) {
  border-color: #6ee4ff;
  background: linear-gradient(90deg, rgba(25, 149, 201, 0.62), rgba(34, 190, 214, 0.36));
}

.map-config-reset {
  border: 1px solid rgba(166, 211, 225, 0.18);
  color: rgba(207, 238, 247, 0.72);
  background: rgba(160, 212, 228, 0.05);
}

.map-config-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

@media (max-width: 720px) {
  .map-config-panel {
    top: 72px;
    right: 12px;
    width: min(310px, calc(100vw - 24px));
  }
}
