/* The thread: how work moves, drawn once on Home and explained in the guide.
   Stops where a person acts carry the solid amber mark; the stop where agents
   act is outlined periwinkle; the last stop is the node the threads meet at. */
.stop-place { font-size:13px; line-height:1.4; color:var(--ink); overflow-wrap:anywhere; }
.stop-place strong { font-weight:650; font-variant-numeric:tabular-nums; }
.stop-note { font-size:12.5px; line-height:1.4; color:var(--muted); }
.home-onboarding { color:var(--muted); }
.home-grid+.digest { margin-top:34px; }

/* Next line under every page's purpose sentence. */
.page-next { margin-top:8px; max-width:76ch; font-size:13px; line-height:1.6; color:var(--muted); }
.page-next-label { margin-right:9px; font-weight:620; color:var(--human); }
.page-next-link { padding:0; border:0; background:none; font:inherit; font-weight:540; color:var(--ink); text-decoration:underline; text-decoration-color:var(--line-strong); text-underline-offset:3px; cursor:pointer; }
.page-next-link:hover { text-decoration-color:currentColor; }
.page-next-guide { font-weight:400; color:var(--faint); white-space:nowrap; }

.guide-link { align-self:flex-start; margin:8px 10px 0; padding:0; border:0; background:none; font-size:12.5px; color:var(--muted); text-decoration:underline; text-decoration-color:var(--line-strong); text-underline-offset:3px; }
.guide-link:hover { color:var(--ink); }

/* Guide dialog */
.guide { width:min(760px,calc(100vw - 32px)); max-height:calc(100dvh - 48px); padding:0 28px 28px; border:1px solid var(--line-strong); border-radius:var(--radius-panel); background:var(--surface); color:var(--ink); overscroll-behavior:contain; }
.guide::backdrop { background:rgb(0 0 0 / .6); }
.guide-head { position:sticky; top:0; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 -28px; padding:20px 28px 14px; background:var(--surface); border-bottom:1px solid var(--line); }
.guide-head h2 { font-family:var(--font-display); font-size:24px; font-weight:660; letter-spacing:-.02em; }
.guide-lede { max-width:60ch; margin:18px 0 22px; font-size:15px; line-height:1.55; color:var(--muted); }
.guide-thread { list-style:none; margin:0; padding:0; }
.guide-thread li { position:relative; padding:0 0 20px 30px; }
.guide-thread li::before { content:""; position:absolute; left:5px; top:14px; bottom:-8px; border-left:1.5px solid var(--line-strong); }
.guide-thread li:last-child::before { display:none; }
.guide-thread li::after { content:""; position:absolute; left:1px; top:7px; width:9px; height:9px; border-radius:50%; background:var(--human); }
.guide-thread li:nth-child(4)::after { left:0; background:var(--surface); border:1.5px solid var(--agent); }
.guide-thread li:last-child { padding-bottom:0; }
.guide-thread h3 { display:flex; align-items:baseline; gap:10px; font-family:var(--font-display); font-size:18px; font-weight:640; }
.guide-thread li[aria-current="step"] h3::after { content:"You are here"; padding:1px 9px; border-radius:999px; font-family:var(--font-ui); font-size:12px; font-weight:560; background:var(--human-soft); color:var(--human); }
.guide-thread p { max-width:62ch; font-size:14px; line-height:1.55; color:var(--muted); }
.guide-places { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.guide-places .guide-go { min-height:30px; padding:3px 11px; border:1px solid var(--line); border-radius:999px; background:var(--surface-subtle); color:var(--ink); font-size:13px; font-weight:520; }
.guide-places .guide-go:hover { border-color:var(--line-strong); background:var(--surface-hover); }
.guide-words-title { margin:30px 0 4px; padding-top:22px; border-top:1px solid var(--line); font-family:var(--font-display); font-size:18px; font-weight:640; }
.guide-words { margin:0; }
.guide-words>div { display:grid; grid-template-columns:132px minmax(0,1fr); gap:4px 18px; padding:10px 0; border-bottom:1px solid var(--line); }
.guide-words>div:last-child { border-bottom:0; }
.guide-words dt { font-weight:620; font-size:14px; }
.guide-words dd { margin:0; font-size:14px; line-height:1.55; color:var(--muted); }
.guide-words .guide-go { padding:0; border:0; background:none; font:inherit; font-weight:540; color:var(--ink); text-decoration:underline; text-decoration-color:var(--line-strong); text-underline-offset:3px; white-space:nowrap; }

@media (max-width:899px) {
  .guide { width:100vw; max-width:100vw; max-height:92dvh; margin:auto 0 0; padding:0 16px calc(20px + env(safe-area-inset-bottom)); border-radius:18px 18px 0 0; border-inline:0; border-bottom:0; }
  .guide-head { margin:0 -16px; padding:16px 16px 12px; }
  .guide-head .button,.guide-places .guide-go { min-height:44px; }
  .guide-places .guide-go { padding:3px 14px; }
  .guide-link { min-height:44px; margin:4px 4px 0; font-size:14px; }
  .page-next-link { display:inline-block; padding:5px 0; }
}
@media (max-width:700px) {
  .stop-note { display:none; }
  .guide-words>div { grid-template-columns:1fr; }
}
.run-modes { margin:14px 0 4px; }
.run-modes legend { font-size:12.5px; font-weight:550; color:var(--muted); padding:0 6px; }
/* Desktop: the launcher and history come before the usage figures. Phones keep
   source order, because a followed transcript scrolls the page to its end. */

.detail-work { margin-top:4px; }
