/*
 * tour.css: the look of the guided tour (tour.js). One layer over the whole shell: a clear click-catcher, the
 * spotlight (a box whose huge shadow dims everything else) and the card with the text and the buttons.
 * Logical properties and the page direction make it work from right to left; phones get 44px buttons and a card as
 * wide as the screen.
 */
.tour-root {
  position: fixed;
  inset: 0;
  z-index: 5000;
}
.tour-shade {
  position: absolute;
  inset: 0;
  background: transparent;
}
.tour-spot {
  position: absolute;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(10, 24, 32, 0.66);
  outline: 2px solid #61c4bc;
  pointer-events: none;
  transition: top 0.2s, left 0.2s, width 0.2s, height 0.2s;
}
.tour-spot[hidden] {
  display: none;
}
/* No part to point at (the welcome step): dim the page and put the card in the middle. */
.tour-spot[hidden] ~ .tour-card {
  box-shadow: 0 0 0 9999px rgba(10, 24, 32, 0.66), 0 18px 48px rgba(0, 0, 0, 0.35);
}
.tour-card {
  position: absolute;
  width: min(340px, calc(100vw - 24px));
  padding: 18px 18px 14px;
  border: 1px solid #d3dee3;
  border-radius: 14px;
  background: #fff;
  color: #172d3b;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  font-family: inherit;
  text-align: start;
}
.tour-card.tour-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.tour-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tour-text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
}
.tour-count {
  margin-bottom: 10px;
  color: #647585;
  font-size: 12px;
}
.tour-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.tour-buttons button {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid #e2e8ee;
  border-radius: 9px;
  background: #fff;
  color: #345064;
  font: 600 13px inherit;
  cursor: pointer;
}
.tour-buttons button[hidden] {
  display: none;
}
.tour-buttons .tour-next {
  margin-inline-start: auto;
  border-color: #087f8c;
  background: #087f8c;
  color: #fff;
}
.tour-buttons .tour-skip {
  border-color: transparent;
  background: transparent;
  color: #647585;
}
.tour-buttons button:focus-visible {
  outline: 2px solid #61c4bc;
  outline-offset: 2px;
}
html[data-theme="dark"] .tour-card {
  background: #1e303a;
  border-color: #6a8794;
  color: #f2f8f9;
}
html[data-theme="dark"] .tour-count,
html[data-theme="dark"] .tour-buttons .tour-skip {
  color: #a8bec9;
}
html[data-theme="dark"] .tour-buttons button {
  background: #2e4855;
  border-color: #6a8794;
  color: #eaf4f5;
}
html[data-theme="dark"] .tour-buttons .tour-next {
  background: #087f8c;
  border-color: #087f8c;
}
html[data-theme="dark"] .tour-buttons .tour-skip {
  background: transparent;
  border-color: transparent;
}
@media (max-width: 780px) {
  .tour-card {
    width: calc(100vw - 24px);
  }
  .tour-buttons button {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tour-spot {
    transition: none;
  }
}
