/* styles/mt.css — v1371 · THE MUTASHABIHAT PICK (the owner's design D "Jump and tap", the two-colour
   words and Keep a copy). BUILT BY: modules/tools/hold-mut.js (the window's pieces, inside #ayah-pop)
   and modules/tools/mt-pick.js (.mtp: the two glass capsules over the reader while you pick).
   Palette: --mk-* (al.css gives #ayah-pop and .mtp the hold windows') and the mode window's glass
   (--mw-*, mode-win.css gives .mtp). Red = where you cross over (--mk-qr), green = a small difference
   (--mk-dr). No colour literal here (rule A2); every target is 44px (rule H3). */

/* ── one āyah: whole, or its words in two colours (design D: a caption over a grouped card) ─────
   Class map to the mock (rule B2) — the mock's bare names already mean something else inside the hold
   window (.sec, .row, .hint), so each carries the mt- prefix: .k → .mt-k · .grp → .mt-grp · .mini → .mt-mini ·
   .paint → .mt-paint · .words → .mt-words · .hint → .mt-hint · .row → .mt-row · .ic → .mt-ic · .t → .mt-t ·
   .chev → .mt-chev · .badge → .mt-badge · .pillbtn → .mt-btn / .mtp-btn · .search → .mtp-search ·
   .field → .mtp-field · .chips/.chip → .mtp-chips/.mtp-chip · .cap-bar → .mtp-bar. */
