/* Guided tour sheet: mobile only. Desktop retains its anchored tooltip. */
@media (max-width: 760px) {
  html body .tour-overlay {
    --tour-sheet-bg: linear-gradient(145deg, rgba(7, 43, 56, .98), rgba(8, 36, 49, .99));
    --tour-sheet-border: #367f91;
    --tour-sheet-title: #f5f8fc;
    --tour-sheet-text: #d5e2e9;
    --tour-sheet-muted: #adc4cf;
    --tour-sheet-accent: #1bd6dc;
    --tour-sheet-track: #4b8290;
    --tour-sheet-button-text: #062633;
    --tour-sheet-shadow: 0 18px 48px rgba(0, 8, 18, .45);
  }

  html body .tour-bubble {
    position: fixed !important;
    inset: auto 12px max(14px, env(safe-area-inset-bottom)) 12px !important;
    box-sizing: border-box !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(72dvh, 600px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding: 20px 20px 18px !important;
    border: 1px solid var(--tour-sheet-border) !important;
    border-radius: 20px !important;
    background: var(--tour-sheet-bg) !important;
    color: var(--tour-sheet-title) !important;
    box-shadow: var(--tour-sheet-shadow) !important;
    animation: none !important;
  }
  html body .tour-bubble::before,
  html body .tour-bubble::after { display: none !important; }

  html body .tour-mobile-heading,
  html body .tour-mobile-progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  html body .tour-mobile-heading { margin-bottom: 20px; }
  html body .tour-mobile-kicker {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--tour-sheet-accent) !important;
    font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  }
  html body .tour-mobile-compass {
    display: inline-grid; place-items: center;
    width: 22px; height: 22px; border: 1.5px solid currentColor;
    border-radius: 50%; font-size: 20px; font-weight: 400; line-height: 1;
  }
  html body .tour-btn-skip {
    padding: 6px 0 !important; color: var(--tour-sheet-text) !important;
    font-size: 13px !important; font-weight: 400 !important; white-space: nowrap;
  }
  html body .tour-mobile-progress { margin-bottom: 19px; }
  html body .tour-mobile-progress > span { color: var(--tour-sheet-muted); font-size: 12px; white-space: nowrap; }
  html body .tour-progress { flex: 1; display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px !important; }
  html body .tour-progress-dot,
  html body .tour-progress-dot.done,
  html body .tour-progress-dot.active {
    display: block; width: 100% !important; height: 6px !important;
    border-radius: 6px !important; background: var(--tour-sheet-track) !important;
    box-shadow: none !important;
  }
  html body .tour-progress-dot.done,
  html body .tour-progress-dot.active { background: var(--tour-sheet-accent) !important; }
  html body .tour-bubble-title {
    margin: 0 0 8px !important; color: var(--tour-sheet-title) !important;
    font-size: clamp(21px, 6vw, 27px) !important; line-height: 1.2 !important; font-weight: 800 !important;
  }
  html body .tour-bubble-text {
    margin: 0 0 20px !important; color: var(--tour-sheet-text) !important;
    font-size: 14px !important; line-height: 1.5 !important;
  }
  html body .tour-bubble-text strong { color: inherit !important; font-weight: 700 !important; }
  html body .tour-mobile-examples { margin: 0 0 23px; }
  html body .tour-mobile-examples-label { display: block; margin-bottom: 9px; color: var(--tour-sheet-muted); font-size: 12px; font-weight: 650; letter-spacing: .03em; }
  html body .tour-mobile-tickers { display: flex; flex-wrap: wrap; gap: 8px; }
  html body .tour-mobile-tickers span {
    padding: 5px 10px; border: 1px solid var(--tour-sheet-muted); border-radius: 8px;
    color: var(--tour-sheet-title); font-size: 12px; letter-spacing: .05em;
  }
  html body .tour-mobile-examples p { margin: 12px 0 0; color: var(--tour-sheet-muted); font-size: 12px; }
  html body .tour-bubble-actions { display: block !important; }
  html body .tour-btn-next {
    display: block; width: 100%; min-height: 46px !important;
    padding: 10px 16px !important; border: 1px solid rgba(255,255,255,.2) !important;
    border-radius: 10px !important; background: var(--tour-sheet-accent) !important;
    color: var(--tour-sheet-button-text) !important; font-size: 16px !important;
    font-weight: 800 !important; box-shadow: none !important;
  }

  html[data-appearance="light"] body .tour-overlay {
    --tour-sheet-bg: linear-gradient(145deg, #fff, #f3f9fb);
    --tour-sheet-border: #bddae0;
    --tour-sheet-title: #183554;
    --tour-sheet-text: #425e74;
    --tour-sheet-muted: #657f90;
    --tour-sheet-accent: #00aaa5;
    --tour-sheet-track: #c9dce3;
    --tour-sheet-button-text: #fff;
    --tour-sheet-shadow: 0 18px 44px rgba(26, 62, 83, .26);
  }
  html[data-appearance="black"] body .tour-overlay {
    --tour-sheet-bg: linear-gradient(145deg, #14191c, #0b1013);
    --tour-sheet-border: #46606a;
    --tour-sheet-title: #fff;
    --tour-sheet-text: #d9e5e9;
    --tour-sheet-muted: #a8bec5;
    --tour-sheet-accent: #22d4dc;
    --tour-sheet-track: #40515a;
    --tour-sheet-button-text: #09262d;
  }
  html[data-theme="warm-oak"] body .tour-overlay {
    --tour-sheet-bg: linear-gradient(145deg, #fffaf1, #f5ead8);
    --tour-sheet-border: #c8a982;
    --tour-sheet-title: #433024;
    --tour-sheet-text: #5d493b;
    --tour-sheet-muted: #806f60;
    --tour-sheet-accent: #00766d;
    --tour-sheet-track: #c8b6a1;
    --tour-sheet-button-text: #fff;
    --tour-sheet-shadow: 0 18px 44px rgba(54, 30, 13, .3);
  }
}
