/* Talqeen in a computer browser (html.web is set by web.js only outside the Android and iPhone apps; every rule here also needs a
   wide window). 1. The first screen for a signed out visitor: a calm column (headline, the app's own line and two buttons) beside
   the open mushaf, which fills the rest of the window. No card, no halo. */
.w-intro{display:none}
.w-intro .w-pick{display:none}    /* L-1124: the surahs link under the buttons, on a computer only */
/* without the script (a reader such as Google's review): the description and the Privacy link as plain text above the app */
html:not(.web):not(.shell) .w-intro{display:block;max-width:40em;margin:0 auto;padding:24px 20px 0;font-family:var(--ui,sans-serif);color:var(--ink,#121216)}
html:not(.web):not(.shell) .w-h{font-size:28px;margin:0 0 8px}
html:not(.web):not(.shell) .w-about{margin:0 0 8px;line-height:1.5}
.w-raw-priv{margin:0}
html:is(.web,.shell) .w-about{display:none!important}    /* L-1151 ("remove this part from the whole App"): the paragraph only for a reader without the script */
html.web .w-raw-priv{display:none}    /* with the script, Privacy sits in the top line (a phone) or the footer line (a computer) */
/* a phone or small window in a browser: the description sits under the top line, the page moves down by its height */
@media (max-width:1023px),(max-height:599px){
  /* L-1153: below a computer's width the first visit is the phone's own screen (its header, its full page): no description, no wordmark line */
  html.web.guest-first .w-intro{display:none!important}
  html.web.guest-first:not(.gf-away) .gf-links{gap:2px}
  html.web.guest-first:not(.gf-away) .gf-link{font-size:14.5px;padding:0 5px}
}
a.gf-link.w-priv{display:inline-flex;align-items:center;text-decoration:none}
/* L-1124 (his words, 18 Nov 22:19: "this is not a website!!"): on a computer the first visit is a website's first screen under the top bar
   (part 3): two columns in a 1280px frame, all in view. Left (440px, 380px under 1280px): the headline, the app's own line, Memorise and
   Recite (the app's own buttons, placed under the line), a text link to the surahs. Right: ONE whole mushaf page on one surface, never
   cut. html.w-first is set by web.js (a guest's first screen in a wide window). --fl: the frame's left edge (32px gutters). */
@media (min-width:1024px) and (min-height:600px){
  /* L-1151 (SPEC B): the column at most 480px (never under the buttons' 412px), as wide as the page's whole size leaves; gap 64px, 96px from 1280px */
  html.w-first{--fl:max(32px,calc((100vw - 1280px) / 2));--cgap:64px;--pw:calc((100dvh - 236px) * .76 + 64px);--col:clamp(412px,calc(100vw - 2 * var(--fl) - var(--cgap) - var(--pw)),480px);
    --pad:max(0px,calc((100vw - 2 * var(--fl) - var(--col) - var(--cgap) - var(--pw)) / 2))}    /* --pw: the page's surface at its whole size; --pad: the pair centred in the frame, so the gap stays the gap */
  html.w-first body{padding:0;overflow:hidden}
  html.w-first #app{position:fixed;top:96px;bottom:48px;left:calc(var(--fl) + var(--pad) + var(--col) + var(--cgap));right:var(--fl);max-width:none!important;width:auto;min-height:0;margin:0!important;border:0;border-radius:0;box-shadow:none;background:none;overflow:visible}
  html.w-first[dir=rtl] #app{left:var(--fl);right:calc(var(--fl) + var(--pad) + var(--col) + var(--cgap))}
  /* the surface: as wide as the page needs (the page is sized to its height by mushaf.js), centred in the column */
  html.w-first .screen.practice-screen{height:100%;min-height:0;width:min(100%,var(--pw));margin:0;box-sizing:border-box;border:1px solid color-mix(in srgb,var(--line) 45%,transparent);border-radius:14px;
    background:var(--page,var(--bg));overflow:hidden;--stage-top:20px;--stage-bottom:6px}
  html.w-first .practice-screen .mushaf:not(.aside){left:0!important;right:0!important;background-image:none!important}
  html.w-first .practice-screen .mushaf.mate{display:none}
  html.w-first .gf-top,html.w-first .gf-bar{display:none!important}

  /* the column */
  /* L-1151: only the headline, 32px, the buttons, 20px, the surahs link; the block's centre on the page's centre (--w-pc, web.js), start-aligned */
  html.w-first .w-intro:not([hidden]){pointer-events:none;display:flex;flex-direction:column;align-items:flex-start;position:fixed;z-index:30;top:var(--w-pc,50%);bottom:auto;translate:0 -50%;left:calc(var(--fl) + var(--pad));width:var(--col);box-sizing:border-box;padding:0}
  html.w-first[dir=rtl] .w-intro{left:auto;right:calc(var(--fl) + var(--pad))}
  .w-h{margin:0;font-family:var(--display);font-weight:600;font-size:44px;line-height:1.08;letter-spacing:-.025em;color:var(--ink);text-wrap:balance;max-width:11em}
  .w-intro[dir=rtl] .w-h{letter-spacing:0;line-height:1.35}
  /* the headline: two lines broken after the comma (web.js), as large as clamp(40px,3.6vw,56px) allows with its first line inside the column */
  html.w-first .w-intro .w-h{max-width:none;white-space:nowrap;text-wrap:nowrap;font:600 min(clamp(40px,3.6vw,56px),calc(var(--col) / 10.6))/1.1 var(--display);letter-spacing:-.025em}
  html.w-first .w-intro[dir=rtl] .w-h{font-family:var(--ui);font-size:clamp(40px,3.6vw,56px);letter-spacing:0}
  .w-intro.wide .w-acts{width:412px;height:56px;margin-top:32px}
  html.w-first .w-intro .w-pick{display:block;pointer-events:auto;align-self:flex-start;min-height:48px;margin-top:20px;padding:0;border:0;background:none;font:500 16px/1.2 var(--ui);color:var(--muted);
    text-decoration:underline;text-decoration-color:var(--edge);text-decoration-thickness:1.5px;text-underline-offset:5px;cursor:pointer}
  .w-intro .w-pick:hover{color:var(--ink);text-decoration-color:var(--ink)}
  .w-intro .w-pick:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

  /* the app's one line: the description says it on a computer */
  html.w-first .gf-bar{display:none}
  /* the app's two buttons, under the line: Memorise (filled, the main one) first, Recite (outline) beside it */
  html.w-first .practice-screen>.practice-bar{position:fixed;top:var(--w-acts-t);bottom:auto;left:var(--w-col-l);right:auto;width:var(--w-col-w);max-width:none;margin:0!important;padding:0;gap:12px;background:none;z-index:31}
  html.w-first .practice-bar>.mem-btn{order:1!important;flex:0 0 200px;margin:0!important;height:56px;font-size:17px;border-radius:14px!important}
  html.w-first .practice-screen .practice-bar>.mem-btn{background:var(--ink)!important;color:var(--bg)!important;box-shadow:none!important}    /* the main one: filled in ink, light and dark */
  html.w-first .practice-bar>.fab{order:2!important;flex:0 0 200px;margin:0!important;height:56px;min-width:0;border-radius:14px!important}
  html.w-first .practice-screen .practice-bar>.fab[data-state=idle]:not([data-state=on]):not([data-state=connecting]){background:none!important;color:var(--ink)!important;box-shadow:inset 0 0 0 1.5px var(--ink)!important}
  html.w-first .practice-bar>.fab[data-state=idle] svg{--ic-accent:var(--gold)}
  html.w-first .practice-bar>:is(.mem-btn,.fab):hover{filter:brightness(1.04)}
  /* a guest who left a lesson half way: home's Resume line under the two buttons (as a card with its x where homebox.css draws one), the surahs link under it */
  html.w-first .practice-screen .practice-bar>.resume-chip:not(.next-chip){position:absolute;top:calc(100% + 8px);bottom:auto;left:0;right:auto;translate:none;transform:none;max-width:100%;height:48px!important;margin:0;padding:0;background:none;box-shadow:none;justify-content:flex-start;font-size:16px!important;color:var(--ink)}
  html.w-first[dir=rtl] .practice-screen .practice-bar>.resume-chip:not(.next-chip){left:auto;right:0}
  html.w-first.gf-resume .w-intro .w-pick{margin-top:76px}
  /* while reciting or with a note, the bar keeps its own look in the column */
  html.w-first .practice-bar>.notice{position:static;order:0;flex-basis:100%}
  /* L-1260 (his words, 20 Nov 16:24, on a picture of the From and To form drawn under the headline): a card in the buttons' place (the
     From and To form, the ayah bar, an offer) opens DOWN from the buttons' top, so it never reaches the headline 32px above them, and the
     surahs link under it gives way at once. The choosing bar (one line) keeps its place on the buttons' line. When a card does not fit
     above the footer, web.js sets html.pc-hi: the headline goes at once (no fade) and the card sits as low as it fits, never under the
     top bar (--pc-y from the buttons' top, --pc-mh the most it may take). A card comes in by fading, never sliding through the column. */
  html.w-first .practice-screen>.practice-bar>.pick-bar:not(.choose-bar){top:0!important;bottom:auto!important}
  html.w-first.pc-hi .practice-screen>.practice-bar>.pick-bar{top:var(--pc-y,0px)!important;bottom:auto!important;max-height:var(--pc-mh,none);overflow-y:auto}
  html.w-first:has(.practice-screen>.practice-bar>.pick-bar:not(.choose-bar)) .w-intro .w-pick,html.w-first.pc-hi .w-intro :is(.w-h,.w-pick){visibility:hidden;opacity:0;transition:none}
  html.w-first.mem-dn .w-intro .w-pick{transition:none}
  @media (prefers-reduced-motion:no-preference){html.w-first .practice-screen>.practice-bar>.pick-bar.look-in{animation:look-fade .2s ease both!important}}
}
@media (min-width:1280px) and (min-height:600px){
  html.w-first{--cgap:96px}
}

/* 2. A lesson on a computer (the same column and page as the first screen). The column holds the back arrow, the surah's name, the time
   left and the guide's words; the open mushaf fills the rest; the lesson's own foot (step, Help, Again, Pause, Next) stays as it is,
   centred under the pages. No card, no halo. Room for translation and tafsir: the column. */
@media (min-width:1024px) and (min-height:600px){
  html.web:has(.lesson-screen){--side:clamp(320px,26vw,500px);--pad:clamp(36px,3.6vw,64px);--gut:clamp(20px,2vw,40px)}
  html.web:has(.lesson-screen) body{padding:0;overflow:hidden}
  html.web #app:has(.lesson-screen){position:fixed;top:0;bottom:0;left:var(--side);right:var(--gut);max-width:none!important;width:auto;min-height:0;margin:0;border:0;border-radius:0;box-shadow:none;overflow:visible}
  html.web[dir=rtl] #app:has(.lesson-screen){left:var(--gut);right:var(--side)}
  html.web .screen.lesson-screen{height:100dvh;overflow:visible;--stage-top:clamp(28px,5vh,56px)}
  html.web .lesson-screen .mushaf[data-side=r]:not(.aside){background-image:linear-gradient(to right,color-mix(in srgb,var(--page-ink,#121216) 7%,transparent) 1px,color-mix(in srgb,var(--page-ink,#121216) 2.5%,transparent) 1px,transparent 14px)}
  html.web .lesson-screen .mushaf[data-side=l]:not(.aside){background-image:linear-gradient(to left,color-mix(in srgb,var(--page-ink,#121216) 2.5%,transparent),transparent 14px)}

  html.web .lesson-screen .mushaf[data-side]:not(.aside){background-repeat:no-repeat;background-size:100% calc(100% - var(--stage-bottom))}
  /* the column: the header moves into it */
  html.web .lesson-screen>.lesson-top{position:fixed;top:0;bottom:0;left:0;right:auto;width:var(--side);box-sizing:border-box;
    display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:0;padding:0 clamp(20px,2.4vw,44px) 0 var(--pad);background:transparent;min-height:0}
  html.web[dir=rtl] .lesson-screen>.lesson-top{left:auto;right:0;padding:0 var(--pad) 0 clamp(20px,2.4vw,44px);align-items:flex-start}
  html.web .lesson-screen>.lesson-top>[data-action=leave]{position:absolute;top:clamp(20px,3.6vh,36px);inset-inline-start:calc(var(--pad) - 10px);width:44px;height:44px}
  html.web .lesson-screen>.lesson-top .page-card{position:static;display:block;width:100%;height:auto;min-height:0;padding:0;margin:0;text-align:start}
  html.web .lesson-screen>.lesson-top .page-card{flex:none}
  html.web .lesson-screen>.lesson-top .page-card .card-face{visibility:visible!important;position:static;inset:auto;display:block;padding:0;height:auto}
  html.web .lesson-screen>.lesson-top .card-text,html.web .lesson-screen>.lesson-top .card-line{display:flex;flex-direction:column;align-items:flex-start;height:auto;padding:0;gap:0}
  html.web .lesson-screen>.lesson-top #track-progress{position:static;display:block;height:3px;border-radius:2px}
  html.web .lesson-screen>.lesson-top .mean-link{position:static;margin-top:22px;inset:auto}
  html.web .lesson-screen #lesson-name{display:block;font-size:clamp(34px,3vw,52px)!important;line-height:1.05;letter-spacing:-.025em;margin:0}
  html.web .lesson-screen #lesson-time{display:block;margin-top:14px;font-size:16px}
  html.web .lesson-screen #track-progress{max-width:220px;margin-top:14px}
  html.web .lesson-screen .lesson-top .top-cap{position:static!important;inset:auto;display:block;margin:28px 0 0;padding:0!important;background:none!important;border:0;border-radius:0;
    text-align:start;font-size:clamp(18px,1.4vw,22px);line-height:1.45;color:var(--ink);max-width:22em;white-space:normal}
  html.web .lesson-screen .lesson-top .top-cap[hidden]{display:none}
  /* the guide's words show in the column, so the strip under the page keeps the step, Help and Skip intro */
  html.web .lesson-controls:has(.control-row.deck)>.caption{display:none}
  html.web .lesson-controls:has(.control-row.deck):has(>.caption:not([hidden])) .step-pill{visibility:visible}
  /* the foot: as it is, centred under the pages */
  html.web .lesson-screen>.lesson-controls{max-width:640px;margin-inline:auto}
}

/* 3. L-1124: the top bar, on every computer screen but a lesson (html.w-nav, set by web.js): 64px, the page colour, one hairline under it.
   The wordmark (home) at one end, Mushaf, Surahs and Settings in the middle (where you are in ink with a 2px gold line, the rest grey),
   the language at the other end. It replaces the side column. --fl: the 1280px frame's edge (32px gutters). */
.w-bar,.w-foot{display:none}
@media (min-width:1024px) and (min-height:600px){
  html.w-nav{--fl:max(32px,calc((100% - 1280px) / 2))}
  html.w-nav body{padding:64px 0 0}
  html.w-nav .w-bar:not([hidden]){display:block;position:fixed;z-index:46;top:0;left:0;right:0;height:64px;box-sizing:border-box;background:var(--bg);border-bottom:1px solid var(--line)}
  .w-bar .w-in{box-sizing:border-box;height:100%;max-width:1344px;margin:0 auto;padding:0 32px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
  .w-bar .w-mark{justify-self:start;display:flex;align-items:center;height:48px;padding:0;border:0;background:none;direction:ltr;font:700 28px/1 var(--display);letter-spacing:-1px;color:var(--ink);cursor:pointer}
  .w-bar .w-mark i{font-style:normal;color:var(--gold)}
  .w-bar .w-places{display:flex;align-items:center;gap:8px}
  .w-bar .w-places button{position:relative;height:48px;padding:0 16px;border:0;background:none;font:500 16px/1 var(--ui);color:var(--muted);cursor:pointer}
  .w-bar .w-places button.on{color:var(--ink);font-weight:600}
  .w-bar .w-places button.on::after{content:'';position:absolute;left:16px;right:16px;bottom:-8px;height:2px;background:var(--gold)}
  .w-bar .w-end{justify-self:end;display:flex;align-items:center;gap:20px}
  .w-bar .w-pv{display:flex;align-items:center;height:48px;font:500 15px/1 var(--ui);color:var(--muted);text-decoration:none}    /* L-1341: Privacy, a guest's home only */
  .w-bar .w-pv[hidden]{display:none}
  .w-bar .w-lang{justify-self:end;height:48px;padding:0 4px;border:0;background:none;font:500 15px/1 var(--ui);color:var(--muted);cursor:pointer}
  .w-bar :is(.w-places button,.w-lang,.w-pv):hover{color:var(--ink)}
  .w-bar[dir=rtl] .w-places button,.w-bar .w-lang{letter-spacing:0}
  .w-bar :is(button,a):focus-visible,.w-foot a:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
  html.w-nav .gf-top,html.web.w-nav .gf-bar,html.w-nav .w-side{display:none!important}    /* L-1341: the guest's bottom line too, before first.js's gf-away arrives */
  /* Privacy: a small footer line (first visit, Surahs, Settings) */
  html.w-nav .w-foot:not([hidden]){display:block;box-sizing:border-box;max-width:720px;margin:56px auto 0;padding:20px 0 32px;border-top:1px solid var(--line);font:13px/1.4 var(--ui);color:var(--muted)}
  .w-foot a{color:var(--muted);text-decoration:none}
  .w-foot a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
  html.w-first .w-foot:not([hidden]){display:flex;align-items:center;position:fixed;z-index:30;bottom:0;left:calc(var(--fl) + var(--pad,0px));right:auto;height:48px;margin:0;padding:0;border:0}
  html.w-first[dir=rtl] .w-foot{left:auto;right:calc(var(--fl) + var(--pad,0px))}

  /* 4. Home for a returning visitor (html.w-home): the open mushaf centred under the bar, two pages at most 1120px wide (one page, up to
     560px, under 1280px: web.js gives mushaf.js that answer). A title line (48px) over it, the page arrows (48px) at its outer edges, the action
     row (72px) fixed at the bottom. L-1341: two pages wherever mushaf.js's spread test holds (from 1024px, a guest too); one page, centred, only where it does not. The page always fits whole between the title line and the row (L-1124 judge: at 1024x700 its last
     line was behind the row while the screen scrolled). Nothing sits over the page. --w-pl/--w-pr: the open pages' outer edges (web.js measures them). */
  html.w-home{--sx:max(64px,calc((100% - 1120px) / 2));--cw:220px}    /* --cw: half the width of Recite and Memorise together */
  html.w-home #app{position:relative;max-width:none!important;width:auto;height:calc(100dvh - 64px);min-height:0;margin:0!important;border:0;border-radius:0;box-shadow:none;overflow:visible}
  html.w-home .screen.practice-screen{height:100%;min-height:0;overflow:visible;--stage-top:52px;--stage-bottom:78px}
  html.w-home .practice-screen .mushaf:not(.aside){background-image:none!important}
  html.w-home .practice-screen .mushaf[data-side=l]:not(.aside){left:var(--sx);right:50%}
  html.w-home .practice-screen .mushaf[data-side=r]:not(.aside){left:50%;right:var(--sx)}
  /* the title line: the surah, page | juz | hizb at the start; bookmark and page options at the end, over the pages' own edges */
  html.w-home .practice-screen>.lesson-top{top:0;z-index:5;background:var(--page,var(--bg));left:var(--w-pl,var(--sx));right:calc(100% - var(--w-pr,calc(100% - var(--sx))));height:52px;min-height:0;padding:0;display:flex;align-items:center;gap:4px}
  html.w-home .practice-screen>.lesson-top>[data-action=menu],html.w-home .practice-screen>.lesson-top>[data-action=practice-prefs]{display:none}    /* Settings is in the bar */
  html.w-home .practice-screen>.lesson-top .page-card{flex:1;min-width:0;height:48px;margin:0;padding:0;background:none;border:0;box-shadow:none}
  html.w-home .practice-screen>.lesson-top .card-go{display:flex;flex-direction:row;justify-content:flex-start;align-items:baseline;gap:14px;height:48px;padding:0;text-align:start}
  html.w-home .practice-screen #practice-name{font-size:22px;line-height:48px;white-space:nowrap}
  html.w-home .practice-screen #page-meta{font-size:15px;white-space:nowrap}
  html.w-home .practice-screen>.lesson-top .icon-btn.book{background:none!important;box-shadow:none!important;border:0!important}    /* no square behind the page-view icon */
  /* the page arrows, at the pages' outer edges, in the middle of the room between the bars (the next page on the left in every language) */
  html.w-home .practice-screen>.practice-bar>.turn-row{position:static!important;height:0!important;margin:0!important;padding:0!important}
  html.w-home .practice-screen>.practice-bar>.turn-row .turn-b{position:fixed!important;z-index:7;top:calc(64px + (100dvh - 136px) / 2 - 24px);width:48px;height:48px;min-height:48px;padding:0;margin:0;justify-content:center;border-radius:12px;color:var(--ink)!important}
  html.w-home .practice-screen>.practice-bar>.turn-row .turn-b[data-d="1"]{left:calc(var(--w-pl,var(--sx)) - 64px);right:auto}
  html.w-home .practice-screen>.practice-bar>.turn-row .turn-b[data-d="-1"]{left:calc(var(--w-pr,var(--sx)) + 16px);right:auto}
  html.w-home .practice-screen>.practice-bar>.turn-row .turn-b>span,html.w-home .practice-screen>.practice-bar>.turn-row .turn-tip{display:none}
  html.w-home .practice-screen>.practice-bar>.turn-row .turn-b svg{width:28px;height:28px;--ic-accent:var(--ink)}
  html.w-home .practice-screen>.practice-bar>.turn-row .turn-b:hover{background:var(--card)}
  /* the action row: Recite and Memorise in the middle, the Resume card at the start (homebox.css), Meaning at the end */
  html.w-home .practice-screen>.practice-bar{position:fixed!important;z-index:6;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:auto!important;max-width:none!important;min-height:72px;margin:0!important;
    box-sizing:border-box;padding:11px calc(50% - var(--cw)) 11px!important;background:var(--bg)!important}
  /* ayat chosen: the app's own choose card, 600px wide over the middle (as before), never across the whole window */
  html.w-home .practice-screen>.practice-bar.picked{left:calc(50% - 300px)!important;right:calc(50% - 300px)!important;padding:0!important;min-height:0;background:none!important}
  /* the page never slides up under the bar while ayat are chosen (it fits, so nothing is behind the row; no room under it to scroll into) */
  html.w-home .practice-screen:has(>.practice-bar.picked) :is(#mushaf,.mushaf.mate)::after{height:0!important}
  html.w-home .practice-screen:has(>.practice-bar.picked) :is(#mushaf,.mushaf.mate):not(.tall){overflow:hidden!important}
  /* L-1124 judge: the Memorise / Test me picker is a plain one-line panel in the action row's own place (the Surah row, From, To, the button,
     the x), 14px corners, a hairline, no drag handle, no grey boxes; the page above it stays still and whole. "Tap the top ayah" goes. */
  html.w-home .practice-screen>.practice-bar.picked:has(>.pick-card>.pc-row){left:var(--fl)!important;right:var(--fl)!important;bottom:0!important;height:72px!important;min-height:72px!important;background:var(--bg)!important}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row){position:absolute!important;top:8px!important;bottom:8px!important;left:0!important;right:0!important;width:auto!important;max-width:none!important;height:auto!important;max-height:none!important;
    transform:none!important;translate:none!important;animation:none!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:20px!important;margin:0!important;
    padding:0 6px 0 20px!important;box-sizing:border-box;border-radius:14px!important;border:1px solid var(--line)!important;background:var(--bg)!important;box-shadow:none!important;overflow:visible}
  html.w-home[dir=rtl] .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row){padding:0 20px 0 6px!important}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row)::before,html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row)>.pc-cue,html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row)>.pc-hint,html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row)>.pc-tip{display:none!important}
  /* its page arrows: in the same places as home's, beside the pages */
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row)>.turn-row{position:static!important;height:0!important;width:0!important;margin:0!important;padding:0!important;order:9}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row)>.turn-row .turn-b{position:fixed!important;z-index:7;top:calc(64px + (100dvh - 136px) / 2 - 24px);width:48px;height:48px;min-height:48px;padding:0;margin:0;justify-content:center;border-radius:12px;background:none!important;color:var(--ink)!important}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row)>.turn-row .turn-b[data-d="1"]{left:calc(var(--w-pl,var(--sx)) - 64px);right:auto}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row)>.turn-row .turn-b[data-d="-1"]{left:calc(var(--w-pr,var(--sx)) + 16px);right:auto}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row)>.turn-row .turn-b>span{display:none}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row)>.turn-row .turn-b svg{width:28px;height:28px;--ic-accent:var(--ink)}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row)>.turn-row .turn-b:hover{background:var(--card)!important}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row)>.pc-head{display:contents!important}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row) .pc-n{order:1;flex:none;padding:0!important;background:none!important;font-size:17px!important;white-space:nowrap}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row) .pc-what{order:2;flex:0 1 auto;min-width:0;max-width:220px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px;color:var(--muted)}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row) .pc-what:empty{display:none}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row) .pc-edit{order:2}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row)>.pc-surah{order:3;flex:0 1 220px;min-width:150px;width:auto;grid-template-columns:auto minmax(0,1fr) 20px;gap:10px;min-height:48px;padding:0;border-radius:0;box-shadow:inset 0 -1px 0 var(--line)}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row)>.pc-row{order:4;display:flex!important;align-items:center;gap:10px;flex:0 1 auto;min-width:0}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row)>.pc-row~.pc-row{order:5}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row) .pc-l{margin:0!important;padding:0!important;background:none!important;font-size:14px;white-space:nowrap}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row) .pc-sel{height:44px;border-radius:0!important;background-color:transparent!important;box-shadow:inset 0 -1px 0 var(--line)!important;padding-inline:2px 26px!important;background-position:right 2px center}
  html.w-home[dir=rtl] .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row) .pc-sel{padding-inline:2px 26px!important;background-position:left 2px center}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row) .pc-sel:focus{box-shadow:inset 0 -2px 0 var(--gold)!important}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row) .pc-sel:is([data-pick=fs],[data-pick=ts]){width:150px}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row) .pc-sel:is([data-pick=fa],[data-pick=ta]){width:68px}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row)>.pc-go{order:6;display:flex!important;gap:8px;flex:none;margin:0 0 0 auto!important}
  html.w-home[dir=rtl] .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row)>.pc-go{margin:0 auto 0 0!important}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row) .pc-act{flex-direction:row!important;width:auto!important;min-height:48px!important;height:48px;padding:0 20px!important;gap:8px}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row) .pc-act small{display:none}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row) .pick-x{order:7;flex:none;width:48px;height:48px;margin:0!important}
  html.w-home .practice-screen>.practice-bar>.mean-br{display:none}
  html.w-home .practice-screen>.practice-bar .mem-menu,html.w-home[dir=rtl] .practice-screen>.practice-bar .mem-menu{left:auto;right:calc(50% - var(--cw));inset-inline-start:auto;inset-inline-end:auto}    /* over Memorise */
  html.w-home .practice-screen>.practice-bar>:is(.fab,.mem-btn){height:50px;margin-top:0!important;margin-bottom:0!important}
  html.w-home .practice-screen>.practice-bar>.mean-link{position:absolute!important;top:12px!important;bottom:auto!important;right:var(--fl)!important;left:auto!important;margin:0!important;
    display:flex!important;align-items:center;gap:8px;height:48px!important;min-height:48px!important;padding:0 8px!important;line-height:1!important;font-size:15px!important;color:var(--muted)!important}
  html[dir=rtl].w-home .practice-screen>.practice-bar>.mean-link{left:var(--fl)!important;right:auto!important}
  html.w-home .practice-screen>.practice-bar>.mean-link::before{content:'';position:static!important;display:block;flex:none;width:20px;height:20px;background:currentColor;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 6v15M12 6C8 3 5 3 2 4v15c4-1 7 0 10 2 3-2 6-3 10-2V4c-3-1-6-1-10 2Z'/%3E%3C/svg%3E") center/20px no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 6v15M12 6C8 3 5 3 2 4v15c4-1 7 0 10 2 3-2 6-3 10-2V4c-3-1-6-1-10 2Z'/%3E%3C/svg%3E") center/20px no-repeat}
  html.w-home .practice-screen>.practice-bar>.mean-link:hover{color:var(--ink)!important}
  /* the app's sheets (Go to, page options, the surah picker): a 720px panel rising from the bottom of the window, never across it */
  html.w-home .practice-screen>.sheet-scrim{position:fixed;top:64px;z-index:8}
  html.w-home .practice-screen>.sheet{position:fixed;z-index:9;left:max(32px,calc(50% - 360px));right:max(32px,calc(50% - 360px));bottom:0;max-height:min(80dvh,760px);border-radius:14px 14px 0 0}
}
@media (min-width:1024px) and (min-height:600px) and (min-aspect-ratio:5/4){
  /* two pages: each against the fold, 24px apart (L-1341: wherever the pair is open, mushaf.js's spread test) */
  html.w-home .practice-screen #mushaf[data-side=l]:not(.aside) .page,html.w-home .practice-screen .mushaf.mate[data-side=l] .page{margin-left:auto;margin-right:12px}
  html.w-home .practice-screen #mushaf[data-side=r]:not(.aside) .page,html.w-home .practice-screen .mushaf.mate[data-side=r] .page{margin-left:12px;margin-right:auto}
}
@media (min-width:1024px) and (max-width:1279px) and (min-height:600px){
  /* Recite and Memorise a little narrower, so the Resume card's words show */
  html.w-home{--cw:180px}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row) :is(.pc-n,.pc-what){display:none}    /* the picker's own button says Memorise or Test me */
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row){gap:14px!important}
  html.w-home .practice-screen>.practice-bar.picked>.pick-card:has(>.pc-row)>.pc-surah{flex-basis:180px;min-width:130px}
}
@media (min-width:1024px) and (min-height:600px) and (max-aspect-ratio:4999/4000){
  /* L-1341: one page, up to 560px, centred, only where mushaf.js opens one (a window narrower than 5:4) */
  html.w-home .practice-screen>.lesson-top{left:max(64px,calc((100% - 580px) / 2));right:max(64px,calc((100% - 580px) / 2))}    /* the title line as wide as the page's room */
  html.w-home .practice-screen .mushaf[data-side]:not(.aside){left:max(64px,calc((100% - 580px) / 2));right:max(64px,calc((100% - 580px) / 2))}
}

