/* TuneLit · Play along in your tuning (/play-along/). Design F: his glass card, coral accents, mint helper
   text, Outfit + Nunito. Loaded only on this page, after tunelit.css and content.css; tokens only.
   Ids are pa-*, classes pl-*. Phone first: everything fits 360 px, every target is at least 44 px. */

.pl-card { --c: var(--coral); display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; overflow: hidden; }
.pl-card::before {
  content: ''; position: absolute; right: -140px; top: -160px; width: 460px; height: 460px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.16), transparent 65%);
}
.pl-card > * { position: relative; min-width: 0; }
/* a text with a drawn ♯ or ♭ (playalong.js drawAccidentals): one box for its flex parent, a note never split from its sign */
.acc-run { display: inline; }
.acc-w { white-space: nowrap; }
.pl-card.is-over { border-color: color-mix(in srgb, var(--coral) 70%, transparent); box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.22), 0 30px 80px -30px rgba(0, 0, 0, 0.6); }

/* ---------- head: kicker, the title (the song's name once loaded), one line */
.pl-top { display: grid; gap: 10px; }
/* the kicker and the site's lilac Beta pill (tunelit.css .beta, as in the nav): the page is new, its tuning guess can
   be fooled */
.pl-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.pl-title {
  font-family: var(--display); font-weight: 800; font-size: clamp(32px, 5.2vw, 56px); line-height: 1.04; letter-spacing: -0.025em;
  overflow-wrap: anywhere; text-wrap: balance;
}
.pl-linknote {
  padding: 12px 16px; border-radius: 16px; font-weight: 700; color: var(--text); line-height: 1.45;
  border: 1px solid color-mix(in srgb, var(--aqua) 30%, transparent); background: color-mix(in srgb, var(--aqua) 8%, transparent);
}
.pl-linknote b { color: var(--aqua); }

/* ---------- empty: his big drop zone and three steps */
.pl-empty { display: grid; gap: 18px; }
.pl-drop {
  display: grid; justify-items: center; align-content: center; gap: 14px; min-height: 300px; padding: 32px 20px; text-align: center;
  border-radius: 24px; border: 2px dashed color-mix(in srgb, var(--coral) 38%, var(--line-2)); background: rgba(4, 10, 24, 0.42);
  transition: border-color 0.2s, background 0.2s;
}
/* a faint waveform behind the drop zone: what the song will look like once it is loaded */
.pl-drop { position: relative; overflow: hidden; isolation: isolate; }
.pl-drop::before {
  content: ''; position: absolute; left: 4%; right: 4%; top: 50%; height: 62%; transform: translateY(-50%); z-index: -1; pointer-events: none; opacity: 0.07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 110'%3E%3Cpath fill='white' d='M0 40h4v30h-4zm8 5h4v20h-4zm8 0h4v20h-4zm8 -9h4v38h-4zm8 -3h4v44h-4zm8 3h4v39h-4zm8 6h4v26h-4zm8 -2h4v31h-4zm8 -6h4v42h-4zm8 7h4v28h-4zm8 -1h4v30h-4zm8 -10h4v51h-4zm8 10h4v31h-4zm8 0h4v30h-4zm8 -5h4v40h-4zm8 -8h4v57h-4zm8 8h4v41h-4zm8 -18h4v76h-4zm8 17h4v43h-4zm8 -1h4v44h-4zm8 -9h4v63h-4zm8 -5h4v73h-4zm8 2h4v69h-4zm8 -4h4v77h-4zm8 15h4v47h-4zm8 -10h4v66h-4zm8 16h4v35h-4zm8 -13h4v60h-4zm8 -1h4v63h-4zm8 -2h4v67h-4zm8 14h4v39h-4zm8 -3h4v44h-4zm8 -13h4v70h-4zm8 -7h4v84h-4zm8 2h4v81h-4zm8 12h4v57h-4zm8 -3h4v63h-4zm8 5h4v52h-4zm8 3h4v47h-4zm8 3h4v41h-4zm8 -9h4v59h-4zm8 10h4v38h-4zm8 -7h4v52h-4zm8 -6h4v65h-4zm8 12h4v41h-4zm8 -5h4v51h-4zm8 -2h4v55h-4zm8 -17h4v89h-4zm8 -2h4v92h-4zm8 22h4v49h-4zm8 -1h4v50h-4zm8 -19h4v89h-4zm8 24h4v41h-4zm8 -9h4v59h-4zm8 -5h4v68h-4zm8 -1h4v71h-4zm8 13h4v44h-4zm8 6h4v33h-4zm8 -1h4v34h-4zm8 -4h4v43h-4zm8 -9h4v60h-4zm8 2h4v57h-4zm8 4h4v48h-4zm8 -5h4v59h-4zm8 -5h4v68h-4zm8 12h4v45h-4zm8 -5h4v55h-4zm8 -2h4v58h-4zm8 12h4v35h-4zm8 -5h4v44h-4zm8 0h4v45h-4zm8 -2h4v49h-4zm8 5h4v39h-4zm8 7h4v25h-4zm8 -4h4v33h-4zm8 4h4v24h-4zm8 2h4v20h-4zm8 -4h4v29h-4zm8 -1h4v30h-4zm8 3h4v25h-4z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.pl-card.is-over .pl-drop { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 9%, rgba(4, 10, 24, 0.42)); }
.pl-drop-icon {
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; color: var(--coral);
  background: radial-gradient(circle at 35% 30%, rgba(255, 107, 107, 0.3), rgba(255, 107, 107, 0.08) 70%);
  box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.35), 0 18px 50px -14px rgba(255, 107, 107, 0.6);
}
.pl-drop-icon .ic { width: 40px; height: 40px; stroke-width: 1.7; }
.pl-drop-big { font: 800 clamp(22px, 3vw, 28px)/1.15 var(--display); letter-spacing: -0.01em; }
.pl-drop-touch { display: none; }
@media (hover: none), (pointer: coarse) { .pl-drop-fine { display: none; } .pl-drop-touch { display: inline; } }
.pl-choose { min-width: 220px; }
.pl-choose .ic { width: 22px; height: 22px; }
.pl-private { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; color: var(--foam); font-weight: 800; font-size: 15px; line-height: 1.35; text-align: left; }
.pl-private .ic { width: 20px; height: 20px; flex: none; }
.pl-formats { color: var(--muted); font-size: 13px; font-weight: 700; }
.pl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: plstep; }
@media (min-width: 700px) { .pl-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
.pl-steps li {
  position: relative; display: grid; gap: 2px; padding: 14px 16px 14px 58px; border-radius: 18px; counter-increment: plstep;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
}
.pl-steps li::before {
  content: counter(plstep); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  background: var(--coral); font: 800 15px/1 var(--display); color: var(--on-coral);
}
.pl-steps b { font: 800 17px/1.25 var(--display); }
.pl-steps span { color: var(--muted); font-size: 14.5px; line-height: 1.4; }

/* ---------- reading, errors */
.pl-loading { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 160px; padding: 24px; border-radius: 24px; border: 1px solid var(--line); background: rgba(4, 10, 24, 0.42); font-weight: 800; font-size: 17px; color: var(--foam); text-align: center; }
.pl-spinner { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.14); border-top-color: var(--coral); animation: pl-spin 0.9s linear infinite; }
@keyframes pl-spin { to { transform: rotate(360deg); } }
.pl-error { gap: 12px; padding: 18px 20px; }
.pl-error-title { font: 800 20px/1.2 var(--display); color: var(--text); }
.pl-error p { overflow-wrap: anywhere; }
.pl-banner { font-size: 15px; }
.pl-banner b { color: var(--sand); }
/* "No sound?" under Play (and in play mode): what to check, then Try again */
.pl-nosound { gap: 10px; }
.pl-nosound p { overflow-wrap: anywhere; }

