:root {
  --bg: #ffffff;
  --panel: #0b0f14;
  --line: rgba(255, 255, 255, 0.14);
  --primary: #1f8fd0;
  --primary-foreground: #ffffff;
  --secondary: rgba(255, 255, 255, 0.08);
  --secondary-foreground: #eaf3fa;
  --border: rgba(255, 255, 255, 0.12);
  --ring: rgba(54, 176, 237, 0.4);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}
#app {
  margin: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #ffffff;
  font-family: "Inter", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

.export-runtime-shell {
  position: relative;
  width: 100%;
  height: 100%;
  background: #ffffff;
}

.export-stage-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #ffffff;
}

.preview-stage {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  background-size: cover;
  background-position: center;
  box-shadow: none;
}

.preview-scene-interactives {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.preview-shared-controls {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 120;
  pointer-events: none;
}

.preview-shared-controls .rt-ui-control {
  pointer-events: auto;
}

.preview-stage.is-transitioning .preview-scene-interactives .rt-hotspot-node,
.preview-stage.is-transitioning .preview-scene-interactives .rt-ui-control,
.preview-stage.is-local-video .preview-scene-interactives .rt-hotspot-node,
.preview-stage.is-local-video .preview-scene-interactives .rt-ui-control,
.preview-stage.is-local-video .preview-shared-controls .rt-ui-control {
  visibility: hidden;
  opacity: 0;
}

.preview-stage.is-transitioning
  .preview-shared-controls
  .rt-ui-control:not(.show-during-transitions) {
  visibility: hidden;
  opacity: 0;
}

.rt-hotspot-node {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.rt-hotspot-node:hover,
.rt-hotspot-node.tooltip-visible {
  z-index: 240 !important;
}

.preview-node .rt-hotspot-marker {
  cursor: pointer;
  pointer-events: auto;
}

.preview-node .rt-hotspot-tooltip {
  pointer-events: none;
}

.rt-hotspot-marker {
  position: relative;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  padding: 0;
  overflow: visible;
  opacity: 0.9;
  transform-origin: 50% 50%;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    filter 0.15s ease;
}

.rt-hotspot-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  text-shadow: none;
}

.rt-hotspot-dot::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  border: 2px solid #18a9ea;
  border-radius: 50%;
  background: transparent;
}

.rt-hotspot-marker img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  display: block;
  border-radius: 50%;
}

.rt-hotspot-marker.label-always,
.rt-hotspot-node.selected .rt-hotspot-marker {
  opacity: 1;
}

.rt-hotspot-node:hover:not(.selected) .rt-hotspot-marker,
.rt-hotspot-node.tooltip-visible:not(.selected) .rt-hotspot-marker {
  opacity: 0.94;
  transform: scale(1.5);
}

.rt-hotspot-node.selected .rt-hotspot-marker {
  transform: scale(1.5);
  filter: none;
}

.rt-hotspot-node.selected .rt-hotspot-dot {
  width: 30px;
  height: 30px;
  border: 4px solid #18a9ea;
  border-radius: 50%;
  background: #ffffff;
  box-sizing: border-box;
}

.rt-hotspot-node.selected .rt-hotspot-dot::before {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #18a9ea;
}

.rt-hotspot-node.selected .rt-hotspot-marker img {
  display: none;
}

.rt-hotspot-label {
  position: absolute;
  left: 24px;
  top: 2px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.96);
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 4px 8px;
  opacity: 0;
  transform: translateY(2px);
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
  pointer-events: none;
}

.rt-hotspot-marker.label-always .rt-hotspot-label {
  opacity: 1;
  transform: translateY(0);
}

.rt-hotspot-node:hover:not(.selected) .rt-hotspot-label {
  opacity: 0;
  transform: translateY(2px);
}

.rt-hotspot-node.selected .rt-hotspot-label,
.rt-hotspot-node.selected:hover .rt-hotspot-label,
.rt-hotspot-node.tooltip-visible .rt-hotspot-label {
  opacity: 0;
  transform: translateY(2px);
}

