/* L-1099 Resume card (his words, 18 Nov 2026 22:18: "the normal recite memorize stays but a seperate box shows up for the resume part which
   i can x"). Recite and Memorise are the two bottom buttons as ever. In the idle home state (nothing chosen, not reciting, no hidden page
   test) the bar's first row is Meaning, a plain link in a 48px row with the page arrows at its two ends (‹ Meaning ›, the next page on the
   left in every language), and home's Resume line (app.js homeChip: Resume, else Next lesson) is its own card floating 8px above that row,
   over the page's foot, with the x (app.js boxHtml) at its end. html.hb is set by app.js (boxOn) everywhere but the computer's first
   screen; html.hb-shut once the x, Recite or Memorise was tapped, until the next opening of the app. html.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on)) is the idle bar written out. */
.practice-bar>.hb-x,.practice-bar .hb-ic,.practice-bar>.mean-link>svg{display:none}
:root{--rc-bg:#FFFFFF;--rc-edge:0 0 0 1px rgba(18,18,22,.07),0 6px 16px -8px rgba(18,18,22,.22)}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--rc-bg:#1F1F23;--rc-edge:0 0 0 1px rgba(255,255,255,.06)}}
:root[data-theme=dark]{--rc-bg:#1F1F23;--rc-edge:0 0 0 1px rgba(255,255,255,.06)}

/* ---- the Meaning row: a plain centred link, 48px tall; the page arrows at its ends ---- */
html.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>.mean-link{min-height:48px!important;height:48px;line-height:48px!important;margin:0 auto!important;padding:0 16px!important;font-size:15px!important;color:var(--ink)!important}
html.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>.mean-link::after{inset:0!important}
html.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>.turn-row{top:6px!important;bottom:auto!important;height:48px;left:6px!important;right:6px!important}
html.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>.turn-row .turn-b{width:48px;height:48px;padding:0;justify-content:center;color:var(--ink)!important}
html.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>.turn-row .turn-b>span{display:none}
html.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>.turn-row .turn-b svg{width:24px;height:24px;--ic-accent:var(--ink)}

/* ---- the Resume card ---- */
html.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>.resume-chip{display:flex!important;position:absolute!important;z-index:6;left:16px!important;right:16px!important;bottom:calc(100% + 8px)!important;translate:none!important;transform:none;
  box-sizing:border-box;width:auto!important;max-width:none!important;height:56px!important;min-height:56px!important;margin:0!important;padding:0!important;padding-inline:16px 60px!important;
  align-items:center;justify-content:flex-start;gap:12px!important;border:0!important;border-radius:14px!important;background:var(--rc-bg)!important;box-shadow:var(--rc-edge)!important;
  color:var(--ink)!important;font:600 16px/1.2 var(--ui)!important;text-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent}
html.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>.resume-chip::after{content:none!important}
html.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>.resume-chip svg{flex:none;width:20px;height:20px;color:var(--gold)}
html.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>.resume-chip span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>.resume-chip:active{opacity:.75}
html.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>.resume-chip:focus-visible,html.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>.hb-x:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
html.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on)):has(>.resume-chip)>.hb-x{display:grid;place-items:center;position:absolute;z-index:7;inset-inline-end:20px;bottom:calc(100% + 12px);width:48px;height:48px;margin:0;padding:0;
  border:0;border-radius:12px;background:none;color:var(--ink);cursor:pointer;-webkit-tap-highlight-color:transparent}
html.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>.hb-x svg{width:22px;height:22px;--ic-accent:var(--ink)}
html.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>.hb-x:active{opacity:.55}
/* a guest has no Next lesson line (first.css: its own line says it): no card, no x */
html.guest-first.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>.resume-chip.next-chip,html.guest-first.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on)):not(:has(>.resume-chip:not(.next-chip)))>.hb-x{display:none!important}
/* hidden until the next opening */
html.hb-shut .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>:is(.resume-chip,.hb-x){display:none!important}
/* a note goes above the card */
html.hb:not(.hb-shut) .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on)):has(>.resume-chip)>.notice{bottom:calc(100% + 72px)!important}

