* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background: #0b1220; color: var(--text); }

/* ---------- App layout ---------- */
#app { display: none; height: 100vh; width: 100vw; overflow: hidden; }
#map { height: 100vh; width: 100vw; }

/* ---------- Floating toolbar ---------- */
.toolbar {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 999;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(229, 231, 235, .9);
  border-radius: 16px;
  box-shadow: var(--shadow2);
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  backdrop-filter: blur(8px);
}
.tool {
  width: 42px; height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .12s;
}
.tool:hover { background: #f8fafc; transform: translateY(-1px); }
.tool:active { transform: translateY(0px); }

/* ---------- Logout bottom-right ---------- */
#logoutBtn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 1200;
  width: 52px; height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(229, 231, 235, .9);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow2);
  cursor: pointer;
  display: none;
  place-items: center;
  backdrop-filter: blur(8px);
}
#logoutBtn:hover { background: #fff; transform: translateY(-1px); }
#logoutBtn:active { transform: translateY(0px); }

/* ---------- Small helpers ---------- */
.hr { height: 1px; background: var(--border); margin: 10px 0; }
.hidden { display: none !important; }