.rt-hotspot-tooltip {
  position: absolute;
  display: none;
  width: 372px;
  max-width: min(76vw, 448px);
  min-width: 280px;
  background: #070707;
  color: #fff;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
  padding: 24px;
  z-index: 20;
  transform: translate(var(--tx), var(--ty));
}

.rt-hotspot-node:hover:not(.tooltip-visible) .rt-hotspot-tooltip,
.rt-hotspot-tooltip.force-visible {
  display: block;
  opacity: 1;
}

.rt-hotspot-node:hover:not(.selected) .rt-hotspot-tooltip:not(.force-visible) {
  opacity: 0.84;
}

.rt-hotspot-node.selected .rt-hotspot-tooltip.force-visible {
  opacity: 1;
}

.rt-hotspot-node.tooltip-visible .rt-hotspot-tooltip.force-visible {
  opacity: 0.84;
}

.rt-hotspot-tooltip.right {
  left: 48px;
  top: 50%;
  transform: translate(var(--tx), calc(-50% + var(--ty)));
}

.rt-hotspot-tooltip.left {
  right: 48px;
  top: 50%;
  transform: translate(var(--tx), calc(-50% + var(--ty)));
}

.rt-hotspot-tooltip.top {
  left: 50%;
  bottom: 48px;
  transform: translate(calc(-50% + var(--tx)), var(--ty));
}

.rt-hotspot-tooltip.bottom {
  left: 50%;
  top: 48px;
  transform: translate(calc(-50% + var(--tx)), var(--ty));
}

.rt-hotspot-tooltip-title {
  font:
    600 15px/20px "Inter",
    sans-serif;
  margin: 0 0 8px;
  color: #ffffff;
  max-width: 94%;
}

.rt-hotspot-tooltip-body {
  margin: 0;
  font:
    400 13px/20px "Inter",
    sans-serif;
  opacity: 1;
  overflow-wrap: anywhere;
  word-break: normal;
  max-width: 100%;
  color: #d9e4ec;
}

.rt-hotspot-tooltip-notch {
  position: absolute;
  width: 9px;
  height: 9px;
  background: #070707;
  transform: rotate(45deg);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.rt-hotspot-node.selected .rt-hotspot-tooltip::before {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.62;
}

.rt-hotspot-tooltip.right .rt-hotspot-tooltip-notch {
  left: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.rt-hotspot-node.selected .rt-hotspot-tooltip.right::before {
  left: -18px;
  top: 50%;
  width: 12px;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    rgba(42, 169, 234, 0.18),
    rgba(255, 255, 255, 0.12)
  );
}

.rt-hotspot-tooltip.left .rt-hotspot-tooltip-notch {
  right: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(225deg);
}

.rt-hotspot-node.selected .rt-hotspot-tooltip.left::before {
  right: -18px;
  top: 50%;
  width: 12px;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.12),
    rgba(42, 169, 234, 0.18)
  );
}

.rt-hotspot-tooltip.top .rt-hotspot-tooltip-notch {
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(-45deg);
}

.rt-hotspot-node.selected .rt-hotspot-tooltip.top::before {
  left: 50%;
  bottom: -18px;
  width: 1px;
  height: 12px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    rgba(42, 169, 234, 0.18)
  );
}

.rt-hotspot-tooltip.bottom .rt-hotspot-tooltip-notch {
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(135deg);
}

.rt-hotspot-node.selected .rt-hotspot-tooltip.bottom::before {
  left: 50%;
  top: -18px;
  width: 1px;
  height: 12px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(42, 169, 234, 0.18),
    rgba(255, 255, 255, 0.12)
  );
}

