* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: system-ui, -apple-system, sans-serif;
  background: #fdfdfd;
}

#euclid-svg {
  display: block;
  width: 100vw;
  height: 100vh;
  touch-action: none;
  cursor: grab;
  user-select: none;
}

#euclid-svg:active { cursor: grabbing; }

#euclid-coord-readout {
  position: fixed;
  left: 8px;
  bottom: 8px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: #333;
  pointer-events: none;
  z-index: 10;
}

#euclid-controls {
  position: fixed;
  right: 8px;
  top: 8px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

#euclid-controls button {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  color: #333;
}

#euclid-controls button.active {
  background: #333;
  color: #fff;
  border-color: #333;
}

#euclid-help {
  position: fixed;
  right: 8px;
  bottom: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 11px;
  color: #555;
  z-index: 10;
  pointer-events: none;
  line-height: 1.5;
}

#euclid-help kbd {
  display: inline-block;
  padding: 0 4px;
  background: #f4f4f4;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: ui-monospace, monospace;
  font-size: 10px;
}
