/* Base */
body {
  font-family: system-ui, Arial, sans-serif;
  margin: 0;
  background: #f4f4f4;
  color: #111;
}

code {
  background: #f2f2f2;
  padding: 2px 6px;
  border-radius: 8px;
}

h1, h2, h3 { margin: 0 0 12px; }
p { margin: 8px 0; }

/* Login card + generic card */
.card {
  max-width: 360px;
  margin: 10vh auto;
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

input, button {
  width: 100%;
  padding: 10px;
  margin: 8px 0 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

button {
  border: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
}

button:active {
  transform: translateY(1px);
}

.error {
  background: #ffe3e3;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* Layout */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.topbar-links a {
  margin-left: 12px;
  text-decoration: none;
  color: #111;
}

.container {
  padding: 16px;
}

/* Marker styles */
.marker {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #111;
  color: #fff;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  cursor: move;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

.marker.drag {
  opacity: 0.75;
}

.marker-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  display: inline-block;
}

.marker-label {
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Messages */
.ok {
  background: #e8ffea;
  padding: 10px;
  border-radius: 10px;
  margin-top: 8px;
}

.err {
  background: #ffe3e3;
  padding: 10px;
  border-radius: 10px;
  margin-top: 8px;
}