/* ---------- loaded: the song line */
.pl-player { display: grid; gap: 18px; }
.pl-song { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: -8px; }
.pl-song-text { min-width: 0; }
.pl-song-meta { color: var(--muted); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pl-song-meta b { color: var(--foam); font-weight: 800; }
.pl-change { min-height: 44px; }

/* ---------- the waveform: bars, the played part in coral, the loop in sand, the playhead */
.pl-wave-wrap { display: grid; gap: 10px; }
.pl-wave-box { position: relative; }
.pl-wave {
  --p: 0%; position: relative; height: 136px; border-radius: 20px; overflow: hidden; cursor: pointer; touch-action: pan-y;
  border: 1px solid var(--line); background: rgba(4, 10, 24, 0.5); -webkit-user-select: none; user-select: none;
}
@media (min-width: 700px) { .pl-wave { height: 150px; } }
.pl-wave:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 20px; }
/* while looping, a mouse draws a new loop across the waveform */
@media (hover: hover) and (pointer: fine) { .pl-wave-box.is-looping .pl-wave { cursor: crosshair; } }
.pl-wave-base, .pl-wave-top { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pl-wave-top { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
/* the loop: a spotlight. The rest of the song is shaded (one huge outer shadow, clipped by the waveform), the loop
   keeps a faint warm glow and a bright sand edge at each end (the handles' grips sit just outside those edges) */
.pl-loop {
  position: absolute; top: 0; bottom: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(246, 216, 154, 0.14), rgba(246, 216, 154, 0.02) 55%, rgba(246, 216, 154, 0.1));
  box-shadow: inset 3px 0 0 var(--sand), inset -3px 0 0 var(--sand), 0 0 0 100vmax rgba(3, 8, 20, 0.42);
}
.pl-head {
  position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; pointer-events: none; border-radius: 2px;
  background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, 0.8), 0 0 2px rgba(255, 255, 255, 0.9);
}
.pl-head::before { content: ''; position: absolute; left: 50%; top: -1px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, 0.7); }
/* the loop's handles. Each is 48 px wide to the finger and half the waveform tall: the start's grip at the top, the
   end's at the bottom, so two ends close together never cover each other. A grip sits just outside the loop (the
   "left side" box spans 44 px left of the edge), or inside it next to the waveform's own edge (.is-in) */
.pl-mark {
  position: absolute; top: 0; height: 50%; width: 48px; padding: 0; border: 0; background: none; color: var(--ink);
  transform: translateX(-44px); cursor: ew-resize; touch-action: none; z-index: 2; -webkit-tap-highlight-color: transparent;
}
.pl-mark-b { top: 50%; }
.pl-mark-a.is-in, .pl-mark-b:not(.is-in) { transform: translateX(-4px); }
.pl-grip {
  position: absolute; top: 50%; right: 4px; width: 26px; height: 46px; margin-top: -23px; border-radius: 13px 4px 4px 13px;
  background: linear-gradient(180deg, #FCE6B4, var(--sand)); box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(6, 24, 43, 0.25);
  transition: transform 0.15s;
}
.pl-mark-a.is-in .pl-grip, .pl-mark-b:not(.is-in) .pl-grip { right: auto; left: 4px; border-radius: 4px 13px 13px 4px; }
/* at the waveform's own edge (a loop from 0:00, or to the end) the grip keeps clear of its rounded corner */
.pl-mark-a.is-in .pl-grip { left: 10px; }
.pl-mark-b.is-in .pl-grip { right: 10px; }
/* two grip lines */
.pl-grip::before { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 18px; transform: translate(-50%, -50%); border-left: 2px solid rgba(6, 24, 43, 0.55); border-right: 2px solid rgba(6, 24, 43, 0.55); }
.pl-mark:hover .pl-grip, .pl-mark.is-drag .pl-grip { transform: scale(1.08); }
.pl-mark:focus-visible { outline: none; }
.pl-mark:focus-visible .pl-grip { outline: 2px solid var(--aqua); outline-offset: 3px; }
/* the exact time, while a handle moves (or has the keyboard): above the start, below the end */
.pl-mark-time {
  position: absolute; right: 4px; bottom: calc(100% + 2px); transform: translateX(50%); display: none; padding: 4px 9px; border-radius: 10px;
  background: var(--sand); color: var(--ink); font: 800 14px/1.2 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.7); pointer-events: none;
}
/* the end's grip is in the lower half: its time sits right above the grip, clear of a finger coming from below */
.pl-mark-b .pl-mark-time { bottom: calc(50% + 28px); }
.pl-mark-b:not(.is-in) .pl-mark-time { right: auto; left: 4px; transform: translateX(-50%); }
/* a handle next to the waveform's edge: its time grows inward from the edge instead of hanging over the card's side */
.pl-mark-a.is-in .pl-mark-time { right: auto; left: 4px; transform: none; }
.pl-mark-b.is-in .pl-mark-time { transform: none; }
.pl-mark.is-drag .pl-mark-time, .pl-mark:focus-visible .pl-mark-time { display: block; }

/* under the waveform: the time, "Loop a part", the length */
.pl-times { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; font-variant-numeric: tabular-nums; font-weight: 800; }
.pl-now { color: var(--text); font: 800 18px/1.2 var(--display); }
.pl-dur { grid-column: 3; justify-self: end; color: var(--muted); font-size: 15px; }
.pl-loop-toggle { grid-column: 2; gap: 8px; height: 46px; padding: 0 20px; font-size: 15.5px; border-color: color-mix(in srgb, var(--sand) 45%, var(--line-2)); }
.pl-loop-toggle .ic { width: 22px; height: 22px; color: var(--sand); stroke-width: 2; }
.pl-loop-toggle:hover { border-color: var(--sand); }
/* the loop's own bar, under the times: what it is, Start here / End here at the playhead, × to stop */
.pl-loopbar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'label x' 'acts acts' 'hint hint'; align-items: center; gap: 10px 12px;
  padding: 12px 12px 12px 16px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--sand) 45%, transparent);
  background: linear-gradient(150deg, rgba(246, 216, 154, 0.14), rgba(246, 216, 154, 0.04) 70%);
}
.pl-loop-label { grid-area: label; display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--sand); font: 800 clamp(18px, 2.2vw, 21px)/1.2 var(--display); font-variant-numeric: tabular-nums; }
.pl-loop-label .ic { width: 24px; height: 24px; flex: none; stroke-width: 2; }
.pl-loop-label > span { min-width: 0; }
@media (max-width: 420px) {
  /* "0:17 – 0:31 · 15 s" fits one line beside the loop icon; the word stays for screen readers */
  .pl-loop-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pl-kicker { letter-spacing: 0.1em; }
}
.pl-loop-x {
  grid-area: x; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.07); color: var(--text); transition: background 0.2s;
}
.pl-loop-x:hover { background: rgba(255, 255, 255, 0.14); }
.pl-loop-x .ic { width: 20px; height: 20px; stroke-width: 2.2; }
.pl-loop-acts { grid-area: acts; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pl-loop-edge { gap: 8px; min-width: 0; height: 48px; padding: 0 12px; font-size: 15.5px; }
.pl-loop-edge .ic { width: 20px; height: 20px; flex: none; color: var(--sand); stroke-width: 2.2; }
.pl-loopbar .pl-loop-hint { grid-area: hint; color: var(--muted); } /* 4.5:1 on the sand-tinted bar (QA: --faint was 3.9) */
.pl-touch { display: none; }
@media (hover: none), (pointer: coarse) { .pl-fine { display: none; } .pl-touch { display: inline; } }
@media (min-width: 760px) {
  .pl-loopbar { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: 'label acts x' 'hint hint hint'; padding: 10px 10px 10px 18px; }
  .pl-loop-edge { padding: 0 18px; }
}

/* ---------- transport: back 5 s · the big play button · forward 5 s */
.pl-transport { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 4vw, 30px); }
.pl-play {
  display: grid; place-items: center; width: 84px; height: 84px; padding: 0; border: 0; border-radius: 50%; flex: none;
  background: var(--coral); color: var(--on-coral); box-shadow: 0 16px 44px -12px rgba(255, 107, 107, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s, background 0.2s, box-shadow 0.3s;
}
.pl-play:hover:not(:disabled) { background: #FF8585; }
.pl-play:active:not(:disabled) { transform: scale(0.95); }
.pl-play:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.pl-play svg { width: 38px; height: 38px; }
.pl-i-pause { display: none; }
.pl-play.is-playing .pl-i-play { display: none; }
.pl-play.is-playing .pl-i-pause { display: block; }
.pl-play.is-playing { box-shadow: 0 0 0 8px rgba(255, 107, 107, 0.14), 0 16px 44px -12px rgba(255, 107, 107, 0.85); }
.pl-play:focus-visible { outline-offset: 4px; border-radius: 50%; }
.pl-skip {
  position: relative; display: grid; place-items: center; width: 58px; height: 58px; padding: 0; border-radius: 50%; flex: none;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.07); color: var(--text); transition: background 0.2s, transform 0.15s;
}
.pl-skip:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); }
.pl-skip:active:not(:disabled) { transform: scale(0.95); }
.pl-skip:disabled { opacity: 0.4; }
.pl-skip .ic { width: 32px; height: 32px; stroke-width: 1.7; }
.pl-skip-n { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 2px; font: 800 12.5px/1 var(--display); pointer-events: none; }
.pl-skip:focus-visible { border-radius: 50%; }

