/* Isolated from the parent and child portals; no remote fonts or images. */
body.tubequest-tour-open { overflow: hidden; }
#tubequest-tour { --tour-bg:#f7f8fd; --tour-card:#fff; --tour-text:#232c48; --tour-muted:#5a647d; --tour-line:#dce1f1; --tour-blue:#2945da; --tour-soft:#e5e9fb; --tour-coral:#c74636; --tour-peach:#fbe7df; color:var(--tour-text); background:var(--tour-bg); font-family:ui-rounded,"SF Pro Rounded",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; padding:0; border:1px solid var(--tour-line); border-radius:28px; width:min(100% - 32px,480px); max-width:480px; max-height:calc(100dvh - 32px); margin:auto; box-shadow:0 24px 90px #2036ae26; }
#tubequest-tour::backdrop { background:#232c4899; backdrop-filter:blur(5px); }
#tubequest-tour * { box-sizing:border-box; }
#tubequest-tour [hidden] { display:none!important; }
#tubequest-tour button { font:inherit; cursor:pointer; width:auto; margin:0; border:0; box-shadow:none; text-transform:none; letter-spacing:normal; }
#tubequest-tour button:focus-visible { outline:3px solid var(--tour-coral); outline-offset:3px; }
#tubequest-tour h2:focus { outline:none; }
#tubequest-tour .tour-shell { display:flex; flex-direction:column; max-height:calc(100dvh - 34px); }
#tubequest-tour .tour-top { display:flex; align-items:center; justify-content:space-between; padding:14px 22px 4px; flex-shrink:0; position:static; background:transparent; border:0; }
#tubequest-tour .tour-brand { display:flex; align-items:center; gap:8px; font-size:20px; font-weight:750; letter-spacing:-.5px; }
#tubequest-tour .tour-brand-mark { display:block; width:32px; height:32px; flex-shrink:0; }
#tubequest-tour .tour-quiet { background:transparent; color:var(--tour-blue); font-size:14px; font-weight:650; min-height:44px; padding:8px; border-radius:10px; }
#tubequest-tour .tour-content { overflow-y:auto; overscroll-behavior:contain; min-height:0; }
#tubequest-tour .tour-page { padding:14px 26px 4px; }
#tubequest-tour .tour-eyebrow { color:var(--tour-blue); font-size:11px; letter-spacing:1.6px; text-transform:uppercase; font-weight:750; margin:0 0 8px; }
#tubequest-tour h2 { color:var(--tour-text); font-size:32px; font-weight:750; line-height:1.1; letter-spacing:-.9px; margin:0 0 10px; }
#tubequest-tour .tour-lede { font-size:15px; line-height:1.45; color:var(--tour-muted); margin:0 0 18px; }
#tubequest-tour .tour-plans { display:inline-flex; align-items:center; min-height:44px; margin:-12px 0 10px; color:var(--tour-blue); font-size:13px; font-weight:650; text-decoration:underline; text-underline-offset:4px; }
#tubequest-tour .tour-plans:focus-visible { outline:3px solid var(--tour-coral); outline-offset:3px; border-radius:4px; }
#tubequest-tour .tour-preview { padding:16px; background:var(--tour-soft); border-radius:23px; margin:0 0 20px; }
#tubequest-tour .tour-preview-child { background:var(--tour-peach); }
#tubequest-tour .tour-mini { background:var(--tour-card); border-radius:17px; padding:15px; }
#tubequest-tour .tour-profile { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
#tubequest-tour .tour-avatar { height:40px; width:40px; display:grid; place-items:center; flex-shrink:0; border-radius:50%; background:var(--tour-peach); color:var(--tour-coral); font-weight:700; font-size:18px; }
#tubequest-tour .tour-mini strong { display:block; font-size:15px; font-weight:700; }
#tubequest-tour .tour-mini small { display:block; color:var(--tour-muted); font-size:12px; line-height:1.4; }
#tubequest-tour .tour-mini-row { display:flex; align-items:center; justify-content:space-between; gap:9px; padding:10px 0; border-top:1px solid var(--tour-line); font-size:12px; color:var(--tour-muted); }
#tubequest-tour .tour-mini-row:last-child { padding-bottom:0; }
#tubequest-tour .tour-mini-row b { font-weight:650; color:var(--tour-blue); text-align:right; }
#tubequest-tour .tour-lessons { list-style:none; padding:0; margin:0; display:grid; gap:17px; }
#tubequest-tour .tour-lessons li { display:flex; gap:12px; align-items:flex-start; }
#tubequest-tour .tour-icon { width:31px; height:31px; flex-shrink:0; display:grid; place-items:center; border-radius:10px; color:var(--tour-blue); background:var(--tour-soft); margin-top:1px; font-size:13px; font-weight:700; }
#tubequest-tour .tour-lessons strong { display:block; font-size:15px; font-weight:700; margin-bottom:3px; }
#tubequest-tour .tour-lessons p { margin:0; color:var(--tour-muted); font-size:13px; line-height:1.5; }
#tubequest-tour .tour-search { background:var(--tour-bg); color:var(--tour-muted); border-radius:10px; font-size:12px; padding:10px; margin:12px 0; }
#tubequest-tour .tour-flow { display:flex; align-items:center; gap:7px; }
#tubequest-tour .tour-flow-item { display:grid; gap:6px; place-items:center; flex:1; padding:11px 4px; background:var(--tour-soft); border-radius:10px; color:var(--tour-blue); font-size:11px; font-weight:650; }
#tubequest-tour .tour-flow-item > span:first-child { font-size:20px; }
#tubequest-tour .tour-arrow { color:var(--tour-muted); font-size:13px; }
#tubequest-tour .tour-navigation { font-size:12px; line-height:1.5; color:var(--tour-muted); margin:18px 0 0; }
#tubequest-tour .tour-bottom { padding:8px 26px 20px; flex-shrink:0; display:block; margin:0; border:0; color:var(--tour-text); background:var(--tour-bg); }
#tubequest-tour .tour-progress { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; min-height:44px; margin-bottom:6px; }
#tubequest-tour .tour-progress > .tour-quiet { justify-self:end; }
#tubequest-tour .tour-dots { display:flex; align-items:center; }
#tubequest-tour .tour-dot { padding:0; min-width:44px; min-height:44px; background:transparent; display:grid; place-items:center; border-radius:10px; }
#tubequest-tour .tour-dot::before { content:""; height:6px; width:6px; border-radius:20px; background:var(--tour-line); }
#tubequest-tour .tour-dot[aria-current="step"]::before { width:24px; background:var(--tour-blue); }
#tubequest-tour .tour-count { font-size:12px; color:var(--tour-muted); }
#tubequest-tour .tour-main { display:block; width:100%; min-height:52px; padding:14px 17px; color:#fff; background:var(--tour-blue); border-radius:17px; font-weight:650; font-size:16px; line-height:1.3; }
@media (max-width:380px) { #tubequest-tour { width:calc(100% - 16px); max-height:calc(100dvh - 16px); border-radius:22px; } #tubequest-tour .tour-shell { max-height:calc(100dvh - 18px); } #tubequest-tour .tour-page { padding:12px 18px 4px; } #tubequest-tour .tour-top { padding:10px 14px 4px; } #tubequest-tour .tour-bottom { padding:6px 18px 16px; } #tubequest-tour h2 { font-size:28px; } #tubequest-tour .tour-preview { padding:12px; } }
@media (prefers-reduced-motion:reduce) { #tubequest-tour, #tubequest-tour * { scroll-behavior:auto; animation:none; transition:none; } }

/* Keep the teaching points in view on short phones; the preview is decorative. */
@media (max-height:620px) {
  #tubequest-tour .tour-preview { display:none; }
  #tubequest-tour .tour-page { padding-top:8px; }
  #tubequest-tour .tour-lede { margin-bottom:14px; }
}
/* In a shallow landscape viewport, let the whole dialog scroll so its header
   and footer cannot crowd the lesson out of the available height. */
@media (max-height:420px) {
  #tubequest-tour { overflow-y:auto; }
  #tubequest-tour .tour-shell { max-height:none; }
  #tubequest-tour .tour-content { overflow:visible; }
}