.rt-scene-text-window {
  position: absolute;
  padding: 16px 20px;
  background: rgba(7, 7, 7, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  color: #ffffff;
  z-index: 260;
  pointer-events: none;
  max-width: min(420px, calc(100% - 24px));
}

.preview-stage .rt-scene-text-window {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.rt-scene-text-window.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rt-scene-text-window-title {
  margin: 0 0 8px;
  font-family: "Inter", sans-serif;
  font-size: var(--rt-scene-text-window-title-size, 15px);
  line-height: calc(var(--rt-scene-text-window-title-size, 15px) * 1.28);
  font-weight: 600;
  color: #ffffff;
}

.rt-scene-text-window-body {
  font-family: "Inter", sans-serif;
  font-size: var(--rt-scene-text-window-font-size, 13px);
  line-height: calc(var(--rt-scene-text-window-font-size, 13px) * 1.54);
  font-weight: 400;
  color: #d9e4ec;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}

.rt-ui-control {
  --rt-btn-bg: var(--primary);
  --rt-btn-bg-hover: color-mix(in oklab, var(--primary) 84%, black);
  --rt-btn-bg-pressed: color-mix(in oklab, var(--primary) 72%, black);
  --rt-btn-border: transparent;
  --rt-btn-text: var(--primary-foreground);
  position: absolute;
  border: 1px solid var(--rt-btn-border);
  background: var(--rt-btn-bg);
  color: var(--rt-btn-text);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  box-shadow: none;
  transition:
    background-color 0.14s ease,
    border-color 0.14s ease,
    transform 0.12s ease,
    color 0.14s ease;
}

.rt-ui-control.style-secondary {
  --rt-btn-bg: #ffffff;
  --rt-btn-bg-hover: #f4f8fc;
  --rt-btn-bg-pressed: #eaf1f8;
  --rt-btn-border: var(--primary);
  --rt-btn-text: var(--primary);
}

.rt-ui-control:hover {
  background: var(--rt-btn-bg-hover);
  transform: scale(1.1);
}

.rt-ui-control:active {
  background: var(--rt-btn-bg-pressed);
}

.rt-ui-content {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(8px * var(--rt-ui-scale, 1));
  padding: 0 calc(14px * var(--rt-ui-scale, 1));
}

.rt-ui-control img {
  width: calc(16px * var(--rt-ui-scale, 1));
  height: calc(16px * var(--rt-ui-scale, 1));
  flex: 0 0 calc(16px * var(--rt-ui-scale, 1));
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.98;
}

.rt-ui-control.style-secondary img {
  filter: brightness(0) saturate(100%) invert(45%) sepia(82%) saturate(1308%)
    hue-rotate(171deg) brightness(96%) contrast(93%);
}

.rt-ui-glyph {
  width: calc(15px * var(--rt-ui-scale, 1));
  height: calc(15px * var(--rt-ui-scale, 1));
  flex: 0 0 calc(15px * var(--rt-ui-scale, 1));
  display: inline-grid;
  place-items: center;
  font-size: calc(11px * var(--rt-ui-scale, 1));
  color: currentColor;
}

.rt-ui-label {
  color: var(--rt-btn-text);
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: calc(14px * var(--rt-ui-scale, 1));
  line-height: calc(20px * var(--rt-ui-scale, 1));
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rt-ui-btn.variant-textButton {
  border-color: transparent;
  background: transparent;
}

.rt-ui-btn.image-backed {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}

.rt-ui-btn.image-backed .rt-ui-button-image {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  overflow: hidden;
}

.rt-ui-btn.image-backed .rt-ui-button-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
}

.rt-ui-btn.image-backed .rt-ui-content {
  position: relative;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.rt-ui-btn.variant-iconButton .rt-ui-label {
  display: none;
}

.preview-transition-layer {
  position: absolute;
  inset: 0;
  display: none;
  align-items: stretch;
  justify-content: stretch;
  background: transparent;
  z-index: 80;
}

.preview-transition-layer.active {
  display: flex;
}

.preview-transition-video,
.preview-local-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.preview-local-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.preview-local-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  gap: 8px;
}

.runtime-pill-btn {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 16, 20, 0.82);
  color: #edf4fa;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 560;
  line-height: 1.28;
  cursor: pointer;
}

.runtime-pill-btn:hover {
  background: rgba(16, 21, 26, 0.92);
  border-color: rgba(255, 255, 255, 0.18);
}

.runtime-pill-btn:active {
  transform: translateY(1px);
}

.rt-text-modal-backdrop {
  position: absolute;
  inset: -1px;
  background: rgba(3, 7, 12, 0.58);
  display: grid;
  place-items: center;
  z-index: 520;
}

.rt-text-modal-backdrop.overlay-black {
  background: rgba(3, 7, 12, 0.58);
}

.rt-text-modal-backdrop.overlay-white {
  background: rgba(255, 255, 255, 0.78);
}

.rt-text-modal {
  position: relative;
  width: min(92%, 760px);
  background: #0b0e12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.55);
  color: #edf4fa;
}

.rt-text-modal.size-sm {
  width: min(86%, 520px);
}
.rt-text-modal.size-md {
  width: min(90%, 760px);
}
.rt-text-modal.size-lg {
  width: min(94%, 980px);
}

.rt-text-modal-content {
  padding: 18px 20px 20px;
  max-height: min(72vh, 720px);
}

.rt-text-modal-content.scrollable {
  overflow: auto;
}

.rt-text-modal-title {
  margin: 0 0 10px;
  font:
    700 22px/1.15 "Inter",
    sans-serif;
  color: #ffffff;
}

.rt-text-modal-body {
  font:
    500 15px/1.5 "Inter",
    sans-serif;
  color: #e6eef6;
  white-space: pre-wrap;
}

.rt-text-modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #d9e5f0;
  cursor: pointer;
}

.rt-text-modal-close:hover {
  border-color: rgba(42, 169, 234, 0.65);
  color: #f4fbff;
}

.rt-text-modal-close:active {
  transform: translateY(1px);
}

.preview-stage {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  background-size: cover;
  background-position: center;
  box-shadow: none;
}

.preview-scene-interactives {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.preview-shared-controls {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 120;
  pointer-events: none;
}

.preview-shared-controls .rt-ui-control {
  pointer-events: auto;
}

.preview-stage.is-transitioning .preview-scene-interactives .rt-hotspot-node,
.preview-stage.is-transitioning .preview-scene-interactives .rt-ui-control,
.preview-stage.is-local-video .preview-scene-interactives .rt-hotspot-node,
.preview-stage.is-local-video .preview-scene-interactives .rt-ui-control,
.preview-stage.is-local-video .preview-shared-controls .rt-ui-control {
  visibility: hidden;
  opacity: 0;
}

.preview-stage.is-transitioning
  .preview-shared-controls
  .rt-ui-control:not(.show-during-transitions) {
  visibility: hidden;
  opacity: 0;
}

.preview-stage .rt-ui-control:hover {
  transform: scale(1.1);
}

.preview-stage .rt-hotspot-marker:hover {
  transform: scale(1.5);
}

@keyframes rtHotspotPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0.35;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.2);
    opacity: 0;
  }
}

