/* Place the replay spotlight after the mobile sidebar is fully visible. */
#sidebar.product-tour-sidebar { transition: none; }

/* Guided tour uses the native top layer, above menus and sticky headers. */
.product-tour {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  overflow: hidden;
  font-family: var(--font-sans);
}

.product-tour::backdrop { background: transparent; }
.product-tour--centered::backdrop { background: rgb(9 12 22 / 56%); }

.product-tour__spotlight {
  position: fixed;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 9999px rgb(9 12 22 / 56%);
  pointer-events: none;
}

.product-tour__card {
  position: fixed;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-xl);
}

.product-tour__header,
.product-tour__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-tour__header { margin-bottom: 14px; }
.product-tour__progress {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.product-tour__skip {
  padding: 6px 0 6px 8px;
  border: 0;
  background: transparent;
  color: var(--color-text-secondary);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}
.product-tour__skip:hover { color: var(--color-text); }
.product-tour__title { font-size: 1.0625rem; line-height: 1.4; margin-bottom: 8px; }
.product-tour__copy { font-size: 0.875rem; line-height: 1.65; color: var(--color-text); }
.product-tour__hint { margin-top: 12px; font-size: 0.75rem; line-height: 1.6; color: var(--color-text-secondary); }
.product-tour__footer { margin-top: 20px; }
.product-tour__footer .btn { min-height: 40px; min-width: 76px; }
.product-tour__contact { display: inline-block; margin-top: 12px; font-size: 0.875rem; color: var(--color-text); text-decoration: underline; text-underline-offset: 3px; }
.product-tour :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

.product-tour-example {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 520px;
  margin: 0 0 24px;
  padding: 20px;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.product-tour-example strong { display: block; font-size: 0.875rem; margin: 6px 0; }
.product-tour-example__label { color: var(--color-text-secondary); font-size: 0.75rem; }
.product-tour-example__status { color: var(--color-success); font-size: 0.75rem; }
.product-tour-example__actions { display: grid; justify-items: end; gap: 8px; }
#product-tour-example-download { padding: 8px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 0.8125rem; }

@media (max-width: 640px) {
  .product-tour__card { padding: 16px; }
  .product-tour__skip { min-height: 40px; }
  .product-tour__footer .btn { min-height: 44px; }
}
