html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
  background: #111;
  color: #eee;
}

* {
  box-sizing: border-box;
}

#app {
  width: 100%;
  height: 100%;
  position: relative;
}

#toolbar {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 20;
  display: flex;
  gap: 10px;
  padding: 10px;
  background: rgba(20, 20, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  backdrop-filter: blur(6px);
}

#toolbar button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #222;
  color: #eee;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

#toolbar button:hover {
  background: #2d2d2d;
}

#toolbar button:active {
  transform: translateY(1px);
}

#viewerWrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#pano {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

body.draw-mode #overlay {
  pointer-events: auto;
  cursor: crosshair;
}