.assistant-guide-trigger {
  min-height: 36px;
  white-space: nowrap;
}

/* The tour is intentionally non-modal: the page remains readable and usable. */
.assistant-guide-open { overflow: visible; }

.assistant-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background: transparent;
}

.assistant-guide-focus {
  position: relative !important;
  z-index: 91 !important;
  border-radius: 14px !important;
  outline: 3px solid rgba(86, 184, 137, .92) !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .92), 0 8px 24px rgba(31, 110, 76, .12) !important;
}

.assistant-guide-popover {
  --assistant-guide-arrow-offset: 50%;
  position: fixed;
  z-index: 100;
  width: min(360px, calc(100vw - 32px));
  border: 1px solid #cfe5d8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(20, 57, 40, .18), 0 4px 12px rgba(20, 57, 40, .08);
  color: #1d3328;
  animation: assistant-guide-popover-enter .18s ease-out;
}

.assistant-guide-arrow {
  position: absolute;
  z-index: -1;
  width: 14px;
  height: 14px;
  border: 1px solid #cfe5d8;
  background: #fff;
  transform: rotate(45deg);
}

.assistant-guide-popover[data-placement='top'] .assistant-guide-arrow {
  bottom: -8px;
  left: calc(var(--assistant-guide-arrow-offset) - 7px);
  border-top: 0;
  border-left: 0;
}

.assistant-guide-popover[data-placement='right'] .assistant-guide-arrow {
  top: calc(var(--assistant-guide-arrow-offset) - 7px);
  left: -8px;
  border-top: 0;
  border-right: 0;
}

.assistant-guide-popover[data-placement='bottom'] .assistant-guide-arrow {
  top: -8px;
  left: calc(var(--assistant-guide-arrow-offset) - 7px);
  border-right: 0;
  border-bottom: 0;
}

.assistant-guide-popover[data-placement='left'] .assistant-guide-arrow {
  top: calc(var(--assistant-guide-arrow-offset) - 7px);
  right: -8px;
  border-bottom: 0;
  border-left: 0;
}

.assistant-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 0;
}

.assistant-guide-header > div { display: flex; align-items: center; gap: 9px; }
.assistant-guide-kicker { color: #2d795a; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.assistant-guide-count { padding: 4px 8px; border-radius: 999px; color: #5f806f; background: #e8f5ed; font-size: 11px; font-weight: 700; }
.assistant-guide-close { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; color: #6d8577; background: transparent; font-size: 22px; font-weight: 400; line-height: 1; }
.assistant-guide-close:hover { color: #244a37; background: #eaf6ee; }

.assistant-guide-progress {
  display: flex;
  gap: 4px;
  padding: 12px 16px 0;
}

.assistant-guide-progress-segment {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: #e5eee8;
}

.assistant-guide-progress-segment.done,
.assistant-guide-progress-segment.active { background: #58af80; }

.assistant-guide-content { padding: 15px 16px 16px; }
.assistant-guide-copy { max-width: 328px; }
.assistant-guide-eyebrow { display: block; margin-bottom: 7px; color: #579474; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.assistant-guide-copy h2 { margin: 0 0 8px; color: #193d2e; font-size: 20px; letter-spacing: -.025em; line-height: 1.3; }
.assistant-guide-copy p { margin: 0; color: #657d70; font-size: 13px; line-height: 1.7; }
.assistant-guide-notice { margin-top: 10px !important; padding: 8px 10px; border: 1px solid #f0ddb6; border-radius: 9px; color: #8c6b2b !important; background: #fff9eb; font-size: 12px !important; line-height: 1.5 !important; }

.assistant-guide-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.assistant-guide-actions > div { display: flex; gap: 7px; }
.assistant-guide-actions button { min-height: 32px; padding: 7px 11px; border-radius: 9px; font-size: 12px; }
.assistant-guide-actions button[disabled], .assistant-guide-actions button.disabled { opacity: .45; pointer-events: none; }

@keyframes assistant-guide-popover-enter {
  from { opacity: 0; transform: translateY(4px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
  .assistant-guide-popover { width: min(330px, calc(100vw - 24px)); border-radius: 14px; }
  .assistant-guide-header { padding-inline: 13px; }
  .assistant-guide-progress { padding-inline: 13px; }
  .assistant-guide-content { padding: 13px 13px 14px; }
  .assistant-guide-actions { flex-wrap: wrap; }
  .assistant-guide-actions > div { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .assistant-guide-popover { animation: none; }
  .assistant-guide-focus { scroll-behavior: auto; }
}