.rt-hotspot-node {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.rt-hotspot-node:hover,
.rt-hotspot-node.tooltip-visible {
  z-index: 240 !important;
}

.preview-node .rt-hotspot-marker {
  cursor: pointer;
  pointer-events: auto;
}

.preview-node .rt-hotspot-tooltip {
  pointer-events: none;
}

.rt-hotspot-marker {
  position: relative;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  padding: 0;
  overflow: visible;
  opacity: 0.9;
  transform-origin: 50% 50%;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    filter 0.15s ease;
}

.preview-node .rt-hotspot-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(24, 169, 234, 0.76);
  pointer-events: none;
  z-index: 0;
  animation: rtHotspotPulse 2.8s linear infinite;
  animation-fill-mode: both;
  animation-delay: 0s;
}

.preview-node .rt-hotspot-pulse.pulse-2 {
  width: 24px;
  height: 24px;
  background: rgba(24, 169, 234, 0.68);
  animation-delay: -1.4s;
}

.rt-hotspot-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  text-shadow: none;
}

.rt-hotspot-dot::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  border: 2px solid #18a9ea;
  border-radius: 50%;
  background: transparent;
}

.rt-hotspot-marker img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  display: block;
  border-radius: 50%;
}

.rt-hotspot-marker.label-always,
.rt-hotspot-node.selected .rt-hotspot-marker {
  opacity: 1;
}

.rt-hotspot-node:hover:not(.selected) .rt-hotspot-marker,
.rt-hotspot-node.tooltip-visible:not(.selected) .rt-hotspot-marker {
  opacity: 0.94;
  transform: scale(1.5);
}

