.shareModal .vrModal-inner {
  width: min(760px, calc(100vw - 40px));
}

.shareModal .vrModal-content {
  overflow: auto;
}

.tour-share-panel {
  padding: 20px;
  color: #333;
}

.tour-share-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: 8px;
  background: #f2f4f7;
}

.tour-share-tab {
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #666;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.tour-share-tab:hover {
  color: #286efa;
}

.tour-share-tab.is-active {
  background: #fff;
  color: #286efa;
  box-shadow: 0 2px 8px rgba(30, 50, 80, .12);
}

.tour-share-main {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.tour-share-qr-card {
  display: flex;
  flex: 0 0 250px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 14px;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #fafbfc;
}

.tour-share-qr {
  display: block;
  width: 220px;
  height: 220px;
  object-fit: contain;
  background: #fff;
}

.tour-share-qr-tip {
  margin-top: 10px;
  color: #999;
  font-size: 12px;
}

.tour-share-fields {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
}

.tour-share-field label {
  display: block;
  margin-bottom: 8px;
  color: #444;
  font-size: 14px;
  font-weight: 600;
}

.tour-share-copy-row {
  display: flex;
  gap: 8px;
}

.tour-share-url,
.tour-share-embed {
  width: 100%;
  border: 1px solid #dfe3e8;
  border-radius: 6px;
  background: #f8f9fb;
  color: #555;
  font-size: 13px;
  line-height: 20px;
  outline: none;
}

.tour-share-url {
  min-width: 0;
  height: 40px;
  padding: 0 12px;
}

.tour-share-embed {
  display: block;
  height: 132px;
  padding: 10px 12px;
  resize: none;
}

.tour-share-copy-row button,
.tour-share-copy-embed {
  border: 0;
  border-radius: 6px;
  background: #286efa;
  color: #fff;
  cursor: pointer;
}

.tour-share-copy-row button {
  flex: 0 0 82px;
}

.tour-share-copy-embed {
  display: block;
  width: 92px;
  height: 36px;
  margin-top: 8px;
  margin-left: auto;
  float: none;
}

.tour-share-only-scene .scenechoose,
.tour-share-only-scene .groupContainer,
.tour-share-only-scene .scene-linkbox,
.tour-share-only-scene .rightMenu-item.sandtable,
.tour-share-only-scene .rightMenu-item.searchscreen,
.tour-share-only-scene .switchbutn,
.tour-share-only-scene #mapsandwarp,
.tour-share-only-scene .sandtable-player-map-tools,
.tour-share-only-scene .tourStart,
.tour-share-only-scene .tourPause,
.tour-share-only-scene .tourStop,
.tour-share-only-scene .scene-viewpoint-bar,
.tour-share-only-scene .scene-compare-entry {
  display: none !important;
}

@media (max-width: 768px) {
  .shareModal .vrModal-inner {
    top: auto;
    bottom: 0;
    left: 12px;
    right: 12px;
    width: auto;
    height: auto;
    max-height: calc(100vh - 24px);
    -webkit-transform: translateY(100%) scale(1);
    transform: translateY(100%) scale(1);
  }

  .shareModal .vrModal-content {
    height: auto;
    max-height: calc(100vh - 74px);
    overflow: auto;
  }

  .tour-share-panel {
    padding: 14px;
  }

  .tour-share-tabs {
    gap: 4px;
    margin-bottom: 14px;
  }

  .tour-share-tab {
    height: 36px;
    padding: 0 4px;
    font-size: 12px;
  }

  .tour-share-main {
    flex-direction: column;
    gap: 14px;
  }

  .tour-share-qr-card {
    flex-basis: auto;
    min-height: 0;
    padding: 12px;
  }

  .tour-share-qr {
    width: 190px;
    height: 190px;
  }

  .tour-share-fields {
    gap: 14px;
  }

  .tour-share-embed {
    height: 105px;
  }
}
