#viewer-tour-help {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #a6c649;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
#viewer-tour {
  position: fixed;
  z-index: 10020;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  padding: 20px;
  border: 1px solid #687c40;
  border-radius: 14px;
  background: #101a20;
  color: #eef4f6;
  box-shadow: 0 16px 48px #0009;
  font:
    14px/1.5 Sora,
    sans-serif;
}
.viewer-tour-content {
  min-height: 0;
  overflow-y: auto;
}
#viewer-tour[hidden],
#viewer-tour-spotlight[hidden] {
  display: none;
}
#viewer-tour[data-welcome='true'] {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
#viewer-tour:not([data-welcome='true']) {
  transform: none;
}
#viewer-tour h2 {
  font-size: 20px;
  line-height: 1.3;
  margin: 6px 0 12px;
}
#viewer-tour p {
  margin: 0 0 16px;
}
#viewer-tour-counter {
  color: #bfef57;
  font-size: 12px;
}
#viewer-tour-language-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
#viewer-tour-language-label[hidden] {
  display: none;
}
#viewer-tour-language {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
#viewer-tour button {
  font: inherit;
  min-height: 44px;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}
.viewer-tour-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
}
#viewer-tour button {
  border: 1px solid #65727a;
  color: #fff;
  background: transparent;
}
#viewer-tour-language button {
  padding: 8px 4px;
}
#viewer-tour-language button[aria-pressed='true'] {
  background: #c1fc3e;
  color: #101a20;
  border-color: #c1fc3e;
  font-weight: 700;
}
#viewer-tour-next {
  margin-left: auto;
  background: #c1fc3e !important;
  color: #101a20 !important;
  border-color: #c1fc3e !important;
  font-weight: 700 !important;
}
#viewer-tour button:disabled {
  opacity: 0.5;
  cursor: wait;
}
#viewer-tour-status {
  font-size: 12px;
  color: #d1dea8;
}
#viewer-tour :focus-visible,
#viewer-tour-help:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
#viewer-tour-spotlight {
  position: fixed;
  z-index: 10010;
  pointer-events: none;
  box-sizing: border-box;
  border: 4px solid #c1fc3e;
  border-radius: 6px;
  box-shadow:
    0 0 0 9999px #000b,
    0 0 18px 3px #c1fc3e99,
    inset 0 0 12px #c1fc3e66;
}
#viewer-tour-spotlight::after {
  content: '';
  position: absolute;
  width: 56px;
  height: 36px;
  background: #c1fc3e;
  clip-path: polygon(0 32%, 55% 32%, 55% 0, 100% 50%, 55% 100%, 55% 68%, 0 68%);
  filter: drop-shadow(0 2px 2px #000);
}
#viewer-tour-spotlight[data-side='left']::after {
  left: -68px;
  top: 50%;
  transform: translateY(-50%);
}
#viewer-tour-spotlight[data-side='right']::after {
  right: -68px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
}
#viewer-tour-spotlight[data-side='below']::after {
  top: calc(100% + 22px);
  left: 50%;
  transform: translateX(-50%) rotate(-90deg);
}
#viewer-tour-spotlight[data-side='above']::after {
  bottom: calc(100% + 22px);
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
}
#viewer-tour-spotlight[data-empty='true']::after {
  display: none;
}
#viewer-tour-spotlight[data-empty='true'] {
  border: 0;
  border-radius: 0;
  background: #000b;
  box-shadow: none;
}
@media (max-width: 680px) {
  html[data-viewer-mode='sample'] #header #picker-group {
    flex: 1 1 100%;
  }
  #viewer-tour {
    width: calc(100vw - 32px);
    max-height: min(52dvh, 440px);
    padding: 14px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    font-size: 13px;
  }
  #viewer-tour h2 {
    font-size: 18px;
    margin: 4px 0 8px;
  }
  #viewer-tour p {
    margin-bottom: 10px;
  }
  #viewer-tour-language-label {
    margin-bottom: 10px;
  }
  #viewer-tour button {
    padding: 8px 10px;
  }
}
