.pv-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(15, 23, 42, 0.92);
  display: flex;
  flex-direction: column;
}
.pv-overlay[hidden] { display: none; }

.pv-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1rem;
  background: #111827;
  color: #f8fafc;
}
.pv-title {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pv-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}
.pv-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-radius: 6px;
  min-width: 32px;
  height: 32px;
  padding: 0 0.6rem;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.pv-btn:hover { background: rgba(255, 255, 255, 0.18); }
.pv-btn-highlight {
  background: #2563eb;
  border-color: #2563eb;
  gap: 0.35rem;
  padding: 0 0.85rem;
  font-size: 13px;
  font-weight: 600;
}
.pv-btn-highlight:hover { background: #1d4ed8; }
.pv-download-icon { font-size: 15px; line-height: 1; }
.pv-zoom-level {
  color: #cbd5e1;
  font-size: 12px;
  min-width: 42px;
  text-align: center;
}

.pv-body {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
}

.pv-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.pv-video {
  width: 100%;
  height: 100%;
  background: #000;
  display: block;
}

.pv-note {
  color: #e2e8f0;
  text-align: center;
  padding: 2rem;
  font-size: 13px;
}

.pv-fallback {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #e2e8f0;
  text-align: center;
  padding: 2rem;
}

.pv-zoom-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.pv-zoom-viewport.pv-dragging { cursor: grabbing; }

.pv-zoom-stage {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.pv-zoom-stage img {
  display: block;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

.pv-dxf-svg {
  width: 640px;
  height: 480px;
  background: #ffffff;
  color: #1f2937;
  display: block;
}
