/* Ayah's look, PM L-414 (2026-11-04, Muhammad: "redesign it so it looks very cool and modern and interactive. rn it reeks of claude").
   One layer over every other style file, loaded last. Colours: Iznik tile lapis and turquoise on a cool white; night blue in the dark.
   Type: Reem Kufi (geometric Kufic, Arabic and Latin) for names and headings, Readex Pro (made for Arabic and Latin together) for the rest.
   The mushaf's own drawing is untouched: its ink, markers, mistake red, helped blue, newest word and layout keep their old values.
   Undo: take the look.css and look.js lines out of index.html (backups/v-look/rollback.sh does it). */
@font-face{font-family:'Readex Pro';src:url('/look/readex.woff2') format('woff2');font-weight:160 700;font-display:swap}
@font-face{font-family:'Reem Kufi';src:url('/look/reemkufi.woff2') format('woff2');font-weight:400 700;font-display:swap}

:root{
  --bg:#EEF2F9;--page:#FBFCFF;--surface:#FFFFFF;--card:#E6ECF7;--ink:#0E1734;--muted:#56618A;--line:#D9E0EE;
  --accent:#2443D6;--accent-grad:linear-gradient(180deg,#3758EC 0%,#2443D6 55%,#1E38C2 100%);--accent-ink:#FFFFFF;--glow:rgba(36,67,214,.32);
  --accent-text:#1F37B8;--accent-tint:color-mix(in srgb,#2443D6 11%,transparent);
  --fill:#2443D6;--tq:#0E9F92;--tq-soft:color-mix(in srgb,#14B8A8 16%,transparent);
  --page-ink:#171511;--rosette:#171511;    /* the mushaf's own ink and markers stay exactly as before (light); dark sets its own */
  --band:rgba(36,67,214,.085);
  --shadow:0 1px 1px rgba(14,23,52,.04),0 6px 18px -8px rgba(14,23,52,.18);--scrim:rgba(9,15,40,.36);
  --chrome:var(--page);--btn:var(--surface);--mark-off:#7B85A8;
  --timer-bg:#E3E9F6;--timer-ink:#1B2650;--peek-ring:#B9C3DE;--peek-edge:rgba(36,67,214,.42);--peek-glow:rgba(36,67,214,.32);
  --mic-grad:var(--accent-grad);--mic-busy:linear-gradient(110deg,#2443D6 0%,#3D5CF0 40%,#14B8A8 50%,#3D5CF0 60%,#2443D6 100%);--mic-glow:rgba(36,67,214,.4);
  --lift:0 1px 0 rgba(255,255,255,.22) inset,0 12px 26px -14px rgba(28,52,190,.75);
  --glass:color-mix(in srgb,var(--surface) 86%,transparent);
  --spring:cubic-bezier(.2,1.25,.35,1);--out:cubic-bezier(.16,1,.3,1);
  --ui:'Readex Pro',-apple-system,BlinkMacSystemFont,Roboto,'Segoe UI',sans-serif;--display:'Reem Kufi','Readex Pro',sans-serif;
  font-family:var(--ui);background:var(--bg)
}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){
  --bg:#080D1F;--page:#0A1024;--surface:#141B37;--card:#1C2548;--ink:#EDF1FF;--muted:#9AA5CB;--line:#263158;
  --accent:#5D7BFF;--accent-grad:linear-gradient(180deg,#4F6DF5 0%,#4362EA 55%,#3A56DA 100%);--fill:#4362EA;--accent-ink:#FFFFFF;--glow:rgba(93,123,255,.3);
  --accent-text:#93A8FF;--accent-tint:color-mix(in srgb,#5D7BFF 18%,transparent);--tq:#3ED8C6;--tq-soft:color-mix(in srgb,#3ED8C6 16%,transparent);
  --band:rgba(110,140,255,.13);
  --shadow:0 1px 1px rgba(0,0,0,.3),0 10px 24px -10px rgba(0,0,0,.6);--scrim:rgba(2,5,16,.6);
  --chrome:var(--page);--btn:var(--surface);--mark-off:#7D88AE;
  --timer-bg:#1C2548;--timer-ink:#DCE3FF;--peek-ring:#3A4673;--peek-edge:rgba(110,140,255,.45);--peek-glow:rgba(110,140,255,.3);
  --mic-busy:linear-gradient(110deg,#4362EA 0%,#6F8BFF 40%,#3ED8C6 50%,#6F8BFF 60%,#4362EA 100%);--mic-glow:rgba(93,123,255,.3);
  --lift:0 1px 0 rgba(255,255,255,.16) inset,0 12px 28px -12px rgba(60,90,255,.55);
  --glass:color-mix(in srgb,var(--surface) 80%,transparent)
}}
:root[data-theme=dark]{
  --bg:#080D1F;--page:#0A1024;--surface:#141B37;--card:#1C2548;--ink:#EDF1FF;--muted:#9AA5CB;--line:#263158;
  --accent:#5D7BFF;--accent-grad:linear-gradient(180deg,#4F6DF5 0%,#4362EA 55%,#3A56DA 100%);--fill:#4362EA;--accent-ink:#FFFFFF;--glow:rgba(93,123,255,.3);
  --accent-text:#93A8FF;--accent-tint:color-mix(in srgb,#5D7BFF 18%,transparent);--tq:#3ED8C6;--tq-soft:color-mix(in srgb,#3ED8C6 16%,transparent);
  --band:rgba(110,140,255,.13);
  --shadow:0 1px 1px rgba(0,0,0,.3),0 10px 24px -10px rgba(0,0,0,.6);--scrim:rgba(2,5,16,.6);
  --chrome:var(--page);--btn:var(--surface);--mark-off:#7D88AE;
  --timer-bg:#1C2548;--timer-ink:#DCE3FF;--peek-ring:#3A4673;--peek-edge:rgba(110,140,255,.45);--peek-glow:rgba(110,140,255,.3);
  --mic-busy:linear-gradient(110deg,#4362EA 0%,#6F8BFF 40%,#3ED8C6 50%,#6F8BFF 60%,#4362EA 100%);--mic-glow:rgba(93,123,255,.3);
  --lift:0 1px 0 rgba(255,255,255,.16) inset,0 12px 28px -12px rgba(60,90,255,.55);
  --glass:color-mix(in srgb,var(--surface) 80%,transparent)
}

/* Type */
body,button,input,select,textarea{font-family:var(--ui)}
body{font-feature-settings:'ss01';-webkit-font-smoothing:antialiased}
h1,h2,.ob-h,.view h1,.view h2,.practice-screen .page-card strong,.lesson-screen #lesson-name,.view.done-page h1,.view.done-page h2,.sheet-head h2,.sheet-head h3,.pick-card .pc-n,.wordmark{font-family:var(--display);letter-spacing:0}
.ob-h{font-size:31px;font-weight:600;line-height:1.18}
.practice-screen .page-card strong{font-weight:600}
.practice-screen .page-card .meta,.rec-timer,.pick-card .pc-what{font-variant-numeric:tabular-nums}
.ob-t strong{font-weight:600}
:is(.ob-go,.ob-start,.pick-card .pc-act .pc-at,.practice-bar .fab){font-weight:600}

/* Press and settle: every button gives under the finger and springs back */
:where(button,.ob-card,.ob-row,.srow,.item,.tab,.pill,.round,.ctl,.pc-act,.pc-edit,.turn-b,.chip,.seg span){transition:transform .38s var(--spring),background-color .2s,box-shadow .25s,color .2s,opacity .2s}
:where(button,.ob-card,.ob-row,.srow,.item,.tab,.pc-act,.pc-edit,.turn-b):active:not(:disabled){transform:scale(.965);transition-duration:.08s}
.practice-bar .fab:active:not(:disabled){transform:scale(.975)}
:focus-visible{outline:2.5px solid var(--accent);outline-offset:3px}

/* The geometric mark: an eight point star (two squares), the only ornament, used faintly on first open and on the Recite button */
:root{--star:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23fff' stroke-width='1.6'%3E%3Crect x='20.7' y='20.7' width='58.6' height='58.6'/%3E%3Crect x='20.7' y='20.7' width='58.6' height='58.6' transform='rotate(45 50 50)'/%3E%3Ccircle cx='50' cy='50' r='16'/%3E%3C/svg%3E")}

/* Primary buttons: lapis, lit from above, a coloured shadow */
:is(.ob-go,.ob-start,.primary,.view .go-btn){background:var(--accent-grad);color:var(--accent-ink);box-shadow:var(--lift);border:0}
:is(.ob-go,.ob-start):disabled{background:var(--card);color:var(--muted);box-shadow:none;opacity:1}
.secondary{background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--line)}

/* First open: cool white with one large faint star behind the words */
.ob{background:radial-gradient(120% 60% at 100% 0%,color-mix(in srgb,var(--accent) 9%,transparent),transparent 60%),var(--bg)}
.ob::before{content:'';position:absolute;z-index:-1;pointer-events:none;top:-70px;right:-90px;width:300px;height:300px;opacity:.09;
  background:var(--accent);-webkit-mask:var(--star) center/contain no-repeat;mask:var(--star) center/contain no-repeat;animation:look-turn 90s linear infinite}
[dir=rtl] .ob::before{right:auto;left:-90px}
.ob{isolation:isolate}
.ob-card,.ob-row,.ob-place{border:0;border-radius:20px;background:var(--surface);box-shadow:var(--shadow),inset 0 0 0 1px var(--line)}
.ob-card.on{background:color-mix(in srgb,var(--accent) 7%,var(--surface));box-shadow:0 0 0 2px var(--accent),0 14px 30px -18px var(--glow)}
.ob-ico{border-radius:14px;background:var(--accent-tint);color:var(--accent-text)}
.ob-card.on .ob-ico{background:var(--fill);color:#fff}
.ob-check{border-color:var(--line)}
.ob-card.on .ob-check{background:var(--accent);border-color:var(--accent);color:#fff}
.ob-dots i{height:5px;border-radius:3px}
.ob-dots i.on{background:var(--accent);box-shadow:0 0 12px -2px var(--glow)}
.ob-go,.ob-start{border-radius:18px;min-height:56px;font-size:17px}

/* The bars and the page */
.practice-bar{background:var(--chrome)}
.practice-screen .card-go strong{transition:color .2s}
.round{background:var(--surface);box-shadow:var(--shadow),inset 0 0 0 1px var(--line)}
.pill{box-shadow:var(--shadow),inset 0 0 0 1px var(--line)}

/* Recite: the one bold thing. Solid lapis (PM L-416, his words: "Remove the geometric pattern from behind the mic"); while it listens a
   turquoise ring keeps turning round it and the mic beats gently */
.practice-bar .fab{position:relative;isolation:isolate;overflow:hidden;border-radius:20px;background:var(--accent-grad);color:#fff;box-shadow:var(--lift)}
.practice-bar .fab[data-state=connecting]{background:var(--mic-busy);background-size:300% 100%;animation:look-sheen 1.3s linear infinite}
.practice-bar .fab[data-state=on]{overflow:visible;background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--tq) 55%,transparent),0 0 0 0 var(--tq-soft)}
.practice-bar .fab[data-state=on]::before{content:'';position:absolute;pointer-events:none;inset:-2px;z-index:-1;opacity:1;border-radius:inherit;padding:2px;background:conic-gradient(from var(--a,0deg),transparent 0 55%,var(--tq) 75%,var(--accent) 88%,transparent 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);animation:look-orbit 2.2s linear infinite}
.practice-bar .fab[data-state=on] svg{color:var(--tq)}
.practice-bar .fab[data-state=on] svg{animation:look-beat 1.2s ease-in-out infinite}
@property --a{syntax:'<angle>';inherits:false;initial-value:0deg}
@keyframes look-orbit{to{--a:360deg}}
@keyframes look-breathe{0%,100%{box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--tq) 55%,transparent),0 0 0 0 var(--tq-soft)}50%{box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--tq) 55%,transparent),0 0 0 7px transparent}}
@keyframes look-beat{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}
@keyframes look-sheen{to{background-position:-300% 0}}
@keyframes look-turn{to{transform:rotate(1turn)}}

