.venue-3d-dialog {
  font-family: inherit;
  width: min(1440px, calc(100vw - 40px));
  max-width: none;
  height: min(930px, calc(100dvh - 40px));
  max-height: none;
  padding: 0;
  border: 1px solid #e9e1f4;
  border-radius: 24px;
  background: #fff;
  color: #302144;
  box-shadow: 0 36px 110px #28133d55;
  overflow: hidden;
}
.venue-3d-dialog::backdrop {
  background: #211434b3;
  backdrop-filter: none;
}
.venue-3d-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(180px, 1fr) auto auto;
  min-height: 0;
}
.venue-3d-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px 14px;
  background: linear-gradient(115deg, #faf5ff, #fff5f8);
}
.venue-3d-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: #9b56ba;
  letter-spacing: 0.04em;
}
.venue-3d-header h2 {
  font-family: inherit;
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 800;
  margin: 2px 0 0;
  line-height: 1.3;
}
.venue-3d-dialog button,
.venue-3d-dialog select {
  font: inherit;
  color: inherit;
}
.venue-3d-close {
  border: 1px solid #e6d9ee;
  background: #fff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  cursor: pointer;
  font-size: 19px;
}
.venue-3d-close:hover {
  background: #f4eafa;
}
.venue-3d-toolbar {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-block: 1px solid #eee6f3;
  background: #fff;
}
.venue-3d-presets {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: #f4eef9;
  border-radius: 12px;
}
.venue-3d-toolbar button {
  min-height: 36px;
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 7px 12px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}
.venue-3d-presets button[aria-pressed="true"] {
  background: #fff;
  box-shadow: 0 2px 7px #38245114;
  color: #7138ce;
}
.venue-3d-options {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.venue-3d-options label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  white-space: nowrap;
}
.venue-3d-options input {
  accent-color: #8249d8;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
}
.venue-3d-options button {
  background: #f4eef9;
}
.venue-3d-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 35%, #fff, #eee8f6);
}
.venue-3d-canvas,
.venue-3d-labels {
  position: absolute;
  inset: 0;
}
.venue-3d-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: 0;
  cursor: grab;
}
.venue-3d-canvas canvas:active {
  cursor: grabbing;
}
.venue-3d-canvas canvas:focus-visible {
  outline: 3px solid #9d72df;
  outline-offset: -4px;
}
.venue-3d-labels {
  pointer-events: none;
  direction: ltr;
}
.venue-3d-label {
  position: absolute;
  left: 0;
  top: 0;
  direction: rtl;
  border-radius: 7px;
  background: #fffffff0;
  border: 1px solid #e4d9ee;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  color: #625173;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 7px #4030560c;
  will-change: transform;
}
.venue-3d-label.table {
  color: #582b8e;
  background: #fffafff5;
}
.venue-3d-label.selected {
  background: #7a43cc;
  color: #fff;
  border-color: #7a43cc;
  z-index: 2;
}
.venue-3d-label[hidden] {
  display: none;
}
.venue-3d-stats {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 16px;
  border: 1px solid #e5dcef;
  background: #ffffffdf;
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 11px;
  color: #78608c;
  pointer-events: none;
  box-shadow: 0 3px 12px #34214a08;
}
.venue-3d-zoom {
  position: absolute;
  inset-inline-end: 16px;
  inset-block-end: 16px;
  display: flex;
  flex-direction: column;
  padding: 4px;
  gap: 3px;
  background: #fff;
  border: 1px solid #e8def2;
  border-radius: 15px;
  box-shadow: 0 5px 25px #44315314;
}
.venue-3d-zoom button {
  border: 0;
  background: #faf7fd;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 23px;
  cursor: pointer;
}
.venue-3d-zoom button:hover {
  background: #ece0fc;
  color: #783bcc;
}
.venue-3d-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1.9;
  font-size: 15px;
  color: #766586;
  background: #f2edf8;
  padding: 36px;
  z-index: 4;
}
.venue-3d-loading[hidden] {
  display: none;
}
.venue-3d-loading.unavailable {
  background: linear-gradient(135deg, #f4edff, #fff3f8);
}
.venue-3d-inspector {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 12px 22px;
  border-top: 1px solid #e9e0f2;
  background: #fff;
}
.venue-3d-inspector label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.venue-3d-inspector select {
  font-size: 12px;
  min-height: 36px;
  max-width: 250px;
  min-width: 160px;
  width: auto;
  border: 1px solid #e1d5ef;
  border-radius: 9px;
  padding: 5px 10px;
  background: #fbf9ff;
}
.venue-3d-selection {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: #796989;
}
.venue-3d-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding: 9px 22px 12px;
  background: #fcfafe;
  color: #887794;
  font-size: 10px;
  line-height: 1.6;
}
.venue-3d-footer details {
  max-width: 450px;
  margin: 0;
}
.venue-3d-footer summary {
  cursor: pointer;
  color: #74558d;
  margin: 0;
}
.venue-3d-footer p {
  margin: 7px 0 0;
}
.venue-3d-dialog button:focus-visible,
.venue-3d-dialog select:focus-visible {
  outline: 3px solid #b488ec;
  outline-offset: 2px;
}
.venue-3d-dialog button:disabled {
  opacity: 0.4;
  cursor: default;
}
@media (max-width: 720px) {
  .venue-3d-dialog {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    margin: 0;
    max-width: 100vw;
    max-height: 100dvh;
  }
  .venue-3d-header {
    padding: 12px 14px;
  }
  .venue-3d-header h2 {
    font-size: 20px;
  }
  .venue-3d-eyebrow {
    font-size: 10px;
  }
  .venue-3d-toolbar {
    padding: 8px 10px;
    gap: 7px;
  }
  .venue-3d-presets {
    width: 100%;
    justify-content: stretch;
    flex-wrap: wrap;
  }
  .venue-3d-presets button {
    flex: 1 1 70px;
    padding: 7px 6px;
    font-size: 12px;
    min-height: 44px;
  }
  .venue-3d-options {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .venue-3d-options label {
    font-size: 12px;
    min-height: 44px;
  }
  .venue-3d-options button {
    min-height: 44px;
    font-size: 12px;
  }
  .venue-3d-inspector {
    padding: 9px 12px;
    display: block;
  }
  .venue-3d-inspector label {
    justify-content: space-between;
    gap: 8px;
  }
  .venue-3d-inspector select {
    flex: 1;
    min-width: 0;
    max-width: 65%;
    min-height: 44px;
    font-size: 16px;
  }
  .venue-3d-selection {
    font-size: 12px;
    margin-top: 6px;
  }
  .venue-3d-footer {
    padding: 7px 12px;
    gap: 5px;
    display: block;
    font-size: 11px;
  }
  .venue-3d-footer details {
    margin-top: 4px;
  }
  .venue-3d-footer summary {
    min-height: 44px;
    padding-block: 12px;
    font-size: 12px;
  }
  .venue-3d-close {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
  .venue-3d-stats {
    inset-inline-start: 9px;
    inset-block-start: 9px;
    font-size: 10px;
    padding: 6px 9px;
  }
  .venue-3d-zoom {
    inset-inline-end: 10px;
    inset-block-end: 10px;
  }
  .venue-3d-zoom button {
    width: 44px;
    height: 44px;
  }
  .venue-3d-label {
    font-size: 10px;
    max-width: 125px;
    padding: 3px 6px;
  }
}
@media (max-height: 650px) {
  .venue-3d-dialog {
    overflow-y: auto;
  }
  .venue-3d-shell {
    min-height: 600px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .venue-3d-dialog * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