/* ---- a wide window: the card no wider than the bar's own content ---- */
@media (min-width:700px){html.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>.resume-chip{left:max(16px,calc(50% - 220px))!important;right:max(16px,calc(50% - 220px))!important}html.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on)):has(>.resume-chip)>.hb-x{inset-inline-end:max(20px,calc(50% - 216px))}}
/* ---- a computer (L-1124, html.w-home): the card at the start of the action row (web.css), the x at its end; nothing floats over the page ---- */
@media (min-width:1024px) and (min-height:600px){
  html.w-home{--rc-w:min(340px,calc(50% - var(--cw,220px) - 24px - var(--fl,32px)))}
  html.web.w-home.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>.resume-chip{position:absolute!important;top:8px!important;bottom:auto!important;left:var(--fl,32px)!important;right:auto!important;width:var(--rc-w)!important;
    height:56px!important;min-height:56px!important;padding-inline:16px 56px!important;font-size:15px!important}
  html.web.w-home[dir=rtl].hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>.resume-chip{left:auto!important;right:var(--fl,32px)!important}
  html.web.w-home.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on)):has(>.resume-chip)>.hb-x{position:absolute;top:12px;bottom:auto;inset-inline-end:auto;left:calc(var(--fl,32px) + var(--rc-w) - 52px);right:auto}
  html.web.w-home[dir=rtl].hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on)):has(>.resume-chip)>.hb-x{left:auto;right:calc(var(--fl,32px) + var(--rc-w) - 52px)}
  html.web.w-home.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>.resume-chip:hover{filter:brightness(1.04)}
  /* L-1124 judge: a hairline, no shadow; the label whole (two lines when the card is narrow) */
  html.web:is(.w-home,.w-first).hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>.resume-chip{box-shadow:inset 0 0 0 1px var(--line)!important}
  html.web.w-home.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>.resume-chip span{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  /* the first visit (a guest who left a lesson half way): the card in the column, under the buttons (web.css moves the surahs link down) */
  html.web.w-first.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>.resume-chip{top:calc(100% + 8px)!important;bottom:auto!important;left:0!important;right:0!important}
  html.web.w-first.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on)):has(>.resume-chip)>.hb-x{top:calc(100% + 12px);bottom:auto;inset-inline-end:4px}
}

/* ---- L-1099 picker: the Surah row at the top of the choose card (app.js surahRow): a bare row in the From and To rows' columns ---- */
.pick-card .pc-surah{display:grid;grid-template-columns:44px 1fr 24px;align-items:center;gap:8px;box-sizing:border-box;width:100%;min-height:48px;margin:0;padding:0 4px 0 0;border:0;border-radius:12px;
  background:none;color:var(--ink);font:600 16px/1.25 var(--ui);text-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent}
.pick-card .pc-surah>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.pick-card .pc-surah>svg{width:20px;height:20px;justify-self:end}
.pick-card .pc-surah:active{opacity:.55}
.pick-card .pc-surah:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (max-width:359px){.pick-card .pc-surah{grid-template-columns:40px 1fr 24px;gap:6px}}
html.pick-drag .pick-card .pc-surah{opacity:.28}
/* the Go to sheet as the surah list (Choose a surah): its search and the 114, no Juz and Hizb tabs */
.sheet.goto.goto-surah .tabs3{display:none!important}

/* ===== L-1161 (19 Nov 2026, his words: "this should not be here. It should be as the quran Icon on the top, instead of the bookmark. Also when i
   press memorize it should [not] directly start. it should ask to test or memroize! then if i click memorize it should hihglight the first verse
   of the page and prompt me to drag and choose"). The spec is ~/ayah-icons/l1161/SPEC.md. ===== */
/* 1. Meaning is the book in the header, in the bookmark's slot (app.js practiceScreen); on while its sheet is open, as the lesson bar's book.
   No soft square behind the page icon: the four icons sit bare. */
.practice-screen .page-card .mean-hd{position:relative;flex:none;align-self:center;display:grid;place-items:center;width:48px;min-width:48px;height:48px;margin:0;padding:0;border:0;border-radius:12px;
  background:none;color:var(--ink);cursor:pointer;-webkit-tap-highlight-color:transparent}
