/* The guided tour: its launcher in the sidebar, the dimmed page with a hole
   around one control, the step card, and the chapter menu. */

/* The sidebar scrolls on short screens so the launcher at its foot stays reachable. */
.app-sidebar{overflow-y:auto}
.tutorial-launch{display:flex;align-items:center;gap:10px;width:100%;flex:none;margin-top:8px;padding:10px 12px;border:1px solid #30415D;border-radius:8px;color:#C8D3E3;font-size:12.5px;font-weight:500;text-align:left;transition:background .15s,border-color .15s,color .15s}
.sidebar-mobile{margin-top:auto}
@media(max-height:760px){.app-sidebar{padding-top:14px;padding-bottom:12px}.sidebar-brand{padding-bottom:14px}.workspace-label{padding:9px 10px;margin-bottom:10px}.workspace-label small{display:none}.app-sidebar .tabs{gap:2px;margin-bottom:10px}.nav-group{padding-top:9px;padding-bottom:3px}.app-sidebar .tab{min-height:38px;padding-top:8px;padding-bottom:8px}.tutorial-launch{padding-top:8px;padding-bottom:8px}}
@media(max-height:650px){.app-sidebar{padding-top:12px}.sidebar-brand{padding-bottom:8px}.workspace-label{padding-top:5px;padding-bottom:5px;margin-bottom:6px}}
.tutorial-launch:hover{background:#20324E;border-color:#40516D;color:#fff}
.tutorial-launch svg{width:18px;height:18px;flex:none;color:#70C1CA}
.app-sidebar .tutorial-launch:focus-visible{outline:2px solid #70C1CA;outline-offset:2px}

.tour-mask{position:fixed;inset:0;width:100%;height:100%;z-index:10000;pointer-events:none}
/* Only the dimmed area takes clicks; the hole cut into it passes them through. */
.tour-mask path{fill:#0C1729;fill-opacity:.6;pointer-events:visiblePainted}
.tour-ring{position:fixed;z-index:10001;border-radius:10px;pointer-events:none;box-shadow:0 0 0 2px #70C1CA,0 0 0 7px rgba(112,193,202,.22)}
.tour-mask[hidden],.tour-ring[hidden],.tour-card[hidden]{display:none}
/* Messages stay readable above the tour, and never block its buttons. */
body.tour-active .toast{z-index:10003;pointer-events:none}

.tour-card{position:fixed;left:0;top:0;z-index:10002;width:360px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;background:#fff;color:var(--ink);border-radius:14px;box-shadow:var(--shadow-lg);padding:18px 20px 16px}
.tour-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.tour-head-actions{display:flex;align-items:center;gap:6px}
.tour-eyebrow{font-size:10px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--accent)}
.tour-close{width:28px;height:28px;margin:-4px -8px -4px 0;border-radius:6px;color:var(--g700);font-size:20px;line-height:1;flex:none}
.tour-close:hover{background:var(--accent-tint);color:var(--ink)}
.tour-link{font-size:12px;font-weight:600;color:var(--accent);padding:4px 2px;white-space:nowrap}
.tour-link:hover{text-decoration:underline}
.tour-title{font-size:16px;font-weight:600;letter-spacing:-.01em;line-height:1.35;margin-bottom:8px}
.tour-body p{font-size:13px;line-height:1.6;color:#4C6588;margin-bottom:8px}
.tour-points{list-style:none;display:grid;gap:7px;margin:2px 0 8px}
.tour-points li{position:relative;padding-left:13px;font-size:12.5px;line-height:1.55;color:#4C6588}
.tour-points li::before{content:'';position:absolute;left:0;top:.62em;width:5px;height:5px;border-radius:50%;background:var(--accent)}
.tour-points b{color:var(--ink);font-weight:600}
.tour-body .tour-note{font-size:12px;color:var(--amber);background:var(--amber-soft);border-radius:6px;padding:7px 9px}
.tour-body .tour-note[hidden]{display:none}
.tour-progress{height:3px;background:var(--accent-tint);border-radius:3px;margin:12px 0;overflow:hidden}
.tour-progress i{display:block;height:100%;background:var(--accent);border-radius:3px;transition:width .2s}
.tour-foot{display:flex;align-items:center;gap:8px}
.tour-count{margin-right:auto;font-size:11.5px;color:var(--g700);font-variant-numeric:tabular-nums}
.tour-foot .btn{padding:7px 14px;font-size:12.5px;border-radius:7px}
.tour-foot .btn[hidden]{display:none}
:is(.tour-card,.tour-menu) :focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.tour-menu{width:min(580px,calc(100vw - 24px));max-width:none;max-height:min(780px,calc(100dvh - 24px));margin:auto;padding:0;border:0;border-radius:16px;box-shadow:var(--shadow-lg);color:var(--ink);background:#fff;overflow:hidden}
.tour-menu::backdrop{background:rgba(12,23,41,.6)}
.tour-menu-inner{display:flex;flex-direction:column;max-height:inherit}
.tour-menu-head{padding:20px 24px 14px;border-bottom:1px solid #E3E9EF}
.tour-menu-title{font-size:20px;font-weight:600;letter-spacing:-.02em;line-height:1.3;margin-bottom:6px}
.tour-menu-intro{font-size:13px;line-height:1.6;color:#4C6588}
.tour-resume{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding:12px 14px;background:var(--accent-tint);border-radius:10px}
.tour-resume b{display:block;font-size:13px;font-weight:600}
.tour-resume small{display:block;font-size:12px;color:#4C6588;margin-top:1px}
.tour-resume .btn{padding:7px 14px;font-size:12.5px;border-radius:7px;flex:none}
.tour-menu-list{overflow-y:auto;padding:4px 24px 12px;min-height:0}
.tour-menu-tools{display:flex;align-items:center;gap:12px;margin-top:14px}
.tour-menu-tools .tour-group{margin:0 auto 0 0}
.tour-group{display:block;font-size:10px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--g500);margin:16px 0 7px}
.tour-option{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid #E3E9EF;border-radius:10px;margin-bottom:6px}
.tour-option:hover{border-color:#C9D6DE}
.tour-option label{display:flex;align-items:flex-start;gap:10px;flex:1;min-width:0;cursor:pointer}
.tour-option input{width:15px;height:15px;margin-top:2px;flex:none;accent-color:var(--accent)}
.tour-option b{display:block;font-size:13px;font-weight:600}
.tour-option small{display:block;font-size:12px;line-height:1.45;color:var(--g700);margin-top:1px}
.tour-steps{font-size:11px;color:var(--g500);white-space:nowrap}
.tour-option.off{background:var(--g100)}.tour-option.off label{cursor:default}.tour-option.off b{color:var(--g700)}
.tour-menu-foot{display:flex;align-items:center;gap:10px;padding:14px 24px;border-top:1px solid #E3E9EF}
.tour-menu-count{margin-right:auto;font-size:12px;color:var(--g700)}
.tour-menu-foot .btn{border-radius:7px}

@media(max-width:640px){
  .tour-card{width:calc(100vw - 24px);max-width:none;max-height:52dvh;padding:16px 16px 14px}
  .tour-menu-head,.tour-menu-list,.tour-menu-foot{padding-left:16px;padding-right:16px}
  .tour-option{flex-wrap:wrap;gap:6px 12px}.tour-steps{margin-left:25px}
  .tour-menu-foot{flex-wrap:wrap}.tour-menu-count{flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){.tour-progress i,.tutorial-launch{transition:none}}