.rt-hotspot-node:hover .rt-hotspot-pulse,
.rt-hotspot-node.selected .rt-hotspot-pulse,
.rt-hotspot-node.tooltip-visible .rt-hotspot-pulse {
  animation-play-state: paused;
  opacity: 0 !important;
}

.rt-hotspot-node.selected .rt-hotspot-marker {
  transform: scale(1.5);
  filter: none;
}

.rt-hotspot-node.selected .rt-hotspot-dot {
  width: 30px;
  height: 30px;
  border: 4px solid #18a9ea;
  border-radius: 50%;
  background: #ffffff;
  box-sizing: border-box;
}

.rt-hotspot-node.selected .rt-hotspot-dot::before {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #18a9ea;
}

.rt-hotspot-node.selected .rt-hotspot-marker img {
  display: none;
}

.rt-hotspot-label {
  position: absolute;
  left: 24px;
  top: 2px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.96);
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 4px 8px;
  opacity: 0;
  transform: translateY(2px);
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
  pointer-events: none;
}

.rt-hotspot-marker.label-always .rt-hotspot-label {
  opacity: 1;
  transform: translateY(0);
}

.rt-hotspot-node:hover:not(.selected) .rt-hotspot-label {
  opacity: 0;
  transform: translateY(2px);
}

.rt-hotspot-node.selected .rt-hotspot-label,
.rt-hotspot-node.selected:hover .rt-hotspot-label,
.rt-hotspot-node.tooltip-visible .rt-hotspot-label {
  opacity: 0;
  transform: translateY(2px);
}

.rt-hotspot-tooltip {
  position: absolute;
  display: none;
  width: 372px;
  max-width: min(76vw, 448px);
  min-width: 280px;
  background: #070707;
  color: #fff;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
  padding: 24px;
  z-index: 20;
  transform: translate(var(--tx), var(--ty));
}

.rt-hotspot-node:hover:not(.tooltip-visible) .rt-hotspot-tooltip,
.rt-hotspot-tooltip.force-visible {
  display: block;
  opacity: 1;
}

.rt-hotspot-node:hover:not(.selected) .rt-hotspot-tooltip:not(.force-visible) {
  opacity: 0.84;
}

.rt-hotspot-node.selected .rt-hotspot-tooltip.force-visible {
  opacity: 1;
}

.rt-hotspot-node.tooltip-visible .rt-hotspot-tooltip.force-visible {
  opacity: 0.84;
}

.rt-hotspot-tooltip.right {
  left: 48px;
  top: 50%;
  transform: translate(var(--tx), calc(-50% + var(--ty)));
}

.rt-hotspot-tooltip.left {
  right: 48px;
  top: 50%;
  transform: translate(var(--tx), calc(-50% + var(--ty)));
}

.rt-hotspot-tooltip.top {
  left: 50%;
  bottom: 48px;
  transform: translate(calc(-50% + var(--tx)), var(--ty));
}

.rt-hotspot-tooltip.bottom {
  left: 50%;
  top: 48px;
  transform: translate(calc(-50% + var(--tx)), var(--ty));
}

.rt-hotspot-tooltip-title {
  font:
    600 15px/20px "Inter",
    sans-serif;
  margin: 0 0 8px;
  color: #ffffff;
  max-width: 94%;
}

.rt-hotspot-tooltip-body {
  margin: 0;
  font:
    400 13px/20px "Inter",
    sans-serif;
  opacity: 1;
  overflow-wrap: anywhere;
  word-break: normal;
  max-width: 100%;
  color: #d9e4ec;
}

.rt-hotspot-tooltip-notch {
  position: absolute;
  width: 9px;
  height: 9px;
  background: #070707;
  transform: rotate(45deg);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.rt-hotspot-node.selected .rt-hotspot-tooltip::before {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.62;
}

.rt-hotspot-tooltip.right .rt-hotspot-tooltip-notch {
  left: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.rt-hotspot-node.selected .rt-hotspot-tooltip.right::before {
  left: -18px;
  top: 50%;
  width: 12px;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    rgba(42, 169, 234, 0.18),
    rgba(255, 255, 255, 0.12)
  );
}

.rt-hotspot-tooltip.left .rt-hotspot-tooltip-notch {
  right: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(225deg);
}

.rt-hotspot-node.selected .rt-hotspot-tooltip.left::before {
  right: -18px;
  top: 50%;
  width: 12px;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.12),
    rgba(42, 169, 234, 0.18)
  );
}

