.bamsi-guide-spotlight {
  position: fixed;
  inset: 0;
  z-index: 1800;
  pointer-events: none;
}
/* Dim first, then reveal the targets and trace their contours once. */
.bamsi-guide-contours { opacity: 0; }
.bamsi-guide-reveal .bamsi-guide-dim {
  animation: bamsi-guide-fade-in 480ms ease-in-out both;
}
.bamsi-guide-reveal .bamsi-guide-holes,
.bamsi-guide-reveal .bamsi-guide-greeting {
  animation: bamsi-guide-fade-in 240ms ease-out 480ms both;
}
.bamsi-guide-reveal .bamsi-guide-contours {
  animation: bamsi-guide-contour-pulse 900ms ease-in-out 480ms both;
}
@keyframes bamsi-guide-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes bamsi-guide-contour-pulse {
  0%, 100% { opacity: 0; }
  45% { opacity: 0.92; }
}
/* Show only the greeting's letters above the dimmed surface. */
.bamsi-guide-greeting {
  position: absolute;
  color: #fff;
}
body:has(.bamsi-guide-spotlight:not([hidden]) .bamsi-guide-greeting:not([hidden]))
  .bamsi-dashboard-grid .bamsi-dashboard-greeting-title { color: transparent; }
body:has(.bamsi-guide-reveal:not([hidden]) .bamsi-guide-greeting:not([hidden]))
  .bamsi-dashboard-grid .bamsi-dashboard-greeting-title {
  animation: bamsi-guide-greeting-handoff 720ms steps(1, end) both;
}
@keyframes bamsi-guide-greeting-handoff { from { color: #f5f5f5; } to { color: transparent; } }
@media (prefers-reduced-motion: reduce) {
  .bamsi-guide-reveal .bamsi-guide-dim,
  .bamsi-guide-reveal .bamsi-guide-holes,
  .bamsi-guide-reveal .bamsi-guide-greeting,
  .bamsi-guide-reveal .bamsi-guide-contours,
  body:has(.bamsi-guide-reveal:not([hidden]) .bamsi-guide-greeting:not([hidden]))
    .bamsi-dashboard-grid .bamsi-dashboard-greeting-title { animation: none; }
}
.bamsi-guide-spotlight[hidden], .bamsi-guide-notice[hidden],
.bamsi-guide-kb-actions[hidden], .bamsi-mc-frame[data-onboarding-help] .bamsi-mc-header button[hidden] {
  display: none !important;
}
.bamsi-guide-notice {
  --bamsi-guide-notice-bg: rgba(0, 0, 0, .82);
  position: fixed;
  z-index: 1810;
  box-sizing: border-box;
  width: max-content;
  max-width: min(260px, calc(100vw - 24px));
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bamsi-guide-notice-bg);
  color: #b5b7bf;
  box-shadow: 0 6px 18px #0004;
  font: 600 14px/1.4 system-ui;
  pointer-events: none;
}
.bamsi-guide-notice::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 7px;
  background: var(--bamsi-guide-notice-bg);
}
.bamsi-guide-notice:is([data-side="top"], [data-side="bottom"])::after {
  left: var(--bamsi-guide-arrow);
  transform: translateX(-50%);
}
.bamsi-guide-notice[data-side="top"]::after {
  top: 100%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.bamsi-guide-notice[data-side="bottom"]::after {
  bottom: 100%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.bamsi-guide-notice:is([data-side="left"], [data-side="right"])::after {
  top: var(--bamsi-guide-arrow);
  width: 7px;
  height: 12px;
  transform: translateY(-50%);
}
.bamsi-guide-notice[data-side="left"]::after {
  left: 100%;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.bamsi-guide-notice[data-side="right"]::after {
  right: 100%;
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
}
.bamsi-guide-kb-actions { display: flex; align-items: center; justify-content: flex-start; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.bamsi-guide-kb-actions .bamsi-kb-primary { width: auto; }
.bamsi-guide-kb-step { margin: 0 0 16px; color: #8dddb0; font-size: 13px; font-weight: 700; }
body[data-bamsi-guide="knowledge"]:has(.bamsi-kb-overlay:not([hidden])) .bamsi-mc-launcher,
body[data-bamsi-guide="knowledge"]:has(.bamsi-kb-overlay:not([hidden])) .bamsi-mc-frame {
  z-index: 980 !important;
}

.bamsi-guide-notice.bamsi-copilot-step-notice {
  pointer-events: auto;
  white-space: normal;
}
.bamsi-copilot-step-notice small { display: block; font-size: 11px; }
.bamsi-copilot-step-notice[data-copilot-step="3"] [data-copilot-expiry] {
  padding-block: 8px;
  color: #66d4ff;
}
.bamsi-copilot-step-notice strong { display: block; margin-top: 4px; }
.bamsi-copilot-step-notice p { margin: 8px 0; font-size: 12px; font-weight: 400; }
.bamsi-copilot-step-notice .bamsi-copilot-continue { margin-block: 8px; }
.bamsi-copilot-step-notice[data-copilot-step="2"] .bamsi-copilot-continue { margin-top: 16px; }
body:not(.bamsi-dashboard-live) .bamsi-copilot-step-notice,
body.bamsi-research-modal-open .bamsi-copilot-step-notice { display: none; }

.bamsi-original-research-card.bamsi-copilot-unlock {
  width: 292.5px;
  max-width: calc(100vw - 32px);
  min-height: 0;
  padding: 15px 16.5px;
  border-radius: 21px;
  font-family: Arial, sans-serif;
}
.bamsi-copilot-unlock:focus { outline: none; }
.bamsi-copilot-unlock[open] { animation: bamsi-unlock-in .5s ease both; }
.bamsi-copilot-unlock::backdrop {
  background: rgba(8,8,12,.76);
  animation: bamsi-research-dim-in .5s ease both;
}
.bamsi-copilot-unlock h2 { margin: 0; font: 700 19px/23px Arial, sans-serif; letter-spacing: -.025em; }
.bamsi-copilot-unlock p { margin: 6px 0 13.5px; color: #d6d5df; font: 400 12px/16px Arial, sans-serif; }
.bamsi-copilot-unlock-track {
  position: relative;
  height: 25.5px;
  box-sizing: border-box;
  border: 1px solid #505257;
  border-radius: 999px;
  background: #3a3c40;
}
.bamsi-copilot-unlock .bamsi-copilot-unlock-track span {
  background:
    radial-gradient(ellipse at top left, #f47d5438, transparent 54%),
    radial-gradient(ellipse at bottom right, #6589ff42, transparent 54%),
    #0c0d12;
  box-shadow:
    -3px -2px 11px #f179535c,
    3px 2px 12px #6388ff66;
}
.bamsi-copilot-unlock .bamsi-copilot-unlock-track span::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(125deg, #ffae8b, #87536f 36%, #4d5485 66%, #9fbaff);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.bamsi-copilot-unlock-track span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
}
.bamsi-copilot-unlock[open] .bamsi-copilot-unlock-track span {
  animation: bamsi-unlock-fill 1.25s cubic-bezier(.22,1,.36,1) 220ms forwards;
}
.bamsi-copilot-unlock-success {
  position: absolute;
  right: 10px;
  top: 50%;
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transform: translateY(-50%);
}
.bamsi-copilot-unlock.is-unlocked .bamsi-copilot-unlock-track {
  animation: bamsi-research-arrival-glow 850ms ease-out both;
}
.bamsi-copilot-unlock.is-unlocked .bamsi-copilot-unlock-success {
  animation: bamsi-unlock-dim 380ms ease-out both;
}
button.bamsi-copilot-continue {
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  background: #25262c;
  color: #fff;
  box-shadow: 0 0 12px rgba(218, 223, 245, .16);
  font: 600 12px/1.25 Arial, sans-serif;
  cursor: pointer;
}
button.bamsi-copilot-continue:hover { filter: brightness(1.1); }
button.bamsi-copilot-continue:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.bamsi-copilot-unlock button {
  position: relative;
  margin-top: 13.5px;
  animation: bamsi-unlock-dim 180ms ease-out both;
}
.bamsi-guide-notice.bc-priority-notice > small { display: block; margin-bottom: 4px; font-size: 11px; }
.bc-priority-tour-description { margin: 5px 0 0; padding-bottom: 8px; font-size: 12px; font-weight: 400; }
.bc-priority-notice .bamsi-copilot-continue { margin-block: 8px; }
@keyframes bamsi-unlock-dim { from { opacity: 0; } to { opacity: 1; } }
@keyframes bamsi-unlock-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bamsi-unlock-fill { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .bamsi-copilot-unlock[open],
  .bamsi-copilot-unlock::backdrop,
  .bamsi-copilot-unlock[open] .bamsi-copilot-unlock-track span,
  .bamsi-copilot-unlock.is-unlocked .bamsi-copilot-unlock-track,
  .bamsi-copilot-unlock.is-unlocked .bamsi-copilot-unlock-success,
  .bamsi-copilot-unlock button { animation-duration: 1ms; animation-delay: 0s; }
}
