/* Shared ViewCube styles — pairs with view-cube.mjs (all DOM injected).
   Ported from ui_testbed via step_toolpath_app; face/edge/corner transforms
   are generated by the module, this file only carries the look. */

#viewcube-container {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 200px;
  height: 200px;
  z-index: 4;
  perspective: 600px;
  pointer-events: none;
}
/* the physical camera owns orientation in AR — hide the cube */
.ar-mode #viewcube-container { display: none; }

#vc-cube {
  width: 90px;
  height: 90px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -45px;
  margin-top: -45px;
  transform-style: preserve-3d;
  pointer-events: auto;
  cursor: grab;
}
#vc-cube:active { cursor: grabbing; }

.vc-face {
  position: absolute;
  width: 66px;
  height: 66px;
  left: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: bold 12px var(--t-font-main, sans-serif);
  color: var(--t-text, #222);
  background: var(--t-bg-secondary, #f5f5f5);
  border: 1.5px solid var(--t-accent, #0066cc);
  opacity: 0.82;
  cursor: pointer;
  backface-visibility: hidden;
  user-select: none;
  transition: background 0.12s, opacity 0.12s;
}
.vc-face:hover {
  background: var(--t-accent, #0066cc);
  color: var(--t-accent-text, #fff);
  opacity: 0.95;
}

.vc-edge, .vc-corner {
  pointer-events: auto;
  cursor: pointer;
  backface-visibility: hidden;
  background: var(--t-bg-secondary, #f5f5f5);
  border: 1px solid var(--t-border, rgba(0, 0, 0, 0.15));
  opacity: 0.7;
  transition: background 0.12s, opacity 0.12s, border-color 0.12s;
}
.vc-edge:hover, .vc-corner:hover {
  background: var(--t-accent, #0066cc);
  border-color: var(--t-accent, #0066cc);
  opacity: 0.9;
}