/* the song line's two buttons: Play mode and Change song */
.pl-song-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-pm-open { min-height: 44px; border-color: color-mix(in srgb, var(--coral) 40%, var(--line-2)); }
.pl-pm-open .ic { width: 20px; height: 20px; color: var(--coral); stroke-width: 2; }
.pl-pm-done { display: none; }
@media (max-width: 420px) { .pl-song-acts { width: 100%; } .pl-song-acts .btn { flex: 1 1 0; justify-content: center; padding: 0 10px; } }

/* ---------- the three steps: ① song loaded (one line) → ② the song's tuning (play along, then "Sounds right" or pick
   another) → ③ your guitar → Play. The card's one coral button is Play (QA: "Yes" and Play were two coral buttons, and a
   name can't be confirmed before it is heard) */
.pl-flow {
  --c: var(--coral); position: relative; display: grid; gap: 14px; padding: 18px 20px; border-radius: var(--r); overflow: clip;
  border: 1px solid color-mix(in srgb, var(--coral) 30%, var(--line-2));
  background: linear-gradient(150deg, color-mix(in srgb, var(--coral) 11%, var(--glass)), color-mix(in srgb, var(--coral) 2%, var(--glass)) 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.pl-flow::before {
  content: ''; position: absolute; width: 300px; height: 300px; left: -120px; top: -170px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.2), transparent 68%);
}
.pl-flow > * { position: relative; min-width: 0; }
.pl-flow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pl-flow-step { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: start; column-gap: 12px; min-width: 0; }
/* the step numbers: solid coral circles, dark numbers (QA contrast: coral on a coral tint read 3.3–3.8:1; this is 6.9:1) */
.pl-flow-num {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font: 800 17px/1 var(--display); color: var(--on-coral);
  background: var(--coral); box-shadow: 0 6px 16px -8px rgba(255, 107, 107, 0.8);
}
.pl-flow-num .ic { width: 20px; height: 20px; stroke-width: 2.6; }
.pl-flow-body { display: grid; gap: 4px; min-width: 0; padding-top: 6px; }
.pl-flow-label { font: 900 12px/1.3 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
/* ① one line: a small mint tick and "Song loaded" (QA: a whole column with nothing in it) */
.pl-flow-1 { grid-template-columns: 24px minmax(0, 1fr); align-items: center; column-gap: 10px; }
.pl-flow-1 .pl-flow-num { width: 24px; height: 24px; color: var(--ink); background: var(--foam); box-shadow: none; }
.pl-flow-1 .pl-flow-num .ic { width: 15px; height: 15px; stroke-width: 3; }
.pl-flow-1 .pl-flow-body { padding-top: 0; }
.pl-flow-1 .pl-flow-label { color: var(--foam); font: 800 15px/1.3 var(--display); letter-spacing: 0; text-transform: none; }
/* the song's tuning: the biggest words on the card */
.pl-flow-name { font: 800 clamp(28px, 4vw, 40px)/1.08 var(--display); letter-spacing: -0.02em; color: var(--text); overflow-wrap: anywhere; text-wrap: balance; }
/* how the record sits against it, in words: plain text; mint only when it is right on pitch (mint means in tune) */
.pl-flow-sub { color: var(--text); font-weight: 800; font-size: 16px; line-height: 1.35; }
.pl-flow-sub.is-on-pitch { color: var(--foam); }
.pl-flow-note { color: var(--muted); font-weight: 700; font-size: 14.5px; line-height: 1.45; }
.pl-flow[data-state=unsure] .pl-flow-name { color: var(--sand); }
/* listening: a small spinner beside the words */
.pl-flow-2.is-wait .pl-flow-name { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 26px; }
.pl-flow-2.is-wait .pl-flow-name::after { content: ''; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.14); border-top-color: var(--coral); animation: pl-spin 0.9s linear infinite; }
.pl-flow-2.is-wait .pl-flow-sub { color: var(--muted); }
/* "Play a few seconds with your guitar, then:" and the quiet buttons after it */
.pl-flow-try { margin-top: 8px; color: var(--text); font-weight: 700; font-size: 15px; line-height: 1.4; }
.pl-flow-acts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 4px; }
.pl-flow-acts .btn { min-height: 46px; font-size: 15px; }
.pl-flow-acts .btn .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.pl-flow-yes .ic { color: var(--foam); }
.pl-flow-yes:hover { border-color: color-mix(in srgb, var(--foam) 55%, var(--line-2)); }
/* two answers the page can't choose between: two big buttons, one tap each; the one that plays now says so */
.pl-flow-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.pl-pair-opt {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name name' 'notes now'; justify-items: start;
  align-items: center; align-content: center; gap: 2px 10px; min-width: 0; min-height: 76px; padding: 12px 14px;
  border-radius: 18px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.06); color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.pl-pair-opt b { grid-area: name; font: 800 19px/1.2 var(--display); white-space: nowrap; }
