.agx-tour { position: fixed; inset: 0; z-index: 160; pointer-events: none; }

.agx-tour__dim {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--canvas) 64%, transparent);
  pointer-events: none;
}
.agx-tour__ring {
  position: fixed;
  border: 1px solid var(--fg);
  border-radius: var(--r-sm);
  pointer-events: none;
}

.agx-tour__card {
  position: fixed;
  width: min(21.5rem, calc(100vw - 32px));
  padding: 18px 20px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: var(--f-sans);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--fg);
  pointer-events: auto;
}
.agx-tour__t {
  margin: 0 0 6px;
  font-family: var(--f-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.012em;
  white-space: nowrap;
}
.agx-tour__d { margin: 0; color: var(--fg-muted); text-wrap: pretty; }
.agx-tour__fig { font-family: var(--f-mono); font-size: 0.94em; font-variant-numeric: tabular-nums; color: var(--fg); }
.agx-tour__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.agx-tour__n {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--fg-subtle);
}
.agx-tour__acts { display: flex; align-items: center; gap: 6px; }
.agx-tour__acts [hidden] { display: none; }

.agx-tour__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  font-family: var(--f-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--fg);
  cursor: pointer;
}
.agx-tour__btn--link {
  padding: 0 8px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
.agx-tour__btn--go { border-color: var(--brand); color: var(--brand); }
@media (hover: hover) {
  .agx-tour__btn--link:hover { text-decoration-thickness: 2px; }
  .agx-tour__btn--go:hover { background: var(--accent-soft); }
}
.agx-tour :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }

.agx-tour__live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.agx-tour.is-set .agx-tour__dim { transition: clip-path 0.32s var(--ease); }
.agx-tour.is-set .agx-tour__ring {
  transition: left 0.32s var(--ease), top 0.32s var(--ease),
              width 0.32s var(--ease), height 0.32s var(--ease);
}
.agx-tour.is-set .agx-tour__card { transition: left 0.32s var(--ease), top 0.32s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .agx-tour.is-set .agx-tour__dim,
  .agx-tour.is-set .agx-tour__ring,
  .agx-tour.is-set .agx-tour__card { transition: none; }
}

@media print {
  .agx-tour { display: none; }
}
