/* tracker.css: the step tracker (card P4101; mockup-spec 6.3, DESIGN 5.9). Five mark shapes, never color alone. Each step's width is held to its name at 600 weight or the widest
   fine line, whichever is wider, so no step moves when its mark or fine line changes, and no name truncates. Theme tokens only: light and dark read the same rules. */
.qt-row{ display:flex; align-items:center; gap:12px; height:44px; min-width:0; }
.qt-steps{ display:flex; align-items:center; gap:2px; flex:1 1 auto; min-width:0; }
.qt-end{ display:flex; align-items:center; gap:8px; flex:none; margin-left:auto; }
.qt-hide{ display:none !important; }
.qt-step{ position:relative; flex:none; display:inline-flex; align-items:center; gap:8px; height:36px; padding:0 8px; border:0; border-radius:var(--radius-xs, 4px); background:none; color:var(--text); cursor:pointer; text-align:left; font:inherit; }
.qt-step:hover{ background:var(--surface-hi); }
.qt-step:focus-visible, .qt-chip:focus-visible{ outline:var(--focus-ring-width, 2px) solid var(--focus-ring-color, var(--accent)); outline-offset:2px; }
.qt-mark{ position:relative; flex:none; width:20px; height:20px; display:grid; }
.qt-m{ grid-area:1 / 1; display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:50%; opacity:0; transition:opacity 160ms ease; font:600 11px/1 var(--font); }
.qt-step[data-mark="done"] .qt-m-done{ opacity:1; background:var(--ok); color:var(--surface); }
.qt-step[data-mark="ready"] .qt-m-ready{ opacity:1; border:1.5px solid var(--text-muted); color:var(--text-muted); }
.qt-step[data-mark="here"] .qt-m-num{ opacity:1; border:2px solid var(--accent); color:var(--text); }
.qt-step[data-mark="todo"] .qt-m-num, .qt-step[data-mark="wait"] .qt-m-num{ opacity:1; border:1px solid var(--text-muted); color:var(--text-muted); }
.qt-step[data-mark="off"] .qt-m-off{ opacity:1; border:1.5px dotted var(--text-muted); color:var(--text-muted); }
/* the number of a Not In This Setup step sits on the ring's upper left corner, away from the name and the fine line, so it never reads as part of either ("5 Not In This Setup") */
.qt-offn{ position:absolute; left:-7px; top:-6px; min-width:12px; height:12px; padding:0 2px; border-radius:6px; background:var(--bg); color:var(--text-muted); font:600 9px/12px var(--font); text-align:center; visibility:hidden; }
.qt-step[data-mark="off"] .qt-offn{ visibility:visible; }
.qt-text{ display:flex; flex-direction:column; justify-content:center; min-width:0; }
.qt-namebox, .qt-finebox{ display:grid; }
.qt-namebox > *, .qt-finebox > *{ grid-area:1 / 1; white-space:nowrap; }
.qt-name{ font:500 13px/16px var(--font); color:var(--text); }
.qt-ghost{ visibility:hidden; height:0; }
.qt-ghost-name{ font:600 13px/16px var(--font); }
.qt-fine{ font:400 11px/14px var(--font); color:var(--text-muted); }
.qt-finebox .qt-ghost{ font:400 11px/14px var(--font); }
.qt-step[data-mark="here"] .qt-name{ font-weight:600; }
.qt-step[data-mark="here"]::after{ content:""; position:absolute; left:6px; right:6px; bottom:-4px; height:3px; border-radius:2px; background:var(--accent); }
/* S26 of the three-seat review (11/21/2026): the step you are on is seen at a glance: an accent-soft ground, an accent-filled number, a heavier underline and the words You Are Here above its
   name (tracker.js draws .qt-here-word); its state line stays under the name. Theme tokens only, so light and dark read the same rule. */
/* ROUND 2 OF P4134: every text of the here step reads 4.5 to 1 or better on the ground it is drawn on, light and dark. The ground is the surface with the accent laid over it at 14 percent,
   the same pixels as before (a 14 percent accent over an opaque surface is the 14 to 86 mix), drawn as a layer over a plain surface color, so the step's background color is a theme token
   a check reads as it is. The inks on it: the name and the fine line in --text (light 13.2, dark 11.0 to 1 on the tint), You Are Here in --accent-deep (light 6.2, dark 6.6 to 1; it was
   --accent, 3.7 to 1 on the light tint), the number in --on-accent on its own --accent-deep fill (light 7.3, dark 9.4 to 1). Sizes, weights and line heights are unchanged, so no step moves. */