.pl-pair-opt small { grid-area: notes; color: var(--muted); font-size: 13.5px; font-weight: 700; line-height: 1.3; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.pl-pair-opt:hover { background: rgba(255, 255, 255, 0.1); border-color: color-mix(in srgb, var(--text) 30%, var(--line-2)); }
.pl-pair-opt:active { transform: scale(0.98); }
.pl-pair-opt.is-playing { border-color: color-mix(in srgb, var(--sand) 70%, transparent); background: color-mix(in srgb, var(--sand) 9%, rgba(255, 255, 255, 0.04)); }
.pl-pair-now { grid-area: now; display: inline-flex; align-items: center; gap: 6px; color: var(--sand); font-size: 12.5px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.pl-pair-now::before { content: ''; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--sand); box-shadow: 0 0 0 3px rgba(246, 216, 154, 0.2); }
.pl-flow-alts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pl-flow-alt { height: auto; min-height: 44px; padding: 6px 14px; white-space: normal; color: var(--text); }
.pl-flow-alt.is-on, .pl-fam.is-on { color: var(--on-coral); background: var(--coral); border-color: var(--coral); }
.pl-flow .pl-suggest { margin-top: 8px; }
.pl-flow-picker { display: grid; gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.pl-flow-pick-label { font: 900 11.5px/1.3 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pl-flow-pick-label + .pl-family + .pl-flow-pick-label { margin-top: 4px; }
.pl-family { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
.pl-fam {
  position: relative; display: grid; place-items: center; gap: 0; height: auto; min-height: 46px; padding: 6px 10px; justify-content: stretch;
  color: var(--text); font-size: 15px; font-weight: 800; line-height: 1.2; white-space: normal; text-align: center;
}
.pl-fam-name { display: block; white-space: nowrap; }
.pl-fam small { color: var(--sand); font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; }
.pl-fam.is-on small { color: var(--on-coral); }
/* the one that plays now, until it is settled */
.pl-fam.is-playing { border-color: color-mix(in srgb, var(--sand) 70%, transparent); }
.pl-fam .pl-fam-now { text-transform: uppercase; letter-spacing: 0.08em; }
.pl-flow-more-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; }
.pl-flow-more { justify-self: start; min-height: 44px; color: var(--aqua); text-align: left; }
.pl-flow-picker .pl-find-open { min-height: 44px; }
/* ③ your guitar (a tap opens its tuning) and Play */
.pl-flow-3 { grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; }
.pl-flow-3 .pl-flow-body { padding-top: 0; }
.pl-flow-mine {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start; max-width: 100%; min-height: 44px; padding: 2px 0; border: 0; background: none;
  color: var(--text); font: 800 22px/1.15 var(--display); text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--text) 30%, transparent); text-underline-offset: 5px;
}
.pl-flow-mine .ic { width: 18px; height: 18px; flex: none; color: var(--muted); }
.pl-flow-mine:hover { text-decoration-color: var(--coral); }
.pl-flow-play { gap: 8px; min-height: 48px; padding: 0 22px; font-size: 16px; }
.pl-flow-play .icf { width: 18px; height: 18px; flex: none; }
.pl-flow-play .pl-i-pause, .pl-flow-play.is-playing .pl-i-play { display: none; }
.pl-flow-play.is-playing .pl-i-pause { display: block; }
/* the plan in one line (how it plays; the whole plan once settled), and the two links under it */
.pl-plan-line { min-height: 1.4em; color: var(--text); font-weight: 800; font-size: clamp(15.5px, 1.8vw, 17px); line-height: 1.45; text-wrap: balance; }
.pl-flow-links { display: flex; flex-wrap: wrap; align-items: center; column-gap: 18px; margin-top: -6px; }
.pl-flow-links .link { display: inline-block; min-height: 44px; padding: 11px 2px; line-height: 22px; text-align: left; }
.pl-flow-links:not(:has(> :not([hidden]))) { display: none; }
.pl-plan-check { color: var(--sand); text-decoration-color: color-mix(in srgb, var(--sand) 45%, transparent); }
.pl-plan-check .nw { margin-left: 0.3em; }
.pl-plan-check:hover, .pl-flow-change:hover { color: var(--text); }
.pl-flow-change { color: var(--aqua); }
/* settled: the steps fold away, the plan line stays (with "Change the song's tuning") */
.pl-flow[data-state=done] { gap: 6px; padding-block: 14px; border-color: var(--line-2); background: rgba(255, 255, 255, 0.035); }
.pl-flow[data-state=done]::before { display: none; }
.pl-flow[data-state=done] .pl-flow-steps { display: none; }
.pl-flow[data-state=done] .pl-flow-links { margin-top: 0; }
.pl-flow[data-state=done] .pl-plan-line { position: relative; padding-left: 34px; }
.pl-flow[data-state=done] .pl-plan-line::before {
  content: ''; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--foam) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306182B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
/* wide: ② and ③ side by side (① is the song line right above: the card keeps the first screen for the player);
   the plan line under them */
@media (min-width: 900px) {
  .pl-flow { padding: 20px 26px; }
  .pl-flow-steps { grid-template-columns: minmax(0, 1.75fr) minmax(250px, 1fr); gap: 12px 0; }
  .pl-flow-1 { display: none; }
  .pl-flow-2 { padding-right: 26px; }
  .pl-flow-3 { padding-left: 26px; border-left: 1px solid var(--line); grid-template-columns: 36px minmax(0, 1fr); align-items: start; row-gap: 12px; }
  .pl-flow-3 .pl-flow-body { padding-top: 6px; }
  .pl-flow-play { grid-column: 2; justify-self: start; }
}
/* a wide screen showing the player's own Play too: step 3's steps aside, keeping its room (QA: two Play buttons at once) */
@media (min-width: 900px) {
  .pl-flow.has-main-play .pl-flow-play { visibility: hidden; }
}

/* ---------- the waveform, play mode's centre: see above. The control deck right under Play */
.pl-deck {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: rgba(4, 10, 24, 0.38); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.pl-deck > * { min-width: 0; }
.pl-deck .pl-tile-label { color: var(--muted); }
.pl-deck-shift { --c: var(--coral); display: grid; gap: 10px; }
.pl-deck-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.pl-deck-speed, .pl-deck-vol { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
/* A/B: Original · Matched, one tap apart; the song keeps playing */
.pl-ab {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; flex: 1 1 220px; max-width: 340px; padding: 3px; border-radius: 999px;
  background: rgba(4, 10, 24, 0.45); border: 1px solid var(--line-2);
}
.pl-ab-opt {
  display: grid; align-content: center; justify-items: center; gap: 0; min-width: 0; min-height: 44px; padding: 4px 10px; border: 0; border-radius: 999px;
  background: none; color: var(--muted); font: inherit; text-align: center; cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.pl-ab-opt b { color: var(--text); font: 800 15px/1.15 var(--display); }
.pl-ab-opt small { font-size: 12px; font-weight: 800; line-height: 1.2; }
.pl-ab-opt:hover:not([aria-checked=true]) { background: rgba(255, 255, 255, 0.07); }
/* one look for the option that plays, either side: a light thumb (the coral stays the shift's words) */
.pl-ab-opt[aria-checked=true] { background: var(--text); color: color-mix(in srgb, var(--ink) 78%, var(--text)); box-shadow: 0 8px 22px -10px rgba(255, 255, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.pl-ab-opt[aria-checked=true] b { color: var(--ink); }
.pl-ab-opt:focus-visible { outline-offset: -3px; }
/* the shift in words: "1 half step down" big, "and 1 cent up" under it, the total small; then ±1 half step, ±10 cents */
.pl-readout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: 'main main main main' 'sub sub sub sub' 'b1 b2 b3 b4'; gap: 2px 8px; text-align: center; }
.pl-rd-main { grid-area: main; font: 800 clamp(24px, 3vw, 32px)/1.1 var(--display); letter-spacing: -0.015em; color: var(--coral); text-shadow: 0 0 22px rgba(255, 107, 107, 0.22); text-wrap: balance; }
.pl-rd-sub { grid-area: sub; min-height: 1.35em; color: var(--text); font: 700 17px/1.35 var(--display); }
.pl-rd-total { margin-top: -6px; color: var(--muted); font-size: 13px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.pl-deck-shift.is-zero .pl-rd-main { color: var(--foam); text-shadow: 0 0 22px rgba(155, 235, 217, 0.2); }
.pl-deck-shift.is-orig .pl-rd-main { color: var(--text); text-shadow: none; }
.pl-deck-shift.is-orig .pl-rd-sub { color: var(--muted); }
#pa-st-minus { grid-area: b1; } #pa-st-plus { grid-area: b2; } #pa-c10-minus { grid-area: b3; } #pa-c10-plus { grid-area: b4; }
.pl-readout .pl-rd-btn { margin-top: 8px; }
.pl-rd-btn {
  position: relative; display: grid; place-items: center; align-content: center; gap: 0; min-width: 0; min-height: 52px; padding: 4px 6px; border-radius: 16px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.06); color: var(--text); font: 800 17px/1.1 var(--display);
  font-variant-numeric: tabular-nums; cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.pl-rd-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); }
.pl-rd-btn:active:not(:disabled) { transform: scale(0.97); }
.pl-rd-btn:disabled { opacity: 0.35; cursor: default; }
/* the unit under each number: half step (the first two), cents (the last two) */
.pl-rd-st::after, .pl-rd-c::after { font: 800 11px/1.2 var(--font); letter-spacing: 0.02em; color: var(--muted); }
.pl-rd-st::after { content: 'half step'; }
.pl-rd-c::after { content: 'cents'; }
/* speed: −5 % · the number (type any speed into it) · +5 %, six presets */
.pl-deck-speed { container-type: inline-size; }
.pl-speed-row { display: grid; grid-template-columns: minmax(56px, 84px) auto minmax(56px, 84px); justify-content: center; align-items: center; gap: 10px clamp(8px, 4cqi, 22px); }
.pl-speed-step { min-height: 48px; font-size: 16px; }
.pl-speed-step::after { content: none; }
.pl-speed-val { display: inline-flex; align-items: baseline; justify-content: center; } /* no min-width: 0: its column is as wide as the number */
.pl-tempo-input {
  flex: none; width: 3.2ch; height: max(44px, 1.12em); padding: 0 0 2px; font-size: clamp(34px, 13cqi, 46px); line-height: 1.05; text-align: center; color: var(--text);
  border-bottom: 2px dashed color-mix(in srgb, var(--coral) 45%, var(--line-2)); cursor: text;
}
.pl-tempo-input:hover { border-bottom-style: solid; }
.pl-tempo-input:focus { border-bottom-style: solid; border-bottom-color: var(--coral); background: rgba(255, 107, 107, 0.08); border-radius: 12px 12px 0 0; }
.pl-speed-val .unit { font-size: 20px; color: var(--muted); }
.pl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-chips .chip { position: relative; min-width: 64px; height: 44px; min-height: 44px; color: var(--text); }
.pl-chips .chip.is-on { color: var(--on-coral); background: var(--coral); border-color: var(--coral); }
.pl-tempo-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@container (min-width: 360px) { .pl-tempo-chips { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.pl-tempo-chips .chip { min-width: 0; justify-content: center; padding: 0 4px; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.pl-speed-hint { text-align: center; }
/* volume: the label, a slim slider, the value */
.pl-deck-vol { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; }
.pl-vol-row { min-height: 44px; min-width: 0; }
.pl-vol-row input[type=range] { flex: 1 1 auto; min-width: 0; height: 44px; }
.pl-vol-val { min-width: 3.2em; font: 800 18px/1 var(--display); color: var(--text); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 420px) {
  .pl-deck-vol { grid-template-columns: minmax(0, 1fr); }
  .pl-deck-vol .pl-tile-label { display: none; }   /* the slider keeps its name: aria-labelledby reads hidden text too */
}
/* wide: the shift on the left, the speed and the volume on the right */
@media (min-width: 760px) {
  .pl-deck { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: 'shift speed' 'shift vol'; gap: 16px 0; padding: 18px 22px; }
  .pl-deck-shift { grid-area: shift; align-content: start; padding-right: 24px; }
  .pl-deck-speed { grid-area: speed; padding-top: 0; border-top: 0; }
  .pl-deck-vol { grid-area: vol; padding-top: 14px; }
  .pl-deck-speed, .pl-deck-vol { padding-left: 24px; border-left: 1px solid var(--line); }
}

/* ---------- the details under the deck, folded on phones (QA: a screen of numbers between Speed and Save): the song's
   tuning (the record's cents) → how the shift adds up → your tuning */
.pl-details { display: grid; min-width: 0; }
.pl-details-sum {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 18px; border-radius: 20px; cursor: pointer;
  list-style: none; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); transition: background 0.2s, border-color 0.2s;
}
.pl-details-sum::-webkit-details-marker { display: none; }
.pl-details-sum:hover { background: rgba(255, 255, 255, 0.08); }
.pl-details-text { display: grid; gap: 2px; min-width: 0; }
.pl-details-text b { font: 800 17px/1.25 var(--display); color: var(--text); }
.pl-details-text small { color: var(--muted); font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.pl-details-chev { width: 22px; height: 22px; flex: none; color: var(--muted); stroke-width: 2.2; transition: transform 0.2s; }
.pl-details[open] .pl-details-chev { transform: rotate(180deg); }
.pl-details[open] > .pl-trio { margin-top: 12px; }
.pl-trio { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; justify-items: stretch; align-items: start; }
.pl-tile {
  --c: var(--aqua); container-type: inline-size; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px;
  min-width: 0; padding: 18px; border-radius: var(--r); overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--c) 22%, var(--line));
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 14%, var(--glass)), color-mix(in srgb, var(--c) 3%, var(--glass)) 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.pl-tile::before {
  content: ''; position: absolute; width: 200px; height: 200px; right: -80px; top: -110px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 36%, transparent), transparent 68%); opacity: 0.5;
}
.pl-tile > * { position: relative; min-width: 0; }
.pl-tile-song { --c: var(--aqua); }
.pl-tile-plan { --c: var(--coral); text-align: center; justify-items: center; }
.pl-tile-mine { --c: var(--foam); }
.pl-tile-label { font: 900 12px/1.3 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 80%, var(--text)); }
.pl-arrow { display: grid; place-items: center; height: 26px; color: var(--faint); }
.pl-arrow .ic { width: 22px; height: 22px; transform: rotate(90deg); }
/* three tiles side by side only where each has room (below 1120 px they stack) */
@media (min-width: 1120px) {
  .pl-trio { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr); gap: 8px; align-items: start; }
  .pl-arrow { align-self: center; }
  .pl-arrow { height: auto; }
  .pl-arrow .ic { transform: none; }
}
/* the compound chip ◂ name ▸, a long name wraps inside it */
.pl-combo { display: flex; width: 100%; height: auto; min-height: 52px; }
.pl-combo .chip-name { flex: 1 1 auto; min-width: 0; padding: 6px 4px; font-size: clamp(18px, 2.2vw, 21px); white-space: normal; line-height: 1.1; text-wrap: balance; overflow-wrap: anywhere; }
.pl-combo .chip-arrow { width: 46px; }
.pl-notes { color: var(--muted); font-weight: 700; font-size: 14.5px; line-height: 1.4; letter-spacing: 0.02em; word-spacing: 0.12em; }
.pl-notes b { color: var(--text); font-weight: 800; letter-spacing: 0; word-spacing: 0; }
.pl-guess, .pl-from { display: inline-block; margin-top: 4px; color: var(--sand); font-weight: 800; letter-spacing: 0; word-spacing: 0; }
.pl-from { color: var(--aqua); }
.pl-mini { font: 900 11.5px/1.3 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pl-mini-note { color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.4; }
.pl-offset { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.pl-stepper { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pl-step {
  position: relative; height: 44px; min-height: 44px; min-width: 64px; padding: 0 12px; justify-content: center;
  border-color: var(--line-2); background: rgba(255, 255, 255, 0.06); color: var(--text); font-size: 14.5px; font-weight: 800;
}
.pl-step:hover:not(:disabled) { background: rgba(255, 255, 255, 0.11); }
.pl-step:disabled { opacity: 0.35; cursor: default; }
.pl-step-val { display: inline-flex; align-items: baseline; justify-content: center; }
.pl-off-input { width: 4.4ch; min-height: 44px; font-size: 30px; text-align: center; }
.pl-off-input[aria-invalid=true] { border-bottom-color: var(--coral); }
.pl-measure { color: var(--text); font-weight: 700; font-size: 14px; line-height: 1.45; text-align: center; text-wrap: balance; }
.pl-measure.is-on-pitch { color: var(--foam); }
.pl-measure.is-weak { color: var(--sand); }
.pl-measure.is-wait { color: var(--muted); }
.pl-measure-sub { margin-top: -4px; color: var(--muted); font-weight: 700; font-size: 13px; line-height: 1.4; text-align: center; }
.pl-beta-note { color: var(--muted); font-weight: 700; font-size: 13.5px; line-height: 1.45; text-align: center; text-wrap: balance; }
.pl-off-reset { justify-self: center; min-height: 44px; }
.pl-suggest { display: grid; gap: 10px; padding: 12px 14px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--aqua) 30%, transparent); background: color-mix(in srgb, var(--aqua) 8%, transparent); font-size: 14.5px; line-height: 1.45; }
.pl-suggest b { color: var(--text); }
.pl-find-open { justify-self: start; min-height: 44px; }
/* how the shift adds up: the same words as the deck, smaller, and the rows that add up to them */
.pl-plan-big { max-width: 100%; font: 800 clamp(22px, 9cqi, 30px)/1.12 var(--display); letter-spacing: -0.015em; color: var(--coral); text-wrap: balance; overflow-wrap: anywhere; }
.pl-plan-big.is-zero { color: var(--foam); }
.pl-plan-unit { margin-top: -6px; color: var(--text); font: 700 16px/1.35 var(--display); }
.pl-plan-total { margin-top: -6px; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
/* while the original plays, the plan below steps back (it is what Matched plays): quieter colours, still 4.5:1 */
#pa-root[data-ab=original] .pl-tile-plan :is(.pl-plan-big, .pl-why b, .pl-why .pl-why-hand b, .pl-nudge-note) { color: var(--muted); }
#pa-root[data-ab=original] .pl-tile-plan .pl-why .pl-why-total :is(span, b) { color: color-mix(in srgb, var(--coral) 55%, var(--text)); }
.pl-why { list-style: none; margin: 0; padding: 0; display: grid; width: 100%; text-align: left; }
.pl-why li { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.35; }
.pl-why li:first-child { border-top: 0; padding-top: 0; }
.pl-why span { min-width: 0; color: var(--muted); font-weight: 700; overflow-wrap: anywhere; }
.pl-why b { flex: none; color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-why .pl-why-hand b { color: var(--sand); }
.pl-why .pl-why-total { border-top-color: var(--line-2); }
.pl-why .pl-why-total span, .pl-why .pl-why-total b { color: var(--coral); font-weight: 800; }
/* fine: −1 ¢ / +1 ¢ (the half steps and the tens of cents are on the deck) */
.pl-fine-nudge { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; width: 100%; padding-top: 10px; border-top: 1px solid var(--line); }
.pl-fine-nudge .pl-mini { margin-right: 2px; }
.pl-nudge-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 8px; color: var(--sand); font-weight: 800; font-size: 14.5px; line-height: 1.4; text-align: center; text-wrap: balance; }
.pl-nudge-note > span { min-width: 0; }
.pl-nudge-note .link { min-height: 44px; padding: 0 4px; color: var(--text); }
.pl-a4 { justify-self: start; height: 44px; min-height: 44px; padding: 0 16px; gap: 6px; color: var(--muted); border-color: var(--line-2); background: rgba(255, 255, 255, 0.06); font-size: 15px; }
.pl-a4 b { color: var(--text); font: 800 17px/1 var(--display); font-variant-numeric: tabular-nums; }
.pl-a4.is-on { border-color: color-mix(in srgb, var(--coral) 60%, transparent); color: var(--muted); background: rgba(255, 255, 255, 0.06); }

/* ---------- check by ear (at the very end of the tool): the step that keeps a wrong half step out of the saved file */
.pl-check {
  --c: var(--sand); position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 20px; border-radius: var(--r); overflow: clip;
  border: 1px solid color-mix(in srgb, var(--sand) 55%, transparent);
  background: linear-gradient(150deg, color-mix(in srgb, var(--sand) 20%, var(--glass)), color-mix(in srgb, var(--sand) 6%, var(--glass)) 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 50px -24px rgba(246, 216, 154, 0.35);
  scroll-margin-top: 84px;
}
.pl-check::before {
  content: ''; position: absolute; width: 320px; height: 320px; right: -120px; top: -170px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 68%); opacity: 0.6;
}
.pl-check > * { position: relative; min-width: 0; }
.pl-check[data-mode=offer], .pl-check[data-mode=done] { gap: 10px; padding: 14px 18px; border-color: var(--line); background: rgba(255, 255, 255, 0.035); box-shadow: none; }
.pl-check[data-mode=offer]::before, .pl-check[data-mode=done]::before { display: none; }
.pl-check[data-mode=done] { --c: var(--foam); }
.pl-check[data-mode=offer] { --c: var(--muted); }
.pl-check-top { display: flex; align-items: center; gap: 14px; }
.pl-check-icon {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent);
}
.pl-check-icon .ic { width: 26px; height: 26px; stroke-width: 1.8; }
.pl-check[data-mode=offer] .pl-check-icon, .pl-check[data-mode=done] .pl-check-icon { width: 40px; height: 40px; }
.pl-check-head { display: grid; gap: 2px; min-width: 0; }
.pl-check .pl-tile-label { color: var(--c); }
.pl-check[data-mode=offer] .pl-tile-label { color: var(--muted); }
.pl-check-title { font: 800 clamp(20px, 2.4vw, 24px)/1.2 var(--display); letter-spacing: -0.01em; text-wrap: balance; overflow-wrap: anywhere; }
.pl-check[data-mode=offer] .pl-check-title, .pl-check[data-mode=done] .pl-check-title { font-size: 18px; }
.pl-check-why { color: var(--text); font-weight: 700; font-size: 15px; line-height: 1.5; max-width: 72ch; }
.pl-check-mini { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; color: var(--muted); font-weight: 700; font-size: 14.5px; line-height: 1.45; }
.pl-check-mini p { flex: 1 1 240px; min-width: 0; }
.pl-check-body { display: grid; gap: 16px; }
.pl-check-root {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 14px; border-radius: 16px; font-weight: 800; line-height: 1.4;
  border: 1px solid color-mix(in srgb, var(--aqua) 30%, transparent); background: color-mix(in srgb, var(--aqua) 8%, transparent);
}
.pl-check-root p { flex: 1 1 200px; min-width: 0; }
.pl-check-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: plcheck; }
.pl-check-steps > li { position: relative; display: grid; align-content: start; gap: 10px; min-width: 0; padding-left: 44px; counter-increment: plcheck; }
.pl-check-steps > li::before {
  content: counter(plcheck); position: absolute; left: 0; top: 8px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: var(--sand); font: 800 14px/1 var(--display); color: var(--ink);
}
.pl-check-hear { justify-self: start; max-width: 100%; min-height: 48px; height: auto; padding-block: 8px; white-space: normal; text-align: left; line-height: 1.25; }
.pl-check-hear .ic { width: 22px; height: 22px; flex: none; }
.pl-check-hear[aria-pressed=true] { background: var(--sand); border-color: var(--sand); color: var(--ink); box-shadow: 0 0 0 6px rgba(246, 216, 154, 0.16); }
/* small text on the lighter check card: --muted keeps 4.5:1 over its glow (--faint did not) */
.pl-check .pl-mini-note { color: var(--muted); }
/* the song's own Play/Pause inside the check: the player's big button is far up the page on a phone */
.pl-check-song { justify-self: start; gap: 8px; min-height: 44px; font-variant-numeric: tabular-nums; }
.pl-check-song .icf { width: 18px; height: 18px; flex: none; }
.pl-check-song .pl-i-pause, .pl-check-song.is-playing .pl-i-play { display: none; }
.pl-check-song.is-playing .pl-i-pause { display: block; }
.pl-check-song-time { color: var(--muted); font-weight: 800; }
.pl-check-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pl-check-move {
  display: grid; justify-items: center; align-content: center; gap: 4px; min-width: 0; min-height: 100px; padding: 12px 10px; border-radius: 20px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.06); color: var(--text); font: inherit; text-align: center; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.pl-check-move b { font: 800 17px/1.2 var(--display); text-wrap: balance; overflow-wrap: anywhere; }
/* what the button does to the playback, with its arrow (a song that sounds high is played lower) */
.pl-check-do { display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: var(--sand); font-size: 14px; font-weight: 800; line-height: 1.3; text-wrap: balance; }
.pl-check-do .ic { width: 18px; height: 18px; flex: none; }
.pl-check-move small { color: var(--muted); font-size: 13.5px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; text-wrap: balance; }
.pl-check-move:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); border-color: color-mix(in srgb, var(--sand) 55%, var(--line-2)); }
.pl-check-move:active:not(:disabled) { transform: scale(0.98); }
.pl-check-move:disabled { opacity: 0.4; cursor: default; }
.pl-check-alts { display: grid; gap: 8px; }
.pl-check-opts .chip { height: auto; min-height: 44px; padding: 6px 14px; white-space: normal; line-height: 1.25; text-align: center; }
.pl-check-end { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pl-check-end .btn .ic { width: 20px; height: 20px; }
.pl-check-status { flex: 1 1 220px; min-width: 0; color: var(--text); font-weight: 800; font-size: 14.5px; line-height: 1.4; }
.pl-check-status:empty { display: none; }
@media (min-width: 760px) {
  .pl-check { padding: 22px 26px; }
  .pl-check-steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px 28px; }
}

