/* The play-along mixer (2.8.413, 1 Dec 2026, HQ project "Music portal - rebuilt inside the Workspace"; js/mixer.js).
   A song's separate parts played in time: mute a part with one tap, speed 50% to 120% with the pitch kept, a count-in,
   a loop on chosen bars and a bar strip to seek. The page gives GGMixer.html() an id and the mix and puts the markup
   where it wants it; the script draws and repaints everything inside .gg-mixer. Sharp corners; the kit's own colours. */
.gg-mixer{max-width:560px;margin:10px auto 0;padding:14px;background:var(--paper);border:1px solid var(--hair);display:grid;gap:12px;color:var(--ink)}
.gg-mixer.playing{border-color:var(--primary)}
:where(.gg-mixer) button{font:inherit;cursor:pointer}
.gg-mx-top{display:flex;align-items:center;gap:12px}
.gg-mx-play{width:52px;height:52px;background:var(--primary);color:var(--on-primary);border:0;padding:0;display:grid;place-items:center;flex:none}
.gg-mx-play .gg-mxi{width:22px;height:22px;stroke:none}
.gg-mx-play:disabled{opacity:.5;cursor:wait}
.gg-mx-now{display:grid;flex:1;min-width:0}
.gg-mx-now b{font-size:18px;font-weight:600}
.gg-mx-dim{font-size:12px;color:var(--ink-3)}
.gg-mx-time{font-variant-numeric:tabular-nums}
.gg-mx-count{font-size:30px;font-weight:700;color:var(--warn);min-width:28px;text-align:center}
.gg-mx-note{font-size:12px}
.gg-mx-note-dim{color:var(--ink-3)}
.gg-mx-note-bad{color:var(--bad)}
.gg-mx-tog,.gg-mx-speed button,.gg-mx-loop button{font-size:12px;font-weight:600;background:var(--paper-2);color:var(--ink-2);border:1px solid var(--hair);padding:8px 10px;min-height:40px;min-width:40px;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.gg-mx-tog:hover,.gg-mx-speed button:hover,.gg-mx-loop button:hover{border-color:var(--primary)}
.gg-mx-tog.on{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}
.gg-mx-speed button:disabled,.gg-mx-loop button:disabled{opacity:.4;cursor:default}
.gg-mx-strip{position:relative;height:34px;background:var(--paper-2);border:1px solid var(--hair);cursor:pointer;overflow:hidden}
.gg-mx-strip::before{content:"";position:absolute;top:0;bottom:0;left:var(--off);right:0;pointer-events:none;background:repeating-linear-gradient(90deg,var(--hair) 0 1px,transparent 1px var(--tick))}
.gg-mx-strip i{position:absolute;top:0;bottom:0;pointer-events:none}
.gg-mx-loopz{background:color-mix(in srgb,var(--primary) 22%,transparent);border-left:2px solid var(--primary);border-right:2px solid var(--primary)}
.gg-mx-head{width:2px;margin-left:-1px;background:var(--warn)}
.gg-mx-parts{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}
.gg-mx-part{display:flex;align-items:center;gap:8px;min-height:48px;padding:0 12px;border:1px solid var(--primary);background:color-mix(in srgb,var(--primary) 12%,transparent);color:var(--ink);font-weight:600;font-size:14px;text-align:left}
.gg-mx-part.off{border-color:var(--hair);background:var(--paper-2);color:var(--ink-3)}
.gg-mx-part.off span{text-decoration:line-through}
.gg-mx-part .gg-mxi{color:var(--primary)}
.gg-mx-part.off .gg-mxi{color:var(--ink-3)}
.gg-mxi{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.gg-mx-row{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;justify-content:space-between}
.gg-mx-speed,.gg-mx-loop{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.gg-mx-speed b,.gg-mx-loop b{min-width:30px;text-align:center;font-weight:600}
.gg-mx-speed .gg-mx-pct{min-width:46px}
.gg-mixer button:focus-visible,.gg-mx-strip:focus-visible{outline:2px solid var(--ink);outline-offset:1px}
