
.v3d-open {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  min-height: 44px; padding: 0 14px;
  border: 1px solid rgba(31, 41, 55, .25); border-radius: 10px;
  background: rgba(255, 255, 255, .92); color: #1f2937;
  font: 600 14px/1 "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; cursor: pointer;
}
.v3d-open[hidden] { display: none; }
.v3d-open:hover { background: #fff; }


.viewer-3d-container.is-fs,
.viewer-3d-container:fullscreen {
  position: fixed !important; inset: 0 !important; z-index: 2147483000;
  width: 100vw !important; height: 100vh !important; max-width: none !important; max-height: none !important;
  margin: 0 !important; aspect-ratio: auto !important; border-radius: 0 !important; background: #f0f0f0;
}
@supports (height: 100dvh) {
  .viewer-3d-container.is-fs, .viewer-3d-container:fullscreen { height: 100dvh !important; }
}
.viewer-3d-container.is-fs model-viewer,
.viewer-3d-container:fullscreen model-viewer { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0 !important; min-height: 0 !important; }
html.v3d-lock, html.v3d-lock body { overflow: hidden; overscroll-behavior: none; }

.v3d-ui { position: absolute; inset: 0; z-index: 10; pointer-events: none; display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.v3d-ui[hidden] { display: none; }
.v3d-ui > * { pointer-events: auto; }
.v3d-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: linear-gradient(rgba(240, 240, 240, .95), rgba(240, 240, 240, 0)); }
.v3d-title { display: flex; flex-direction: column; min-width: 0; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; color: #1f2937; }
.v3d-code { font-weight: 700; font-size: 15px; }
.v3d-name { font-size: 13px; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3d-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px 12px; background: linear-gradient(rgba(240, 240, 240, 0), rgba(240, 240, 240, .96) 35%); }
.v3d-group { display: flex; gap: 6px; }
.v3d-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 14px;
  border: 1px solid rgba(31, 41, 55, .25); border-radius: 10px; background: #fff; color: #1f2937;
  font: 600 14px/1.1 "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; text-decoration: none; cursor: pointer;
}
.v3d-btn[hidden] { display: none; }
.v3d-btn[aria-pressed="true"] { background: #1f2937; color: #fff; border-color: #1f2937; }
.v3d-btn:hover { border-color: #1f2937; }
.v3d-btn:focus-visible, .v3d-open:focus-visible { outline: 3px solid #0b5fff; outline-offset: 2px; }
.v3d-close { flex: none; }
.v3d-bar { margin-top: auto; }
.v3d-dims:not([hidden]) { margin-top: auto; }
.v3d-dims:not([hidden]) + .v3d-bar { margin-top: 0; }
.v3d-dims { margin: 0 12px 6px; align-self: flex-start; max-width: min(420px, calc(100% - 24px)); padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .96); box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.v3d-dims[hidden] { display: none; }
.v3d-dim { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; font-size: 14px; color: #1f2937; }
.v3d-dim-label { opacity: .75; }
.v3d-dim-value { font-weight: 700; text-align: right; }
@media (max-width: 480px) { .v3d-btn { padding: 0 10px; font-size: 13px; } .v3d-bar { gap: 6px; } }
