.tour-dialog, .tour-help {
  box-sizing: border-box;
  color: var(--ink);
  background: var(--surface, var(--card));
  border: 1px solid var(--line);
  border-radius: 18px;
}
.tour-dialog {
  width: min(54rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  margin: auto;
  overflow: auto;
  box-shadow: 0 18px 80px #07141955;
}
.tour-dialog::backdrop { background: rgb(6 22 29 / 72%); }
.tour-heading, .tour-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem clamp(.85rem, 3vw, 1.5rem);
}
.tour-heading h2 { font: 700 clamp(1.25rem, 3vw, 1.6rem)/1.16 var(--f-display, 'Segoe UI', sans-serif); margin: 0; }
.tour-heading p, .tour-error { margin: .25rem 0 0; color: var(--ink-2, var(--muted)); font-size: .9375rem; }
.tour-close, .tour-sound, .tour-error button {
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: .65rem;
  padding: .4rem .8rem;
  min-height: 44px;
}
.tour-close { width: 44px; flex: none; padding: 0; font-size: 1.6rem; line-height: 1; }
.tour-video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #08161c; }
.tour-dialog .tour-video { max-height: 62dvh; }
.tour-help { width: min(100%, 54rem); overflow: hidden; }
.tour-options { flex-wrap: wrap; }
.tour-options label { display: inline-flex; align-items: center; min-height: 44px; gap: .6rem; font-size: 1rem; font-weight: 550; cursor: pointer; }
.tour-options input { appearance: auto; display: inline-block; width: 1.15rem; height: 1.15rem; padding: 0; margin: 0; accent-color: var(--ink); }
.tour-error { padding-inline: 1rem; }
.tour-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: .4rem 1rem; font-size: .9rem; }
@media (max-width: 440px) {
  .nav.tabs { padding-inline: max(3px, env(safe-area-inset-left)) max(3px, env(safe-area-inset-right)); justify-content: flex-start; overflow-x: auto; }
  .nav.tabs a { padding-inline: 2px; min-width: 40px; }
}
