.tour-layer[data-report-preview] {
  width: min(454px, calc(100% - 2 * var(--tour-inset)));
}

.tour-report-preview {
  min-width: 0;
  display: grid;
  gap: 10px;
  margin-block: 10px;
  padding: 11px;
  border: 1px solid #624e72;
  border-radius: 10px;
  background: #1a1124;
}

.tour-report-preview[hidden],
.tour-report-image-status[hidden],
.tour-report-document[hidden] {
  display: none;
}

.tour-report-preview-head,
.tour-report-dialog-head,
.tour-report-dialog-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tour-report-preview-head,
.tour-report-dialog-head {
  justify-content: space-between;
}

.tour-report-preview-head strong {
  min-width: 0;
  color: #f6edf9;
  font-size: .93rem;
  line-height: 1.25;
}

.tour-report-open {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #9fe5d9;
  border-radius: 7px;
  background: #8de2d0;
  color: #101e20;
  font: inherit;
  font-size: .83rem;
  font-weight: 800;
  cursor: pointer;
}

.tour-report-open:hover {
  background: #b1f3e8;
}

.tour-report-thumbnails {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.tour-report-sheet {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #6c547c;
  border-radius: 7px;
  background: #100a18;
  color: #f6edf9;
  font: inherit;
  font-size: .81rem;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
}

.tour-report-sheet:hover {
  border-color: #92ebdb;
  background: #241931;
}

.tour-report-sheet img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 17 / 22;
  object-fit: contain;
}

.tour-report-sheet > :not(img) {
  display: grid;
  place-items: center;
  padding: 7px 5px;
  border-top: 1px solid #624e72;
}

.tour-report-charts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tour-report-charts button {
  min-height: 44px;
  padding: 5px 8px;
  border: 1px solid #6a5278;
  border-radius: 6px;
  background: #271c33;
  color: #eadef2;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}

.tour-report-charts button:hover {
  border-color: #92ebdb;
}

.tour-layer .tour-report-summary:not(.eyebrow) {
  padding: 4px 0 4px 9px;
  border-left: 2px solid #8de2d0;
  color: #e4d9ee;
  font-size: .87rem;
  font-weight: 600;
}

.tour-report-dialog {
  --report-dialog-inset: clamp(10px, 2dvh, 26px);
  box-sizing: border-box;
  position: fixed;
  inset:
    max(var(--report-dialog-inset), env(safe-area-inset-top))
    max(var(--report-dialog-inset), env(safe-area-inset-right))
    max(var(--report-dialog-inset), env(safe-area-inset-bottom))
    max(var(--report-dialog-inset), env(safe-area-inset-left));
  margin: auto;
  width: min(960px, calc(100vw - 2 * var(--report-dialog-inset)));
  max-width: calc(100vw - max(var(--report-dialog-inset), env(safe-area-inset-left)) - max(var(--report-dialog-inset), env(safe-area-inset-right)));
  height: min(1210px, calc(100dvh - 2 * var(--report-dialog-inset)));
  max-height: calc(100dvh - max(var(--report-dialog-inset), env(safe-area-inset-top)) - max(var(--report-dialog-inset), env(safe-area-inset-bottom)));
  padding: 0;
  overflow: hidden;
  border: 1px solid #8d739d;
  border-radius: 12px;
  background: #170f20;
  color: #f6edf9;
}

.tour-report-dialog[open] {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.tour-report-dialog::backdrop {
  background: rgba(6, 3, 10, .83);
}

.tour-report-dialog-head,
.tour-report-dialog-nav {
  min-width: 0;
  padding: 8px 14px;
  border-bottom: 1px solid #5a4569;
}

.tour-report-dialog-title {
  --room-sailor-size: 36px;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.tour-report-dialog-head h2 {
  margin: 0;
  color: #fff8ff;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.tour-report-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tour-report-dialog :is(button, select) {
  min-height: 44px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid #715a84;
  border-radius: 7px;
  background: #241934;
  color: #f6edf9;
  font: inherit;
  font-size: .83rem;
  font-weight: 700;
}

.tour-report-dialog :is(button, select):not(:disabled) {
  cursor: pointer;
}

.tour-report-dialog :is(button, select):not(:disabled):hover {
  border-color: #92ebdb;
}

.tour-report-dialog button:disabled {
  opacity: .5;
}

.tour-report-dialog [data-report-next]:not(:disabled) {
  background: #8de2d0;
  color: #101e20;
}

:is(.tour-report-open, .tour-report-sheet, .tour-report-charts button,
  .tour-report-dialog :is(button, select), .tour-report-zoom):focus-visible {
  outline: 2px solid #a4f8e6;
  outline-offset: 2px;
}

.tour-report-dialog-nav {
  background: #21162b;
}

.tour-report-index {
  flex: 0 1 12.5rem;
  min-width: 0;
  color-scheme: dark;
}

.tour-report-page-count {
  min-width: 0;
  margin-inline-start: auto;
  color: #d4c7df;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}

.tour-report-zoom {
  min-width: 0;
  min-height: 0;
  padding: 8px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #100a18;
  scrollbar-color: #82c9b9 #170f20;
}

.tour-report-zoom:not([data-zoomed]) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tour-report-dialog .tour-report-caption:not(.eyebrow),
.tour-report-dialog .tour-report-image-status:not(.eyebrow) {
  margin: 0;
  padding: 8px 10px;
  color: #e4d9ee;
  font-size: .87rem;
}

.tour-report-dialog .tour-report-caption:not(.eyebrow) {
  width: min(100%, 52rem);
  margin-inline: auto;
  border-inline-start: 2px solid #8de2d0;
  margin-bottom: 8px;
}

.tour-report-document {
  display: block;
  width: 100%;
  height: auto;
}

.tour-report-zoom:not([data-zoomed]) .tour-report-document {
  flex: 1;
  min-height: 0;
  height: 0;
  object-fit: contain;
  object-position: center top;
}

.tour-report-zoom[data-zoomed] .tour-report-document {
  width: max(145%, 765px);
  max-width: none;
}

@media (max-width: 540px) {
  .tour-layer[data-report-preview] {
    width: auto;
    max-height: min(81dvh, calc(100dvh - 48px));
  }

  .tour-report-dialog-head,
  .tour-report-dialog-nav {
    padding: 7px 9px;
  }

  .tour-report-index {
    flex: 1 1 8rem;
  }

  .tour-report-page-count {
    margin-inline-start: 0;
  }
}

@media (orientation: landscape) and (max-height: 410px) {
  .tour-layer[data-report-preview] {
    max-height: calc(100dvh - 54px);
  }

  .tour-layer[data-report-preview] .tour-step-heading {
    --tour-guide-size: 52px;
  }

  .tour-report-dialog-head,
  .tour-report-dialog-nav {
    padding-block: 4px;
  }
}

@media (orientation: landscape) and (max-height: 225px) {
  .tour-layer[data-report-preview] {
    max-height: calc(100dvh - 24px);
  }
}

@media (min-width: 2560px) and (min-height: 1100px) {
  .tour-layer[data-report-preview][data-fashion-tour] {
    --tour-wide-width: 454px;
  }
}
