.reshape-outline { pointer-events: none; }
.reshape-outline .reshape-line { fill: none; stroke: #63a7ff; stroke-width: 2; stroke-dasharray: 5 3; }
.reshape-outline .reshape-vertex, .reshape-outline .reshape-edge { fill: #70acff; stroke: #163f76; stroke-width: 1.5; pointer-events: all; cursor: move; }
.reshape-outline .reshape-vertex:hover, .reshape-outline .reshape-edge:hover { fill: #fff; }
.reshape-outline .reshape-snap { pointer-events: none; }
body:has(.reshape-active) #sel-ob,
body:has(.reshape-active) #wj-ob,
.reshape-active .wh-ov,
.reshape-active .rf-ov { display: none !important; }
.opening-outline .opening-path { stroke: #67a1eb; stroke-width: 1; stroke-dasharray: 3 3; }
.opening-outline .opening-current { fill: #ffd37618; stroke: #ffbf53; stroke-width: 1.5; }
.opening-outline .opening-invalid { stroke: #f37068; }
.opening-outline .opening-first { fill: #ffbf53; }
.opening-hint { color: var(--muted, #9da9b3); padding: 0 5px; font-size: 11px; }
.opening-select { padding: 2px 5px; margin: 0 3px; font-size: 11px; min-width: 95px; }
.opening-active canvas { cursor: crosshair !important; }
.annotation-move-snap { pointer-events: none; }
.grid-viewport-controls {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%);
  gap: 4px;
}
.grid-viewport-controls:not([hidden]) { display: flex; }
.grid-viewport-button {
  display: grid;
  width: 20px;
  height: 20px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.grid-viewport-button svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.grid-viewport-button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #181818; }
.grid-viewport-button[aria-pressed="mixed"] { border-color: var(--accent); }
.grid-viewport-button:hover, .grid-viewport-button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