.rt-hotspot-tooltip.top .rt-hotspot-tooltip-notch {
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(-45deg);
}

.rt-hotspot-node.selected .rt-hotspot-tooltip.top::before {
  left: 50%;
  bottom: -18px;
  width: 1px;
  height: 12px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    rgba(42, 169, 234, 0.18)
  );
}

.rt-hotspot-tooltip.bottom .rt-hotspot-tooltip-notch {
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(135deg);
}

.rt-hotspot-node.selected .rt-hotspot-tooltip.bottom::before {
  left: 50%;
  top: -18px;
  width: 1px;
  height: 12px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(42, 169, 234, 0.18),
    rgba(255, 255, 255, 0.12)
  );
}

.rt-ui-control {
  --rt-btn-bg: var(--primary);
  --rt-btn-bg-hover: color-mix(in oklab, var(--primary) 84%, black);
  --rt-btn-bg-pressed: color-mix(in oklab, var(--primary) 72%, black);
  --rt-btn-border: transparent;
  --rt-btn-text: var(--primary-foreground);
  position: absolute;
  border: 1px solid var(--rt-btn-border);
  background: var(--rt-btn-bg);
  color: var(--rt-btn-text);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  box-shadow: none;
  transition:
    background-color 0.14s ease,
    border-color 0.14s ease,
    transform 0.12s ease,
    color 0.14s ease;
}

.rt-ui-control.style-secondary {
  --rt-btn-bg: #ffffff;
  --rt-btn-bg-hover: #f4f8fc;
  --rt-btn-bg-pressed: #eaf1f8;
  --rt-btn-border: var(--primary);
  --rt-btn-text: var(--primary);
}

.rt-ui-control:hover {
  background: var(--rt-btn-bg-hover);
  transform: scale(1.1);
}

.rt-ui-control:active {
  background: var(--rt-btn-bg-pressed);
}

.rt-ui-content {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(8px * var(--rt-ui-scale, 1));
  padding: 0 calc(14px * var(--rt-ui-scale, 1));
}

.rt-ui-control img {
  width: calc(16px * var(--rt-ui-scale, 1));
  height: calc(16px * var(--rt-ui-scale, 1));
  flex: 0 0 calc(16px * var(--rt-ui-scale, 1));
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.98;
}

.rt-ui-control.style-secondary img {
  filter: brightness(0) saturate(100%) invert(45%) sepia(82%) saturate(1308%)
    hue-rotate(171deg) brightness(96%) contrast(93%);
}

.rt-ui-label {
  color: var(--rt-btn-text);
  font-family: "Inter", sans-serif;
  font-weight: 560;
  font-size: calc(13px * var(--rt-ui-scale, 1));
  line-height: 1.28;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rt-ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rt-ui-btn.image-backed {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}

.rt-ui-btn.image-backed .rt-ui-button-image {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  overflow: hidden;
}

.rt-ui-btn.image-backed .rt-ui-button-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
}

.rt-ui-btn.image-backed .rt-ui-content {
  position: relative;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.rt-ui-btn.variant-textButton {
  border-color: transparent;
  background: transparent;
}

.rt-ui-btn.variant-iconButton .rt-ui-label {
  display: none;
}

.preview-transition-layer {
  position: absolute;
  inset: 0;
  display: none;
  align-items: stretch;
  justify-content: stretch;
  background: transparent;
  z-index: 600;
}

.preview-transition-layer.active {
  display: flex;
}

.preview-transition-video,
.preview-local-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.preview-local-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
  z-index: 1;
}

.preview-local-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  gap: 8px;
}

.runtime-pill-btn {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 16, 20, 0.82);
  color: #edf4fa;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 560;
  line-height: 1.28;
  cursor: pointer;
}

.runtime-pill-btn:hover {
  background: rgba(16, 21, 26, 0.92);
  border-color: rgba(255, 255, 255, 0.18);
}

.runtime-pill-btn:active {
  transform: translateY(1px);
}

