/* 2026-11-03 (Muhammad, his screenshot of the lesson foot at 15:15): "the quran text is too small. So most of the space is being taken by the
   box in the bottom with the play. The quran page size outside of a lesson is how it should be even in a lesson. So make that minimal",
   "this part doesnt make sense to have ayah > and < Ayah", "a forward facing arrow and then a double arrow", "able to have a subtle way
   which says page is on the left or the right. computer website version needs to have full 2 pages", and (15:16) the chosen ayat card
   "should be bigger and should allow me to choose the surah/verses manually once I drag".
   1. A lesson's page gets exactly Practice's room: its foot is one row 50 px tall, as Practice's, and what used to sit over the box (the
      step with its dots, Help, Skip intro, the guide's words) floats in the strip under the page's last line, where Practice's chip sits.
   2. Guided: Again, then the single arrow (the next recitation), play, the double arrow (all the recitations of this step at once).
   3. The page's side: a soft fold on the edge where the page meets its pair, as a mushaf's binding (a right page has it on its left).
   4. A computer screen shows the open mushaf: the page and its pair side by side (mushaf.js draws the pair), the bars centred under them.
   5. The chosen ayat: a card with From and To, each a surah and an ayah, and big Revise and Learn buttons. */

/* 1. The same room as Practice, in every lesson (Guided, My pace, a revision, the hafiz test). */
.screen.lesson-screen.lesson-screen{--stage-bottom:calc(max(10px,env(safe-area-inset-bottom)) + 56px)}
.lesson-screen:not(.bare) .mushaf .page-number{visibility:hidden}

/* The strip under the last line: the step on the start side, Help or Skip intro on the end side. */
.lesson-controls:has(.control-row.deck)>.step-row{position:absolute;z-index:5;left:0;right:0;bottom:100%;height:38px;min-height:0;margin:0;padding:0 12px;gap:8px;align-items:center;pointer-events:none}
.lesson-controls:has(.control-row.deck)>.step-row>*{pointer-events:auto}
.lesson-controls:has(.control-row.deck) .step-pill{min-height:32px;height:32px;max-width:70%;padding:0 12px 0 10px;font-size:14px}
/* ux2 (2026-11-08): the longer step words ("Repeat along with Minshawi") use the whole strip when Help and Skip intro are not there; with
   either, the step gives way to it (both are flex:none), so nothing overlaps. */
.lesson-controls:has(.control-row.deck) .step-pill{max-width:none}
.lesson-controls:has(.control-row.deck) .step-row .ctl.help.pill,.lesson-controls:has(.control-row.deck) .skip-intro{min-height:32px;height:32px}
/* The guide's words sit in the strip in place of the step (growing upwards if long), clear of Skip intro and Help. */
.lesson-controls:has(.control-row.deck)>.caption{bottom:calc(100% + 3px);padding:0 12px;border-block:6px solid transparent;font-size:14px;line-height:1.4}
.lesson-controls:has(.control-row.deck):has(>.caption:not([hidden])) .step-pill{visibility:hidden}
.lesson-controls:has(.control-row.deck)>.caption{left:12px;right:auto;translate:none;max-width:calc(100% - 140px)}
html[dir=rtl] .lesson-controls:has(.control-row.deck)>.caption{right:12px;left:auto}
.lesson-controls:has(.control-row.deck)>.notice{bottom:calc(100% + 44px)}
.lesson-controls:has(.control-row.deck):has(>.caption:not([hidden]))>.notice{bottom:calc(100% + 10px + var(--cap-h,0px))}
.lesson-controls:has(.control-row.deck)>.lesson-block{bottom:calc(100% + 4px)}

