/* Course guided tour + Live Guide (student + instructor). Preview feature. */
.ctour-spot{
  position:fixed;z-index:2147483000;border-radius:12px;pointer-events:none;
  box-shadow:0 0 0 9999px rgba(0,0,0,.62),0 0 0 2px var(--pa-teal,#2DD4BF),0 0 28px rgba(45,212,191,.35);
  transition:top .35s cubic-bezier(.2,.8,.2,1),left .35s cubic-bezier(.2,.8,.2,1),width .35s cubic-bezier(.2,.8,.2,1),height .35s cubic-bezier(.2,.8,.2,1),transform .35s cubic-bezier(.2,.8,.2,1);
  transform-origin:center center;
}
.ctour-spot.zoom-pop{
  animation:ctour-zoom-pop .48s cubic-bezier(.2,.8,.2,1);
}
@keyframes ctour-zoom-pop{
  0%{transform:scale(.92);box-shadow:0 0 0 9999px rgba(0,0,0,.62),0 0 0 2px var(--acc,#f5a524),0 0 12px rgba(245,165,36,.2)}
  55%{transform:scale(1.045);box-shadow:0 0 0 9999px rgba(0,0,0,.58),0 0 0 3px var(--acc,#f5a524),0 0 40px rgba(245,165,36,.55)}
  100%{transform:scale(1)}
}
.ctour-spot.none{box-shadow:0 0 0 9999px rgba(0,0,0,.62);width:0;height:0}
.ctour-spot.instr{
  box-shadow:0 0 0 9999px rgba(0,0,0,.62),0 0 0 2px var(--pa-indigo,#818CF8),0 0 28px rgba(129,140,248,.35);
}
.ctour-spot.guide{
  box-shadow:0 0 0 9999px rgba(0,0,0,.55),0 0 0 2px var(--acc,#f5a524),0 0 32px rgba(245,165,36,.4);
}
.ctour-tip{
  position:fixed;z-index:2147483002;box-sizing:border-box;
  width:min(400px,calc(100vw - 28px));
  background:var(--bg2,#16171a);color:var(--tx,#e8e8ea);
  border:1px solid color-mix(in oklab,var(--pa-teal,#2DD4BF) 55%,var(--line,#2a2d33));
  border-radius:14px;padding:18px 18px 14px;
  box-shadow:0 18px 50px rgba(0,0,0,.55);
  font:15px/1.5 var(--f,Inter,system-ui,sans-serif);
  outline:none;
  transition:top .35s cubic-bezier(.2,.8,.2,1),left .35s cubic-bezier(.2,.8,.2,1),opacity .2s,transform .2s;
}
.ctour-tip.instr{
  border-color:color-mix(in oklab,var(--pa-indigo,#818CF8) 55%,var(--line,#2a2d33));
}
.ctour-tip.guide{
  border-color:color-mix(in oklab,var(--acc,#f5a524) 60%,var(--line,#2a2d33));
  cursor:grab;touch-action:none;
  padding-top:12px;
}
.ctour-tip.guide.dragging{cursor:grabbing;transition:none;user-select:none}
[data-theme=light] .ctour-tip{background:#fffdf9;color:#1d1e21;box-shadow:0 18px 50px rgba(0,0,0,.22)}
.ctour-tip *{box-sizing:border-box}
.ctour-drag{
  display:flex;align-items:center;justify-content:center;gap:6px;
  margin:-4px 0 8px;padding:4px 0 2px;cursor:grab;color:var(--mu,#9a9ea7);
}
.ctour-drag::before{
  content:"";width:36px;height:4px;border-radius:99px;background:color-mix(in oklab,var(--mu,#9a9ea7) 55%,transparent);
}
.ctour-kicker{margin:0;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:var(--pa-teal,#2DD4BF);font-weight:700}
.ctour-tip.instr .ctour-kicker{color:var(--pa-indigo,#818CF8)}
.ctour-tip.guide .ctour-kicker{color:var(--acc,#f5a524)}
.ctour-tip h2{font-size:1.05rem;line-height:1.3;margin:6px 0 8px;color:inherit;font-weight:700}
.ctour-tip .ctour-body{margin:0 0 12px;font-size:.92rem;color:var(--tx2,#c3c6cc)}
[data-theme=light] .ctour-tip .ctour-body{color:#3d3f45}
.ctour-prog{
  display:flex;align-items:center;gap:10px;margin:0 0 12px;
}
.ctour-ring{
  position:relative;width:36px;height:36px;flex:0 0 auto;
}
.ctour-ring svg{display:block;width:36px;height:36px;transform:rotate(-90deg)}
.ctour-ring .ctour-ring-bg{fill:none;stroke:var(--bg3,#1c1e22);stroke-width:3.5}
.ctour-ring .ctour-ring-fg{
  fill:none;stroke:var(--acc,#f5a524);stroke-width:3.5;stroke-linecap:round;
  stroke-dasharray:100;stroke-dashoffset:100;
  transition:stroke-dashoffset .35s ease;
}
.ctour-tip.instr .ctour-ring .ctour-ring-fg{stroke:var(--pa-indigo,#818CF8)}
.ctour-tip:not(.guide):not(.instr) .ctour-ring .ctour-ring-fg{stroke:var(--pa-teal,#2DD4BF)}
.ctour-ring-n{
  position:absolute;inset:0;display:grid;place-items:center;
  font-size:.62rem;font-weight:700;letter-spacing:-.02em;color:var(--tx,#e8e8ea);
}
.ctour-prog-bar{
  flex:1;height:6px;border-radius:99px;background:var(--bg3,#1c1e22);overflow:hidden;
}
.ctour-prog-bar > i{
  display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,var(--pa-teal,#2DD4BF),var(--acc,#f5a524));
  transition:width .25s ease;
}
.ctour-tip.instr .ctour-prog-bar > i{background:linear-gradient(90deg,var(--pa-indigo,#818CF8),var(--acc,#f5a524))}
.ctour-tip.guide .ctour-prog-bar > i{background:linear-gradient(90deg,var(--acc,#f5a524),var(--pa-teal,#2DD4BF))}
.ctour-prog-n{font-size:.75rem;opacity:.75;white-space:nowrap}
.ctour-link{
  display:inline-block;margin:0 0 12px;color:var(--acc,#f5a524);font-weight:600;font-size:.9rem;
}
button.ctour-link,button.ctour-take{
  appearance:none;font:inherit;background:transparent;border:0;padding:0;cursor:pointer;text-align:start;
  color:var(--acc,#f5a524);font-weight:700;font-size:.95rem;text-decoration:underline;min-height:44px;
}
.ctour-btns{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.ctour-btns span{flex:1;min-width:8px}
.ctour-btns button{
  appearance:none;font:inherit;font-size:.92rem;min-height:44px;min-width:44px;
  padding:8px 14px;border-radius:10px;border:1px solid rgba(128,128,128,.4);
  background:transparent;color:inherit;cursor:pointer;
}
.ctour-btns .ctour-next{
  background:var(--acc,#f5a524);border-color:var(--acc,#f5a524);color:#111;font-weight:700;
}
.ctour-tip.instr .ctour-btns .ctour-next{
  background:var(--pa-indigo,#818CF8);border-color:var(--pa-indigo,#818CF8);color:#111;
}
.ctour-btns .ctour-skip{border-color:transparent;text-decoration:underline;opacity:.85;padding-inline:8px}
.ctour-btns .ctour-min{border-color:transparent;opacity:.85;padding-inline:8px}
.ctour-tip button:focus-visible,.ctour-tip a:focus-visible{outline:2px solid var(--acc,#f5a524);outline-offset:2px}

/* Minimized Guide pill */
.ctour-pill{
  position:fixed;z-index:2147482990;right:18px;bottom:22px;
  display:none;align-items:center;gap:10px;
  padding:10px 14px 10px 12px;border-radius:999px;
  background:var(--bg2,#16171a);color:var(--tx,#e8e8ea);
  border:1px solid color-mix(in oklab,var(--acc,#f5a524) 55%,var(--line,#2a2d33));
  box-shadow:0 12px 36px rgba(0,0,0,.45);
  font:700 13px/1.2 var(--f,Inter,system-ui,sans-serif);
  cursor:pointer;appearance:none;
  transition:transform .18s ease,box-shadow .18s ease,opacity .18s;
}
.ctour-pill.on{display:inline-flex}
.ctour-pill:hover{transform:translateY(-2px);box-shadow:0 16px 40px rgba(0,0,0,.55)}
.ctour-pill:focus-visible{outline:2px solid var(--acc,#f5a524);outline-offset:3px}
.ctour-pill.instr{
  border-color:color-mix(in oklab,var(--pa-indigo,#818CF8) 55%,var(--line));
}
[data-theme=light] .ctour-pill{background:#fffdf9;color:#1d1e21;box-shadow:0 12px 32px rgba(0,0,0,.18)}
.ctour-pill-ring{
  width:28px;height:28px;position:relative;flex:0 0 auto;
}
.ctour-pill-ring svg{display:block;width:28px;height:28px;transform:rotate(-90deg)}
.ctour-pill-ring .ctour-ring-bg{fill:none;stroke:var(--bg3,#1c1e22);stroke-width:3.2}
.ctour-pill-ring .ctour-ring-fg{
  fill:none;stroke:var(--acc,#f5a524);stroke-width:3.2;stroke-linecap:round;
  stroke-dasharray:100;stroke-dashoffset:100;transition:stroke-dashoffset .35s ease;
}
.ctour-pill.instr .ctour-ring-fg{stroke:var(--pa-indigo,#818CF8)}
.ctour-pill-tx{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.ctour-pill-tx strong{font-size:.82rem}
.ctour-pill-tx span{font-size:.68rem;font-weight:600;opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:160px}

/* Controls in sidebar / instructor toolbar */
.cn-tour-ctl,.instr-tour-ctl{
  display:flex;flex-direction:column;gap:8px;
  margin:8px 0 4px;padding:10px 10px 8px;
  border:1px solid var(--line,#2a2d33);border-radius:12px;
  background:color-mix(in oklab,var(--pa-teal,#2DD4BF) 8%,var(--bg2,#16171a));
}
.instr-tour-ctl{
  background:color-mix(in oklab,var(--pa-indigo,#818CF8) 10%,var(--bg2,#16171a));
  margin:0 0 14px;
}
.ctour-toggle-row{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.ctour-toggle-row > span{font-size:.82rem;font-weight:600;color:var(--tx,#e8e8ea)}
.ctour-switch{
  appearance:none;border:1px solid var(--abl2,#6b4a10);border-radius:999px;
  min-height:32px;min-width:64px;padding:0 10px;cursor:pointer;
  font:700 12px/1 var(--f,Inter,system-ui,sans-serif);
  background:var(--bg3,#1c1e22);color:var(--mu,#9a9ea7);
}
.ctour-switch[aria-checked=true]{
  background:color-mix(in oklab,var(--pa-teal,#2DD4BF) 28%,var(--bg2));
  border-color:var(--pa-teal,#2DD4BF);color:var(--tx,#e8e8ea);
}
.instr-tour-ctl .ctour-switch[aria-checked=true]{
  background:color-mix(in oklab,var(--pa-indigo,#818CF8) 28%,var(--bg2));
  border-color:var(--pa-indigo,#818CF8);
}
.ctour-ctl-actions{display:flex;flex-wrap:wrap;gap:6px}
.ctour-ctl-actions button,.ctour-ctl-actions .btn{
  font-size:.78rem;min-height:36px;padding:6px 10px;border-radius:9px;
}
.doc-tour-foot{
  margin:28px 0 8px;padding:12px 14px;border:1px dashed var(--line);border-radius:12px;
  display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;
}
.doc-tour-foot .ctour-toggle-row{flex:1;min-width:180px}

@media (max-width:900px){
  .ctour-tip{
    font-size:14px;padding:14px 14px 12px;
    width:calc(100vw - 16px)!important;
    left:8px!important;right:8px;max-width:none;
    border-radius:16px 16px 12px 12px;
  }
  .ctour-tip.guide.sheet{
    top:auto!important;bottom:8px!important;left:8px!important;
    transition:transform .28s cubic-bezier(.2,.8,.2,1),opacity .2s;
  }
  .ctour-tip h2{font-size:1rem}
  .ctour-tip .ctour-body{font-size:.88rem}
  .ctour-pill{right:12px;bottom:16px}
  .ctour-pill-tx span{max-width:120px}
}
@media (prefers-reduced-motion:reduce){
  .ctour-spot,.ctour-tip,.ctour-prog-bar > i,.ctour-ring .ctour-ring-fg,.ctour-pill,.ctour-pill-ring .ctour-ring-fg{transition:none!important}
  .ctour-spot.zoom-pop{animation:none!important}
}
body.ctour-on{overflow:hidden}
@media (min-width:901px){
  body.ctour-on{overflow:auto}
}
body.ctour-guide-on{overflow:auto}