html #ayah-pop .hw .mt-ay, html #ayah-pop .hw .mt-keep { display:grid; gap:6px; min-width:0; margin-bottom:14px; }
html #ayah-pop .hw .mt-k { display:flex; align-items:center; gap:8px; min-height:16px; padding:0 12px; font:600 calc(12px * var(--k-type))/1 var(--mk-ui); color:var(--mk-mut); text-transform:uppercase; letter-spacing:.04em; }
html #ayah-pop .hw .mt-k b { font:inherit; min-width:0; }
/* v1374 — Mark Ayat's focused view: one quiet link to the full tool (My list · Export/Import · Scholars) */
html #ayah-pop .hw .mt-flink { display:flex; justify-content:flex-end; margin:-6px 0 2px; }
html #ayah-pop .hw .mt-flink button { display:inline-flex; align-items:center; gap:2px; min-height:44px; padding:0 6px 0 12px; border-radius:999px; font:600 calc(14px * var(--k-type))/1 var(--mk-ui); color:var(--mk-accent, var(--mw-on)); }
html #ayah-pop .hw .mt-flink button svg { width:14px; height:14px; }
html #ayah-pop .hw .mt-kd { margin-left:auto; white-space:nowrap; }
html #ayah-pop .hw .mt-k .px { flex:none; width:44px; height:44px; margin:-14px -12px -14px 0; border-radius:50%; display:grid; place-items:center; color:var(--mk-mut); }
html #ayah-pop .hw .mt-k .px .ic { width:17px; height:17px; }
html #ayah-pop .hw .mt-grp { background:var(--mk-card); border-radius:var(--mk-r18); overflow:hidden; box-shadow:0 0 0 .5px var(--mk-line); }
/* the segmented control: Whole āyah | Words */
html #ayah-pop .hw .mt-mini { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; margin:10px 12px 0; padding:3px; border-radius:var(--mk-r999); background:var(--mk-fill); }
html #ayah-pop .hw .mt-mini button { min-height:44px; padding:0 4px; border-radius:var(--mk-r999); font:600 calc(13px * var(--k-type))/1 var(--mk-ui); color:var(--mk-ink); text-align:center; }
html #ayah-pop .hw .mt-mini button.on { background:var(--mk-card); box-shadow:0 1px 3px rgba(0,0,0,.12); color:var(--mk-qr); }
/* the colour in hand: two plain dots, red and green (the owner: no words, no legend) */
html #ayah-pop .hw .mt-paint { display:flex; gap:8px; padding:10px 12px 0; }
html #ayah-pop .hw .mt-dot { flex:1; display:flex; align-items:center; justify-content:center; min-height:44px; border-radius:var(--mk-r999); background:var(--mk-fill); color:var(--mk-qr); }
html #ayah-pop .hw .mt-dot.green { color:var(--mk-dr); }
html #ayah-pop .hw .mt-dot i { width:14px; height:14px; border-radius:50%; background:currentColor; }
html #ayah-pop .hw .mt-dot.on { background:var(--mk-card); box-shadow:0 1px 3px rgba(0,0,0,.12), inset 0 0 0 1.5px currentColor; }
/* the words: tap to paint, again to clear, the other colour to switch */
html #ayah-pop .hw .mt-words { display:flex; flex-wrap:wrap; direction:rtl; gap:6px 4px; padding:12px; font:calc(23px * var(--k-type))/1.7 var(--mk-q); }
html #ayah-pop .hw .mt-words button { font:inherit; min-height:44px; min-width:44px; padding:1px 7px 3px; border-radius:var(--mk-r10); color:var(--mk-ink); }
html #ayah-pop .hw .mt-words button.red { background:var(--mk-qr-on); color:var(--mk-qr-on-ink); box-shadow:none; }
html #ayah-pop .hw .mt-words button.green { background:var(--mk-dr-on); color:var(--mk-qr-on-ink); box-shadow:none; }
html #ayah-pop .hw .mt-text { padding:12px; font:calc(23px * var(--k-type))/1.7 var(--mk-q); direction:rtl; text-align:right; }
html #ayah-pop .hw .mt-hint { padding:0 12px 10px; font:500 calc(12.5px * var(--k-type))/1.35 var(--mk-ui); color:var(--mk-mut); }
/* a row of the grouped list: Pick on the muṣḥaf, Add another āyah, Export, Import, the import sheet's two lines */
html #ayah-pop .hw .mt-row { position:relative; display:flex; align-items:center; gap:12px; width:100%; min-height:50px; padding:8px 14px; text-align:left; color:var(--mk-ink); font:calc(15px * var(--k-type))/1.45 var(--mk-ui); }
html #ayah-pop .hw .mt-row + .mt-row::before { content:''; position:absolute; top:0; left:54px; right:0; height:.5px; background:var(--mk-line); }
html #ayah-pop .hw .mt-ic { width:30px; height:30px; flex:none; border-radius:var(--mk-r9); display:grid; place-items:center; background:var(--mk-st-soft); color:var(--mk-st); }
html #ayah-pop .hw .mt-ic.g { background:var(--mk-dr-soft); color:var(--mk-dr); }
html #ayah-pop .hw .mt-ic .ic { width:19px; height:19px; stroke-width:1.9; }
html #ayah-pop .hw .mt-t { flex:1; min-width:0; }
html #ayah-pop .hw .mt-t b { display:block; font-weight:500; }
html #ayah-pop .hw .mt-t small { display:block; font-size:calc(12.5px * var(--k-type)); color:var(--mk-mut); overflow-wrap:anywhere; }
html #ayah-pop .hw .mt-row.primary .mt-t b { color:var(--mk-st); font-weight:600; }
html #ayah-pop .hw .mt-chev { flex:none; display:grid; color:var(--mk-mut); opacity:.6; }
html #ayah-pop .hw .mt-chev .ic { width:18px; height:18px; }
html #ayah-pop .hw .sec.fu > .mt-grp { box-shadow:0 0 0 .5px var(--mk-line), 0 1px 3px rgba(0,0,0,.06); }
/* My list: a red dot and N, a green dot and N */
html #ayah-pop .hw .mt-badges { display:inline-flex; align-items:center; gap:6px; margin-left:8px; vertical-align:middle; }
html #ayah-pop .hw .mt-badge { display:inline-flex; align-items:center; gap:5px; padding:5px 10px; border-radius:var(--mk-r999); background:var(--mk-qr-soft); color:var(--mk-qr); font:600 calc(12.5px * var(--k-type))/1 var(--mk-ui); font-variant-numeric:tabular-nums; }
html #ayah-pop .hw .mt-badge.g { background:var(--mk-dr-soft); color:var(--mk-dr); }
html #ayah-pop .hw .mt-badge i { width:8px; height:8px; border-radius:50%; background:currentColor; }
html #ayah-pop .hw .mt-whole { font:500 calc(12.5px * var(--k-type))/1 var(--mk-ui); color:var(--mk-mut); }
/* Import a list: the sheet (title, the two lines, Cancel / Add N pairs) */
html #ayah-pop .hw .mt-sheet { display:flex; flex-direction:column; gap:14px; padding:4px 0 16px; }
html #ayah-pop .hw .mt-ttl { text-align:center; }
html #ayah-pop .hw .mt-ttl b { display:block; font:700 calc(20px * var(--k-type))/1.2 var(--mk-ui); letter-spacing:-.02em; }
html #ayah-pop .hw .mt-ttl span { font:500 calc(13px * var(--k-type))/1.3 var(--mk-ui); color:var(--mk-mut); }
html #ayah-pop .hw .mt-acts { display:flex; justify-content:center; gap:10px; padding-top:4px; }
html #ayah-pop .hw .mt-btn { min-height:44px; padding:0 16px; border-radius:var(--mk-r999); background:var(--mk-fill); font:600 calc(14.5px * var(--k-type))/1 var(--mk-ui); color:var(--mk-ink); }
html #ayah-pop .hw .mt-btn.go { background:var(--mk-dr-on); color:var(--mk-qr-on-ink); }
html #ayah-pop .hw .mt-btn:disabled { opacity:.45; cursor:default; }
html #ayah-pop .hw .mt-err { padding:0 12px; font:500 calc(13.5px * var(--k-type))/1.35 var(--mk-ui); color:var(--mk-qr); }

