/* Guide me. Every colour, radius and font here is one of FlowRunner's own tokens, so the layer reads as part of the product. */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.help-q{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-right:7px;border-radius:50%;border:1.5px solid currentColor;font-size:11px;font-weight:700;line-height:1}
.help-acts{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.help-meta{margin:0;font-size:12.5px;color:var(--muted)}
.help-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:90;margin:0;padding:10px 16px;max-width:min(560px,calc(100vw - 32px));background:var(--dark);color:var(--on-dark);border-radius:var(--radius);box-shadow:0 6px 18px var(--shadow-strong);font-size:13px}

/* the Help page */
.help-start{display:flex;justify-content:space-between;align-items:flex-end;gap:16px 24px;flex-wrap:wrap;margin:0 0 16px;padding:22px 24px;background:var(--dark);color:var(--on-dark);border-radius:var(--radius)}
.help-start>div:first-child{max-width:64ch}
.help-start h2{margin:2px 0 6px;font-size:21px;color:var(--on-dark)}
.help-start p{margin:0 0 6px;color:var(--slate-tint)}
.help-start .help-meta{color:var(--slate-tint)}
.help-start .btn.quiet{background:transparent;color:var(--on-dark);border-color:var(--dark-line)}
.help-kicker{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--cyan) !important}
.help-resume .help-acts{margin-top:8px}
.help-tools{display:flex;gap:10px 14px;flex-wrap:wrap;align-items:flex-end;margin:12px 0 10px}
.help-tools .dt-q{flex:1 1 260px;min-height:38px}
.help-sortlab{display:flex;flex-direction:column;gap:3px;font-size:11.5px;font-weight:600;color:var(--muted)}
.help-seg{display:flex;gap:6px;flex-wrap:wrap}
.help-segbtn{min-height:34px;padding:6px 12px;font:600 12.5px/1.3 "Segoe UI",Arial,sans-serif;color:var(--ink-2);background:var(--on-dark);border:1px solid var(--line);border-radius:var(--radius);cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}
.help-segbtn:hover,.help-segbtn:focus-visible{transform:translateY(-2px);box-shadow:0 6px 14px var(--shadow)}
.help-segbtn[aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:var(--on-dark)}
.help-count{margin:12px 0 0;font-size:12px;color:var(--muted)}
.help-group{margin-top:16px}
.help-group h3{margin:0 0 8px;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.help-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:12px;list-style:none;margin:0;padding:0}
.help-card{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:15px 16px;background:var(--on-dark);border:1px solid var(--line);border-radius:var(--radius);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.help-card:hover,.help-card:focus-within{transform:translateY(-3px);box-shadow:0 8px 22px var(--shadow);border-color:var(--blue-tint)}
.help-card.flagship{border-color:var(--amber-tint)}
.help-card h4{margin:0;font-size:14.5px;line-height:1.35}
.help-card h4 a{color:var(--blue-ink);text-decoration:none}
.help-card h4 a:hover{text-decoration:underline;text-underline-offset:3px}
.help-card p{margin:0;font-size:12.5px;line-height:1.55;color:var(--ink-2);text-wrap:pretty}
.help-tags{display:flex;gap:6px;flex-wrap:wrap}
.help-tags:empty{display:none}
.help-card .help-acts{margin-top:auto;padding-top:6px}
.help-back{margin:0 0 10px;font-size:13px}
.help-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px 24px;flex-wrap:wrap;margin:0 0 16px}
.help-head h2{margin:0 0 4px;font-size:20px}
.help-head p{margin:0;max-width:70ch;color:var(--ink-2)}
.help-guide{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px;align-items:start}
.help-guide aside{display:grid;gap:16px}
.help-video{margin:0 0 16px}
.help-video video{display:block;width:100%;aspect-ratio:16/9;border-radius:var(--radius);border:1px solid var(--line);background:var(--dark)}
.help-video-frame{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;aspect-ratio:16/9;padding:24px;text-align:center;border-radius:var(--radius);background:var(--dark);color:var(--on-dark)}
.help-video-frame b{font-size:18px;font-weight:600;max-width:32ch}
.help-video-frame span{font-size:13px;color:var(--slate-tint)}
.help-video figcaption{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px;font-size:12.5px;color:var(--muted)}
.help-video figcaption .btn{margin-left:auto}
.help-steps{margin:10px 0 0;padding-left:22px}
.help-steps li{margin:0 0 12px;font-size:13.5px;line-height:1.6}
.help-steps li p{margin:2px 0 0;color:var(--ink-2);text-wrap:pretty}
.help-step-foot{display:flex;gap:4px 12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:2px;font-size:12px;color:var(--muted)}
.help-link{min-height:30px;padding:0;font:600 12.5px/1.3 "Segoe UI",Arial,sans-serif;color:var(--blue-ink);background:none;border:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.help-pages{list-style:none;margin:6px 0 0;padding:0}
.help-pages a{display:inline-flex;align-items:center;min-height:32px;font-weight:600}
.help-rate .help-acts{margin:6px 0 8px}
.help-rate .btn[aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:var(--on-dark)}

/* the tour */
.tour-dim{position:fixed;inset:0;z-index:80;background:rgba(7,15,38,.5);pointer-events:none}
.tour-spot{position:fixed;z-index:80;border-radius:var(--radius);box-shadow:0 0 0 3px var(--amber),0 0 0 9999px rgba(7,15,38,.5);pointer-events:none;transition:top .2s ease,left .2s ease,width .2s ease,height .2s ease}
.tour-card{position:fixed;z-index:81;width:min(380px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow-y:auto;padding:16px 18px 14px;background:var(--on-dark);color:var(--ink);border-radius:var(--radius);box-shadow:0 24px 48px -12px var(--shadow-strong),0 2px 6px var(--shadow)}
.tour-card:focus-visible{outline:3px solid var(--blue-bright);outline-offset:2px}
.tour-count{display:flex;justify-content:space-between;gap:10px;margin:0;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.tour-count span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;letter-spacing:0;text-transform:none}
.tour-bar{height:4px;margin:8px 0 12px;overflow:hidden;border-radius:2px;background:var(--line)}
.tour-bar i{display:block;height:100%;border-radius:2px;background:var(--amber)}
.tour-card h2{margin:0 0 6px;font-size:17px;line-height:1.3}
.tour-card>p{margin:0 0 12px;font-size:13.5px;line-height:1.6;text-wrap:pretty}
.tour-card>.tour-count{margin:0}
.tour-note{padding:9px 12px;border-radius:var(--radius);background:var(--amber-tint);color:var(--ink);font-size:13px}
.tour-acts{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tour-acts .btn[disabled]{opacity:.45;cursor:default;transform:none;box-shadow:none}
.tour-skip{margin-left:auto;min-height:34px;padding:0 4px;font:600 12.5px/1.3 "Segoe UI",Arial,sans-serif;color:var(--muted);background:none;border:0;cursor:pointer}
.tour-skip:hover{color:var(--ink)}

@media (max-width:1100px){.help-guide{grid-template-columns:1fr}}
@media (max-width:720px){
  .tour-card{width:calc(100vw - 16px);max-height:56vh}
  .tour-acts .btn{flex:1 1 auto}
  .tour-skip{flex:1 1 100%;margin-left:0;min-height:44px}
  .help-start{padding:18px 16px}
  .help-video figcaption .btn{margin-left:0}
}
@media (pointer:coarse){.help-segbtn,.help-link,.tour-acts .btn{min-height:44px}}
@media (prefers-reduced-motion:reduce){
  .help-card,.help-segbtn,.tour-spot{transition:none}
  .help-card:hover,.help-card:focus-within,.help-segbtn:hover,.help-segbtn:focus-visible{transform:none}
}