/* 2. Guided: one row, Practice's height. Again at the start, the two arrows either side of play in the middle. */
.lesson-controls:has(.lbar){padding:0}
.lesson-screen .control-row.deck.lbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;height:auto;margin:0;padding:6px 12px max(10px,env(safe-area-inset-bottom));border-radius:0;background:none;box-shadow:none}
.lbar .ctl{flex-direction:row;gap:7px;width:auto;max-width:none;height:50px;margin:0;border-radius:25px;background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.lbar .ctl.again{justify-self:start;padding:0 16px 0 13px}
.lbar .ctl.again svg{width:20px;height:20px}
.lbar .ctl.again span{font-size:15px;font-weight:650;line-height:1;color:inherit}
.lbar-mid{display:flex;align-items:center;gap:10px}
.lbar .ctl.plus-one,.lbar .ctl.big-step{justify-content:center;width:50px;padding:0}
.lbar .ctl.plus-one svg,.lbar .ctl.big-step svg{width:24px;height:24px;stroke-width:2.3}
.lesson-controls .lbar .fab{width:56px;height:56px;margin:-3px 0}
.lesson-controls .lbar .fab svg{width:25px;height:25px}
.lbar .ctl:active:not(:disabled){background:var(--card)}
.lbar .ctl:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.lbar-end{justify-self:end}
@media (max-width:359px){.lbar .ctl.again{width:50px;padding:0;justify-content:center}.lbar .ctl.again span{display:none}.lbar-mid{gap:8px}.lbar .ctl.plus-one,.lbar .ctl.big-step{width:46px;height:46px}}

/* My pace keeps its own buttons, in the same one row (Pause, Again, the big button). */
.lesson-controls.pace-bar{padding:0}
.lesson-controls.pace-bar .control-row.deck{margin:0 12px max(8px,calc(env(safe-area-inset-bottom) - 2px));padding:4px;border-radius:30px}
.lesson-controls.pace-bar .deck .fab,.lesson-controls.pace-bar .deck .ctl.again,.lesson-controls.pace-bar .deck .ctl.plus-one{height:50px}
.lesson-controls.pace-bar .deck .fab{width:50px}
.lesson-controls.pace-bar.is-paused .pace-paused{position:absolute;z-index:5;left:0;right:0;bottom:100%;height:38px;min-height:0;margin:0;padding:0 14px}
.lesson-controls.pace-bar>.caption{bottom:calc(100% + 3px)}
.lesson-controls.pace-bar:has(>.caption:not([hidden]))>.notice{bottom:calc(100% + 10px + var(--cap-h,0px))}

/* 3. The page's side. A mushaf's odd pages are on the right, the even on the left; the fold is on the edge that meets the pair. */
:is(.lesson-screen,.practice-screen) .mushaf[data-side]{--fold:color-mix(in srgb,var(--page-ink,#171511) 9%,transparent)}
:is(.lesson-screen,.practice-screen) .mushaf[data-side=r]{background-image:linear-gradient(to right,var(--fold),transparent 14px)}
:is(.lesson-screen,.practice-screen) .mushaf[data-side=l]{background-image:linear-gradient(to left,var(--fold),transparent 14px)}

/* 4. The open mushaf on a computer (the same test as mushaf.js spread()). */
@media (min-width:900px) and (min-aspect-ratio:5/4){
  #app:has(.lesson-screen,.practice-screen){max-width:min(calc(100vw - 48px),calc((100dvh - 96px)*1.24 + 40px))}
  :is(.lesson-screen,.practice-screen) .mushaf[data-side=r]:not(.aside){left:50%;right:0;background-image:linear-gradient(to right,var(--fold),transparent 34px)}
  :is(.lesson-screen,.practice-screen) .mushaf[data-side=l]:not(.aside){left:0;right:50%;background-image:linear-gradient(to left,var(--fold),transparent 34px)}
  .lesson-screen>.lesson-controls,.practice-screen>.practice-bar{max-width:600px;margin-inline:auto}
  .practice-screen .mushaf.mate{cursor:pointer}
}
.mushaf.mate .band{pointer-events:none}

/* 5. The chosen ayat: a card over the foot. */
.practice-bar .pick-bar.pick-card{flex-direction:column;align-items:stretch;gap:8px;height:auto;left:10px;right:10px;bottom:calc(100% + 6px);padding:12px 12px 12px;border-radius:20px;background:var(--surface);box-shadow:0 0 0 1px var(--line),0 12px 32px -10px rgba(0,0,0,.35)}
html[dir=rtl] .practice-bar .pick-bar.pick-card{padding:12px}
.pick-card .pc-head{display:flex;align-items:center;gap:10px;min-height:30px;padding-inline-start:4px}
.pick-card .pc-n{font-size:17px;font-weight:700;line-height:1.2}
.pick-card .why{flex:1;min-width:0;font-size:13px;font-weight:600;line-height:1.3;color:var(--miss-text,var(--miss))}
.pick-card .pick-x{width:36px;height:36px;margin-inline-start:auto}
.pick-card .pick-x svg{width:19px;height:19px}
.pick-card .pc-row{display:grid;grid-template-columns:44px 1fr 84px;align-items:center;gap:8px}
.pick-card .pc-l{font-size:14px;font-weight:650;color:var(--muted)}
.pick-card .pc-sel{min-width:0;width:100%;height:44px;padding:0 30px 0 12px;border:1px solid var(--line);border-radius:12px;background:var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23857D70' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center/16px;color:var(--ink);font:inherit;font-size:15px;font-weight:600;-webkit-appearance:none;appearance:none;text-overflow:ellipsis}
html[dir=rtl] .pick-card .pc-sel{padding:0 12px 0 30px;background-position:left 9px center}
.pick-card .pc-sel:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.pick-card .pc-go{display:grid;grid-template-columns:1fr 1.4fr;gap:8px;margin-top:2px}
.pick-card .pick-revise,.pick-card .pick-learn{justify-content:center;height:48px;padding:0 16px;border-radius:24px;font-size:16px;font-weight:700}
.pick-card .pick-revise{box-shadow:inset 0 0 0 1.5px var(--line);background:var(--surface)}
.pick-card .pick-learn{gap:8px}
.pick-card .pick-learn svg{width:17px;height:17px}
.pick-card .pick-revise::after,.pick-card .pick-learn::after{inset:0}
.practice-bar.picked:has(.pick-card) .notice,.practice-bar.picked:has(.pick-card) .notice.error{bottom:calc(100% + var(--card-h,236px) + 12px)}
@media (max-width:359px){.pick-card .pc-row{grid-template-columns:40px 1fr 72px;gap:6px}.pick-card .pc-sel{font-size:14px;padding-inline:10px 26px}}
.lesson-screen .lbar .ctl.plus-one,.lesson-screen .lbar .ctl.big-step{background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.lesson-screen .lbar .ctl.again{background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
/* (PM L-319) the guide's words in the lesson's top card, over the surah name and time left, never over the Quran text; app.js capFit
   makes the letters smaller (to 11px) until a long line fits the card */
.lesson-card{position:relative}
.lesson-card>.caption.top-cap{position:absolute;inset:0;z-index:3;margin:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:3px 12px;border-radius:16px;background:var(--card);color:var(--ink);font-size:15px;font-weight:500;line-height:1.2;text-align:center;overflow:hidden;pointer-events:none;text-wrap:balance}
.lesson-card>.caption.top-cap[hidden]{display:none}
.lesson-card:has(>.top-cap:not([hidden]))>.card-face{visibility:hidden}

/* (PM L-323) a test: the stretch to recite on a soft blue wash (mushaf.js bands, .tband), no underline, so it never looks like a red
   mark or the gold listening band; the Help pill while it counts down to the help */
.mushaf .band.tband{background:color-mix(in srgb,var(--testband,#2F7FC1) 11%,transparent);box-shadow:none;border-radius:.25em}
:root[data-theme=dark] .mushaf .band.tband{--testband:#7FB2E5}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .mushaf .band.tband{--testband:#7FB2E5}}

/* (PM L-324) the setup's ayat step: the chosen ayat card in place of the one line box */
.ob-dock.ob-pick{flex-direction:column;align-items:stretch;gap:8px;min-height:0;padding:12px;border-radius:22px}
.ob-dock.ob-pick .pc-head{padding-inline-start:0}
.ob-dock.ob-pick .ob-back{width:40px;height:40px}
.ob-dock.ob-pick .ob-whole{margin-inline-start:auto;min-height:36px;padding:0 14px;border:0;border-radius:18px;background:var(--card);color:var(--ink);font:inherit;font-size:14px;font-weight:650;cursor:pointer}
.ob-dock.ob-pick .ob-start{width:100%;margin-top:2px}
@media (min-width:900px){.ob-dock.ob-pick{left:50%;right:auto;width:min(560px,calc(100% - 24px));translate:-50% 0}}

/* (PM L-327/328) the Guided bar: Again on the left, then > , >> and Play at the very right, the same in Arabic and English */
/* L-749 (15 Nov, his words "Skip should only have 1 button thats it"): v122's bar again without its >> : Again on the left, then > and Play at the very right */
.lesson-screen .control-row.deck.lbar{grid-template-columns:auto 1fr;direction:ltr}
.lbar .lbar-mid{justify-self:end}
html[dir=rtl] .lbar svg.dir{transform:none}
/* PM L-348 (3 Nov 20:28, "make part of the box transparent so i can see the verses while they're being selected"): the chosen ayat
   card is see-through glass, the pickers and buttons keep their faces, and while a drag is choosing the card fades back further. */
.practice-bar .pick-bar.pick-card,.ob-dock.ob-pick{background:color-mix(in srgb,var(--surface) 38%,transparent);box-shadow:0 0 0 1px var(--line),0 12px 32px -16px rgba(0,0,0,.3)}
.pick-card .pc-sel{background-color:color-mix(in srgb,var(--card) 95%,transparent)}
.pick-card .pick-revise{background:color-mix(in srgb,var(--surface) 95%,transparent)}
.ob-dock.ob-pick .ob-whole,.ob-dock.ob-pick .ob-back{background:color-mix(in srgb,var(--card) 95%,transparent)}
.pick-card .pick-x{border-radius:50%;background:color-mix(in srgb,var(--surface) 85%,transparent)}
.pick-card :is(.pc-n,.pc-l){justify-self:start;padding:3px 9px;border-radius:9px;background:color-mix(in srgb,var(--surface) 90%,transparent);color:var(--ink)}
.pick-card .pc-l{margin-inline-start:-4px;font-size:13.5px}
.pick-card .why{padding:3px 8px;border-radius:9px;background:color-mix(in srgb,var(--surface) 90%,transparent)}
.pick-card :is(.pc-row,.pc-go,.pick-x){transition:opacity .18s}
html.pick-drag .practice-bar .pick-bar.pick-card{background:color-mix(in srgb,var(--surface) 12%,transparent);box-shadow:0 0 0 1px color-mix(in srgb,var(--line) 60%,transparent)}
html.pick-drag .pick-card :is(.pc-row,.pc-go,.pick-x){opacity:.28}
/* PM L-386 (4 Nov). The chosen ayat card: compact, solid once chosen (Muhammad 09:44), nearly clear only while a drag is choosing.
   One line says what is chosen; Change opens From and To. Three ways, each a labelled button: Revise (its own blue), Read, Memorise (gold). */
.practice-bar .pick-bar.pick-card,.ob-dock.ob-pick{background:color-mix(in srgb,var(--surface) 96%,transparent);box-shadow:0 0 0 1px var(--line),0 12px 32px -12px rgba(0,0,0,.38)}
.pick-card .pc-head{gap:8px}
.pick-card .pc-what{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:600;color:var(--muted)}
.pick-card .pc-n{flex:none}
.pick-card .pick-x{margin-inline-start:0}
.pick-card .pc-edit{flex:none;min-height:34px;padding:0 13px;border:0;border-radius:17px;background:var(--card);color:var(--ink);font:inherit;font-size:14px;font-weight:650;cursor:pointer}
.pick-card .pc-tip{margin:-2px 4px 0;font-size:14px;font-weight:600;line-height:1.3;color:var(--accent-text)}
.pick-card .pc-go{grid-template-columns:1fr 1fr 1.25fr}
.pick-card .pc-act{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;height:auto;min-height:58px;padding:6px 6px;border:0;border-radius:18px;font:inherit;cursor:pointer;line-height:1.15}
.pick-card .pc-act svg{width:18px;height:18px;margin-bottom:2px}
.pick-card .pc-act .pc-at{font-size:16px;font-weight:750}
.pick-card .pc-act small{font-size:11.5px;font-weight:600;opacity:.8}
.pick-card .pick-revise{background:color-mix(in srgb,var(--hint) 20%,var(--surface));color:color-mix(in srgb,var(--hint) 80%,var(--ink));box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--hint) 45%,transparent)}
.pick-card .pick-read{background:var(--card);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.pick-card .pick-learn{background:var(--accent-grad);color:var(--accent-ink);box-shadow:0 6px 16px -8px var(--glow)}
.pick-card .pc-act:active{filter:brightness(.95)}
.pick-card .pc-act:focus-visible,.turn-b:focus-visible,.pick-card .pc-edit:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
html.pick-drag .practice-bar .pick-bar.pick-card,html.pick-drag .ob-dock.ob-pick{background:color-mix(in srgb,var(--surface) 12%,transparent)}
html.pick-drag .pick-card :is(.pc-head>:not(.pc-n),.pc-tip,.turn-row){opacity:.28}
/* Next page / Page before: always left and right as a mushaf turns, over the foot or over the card */
.turn-row{position:absolute;left:0;right:0;bottom:calc(100% + 8px);display:flex;align-items:center;gap:8px;pointer-events:none;direction:ltr}
.practice-bar>.turn-row{left:10px;right:10px}
.practice-bar.picked>.turn-row,.practice-screen.bare .turn-row{display:none}
.turn-b{pointer-events:auto;flex:none;display:inline-flex;align-items:center;gap:4px;height:36px;padding:0 12px;border:0;border-radius:18px;background:color-mix(in srgb,var(--surface) 94%,transparent);color:var(--ink);font:inherit;font-size:13.5px;font-weight:650;box-shadow:0 0 0 1px var(--line),0 4px 12px -6px rgba(0,0,0,.3);cursor:pointer}
.turn-b svg{width:17px;height:17px;transform:none!important}
.turn-b:first-child{padding-left:8px}.turn-b:last-child{padding-right:8px}
.turn-tip{position:absolute;left:50%;bottom:calc(100% + 6px);translate:-50% 0;max-width:calc(100% - 8px);padding:5px 12px;border-radius:14px;background:color-mix(in srgb,var(--surface) 94%,transparent);box-shadow:0 0 0 1px var(--line);text-align:center;font-size:12.5px;font-weight:650;line-height:1.3;color:var(--accent-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.practice-screen:not(.bare,:has(>.sheet-scrim)) .practice-bar:not(.picked):has(>.fab[data-state=idle]):has(>.resume-chip)>.turn-row{bottom:calc(100% + 36px)}
.practice-bar.pc-up .pick-bar.pick-card{top:calc(-1 * var(--up,0px));bottom:auto}
.practice-bar.pc-up .pick-card>.turn-row{top:calc(100% + 8px);bottom:auto}
.turn-gap{flex:1}
@media (max-width:359px){.turn-b span{display:none}.turn-b{width:40px;padding:0;justify-content:center}}
/* the setup's page step: the page buttons over its card */
.ob.ob-ayat .ob-dock>.turn-row{pointer-events:none}
/* the two arrows in the lesson foot carry a word under them */
.lbar .ctl.plus-one,.lbar .ctl.big-step{flex-direction:column;gap:1px;width:58px;height:52px}
.lbar .ctl.plus-one svg,.lbar .ctl.big-step svg{width:21px;height:21px;transform:scaleX(-1)!important}    /* L-749 (15 Nov): v122's arrow, the same in both languages */
.lbar .ctl .ctl-w{font-size:11px;font-weight:700;line-height:1;white-space:nowrap}
@media (max-width:359px){.lbar .ctl.plus-one,.lbar .ctl.big-step{width:50px;height:50px}.lbar .ctl .ctl-w{font-size:10px}}
/* the lesson's end: what Next ayat will be */
.done-actions .next-what{margin:-4px 0 4px;font-size:14px}

.practice-bar>.turn-row{bottom:calc(100% + 3px)}
.practice-bar>.turn-row .turn-b{height:32px}
.practice-screen:not(.bare,:has(>.sheet-scrim)) .practice-bar:not(.picked):has(>.fab[data-state=idle]):has(>.resume-chip)>.turn-row{bottom:calc(100% + 3px)}
.practice-bar:has(>.resume-chip)>.turn-row .turn-b{width:34px;padding:0;justify-content:center}
.practice-bar:has(>.resume-chip)>.turn-row .turn-b span,.practice-bar:has(>.resume-chip)>.turn-row .turn-tip{display:none}
.practice-screen .practice-bar .resume-chip{left:50%;right:auto;translate:-50% 0;max-width:calc(100% - 110px)}
html[dir=rtl] .practice-screen .practice-bar .resume-chip{left:50%;right:auto}
.practice-bar:not(:has(>.fab[data-state=idle]))>.turn-row{display:none}
html:has(.tour-chip:not([hidden])) .practice-bar:not(.picked)>.turn-row{bottom:calc(100% + 36px)}
/* PM L-405: two buttons in the chosen ayat card, side by side, no line under them */
.pick-card .pc-go{grid-template-columns:1fr 1fr}
.pick-card .pc-act{flex-direction:row;gap:8px;min-height:52px}
.pick-card .pc-act svg{margin-bottom:0}
/* PM L-406: the Revise sheet's two choices are titles only */
.revise-choice{min-height:58px;justify-content:center;padding:12px 18px}

/* PM L-411: the help's countdown, calm. The pill keeps its word, size and colours; for the last 3 s a thin ring fills round the light's
   place with a soft 3, 2, 1 in it, then the help comes. */
.ctl.help.counting>svg{display:none}
.ctl.help>.hc{position:relative;display:inline-grid;place-items:center;flex:none;width:20px;height:20px;font-style:normal}
.ctl.help>.hc svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);overflow:visible}
.ctl.help>.hc circle{fill:none;stroke-width:2.2}
.ctl.help>.hc .hc-t{stroke:color-mix(in srgb,var(--muted) 22%,transparent)}
.ctl.help>.hc .hc-r{stroke:var(--accent,#A87B1A);stroke-linecap:round;stroke-dasharray:62.84;stroke-dashoffset:62.84;animation:hc-fill 1.5s linear var(--hd,0ms) forwards}
.ctl.help>.hc b{font-size:11px;font-weight:650;line-height:1;color:var(--accent,#A87B1A);font-variant-numeric:tabular-nums;opacity:.9}
.ctl.help>.hc b.in{animation:hc-in .4s ease-out}
@keyframes hc-fill{to{stroke-dashoffset:0}}
@keyframes hc-in{from{opacity:0}to{opacity:.9}}
@media (prefers-reduced-motion:reduce){.ctl.help>.hc .hc-r{animation:none;stroke-dashoffset:0}.ctl.help>.hc b.in{animation:none}}
/* PM L-411: the no connection card says his place is kept */
.lesson-block .block-s{margin:2px 0 0;font-size:13px;line-height:1.35;color:var(--muted)}
.lesson-block .block-s[hidden]{display:none}
/* The card over a lesson when listening stops (PM L-531, 2026-11-05, his phone at 18:48: the title and "Your place is kept..."
   ran over each other). The words now sit in one column, title above the line under it, between the icon and Try again;
   the grid follows the page's direction, so Arabic mirrors it by itself. */
.lesson-block{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:12px;row-gap:2px}
.lesson-block[hidden]{display:none}
.lesson-block .block-ic{grid-column:1;grid-row:1/span 2}
.lesson-block .block-t{grid-column:2;grid-row:1;align-self:end;overflow-wrap:anywhere}
.lesson-block .block-s{grid-column:2;grid-row:2;align-self:start;margin:0}
.lesson-block .block-go{grid-column:3;grid-row:1/span 2}
.lesson-block:has(.block-s[hidden]) .block-t{grid-row:1/span 2;align-self:center}
/* PM L-538: the Recite screen's card when it cannot listen (no mic, mic refused, no internet): the lesson card's look and place,
   just above the bottom bar, title over what to do, Try again on the side; under any open sheet, and hidden while one is open. */
.practice-screen:has(>.sheet-scrim) .practice-bar>.mic-card{display:none}
.practice-bar>.mic-card{position:absolute;z-index:7;left:12px;right:12px;bottom:calc(100% + 54px);display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:12px;
  padding:12px 12px 12px 14px;border-radius:16px;background:var(--surface,#fff);color:var(--ink,#0E1734);box-shadow:var(--shadow,0 10px 30px -12px rgba(0,0,0,.35))}
html[dir=rtl] .practice-bar>.mic-card{padding:12px 14px 12px 12px}
.practice-bar>.mic-card .block-ic{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb,var(--miss,#D93025) 13%,transparent);color:var(--miss-text,#B3261E)}
.practice-bar>.mic-card .block-ic svg{width:19px;height:19px}
.practice-bar>.mic-card .mc-text{min-width:0;display:flex;flex-direction:column;gap:2px;overflow-wrap:anywhere}
.practice-bar>.mic-card .mc-text strong{font-size:15px;font-weight:600;line-height:1.35}
.practice-bar>.mic-card .mc-text span{font-size:13px;line-height:1.35;color:var(--muted)}
.practice-bar>.mic-card .block-go{min-height:44px;padding:0 16px;border:0;border-radius:999px;background:var(--accent-grad);color:var(--accent-ink);font:inherit;font-size:15px;font-weight:650}
.practice-bar>.mic-card .block-go:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.practice-bar>.mic-card.nudge{animation:block-nudge .3s}
@media(prefers-reduced-motion:reduce){.practice-bar>.mic-card.nudge{animation:none}}
/* a long how-to line: Try again goes under the words on a narrow phone, so nothing is squeezed or overlaps */
@media(max-width:380px){.practice-bar>.mic-card,.lesson-block:has(.block-s:not([hidden])){grid-template-columns:auto minmax(0,1fr)}
  .practice-bar>.mic-card .block-go,.lesson-block:has(.block-s:not([hidden])) .block-go{grid-column:1/-1;grid-row:auto;margin-top:8px;justify-self:stretch}}

/* L-749 (ideas 8, 9, 13). The step line, centred, with a chevron because it opens the sheet. (15 Nov: the foot's Again and Next are v122's again, above.) */
.lesson-controls:has(.control-row.deck)>.step-row{justify-content:center}
.lesson-controls:has(.control-row.deck) .step-row .ctl.help.pill,.lesson-controls:has(.control-row.deck) .skip-intro{margin:0}
.step-pill .chev{width:16px;height:16px;flex:none;margin-inline-start:-2px;color:var(--muted);stroke-width:2.2}
.step-pill.quiet .chev{display:none}
/* the sheet the step line opens: over the foot, Skip this step and Show the words first, then the lesson's settings as before */
.lesson-screen .drill-panel,html[dir=rtl] .lesson-screen .drill-panel{top:auto;left:10px;right:10px;width:auto;max-width:480px;margin-inline:auto;bottom:calc(var(--stage-bottom) + 46px);max-height:min(64%,480px)}
.panel-quick{display:flex;flex-direction:column;margin:0 0 2px}
.panel-act{display:flex;align-items:center;gap:12px;width:100%;min-height:50px;padding:0 4px;border-bottom:1px solid var(--line);font-size:16px;font-weight:650;color:var(--ink);text-align:start}
.panel-act:last-child{border-bottom:0}
.panel-act[hidden]{display:none}
.panel-act svg{width:21px;height:21px;color:var(--accent)}
.panel-act:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* the end of a lesson */
.view.end-page{gap:12px;padding-bottom:max(22px,env(safe-area-inset-bottom))}
.end-page .end-name{margin-top:auto;padding-top:18px}
.end-page .end-name .sname.xl{font-size:84px}
.end-page .done-t{margin-top:30px;font-size:32px;line-height:1.18;letter-spacing:-.4px;text-wrap:balance}
.end-page .end-v{display:block}
.end-page .sbar-line{margin-top:4px;font-size:16px}
.end-page .done-s{margin-top:2px}
.end-page .done-actions{margin-top:auto;padding-top:24px;gap:6px}
.end-page .done-actions .link{min-height:48px;font-size:16px}
.end-page .remind{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px 6px;margin-top:6px;font-size:14px;color:var(--muted)}
.end-page .remind .link{min-height:36px;padding:0 8px;font-size:14px}
/* mem1 (2026-11-14): phones up to 400 px, the step line's inner spaces a little tighter so "Your turn: on your own" with its dots and the chevron
   fits beside Help at 360 px without being cut (the rule below still wins under 360 px) */
@media (max-width:400px){.lesson-controls:has(.control-row.deck) .step-pill{gap:5px;padding:0 8px 0 6px}}
/* small phones: Again keeps its word (the older rule above hid it), the step line gives Help room */
@media (max-width:359px){
  .lbar .ctl.again{width:auto;padding:0 12px 0 10px}
  .lbar .ctl.again span{display:block}
  .lesson-controls:has(.control-row.deck) .step-pill{padding:0 6px 0 5px;gap:6px;font-size:13.5px}
  .lesson-controls:has(.control-row.deck) .step-row{gap:4px;padding:0 8px}
  .lesson-controls:has(.control-row.deck) .step-row .ctl.help.pill{padding:0 9px}
}

/* round 2: tap areas of 44 px at least (padding and the hit area, not a new look) */
.end-page .remind .link{min-height:44px;min-width:44px}
.lesson-controls .step-pill::after{inset:-6px 0}
/* round 2: the home button's second line "Yesterday's ayat, then 3 to 6" wraps to two lines on a 320 phone instead of being cut */