.practice-screen .page-card .mean-hd svg{width:24px;height:24px}
.practice-screen .page-card .mean-hd::after{content:'';position:absolute;left:50%;bottom:5px;width:14px;height:2px;margin-left:-7px;border-radius:1px;background:transparent}
.practice-screen .page-card .mean-hd[aria-expanded=true]{color:var(--gold)}
.practice-screen .page-card .mean-hd[aria-expanded=true]::after{background:var(--gold)}
.practice-screen .page-card .mean-hd:disabled{opacity:.35;cursor:default}
.practice-screen .page-card .mean-hd:active:not(:disabled){opacity:.55}
.practice-screen .page-card .mean-hd:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}
.practice-screen .lesson-top .icon-btn.book{background:none!important;box-shadow:none!important;border:0!important}
/* 2. The bookmark: a 16px gold mark right after the surah name when the page is bookmarked (Page options has the switch) */
.practice-screen .card-go .pn-row{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%}
.practice-screen .card-go .pn-row>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.practice-screen .card-go .bm-mark{flex:none;display:grid;place-items:center;color:var(--gold);pointer-events:none}
.practice-screen .card-go .bm-mark[hidden]{display:none}
.practice-screen .card-go .bm-mark svg{width:16px;height:16px;--ic-accent:var(--gold)}
/* the page line on one line below a computer's width: 14px, no wrap; the hizb goes first when it still does not fit (app.js metaFit) */
html:not(.w-home) .practice-screen .card-go :is(.meta,.where){font-size:14px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important}
.practice-screen #page-meta.short .hz{display:none}
.practice-screen #page-meta .pg{display:none}
.practice-screen #page-meta.tiny .where{display:none!important}
.practice-screen #page-meta.tiny .pg{display:inline}
/* 3. No page arrows below a computer's width: swipe (and a mouse drag, and the arrow keys) turn the page; the page takes the room */
html:not(.w-home) .practice-screen>.practice-bar>.turn-row{display:none!important}
/* the Resume card no longer lies over the Quran text: it is the bar's first row, between the page and the buttons (the page shrinks) */
html.hb:not(.w-home) .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on)):has(>.resume-chip){flex-wrap:wrap}
html.hb:not(.w-home) .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on))>.resume-chip{position:relative!important;order:-2;flex:0 0 100%;left:auto!important;right:auto!important;bottom:auto!important;margin:0 0 8px!important}
html.hb:not(.w-home) .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on)):has(>.resume-chip)>.hb-x{top:var(--hbx-t,12px);bottom:auto;inset-inline-end:max(16px,calc(50% - 216px))}
@media (max-width:699px){html.hb:not(.w-home) .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on)):has(>.resume-chip)>.hb-x{inset-inline-end:var(--hbx-e,20px)}}
html.hb:not(.hb-shut):not(.w-home):not(.guest-first) .practice-screen:has(>.practice-bar:not(.picked)>.resume-chip):has(>.practice-bar>.fab[data-state=idle]):not(:has(>.practice-bar>.eye-group.on)){--stage-bottom:calc(max(10px,env(safe-area-inset-bottom)) + 56px + 64px)}    /* a guest's page follows the bar's own height (first.css --gf-pb) */
/* the card goes while the question or choosing is open, and comes back on cancel */
html.hb .practice-screen>.practice-bar:not(.picked):has(>.fab[data-state=idle]):not(:has(>.eye-group.on)):has(>.mem-menu)>:is(.resume-chip,.hb-x){display:none!important}
/* 4. The question: a sheet of two 64px rows right over the buttons, 14px top corners, no X, nothing under the rows. A guest gets it too
   (first.css hid the menu and the arrow for the guest's one tap Memorise). */
html:not(.w-home) .practice-screen .practice-bar .mem-menu{left:0!important;right:0!important;inset-inline:0!important;bottom:100%;width:auto;padding:8px 0;gap:0;border-radius:14px 14px 0 0;
  box-shadow:0 0 0 1px var(--line),0 -12px 32px -16px rgba(0,0,0,.35)}
