/* The Professor — first-run tour. A dimmed page with a spotlight on the element being explained and a speech
   bubble from the Professor. Built on the app's tokens, so it follows the theme. */
.tour-root { position: fixed; inset: 0; z-index: 100000; }
.tour-root.no-target { background: rgba(4, 9, 22, .74); }
.tour-spot {
  position: fixed; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 100vmax rgba(4, 9, 22, .74); outline: 2px solid rgba(255, 255, 255, .9); outline-offset: 0;
}
.tour-pop {
  position: fixed; box-sizing: border-box; padding: 16px; border-radius: 18px; max-height: calc(100dvh - 24px); overflow-y: auto;
  background: var(--bg-card, #fff); color: var(--text, #111); border: 1px solid var(--border, rgba(0, 0, 0, .15));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45); display: flex; flex-direction: column; gap: 12px;
}
.tour-pop:focus { outline: none; }
.tour-count { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted, #667); }
.tour-talk { display: flex; align-items: flex-start; gap: 14px; }
.tour-avatar {
  flex: none; inline-size: 92px; block-size: 116px; object-fit: cover; object-position: 50% 0%; border-radius: 16px;
  border: 2px solid var(--accent, #1d428a); background: linear-gradient(170deg, #dee8fa, #bed0f0);
}
.tour-bubble {
  position: relative; flex: 1; min-inline-size: 0; padding: 12px 14px; border-radius: 16px;
  background: var(--bg-card2, var(--bg, #f1f3f8)); border: 1px solid var(--border, rgba(0, 0, 0, .15));
}
.tour-bubble::before {                       /* the tail, pointing at the Professor */
  content: ""; position: absolute; inset-block-start: 26px; inline-size: 13px; block-size: 13px; transform: rotate(45deg);
  background: var(--bg-card2, var(--bg, #f1f3f8));
}
.tour-pop[dir="ltr"] .tour-bubble::before { left: -8px; border-left: 1px solid var(--border, rgba(0, 0, 0, .15)); border-bottom: 1px solid var(--border, rgba(0, 0, 0, .15)); }
.tour-pop[dir="rtl"] .tour-bubble::before { right: -8px; border-right: 1px solid var(--border, rgba(0, 0, 0, .15)); border-top: 1px solid var(--border, rgba(0, 0, 0, .15)); }
.tour-bubble h3 { margin: 0 0 6px; font-size: 16.5px; line-height: 1.25; font-weight: 800; overflow-wrap: anywhere; }
.tour-text { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text, #111); overflow-wrap: anywhere; }
.tour-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tour-spacer { flex: 1; }
.tour-btn { min-block-size: 44px; padding: 8px 16px; border-radius: 12px; border: 1px solid var(--border, rgba(0, 0, 0, .2)); background: transparent; color: var(--text, #111); font: inherit; font-weight: 700; cursor: pointer; }
.tour-btn.primary { background: var(--accent, #1d428a); border-color: var(--accent, #1d428a); color: var(--accent-fg, #fff); }
.tour-btn.ghost { border-color: transparent; color: var(--muted, #667); }
.tour-pop :focus-visible { outline: 2px solid var(--accent, #1d428a); outline-offset: 2px; }
@media (max-width: 400px) { .tour-avatar { inline-size: 76px; block-size: 100px; } .tour-talk { gap: 12px; } }
