/* Tour contextual da area do aluno. Mantido separado do tema geral do beta. */
.tour-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(24, 18, 18, .5);
  backdrop-filter: blur(1px);
}

.tour-scrim.is-visible {
  display: block;
}

.tour-bubble {
  display: none;
  position: fixed;
  z-index: 80;
  width: min(360px, calc(100vw - 32px));
  padding: 20px;
  color: #fff;
  background: var(--brand-deep, #65171b);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(20, 16, 15, .35);
}

.tour-bubble.is-visible {
  display: block;
}

.tour-bubble:focus {
  outline: none;
}

.tour-bubble::after {
  content: "";
  position: absolute;
  left: calc(var(--tour-arrow-x, 32px) - 9px);
  width: 18px;
  height: 18px;
  background: var(--brand-deep, #65171b);
  transform: rotate(45deg);
}

.tour-bubble[data-placement="bottom"]::after {
  top: -10px;
  bottom: auto;
  border-top: 1px solid rgba(255, 255, 255, .24);
  border-left: 1px solid rgba(255, 255, 255, .24);
  border-right: 0;
  border-bottom: 0;
}

.tour-bubble[data-placement="top"]::after {
  top: auto;
  bottom: -10px;
  border-right: 1px solid rgba(255, 255, 255, .24);
  border-bottom: 1px solid rgba(255, 255, 255, .24);
  border-top: 0;
  border-left: 0;
}

.tour-step {
  display: block;
  margin-bottom: 8px;
  color: #f2c3c5;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tour-bubble strong {
  display: block;
  color: #fff;
  font-family: Poppins, Inter, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.32;
}

.tour-bubble p {
  margin: 8px 0 18px;
  color: rgba(255, 255, 255, .88);
  font-size: .92rem;
  line-height: 1.55;
}

.tour-actions,
.tour-actions > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tour-actions {
  justify-content: space-between;
}

.tour-actions button {
  min-height: 40px;
}

.tour-actions .primary {
  padding: 9px 13px;
  color: var(--brand, #992429);
  background: #fff;
}

.tour-skip,
.tour-back {
  padding: 8px 6px;
  color: rgba(255, 255, 255, .88);
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tour-actions button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.tour-target {
  position: relative !important;
  z-index: 70 !important;
  border-radius: 4px;
  outline: 4px solid #f2c3c5 !important;
  outline-offset: 7px !important;
  box-shadow: 0 0 0 2px rgba(101, 23, 27, .35), 0 12px 32px rgba(20, 16, 15, .24) !important;
  pointer-events: none;
}

@media (max-width: 620px) {
  .tour-scrim {
    background: rgba(24, 18, 18, .58);
    backdrop-filter: none;
  }

  .tour-bubble {
    padding: 18px;
  }

  .tour-actions {
    align-items: flex-end;
  }

  .tour-actions > div {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .tour-skip {
    max-width: 74px;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour-bubble,
  .tour-target {
    scroll-behavior: auto;
    transition: none !important;
  }
}