.qt-step[data-mark="here"]{ height:42px; background-color:var(--surface); background-image:linear-gradient(color-mix(in srgb, var(--accent) 14%, transparent), color-mix(in srgb, var(--accent) 14%, transparent)); box-shadow:inset 0 0 0 1px var(--accent); }
.qt-step[data-mark="here"] .qt-m-num{ background:var(--accent-deep, var(--accent)); color:var(--on-accent, var(--surface)); border-color:var(--accent-deep, var(--accent)); }
.qt-step[data-mark="here"] .qt-fine{ color:var(--text); }
.qt-here-word{ display:none; font:700 9px/10px var(--font); letter-spacing:.04em; text-transform:uppercase; color:var(--accent-deep, var(--accent)); white-space:nowrap; }
.qt-step[data-mark="here"] .qt-here-word{ display:block; }
.qt-step[data-mark="off"] .qt-name{ color:var(--text-muted); }
/* "Done" is read on every step, so its line is in the muted ink every other fine line uses (8 to 1 on the dark background, 6 to 1 on the light): the filled check carries the green.
   It was --ok-ink, an ink made for the light ok chip, which was 2.3 to 1 on the dark theme (round 2, the Opus review of 11/21). */
.qt-step[data-mark="done"] .qt-fine{ color:var(--text-muted); }
.qt-chev{ flex:none; display:inline-flex; width:12px; color:var(--border-strong); }
.qt-chip{ flex:none; display:inline-flex; align-items:center; gap:6px; height:28px; padding:0 10px; border:1px solid var(--border); border-radius:14px; background:var(--surface); color:var(--text-muted); font:500 12px/16px var(--font); cursor:pointer; white-space:nowrap; }
.qt-chip:hover{ color:var(--text); border-color:var(--border-strong); }
.qt-chip-collapsed{ color:var(--text); }
.qt-chip[data-glyph="check"] .qt-svg{ color:var(--ok); }
.qt-chip[data-glyph="flag"] .qt-svg{ color:var(--warn); }
.qt-chip .qt-svg{ display:inline-flex; }
.qt-chip-open{ background:var(--warn-soft); border-color:var(--warn); color:var(--warn-ink, var(--text)); }
.qt-chipn{ display:none; font-weight:600; }
.qt-next{ white-space:nowrap; }
.qt-pop{ display:flex; flex-direction:column; gap:2px; padding:4px 8px; max-width:320px; }
.qt-pop span{ color:var(--text-muted); font-size:12px; }
.qt-mini{ display:inline-flex; width:16px; justify-content:center; }
.qt-tip{ max-width:360px; }
/* the after-route strip: the same tracker in a 44 px band under the top bar on Final Measure, the job, a change order and Insights */
.qt-strip{ height:44px; padding:0 24px; border-bottom:1px solid var(--border); background:var(--bg); display:flex; align-items:center; }
@media (prefers-reduced-motion: reduce){ .qt-m{ transition:none; } }
/* at 1280 px the fine lines hide (each step keeps its popover) and the chips shrink to a glyph with a count; names never truncate */
@media (max-width: 1400px){
  .qt-finebox{ display:none; }
  .qt-chip .qt-chipw{ display:none; }
  .qt-chip .qt-chipn{ display:inline; }
}
.qt-strip[hidden]{ display:none; }
.qt-row.qt-tight .qt-chip-open .qt-chipw, .qt-row.qt-tight .qt-chip-after .qt-chipw, .qt-row.qt-tighter .qt-chip-collapsed .qt-chipw{ display:none; }
.qt-row.qt-tight .qt-chip-open .qt-chipn, .qt-row.qt-tight .qt-chip-after .qt-chipn, .qt-row.qt-tighter .qt-chip-collapsed .qt-chipn{ display:inline; }

/* SO FAR (round 2): Activity's facts about the sent version, in one quiet line under the tracker. It is not a second tracker: no numbers, no rings, no order to follow. A fact that
   happened has a check and the text ink; one that has not is in the muted ink with a hollow dot. The tracker above stays the only thing that says where he is. */
.qt-facts{ display:flex; align-items:center; flex-wrap:wrap; gap:6px 18px; padding:10px 20px; border-bottom:1px solid var(--border); flex:none; font:400 12px/16px var(--font); color:var(--text-muted); }
.qt-facts-h{ font-weight:600; color:var(--text); margin-right:2px; }
.qt-facts .ql-step{ display:inline-flex; align-items:center; gap:6px; color:var(--text-muted); white-space:nowrap; }
.qt-facts .ql-step[data-done="1"]{ color:var(--text); }
.qt-facts .ql-step[data-done="1"] .q-icon{ color:var(--ok); }
.qt-fact-dot{ width:7px; height:7px; border-radius:50%; border:1.5px solid var(--text-muted); box-sizing:border-box; margin:0 2px; }
