html, body { margin: 0; height: 100%; font-family: system-ui, sans-serif; font-size: 14px; }
#map { position: absolute; top: 0; left: 340px; right: 0; bottom: 0; }
#sidebar {
  position: absolute; top: 0; left: 0; bottom: 0; width: 340px;
  background: #fff; border-right: 1px solid #ccc; padding: 16px;
  box-sizing: border-box; overflow-y: auto; z-index: 1000;
}
h2, h3 { margin-top: 0; }
input, textarea, select, button { width: 100%; box-sizing: border-box; margin-bottom: 8px; padding: 6px; font-size: 14px; }
button { cursor: pointer; }
.hidden { display: none !important; }
.error { color: #c00; min-height: 1.2em; }
#toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
#user-email { font-size: 12px; color: #555; overflow: hidden; text-overflow: ellipsis; }
#logout-btn { width: auto; padding: 4px 10px; }
#add-mode-btn.active { background: #2b7a2b; color: #fff; }
#export-buttons { display: flex; gap: 8px; }
.checkbox-label { display: flex; align-items: center; gap: 6px; }
.checkbox-label input { width: auto; margin: 0; }
.form-buttons { display: flex; gap: 8px; }
.danger { background: #c00; color: #fff; }
.hint { color: #666; font-size: 12px; }
.photo-preview { display: block; max-width: 100%; max-height: 220px; object-fit: contain; border: 1px solid #ccc; border-radius: 4px; margin-bottom: 8px; }
label { display: block; margin-top: 6px; font-weight: 600; }
.form-header { display: flex; justify-content: space-between; align-items: center; }
.form-header h3 { margin: 0; }
.close-x { width: auto; padding: 2px 8px; margin: 0; background: none; border: 1px solid #ccc; font-size: 14px; }

.point-tooltip { width: 380px; max-width: 380px; white-space: normal; }
.tooltip-content { font-size: 13px; line-height: 1.4; }
.tooltip-photo { display: block; width: 360px; height: 240px; object-fit: cover; border-radius: 4px; margin-bottom: 6px; }
.tooltip-di { font-weight: 700; font-size: 14px; }
.tooltip-title { color: #555; }
.tooltip-if { margin-top: 2px; }
.tooltip-description { margin-top: 4px; }
.tooltip-meta { margin-top: 4px; color: #777; font-size: 11px; }

.circle-marker { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #222; box-shadow: 0 0 3px rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; }
.circle-label { font-size: 10px; font-weight: 700; color: #000; line-height: 1; text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 2px #fff; }
.arrow-wrap { width: 26px; height: 26px; transform-origin: 50% 50%; filter: drop-shadow(0 0 2px rgba(0,0,0,0.5)); }

.draft-marker {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0, 200, 255, 0.35);
  border: 3px dashed #00aaff;
  box-shadow: 0 0 6px rgba(0,170,255,0.8);
  animation: draft-pulse 1s ease-in-out infinite;
}
@keyframes draft-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
