* {
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
::selection {
  background: rgba(232, 92, 144, 0.22);
  color: #36383e;
}
:focus-visible {
  outline: 2px solid #36383e;
  outline-offset: 2px;
}
body,
html {
  margin: 0;
  padding: 0;
  width: 100dvw;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  background-color: #f2efe9;
  font-family:
    "DM Sans",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #36383e;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
canvas:active {
  cursor: grabbing;
}
h1 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
}
h2 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
}
.mono {
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
}
.tabular-nums {
  font-variant-numeric: tabular-nums;
}
.drawer-scroll {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
/* Custom minimalist scrollbars for inspector drawer */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(54, 56, 62, 0.2);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(54, 56, 62, 0.4);
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #e2dfd7;
  height: 6px;
  border-radius: 999px;
  outline: none;
  touch-action: pan-y;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #36383e;
  cursor: pointer;
  border: 2px solid #f2efe9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}
@media (pointer: coarse) {
  input[type="range"] {
    height: 8px;
  }
  input[type="range"]::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
  }
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.glass-panel {
  contain: layout style paint;
  padding: 12px 14px;
  background: rgba(247, 245, 240, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 10px 28px -6px rgba(45, 47, 52, 0.14),
    0 2px 6px -1px rgba(45, 47, 52, 0.07);
}
.layer-btn {
  padding: 7px 10px;
}
.layer-btn.active {
  background-color: #36383e;
  color: #f2efe9;
  border-color: #36383e;
}
