.quick-tour {
  width: min(510px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: clamp(16px, 5vw, 24px);
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 60px #001e49a0;
}

.quick-tour::backdrop { background: #001b40bf; }
.tutorial-page { max-width: 510px; background: var(--bg); }

.tour-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  min-height: 44px;
  align-items: center;
  margin: -5px 0 14px;
}

.tour-toolbar .app-back { justify-self: start; }
.tour-skip {
  grid-column: 3;
  min-height: 44px;
  padding: 6px 10px;
  color: var(--blue);
  font-weight: 700;
  border: 0;
  border-radius: 9px;
  background: transparent;
}

.tour-skip:hover { background: var(--tint); }
.tour-step-count { grid-column: 2; color: var(--muted); font-size: .875rem; font-weight: 650; }

.tour-artwork {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.9;
  object-fit: cover;
  margin-bottom: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.tour-copy h2 { font: 750 clamp(1.75rem, 6vw, 2.35rem)/1.12 var(--sans); letter-spacing: -.045em; }
.tour-copy h2:focus { outline: 0; }
.tour-copy p { margin-top: 8px; color: var(--muted); line-height: 1.5; }

.tour-items, .tour-highlight {
  padding: 0 13px;
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}
.tour-items { list-style: none; }
.tour-items li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 11px 0;
}
.tour-items li + li { border-top: 1px solid var(--line); }
.tour-items strong { display: block; color: var(--ink); line-height: 1.24; }
.tour-item-detail { display: block; margin-top: 4px; color: var(--muted); font-size: .875rem; line-height: 1.4; }
.tour-item-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--blue);
  background: var(--tint);
}
.tour-item-icon .dh-icon { width: 22px; height: 22px; }
.tour-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}
.tour-tiles li, .tour-tiles li + li {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  justify-items: center;
  align-items: start;
  gap: 8px;
  padding: 10px 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: center;
  font-size: .875rem;
}
.tour-highlight { padding: 13px; }
.tour-highlight h3 { font: 700 1rem/1.2 var(--sans); }
.tour-highlight p { margin-top: 5px; color: var(--muted); font-size: .875rem; line-height: 1.4; }

.tour-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 17px;
}
.tour-progress span { width: 7px; height: 7px; border-radius: 99px; background: var(--line-strong); }
.tour-progress .tour-progress-current { width: 19px; background: var(--blue); }
.tour-actions { margin-top: 12px; }
.tour-actions .primary { width: 100%; min-height: 50px; }
[data-tour-step="finish"] .tour-actions { margin-top: 16px; }
[data-tour-step="finish"] .tour-actions .primary { min-height: 58px; font-size: 1.075rem; }

@media (max-width: 340px) {
  .tour-tiles strong { overflow-wrap: anywhere; }
}