.practice-screen .practice-bar .mem-opt{flex-direction:row;align-items:center;gap:16px;min-height:64px;padding:0 16px;border-radius:0;box-shadow:none}
.practice-screen .practice-bar .mem-opt .hb-ic{display:grid!important;flex:none;place-items:center;width:24px;height:24px}
.practice-screen .practice-bar .mem-opt .hb-ic svg{width:24px;height:24px}
.practice-screen .practice-bar .mem-opt .mo-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.practice-screen .practice-bar .mem-opt small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.guest-first .practice-screen .practice-bar>.mem-menu:not(#_){display:flex!important}    /* :not(#_) outweighs first.css's long :not() list */
html.guest-first .practice-screen .practice-bar>.mem-scrim:not(#_){display:block!important}
html.guest-first.w-nav .practice-screen .practice-bar>.mem-btn>svg{display:block!important}
/* L-1179 a computer's first screen: the question opens under the buttons (mem-dn) and "Or choose a surah" waits hidden in its place; with no room
   below it opens over them and the headline waits hidden (mem-up). Hidden in place, so the centred column never moves. Set by app.js memToggle. */
html.w-first .w-intro :is(.w-h,.w-pick){transition:opacity .12s,visibility .12s}
html.w-first.mem-dn .w-intro .w-pick,html.w-first.mem-up .w-intro .w-h{visibility:hidden;opacity:0}
html.w-first.mem-dn .practice-screen .practice-bar .mem-menu{top:calc(100% + 8px);bottom:auto;box-shadow:0 0 0 1px var(--line),0 12px 32px -16px rgba(0,0,0,.35);animation:mem-dn .15s cubic-bezier(.2,.8,.2,1) both}
@keyframes mem-dn{from{opacity:0;transform:translateY(-6px)}}
@keyframes mem-fade{from{opacity:0}}
@media (prefers-reduced-motion:reduce){html.w-first.mem-dn .practice-screen .practice-bar .mem-menu{animation:mem-fade .15s both}}
html.w-first .practice-screen .practice-bar>.mem-btn svg{transform:rotate(180deg)}    /* points down, where it opens */
html.w-first.mem-dn .practice-screen .practice-bar>.mem-btn.open svg{transform:none}
html.w-first .practice-screen .practice-bar .mem-menu{border-radius:14px}
/* 5 and 6. Choosing: one 64px bar in the buttons' place (Cancel, what is chosen, Start); the coach card in tutorial card 1's look */
.practice-screen .practice-bar>.pick-bar.choose-bar{position:absolute!important;z-index:6;left:0!important;right:0!important;top:auto!important;bottom:0!important;display:grid!important;
  grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:8px!important;box-sizing:border-box;width:auto!important;height:auto!important;min-height:64px;max-height:none!important;margin:0!important;
  padding:8px 16px max(8px,env(safe-area-inset-bottom))!important;border-radius:0!important;background:var(--bg)!important;box-shadow:0 -1px 0 var(--line)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;opacity:1!important}
.choose-bar::before{display:none!important}
.choose-bar .cb-x{width:48px;height:48px;min-width:48px;margin:0;padding:0;display:grid;place-items:center;border:0;background:none!important;box-shadow:none!important;color:var(--ink)}
.choose-bar .cb-x svg{width:22px;height:22px;--ic-accent:var(--ink)}
.choose-bar .cb-mid{display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0;min-height:48px;margin:0;padding:0 4px;border:0;background:none;color:var(--ink);text-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent}
.choose-bar .cb-mid strong{font:600 16px/1.25 var(--ui);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.choose-bar .cb-mid small{font:400 13.5px/1.3 var(--ui);color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.choose-bar .cb-mid:active{opacity:.6}
.choose-bar .cb-go{min-width:96px;min-height:48px;margin:0;padding:0 24px;border:0;border-radius:var(--r-main,10px);background:var(--recite-bg);color:var(--recite-ink);box-shadow:inset 0 0 0 1px var(--recite-edge);
  font:600 16px/1 var(--ui);cursor:pointer;-webkit-tap-highlight-color:transparent}
.choose-bar .cb-go:active{opacity:.75}
.choose-bar :is(.cb-x,.cb-mid,.cb-go):focus-visible{outline:2px solid var(--gold);outline-offset:2px}
html[lang=ar] .choose-bar .cb-go,html[lang=ar] .choose-bar .cb-mid strong{font-size:17px}
/* the drag prompt, the bar's own second line in ink until the first touch (L-1161 lead fix: never a card on the Quran's lines) */
.choose-bar.coach .cb-mid small{color:var(--ink);font-weight:550;white-space:normal;text-overflow:clip}
