/* An isolated top-layer tour; all names are scoped to Anchor's guide. */
dialog.anchor-guide {
  position: fixed;
  inset: 0;
  display: none;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  box-shadow: none;
  color: #173c3d;
  pointer-events: none;
  z-index: 1000;
}
dialog.anchor-guide[open] {
  display: block;
}
dialog.anchor-guide::backdrop {
  background: transparent;
  backdrop-filter: none;
}
.anchor-guide-welcome-shade {
  position: absolute;
  inset: 0;
  background: #10393294;
  backdrop-filter: blur(3px);
}
.anchor-guide-spotlight {
  position: fixed;
  border: 3px solid #f5cf75;
  border-radius: 12px;
  box-shadow:
    0 0 0 9999px #1039329c,
    0 0 0 7px #fff3c920;
  pointer-events: none;
  transition:
    top 0.18s,
    left 0.18s,
    width 0.18s,
    height 0.18s;
}
.anchor-guide-card {
  position: fixed;
  box-sizing: border-box;
  width: min(440px, calc(100vw - 24px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 30px;
  border: 1px solid #e4e8d8;
  border-radius: 19px;
  background: #fffdf6;
  box-shadow: 0 18px 70px #062c355c;
  pointer-events: auto;
  font:
    14px/1.65 'Segoe UI',
    sans-serif;
}
.anchor-guide-card h2 {
  margin: 14px 24px 14px 0;
  font-size: 26px;
  line-height: 1.22;
  font-weight: 650;
  letter-spacing: -0.8px;
  color: #173c3d;
}
.anchor-guide-card p {
  margin: 0;
  color: #536d60;
  font-size: 14px;
  line-height: 1.65;
}
.anchor-guide-card .anchor-guide-eyebrow {
  color: #658151;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  margin: 0 24px 14px 0;
}
.anchor-guide-close {
  position: absolute;
  right: 15px;
  top: 13px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #dfe5d4;
  border-radius: 50%;
  background: transparent;
  color: #59745f;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.anchor-guide-close:hover {
  background: #edf2e5;
}
.anchor-guide-progress {
  display: flex;
  gap: 5px;
  margin: 0 0 22px;
}
.anchor-guide-progress span {
  height: 4px;
  border-radius: 9px;
  background: #e2e9d8;
  flex: 1;
}
.anchor-guide-progress span.is-reached {
  background: #3c755d;
}
.anchor-guide-tip {
  display: flex;
  gap: 11px;
  margin-top: 23px;
  padding: 13px 15px;
  background: #edf3e6;
  border-radius: 10px;
}
.anchor-guide-tip > span {
  flex: 0 0 21px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-top: 2px;
  border-radius: 50%;
  background: #d8e8c7;
  color: #38684c;
  font-size: 12px;
}
.anchor-guide-tip p {
  font-size: 12px;
  color: #547347;
  line-height: 1.55;
}
.anchor-guide-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 25px;
}
.anchor-guide-actions button {
  min-height: 43px;
  border-radius: 9px;
  font:
    600 13px 'Segoe UI',
    sans-serif;
  cursor: pointer;
}
.anchor-guide-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 11px 19px;
  border: 1px solid #e1b75b;
  background: #f1cc77;
  color: #193e31;
  box-shadow: 0 2px 0 #cea55633;
}
.anchor-guide-primary:hover {
  background: #f7d791;
}
.anchor-guide-secondary {
  padding: 9px 0;
  border: 0;
  background: none;
  color: #58724f;
}
.anchor-guide-secondary:hover {
  text-decoration: underline;
}
.anchor-guide-card button:focus-visible {
  outline: 3px solid #337957;
  outline-offset: 4px;
}
.anchor-guide-welcome-card {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, calc(100vw - 24px));
  padding: 33px;
}
.anchor-guide-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 30px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.8px;
}
.anchor-guide-brand img {
  width: 34px;
  height: 34px;
}
.anchor-guide-preview {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 0;
  margin: 24px 0;
  color: #365941;
  font-size: 14px;
}
.anchor-guide-preview li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.anchor-guide-preview span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 27px;
  height: 27px;
  border: 1px solid #d4dfc8;
  border-radius: 8px;
  background: #edf3e6;
  font-size: 11px;
  font-weight: 700;
  color: #507446;
}
.anchor-guide-card .anchor-guide-note {
  font-size: 12px;
  color: #72836a;
  line-height: 1.6;
}
@media (max-width: 700px) {
  .anchor-guide-card {
    padding: 23px;
    max-height: calc(100dvh - 110px);
    border-radius: 16px;
  }
  .anchor-guide-card h2 {
    font-size: 23px;
    line-height: 1.25;
    margin-top: 11px;
  }
  .anchor-guide-card p {
    font-size: 13px;
  }
  .anchor-guide-tip {
    margin-top: 18px;
    padding: 12px;
  }
  .anchor-guide-tip p {
    font-size: 12px;
  }
  .anchor-guide-actions {
    margin-top: 22px;
    gap: 10px;
  }
  .anchor-guide-actions button {
    font-size: 12px;
  }
  .anchor-guide-primary {
    padding: 11px 15px;
    gap: 12px;
  }
  .anchor-guide-welcome-card {
    max-height: calc(100dvh - 32px);
    padding: 27px;
  }
  .anchor-guide-brand {
    margin-bottom: 25px;
  }
  .anchor-guide-preview {
    font-size: 13px;
  }
  .anchor-guide-card .anchor-guide-eyebrow {
    font-size: 9px;
    letter-spacing: 1.2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .anchor-guide-spotlight {
    transition: none;
  }
}
@media print {
  dialog.anchor-guide {
    display: none !important;
  }
}

/* The next-action cue is nonmodal: the real page controls remain available. */
.anchor-next-step {
  position: fixed;
  z-index: 80;
  box-sizing: border-box;
  width: min(310px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 16px 18px;
  border: 1px solid #d5dfd5;
  border-left: 4px solid #ebc377;
  border-radius: 13px;
  background: #fffdf6;
  color: #173c3d;
  box-shadow: 0 8px 30px #173c3d24;
  font:
    14px/1.5 'Segoe UI',
    sans-serif;
}
.anchor-next-step[hidden] {
  display: none;
}
.anchor-next-step-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.anchor-next-step-eyebrow {
  color: #658151;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.anchor-next-step-dismiss {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  margin: -4px -6px -4px 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #59745f;
  font:
    22px/1 'Segoe UI',
    sans-serif;
  cursor: pointer;
}
.anchor-next-step-dismiss:hover {
  background: #edf2e5;
}
.anchor-next-step-title {
  margin: 9px 0 4px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}
.anchor-next-step-description {
  margin: 6px 0 0;
  color: #536d60;
  font-size: 12px;
}
.anchor-next-step-continue {
  min-height: 36px;
  margin-top: 12px;
  padding: 7px 12px;
  border: 1px solid #cba963;
  border-radius: 8px;
  background: #f3d692;
  color: #193e31;
  font:
    600 12px/1.4 'Segoe UI',
    sans-serif;
  cursor: pointer;
}
.anchor-next-step button:focus-visible {
  outline: 3px solid #337957;
  outline-offset: 3px;
}
.anchor-next-action-target {
  outline: 3px solid #d6a746 !important;
  outline-offset: 4px;
  animation: anchor-next-action-pulse 2.2s ease-out 3;
}
@keyframes anchor-next-action-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 #d6a74600;
  }
  45% {
    box-shadow: 0 0 0 10px #d6a74630;
  }
}
.anchor-next-step-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .anchor-next-action-target {
    animation: none;
  }
}
@media print {
  .anchor-next-step,
  .anchor-next-step-status {
    display: none !important;
  }
  .anchor-next-action-target {
    outline: none !important;
    animation: none;
  }
}
