.guided-tour {
  --guided-tour-accent: #42c8ff;
  position: fixed;
  inset: 0;
  z-index: 16000;
  color: #182333;
  font-family: inherit;
}

.guided-tour-shade {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.guided-tour-focus {
  position: fixed;
  border: 3px solid var(--guided-tour-accent);
  border-radius: 16px;
  background: transparent;
  box-shadow:
    0 0 0 9999px rgba(19, 27, 39, .62),
    0 0 0 7px color-mix(in srgb, var(--guided-tour-accent) 24%, transparent),
    0 0 34px color-mix(in srgb, var(--guided-tour-accent) 82%, transparent);
  pointer-events: none;
  transition: left .32s ease, top .32s ease, width .32s ease, height .32s ease;
  animation: guided-tour-focus-pulse 1.25s ease-in-out infinite;
}

.guided-tour-arrow {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: visible;
  pointer-events: none;
}

.guided-tour-arrow-line,
.guided-tour-arrow-head {
  fill: none;
  stroke: color-mix(in srgb, var(--guided-tour-accent) 82%, white);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 5px rgba(0, 88, 140, .7));
}

.guided-tour-arrow-line {
  stroke-dasharray: 18 10;
  animation: guided-tour-dash .7s linear infinite;
}

.guided-tour-card {
  position: fixed;
  width: min(390px, calc(100vw - 28px));
  padding: 22px;
  border: 1px solid rgba(154, 180, 205, .85);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.99), rgba(224,233,242,.98));
  box-shadow: 0 24px 70px rgba(5, 17, 32, .36), inset 0 1px 0 #fff;
  pointer-events: auto;
  transition: left .32s ease, top .32s ease;
  animation: guided-tour-card-enter .35s cubic-bezier(.2,.8,.2,1) both;
}

.guided-tour-step {
  display: inline-flex;
  padding: 5px 9px;
  border: 1px solid rgba(44, 139, 193, .24);
  border-radius: 999px;
  background: color-mix(in srgb, var(--guided-tour-accent) 13%, white);
  color: color-mix(in srgb, var(--guided-tour-accent) 72%, #142235);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.guided-tour-heading {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}

.guided-tour-heading > .material-icons-round {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--guided-tour-accent) 80%, white), var(--guided-tour-accent));
  color: #fff;
  font-size: 25px;
  box-shadow: 0 8px 20px rgba(64, 143, 220, .32);
}

.guided-tour-heading h2 {
  margin: 1px 0 6px;
  color: #111c2b;
  font-size: 19px;
  line-height: 1.18;
}

.guided-tour-heading p {
  margin: 0;
  color: #526276;
  font-size: 13px;
  line-height: 1.5;
}

.guided-tour-heading p strong {
  color: #17283d;
  font-weight: 900;
}

.guided-tour-never-option {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 11px;
  align-items: start;
  margin-top: 17px;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--guided-tour-accent) 28%, #cad5df);
  border-radius: 13px;
  background: color-mix(in srgb, var(--guided-tour-accent) 7%, white);
  cursor: pointer;
}

.guided-tour-never-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.guided-tour-checkbox {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid color-mix(in srgb, var(--guided-tour-accent) 58%, #75869a);
  border-radius: 6px;
  background: #fff;
  color: transparent;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.guided-tour-checkbox .material-icons-round { font-size: 16px; font-weight: 900; }
.guided-tour-never-option input:checked + .guided-tour-checkbox {
  background: var(--guided-tour-accent);
  color: #fff;
  transform: scale(1.04);
}
.guided-tour-never-option input:focus-visible + .guided-tour-checkbox {
  outline: 3px solid color-mix(in srgb, var(--guided-tour-accent) 35%, transparent);
  outline-offset: 2px;
}

.guided-tour-never-copy { display: grid; gap: 4px; }
.guided-tour-never-copy strong { color: #172333; font-size: 12px; line-height: 1.35; }
.guided-tour-never-copy small { color: #66778a; font-size: 11px; line-height: 1.45; }

.guided-tour-ok {
  width: 100%;
  min-height: 44px;
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 12px;
  background: linear-gradient(135deg, #172332, #050b13);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(7, 17, 29, .22);
}

.guided-tour-ok:hover { transform: translateY(-1px); }
.guided-tour-ok:focus-visible { outline: 3px solid rgba(77, 199, 255, .55); outline-offset: 2px; }
.guided-tour-ok:disabled { cursor: wait; opacity: .7; }

@keyframes guided-tour-enter { from { opacity: 0; } }
@keyframes guided-tour-card-enter { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes guided-tour-focus-pulse { 50% { border-color: color-mix(in srgb, var(--guided-tour-accent) 68%, white); filter: brightness(1.16) drop-shadow(0 0 8px var(--guided-tour-accent)); } }
@keyframes guided-tour-dash { to { stroke-dashoffset: -28; } }

@media (max-width: 700px) {
  .guided-tour-card { padding: 18px; }
  .guided-tour-heading { grid-template-columns: 42px 1fr; gap: 11px; }
  .guided-tour-heading > .material-icons-round { width: 42px; height: 42px; }
  .guided-tour-heading h2 { font-size: 17px; }
  .guided-tour-heading p { font-size: 12px; }
}

/* Menu aberto pelo botão TUTORIAL da barra superior. */
.topbar-tutorial-menu-wrap { position: relative; display: flex; }
.topbar-tutorial-chevron { font-size: 15px !important; transition: transform .18s ease; }
#btn-tutorials[aria-expanded="true"] .topbar-tutorial-chevron { transform: rotate(180deg); }
.topbar-tutorial-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 15020;
  width: 286px;
  padding: 8px;
  border: 1px solid rgba(139, 158, 180, .48);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.99), rgba(229,236,243,.99));
  box-shadow: 0 20px 50px rgba(18, 31, 48, .26), inset 0 1px 0 #fff;
}
.topbar-tutorial-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 34px;
  width: 12px;
  height: 12px;
  border-left: 1px solid rgba(139,158,180,.48);
  border-top: 1px solid rgba(139,158,180,.48);
  background: #fff;
  transform: rotate(45deg);
}
.topbar-tutorial-menu button {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 11px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #1b2735;
  text-align: left;
  cursor: pointer;
}
.topbar-tutorial-menu button:hover { background: rgba(78, 137, 205, .1); }
.topbar-tutorial-menu button > .material-icons-round {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e5effa;
  color: #397bbb;
  font-size: 20px;
}
.topbar-tutorial-menu button:last-child > .material-icons-round { background: #f3e8ff; color: #8a45cb; }
.topbar-tutorial-menu button > span:last-child { display: grid; gap: 2px; }
.topbar-tutorial-menu strong { font-size: 12px; }
.topbar-tutorial-menu small { color: #68788a; font-size: 10px; }

@media (max-width: 700px) {
  .topbar-tutorial-menu { position: fixed; top: 72px; right: 10px; width: min(286px, calc(100vw - 20px)); }
}

@media (prefers-reduced-motion: reduce) {
  .guided-tour-focus,
  .guided-tour-arrow-line,
  .guided-tour-card,
  .guided-tour-shade { animation: none !important; }
}