.rt-scene-text-window {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
  padding: 16px 20px;
  background: rgba(7, 7, 7, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  color: #ffffff;
  z-index: 260;
  pointer-events: auto;
}

.rt-scene-text-window-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: 100%;
  overflow: hidden;
}

.rt-scene-text-window.hug-height .rt-scene-text-window-inner {
  height: auto;
}

.preview-stage .rt-scene-text-window {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.preview-stage.is-transitioning .rt-scene-text-window,
.preview-stage.is-local-video .rt-scene-text-window {
  opacity: 0;
  transform: translateY(10px);
}

.rt-scene-text-window.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rt-scene-text-window-title {
  margin: 0 0 8px;
  font-family: "Inter", sans-serif;
  font-size: var(--rt-scene-text-window-title-size, 15px);
  line-height: calc(var(--rt-scene-text-window-title-size, 15px) * 1.28);
  font-weight: 600;
  color: #ffffff;
}

.rt-scene-text-window-body {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  font-family: "Inter", sans-serif;
  font-size: var(--rt-scene-text-window-font-size, 13px);
  line-height: calc(var(--rt-scene-text-window-font-size, 13px) * 1.54);
  font-weight: 400;
  color: #d9e4ec;
  white-space: pre-wrap;
  max-width: 100%;
  overflow-wrap: break-word;
  overflow: auto;
  word-break: normal;
  hyphens: manual;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.92) transparent;
}

.rt-scene-text-window.hug-height .rt-scene-text-window-body {
  height: auto;
  overflow: visible;
}

.rt-scene-text-window-body strong,
.rt-scene-text-window-body b {
  font-weight: 700;
}

.rt-scene-text-window-body em,
.rt-scene-text-window-body i {
  font-style: italic;
}

.rt-scene-text-window-body u {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.rt-scene-text-window-body sup {
  font-size: 0.7em;
  line-height: 0;
  vertical-align: super;
}

.rt-scene-text-window-body sub {
  font-size: 0.7em;
  line-height: 0;
  vertical-align: sub;
}

.rt-scene-text-window-body p,
.rt-scene-text-window-body div {
  margin: 0;
}

.rt-scene-text-window-body p + p,
.rt-scene-text-window-body p + div,
.rt-scene-text-window-body div + p,
.rt-scene-text-window-body div + div {
  margin-top: 0.72em;
}

.rt-scene-text-window-body::-webkit-scrollbar {
  width: 8px;
}

.rt-scene-text-window-body::-webkit-scrollbar-track {
  background: transparent;
}

.rt-scene-text-window-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  border: 0;
}

.rt-text-modal-backdrop {
  position: absolute;
  inset: -1px;
  background: rgba(3, 7, 12, 0.58);
  display: grid;
  place-items: center;
  z-index: 520;
}

.rt-text-modal-backdrop.overlay-black {
  background: rgba(3, 7, 12, 0.58);
}

.rt-text-modal-backdrop.overlay-white {
  background: rgba(255, 255, 255, 0.78);
}

.rt-text-modal {
  position: relative;
  width: min(92%, 760px);
  background: #0b0e12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.55);
  color: #edf4fa;
}

.rt-text-modal.size-sm {
  width: min(86%, 520px);
}
.rt-text-modal.size-md {
  width: min(90%, 760px);
}
.rt-text-modal.size-lg {
  width: min(94%, 980px);
}

.rt-text-modal-content {
  padding: 18px 20px 20px;
  max-height: min(72vh, 720px);
}

.rt-text-modal-content.scrollable {
  overflow: auto;
}

.rt-text-modal-title {
  margin: 0 0 10px;
  font:
    700 22px/1.15 "Inter",
    sans-serif;
  color: #ffffff;
}

.rt-text-modal-body {
  font:
    500 15px/1.5 "Inter",
    sans-serif;
  color: #e6eef6;
  white-space: pre-wrap;
}

.rt-text-modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #d9e5f0;
  cursor: pointer;
}

.rt-text-modal-close:hover {
  border-color: rgba(42, 169, 234, 0.65);
  color: #f4fbff;
}

.rt-text-modal-close:active {
  transform: translateY(1px);
}
