.workflow-tour {
  --workflow-tour-accent: #747870;
  --workflow-tour-soft: #fffef9;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.workflow-tour[hidden] {
  display: none;
}

.workflow-tour::backdrop {
  background: transparent;
}

.workflow-tour:not(.workflow-tour-comparison) .workflow-tour-ring {
  position: fixed;
  box-sizing: border-box;
  border-style: solid;
  border-color: var(--workflow-tour-accent);
  border-width: 1px;
  border-radius: 8px;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}

.workflow-tour:not(.workflow-tour-comparison) .workflow-tour-ring::before,
.workflow-tour:not(.workflow-tour-comparison) .workflow-tour-ring::after {
  content: none;
}

.workflow-tour:not(.workflow-tour-comparison) .workflow-tour-bubble {
  position: fixed;
  box-sizing: border-box;
  width: min(340px, calc(100vw - 28px));
  padding: 16px 17px 15px;
  border: 1px solid #dddcd5;
  border-radius: 10px;
  outline: none;
  background: var(--workflow-tour-soft);
  color: #2f241f;
  box-shadow: 0 8px 28px rgba(40, 42, 36, 0.14);
  pointer-events: auto;
}

.workflow-tour:not(.workflow-tour-comparison) .workflow-tour-bubble::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--workflow-tour-soft);
  border: solid rgba(123, 58, 34, 0.26);
  transform: rotate(45deg);
}

.workflow-tour:not(.workflow-tour-comparison)[data-placement="right"] .workflow-tour-bubble::before {
  left: -8px;
  top: 28px;
  border-width: 0 0 1px 1px;
}

.workflow-tour:not(.workflow-tour-comparison)[data-placement="left"] .workflow-tour-bubble::before {
  right: -8px;
  top: 28px;
  border-width: 1px 1px 0 0;
}

.workflow-tour:not(.workflow-tour-comparison)[data-placement="bottom"] .workflow-tour-bubble::before {
  top: -8px;
  left: 28px;
  border-width: 1px 0 0 1px;
}

.workflow-tour:not(.workflow-tour-comparison)[data-placement="top"] .workflow-tour-bubble::before {
  bottom: -8px;
  left: 28px;
  border-width: 0 1px 1px 0;
}

.workflow-tour:not(.workflow-tour-comparison) .workflow-tour-bubble > header,
.workflow-tour:not(.workflow-tour-comparison) .workflow-tour-bubble > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workflow-tour:not(.workflow-tour-comparison) .workflow-tour-bubble > header span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--workflow-tour-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.workflow-tour:not(.workflow-tour-comparison) .workflow-tour-bubble button {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(93, 57, 42, 0.26);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.66);
  color: #4a3329;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.workflow-tour:not(.workflow-tour-comparison) .workflow-tour-bubble > header button {
  min-height: auto;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: #754a39;
}

.workflow-tour:not(.workflow-tour-comparison) .workflow-tour-bubble h3 {
  margin: 15px 0 7px;
  font-size: 18px;
  line-height: 1.35;
}

.workflow-tour:not(.workflow-tour-comparison) .workflow-tour-bubble p {
  margin: 0;
  color: #59443b;
  font-size: 14px;
  line-height: 1.68;
}

.workflow-tour:not(.workflow-tour-comparison) .workflow-tour-bubble small {
  display: block;
  margin-top: 9px;
  color: #8a4b35;
  font-size: 12px;
  line-height: 1.5;
}

.workflow-tour:not(.workflow-tour-comparison) .workflow-tour-bubble small[hidden],
.workflow-tour:not(.workflow-tour-comparison) .workflow-tour-bubble button[hidden] {
  display: none;
}

.workflow-tour:not(.workflow-tour-comparison) .workflow-tour-bubble > footer {
  justify-content: flex-end;
  margin-top: 15px;
}

.workflow-tour:not(.workflow-tour-comparison) .workflow-tour-bubble > footer [data-workflow-tour-next] {
  border-color: var(--workflow-tour-accent);
  background: var(--workflow-tour-accent);
  color: #fff;
}

.workflow-tour:not(.workflow-tour-comparison) .workflow-tour-bubble button:hover {
  transform: translateY(-1px);
}

.workflow-tour:not(.workflow-tour-comparison) .workflow-tour-bubble button:focus-visible {
  outline: 3px solid rgba(180, 92, 62, 0.25);
  outline-offset: 2px;
}

@keyframes workflow-tour-ring-in {
  from { opacity: 0; transform: scale(0.96) rotate(-1.2deg); }
  to { opacity: 1; transform: scale(1) rotate(-0.8deg); }
}

@keyframes workflow-tour-bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.workflow-tour:not(.workflow-tour-comparison).is-step-entering .workflow-tour-ring {
  animation: workflow-tour-ring-in 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.workflow-tour:not(.workflow-tour-comparison).is-step-entering .workflow-tour-bubble {
  animation: workflow-tour-bubble-in 190ms 45ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .workflow-tour:not(.workflow-tour-comparison).is-step-entering .workflow-tour-ring,
  .workflow-tour:not(.workflow-tour-comparison).is-step-entering .workflow-tour-bubble {
    animation: none;
  }
}

/* Shared case-comparison skin; typography, ring and buttons come from review.css. */
.workflow-tour-comparison .comparison-tour-ring,
.workflow-tour-comparison .comparison-tour-bubble { position: fixed; }
.workflow-tour-comparison .comparison-tour-bubble {
  width: min(340px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
}
.workflow-tour-comparison [data-workflow-tour-hint] { display: block; margin-top: 8px; color: #6a4d40; font-size: 12px; line-height: 1.6; }
.workflow-tour-comparison [data-workflow-tour-hint][hidden] { display: none; }
.workflow-tour-comparison[data-placement="right"] .comparison-tour-bubble::before { left: -8px; right: auto; top: var(--workflow-tail-y, 28px); }
.workflow-tour-comparison[data-placement="left"] .comparison-tour-bubble::before { right: -8px; left: auto; top: var(--workflow-tail-y, 28px); }
.workflow-tour-comparison[data-placement="bottom"] .comparison-tour-bubble::before { top: -8px; left: var(--workflow-tail-x, 28px); }
.workflow-tour-comparison[data-placement="top"] .comparison-tour-bubble::before { top: auto; bottom: -8px; left: var(--workflow-tail-x, 28px); }
@media (prefers-reduced-motion: reduce) {
  .workflow-tour-comparison.is-step-entering .comparison-tour-ring,
  .workflow-tour-comparison.is-step-entering .comparison-tour-bubble { animation: none; }
}