/* ── the two capsules over the reader while you pick ─────────────────────── */
.mtp { position:fixed; left:0; right:0; margin-inline:auto; z-index:72; box-sizing:border-box; color:var(--mw-ink); font:15px/1.45 var(--mk-ui);
  background:var(--mw-glass); -webkit-backdrop-filter:blur(24px) saturate(1.8); backdrop-filter:blur(24px) saturate(1.8); -webkit-font-smoothing:antialiased; }
.mtp :where(button, input) { font:inherit; color:inherit; border:0; background:none; -webkit-tap-highlight-color:transparent; }
.mtp :where(button) { cursor:pointer; }
.mtp :where(button, input):focus-visible { outline:2px solid var(--mk-st); outline-offset:2px; }
.mtp-search { top:calc(env(safe-area-inset-top, 0px) + 22px); width:min(92%, 520px); border-radius:26px; padding:10px; display:flex; flex-direction:column; gap:10px; box-shadow:var(--mw-spec), 0 18px 40px -18px rgba(0,0,0,.35); }
.mtp-field { display:flex; align-items:center; gap:10px; min-height:44px; margin:0; padding:0 14px; border-radius:999px; background:var(--mw-fill); color:var(--mw-mut); }
.mtp-field .ic { width:18px; height:18px; flex:none; stroke-width:2; }
.mtp-field input { flex:1; min-width:0; min-height:44px; padding:0; font-size:16px; color:var(--mw-ink); outline:none; -webkit-appearance:none; appearance:none; }
.mtp-field input::placeholder { color:var(--mw-mut); }
.mtp-field input:focus-visible { outline:none; }
.mtp-field:focus-within { box-shadow:inset 0 0 0 1.5px var(--mk-st); }
.mtp-field input::-webkit-search-cancel-button { -webkit-appearance:none; }
.mtp-msg { padding:0 8px; font-size:13.5px; color:var(--mw-mut); }
.mtp-msg[hidden] { display:none; }
.mtp-chips { display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; padding:0 2px 2px; }
.mtp-chips::-webkit-scrollbar { display:none; }
.mtp-chip { flex:none; display:inline-flex; align-items:center; min-height:44px; padding:0 14px; border-radius:999px; background:var(--mw-fill); font-weight:600; font-size:13.5px; white-space:nowrap; }
.mtp-chip.on { background:var(--mk-st); color:var(--mk-page); }
.mtp-bar { bottom:calc(env(safe-area-inset-bottom, 0px) + 18px); width:fit-content; max-width:min(94%, 560px); border-radius:999px; padding:8px 8px 8px 18px; display:flex; align-items:center; gap:10px; box-shadow:var(--mw-spec), 0 14px 34px -14px rgba(0,0,0,.35); }
.mtp-say { flex:1 1 auto; min-width:0; }
.mtp-say b { font-weight:600; font-variant-numeric:tabular-nums; }
.mtp-say small { font-size:13px; color:var(--mw-mut); }
.mtp-say.one { white-space:nowrap; }
.mtp-btn { flex:none; min-height:44px; padding:0 16px; border-radius:999px; background:var(--mw-fill); font-weight:600; font-size:14.5px; }
.mtp-btn.go { background:var(--mk-dr-on); color:var(--mk-qr-on-ink); }
/* the chosen āyah: an overlay wash in the page's chrome layer (window.__alLit) — no word box is touched;
   the rest of the page steps back to .35 (opacity only, the words stay where they are) */
.al-lit[data-lit="mtpick"] { background:color-mix(in srgb, var(--mk-dr) 14%, transparent); box-shadow:0 0 0 2px var(--mk-dr); border-radius:8px; }
body.mt-picking.mtp-has .mushaf-page .glyph-layer .word-glyph:not(.mtp-on) { opacity:.35; }
/* v1376 — design E's calm sheet: one pair of dots beside Done in the footer, cards with only a caption and the words */
html #ayah-pop .hw .mt-calm-foot { justify-content:space-between; }
html #ayah-pop .hw .mt-calm-foot .mt-paint { flex:none; padding:0; gap:6px; }
html #ayah-pop .hw .mt-calm-foot .mt-dot { flex:none; width:52px; min-height:44px; padding:0; border-radius:var(--mk-r999); background:var(--mk-fill); color:var(--mk-qr); font:inherit; }
html #ayah-pop .hw .mt-calm-foot .mt-dot.green { color:var(--mk-dr); }
html #ayah-pop .hw .mt-calm-foot .mt-dot.on { background:var(--mk-card); box-shadow:0 1px 3px rgba(0,0,0,.12), inset 0 0 0 1.5px currentColor; }
html #ayah-pop .hw .mt-calm .mt-grp { padding-top:4px; }
/* v1580 (owner: the āyāt in the muṣḥaf's order, "the verse … the current one … the box is outlined … and it'll pulse a little bit"):
   your āyah's box (hold-mut.js .mt-cur) is ringed in the mark colour; hold-mut.js breathes the ring (Web Animations, still for reduced motion) */
html #ayah-pop .hw .mt-ay.mt-cur > .mt-grp { box-shadow:inset 0 0 0 2px var(--mk-qr); }
