/* Session gauge (update 8e, spec §1.14 GAUGE; ui/session-gauge.js, G-A »Pinselpfad«). One dry-brush stroke per block
   group with a paper notch between them, done in ink (--fg-2, clipped to --p), left as a dotted --track, the bag's round
   ticks, drops above the Trinkpausen, milestone ticks, a finished group's tiny stamp and the vermilion dab at --p.
   --gp/--ga/--gb/--x arrive through CSSOM (always read with a fallback; not --p/--a: ink.css and screens.css register
   those as <number>/<angle>); --gp steps at most once per second, nothing tweens it.
   Small: across the top edge of every workout layout, »noch 23 Min« at its right end (hidden below 600 px height).
   Big (»Weg-Karte«): 12 px with the group pictograms and the minutes (Trinkpause card, pause overlay, resume, finish).
   Update 10c (G1): the pictogram rules are scoped to the gauge (.g-pics>.g-pic) — a bare .g-pic also hit the workout's
   »Gleich« thumb and blew it up to a second, field-sized figure over the ring. */
.gauge{position:relative;display:flex;align-items:center;gap:8px;width:100%;pointer-events:none}
.ws>.g-host{position:absolute;z-index:1;top:max(8px,calc(env(safe-area-inset-top) + 2px));
  left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right))}
.g-path{position:relative;flex:1 1 auto;height:6px}
.gauge.big .g-path{height:12px;margin-top:14px}
.g-segs{position:absolute;inset:0}
.g-done{clip-path:inset(0 calc((1 - var(--gp,0)) * 100%) 0 0)}
.g-seg{position:absolute;top:0;bottom:0;left:calc(var(--ga,0) * 100%);width:max(2px,calc((var(--gb,1) - var(--ga,0)) * 100% - 2px));
  clip-path:var(--brush)}
.g-todo .g-seg{background:repeating-linear-gradient(90deg,var(--track) 0 5px,transparent 5px 8px)}
.g-done .g-seg{background:var(--fg-2)}
.g-tick{position:absolute;top:0;bottom:0;left:calc(var(--x,0) * 100%);width:1.5px;background:var(--bg)}
.g-dab{position:absolute;z-index:1;top:50%;left:calc(var(--gp,0) * 100%);width:11px;height:11px;translate:-50% -50%;
  background:var(--strike);clip-path:var(--dab)}
.gauge.big .g-dab{width:20px;height:20px}
.g-drop{position:absolute;bottom:calc(100% + 2px);left:calc(var(--x,0) * 100%);width:6px;height:8px;translate:-50% 0;
  background:var(--fg-3);clip-path:polygon(50% 0,88% 52%,82% 84%,50% 100%,18% 84%,12% 52%)}
.gauge.big .g-drop{width:10px;height:13px}
.g-mark{position:absolute;top:calc(100% + 2px);left:calc(var(--x,0) * 100%);width:2px;height:5px;translate:-50% 0;background:var(--fg-3)}
.gauge.big .g-mark{width:auto;height:auto;background:none;font:800 12px/1 var(--num);color:var(--fg-3)}
.g-mark.on{background:var(--strike)}
.gauge.big .g-mark.on{background:none;color:var(--strike)}
.g-stamp{position:absolute;top:50%;left:calc(var(--x,0) * 100%);width:7px;height:7px;translate:-130% -50%;opacity:0;
  background:var(--strike);clip-path:var(--seal)}
.gauge.big .g-stamp{width:12px;height:12px}
.g-stamp.on{opacity:1;animation:g-press 420ms var(--e-stamp) both}
@keyframes g-press{from{transform:scale(1.9)}to{transform:scale(1)}}
.g-left,.ws .gauge .g-left{flex:none;font-size:13px;line-height:1;letter-spacing:.12em;white-space:nowrap;color:var(--fg-3)}
/* ↑ layout stress 8e: the h1's `.ws .t-caps` (17–24 px, wrapping) reached the label — 13 px on one line, as designed */
.gauge.big{flex-direction:column;align-items:stretch;gap:4px}
.g-pics{position:relative;order:-1;height:30px}
.g-pics>.g-pic{position:absolute;bottom:0;left:calc(var(--x,.5) * 100%);width:30px;height:30px;translate:-50% 0;color:var(--fig)}
.g-pic>.g-picto{display:block;width:100%;height:100%;overflow:visible}
.g-nums{margin:14px 0 0;font:800 clamp(17px,5.2vw,21px)/1.1 var(--num);letter-spacing:.02em;color:var(--fg);text-align:left}
/* the Trinkpause's »Danach« card opens with the big path (the card stays the dominant element of the break) */
.next-card>.weg,.weg-card>.weg{align-self:stretch;width:100%}
.weg-card{width:min(100%,380px);display:flex;flex-direction:column;gap:10px}
@media (max-height:600px){
  .gauge.small :is(.g-left,.g-mark){display:none} /* the milestone tick would cut into the round label at 320×568 */
  .gauge.big .g-pics{display:none}
}
@media (prefers-reduced-motion:reduce){
  .g-stamp.on{animation:none}
}
/* the pause overlay: the Weg-Karte under »Angehalten«, the end estimate below it */
.p-weg{width:min(100%,380px);display:flex;flex-direction:column;gap:4px}
.p-end{margin:0;font:600 15px/1.25 var(--sans);color:var(--fg-2);text-align:left}
@media (max-height:640px){
  .ov .p-weg :is(.g-nums,.g-mark),.ov .p-end{display:none} /* 320×568: the path alone; the sentence is still read */
  .ov .p-weg .g-path{margin-top:6px}
}
.ov .p-weg .g-pics{display:none} /* the pause overlay stays calm: the path, the minutes, the end */
/* integration 8e: a swappable combo pauses with the Weg-Karte AND »Andere Kombi« — the decoration gives way so the button
   stays above the dock (feedback.spec): up to 1000 px high (layout stress 8e: at 412×915, the installed app's height,
   »Andere Kombi« ran into Fortsetzen) the pause bars, the say pill (the glove tip says it) and the end
   line; up to 640 px the Weg-Karte itself (its sentence is still read through aria-describedby) */
@media (max-height:1000px){
  .ov .ws-mid:has(.swap):has(.p-weg){gap:min(12px,1.6vh)}
  .ov .ws-mid:has(.swap):has(.p-weg) :is(.pbars,.pill.say,.p-end){display:none}
}
@media (max-height:640px){
  .ov .ws-mid:has(.swap) .p-weg{display:none}
}
.res-card>.res-weg{width:100%;margin:12px 0 6px}
/* G-B »Siegelkette« (GAUGE_STYLE 'seals', the board's alternative): the same strokes as equal seals in a row, stamped
   when done, half-inked while running; the dotted path, the drops and the dab give way */
.gauge-seals .g-path{height:22px}
.gauge-seals .g-todo{display:flex;gap:4px}
.gauge-seals .g-todo .g-seg{position:relative;left:auto;width:22px;flex:none;clip-path:var(--seal);background:var(--track)}
.gauge-seals .g-todo .g-seg.on{background:var(--strike)}
.gauge-seals .g-todo .g-seg.now{background:linear-gradient(90deg,var(--strike) 50%,var(--track) 50%)}
.gauge-seals :is(.g-done,.g-dab,.g-drop,.g-mark,.g-stamp,.g-tick){display:none}
