/* Claude as a guide (guide.js): the consent dialog, the cursor, the ring
 * around the widget it points at, its caption and the pill that lets go. */

.guide-ask {
  position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 16px;
  background: rgba(0, 0, 0, .38);
}
.guide-ask-dlg {
  width: min(420px, 100%); padding: 20px 22px 18px; border-radius: 14px;
  background: var(--card); color: var(--text); border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}
.guide-ask-dlg h2 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.guide-ask-dlg p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.guide-ask-acts { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.guide-ask-acts .btn { min-height: 40px; }

.guide-cursor {
  position: fixed; z-index: calc(var(--z-drawer) + 2); pointer-events: none; display: flex; align-items: flex-start; gap: 4px;
  color: var(--primary); transition: left 420ms cubic-bezier(.2, .8, .2, 1), top 420ms cubic-bezier(.2, .8, .2, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25));
}
.guide-cursor-name {
  margin-top: 16px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: var(--primary); color: #fff; white-space: nowrap;
}
.guide-ring {
  position: fixed; z-index: calc(var(--z-drawer) + 1); pointer-events: none; border-radius: 14px;
  border: 2px solid var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
  transition: left 420ms cubic-bezier(.2, .8, .2, 1), top 420ms cubic-bezier(.2, .8, .2, 1),
    width 420ms cubic-bezier(.2, .8, .2, 1), height 420ms cubic-bezier(.2, .8, .2, 1);
}
.guide-bubble {
  position: fixed; z-index: calc(var(--z-drawer) + 3); width: min(320px, calc(100vw - 24px)); padding: 10px 12px; border-radius: 10px;
  background: var(--card); color: var(--text); border: 1px solid var(--primary);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18); font-size: 13px; line-height: 1.45;
}
.guide-bubble.is-free { right: 16px; bottom: 72px; left: auto; top: auto; }
.guide-pill {
  position: fixed; z-index: calc(var(--z-drawer) + 3); left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 999px;
  background: var(--card); color: var(--text); border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18); font-size: 13px; white-space: nowrap;
}
.guide-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: guide-pulse 1.6s ease-in-out infinite; }
.guide-pill button {
  min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
.guide-pill button:hover { border-color: var(--primary); }
.guide-cursor.is-following, .guide-ring.is-following { transition: none; }
@keyframes guide-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .guide-cursor, .guide-ring { transition: none; }
  .guide-pill-dot { animation: none; }
}
@media (max-width: 640px) {
  .guide-pill { bottom: 12px; }
  .guide-pill button { min-height: 44px; }
  .guide-ask-acts .btn { min-height: 44px; flex: 1; }
}