/* ---------- save */
.pl-export {
  display: grid; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--r);
  border: 1px solid color-mix(in srgb, var(--aqua) 24%, var(--line)); background: linear-gradient(150deg, color-mix(in srgb, var(--aqua) 10%, transparent), rgba(255, 255, 255, 0.02) 70%);
}
@media (min-width: 760px) { .pl-export { grid-template-columns: minmax(0, 1fr) auto; gap: 24px; } }
.pl-export .pl-tile-label { color: var(--aqua); }
.pl-export-text { display: grid; gap: 4px; min-width: 0; }
.pl-export-title { font: 700 18px/1.3 var(--display); }
.pl-export-name { color: var(--muted); font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.pl-export-warn, .pl-export-ab { color: var(--sand); font-size: 14px; font-weight: 700; line-height: 1.45; }
.pl-export-wait { color: var(--muted); font-size: 14px; font-weight: 700; line-height: 1.45; }
/* a flex row: the 44 px link sits in its own box, so it never stretches the lines of the sentence */
.pl-export-check { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; color: var(--sand); font-size: 14px; font-weight: 700; line-height: 1.45; }
.pl-export-check > span { flex: 0 1 auto; min-width: 0; }
.pl-export-check .link { min-height: 44px; padding: 0 4px; margin-left: -4px; color: var(--sand); text-decoration-color: color-mix(in srgb, var(--sand) 45%, transparent); }
.pl-export-act { display: grid; gap: 10px; min-width: 0; }
@media (min-width: 760px) { .pl-export-act { min-width: 280px; justify-items: end; } }
.pl-export-act .btn { width: 100%; }
@media (min-width: 760px) { .pl-export-act .btn-lg { width: auto; } }
.pl-progress { display: grid; gap: 8px; width: 100%; }
.pl-bar { position: relative; height: 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.pl-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--aqua), var(--foam)); box-shadow: 0 0 14px rgba(63, 211, 230, 0.5); transition: width 0.2s; }
.pl-progress-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pl-progress-row .btn { width: auto; }
.pl-progress-text { font-weight: 800; color: var(--aqua); font-variant-numeric: tabular-nums; }