/* 5. Surahs, Settings and every other screen on a computer: one centred column 40px under the bar, its title at the column's edge; no card, no
   tab bar, no back arrow on Settings (the bar is the way back). Settings 720px; Surahs 720px in one column, 1120px in two from 1280px up. */
@media (min-width:1024px) and (min-height:600px){
  html.w-nav #app:not(:has(.practice-screen)){max-width:720px!important;min-height:calc(100dvh - 240px);margin:0 auto!important;padding:0;border:0;border-radius:0;box-shadow:none;overflow:visible;background:none}
  html.w-nav #app:not(:has(.practice-screen)) .screen{min-height:0}
  html.w-nav #app .tabs{display:none}
  html.w-nav #app .top:has(>.brand){display:none}    /* the wordmark and Settings are in the bar */
  html.w-nav #app .screen:has(>.top>.brand)>.view{padding-top:40px}
  html.w-nav #app .view>h1.title,html.w-nav #app .top h1{font-size:clamp(30px,2.4vw,40px);letter-spacing:-.02em}
  html.w-nav[dir=rtl] #app .view>h1.title,html.w-nav[dir=rtl] #app .top h1{letter-spacing:0}
  /* Settings: no back arrow (the bar is the way back); its title 40px under the bar, at the column's edge as the Surahs title */
  html.w-nav #app .screen:has(.set)>.top>.round[data-action=nav]{display:none}
  html.w-nav #app .screen:has(.set)>.top{min-height:0;padding:40px 20px 4px}
  html.w-nav #app .screen:has(.set)>.top h1{margin:0;padding:0}
  html.w-nav .w-foot:not([hidden]){max-width:680px}
}
@media (min-width:1280px) and (min-height:600px){
  /* Surahs: 1120px, the search across the top, the 114 in two columns */
  html.w-nav #app:has(.screen>.view>.find){max-width:1120px!important}
  html.w-nav #app .screen>.view:has(>.find)>.card:has(>.srow){display:grid;grid-template-columns:1fr 1fr;column-gap:48px;align-items:start}
  html.w-nav:has(#app .screen>.view>.find) .w-foot:not([hidden]){max-width:1080px}
}