/* Sheets: rounder, a grab handle, glass in front of the page, they rise on a spring (look.js marks a new one) */
.sheet{border-radius:28px 28px 0 0;background:var(--glass);-webkit-backdrop-filter:blur(22px) saturate(1.4);backdrop-filter:blur(22px) saturate(1.4);
  box-shadow:0 -1px 0 color-mix(in srgb,var(--line) 70%,transparent),0 -24px 60px -20px rgba(9,15,40,.45)}
.sheet::before{content:'';display:block;width:38px;height:5px;margin:4px auto 6px;border-radius:3px;background:color-mix(in srgb,var(--muted) 35%,transparent)}
.sheet.look-in{animation:look-sheet .46s var(--out) both}
.sheet-scrim{background:var(--scrim);-webkit-backdrop-filter:blur(1.5px);backdrop-filter:blur(1.5px)}
.sheet-scrim.look-in{animation:look-fade .3s ease both}
@keyframes look-sheet{from{transform:translateY(105%)}to{transform:none}}
@keyframes look-fade{from{opacity:0}}
.sheet .seg{background:var(--card)}
.sheet .seg input:checked+span{background:var(--fill);color:#fff;box-shadow:0 6px 14px -8px var(--glow)}
.switch:checked{background:var(--accent)}
.switch::after{box-shadow:0 2px 6px rgba(9,15,40,.3)}

/* The chosen ayat card: glass over the page, Memorise in lapis, Revise in its own light blue */
.practice-bar .pick-bar.pick-card{border-radius:24px;background:var(--glass);-webkit-backdrop-filter:blur(20px) saturate(1.5);backdrop-filter:blur(20px) saturate(1.5);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 85%,transparent),0 22px 44px -18px rgba(9,15,40,.5)}
.practice-bar .pick-bar.pick-card.look-in{animation:look-pop .42s var(--spring) both}
@keyframes look-pop{from{opacity:0;transform:translateY(14px) scale(.97)}}
.pick-card .pc-act{border-radius:16px}
.pick-card .pick-learn{background:var(--accent-grad);color:#fff;box-shadow:var(--lift)}
.pick-card .pc-edit{background:var(--card)}
.pick-card .pc-n{color:var(--ink)}

/* The guide on the real controls: a lapis bubble, a turquoise ring that pulses */
.coach-ring{border-radius:16px;box-shadow:0 0 0 3px var(--tq);animation:look-ring 1.6s ease-in-out infinite}
@keyframes look-ring{0%,100%{box-shadow:0 0 0 3px var(--tq),0 0 0 0 color-mix(in srgb,var(--tq) 45%,transparent)}50%{box-shadow:0 0 0 3px var(--tq),0 0 0 12px transparent}}
.coach-tip{border-radius:16px;padding:10px 15px;background:#16207A;background:linear-gradient(180deg,#2A3FC7,#1A2A9C);color:#fff;font-weight:500;box-shadow:0 16px 34px -14px rgba(20,32,140,.7)}
.coach-skip{border-radius:999px;padding:6px 13px;background:color-mix(in srgb,var(--ink) 72%,transparent);color:var(--bg);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}

/* Screens outside the page: Review, Surahs, Settings, lesson done */
.tabs{background:var(--glass);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:0 -1px 0 var(--line)}
.tabs .tab.on .tab-ic{background:var(--fill);color:#fff;box-shadow:0 8px 16px -10px var(--glow)}
.view.done-page>.mark{position:relative;background:var(--tq-soft);color:var(--tq);animation:look-pop .6s var(--spring) both}
.view.done-page>.mark::before{content:'';position:absolute;pointer-events:none;inset:-26px;opacity:.5;background:var(--tq);-webkit-mask:var(--star) center/contain no-repeat;mask:var(--star) center/contain no-repeat;animation:look-turn 40s linear infinite}
.view.done-page>.mark svg{stroke-dasharray:40;stroke-dashoffset:40;animation:look-draw .7s .25s var(--out) forwards}
@keyframes look-draw{to{stroke-dashoffset:0}}

/* Notes and error cards over the page: glass with a coloured edge */
.practice-bar .notice,.practice-bar .notice.error,.lesson-controls>.notice,.lesson-controls>.notice.error{border:0;border-radius:16px;padding:10px 16px;background:var(--glass);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
  box-shadow:inset 0 0 0 1px var(--line),inset 4px 0 var(--accent),0 14px 30px -14px rgba(9,15,40,.45);animation:look-pop .35s var(--spring) both}
.practice-bar .notice.error,.lesson-controls>.notice.error{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--miss) 35%,var(--line)),inset 4px 0 var(--miss),0 14px 30px -14px rgba(9,15,40,.45)}

@media (prefers-reduced-motion:reduce){
  .ob::before,.practice-bar .fab,.practice-bar .fab::before,.practice-bar .fab[data-state=on] svg,.view.done-page>.mark svg,.view.done-page>.mark,.view.done-page>.mark::before,.coach-ring,.sheet.look-in,.sheet-scrim.look-in,.pick-card.look-in,.notice{animation:none!important}
  .view.done-page>.mark svg{stroke-dashoffset:0}
}

/* Second pass */
html:not([dir=rtl]) :is(h1,h2,.ob-h,.view h1,.view h2,.practice-screen .page-card strong,.lesson-screen #lesson-name,.sheet-head h2,.sheet-head h3,.pick-card .pc-n){word-spacing:.14em}
.sheet-head h2{font-size:21px;font-weight:600}
/* Revise: two clear choices; the one used last stays marked, as before */
.revise-choice{border:0!important;border-radius:18px!important;background:var(--surface)!important;box-shadow:var(--shadow),inset 0 0 0 1px var(--line)!important}
.revise-choice.last{background:color-mix(in srgb,var(--accent) 9%,var(--surface))!important;box-shadow:0 0 0 2px var(--accent),0 14px 28px -18px var(--glow)!important}
.revise-choice strong{font-weight:600}
/* The hafidh result: each finding on its own row, the recommendation in a lapis panel */
.ob-res .ob-lines{gap:8px;margin-top:12px}
.ob-res .ob-lines p{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:18px;background:var(--surface);box-shadow:var(--shadow),inset 0 0 0 1px var(--line);font-size:16.5px;line-height:1.4}
.ob-res .ob-lines p::before{content:'';flex:none;width:9px;height:9px;margin-top:7px;border-radius:2px;rotate:45deg;background:var(--accent);box-shadow:0 0 0 4px var(--accent-tint)}
.ob-res .ob-rec{padding:16px 18px;border-radius:20px;background:var(--accent-tint);color:var(--accent-text);font-weight:600}
.ob-alt,.ob-link{color:var(--accent-text)}
/* The lesson's title pill and its foot */
.lesson-screen .lesson-head,.lesson-screen .lesson-title{border-radius:16px}
/* Chosen options and plain buttons on every screen: lapis, never black */
.view .seg input:checked+span,.tabs3 button[aria-selected=true]{background:var(--fill);color:#fff;box-shadow:0 6px 14px -8px var(--glow)}
.view .btn{background:var(--accent-grad);color:#fff;box-shadow:var(--lift)}
html[dir=rtl] .practice-screen .practice-bar .notice,html[dir=rtl] .lesson-screen .lesson-controls>.notice{box-shadow:inset 0 0 0 1px var(--line),inset -4px 0 var(--accent),0 14px 30px -14px rgba(9,15,40,.45)}
html[dir=rtl] .practice-screen .practice-bar .notice.error,html[dir=rtl] .lesson-screen .lesson-controls>.notice.error{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--miss) 35%,var(--line)),inset -4px 0 var(--miss),0 14px 30px -14px rgba(9,15,40,.45)}
/* Inside the mushaf every colour stays as it was: the not-yet-said grey too (the page ink and markers are pinned on :root above) */
.mushaf{--muted:#6B665C}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .mushaf{--muted:#A1A1AA}}
:root[data-theme=dark] .mushaf{--muted:#A1A1AA}

/* Review fixes (4 Nov) */
/* the newest heard word keeps its old gold wash: inside the page nothing changes colour */
.mushaf .w.fresh{background:color-mix(in srgb,#A87B1A 15%,transparent)}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .mushaf .w.fresh{background:color-mix(in srgb,#E0B354 15%,transparent)}}
:root[data-theme=dark] .mushaf .w.fresh{background:color-mix(in srgb,#E0B354 15%,transparent)}
/* while ayat are dragged the card goes see-through as before: no blur over the words */
html.pick-drag .practice-bar .pick-bar.pick-card{-webkit-backdrop-filter:none;backdrop-filter:none}
/* the menu's clear shade stays clear */
.sheet-scrim.clear{-webkit-backdrop-filter:none;backdrop-filter:none}
/* the faint star is for the setup screens only, never over the page, and never makes them scroll sideways */
.ob.ob-ayat::before{display:none}
.ob:not(.ob-ayat){overflow-x:hidden}
/* Arabic: the screens use Readex Pro too (it has Arabic), headings Reem Kufi; rtl.css comes after this file */
html[dir=rtl],html[dir=rtl] body,html[dir=rtl] .screen:has(>.view),html[dir=rtl] .tour,html[dir=rtl] body :is(button,input,select,textarea){font-family:var(--ui)}
html[dir=rtl] :is(h1,h2,.ob-h,.practice-screen .page-card strong,.sheet-head h2,.pick-card .pc-n){font-family:var(--display)}

/* PM L-415 (Muhammad, 4 Nov: "When im selecting verses, the bottom box can disappear as its not needed and the verse selection box comes
   there instead. Design the UI properly for this."). While ayat are chosen the bar's tools slide down out of sight and the chosen ayat box
   is docked in their place: a bottom sheet, full width, over the safe area. Its top row holds Next page and Page before (never over the
   text), then what is chosen (the count, the surah and ayat on their own line, read in full), Change and clear, then Revise and Memorise.
   The page keeps its size and may scroll by the box's height (--dock, set by app.js), which also moves the ayah chosen last above it. */
.practice-bar>:not(.pick-bar,.notice){transition:transform .34s var(--out),opacity .22s ease}
.practice-bar.picked>:not(.pick-bar,.notice){transform:translateY(130%);opacity:0;visibility:hidden;pointer-events:none;transition:transform .3s var(--out),opacity .18s ease,visibility 0s .3s}
.practice-bar.picked{overflow:visible}
.practice-bar .pick-bar.pick-card{position:absolute;z-index:6;left:0;right:0;top:auto;bottom:0;margin:0;gap:10px;padding:8px 14px max(14px,env(safe-area-inset-bottom));border-radius:28px 28px 0 0;
  background:var(--glass);box-shadow:0 -1px 0 color-mix(in srgb,var(--line) 80%,transparent),0 -18px 44px -18px rgba(9,15,40,.5)}
html[dir=rtl] .practice-bar .pick-bar.pick-card{padding:8px 14px max(14px,env(safe-area-inset-bottom))}
.practice-bar .pick-bar.pick-card::before{content:'';display:block;order:-2;align-self:center;width:38px;height:5px;margin:0 0 -2px;border-radius:3px;background:color-mix(in srgb,var(--muted) 35%,transparent)}
.practice-bar .pick-bar.pick-card.look-in{animation:look-dock .42s var(--out) both}
@keyframes look-dock{from{transform:translateY(100%)}}
/* the page buttons: the box's first row */
.practice-bar .pick-card>.turn-row{position:static;inset:auto;order:-1;margin:0 -2px;pointer-events:auto}
.practice-bar .pick-card>.turn-row .turn-b{height:34px;background:var(--card);box-shadow:none}
.practice-bar .pick-card>.turn-row .turn-tip{display:none}
/* what is chosen: count and Change and clear on one line, the surah and ayat under the count, never cut short */
.pick-card .pc-head{display:grid;grid-template-columns:auto 1fr auto auto;grid-template-areas:"n . e x" "w w w w";align-items:center;gap:2px 8px;min-height:0;padding-inline-start:4px}
.pick-card .pc-n{grid-area:n;padding:0;background:none;font-size:19px}
.pick-card .pc-what{grid-area:w;white-space:normal;overflow:visible;text-overflow:clip;font-size:14.5px;line-height:1.35;color:var(--muted)}
.pick-card .pc-edit{grid-area:e}
.pick-card .pick-x{grid-area:x}
.practice-bar .pick-card .pc-go{margin-top:2px}
/* while dragging the box stays solid and in place (no see-through needed: it never covers the page being chosen) */
html.pick-drag .practice-bar .pick-bar.pick-card{background:var(--glass);box-shadow:0 -1px 0 color-mix(in srgb,var(--line) 80%,transparent),0 -18px 44px -18px rgba(9,15,40,.5)}
html.pick-drag .practice-bar .pick-card :is(.pc-row,.pc-go,.pick-x,.pc-head>:not(.pc-n),.pc-tip,.turn-row){opacity:.45}
/* the page may scroll by the box's height while ayat are chosen; its size never changes */
.practice-screen:has(.practice-bar.picked) #mushaf{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
.practice-screen:has(.practice-bar.picked) #mushaf::-webkit-scrollbar{display:none}
.practice-screen:has(.practice-bar.picked) #mushaf::after{content:'';display:block;flex:none;height:max(0px,calc(var(--dock,0px) - var(--stage-bottom) + 18px))}
/* notes sit over the box */
.practice-bar.picked:has(.pick-card) .notice,.practice-bar.picked:has(.pick-card) .notice.error{bottom:calc(var(--dock,236px) + 10px)}
@media (prefers-reduced-motion:reduce){.practice-bar>*,.practice-bar .pick-bar.pick-card.look-in{transition:none!important;animation:none!important}}
/* PM L-518 drag across pages */
/* While a drag is choosing, the box shrinks to its count line and what is chosen, so the page's last lines and the room under them
   (where the next page is called) stay in sight; Change, the page buttons and Revise and Memorise come back as the finger lifts. */
html.pick-drag .practice-bar .pick-bar.pick-card>:not(.pc-head),html.pick-drag .practice-bar .pick-bar.pick-card::before,html.pick-drag .practice-bar .pick-card .pc-head>:not(.pc-n,.pc-what,.pc-turn){display:none}
html.pick-drag .practice-bar .pick-bar.pick-card{gap:0;padding-top:10px;padding-bottom:max(10px,env(safe-area-inset-bottom))}
html.pick-drag .practice-bar .pick-card .pc-head>*{opacity:1}
/* at an edge, the box says a page is coming: "Next page" (arrow left) or "Page before" (arrow right), only while dragging */
.pick-card .pc-turn{display:none}
html.pick-drag .practice-bar .pick-card .pc-turn{grid-column:3/5;grid-row:1;justify-self:end;display:inline-flex;align-items:center;gap:4px;height:30px;padding:0 12px;border-radius:15px;
  background:color-mix(in srgb,var(--accent) 22%,var(--card));color:var(--accent-text);font-size:14px;font-weight:700;animation:pc-turn-in .18s ease-out both}
html.pick-drag .practice-bar .pick-card .pc-turn svg{width:16px;height:16px}
/* the arrows point the way the page comes in every language (the next from the left), never mirrored */
html[dir=rtl] .practice-bar .pick-card .pc-turn svg.dir{transform:none}
@keyframes pc-turn-in{from{opacity:0;transform:scale(.92)}}
html.pick-drag.pick-edge .practice-bar .pick-card .pc-n{color:var(--accent-text)}

/* PM L-580: while Talqeen looks for where he is reciting, the strip says so in place of the words heard (app.js practiceFinding). */
.practice-bar[data-finding] .heard-line{visibility:hidden}
/* L-660 (8 Nov): no 'Finding where you are' label on the Recite button; it says Listening as usual */