/* ---------- the tuning sheet and the song search */
.pl-sheet { gap: 16px; }
.pl-sheet-sec { display: grid; gap: 10px; min-width: 0; }
.pl-sheet .focus-label { margin: 0; }
.pl-sheet .sheet-read .tl-name { overflow-wrap: anywhere; }
.pl-sheet-notes { letter-spacing: 0.08em; word-spacing: 0.3em; }
.pl-shapes { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.pl-shapes .opt { min-height: 46px; height: auto; padding: 6px 8px; color: var(--text); font-size: 14px; white-space: normal; line-height: 1.15; text-wrap: balance; }
.pl-shapes .opt[aria-pressed=true] { border-color: var(--coral); color: var(--coral); background: rgba(255, 107, 107, 0.1); box-shadow: inset 0 0 0 1px var(--coral); }
.pl-shift-out { display: inline-block; min-width: 2.4ch; font: 800 36px/1.05 var(--display); text-align: center; font-variant-numeric: tabular-nums; }
.pl-ladder { --c: var(--coral); }
.pl-ladder .rung b { text-wrap: balance; }
.pl-ladder .rung.is-on .rung-st { color: var(--on-coral); }
.pl-a4-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pl-a4-input { width: 4.4ch; min-height: 44px; font-size: 30px; text-align: center; }
.pl-tune-link { justify-self: start; padding: 0; color: var(--foam); text-decoration-color: color-mix(in srgb, var(--foam) 40%, transparent); }
.pl-tune-link:hover { color: var(--text); }
.pl-sheet-actions {
  position: sticky; bottom: calc(-24px - var(--bottom)); z-index: 2; justify-content: flex-end;
  margin: 2px -22px calc(-24px - var(--bottom)); padding: 12px 22px calc(16px + var(--bottom)); background: var(--bg-mid); border-top: 1px solid var(--line);
}
.pl-find { gap: 14px; min-height: min(560px, calc(100dvh - 40px)); }
.pl-find-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pl-find-list li { margin: 0; }
.pl-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; width: 100%; min-height: 56px; padding: 10px 14px;
  border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--text); text-align: left; font: inherit;
}
.pl-row:hover { background: rgba(255, 255, 255, 0.08); }
.pl-row b { font: 800 16px/1.25 var(--display); overflow-wrap: anywhere; }
.pl-row small { grid-column: 1; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.pl-row-tune { grid-column: 2; grid-row: 1 / span 2; justify-self: end; max-width: 11em; padding: 4px 10px; border-radius: 999px; text-align: center; font-size: 12.5px; font-weight: 800; line-height: 1.3; color: var(--aqua); background: rgba(63, 211, 230, 0.1); border: 1px solid rgba(63, 211, 230, 0.3); }
.pl-find-empty { color: var(--muted); font-size: 15px; padding: 8px 4px; }

/* ---------- narrow phones: tighter, never cut */
@media (max-width: 420px) {
  .pl-card { gap: 18px; }
  .pl-drop { min-height: 260px; padding: 26px 14px; }
  .pl-tile { padding: 16px 14px; }
  .pl-check { padding: 16px 14px; }
  .pl-flow { padding: 16px 14px; }
  .pl-flow-step { grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; }
  .pl-flow-3 { grid-template-columns: 32px minmax(0, 1fr); align-items: start; row-gap: 8px; }
  .pl-flow-3 .pl-flow-body { padding-top: 4px; }
  .pl-flow-3 .pl-flow-play { grid-column: 2; justify-self: start; }
  .pl-flow-num { width: 32px; height: 32px; font-size: 15px; }
  .pl-flow-body { padding-top: 4px; }
  .pl-flow-name { font-size: 28px; }
  .pl-flow-acts .btn { flex: 1 1 auto; justify-content: center; }
  .pl-flow-play { padding: 0 16px; }
  .pl-family { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-deck { padding: 12px; }
  .pl-rd-btn { padding: 4px 2px; border-radius: 14px; }
  /* the steps take the whole width; the order shows without numbers */
  .pl-check-steps > li { padding-left: 0; }
  .pl-check-steps > li::before { display: none; }
  .pl-check-hear { justify-self: stretch; justify-content: center; }
  .pl-check-move { min-height: 92px; padding: 10px 8px; }
  .pl-check-move b { font-size: 16px; }
  .pl-export { padding: 16px; }
  .pl-play { width: 78px; height: 78px; }
  .pl-skip { width: 54px; height: 54px; }
  .pl-loop-toggle { padding: 0 16px; }
  .pl-loop-edge { padding: 0 8px; font-size: 15px; }
  .pl-ab-opt { padding: 4px 6px; }
  .pl-flow-pair { grid-template-columns: minmax(0, 1fr); gap: 8px; }   /* one under the other, each the whole width */
  .pl-pair-opt { min-height: 64px; padding: 10px 14px; }
}
/* the check's two answers stack on a narrow phone, each a short full-width button (QA: 6–7 short lines each at 360) */
@media (max-width: 399px) {
  .pl-check-pair { grid-template-columns: minmax(0, 1fr); }
  .pl-check-move { min-height: 64px; }
}

/* ---------- play mode: the song's name and Done, the waveform with its loop, Play, the deck; nothing else.
   It fills the screen (fixed, like the tuner's focus mode) and fits 360 × 640 without scrolling */
html.pl-play-mode, html.pl-play-mode body { overflow: hidden; }
html.pl-play-mode :is(.site-header, .hero, .site-footer, .skip-link),
html.pl-play-mode main > :not(.tool) { display: none !important; }
html.pl-play-mode main > .tool { padding: 0; }
html.pl-play-mode .pl-card {
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; gap: 10px; max-width: none; margin: 0;
  padding: calc(10px + var(--top)) max(16px, var(--right)) calc(12px + var(--bottom)) max(16px, var(--left));
  border: 0; border-radius: 0; box-shadow: none; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--bg-top) 80%, transparent), transparent 70%), var(--bg);
}
html.pl-play-mode .pl-card > :is(.pl-linknote, .pl-empty, .pl-loading, .pl-error) { display: none; }
html.pl-play-mode .pl-top { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 1000px; margin: 0 auto; }
html.pl-play-mode .pl-kicker { display: none; }
html.pl-play-mode .pl-title { flex: 1 1 auto; min-width: 0; font-size: clamp(19px, 2.6vw, 28px); line-height: 1.15; }
html.pl-play-mode .pl-pm-done { display: inline-flex; flex: none; min-height: 44px; padding: 0 20px; }
html.pl-play-mode .pl-player { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 1000px; min-height: 0; margin: 0 auto; }
html.pl-play-mode .pl-player > :not(.pl-wave-wrap):not(.pl-transport):not(.pl-deck):not(.pl-nosound) { display: none; }
html.pl-play-mode .pl-nosound { flex: none; }
html.pl-play-mode .pl-wave-wrap { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
html.pl-play-mode .pl-wave-box { flex: 1 1 auto; min-height: 72px; max-height: 46vh; }
html.pl-play-mode .pl-wave { height: 100%; }
html.pl-play-mode .pl-times, html.pl-play-mode .pl-loopbar { flex: none; }
html.pl-play-mode .pl-loopbar { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: 'label acts x'; padding: 4px 4px 4px 12px; }
html.pl-play-mode .pl-loop-hint, html.pl-play-mode .pl-loop-word { display: none; }
html.pl-play-mode .pl-loop-label { font-size: 16px; }
html.pl-play-mode .pl-loop-label .ic { width: 20px; height: 20px; }
html.pl-play-mode .pl-loop-acts { gap: 4px; }
html.pl-play-mode .pl-loop-edge { width: 44px; height: 44px; padding: 0; justify-content: center; }
html.pl-play-mode .pl-loop-edge span { display: none; }
html.pl-play-mode .pl-transport { flex: none; }
html.pl-play-mode .pl-play { width: 72px; height: 72px; }
html.pl-play-mode .pl-skip { width: 52px; height: 52px; }
html.pl-play-mode .pl-deck { flex: none; gap: 10px; }
html.pl-play-mode .pl-speed-hint { display: none; }
@media (max-width: 759px), (max-height: 779px) { html.pl-play-mode .pl-tempo-chips { display: none; } }
@media (max-width: 759px) {
  /* the speed and the volume share one row */
  html.pl-play-mode .pl-deck { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'shift shift' 'speed vol'; padding: 10px 12px; column-gap: 14px; }
  html.pl-play-mode .pl-deck-shift { grid-area: shift; gap: 8px; }
  html.pl-play-mode .pl-deck-speed { grid-area: speed; container-type: normal; }   /* sized by its row, not a container */
  html.pl-play-mode .pl-deck-vol { grid-area: vol; grid-template-columns: minmax(0, 1fr); padding-left: 14px; margin-left: -14px; border-left: 1px solid var(--line); }
  html.pl-play-mode :is(.pl-deck-speed, .pl-deck-vol) { gap: 4px; padding-top: 8px; }
  html.pl-play-mode .pl-deck-speed .pl-tile-label, html.pl-play-mode .pl-deck-vol .pl-tile-label { display: block; font-size: 11px; }
  html.pl-play-mode .pl-speed-row { grid-template-columns: 44px auto 44px; gap: 4px; }
  html.pl-play-mode .pl-speed-step { min-height: 44px; padding: 0; font-size: 0; }
  html.pl-play-mode .pl-speed-step::before { font-size: 20px; }
  html.pl-play-mode #pa-tempo-minus::before { content: '−'; }
  html.pl-play-mode #pa-tempo-plus::before { content: '+'; }
  html.pl-play-mode .pl-tempo-input { height: 44px; font-size: 30px; line-height: 40px; }
  html.pl-play-mode .pl-speed-val .unit { font-size: 16px; }
  html.pl-play-mode .pl-vol-row { gap: 6px; }
  html.pl-play-mode .pl-vol-row .ic, html.pl-play-mode .pl-vol-val { display: none; }
  html.pl-play-mode .pl-rd-main { font-size: 24px; }
  html.pl-play-mode .pl-rd-sub { font-size: 16px; }
  html.pl-play-mode .pl-readout .pl-rd-btn { margin-top: 6px; min-height: 48px; }
}
/* the start handle's time beside its grip, inside the waveform (QA: above the waveform it covered the song's name) */
html.pl-play-mode .pl-mark-a .pl-mark-time { bottom: auto; top: 50%; right: auto; left: calc(100% + 4px); transform: translateY(-50%); }
/* a desktop: readable from a music stand (QA: the waveform took 45 % of the height, the rest stayed page-sized) */
@media (min-width: 900px) and (min-height: 700px) {
  html.pl-play-mode .pl-card { gap: 14px; padding-top: calc(16px + var(--top)); }
  html.pl-play-mode .pl-player { gap: 14px; }
  html.pl-play-mode .pl-title { font-size: clamp(26px, 2.6vw, 36px); }
  html.pl-play-mode .pl-pm-done { min-height: 52px; padding: 0 26px; font-size: 17px; }
  html.pl-play-mode .pl-player { justify-content: center; }
  html.pl-play-mode .pl-wave-wrap { flex: 0 0 auto; }
  html.pl-play-mode .pl-wave-box { flex: none; height: 30vh; max-height: none; }
  html.pl-play-mode .pl-now { font-size: 26px; }
  html.pl-play-mode .pl-dur { font-size: 20px; }
  html.pl-play-mode .pl-loop-toggle { height: 52px; font-size: 17px; }
  html.pl-play-mode .pl-loop-label { font-size: 20px; }
  html.pl-play-mode .pl-play { width: 96px; height: 96px; }
  html.pl-play-mode .pl-play svg { width: 44px; height: 44px; }
  html.pl-play-mode .pl-skip { width: 64px; height: 64px; }
  html.pl-play-mode .pl-skip .ic { width: 36px; height: 36px; }
  html.pl-play-mode .pl-deck { gap: 18px 0; padding: 22px 28px; }
  html.pl-play-mode .pl-deck .pl-tile-label { font-size: 14px; }
  html.pl-play-mode .pl-ab { max-width: 400px; }
  html.pl-play-mode .pl-ab-opt { min-height: 54px; }
  html.pl-play-mode .pl-ab-opt b { font-size: 18px; }
  html.pl-play-mode .pl-ab-opt small { font-size: 13.5px; }
  html.pl-play-mode .pl-rd-main { font-size: clamp(34px, 3.4vw, 46px); }
  html.pl-play-mode .pl-rd-sub { font-size: 22px; }
  html.pl-play-mode .pl-rd-total { font-size: 15px; }
  html.pl-play-mode .pl-rd-btn { min-height: 68px; font-size: 22px; }
  html.pl-play-mode .pl-rd-st::after, html.pl-play-mode .pl-rd-c::after { font-size: 13px; }
  html.pl-play-mode .pl-speed-step { min-height: 60px; font-size: 20px; }
  html.pl-play-mode .pl-tempo-input { font-size: 60px; }
  html.pl-play-mode .pl-speed-val .unit { font-size: 24px; }
  html.pl-play-mode .pl-tempo-chips .chip { height: 52px; font-size: 17px; }
  html.pl-play-mode .pl-vol-val { font-size: 22px; }
}
/* short screens (a phone's browser window): smaller pieces, the total stays in the details */
@media (max-height: 700px) {
  html.pl-play-mode .pl-card { gap: 8px; padding-top: calc(6px + var(--top)); }
  html.pl-play-mode .pl-player { gap: 8px; }
  html.pl-play-mode .pl-rd-total { display: none; }
  html.pl-play-mode .pl-play { width: 64px; height: 64px; }
  html.pl-play-mode .pl-play svg { width: 30px; height: 30px; }
  html.pl-play-mode .pl-skip { width: 48px; height: 48px; }
  html.pl-play-mode .pl-skip .ic { width: 28px; height: 28px; }
  html.pl-play-mode .pl-times .btn { height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-spinner, .pl-flow-2.is-wait .pl-flow-name::after { animation-duration: 3s; }
  .pl-bar i { transition: none; }
  .pl-grip { transition: none; }
}
@media (forced-colors: active) {
  .pl-head { background: CanvasText; }
  .pl-loop { border-left: 3px solid Highlight; border-right: 3px solid Highlight; }
  .pl-grip { background: Highlight; }
  .pl-chips .chip.is-on, .pl-shapes .opt[aria-pressed=true], .pl-ab-opt[aria-checked=true], .pl-fam.is-on, .pl-flow-alt.is-on { outline: 2px solid Highlight; }
}
