/* My pace (beta, 2026-11-01): the Beta chip (Settings, the question sheet, the tutorial), the choice on the tutorial's last screen and the
   line under the question sheet. Light and dark come from the app's own colours; Arabic turns with the page (logical sides only). */
.beta-chip{display:inline-block;vertical-align:2px;margin-inline-start:6px;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.02em;line-height:1.4;background:color-mix(in srgb,var(--accent) 16%,var(--card));color:var(--accent-text,var(--accent))}
.pace-later{margin:6px 0 2px;text-align:center;font-size:14px;line-height:1.4;color:var(--muted)}
.ob-pace{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 0}
.ob-pchoice{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-height:64px;padding:12px 14px;border:1.5px solid var(--line);border-radius:18px;background:var(--surface,var(--card));color:var(--ink);font:inherit;text-align:start;cursor:pointer}
.ob-pchoice strong{font-size:16px;line-height:1.3}
.ob-pchoice small{font-size:13px;line-height:1.35;color:var(--muted)}
.ob-pchoice.on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.ob-pchoice:active{transform:scale(.985)}
.ob-pchoice:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (max-width:340px){.ob-pace{grid-template-columns:1fr}}
/* the words of a step float above the step's name and Help, so Help stays in sight (app.js paceLift sets the row's height) */
.lesson-controls.pace-lift>.caption,.lesson-controls.pace-lift:has(>.caption:not([hidden]))>.notice{transform:translateY(calc(-1 * var(--pace-lift,0px)))}
/* My pace bar (2026-11-02, "too bulky and too much"; "a 10 year old should understand every step"). One line that says what to do now,
   then one slim bar in the family of Practice's foot: small Pause and Again on the left, one big button on the right that says what it
   does (the thumb's side in English and Arabic). Ayah before and after are in the lesson settings (the sliders at the top). */
.lesson-screen:has(.lesson-controls.pace-bar){--stage-bottom:calc(max(10px,env(safe-area-inset-bottom)) + 104px)}
.lesson-controls.pace-bar .step-row{min-height:36px;padding:0 14px 4px;gap:8px}
.lesson-controls.pace-bar .step-pill{flex:1;max-width:none;min-height:32px;padding:0;background:none;box-shadow:none;font-size:15px;font-weight:600;line-height:1.3}
.lesson-controls.pace-bar .step-pill .label{white-space:normal;overflow:visible;text-overflow:clip}
html[dir=rtl] .lesson-controls.pace-bar .step-pill{padding:0}
.lesson-controls.pace-bar .step-row .ctl.help.pill{min-height:34px;padding:0 12px}
.lesson-controls.pace-bar .control-row.deck{flex-direction:row;align-items:center;gap:8px;margin:0 8px 4px;padding:6px;border-radius:32px}
html[dir=rtl] .lesson-controls.pace-bar .control-row.deck{flex-direction:row-reverse}
.lesson-controls.pace-bar .deck-main,.lesson-controls.pace-bar .deck-sub{display:contents}
.lesson-controls.pace-bar .deck .ctl.ayah-back,.lesson-controls.pace-bar .deck .ctl.ayah-next{display:none}
.lesson-controls.pace-bar .deck .fab{order:1;flex:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;width:52px;height:52px;border-radius:26px;background:var(--card);color:var(--ink);box-shadow:none}
.lesson-controls.pace-bar .deck .fab svg{width:22px;height:22px}
.lesson-controls.pace-bar .deck .fab .pw{display:none}
.lesson-controls.pace-bar .deck .ctl.again{order:2;flex:none;width:auto;height:52px;padding:0 16px;border-radius:26px;box-shadow:inset 0 0 0 1.5px var(--line)}
.lesson-controls.pace-bar .deck .ctl.plus-one{order:3;flex:1;min-width:0;height:52px;border-radius:26px;background:var(--accent-grad);color:var(--accent-ink);box-shadow:0 6px 16px -8px var(--glow)}
.lesson-controls.pace-bar .deck .ctl.plus-one span{font-size:17px;font-weight:700}
.lesson-controls.pace-bar .deck .ctl.plus-one.calm{background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent-text,var(--accent));box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--accent) 30%,transparent)}
.lesson-controls.pace-bar .deck .ctl span{white-space:nowrap}
/* paused: one thing to do, Continue */
.lesson-controls.pace-bar .pace-paused{display:none}
.lesson-controls.pace-bar.is-paused .pace-paused{display:flex;align-items:center;gap:8px;min-height:36px;margin:0;padding:0 14px 4px;font-size:15px;font-weight:600;line-height:1.3;color:var(--ink)}
.lesson-controls.pace-bar .pace-paused svg{flex:none;width:19px;height:19px;color:var(--accent)}
/* the mic or internet card says what to do: the paused line steps aside (its room kept, so nothing jumps) */
.lesson-controls.pace-bar:has(.lesson-block:not([hidden])) .pace-paused{visibility:hidden}
.lesson-controls.pace-bar.is-paused .step-row{display:none}
.lesson-controls.pace-bar.is-paused .deck .ctl.plus-one{display:none}
.lesson-controls.pace-bar.is-paused .deck .fab{order:3;flex:1;width:auto;background:var(--accent-grad);color:var(--accent-ink);box-shadow:0 6px 16px -8px var(--glow)}
.lesson-controls.pace-bar.is-paused .deck .fab .pw{display:inline;order:-1;font-size:17px;font-weight:700}
/* no room for the big button's word (large phone text): Again shows its arrow only */
.lesson-controls.pace-bar .deck.tight .ctl.again{width:52px;padding:0;justify-content:center}.lesson-controls.pace-bar .deck.tight .ctl.again span{display:none}
.lesson-controls.pace-bar .deck .ctl.plus-one span{min-width:0;overflow:hidden;text-overflow:ellipsis}
/* words about the lesson (the reciter's cue, the end) float just above the line */
.lesson-controls.pace-bar>.caption{bottom:calc(100px + max(4px,env(safe-area-inset-bottom)))}
.lesson-controls.pace-bar:has(>.caption:not([hidden]))>.notice{bottom:calc(100px + max(4px,env(safe-area-inset-bottom)) + 6px + var(--cap-h,0px))}
.lesson-controls.pace-bar.pace-lift>.caption,.lesson-controls.pace-bar.pace-lift:has(>.caption:not([hidden]))>.notice{transform:none}
/* narrow phones (340 px and less): Again shows its arrow only (its name stays for screen readers), so the big button keeps its words */
@media (max-width:340px){.lesson-controls.pace-bar .deck .ctl.again{width:52px;padding:0;justify-content:center}.lesson-controls.pace-bar .deck .ctl.again span{display:none}.lesson-controls.pace-bar .deck .ctl.plus-one span{font-size:16px}}
