/* 農業CAD 共通 / 3Dプレビュー */

#cad3dOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  flex-direction: column;
  background: #263238;
  color: #fff;
}

#cad3dHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 3px solid rgba(33, 150, 243, 0.85);
  flex-shrink: 0;
}

#cad3dCanvasHost {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #81d4fa;
}

#cad3dCanvasHost canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

#cad3dToolbar {
  flex-shrink: 0;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#cad3dToolbar .cad3d-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

#cad3dToolbar label {
  font-size: 11px;
  color: #bbb;
  white-space: nowrap;
}

#cad3dToolbar input[type="range"] {
  flex: 1;
  min-width: 100px;
}

.cad3d-label {
  text-align: center;
  pointer-events: none;
  user-select: none;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 3px 7px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
  white-space: nowrap;
}

.cad3d-label-num {
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.cad3d-label-len {
  color: #ffe082;
  font-weight: 600;
  font-size: 10px;
}
