html.tour-open { overflow: hidden; }

#workspace-tour {
  position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none;
  padding: 0; margin: 0; border: 0; overflow: hidden; overscroll-behavior: contain;
  color: #182e2a; background: transparent;
}
#workspace-tour::backdrop { background: transparent; }
#tour-spot {
  position: absolute; border-radius: 7px; pointer-events: none;
  box-shadow: 0 0 0 2px #e1f3d8, 0 0 0 150vmax rgb(13 34 29 / .69);
}
#tour-card, #tour-preview {
  position: absolute; margin: 0; background: var(--paper, #fffefa); color: #182e2a;
  border-radius: 12px; border: 1px solid #d5ded6;
}
#tour-card {
  width: min(365px, calc(100% - 24px)); padding: 18px 20px;
  box-shadow: 0 12px 40px rgb(5 22 16 / .21); overflow-y: auto; overscroll-behavior: contain;
}
.tour-meta, .tour-nav { display: flex; align-items: center; gap: 7px; }
.tour-meta { justify-content: space-between; }
#tour-step { font-size: .79rem; font-weight: 650; color: var(--green); }
#tour-skip { min-height: 32px; font-size: .8rem; padding: 4px 7px; margin-right: -6px; }
#tour-title { font-size: 1.23rem; line-height: 1.22; margin: 6px 0 8px; }
#tour-title:focus { outline: none; }
#tour-copy { color: #374d43; line-height: 1.5; font-size: .93rem; }
.tour-nav { flex-wrap: wrap; justify-content: flex-end; margin-top: 16px; }
.tour-nav button { min-height: 38px; font-size: .84rem; padding: 7px 10px; }
#tour-back { margin-right: auto; }
#tour-error { margin-top: 10px; padding: 8px 10px; background: #fff0e8; color: #842c22; border-radius: 6px; font-size: .85rem; }
#tour-close { display: block; margin: 4px 0 0 auto; }
#tour-preview { width: min(360px, calc(100% - 38px)); padding: 14px; }
.tour-preview-label, .tour-preview-mode { display: flex; align-items: center; gap: 10px; font-size: .84rem; font-weight: 650; }
.tour-preview-label { justify-content: space-between; }
.tour-preview-label small { font-size: .73rem; color: var(--quiet); font-weight: 500; }
.tour-preview-input, .tour-preview-mode strong { border: 1px solid #b6c6bb; border-radius: 6px; background: white; }
.tour-preview-input { height: 35px; margin: 6px 0 8px; }
.tour-preview-mode strong { padding: 5px 8px; flex: 1; font-weight: 500; }
.tour-preview-actions { display: flex; justify-content: flex-end; margin-top: 9px; }
@media (max-width: 480px), (max-height: 500px) {
  #tour-card { padding: 12px 15px; }
  #tour-title { font-size: 1.13rem; margin-top: 3px; }
  #tour-copy { font-size: .88rem; }
  .tour-nav { margin-top: 10px; }
}
