/* onboarding.js styles — guided tour overlay, spotlight and tooltip card. */
.onb-root { position: fixed; inset: 0; z-index: 99990; font-family: inherit; }

.onb-blocker {
  position: fixed; inset: 0; z-index: 99991;
  background: transparent; cursor: not-allowed;
  animation: onb-fade .25s ease;
}
@keyframes onb-fade { from { opacity: 0; } to { opacity: 1; } }

/* Spotlight: transparent box whose huge box-shadow darkens everything else. */
.onb-spot {
  position: fixed; z-index: 99992; border-radius: 16px;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.66);
  pointer-events: none;
  transition: top .25s cubic-bezier(.4,0,.2,1), left .25s cubic-bezier(.4,0,.2,1),
              width .25s cubic-bezier(.4,0,.2,1), height .25s cubic-bezier(.4,0,.2,1);
}
/* pulsing accent ring around the highlighted element */
.onb-spot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 18px;
  border: 2.5px solid var(--onb-accent, #2563eb);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--onb-accent, #2563eb) 22%, transparent);
  animation: onb-pulse 1.8s ease-in-out infinite;
}
@keyframes onb-pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--onb-accent,#2563eb) 26%, transparent); }
  50%      { box-shadow: 0 0 0 10px color-mix(in srgb, var(--onb-accent,#2563eb) 6%, transparent); }
}

.onb-tip {
  position: fixed; z-index: 99993; width: 372px; max-width: calc(100vw - 24px);
  background: #fff; border-radius: 20px; padding: 18px 20px 16px;
  box-shadow: 0 30px 70px -16px rgba(2, 6, 23, .5), 0 0 0 1px rgba(2,6,23,.04);
  color: #0f172a;
  transition: top .2s cubic-bezier(.4,0,.2,1), left .2s cubic-bezier(.4,0,.2,1);
}
.onb-tip.onb-anim { animation: onb-pop .26s cubic-bezier(.34,1.4,.5,1); }
@keyframes onb-pop { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.onb-tip--center { top: 50% !important; left: 50% !important; transform: translate(-50%, -50%); }
.onb-tip--center.onb-anim { animation: onb-pop-center .28s cubic-bezier(.34,1.4,.5,1); }
@keyframes onb-pop-center { from { opacity: 0; transform: translate(-50%,-46%) scale(.96); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }

.onb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.onb-ico {
  width: 34px; height: 34px; border-radius: 11px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--onb-accent, #2563eb), color-mix(in srgb, var(--onb-accent,#2563eb) 65%, #000));
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--onb-accent,#2563eb) 70%, transparent);
}
.onb-counter {
  font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: #94a3b8; flex: 1 1 auto;
}
.onb-x {
  border: 0; background: transparent; color: #cbd5e1; font-size: 22px; line-height: 1;
  cursor: pointer; padding: 0 2px; border-radius: 8px; transition: color .15s;
}
.onb-x:hover { color: #64748b; }

.onb-title { font-size: 19px; font-weight: 900; line-height: 1.18; margin-bottom: 8px; color: #0f172a; letter-spacing: -.01em; }
.onb-body { font-size: 13.5px; font-weight: 500; line-height: 1.58; color: #475569; }
.onb-body p { margin: 0 0 8px; }
.onb-body p:last-child { margin-bottom: 0; }
.onb-body b, .onb-body strong { color: #0f172a; font-weight: 800; }
.onb-body .onb-pill {
  display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px;
  font-weight: 800; background: color-mix(in srgb, var(--onb-accent,#2563eb) 12%, #fff); color: var(--onb-accent, #2563eb);
}
.onb-body .onb-warn {
  display: block; margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  font-size: 12.5px; font-weight: 700; line-height: 1.45;
}

.onb-dots { display: flex; gap: 6px; margin: 16px 0 2px; }
.onb-dot { width: 7px; height: 7px; border-radius: 999px; background: #e2e8f0; transition: all .2s ease; }
.onb-dot.is-done { background: color-mix(in srgb, var(--onb-accent,#2563eb) 45%, #cbd5e1); }
.onb-dot.is-active { width: 20px; background: var(--onb-accent, #2563eb); }

.onb-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.onb-nav { display: flex; gap: 8px; }
.onb-btn {
  border: 0; cursor: pointer; border-radius: 12px; padding: 10px 16px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .01em; transition: all .15s ease;
  background: #f1f5f9; color: #475569; display: inline-flex; align-items: center; gap: 6px;
}
.onb-btn:hover { background: #e2e8f0; }
.onb-btn i { font-size: 10px; }
.onb-skip { background: transparent; color: #94a3b8; padding-left: 2px; padding-right: 6px; }
.onb-skip:hover { background: transparent; color: #64748b; }
.onb-primary {
  background: linear-gradient(135deg, var(--onb-accent, #2563eb), color-mix(in srgb, var(--onb-accent,#2563eb) 78%, #000));
  color: #fff; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--onb-accent,#2563eb) 75%, transparent);
}
.onb-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.onb-primary i { font-size: 11px; }

/* Help button in the topbar (uses the app's existing icon-button sizing) */
.onb-help-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  height: 38px; min-width: 38px; padding: 0 10px; border-radius: 12px;
  background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0;
  font-weight: 800; font-size: 12px; cursor: pointer; transition: all .15s ease;
}
.onb-help-btn:hover { background: #e2e8f0; color: #0f172a; }

@media (prefers-reduced-motion: reduce) {
  .onb-spot::after { animation: none; }
  .onb-tip.onb-anim, .onb-tip--center.onb-anim { animation: none; }
}
@media (max-width: 640px) {
  .onb-tip { width: calc(100vw - 24px); padding: 16px 16px 14px; }
  .onb-title { font-size: 17px; }
}
