div#globe-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #000011;
}

#globe-container .scene-container,
#globe-container canvas {
  width: 100%;
  height: 100%;
}

#globe-container.place-object-in-progress {
  cursor: crosshair;
}

#globe-container.picking-location {
  cursor: crosshair;
}

#globe-container.setting-favorite {
  cursor: crosshair;
}

.ne-label,
.ne-label-adm0,
.ne-label-adm1,
.ne-label-city {
  color: #fff;
  text-shadow: 0 1px 2px #000, 0 0 6px #000;
  pointer-events: none;
  white-space: nowrap;
  font-family: system-ui, sans-serif;
  font-weight: 600;
  line-height: 1;
}

.ne-label-adm0 { font-size: 13px; }
.ne-label-adm1 { font-size: 12px; }
.ne-label-city {
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ne-label-city::before {
  content: "";
  width: var(--ne-r, 8px);
  height: var(--ne-r, 8px);
  border-radius: 50%;
  background: rgba(255, 200, 80, 0.45);
  flex-shrink: 0;
}

#hud {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(20, 22, 35, 0.5);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.12);
  transition: height 280ms cubic-bezier(0.23, 1.0, 0.32, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}

.panel-block {
  align-items: stretch;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: 0;
}

.panel-block:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hud-vstack {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.box.hud-panel {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.hud-panel-auto {
  flex: 0 0 auto;
}

.hud-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.25) transparent;
}

.hud-scroll::-webkit-scrollbar {
  width: 8px;
}

.hud-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.hud-scroll::-webkit-scrollbar-thumb {
  background: rgba(20, 22, 35, 0.6);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
}

.hud-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}

.hud-column {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hud-grab-handle {
  width: 2.5rem;
  height: 1.25rem;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hud-grab-handle::before {
  content: "";
  width: 2rem;
  height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,0.3);
}

.hud-grab-handle:active {
  cursor: grabbing;
}

.hud-columns {
  flex: 1;
  min-height: 0;
  margin-left: 0;
  margin-right: 0;
}

.send-message {
  flex-shrink: 0;
}

@media screen and (max-width: 1023px) {
  .hud-vstack.places-layout {
    flex-direction: row;
    gap: 1rem;
  }
}

/* Connection status indicator */
.hud-status-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255,255,255,0.25);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.25);
  transition: background-color 200ms ease, box-shadow 200ms ease;
}

.hud-status-dot.is-online {
  background: #2ee66b;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.25), 0 0 8px 1px rgba(46,230,107,0.85);
}

.hud-status-dot.is-reconnecting {
  background: #ffcc33;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.25), 0 0 8px 1px rgba(255,204,51,0.85);
  animation: hud-status-pulse 1.2s ease-in-out infinite;
}

.hud-status-dot.is-offline {
  background: #e63333;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.25), 0 0 8px 1px rgba(230,51,51,0.85);
}

@keyframes hud-status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.system-notifications {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 24rem;
}

.system-notifications .notification {
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hud-panel .panel-block.is-active {
  background: rgba(0, 188, 212, 0.12);
}

.swatch {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hexhold-messages {
  max-height: 10rem;
}
