html, body {
  height: 100%;
  margin: 0;
  font-family: -apple-system, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

arcgis-map {
  width: 100%;
  height: 100%;
  display: block;
}

/* Top controls overlay */
.topBar {
  position: fixed;
  left: 10px;
  right: 10px;
  top: 10px;
  z-index: 10;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.row:last-child { margin-bottom: 0; }

#mapServerInput {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
}

button {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #111;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
button:disabled {
  opacity: 0.45;
}

#csvInput {
  flex: 1;
}

.status {
  margin-left: auto;
  font-size: 12px;
  color: #444;
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Side panel */
.sidePanel {
  position: fixed;
  left: 10px;
  top: 120px;
  z-index: 10;
  width: min(320px, 86vw);
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.panelTitle {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}
.panelName {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}
.panelMeta {
  font-size: 12px;
  color: #555;
  line-height: 1.35;
}

/* Bottom swipe card */
.bottomCard {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 12px;
  z-index: 10;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  user-select: none;
  touch-action: pan-y; /* allow vertical scroll; we'll handle horizontal swipes */
}

.bottomTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.counter { font-size: 12px; color: #666; }
.hint { font-size: 12px; color: #666; }

.bottomName {
  font-size: 16px;
  font-weight: 700;
}