:root {
  --content-font-scale: 1;
  --quran-font-scale: 1;
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --font-quran-arabic: 'MeQuran', 'quran', serif;
  --c-page: #f3f7f5;
  --c-page-rgb: 243, 247, 245;
  --c-paper: #fffef8;
  --c-paper-rgb: 255, 254, 248;
  --c-chrome: #fffef8;
  --c-chrome-rgb: 255, 254, 248;
  --c-surface: #ffffff;
  --c-surface-rgb: 255, 255, 255;
  --c-mint: #e8f3ec;
  --c-mint-rgb: 232, 243, 236;
  --c-ink: #24342d;
  --c-ink-rgb: 36, 52, 45;
  --c-muted: #5e6b65;
  --c-muted-rgb: 94, 107, 101;
  --c-accent: #075c3f;
  --c-accent-rgb: 7, 92, 63;
  --c-strong: #16835c;
  --c-strong-rgb: 22, 131, 92;
  --c-line: #d2ddd7;
  --c-line-rgb: 210, 221, 215;
  --c-line-warm: #ddd6c7;
  --c-line-warm-rgb: 221, 214, 199;
  --c-danger: #9d2f25;
  --c-danger-rgb: 157, 47, 37;
  --c-danger-wash: color-mix(in srgb, var(--c-danger) 12%, var(--c-surface));
}

body {
  direction: rtl;
}

a {
  text-decoration: none;
}

@font-face {
  font-family: 'quran';
  src: url('font/quran/Al-QuranAlKareem.woff2') format('woff2'),
       url('font/quran/Al-QuranAlKareem.woff') format('woff'),
       url('font/quran/Al-QuranAlKareem.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'MeQuran';
  src: url('../fonts/me_quran.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MeQuranRed';
  src: url('font/quran/me_quran-red.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html[data-arabic-diacritics-available="true"][data-arabic-diacritics="on"] {
  --font-quran-arabic: 'MeQuranRed', 'MeQuran', 'quran', serif;
}

html:not([data-arabic-diacritics-available="true"]) [data-arabic-diacritics-toggle],
html:not([data-arabic-diacritics-available="true"]) [data-slide-view-option="diacritics"] {
  display: none;
}

.mushaf-image-retry {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  padding: 12px;
  background: var(--c-paper);
  color: var(--c-accent);
  border: 1px solid var(--c-line);
  border-radius: 8px;
  cursor: pointer;
}

.mushaf-page[data-mushaf-image-failed="true"] .mushaf-loading {
  display: none;
}

html:not(.mushaf-arabic-fonts-ready) .word-gloss-arabic,
html:not(.mushaf-arabic-fonts-ready) .mushaf-slide-view-ayah-text,
html:not(.mushaf-arabic-fonts-ready) .mushaf-slide-view-ayah-body,
.mushaf-slide-view.is-slide-fitting .mushaf-slide-view-ayah-text,
.mushaf-slide-view.is-slide-fitting .mushaf-slide-view-tooltip-host {
  visibility: hidden;
}

.left {
  float: left;
}

.menu {
  font-size: 18px;
  padding: 0 12px;
  border-bottom: 1px solid var(--c-page);
  z-index: 1;
  position: relative;
  overflow: hidden;
}

.menu .namad {
  display: inline-block;
  line-height: 34px;
}

.menu .namad svg {
  fill: var(--c-ink);
  color: var(--c-ink);
  height: 20px;
  width: 120px;
  margin-top: 3px;
  margin-bottom: 3px;
  display: inline-block;
  vertical-align: middle;
}

.menu .i {
  display: inline-block;
}

.menu .i .im {
  display: inline-block;
}

.menu .i .im a {
  transition: all 0.1s ease-in 0s;
  position: relative;
  color: var(--c-ink);
  display: inline-block;
  line-height: 44px;
  padding: 0 7px;
}

.menu .i .im a:hover:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--c-strong);
  right: 0;
  bottom: 0;
}

.menu .i .im a:hover {
  color: #000;
  background: var(--c-mint);
}

.menu .i.left {
  transition: all 0.1s ease-in 0s;
  margin-left: -32px;
}

.menu .i.icon {
  visibility: hidden;
  cursor: pointer;
  float: left;
  position: relative;
  top: 5px;
  transform: translateX(-200%);
  transition: all 0.1s ease-in 0s;
}

.menu .i.icon svg {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  position: relative;
}

.menu-dd {
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, .05);
  border-bottom: 1px solid var(--c-page);
  text-align: center;
}

.menu-dd .dd {
  box-shadow: 0 2px 9px rgba(0, 0, 0, .05);
  transition: all 0.1s ease-in 0s;
  background: var(--c-surface);
  cursor: pointer;
  display: inline-block;
  border: 1px solid var(--c-line-warm);
  line-height: 34px;
  border-radius: 5px;
  margin: 4px 5px;
}

.menu-dd svg {
  display: inline-block;
  height: 12px;
  width: 18px;
  vertical-align: middle;
  margin-right: 12px;
  margin-left: 12px;
}

.menu-dd .lbl {
  display: inline-block;
  font-size: 121%;
  text-align: center;
  padding-left: 12px;
  padding-right: 9px;
  line-height: 34px;
}

.menu-dd .dd:hover {
  background: var(--c-mint);
  border: 1px solid var(--c-strong);
}

.menu-dd .dd:hover svg {
  color: var(--c-accent);
}

.md {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 20px;
  overflow: auto;
  background: rgba(var(--c-ink-rgb), .48);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .14s ease, visibility .14s ease;
}

.welcome-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  box-sizing: border-box;
  width: min(740px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  padding: 28px;
  border: 1px solid var(--c-line);
  border-radius: 20px;
  background: var(--c-surface);
  color: var(--c-ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  font-family: inherit;
  overflow: auto;
}
.welcome-dialog::backdrop { background: rgba(16, 37, 27, .05); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.welcome-dialog.is-previewing::backdrop { background: rgba(16, 37, 27, .05); }
.welcome-dialog.is-previewing { width: min(620px, calc(100% - 32px)); padding: 18px; }
.welcome-dialog.is-previewing h2 { font-size: 1.05rem; }
.welcome-dialog.is-previewing > p, .welcome-dialog.is-previewing .view-choices small { display: none; }
.welcome-dialog.is-previewing .welcome-language-bar { margin-bottom: 12px; }
.welcome-dialog.is-previewing .view-preview { height: 64px; }
.welcome-dialog.is-previewing .view-choices button { padding: 7px; gap: 6px; }
.welcome-dialog.is-previewing .remember-view { margin-top: 12px; }
.welcome-dialog.is-previewing .welcome-confirm { margin-top: 12px; }
.welcome-language-bar { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 22px; }

/* Replace the legacy universal Nasim default for English UI. Dedicated
   Arabic/Persian content and Quran font rules retain their own typefaces. */
:where(html[lang="en"]) :where(body, body *) {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.welcome-languages { display: flex; gap: 8px; direction: ltr; }
.welcome-languages button { min-width: 58px; padding: 11px 14px; font: 800 16px system-ui, sans-serif; color: var(--c-accent); background: var(--c-mint); border: 2px solid var(--c-line); border-radius: 8px; cursor: pointer; }
.welcome-languages button[aria-pressed="true"] { color: white; background: var(--c-accent); border-color: var(--c-accent); }
.welcome-confirm { display: block; width: 100%; margin-top: 18px; padding: 12px 20px; border: 0; border-radius: 10px; color: white; background: var(--c-accent); font: inherit; font-weight: 700; cursor: pointer; }
.welcome-confirm:disabled { opacity: .45; cursor: default; }

/* Reading modes share one chooser instead of separate view shortcuts. */
.mushaf-app-header-actions [data-app-fullscreen],
.mushaf-app-header-actions [data-slide-view],
.mushaf-app-header-actions [data-tooltip-dock],
.mushaf-app-header-actions [data-tooltip-undock],
.mushaf-translation-tooltip [data-app-fullscreen],
.mushaf-translation-tooltip [data-slide-view],
.mushaf-translation-tooltip .mushaf-tooltip-undock {
  display: none !important;
}
[data-view-selection] svg { width: 100%; height: 100%; }
.ayah-view[data-ayah-view="two-column"] .column-stage-footer .content-ayah-sticky {
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  padding: 0 10px;
  border: 0;
  background: transparent;
}
.view-choices button[aria-pressed="true"] { border-color: var(--c-accent); box-shadow: 0 0 0 2px var(--c-accent); background: var(--c-mint); }
.welcome-dialog h2 { margin: 0 0 10px; font-size: 1.35rem; }
.welcome-dialog > p { margin: 0 0 22px; line-height: 1.7; }
.view-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.view-choices button, .account-settings-choices button {
  display: flex; flex-direction: column; gap: 9px; align-items: stretch;
  padding: 12px; border: 1px solid var(--c-line); border-radius: 12px;
  background: var(--c-surface); color: inherit; font: inherit; cursor: pointer;
  text-align: start;
}
.view-choices button:hover, .account-settings-choices button:hover { border-color: var(--c-accent); background: var(--c-mint); }
.welcome-dialog button:focus-visible, .remember-view input:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.welcome-dialog small { display: block; font-size: .8rem; line-height: 1.6; opacity: .8; }
.view-preview { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: contain; border-radius: 7px; background: var(--c-page); pointer-events: none; }
.remember-view { display: flex; align-items: center; gap: 10px; margin-top: 24px; cursor: pointer; font-size: .9rem; }
.remember-view input { width: 18px; height: 18px; accent-color: var(--c-accent); }
.account-settings-dialog { width: min(580px, calc(100% - 32px)); }
.account-settings-choices { display: grid; gap: 12px; }
.account-settings-choices button { padding: 16px; }
.account-settings-choices button:disabled { opacity: .5; cursor: wait; }
.welcome-dialog [data-account-settings-status] { margin: 14px 0 0; color: #a52d25; }
@media (max-width: 540px) {
  .welcome-dialog { padding: 20px; }
  .view-choices { grid-template-columns: 1fr; gap: 10px; }
  .view-choices button { display: grid; grid-template-columns: 105px 1fr; grid-template-rows: auto auto; gap: 4px 14px; align-items: center; }
  .view-preview { grid-row: span 2; height: 72px; }
  .view-choices strong { align-self: end; }
  .view-choices small { align-self: start; }
  .welcome-language-bar { margin-bottom: 16px; }
  .welcome-languages button { min-width: 52px; padding: 9px 11px; }
  .welcome-dialog > p { margin-bottom: 16px; }
  .remember-view { margin-top: 16px; }
  .welcome-dialog.is-previewing .view-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .welcome-dialog.is-previewing .view-choices button { display: flex; font-size: .8rem; }
  .welcome-dialog.is-previewing .view-preview { height: 48px; }
}

.md.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.md .rtl {
  direction: rtl;
}

.modal-open {
  overflow: hidden;
}

.surah-dialog {
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  margin: auto;
  overflow: hidden;
  border-radius: 12px;
  background: var(--c-surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

#md-sureh .surah-dialog,
#md-juz .surah-dialog {
  background: var(--c-paper);
}

.surah-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--c-mint);
}

.surah-dialog-header h2 {
  margin: 0;
  font-size: 1.15em;
}

.surah-dialog-ayah-picker {
  margin: 10px 18px 2px;
  padding: 10px 12px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  background: var(--c-page);
  direction: rtl;
}

.surah-dialog-ayah-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--c-accent);
  font-size: .9em;
  font-weight: bold;
}

.surah-dialog-ayah-picker .mushaf-ayah-slider-value {
  position: static;
  min-width: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  transform: none;
}

.surah-dialog-ayah-control {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  direction: ltr;
}

.mushaf-juz-progress-control {
  grid-template-columns: minmax(0, 1fr);
}

.surah-dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.surah-dialog-close:hover,
.surah-dialog-close:focus {
  background: var(--c-page);
  outline: none;
}

.surah-dialog-close svg {
  width: 24px;
  height: 24px;
}

.surah-search-label {
  padding: 10px 18px 4px;
  color: var(--c-muted);
  font-size: .86em;
}

.surah-search {
  box-sizing: border-box;
  width: calc(100% - 36px);
  min-height: 42px;
  margin: 0 18px 10px;
  padding: 7px 12px;
  border: 1px solid var(--c-line-warm);
  border-radius: 7px;
  font: inherit;
}

.surah-search:focus {
  border-color: var(--c-strong);
  outline: 2px solid rgba(var(--c-strong-rgb), .22);
}

.surah-dialog .sfehrest {
  width: 100%;
  max-width: none;
  padding: 14px 18px 20px;
  overflow-y: auto;
  background: var(--c-paper);
}

.juz-dialog {
  width: min(700px, 100%);
}

.juz-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
}

.juz-list > a {
  display: block;
}

.juz-list > a > div {
  width: auto;
  margin: 0;
}

.page-dialog,
.sources-dialog,
.account-dialog {
  width: min(620px, 100%);
}

.sources-list {
  display: grid;
  gap: 8px;
  padding: 16px;
  overflow-y: auto;
}

.sources-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  color: var(--c-ink);
  text-decoration: none;
}

.sources-list a:hover,
.sources-list a:focus-visible {
  border-color: var(--c-muted);
  background: var(--c-page);
  outline: none;
}

.sources-list bdi {
  color: var(--c-strong);
  font-family: Arial, sans-serif;
  font-weight: bold;
}

.account-dialog {
  max-width: 440px;
}

.account-panel {
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 24px;
  text-align: center;
}

.account-panel[hidden] {
  display: none;
}

.account-panel p {
  margin: 0;
  color: var(--c-muted);
  line-height: 1.8;
}

.account-google-button {
  min-height: 44px;
}

.account-profile img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.account-profile > div:not(.account-actions) {
  display: grid;
  gap: 3px;
}

.account-profile small {
  direction: ltr;
  color: var(--c-muted);
  font-family: Arial, sans-serif;
}

.account-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.account-actions button {
  min-width: 96px;
  padding: 9px 16px;
  border: 1px solid var(--c-line-warm);
  border-radius: 9px;
  font: inherit;
  cursor: pointer;
}

.account-cancel-button {
  color: var(--c-ink);
  background: var(--c-surface);
}

.account-signout-button {
  border-color: var(--c-danger) !important;
  color: var(--c-surface);
  background: var(--c-danger);
}

.account-status {
  min-height: 1.5em;
  margin: 0;
  padding: 0 24px 18px;
  color: var(--c-danger);
  font-size: .84rem;
  text-align: center;
}

.md-top {
  position: relative;
  padding: 0 30px;
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, .05);
}

.md-top .icon {
  transition: all 0.1s ease-in 0s;
  position: relative;
  line-height: 50px;
  width: 50px;
  height: 50px;
  display: inline-block;
  cursor: pointer;
  text-align: center;
}

.md-top .icon svg {
  display: inline-block;
  width: 32px;
  height: 32px;
  vertical-align: middle;
}

.md-top .icon:hover {
  background: var(--c-mint);
}

.md-top .icon:hover:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--c-strong);
  right: 0;
  bottom: 0;
}

.home-hero {
  max-width: 900px;
  margin: 50px auto 25px;
  text-align: center;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 24px auto;
  flex-wrap: wrap;
}

.stat-card {
  min-width: 120px;
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--c-page);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.stat-card strong {
  display: block;
  font-size: 1.8em;
  color: #126092;
}

.cnt {
  box-sizing: border-box;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 60px;
  overflow: hidden;
  font-size: 1.3em;
  line-height: 1.5em;
}

.sfehrest {
  padding: 30px;
  background: var(--c-mint);
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

.sfehrest > a > div {
  margin-left: 3px;
  width: 135px;
  display: inline-block;
  color: var(--c-ink);
}

.sfehrest > a:hover > div,
.sfehrest > .slt > div {
  background: #3a8bbb;
  border-radius: 7px;
  color: #000;
}

.sfehrest > a > div > span:first-child {
  color: var(--c-surface);
  display: inline-block;
  border-radius: 50%;
  background: var(--c-line);
  font-size: 0.92em;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  vertical-align: middle;
  margin-right: 5px;
}

.sfehrest > a > div > span:first-child + span {
  line-height: 38px;
  margin-right: 3px;
  font-size: 1.1em;
  vertical-align: middle;
}

.sfehrest.ayeh {
  text-align: center;
  min-height: 70vh;
}

.sfehrest.ayeh > a > div {
  width: auto;
  margin: 7px 1px;
}

.sfehrest.ayeh > .n > div > span:first-child {
  background: var(--c-line-warm);
}

.sfehrest.ayeh > a:hover > div > span:first-child,
.sfehrest.ayeh > .slt > div > span:first-child {
  background: unset;
}

.sfehrest.ayeh > a > div > span:first-child {
  background: #92c6d7;
  font-size: 1em;
  width: 42px;
  height: 42px;
  line-height: 42px;
}

.sfehrest .o {
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 21px;
}

.sfehrest .o span {
  background-image: linear-gradient(to bottom, rgba(var(--c-ink-rgb), 0.6) 50%, rgba(0, 0, 0, 0) 50%);
  background-repeat: repeat-x;
  background-size: 2px 5px;
  background-position: 0 1.3em;
}

.ayah-grid a.n {
  opacity: 0.45;
}

.lt-hadis {
  box-sizing: border-box;
  max-width: 900px;
  margin: 40px auto;
  overflow: hidden;
  font-size: 1.3em;
}

.lt-hadis h1,
.cnt h1 {
  font-size: 1.7em;
  text-align: center;
  word-spacing: -0.05em;
  letter-spacing: -0.005em;
  margin-bottom: 40px;
}

.lt-hadis h2 {
  font-size: 1.5em;
  text-align: center;
  word-spacing: -0.05em;
  letter-spacing: -0.005em;
  margin-top: 40px;
  margin-bottom: 14px;
}

.r-hadis {
  padding: 19px;
}

.r-hadis.odd {
  background: var(--c-page);
}

.ar-hadis,
.ar-hadis p,
.r-ayeh .ar,
.r-ayeh .ar p,
.cnt .ar {
  font-family: quran;
}

.ar-hadis,
.r-ayeh .ar {
  font-size: 1.1em;
}

.fa-hadis,
.r-ayeh .fa {
  font-size: 1.04em;
}

.fa-hadis a {
  background-image: linear-gradient(to bottom, rgba(4, 84, 152, 0.7) 50%, rgba(0, 0, 0, 0) 50%);
  background-repeat: repeat-x;
  background-size: 2px .1em;
  background-position: 0 1.1em;
  color: #0345a8;
}

.r-ayeh {
  position: relative;
  padding: 14px;
  margin: 19px 0;
  border-radius: 7px;
  color: #0d1218;
  background: var(--c-page);
  border: 1px solid var(--c-mint);
  border-right: 4px solid #a5c3d4;
  box-sizing: border-box;
  box-shadow: 0 1px 12px rgba(0, 0, 0, .06), 0 1px 6px rgba(0, 0, 0, .06);
}

.r-ayeh .ar span {
  display: inline-block;
  background: #a5c3d4;
  line-height: 43px;
  width: 36px;
  text-align: center;
  border-radius: 50%;
  font-size: 0.85em;
  font-family: quran;
  height: 36px;
  color: var(--c-surface);
}

.addr {
  color: var(--c-muted);
  margin-bottom: 10px;
}

.addr .num {
  color: var(--c-surface);
  background: #45a5bf;
  border-radius: 50%;
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  margin-left: 8px;
}

.addr .s {
  display: inline-block;
}

.ketab {
  color: var(--c-muted);
  margin-top: 10px;
  font-size: 0.9em;
}

.ketab .o {
  display: inline-block;
}

.ketab .o:before {
  content: '-';
  line-height: 23px;
  margin-left: 5px;
  margin-right: 7px;
}

.source-list {
  margin-top: 8px;
}

.source-list span {
  display: inline-block;
  margin-left: 8px;
}

.empty-message {
  text-align: center;
  color: var(--c-muted);
  margin: 32px auto;
}

.local-footer {
  text-align: center;
  color: var(--c-muted);
  font-size: 0.9em;
  margin: 40px auto;
}

.local-footer a {
  color: var(--c-accent);
  direction: ltr;
  unicode-bidi: embed;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ayah-layout > .menu {
  display: none;
}

.ayah-layout {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--c-page);
}

@media (orientation: landscape) and (pointer: coarse) {
  html:has(body.ayah-layout) {
    height: var(--visible-shell-height, 100svh);
    overflow: hidden;
  }

  .ayah-layout {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    box-sizing: border-box;
    width: 100%;
    height: var(--visible-shell-height, 100svh);
    max-height: var(--visible-shell-height, 100svh);
    overflow: hidden;
  }
}

@media (orientation: landscape) and (pointer: coarse) and (max-height: 560px) {
  .ayah-view {
    --mushaf-header-height: 34px;
    --mushaf-chrome-height: 34px;
    --mushaf-footer-height: 16px;
    --mushaf-chrome-stack-gap: 4px;
    --mushaf-chrome-edge: 4px;
    --mushaf-chrome-control: 24px;
  }

  .mushaf-slide-view-ayah-text {
    font-size: clamp(2.05rem, 6.2vmax, 3.05rem);
  }

  html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-repeat,
  html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-ayah-navigation {
    padding: 7px;
  }
}

.ayah-page {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  margin-top: 0;
  padding: 0;
  overflow: hidden;
  background: var(--c-page);
}

.ayah-toolbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-height: 44px;
  margin-bottom: 2px;
  padding: 2px 12px;
  direction: rtl;
}

.toolbar-menu {
  position: relative;
  display: inline-block;
}

.toolbar-menu.is-open {
  z-index: 90;
}

.toolbar-popover {
  position: absolute;
  top: calc(100% - 3px);
  right: 7px;
  z-index: 120;
  min-width: 245px;
  padding: 7px;
  border: 1px solid #d8e0e5;
  border-radius: 8px;
  background: var(--c-surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity .12s ease, transform .12s ease, visibility .12s ease;
}

.toolbar-menu.is-open .toolbar-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toolbar-popover button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 5px;
  color: var(--c-ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  line-height: 1.55;
  text-align: start;
}

.toolbar-popover button:hover,
.toolbar-popover button:focus,
.toolbar-popover button.is-active,
.toolbar-popover button[aria-current="page"] {
  color: var(--c-accent);
  background: var(--c-mint);
  outline: none;
}

.settings-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  touch-action: manipulation;
}

.settings-trigger:hover,
.settings-trigger:focus {
  color: var(--c-accent);
  border-color: var(--c-strong);
  background: var(--c-mint);
  outline: none;
}

.settings-trigger .view-menu-icon {
  width: calc(var(--mushaf-chrome-control, 22px) * .7);
  height: calc(var(--mushaf-chrome-control, 22px) * .7);
  margin: 0;
}

.settings-menu .settings-popover {
  top: calc(100% + 2px);
  right: auto;
  left: 0;
}

.settings-popover {
  box-sizing: border-box;
  width: min(380px, calc(100vw - 24px));
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  padding: 8px;
  border: 1px solid rgba(var(--c-accent-rgb), .14);
  border-radius: 12px;
  background: var(--c-page);
  box-shadow: 0 18px 46px rgba(var(--c-ink-rgb), .18);
  font-size: .88rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.settings-group {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--c-line);
  border-radius: 9px;
  background: rgba(var(--c-surface-rgb), .88);
}

.settings-group--wide {
  grid-column: 1 / -1;
}

.settings-group h2 {
  margin: 0 0 6px;
  color: var(--c-muted);
  font-size: .72em;
  font-weight: 700;
  letter-spacing: .02em;
}

.settings-sources {
  padding: 0;
  border: 0;
  background: transparent;
}

.settings-account {
  padding: 0;
  overflow: hidden;
  border-color: rgba(var(--c-strong-rgb), .22);
  background: linear-gradient(135deg, var(--c-mint), var(--c-paper));
}

.toolbar-popover .settings-account-button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 6px 9px;
  border: 0;
  border-radius: 11px;
  color: var(--c-accent);
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-align: start;
}

.toolbar-popover .settings-account-button:hover,
.toolbar-popover .settings-account-button:focus-visible {
  background: rgba(var(--c-mint-rgb), .7);
  outline: 3px solid rgba(var(--c-strong-rgb), .12);
}

.settings-account-icon {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--c-surface);
  background: var(--c-strong);
  place-items: center;
}

.settings-account-button:disabled {
  cursor: wait;
  opacity: .55;
}

.settings-account-button[data-state="signed-in"] .account-icon--out,
.settings-account-button .account-icon--in {
  display: none;
}

.settings-account-button[data-state="signed-in"] .account-icon--in {
  display: block;
}

.toolbar-popover .settings-sources-button {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--c-line);
  border-radius: 7px;
  color: var(--c-accent);
  background: var(--c-page);
  font: inherit;
  font-weight: bold;
}

.settings-select,
.recitation-repeat-setting select {
  box-sizing: border-box;
  width: 100%;
  min-height: 36px;
  padding: 5px 8px;
  border: 1px solid var(--c-line);
  border-radius: 9px;
  color: var(--c-ink);
  background: var(--c-surface);
  font: inherit;
}

.settings-select:focus,
.recitation-repeat-setting select:focus {
  border-color: var(--c-strong);
  outline: 3px solid rgba(var(--c-strong-rgb), .12);
}

.slide-backdrop-picker {
  display: grid;
  gap: 4px;
  max-height: 196px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.toolbar-popover .slide-backdrop-option {
  display: block;
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  color: var(--c-ink);
  background: var(--c-surface);
  font: inherit;
  font-size: .82rem;
  line-height: 1.35;
  text-align: start;
}

.toolbar-popover .slide-backdrop-option:hover,
.toolbar-popover .slide-backdrop-option:focus-visible {
  border-color: var(--c-strong);
  background: var(--c-mint);
  outline: none;
}

.toolbar-popover .slide-backdrop-option.is-selected {
  border-color: var(--c-strong);
  color: var(--c-accent);
  background: var(--c-mint);
  font-weight: 700;
}

.language-code-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.language-code-options button {
  display: grid;
  min-height: 44px;
  padding: 8px 4px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  color: var(--c-ink);
  background: var(--c-surface);
  box-shadow: 0 1px 4px rgba(var(--c-ink-rgb), .04);
  cursor: pointer;
  place-items: center;
  font-family: Tahoma, Arial, sans-serif;
}

.language-code-options button:hover,
.language-code-options button:focus-visible {
  border-color: var(--c-strong);
  outline: 3px solid rgba(var(--c-strong-rgb), .12);
}

.language-code-options button.is-selected {
  border-color: var(--c-strong);
  color: var(--c-accent);
  background: var(--c-mint);
  box-shadow: inset 0 0 0 1px var(--c-strong);
  font-weight: 700;
}

.language-code {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
}

.settings-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.toolbar-popover .settings-options button {
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--c-line);
  text-align: start;
}

.settings-options span,
.settings-options small {
  display: block;
}

.settings-options span {
  margin-bottom: 4px;
  font-weight: bold;
}

.settings-options small {
  color: var(--c-muted);
  font-size: .76em;
  line-height: 1.5;
}

.tafseer-menu {
  min-width: 220px;
}

.ayah-view {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--c-page);
  direction: rtl;
  --mushaf-header-height: clamp(40px, 6.5dvh, 52px);
  --mushaf-chrome-height: 42px;
  --mushaf-chrome-unit: var(--mushaf-chrome-height);
  --mushaf-footer-height: clamp(25px, 4.48dvh, 36.4px);
  --mushaf-chrome-stack-gap: clamp(8px, 2.2dvh, 16px);
  --mushaf-chrome-edge: clamp(4px, 1.1dvh, 8px);
  --mushaf-chrome-control: clamp(
    20px,
    min(
      calc(var(--mushaf-header-height) * .72),
      calc((var(--mushaf-page-width, 24rem) - 36px) / 8)
    ),
    38px
  );
  --mushaf-chrome-gap: clamp(2px, calc(var(--mushaf-chrome-control) * .16), 6px);
}

.spa-route-pending .ayah-view {
  visibility: hidden;
}

.ayah-view-track {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  align-items: start;
  direction: rtl;
}

.single-column-pagination {
  position: relative;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  direction: ltr;
}

.single-column-settings-menu {
  position: absolute;
  top: 4px;
  left: 12px;
  direction: rtl;
}

.single-column-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-line-warm);
  cursor: pointer;
  transition: width .16s ease, border-radius .16s ease, background .16s ease;
}

.single-column-dot:hover,
.single-column-dot:focus {
  background: var(--c-muted);
  outline: 2px solid rgba(var(--c-strong-rgb), .2);
  outline-offset: 3px;
}

.single-column-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--c-strong);
}

.mushaf-stage {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 0;
  direction: rtl;
}

.mushaf-stage.is-continuous-scroll {
  display: flex;
  flex-direction: column;
  height: var(--mushaf-viewport-height, auto);
  overflow: hidden;
  overscroll-behavior-y: contain;
}

.mushaf-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  touch-action: pan-y;
}

.mushaf-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.mushaf-stage-footer,
.column-stage-footer {
  position: relative;
  flex: 0 0 var(--mushaf-footer-height, 22px);
  box-sizing: border-box;
  height: var(--mushaf-footer-height, 22px);
  min-height: var(--mushaf-footer-height, 22px);
  overflow: visible;
  background: var(--c-chrome);
  border-top: 1px solid var(--c-line-warm);
  pointer-events: auto;
}

.mushaf-reading-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
  align-items: center;
  box-sizing: border-box;
  height: 100%;
  padding: 0 10px;
  gap: 4px;
  direction: ltr;
  font-size: clamp(11px, calc(var(--mushaf-page-width, 390px) * .04), 20px);
}

.mushaf-juz-progress,
.mushaf-audio-progress,
.mushaf-surah-progress {
  display: flex;
  align-items: center;
  gap: 3px;
}

.mushaf-juz-progress {
  flex: 0 0 auto;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  white-space: nowrap;
  line-height: 1.2;
  cursor: pointer;
}

.mushaf-audio-progress {
  justify-self: center;
  min-width: 0;
  width: 100%;
  max-width: 120px;
  direction: ltr;
}

.mushaf-audio-progress-track {
  display: block;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-accent) 16%, var(--c-chrome));
}

.mushaf-audio-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--c-accent);
}

.mushaf-surah-progress {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  min-width: 0;
  direction: ltr;
}

.mushaf-surah-progress-value {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--c-muted);
  background: transparent;
  cursor: pointer;
  font-family: Nasim, Tahoma, sans-serif;
  font-size: 1em;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.mushaf-surah-progress-value:hover,
.mushaf-surah-progress-value:focus-visible {
  color: var(--c-accent);
  outline: none;
}

.mushaf-ayah-progress-popover {
  position: absolute;
  z-index: 100;
  right: auto;
  bottom: calc(100% + 8px);
  left: 0;
  box-sizing: border-box;
  width: min(260px, calc(100% - 16px));
  max-height: min(220px, 42%);
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: var(--c-surface);
  box-shadow: 0 12px 28px rgba(var(--c-ink-rgb), .16);
  direction: rtl;
}

.mushaf-ayah-progress-popover[hidden] {
  display: none;
}

.mushaf-ayah-progress-popover .surah-dialog-ayah-title {
  margin-bottom: 8px;
}

.mushaf-ayah-progress-popover .mushaf-ayah-slider-value {
  position: static;
  min-width: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  transform: none;
}

.mushaf-stop-at-popover {
  width: min(440px, calc(100% - 16px));
  max-height: min(560px, 82vh);
  padding: 10px 12px;
  overflow: auto;
  color: var(--c-ink);
  background: var(--c-paper);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 15px;
  isolation: isolate;
}

.mushaf-stop-at-popover .surah-dialog-ayah-title {
  margin-bottom: 8px;
  color: var(--c-ink);
  font-size: .9em;
}

.mushaf-stop-at-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, .9fr);
  gap: 8px;
  direction: rtl;
}

.mushaf-stop-at-scope-title,
.mushaf-stop-at-column-title {
  margin-bottom: 6px;
  color: var(--c-muted);
  font-size: .78em;
}

.mushaf-stop-at-scope {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.mushaf-stop-at-custom-fields {
  display: grid;
  gap: 10px;
}

.mushaf-stop-at-custom-fields[hidden] {
  display: none;
}

.mushaf-stop-at-row {
  display: grid;
  gap: 6px;
}

.mushaf-stop-at-row-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.mushaf-stop-at-time-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.mushaf-stop-at-time-fields[hidden] {
  display: none;
}

.mushaf-stop-at-select {
  box-sizing: border-box;
  width: 100%;
  min-height: 34px;
  padding: 4px 6px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  color: var(--c-ink);
  background: var(--c-surface);
  font: inherit;
  font-size: .9em;
}

.mushaf-stop-at-select:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.mushaf-picker-select {
  position: relative;
}

.mushaf-picker-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
}

.mushaf-picker-select-trigger {
  text-align: inherit;
}

.mushaf-picker-select-menu {
  position: absolute;
  z-index: 4;
  top: calc(100% + 2px);
  right: 0;
  left: 0;
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  background: var(--c-paper);
  box-shadow: 0 8px 20px rgba(var(--c-ink-rgb), .12);
}

.mushaf-picker-select-option {
  display: block;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  color: var(--c-ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: .9em;
  text-align: inherit;
}

.mushaf-picker-select-option.is-selected,
.mushaf-picker-select-option:hover,
.mushaf-picker-select-option:focus-visible {
  color: var(--c-accent);
  background: rgba(var(--c-mint-rgb), .78);
  outline: none;
}

.mushaf-picker-select[hidden] {
  display: none;
}

.mushaf-stop-at-customs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.mushaf-stop-at-custom {
  box-sizing: border-box;
  flex: 1 1 0;
  min-height: 32px;
  padding: 4px 6px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  color: inherit;
  background: var(--c-paper);
  font: inherit;
}

.mushaf-stop-at-custom[hidden] {
  display: none;
}

.mushaf-stop-at-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mushaf-stop-at-option {
  width: 100%;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  font: inherit;
  font-size: .9em;
  line-height: 1.25;
  text-align: center;
}

.mushaf-stop-at-enable {
  margin-bottom: 8px;
}

.mushaf-stop-at-columns.is-disabled {
  pointer-events: none;
  opacity: .55;
}

.mushaf-stop-at-option.is-selected,
.mushaf-stop-at-option[aria-pressed="true"] {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: rgba(var(--c-mint-rgb), .78);
}

.mushaf-stop-at-silence {
  margin-top: 8px;
}

.mushaf-stop-at-silence .mushaf-slide-view-option-switch {
  margin-top: 0;
}

.mushaf-stop-at-silence-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.mushaf-stop-at-silence-modes[hidden] {
  display: none;
}

.mushaf-stop-at-measure {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: .82em;
}

.mushaf-stop-at-measure[hidden] {
  display: none;
}

.mushaf-stop-at-measure input {
  box-sizing: border-box;
  width: 4.8em;
  min-height: 28px;
  padding: 4px 6px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  color: inherit;
  background: var(--c-paper);
  font: inherit;
}

.mushaf-slide-view-options-popover {
  width: min(520px, calc(100% - 16px));
  max-height: min(480px, 72vh);
  color: var(--c-ink);
  background: var(--c-paper);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 15px;
  direction: inherit;
}

.mushaf-slide-view-option-list,
.mushaf-slide-view-option-kinds {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mushaf-slide-view-option-list {
  margin-bottom: 10px;
}

.mushaf-slide-view-content-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  direction: rtl;
}

.mushaf-slide-view-content-row .mushaf-stop-at-column-title {
  flex: 0 0 auto;
  margin-bottom: 0;
  white-space: nowrap;
}

.mushaf-slide-view-content-choices {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  direction: rtl;
}

.mushaf-slide-view-content-choices .mushaf-stop-at-option {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  padding: 6px 8px;
  font-size: .82em;
  white-space: nowrap;
}

.mushaf-slide-view-option-switch.recitation-continuous-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  margin-top: 0;
  padding: 6px 8px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  font: inherit;
  text-align: start;
}

.mushaf-juz-progress-title {
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.mushaf-juz-progress-ticks {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 2px;
  margin-top: 8px;
  direction: ltr;
}

.mushaf-juz-progress-tick {
  box-sizing: border-box;
  min-width: 0;
  padding: 5px 0 3px;
  border: 0;
  border-radius: 5px;
  color: var(--c-muted);
  background: transparent;
  cursor: pointer;
  font: 700 .58em/1.15 Nasim, Tahoma, sans-serif;
  white-space: nowrap;
}

.mushaf-juz-progress-tick.is-current {
  color: var(--c-accent);
  background: rgba(var(--c-accent-rgb), .12);
}

.mushaf-pages {
  display: flex;
  direction: rtl;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
}

.mushaf-stage.is-continuous-scroll .mushaf-pages {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: min(100%, var(--mushaf-page-width, 100%));
  margin: 0 auto;
  padding-bottom: var(--mushaf-scroll-end-pad, 67vh);
}

.mushaf-stage-chrome {
  position: sticky;
  z-index: 12;
  top: 0;
  box-sizing: border-box;
  width: min(100%, var(--mushaf-page-width, 100%));
  margin: 0 auto;
  background: var(--c-surface);
}

.mushaf-stage-chrome:empty {
  display: none;
}

.mushaf-app-header {
  position: relative;
  z-index: 80;
  box-sizing: border-box;
  display: grid;
  grid-template-areas: "actions location brand";
  grid-template-columns:
    minmax(0, auto)
    minmax(0, 1fr)
    minmax(0, auto);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: calc(100% - 16px);
  height: var(--mushaf-header-height);
  min-height: var(--mushaf-header-height);
  margin: var(--mushaf-chrome-edge) auto 0;
  padding: 0 8px;
  font-size: calc(var(--mushaf-header-height) * .28);
  overflow: visible;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: var(--c-paper);
  direction: ltr;
}

.mushaf-app-header-actions {
  position: relative;
  z-index: 81;
  grid-area: actions;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--mushaf-chrome-gap, 6px);
  min-width: 0;
  justify-self: start;
}

.mushaf-app-header-actions button,
.mushaf-tooltip-controls button {
  touch-action: manipulation;
  -webkit-touch-callout: none;
  user-select: none;
}

.mushaf-app-header-actions .recitation-play-button {
  width: var(--mushaf-chrome-control, 36px);
  height: var(--mushaf-chrome-control, 36px);
}

.mushaf-app-header-actions .recitation-icon {
  width: 78%;
  height: 78%;
}

.mushaf-app-header-actions .settings-trigger {
  width: var(--mushaf-chrome-control, 36px);
  height: var(--mushaf-chrome-control, 36px);
  border-radius: 50%;
}

.mushaf-app-header-actions .view-menu-icon {
  width: calc(var(--mushaf-chrome-control, 36px) * .52);
  height: calc(var(--mushaf-chrome-control, 36px) * .52);
}

.mushaf-app-header-actions .mushaf-tooltip-repeat,
.mushaf-app-header-actions .mushaf-tooltip-ayah-navigation,
.mushaf-app-header-actions .mushaf-header-focus {
  display: grid;
  box-sizing: border-box;
  width: var(--mushaf-chrome-control, 36px);
  height: var(--mushaf-chrome-control, 36px);
  padding: calc(var(--mushaf-chrome-control, 36px) * .18);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  place-items: center;
}

.mushaf-app-header-actions .mushaf-tooltip-repeat {
  --repeat-knockout: var(--c-surface);
}

html:not([data-single-column-chrome="parked"]) .ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions .mushaf-tooltip-repeat,
html:not([data-single-column-chrome="parked"]) .ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions .mushaf-tooltip-ayah-navigation,
html:not([data-single-column-chrome="parked"])[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions .mushaf-tooltip-repeat,
html:not([data-single-column-chrome="parked"])[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions .mushaf-tooltip-ayah-navigation {
  display: none;
}

.mushaf-app-header-actions .mushaf-tooltip-repeat svg,
.mushaf-app-header-actions .mushaf-tooltip-ayah-navigation svg,
.mushaf-app-header-actions .mushaf-header-focus svg {
  width: calc(var(--mushaf-chrome-control, 36px) * .52);
  height: calc(var(--mushaf-chrome-control, 36px) * .52);
  pointer-events: none;
}

.mushaf-app-header-actions .mushaf-tooltip-repeat svg {
  width: calc(var(--mushaf-chrome-control, 36px) * .62);
  height: calc(var(--mushaf-chrome-control, 36px) * .62);
}

.mushaf-app-header-actions .content-dock-button {
  display: none;
  box-sizing: border-box;
  width: var(--mushaf-chrome-control, 36px);
  height: var(--mushaf-chrome-control, 36px);
  padding: calc(var(--mushaf-chrome-control, 36px) * .18);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-ink);
  background: var(--c-surface);
}

.mushaf-app-header-actions .content-dock-button svg,
.mushaf-app-header-actions .content-fullscreen-button svg,
.mushaf-app-header-actions .content-slide-view-button svg {
  width: calc(var(--mushaf-chrome-control, 36px) * .52);
  height: calc(var(--mushaf-chrome-control, 36px) * .52);
}

.mushaf-app-header-actions .mushaf-header-focus {
  display: none;
  box-sizing: border-box;
  width: var(--mushaf-chrome-control, 36px);
  height: var(--mushaf-chrome-control, 36px);
  padding: calc(var(--mushaf-chrome-control, 36px) * .18);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  place-items: center;
}

.mushaf-app-header-actions .mushaf-header-focus.is-focus-on {
  color: var(--c-accent);
  border-color: rgba(var(--c-accent-rgb), .42);
  background: rgba(var(--c-mint-rgb), .82);
}

.mushaf-app-header-actions .content-fullscreen-button,
.mushaf-app-header-actions .content-slide-view-button {
  display: inline-grid;
  box-sizing: border-box;
  width: var(--mushaf-chrome-control, 36px);
  height: var(--mushaf-chrome-control, 36px);
  padding: calc(var(--mushaf-chrome-control, 36px) * .18);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  place-items: center;
}

.mushaf-app-header-actions .content-fullscreen-button:hover,
.mushaf-app-header-actions .content-fullscreen-button:focus-visible,
.mushaf-app-header-actions .content-slide-view-button:hover,
.mushaf-app-header-actions .content-slide-view-button:focus-visible,
.mushaf-app-header-actions .mushaf-tooltip-repeat:hover,
.mushaf-app-header-actions .mushaf-tooltip-repeat:focus-visible,
.mushaf-app-header-actions .mushaf-tooltip-ayah-navigation:hover,
.mushaf-app-header-actions .mushaf-tooltip-ayah-navigation:focus-visible {
  border-color: var(--c-strong);
  color: var(--c-accent);
  background: var(--c-mint);
  outline: none;
}

.mushaf-app-header-actions .content-slide-view-button.is-active {
  color: var(--c-accent);
  border-color: rgba(var(--c-accent-rgb), .42);
  background: rgba(var(--c-mint-rgb), .82);
}

.mushaf-app-header-actions .content-fullscreen-button .fullscreen-icon--exit,
.content-fullscreen-button .fullscreen-icon--exit {
  display: none;
}

.mushaf-app-header-actions .content-fullscreen-button.is-active .fullscreen-icon--enter,
.content-fullscreen-button.is-active .fullscreen-icon--enter {
  display: none;
}

.mushaf-app-header-actions .content-fullscreen-button.is-active .fullscreen-icon--exit,
.content-fullscreen-button.is-active .fullscreen-icon--exit {
  display: block;
}

.mushaf-app-header-spacer {
  grid-area: location;
  min-width: 0;
}

.mushaf-app-header-brand {
  position: relative;
  z-index: 1;
  grid-area: brand;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 8px;
  min-width: 0;
  max-width: min(48vw, 280px);
  overflow: hidden;
  direction: rtl;
}

.mushaf-app-header-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  color: var(--c-accent);
  line-height: 1.2;
}

.mushaf-app-header-kicker {
  display: none;
  color: var(--c-muted);
  font-size: .62em;
  font-weight: 600;
  letter-spacing: .04em;
}

.mushaf-app-header-title {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--c-accent);
  font-size: .82em;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mushaf-app-header-mark {
  flex: 0 0 auto;
  width: calc(var(--mushaf-header-height) * .42);
  height: calc(var(--mushaf-header-height) * .42);
  color: var(--c-strong);
}

.mushaf-stage-meta {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  background: var(--c-chrome);
  border-bottom: 1px solid var(--c-line-warm);
}

.mushaf-stage-meta[hidden] {
  display: none;
}

.content-tabs-row > .content-toolbar-actions > .recitation-play-button,
.content-tabs-row > .content-toolbar-actions > .content-settings-menu,
.content-tabs-row > .content-toolbar-actions > .content-fullscreen-button,
.content-tabs-row > .content-toolbar-actions > .content-slide-view-button {
  display: none;
}

.mushaf-stage .mushaf-page > .mushaf-page-meta {
  display: none;
}

.mushaf-stage-meta > .mushaf-page-meta {
  border-bottom: 0;
}

.mushaf-stage.is-continuous-scroll .mushaf-page > .mushaf-page-meta .mushaf-page-arrow {
  display: none;
}

.mushaf-page {
  flex: 1 1 0;
  min-width: 0;
}

.mushaf-stage.is-continuous-scroll .mushaf-page {
  flex: 0 0 auto;
  width: 100%;
}

.mushaf-page-meta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 8px 5px;
  color: var(--c-muted);
  background: var(--c-chrome);
  border-bottom: 1px solid var(--c-line-warm);
  font-size: .8em;
  white-space: nowrap;
  direction: rtl;
}

.mushaf-page-juz {
  min-width: 0;
  justify-self: start;
  text-align: right;
}

.mushaf-juz-trigger {
  min-width: 0;
  padding: 2px 3px;
  border: 0;
  border-radius: 3px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}

.mushaf-juz-trigger:hover,
.mushaf-juz-trigger:focus-visible {
  color: var(--c-accent);
  background: var(--c-mint);
  outline: none;
}

.mushaf-page-navigation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 2px;
}

.mushaf-page-number {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 3px;
  text-align: center;
}

.mushaf-page-trigger {
  border: 0;
  border-radius: 4px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.mushaf-page-trigger:hover,
.mushaf-page-trigger:focus-visible {
  color: var(--c-accent);
  background: var(--c-mint);
  outline: none;
}

.mushaf-page-input {
  box-sizing: border-box;
  width: 3.4ch;
  min-width: 34px;
  padding: 2px 1px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 3px;
  outline: none;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: center;
}

.mushaf-page-input:hover {
  background: var(--c-chrome);
}

.mushaf-page-input:focus {
  border-bottom-color: var(--c-strong);
  background: var(--c-surface);
  box-shadow: 0 0 0 2px rgba(var(--c-strong-rgb), .18);
}

.mushaf-page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--c-muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.mushaf-page-arrow:hover,
.mushaf-page-arrow:focus {
  color: var(--c-accent);
  background: var(--c-mint);
  outline: none;
}

.mushaf-page-arrow:disabled {
  opacity: .28;
  cursor: default;
}

.mushaf-page-arrow svg {
  width: 19px;
  height: 19px;
  pointer-events: none;
}

.mushaf-page-arrow--next svg {
  transform: rotate(180deg);
}

.mushaf-page-surah {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.mushaf-surah-trigger,
.mushaf-ayah-trigger {
  min-width: 0;
  padding: 2px 3px;
  border: 0;
  border-radius: 3px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}

.mushaf-surah-trigger {
  overflow: hidden;
  text-overflow: ellipsis;
}

.mushaf-surah-number {
  font-family: Nasim, Tahoma, sans-serif;
}

.mushaf-surah-trigger:hover,
.mushaf-surah-trigger:focus-visible,
.mushaf-ayah-trigger:hover,
.mushaf-ayah-trigger:focus-visible {
  color: var(--c-accent);
  background: var(--c-mint);
  outline: none;
}

.mushaf-surah-ayah-separator {
  flex: 0 0 auto;
}

.mushaf-ayah-trigger {
  flex: 0 0 auto;
  min-width: 27px;
  text-align: center;
}

.mushaf-ayah-selector {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  width: min(520px, calc(100vw - 40px));
  padding: 30px 14px 12px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  background: var(--c-surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
  direction: ltr;
}

.mushaf-ayah-selector[hidden] {
  display: none;
}

.mushaf-ayah-endpoint {
  min-width: 2ch;
  color: var(--c-muted);
  text-align: center;
}

.mushaf-ayah-slider-control {
  position: relative;
  min-width: 0;
}

.mushaf-ayah-slider-value {
  position: absolute;
  top: -25px;
  min-width: 30px;
  padding: 2px 5px;
  border-radius: 999px;
  color: var(--c-surface);
  background: var(--c-strong);
  font-size: .82em;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.mushaf-ayah-slider {
  display: block;
  width: 100%;
  height: 24px;
  margin: 0;
  accent-color: var(--c-strong);
  cursor: grab;
}

.mushaf-ayah-slider:active {
  cursor: grabbing;
}

.mushaf-ayah-slider:focus {
  outline: 2px solid rgba(var(--c-strong-rgb), .24);
  outline-offset: 3px;
}

.mushaf-canvas {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--c-line-warm);
  border-radius: 5px;
  background: var(--c-paper);
  box-shadow: 0 7px 24px rgba(var(--c-ink-rgb), .12);
}

.mushaf-page-image,
.mushaf-ayah-overlay {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.mushaf-page-image {
  z-index: 1;
  object-fit: contain;
}

.mushaf-focus-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  color: rgb(var(--c-paper-rgb));
  pointer-events: none;
}

.mushaf-focus-veil-dim {
  fill: currentColor;
  fill-opacity: .8;
}

.mushaf-ayah-overlay {
  z-index: 3;
  pointer-events: none;
}

.mushaf-ayah-polygon {
  fill: transparent;
  stroke: transparent;
  stroke-width: .8;
  cursor: pointer;
  pointer-events: all;
  transition: fill .12s ease, stroke .12s ease, stroke-width .12s ease;
}

.mushaf-ayah-polygon:hover,
.mushaf-ayah-polygon:focus {
  fill: rgba(245, 198, 66, .03);
  stroke: rgba(var(--c-danger-rgb), .075);
  outline: none;
}

.mushaf-ayah-polygon.is-selected {
  fill: rgba(var(--c-strong-rgb), .04);
  stroke: rgba(var(--c-accent-rgb), .13);
  stroke-width: .9;
}

html.is-mushaf-focus .mushaf-ayah-polygon.is-selected {
  fill: rgba(var(--c-accent-rgb), .03);
  stroke: rgba(var(--c-accent-rgb), .2);
  stroke-width: 1.15;
}

.mushaf-page.has-translation-tooltip .mushaf-canvas {
  overflow: visible;
}

.mushaf-translation-tooltip {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 90%;
  height: auto;
  min-height: 0;
  max-width: none;
  max-height: none;
  --mushaf-chrome-control: clamp(
    18px,
    calc((var(--mushaf-page-width, 24rem) * .9 - 56px) / 8.4),
    31px
  );
  --mushaf-chrome-gap: clamp(2px, calc(var(--mushaf-chrome-control) * .13), 4px);
  padding: 8px 10px 9px;
  border: 1px solid rgba(var(--c-strong-rgb), .22);
  border-radius: 12px;
  color: var(--c-ink);
  background: rgba(var(--c-surface-rgb), .98);
  box-shadow:
    0 12px 30px rgba(var(--c-ink-rgb), .14),
    0 2px 6px rgba(var(--c-ink-rgb), .08);
  font-family: Tahoma, Arial, sans-serif;
  font-size: clamp(
      .95rem,
      calc(var(--mushaf-page-width, 24rem) * .038),
      1.8rem
    );
  line-height: 1.65;
  text-align: start;
  transform: translateX(-50%);
  pointer-events: none;
  animation: mushaf-tooltip-in .18s ease-out;
}

.mushaf-tooltip-header button,
.mushaf-tooltip-tabs,
.mushaf-tooltip-body {
  pointer-events: auto;
}

.mushaf-tooltip-header button {
  box-sizing: border-box;
  flex: 0 0 auto;
}

.mushaf-translation-tooltip.is-box-locked {
  max-height: none;
}

.mushaf-translation-tooltip.is-settings-open {
  width: 90%;
}

.mushaf-translation-tooltip::before {
  position: absolute;
  top: -6px;
  left: var(--mushaf-tooltip-arrow-left, 50%);
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(var(--c-strong-rgb), .28);
  border-left: 1px solid rgba(var(--c-strong-rgb), .28);
  background: rgba(var(--c-surface-rgb), .97);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.mushaf-translation-tooltip p {
  margin: 0;
}

.mushaf-tooltip-header {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--mushaf-chrome-gap, 8px);
  min-width: 0;
  min-height: var(--mushaf-chrome-control, 31px);
  margin-bottom: 6px;
  direction: ltr;
}

.mushaf-tooltip-header-start,
.mushaf-tooltip-header-end,
.mushaf-tooltip-window-controls,
.mushaf-tooltip-controls {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--mushaf-chrome-gap, 4px);
  min-width: 0;
}

.mushaf-tooltip-header-start {
  justify-self: start;
}

.mushaf-tooltip-controls {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  justify-self: center;
  direction: ltr;
}

.mushaf-tooltip-header-end,
.mushaf-tooltip-window-controls {
  justify-self: end;
  direction: ltr;
}

.mushaf-tooltip-heading {
  flex: 1 1 auto;
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 7px;
  direction: rtl;
}

.mushaf-tooltip-tabs {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(var(--c-strong-rgb), .12);
  border-radius: 9px;
  background: rgba(var(--c-mint-rgb), .58);
  direction: rtl;
}

.mushaf-tooltip-tab-navigation { position: relative; flex: 0 0 auto; }
.mushaf-tooltip-expand-footer { display: flex; flex: 0 0 auto; justify-content: flex-start; margin-top: 4px; direction: ltr; pointer-events: auto; }
.mushaf-tooltip-expand { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--c-line); border-radius: 7px; background: var(--c-paper); color: var(--c-accent); cursor: pointer; }
.mushaf-tooltip-expand svg { width: 17px; height: 17px; }
.mushaf-tooltip-expand:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.mushaf-translation-tooltip[data-tooltip-expanded="true"] .mushaf-tooltip-body { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.mushaf-translation-tooltip[data-tooltip-expanded="true"] .mushaf-tooltip-tab-panel:not([hidden]) { min-height: 0; max-height: none; }
html[data-slide-view="open"] .mushaf-tooltip-expand-footer { display: none; }
html[data-slide-view="open"][data-slide-view-tab="translation"] [data-slide-translation-picker] { cursor: pointer; }

.mushaf-tooltip-tab {
  min-width: 0;
  min-height: 30px;
  padding: 4px 3px;
  border: 0;
  border-radius: 7px;
  color: var(--c-muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: .8em;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mushaf-tooltip-tab:hover,
.mushaf-tooltip-tab:focus-visible {
  color: var(--c-accent);
  background: rgba(var(--c-surface-rgb), .62);
  outline: none;
}

.mushaf-tooltip-tab.is-active {
  color: var(--c-accent);
  background: var(--c-surface);
  box-shadow: 0 1px 4px rgba(var(--c-accent-rgb), .12);
  font-weight: 700;
}

.mushaf-tooltip-body {
  flex: 1 1 auto;
  min-height: calc(1.65em * 3);
  max-height: calc(1.65em * 6);
  margin-top: 6px;
  overflow: hidden;
}

.mushaf-tooltip-tab-panel {
  box-sizing: border-box;
  height: auto;
  min-height: calc(1.65em * 3);
  max-height: calc(1.65em * 6);
  padding: 1px 3px 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.mushaf-tooltip-tab-panel[hidden] {
  display: none;
}

.mushaf-translation-tooltip.is-box-locked .mushaf-tooltip-tab-panel:not([hidden]) {
  height: auto;
}

.mushaf-tooltip-source-row {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-height: var(--mushaf-chrome-control, 31px);
  margin: 0 -3px;
  padding: 2px 3px 8px;
  background: var(--c-surface);
  box-shadow: 0 10px 12px -6px var(--c-surface);
  direction: rtl;
}

.mushaf-tooltip-settings {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  width: var(--mushaf-chrome-control, 31px);
  height: var(--mushaf-chrome-control, 31px);
  padding: calc(var(--mushaf-chrome-control, 31px) * .16);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  place-items: center;
  touch-action: manipulation;
}

.mushaf-tooltip-controls {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  gap: var(--mushaf-chrome-gap, 4px);
  direction: ltr;
}

.mushaf-tooltip-repeat,
.mushaf-tooltip-focus,
.mushaf-tooltip-chrome {
  width: var(--mushaf-chrome-control, 31px);
  height: var(--mushaf-chrome-control, 31px);
}

.mushaf-tooltip-controls .mushaf-tooltip-recitation,
.ayah-view .mushaf-tooltip-controls .mushaf-tooltip-recitation.recitation-play-button {
  width: calc(var(--mushaf-chrome-control, 31px) * 1.16);
  height: calc(var(--mushaf-chrome-control, 31px) * 1.16);
}

.mushaf-tooltip-chrome {
  position: relative;
  display: grid;
  box-sizing: border-box;
  padding: calc(var(--mushaf-chrome-control, 31px) * .16);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  place-items: center;
}

.mushaf-tooltip-chrome svg {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.mushaf-tooltip-undock {
  flex: 0 0 auto;
}

.mushaf-tooltip-repeat {
  --repeat-knockout: var(--c-surface);
  position: relative;
  display: grid;
  box-sizing: border-box;
  padding: calc(var(--mushaf-chrome-control, 31px) * .16);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  place-items: center;
}

.mushaf-tooltip-section-repeat {
  touch-action: manipulation;
  -webkit-touch-callout: none;
  user-select: none;
}

.mushaf-tooltip-repeat:hover,
.mushaf-tooltip-repeat:focus-visible {
  --repeat-knockout: var(--c-mint);
  border-color: var(--c-strong);
  color: var(--c-accent);
  background: var(--c-mint);
  outline: none;
}

.mushaf-tooltip-repeat svg {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.mushaf-tooltip-repeat.is-repeat-off {
  opacity: .62;
}

.mushaf-tooltip-repeat-badge {
  position: absolute;
  inset: auto;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  width: auto;
  min-width: 1.2em;
  height: 1.2em;
  margin: 0;
  padding: 0 0.12em;
  border-radius: 999px;
  color: inherit;
  background: var(--repeat-knockout, var(--c-surface));
  font-size: 7.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  place-items: center;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.mushaf-tooltip-repeat-badge[hidden] {
  display: none;
}

.mushaf-tooltip-ayah-navigation {
  position: relative;
  display: grid;
  box-sizing: border-box;
  width: var(--mushaf-chrome-control, 31px);
  height: var(--mushaf-chrome-control, 31px);
  padding: calc(var(--mushaf-chrome-control, 31px) * .16);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-ink);
  background: var(--c-surface);
  box-shadow: none;
  cursor: pointer;
  place-items: center;
}

.mushaf-tooltip-ayah-navigation svg {
  pointer-events: none;
}

.mushaf-tooltip-undock {
  position: relative;
  display: grid;
  box-sizing: border-box;
  width: var(--mushaf-chrome-control, 31px);
  height: var(--mushaf-chrome-control, 31px);
  padding: calc(var(--mushaf-chrome-control, 31px) * .16);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  place-items: center;
}

.mushaf-tooltip-chrome:hover,
.mushaf-tooltip-chrome:focus-visible,
.mushaf-tooltip-undock:hover,
.mushaf-tooltip-undock:focus-visible {
  border-color: var(--c-strong);
  color: var(--c-accent);
  background: var(--c-mint);
  outline: none;
}

.mushaf-tooltip-undock svg {
  width: 100%;
  height: 100%;
}

.mushaf-tooltip-focus {
  position: relative;
  display: grid;
  box-sizing: border-box;
  padding: calc(var(--mushaf-chrome-control, 31px) * .16);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  place-items: center;
}

.mushaf-tooltip-focus:hover,
.mushaf-tooltip-focus:focus-visible,
.mushaf-header-focus:hover,
.mushaf-header-focus:focus-visible {
  border-color: var(--c-strong);
  color: var(--c-accent);
  background: var(--c-mint);
  outline: none;
}

.mushaf-tooltip-focus svg {
  width: 100%;
  height: 100%;
}

.mushaf-tooltip-focus.is-focus-on {
  color: var(--c-accent);
  border-color: rgba(var(--c-accent-rgb), .42);
  background: rgba(var(--c-mint-rgb), .85);
}

.mushaf-tooltip-ayah-navigation:hover,
.mushaf-tooltip-ayah-navigation:focus-visible {
  border-color: var(--c-strong);
  color: var(--c-accent);
  background: var(--c-mint);
  outline: none;
}

.mushaf-tooltip-ayah-navigation:disabled {
  cursor: default;
  opacity: .42;
}

.mushaf-tooltip-controls .mushaf-tooltip-recitation.is-loading::after {
  inset: 2px;
  border-width: 2px;
}

.mushaf-tooltip-controls .mushaf-tooltip-recitation .recitation-progress {
  width: 100%;
  height: 100%;
}

.mushaf-tooltip-controls .mushaf-tooltip-recitation .recitation-icon {
  width: 78%;
  height: 78%;
}

.mushaf-tooltip-ayah-navigation svg {
  width: 100%;
  height: 100%;
}

.mushaf-tooltip-ayah-navigation.is-next svg {
  transform: rotate(180deg);
}

.mushaf-tooltip-close {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  width: var(--mushaf-chrome-control, 31px);
  height: var(--mushaf-chrome-control, 31px);
  padding: calc(var(--mushaf-chrome-control, 31px) * .19);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  place-items: center;
}

.mushaf-tooltip-close:hover,
.mushaf-tooltip-close:focus-visible {
  color: var(--c-danger);
  border-color: rgba(var(--c-danger-rgb), .3);
  background: var(--c-danger-wash);
  outline: none;
}

.mushaf-tooltip-close svg {
  width: 100%;
  height: 100%;
}

.mushaf-tooltip-settings:hover,
.mushaf-tooltip-settings:focus-visible,
.mushaf-tooltip-settings[aria-expanded="true"] {
  border-color: var(--c-strong);
  color: var(--c-accent);
  background: var(--c-mint);
  outline: none;
}

.mushaf-tooltip-settings svg {
  width: 100%;
  height: 100%;
}

.mushaf-tooltip-source-title {
  flex: 1 1 0;
  display: block;
  min-width: 0;
  margin: 0;
  padding: 5px 2px;
  color: var(--c-muted);
  font-size: .86em;
  font-weight: 500;
  line-height: 1.35;
  text-align: start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mushaf-tooltip-source-title[hidden] {
  display: none;
}

.mushaf-tooltip-source-dialog {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 24px 16px;
  background: rgba(var(--c-ink-rgb), .42);
}

.mushaf-tooltip-source-dialog[hidden] {
  display: none;
}

.mushaf-tooltip-source-dialog-card {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: min(92vw, 420px);
  max-height: min(70vh, 520px);
  padding: 14px 14px 10px;
  border: 1px solid rgba(var(--c-strong-rgb), .22);
  border-radius: 14px;
  background: var(--c-surface);
  box-shadow: 0 16px 40px rgba(var(--c-ink-rgb), .18);
  font-size: .95rem;
  line-height: 1.45;
  overflow: auto; scrollbar-width: none;
}
.mushaf-tooltip-source-dialog-card > :not(.mushaf-tooltip-options) { flex: 0 0 auto; }

.mushaf-tooltip-source-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  direction: rtl;
}

.mushaf-tooltip-source-dialog-title {
  margin: 0;
  color: var(--c-accent);
  font-size: 1em;
  font-weight: 700;
}

.mushaf-tooltip-source-dialog-close {
  display: grid;
  width: 31px;
  height: 31px;
  padding: 5px;
  border: 1px solid rgba(var(--c-strong-rgb), .2);
  border-radius: 9px;
  color: var(--c-danger);
  background: rgba(var(--c-surface-rgb), .72);
  cursor: pointer;
  place-items: center;
}

.mushaf-tooltip-source-dialog-close svg {
  width: 15px;
  height: 15px;
}

.mushaf-tooltip-source-dialog .mushaf-tooltip-options {
  flex: 1 1 auto;
  max-height: none;
}

.mushaf-tooltip-menu {
  margin: 0;
}

.mushaf-tooltip-search {
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(var(--c-strong-rgb), .24);
  border-radius: 9px;
  color: var(--c-ink);
  background: var(--c-surface);
  font: inherit;
}

.mushaf-tooltip-search:focus {
  border-color: rgba(var(--c-strong-rgb), .55);
  outline: 2px solid rgba(var(--c-strong-rgb), .1);
}

.mushaf-tooltip-options {
  display: grid;
  max-height: 123px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mushaf-tooltip-option {
  box-sizing: border-box;
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 41px;
  padding: 7px 5px;
  border-bottom: 1px solid rgba(var(--c-strong-rgb), .08);
  cursor: pointer;
}

.mushaf-tooltip-option[hidden] {
  display: none !important;
}

.mushaf-tooltip-option:hover {
  background: rgba(var(--c-mint-rgb), .42);
}

.mushaf-tooltip-option input {
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--c-strong);
}

.mushaf-tooltip-option bdi {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  unicode-bidi: plaintext;
  white-space: nowrap;
}

.mushaf-tooltip-panel-content > p {
  margin: 0;
  white-space: pre-line;
}

.mushaf-tooltip-local-commentary,
.mushaf-tooltip-local-commentary.lt-hadis {
  box-sizing: border-box;
  max-width: none;
  margin: 0;
  overflow: visible;
  font-size: 1em;
  white-space: normal;
}

.mushaf-tooltip-local-commentary h1,
.mushaf-tooltip-local-commentary h2 {
  margin: 0 0 8px;
}

.mushaf-tooltip-status {
  display: block;
  margin: 0;
  padding: 12px 8px;
  color: var(--c-muted);
  font-size: .86em;
  text-align: center;
}

.mushaf-tooltip-status.is-error {
  color: var(--c-danger);
}

.mushaf-tooltip-entry {
  padding: 8px 3px 10px;
  border-bottom: 1px solid rgba(var(--c-strong-rgb), .1);
}

.mushaf-tooltip-entry:last-child {
  border-bottom: 0;
}

.mushaf-tooltip-entry h3 {
  margin: 0 0 2px;
  color: var(--c-accent);
  font-size: .86em;
  line-height: 1.45;
}

.mushaf-tooltip-entry small {
  display: block;
  margin-bottom: 4px;
  color: var(--c-muted);
  font-size: .7em;
}

.mushaf-tooltip-entry p {
  margin: 0;
  white-space: pre-line;
}

.mushaf-tooltip-word-gloss {
  padding: 2px 0;
  gap: 5px;
}

.mushaf-tooltip-word-gloss .word-gloss-token {
  min-width: 54px;
  padding: 4px 7px 5px;
  border-radius: 8px;
  box-shadow: none;
}

.mushaf-tooltip-word-gloss .word-gloss-arabic {
  font-size: 1.08em;
}

.mushaf-tooltip-word-gloss .word-gloss-translation {
  max-width: 8em;
  font-size: .72em;
}

.mushaf-tooltip-word-gloss .word-gloss-skeleton {
  width: 62px;
  height: 46px;
}

.mushaf-tooltip-local-commentary .local-translation-box {
  display: none;
}

.mushaf-tooltip-local-commentary .noor-local-hadith + .noor-local-hadith {
  margin-top: 12px;
  padding-top: 12px;
}

.mushaf-tooltip-local-commentary .noor-source-card,
.mushaf-tooltip-hadith .noor-source-card {
  margin: 0 0 8px;
}

.mushaf-tooltip-local-commentary .noor-source-card:last-child,
.mushaf-tooltip-hadith .noor-source-card:last-child {
  margin-bottom: 0;
}

.mushaf-tooltip-local-commentary .noor-source-card-heading,
.mushaf-tooltip-hadith .noor-source-card-heading {
  padding: 8px 10px;
}

.mushaf-tooltip-local-commentary .noor-source-card-body,
.mushaf-tooltip-hadith .noor-source-card-body {
  padding: 8px 10px 10px;
}

.mushaf-tooltip-hadith {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.mushaf-tooltip-hadith.has-selection-nav {
  padding-left: 0;
}

.mushaf-orientation-hint {
  position: fixed;
  z-index: 95;
  right: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: max-content;
  max-width: min(88vw, 420px);
  padding: 10px 14px;
  border: 1px solid rgba(var(--c-strong-rgb), .26);
  border-radius: 10px;
  color: var(--c-accent);
  background: rgba(var(--c-paper-rgb), .98);
  box-shadow: 0 8px 26px rgba(var(--c-ink-rgb), .18);
  font-size: .86rem;
  line-height: 1.5;
  text-align: center;
  transform: translateX(50%);
}

.mushaf-tooltip-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.mushaf-tooltip-entry-header h3 {
  min-width: 0;
  margin: 0;
}

.mushaf-tooltip-hadith-toolbar {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  justify-content: flex-end;
  min-height: 29px;
  padding: 2px 0 4px;
  background: rgba(var(--c-surface-rgb), .98);
}

.mushaf-tooltip-hadith-toolbar .noor-translate-button,
.mushaf-tooltip-entry-header .noor-translate-button {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  padding: 5px;
}

@keyframes mushaf-tooltip-in {
  from {
    opacity: 0;
    transform: translate(-50%, -4px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.mushaf-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  background: var(--c-paper);
  font-size: .9em;
  transition: opacity .16s ease, visibility .16s ease;
}

.mushaf-page.is-loaded .mushaf-loading {
  opacity: 0;
  visibility: hidden;
}

.mushaf-error {
  margin: 14px auto;
  padding: 10px 12px;
  border-radius: 5px;
  color: var(--c-danger);
  background: var(--c-danger-wash);
  text-align: center;
}

.app-notice {
  position: fixed;
  z-index: 11000;
  left: 50%;
  bottom: 18px;
  box-sizing: border-box;
  width: min(28rem, calc(100vw - 24px));
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--c-paper);
  background: var(--c-ink);
  box-shadow: 0 10px 28px rgba(var(--c-ink-rgb), .28);
  text-align: center;
  transform: translateX(-50%);
}

.app-notice[hidden] {
  display: none;
}

.tafseer-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  font-size: 1em;
}

/* Reader sizes apply to the requested content, independently of Quran and UI. */
html:not([data-slide-view="open"]) .tafseer-pane [data-noor-resource] > [data-noor-results],
html:not([data-slide-view="open"]) .mushaf-translation-tooltip [data-tooltip-source-content],
html:not([data-slide-view="open"]) .mushaf-translation-tooltip [data-tooltip-hadith] > [data-noor-results] {
  font-size: calc(1em * var(--content-font-scale, 1));
}

.content-ayah-sticky {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px 4px;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-paper);
  text-align: center;
}

.content-ayah-sticky[hidden] {
  display: none;
}

.content-ayah-sticky-title {
  margin: 0;
  color: var(--c-accent);
  font-size: .92em;
  font-weight: 700;
  line-height: 1.3;
  direction: rtl;
}

.content-tabs-row {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  min-height: 50px;
  border-bottom: 2px solid var(--c-line);
  background: var(--c-surface);
  direction: rtl;
}

.content-tabs {
  flex: 0 1 auto;
  display: flex;
  min-height: 50px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.content-tabs::-webkit-scrollbar {
  display: none;
}

.content-toolbar-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
  padding-inline-end: 8px;
  direction: rtl;
}

.content-dock-button {
  display: none;
  box-sizing: border-box;
  width: 38px;
  height: 36px;
  padding: 7px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  color: var(--c-strong);
  background: var(--c-surface);
  cursor: pointer;
  place-items: center;
}

.content-dock-button:hover,
.content-dock-button:focus-visible {
  color: var(--c-accent);
  border-color: var(--c-strong);
  background: var(--c-mint);
  outline: none;
}

.content-dock-button svg {
  width: 100%;
  height: 100%;
}

.mushaf-app-header-actions .content-settings-menu {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  direction: rtl;
}

.recitation-play-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-accent);
  background: var(--c-surface);
  box-shadow: none;
  cursor: pointer;
}

.account-status-button {
  position: relative;
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid rgba(var(--c-strong-rgb), .46);
  border-radius: 50%;
  color: var(--c-strong);
  background: var(--c-paper);
  cursor: pointer;
  place-items: center;
}

.account-status-button:hover,
.account-status-button:focus-visible {
  border-color: var(--c-strong);
  background: var(--c-mint);
  outline: 3px solid rgba(var(--c-strong-rgb), .16);
}

.account-status-button[data-state="signed-in"] {
  color: var(--c-surface);
  background: var(--c-strong);
  box-shadow: 0 2px 8px rgba(var(--c-strong-rgb), .18);
}

.account-status-button:disabled {
  cursor: wait;
  opacity: .5;
}

.account-status-button.is-loading::after {
  position: absolute;
  inset: -4px;
  border: 2px solid rgba(var(--c-strong-rgb), .16);
  border-top-color: var(--c-strong);
  border-radius: 50%;
  content: "";
  animation: recitation-loading-ring .8s linear infinite;
}

.account-icon {
  width: 23px;
  height: 23px;
}

.account-icon--in,
.account-status-button[data-state="signed-in"] .account-icon--out {
  display: none;
}

.account-status-button[data-state="signed-in"] .account-icon--in {
  display: block;
}

.recitation-play-button:hover,
.recitation-play-button:focus-visible {
  border-color: var(--c-strong);
  background: var(--c-mint);
  color: var(--c-accent);
  outline: none;
}

.recitation-play-button:disabled {
  cursor: wait;
  opacity: .48;
}

.recitation-play-button.is-loading:disabled {
  opacity: 1;
}

.recitation-play-button.is-loading:after {
  position: absolute;
  inset: 2px;
  border: 2px solid rgba(var(--c-strong-rgb), .18);
  border-top-color: var(--c-strong);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  animation: recitation-loading-ring .8s linear infinite;
}

.recitation-play-button.is-loading .recitation-icon {
  opacity: .42;
}

@keyframes recitation-loading-ring {
  to {
    transform: rotate(360deg);
  }
}

.recitation-progress {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 1;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.recitation-progress-track,
.recitation-progress-value {
  fill: none;
  stroke-width: 2.6;
}

.recitation-progress-track {
  stroke: transparent;
}

.recitation-progress-value {
  stroke: var(--c-accent);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: var(--recitation-progress-offset, 1);
  transition: stroke .14s ease;
}

.recitation-play-button.is-progressing .recitation-progress {
  opacity: 1;
}

.recitation-play-button.is-silencing .recitation-progress-value {
  stroke: var(--c-strong);
}

.recitation-icon {
  position: relative;
  z-index: 1;
  width: 78%;
  height: 78%;
  pointer-events: none;
}

.recitation-icon--pause {
  display: none;
}

.recitation-play-button.is-playing .recitation-icon--play {
  display: none;
}

.recitation-play-button.is-playing .recitation-icon--pause {
  display: block;
}

.reciter-selector {
  position: relative;
}

.toolbar-popover .reciter-selector-trigger {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 36px;
  padding: 6px 30px 6px 9px;
  overflow: hidden;
  border: 1px solid var(--c-line);
  color: var(--c-ink);
  background: var(--c-surface);
  line-height: 1.55;
  white-space: nowrap;
  text-overflow: ellipsis;
  writing-mode: horizontal-tb;
}

.reciter-selector-trigger:before {
  content: '';
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--c-muted);
  border-bottom: 2px solid var(--c-muted);
  transform: translateY(-70%) rotate(45deg);
}

.reciter-selector-trigger[aria-expanded="true"]:before {
  transform: translateY(-20%) rotate(225deg);
}

.reciter-selector-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(var(--c-ink-rgb), .38);
}

.reciter-selector-popover {
  position: fixed;
  z-index: 10051;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: min(28rem, calc(100vw - 32px));
  max-height: min(72vh, 560px);
  margin-top: 0;
  padding: 12px;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: var(--c-paper);
  box-shadow: 0 18px 48px rgba(var(--c-ink-rgb), .28);
  transform: translate(-50%, -50%);
}

.reciter-selector-popover[hidden] {
  display: none;
}

.reciter-selector-option {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  min-height: 40px;
  padding: 7px 9px;
  border: 0;
  border-bottom: 1px solid var(--c-mint);
  border-radius: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: start;
}

.reciter-selector-option[hidden] {
  display: none;
}

.reciter-selector-option:last-child {
  border-bottom: 0;
}

.reciter-selector-option.is-selected {
  color: var(--c-accent);
  background: var(--c-mint);
  font-weight: bold;
}

.reciter-selector-search {
  box-sizing: border-box;
  width: 100%;
  min-height: 34px;
  margin-bottom: 5px;
  padding: 5px 8px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  color: var(--c-ink);
  background: var(--c-surface);
  font: inherit;
  direction: rtl;
}

.reciter-selector-search:focus {
  border-color: var(--c-strong);
  outline: 3px solid rgba(var(--c-strong-rgb), .13);
}

.reciter-selector-options {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.reciter-selector-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 0 0 auto;
  gap: 6px;
  margin-block: 5px 8px;
}

.reciter-selector-filters label {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
  font-size: max(12px, .8em);
  text-align: start;
}

.reciter-selector-filters select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 5px 6px;
  border: 1px solid var(--c-line);
  border-radius: 7px;
  background: var(--c-paper);
  color: var(--c-ink);
  font: inherit;
  direction: inherit;
}

.reciter-selector-group[hidden] { display: none; }
.reciter-selector-group-title {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  margin: 0;
  padding: 8px 7px 5px;
  background: var(--c-paper);
  color: var(--c-ink);
  font-size: 1em;
  font-weight: 600;
  text-align: start;
}

.toolbar-popover .reciter-selector-option {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 40px;
  border-bottom: 1px solid var(--c-mint);
  border-radius: 0;
}

.toolbar-popover .reciter-selector-option[hidden],
.noor-selector-option[hidden],
[data-surah-option][hidden] {
  display: none;
}

.toolbar-popover .reciter-selector-option:last-child {
  border-bottom: 0;
}

.toolbar-popover .reciter-selector-option.is-selected {
  color: var(--c-accent);
  background: var(--c-mint);
  font-weight: bold;
}

.reciter-selector-option small {
  color: var(--c-muted);
  font-size: .76em;
  font-weight: normal;
}

.toolbar-popover .recitation-continuous-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  margin-top: 5px;
  padding: 5px 8px;
  border: 1px solid var(--c-line);
  border-radius: 7px;
  color: var(--c-ink);
  background: var(--c-surface);
}

.toolbar-popover .settings-binary-toggle {
  width: 100%;
  text-align: start;
}

.recitation-continuous-toggle > small {
  margin-right: auto;
  color: var(--c-muted);
  font-size: .76em;
}

.recitation-switch {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 19px;
  border-radius: 10px;
  background: var(--c-strong);
  transition: background-color .16s ease;
  margin-inline-start: auto;
}

.recitation-switch-knob {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--c-surface);
  box-shadow: 0 1px 4px rgba(var(--c-ink-rgb), .28);
  transition: transform .16s ease;
}

.recitation-continuous-toggle[aria-checked="false"] .recitation-switch {
  background: var(--c-line-warm);
}

.recitation-continuous-toggle[aria-checked="false"] .recitation-switch-knob {
  transform: translateX(-15px);
}

.toolbar-popover .recitation-continuous-toggle:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.recitation-repeat-setting {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  padding: 5px 8px;
  border: 1px solid var(--c-line);
  border-radius: 5px;
  color: var(--c-ink);
  font-size: .85em;
  font-weight: normal;
}

.recitation-repeat-setting > span {
  flex: 1 1 auto;
}

.recitation-repeat-setting select {
  flex: 0 0 auto;
  width: 64px;
  min-height: 30px;
}

.recitation-repeat-setting select[data-recitation-stop] {
  width: auto;
  min-width: 88px;
  max-width: 52%;
}

.recitation-repeat-setting input[data-recitation-stop-value] {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 72px;
  min-height: 30px;
  padding: 4px 6px;
}

.font-size-setting > span { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
[data-quran-font-setting].is-unavailable > span { opacity: .5; }

.font-size-stepper {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  direction: ltr;
}

.font-size-stepper-button {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  font: inherit;
  font-size: 1.2em;
  line-height: 1;
  touch-action: manipulation;
}

.font-size-stepper-button:hover,
.font-size-stepper-button:focus-visible {
  border-color: var(--c-strong);
  outline: 3px solid rgba(var(--c-strong-rgb), .12);
}

.font-size-stepper-button:disabled {
  cursor: default;
  opacity: .38;
}

.font-size-stepper-value {
  min-width: 1.6em;
  color: var(--c-accent);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: center;
}

.page-fit-setting {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  font-size: .85em;
  font-weight: normal;
}

.page-fit-setting[hidden] {
  display: none;
}

.page-fit-setting > span {
  flex: 1 1 auto;
}

.page-fit-setting .settings-select {
  flex: 0 1 180px;
  width: auto;
  min-width: 0;
  min-height: 32px;
}

.recitation-status {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 18px;
  margin: 6px 2px 0;
  color: var(--c-muted);
  font-size: .72em;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.recitation-status .api-status-message {
  flex: 1 1 12rem;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  writing-mode: horizontal-tb;
}

.toolbar-popover .recitation-status .api-retry-button {
  width: 30px;
  min-width: 30px;
  max-width: 30px;
  flex: 0 0 30px;
}

.recitation-status.is-error {
  color: var(--c-danger);
}

.pull-refresh-indicator {
  position: fixed;
  top: max(8px, env(safe-area-inset-top));
  left: 50%;
  z-index: 10020;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 4px 13px;
  border: 1px solid rgba(var(--c-accent-rgb), .18);
  border-radius: 22px;
  color: var(--c-accent);
  background: rgba(var(--c-surface-rgb), .96);
  box-shadow: 0 5px 18px rgba(var(--c-ink-rgb), .18);
  font-size: .78em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 18px));
  transition: opacity .14s ease, transform .14s ease;
}

.pull-refresh-indicator.is-visible,
.pull-refresh-indicator.is-refreshing {
  opacity: 1;
  transform: translate(
    -50%,
    calc(min(var(--pull-distance, 0px), 72px) - 54px)
  );
}

.pull-refresh-icon {
  width: 18px;
  height: 18px;
  border: 2px solid var(--c-line);
  border-top-color: var(--c-strong);
  border-radius: 50%;
  transition: transform .16s ease;
}

.pull-refresh-indicator.is-ready .pull-refresh-icon {
  transform: rotate(180deg);
}

.pull-refresh-indicator.is-refreshing .pull-refresh-icon {
  animation: pull-refresh-spin .7s linear infinite;
}

@keyframes pull-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.content-tab {
  position: relative;
  flex: 0 0 auto;
  min-width: 96px;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  color: var(--c-muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: .8em;
}

.content-tab.is-active {
  color: var(--c-accent);
  font-weight: bold;
}

.content-tab.is-active:after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: var(--c-strong);
}

.tafseer-tab-panel {
  box-sizing: border-box;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0 12px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  direction: rtl;
  touch-action: pan-y;
}

.tafseer-tab-panel[hidden] {
  display: none;
}

.tafseer-tab-panel .lt-hadis h1 {
  margin-top: 0;
}

.tafseer-source-row {
  display: flex;
  justify-content: flex-start;
  padding: 0 110px 12px;
  padding-inline-end: 0;
}

.tafseer-source-menu {
  min-width: min(280px, 100%);
}

.tafseer-source-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 5px 12px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  color: var(--c-ink);
  background: var(--c-surface);
  cursor: pointer;
  font: inherit;
  text-align: start;
}

.tafseer-source-trigger:hover,
.tafseer-source-trigger:focus {
  color: var(--c-accent);
  border-color: var(--c-strong);
  background: var(--c-mint);
  outline: none;
}

.tafseer-source-trigger svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.tafseer-source-menu .toolbar-popover {
  top: calc(100% + 4px);
  right: 0;
}

.local-translation-box {
  background: var(--c-page);
  border-color: #c8e5ef;
  border-right-color: #6eb6cf;
}

.local-translation-label {
  width: max-content;
  margin: -4px 0 8px;
  color: #19627b;
  font-size: .82em;
  font-weight: bold;
}

.noor-resource {
  box-sizing: border-box;
  width: min(100%, 920px);
  margin: 24px auto 48px;
  padding: 0 4px;
  color: var(--c-ink);
  direction: rtl;
}

.content-ayah-heading {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px 15px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
  background: var(--c-page);
  font-family: var(--font-quran-arabic);
  font-size: 1.35em;
  line-height: 1.9;
  text-align: center;
  direction: ltr;
}

.content-ayah-heading p {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  direction: rtl;
}

.word-by-word-section {
  display: none;
}

.ayah-view[data-ayah-view="single-column"] .word-by-word-section,
html[data-mushaf-view="single-column"] .ayah-view .word-by-word-section {
  display: block;
}

.word-by-word-panel-heading {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 10px;
  width: min(100%, 820px);
  margin: 0 auto 8px;
  direction: ltr;
}

.word-by-word-panel-heading h2 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: var(--c-muted);
  font-family: Tahoma, Arial, sans-serif;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  direction: rtl;
}

.word-by-word {
  display: flex;
  direction: rtl;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 7px;
}

.word-by-word[hidden] {
  display: none;
}

.word-by-word--panel {
  width: min(100%, 820px);
  margin: 0 auto 22px;
  padding: 12px;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--c-paper), var(--c-page));
  box-shadow: 0 4px 16px rgba(var(--c-accent-rgb), .06);
}

.word-gloss-token {
  display: inline-grid;
  min-width: 64px;
  padding: 7px 9px 8px;
  border: 1px solid rgba(var(--c-strong-rgb), .12);
  border-radius: 10px;
  background: rgba(var(--c-surface-rgb), .9);
  box-shadow: 0 1px 4px rgba(var(--c-ink-rgb), .04);
  text-align: center;
  place-items: center;
}

.word-gloss-arabic {
  color: var(--c-ink);
  font-family: var(--font-quran-arabic);
  font-size: 1.22rem;
  line-height: 1.65;
}

.word-gloss-translation {
  max-width: 150px;
  color: var(--c-muted);
  font-family: Tahoma, Arial, sans-serif;
  font-size: .76rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
}

.word-gloss-skeleton {
  width: clamp(62px, 12%, 104px);
  height: 58px;
  border-radius: 10px;
  background:
    linear-gradient(100deg, transparent 30%, rgba(var(--c-surface-rgb), .82) 48%, transparent 66%),
    var(--c-mint);
  background-size: 220% 100%;
  animation: word-gloss-shimmer 1.15s ease-in-out infinite;
}

.word-gloss-retry {
  display: inline-grid;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 1px solid var(--c-strong);
  border-radius: 50%;
  color: var(--c-accent);
  background: var(--c-surface);
  cursor: pointer;
  place-items: center;
}

.word-gloss-retry:hover,
.word-gloss-retry:focus-visible {
  color: var(--c-surface);
  background: var(--c-strong);
  outline: 3px solid rgba(var(--c-strong-rgb), .14);
}

.word-gloss-retry svg {
  width: 100%;
  height: 100%;
}

.word-by-word--tooltip {
  max-height: min(180px, 25vh);
  margin-top: 10px;
  padding-top: 0;
  overflow-y: auto;
  gap: 5px;
  overscroll-behavior: contain;
}

.word-gloss-tooltip-title {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 3px;
  color: var(--c-muted);
  font-family: Tahoma, Arial, sans-serif;
  font-size: .64rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.word-gloss-tooltip-title::before,
.word-gloss-tooltip-title::after {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(var(--c-strong-rgb), .22)
  );
  content: "";
}

.word-gloss-tooltip-title::after {
  background: linear-gradient(
    to left,
    transparent,
    rgba(var(--c-strong-rgb), .22)
  );
}

.word-by-word--tooltip .word-gloss-token {
  min-width: 54px;
  padding: 4px 7px 5px;
  border-radius: 8px;
  box-shadow: none;
}

.word-by-word--tooltip .word-gloss-arabic {
  font-size: 1rem;
}

.word-by-word--tooltip .word-gloss-translation {
  max-width: 120px;
  font-size: .66rem;
}

.word-by-word--tooltip .word-gloss-skeleton {
  width: 62px;
  height: 46px;
}

@keyframes word-gloss-shimmer {
  to {
    background-position: -120% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .word-gloss-skeleton {
    animation: none;
  }
}

.content-ayah-source {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  color: var(--c-muted);
  font-family: Tahoma, sans-serif;
  font-size: .58em;
  line-height: 1.4;
  text-decoration: none;
  direction: rtl;
}

.content-ayah-source:hover,
.content-ayah-source:focus-visible {
  color: var(--c-accent);
  text-decoration: underline;
  outline: none;
}

.content-ayah-navigation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-accent);
  background: var(--c-surface);
  cursor: pointer;
  touch-action: manipulation;
}

.content-ayah-navigation--previous {
  grid-column: 3;
  grid-row: 1;
}

.content-ayah-navigation--next {
  grid-column: 1;
  grid-row: 1;
}

.content-ayah-navigation:hover,
.content-ayah-navigation:focus-visible {
  color: var(--c-accent);
  background: var(--c-mint);
  outline: 3px solid rgba(var(--c-strong-rgb), .14);
}

.content-ayah-navigation:disabled {
  cursor: default;
  opacity: .28;
}

.content-ayah-navigation svg {
  width: 27px;
  height: 27px;
}

@media screen and (max-width: 620px) {
  .content-ayah-heading {
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    gap: 6px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .content-ayah-navigation {
    width: 52px;
    height: 52px;
  }
}

.noor-resource--commentary {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
}

.noor-selector {
  position: relative;
  z-index: 12;
  width: min(100%, 560px);
  margin: 0 auto 8px;
}

.noor-selector-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 46px;
  padding: 8px 14px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  color: var(--c-ink);
  background: var(--c-surface);
  box-shadow: 0 2px 10px rgba(var(--c-ink-rgb), .06);
  cursor: pointer;
  font: inherit;
  text-align: start;
  touch-action: manipulation;
}

.noor-selector-trigger:hover,
.noor-selector-trigger:focus-visible {
  border-color: var(--c-strong);
  outline: 2px solid rgba(var(--c-strong-rgb), .16);
  outline-offset: 1px;
}

.noor-selector-title {
  font-weight: bold;
}

.noor-selector-count {
  flex: 0 0 auto;
  color: var(--c-muted);
  font-size: .78em;
}

.noor-selector-popover {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  box-sizing: border-box;
  max-height: min(62vh, 520px);
  padding: 10px;
  border: 1px solid var(--c-line);
  border-radius: 9px;
  background: var(--c-surface);
  box-shadow: 0 14px 40px rgba(var(--c-ink-rgb), .2);
}

.noor-selector-popover[hidden],
.noor-selector-option[hidden],
.noor-metadata[hidden] {
  display: none;
}

.noor-selector-search {
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  margin-bottom: 8px;
  padding: 7px 11px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  color: var(--c-ink);
  background: var(--c-paper);
  font: inherit;
  font-size: .88em;
  text-align: start;
}

.noor-selector-search:focus {
  border-color: var(--c-strong);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--c-strong-rgb), .12);
}

.noor-selector-options {
  max-height: min(50vh, 410px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.noor-selector-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 8px;
  border-radius: 5px;
  cursor: pointer;
  font-size: .84em;
  line-height: 1.65;
}

.noor-selector-option:hover {
  background: var(--c-mint);
}

.noor-selector-option.is-selected {
  background: var(--c-page);
}

.noor-selector-option.is-selection-boundary {
  margin-bottom: 10px;
  padding-bottom: 18px;
}

.noor-selector-option.is-selection-boundary:after {
  content: '';
  position: absolute;
  right: 8%;
  bottom: 4px;
  width: 84%;
  height: 1px;
  background: linear-gradient(
    to left,
    transparent,
    var(--c-muted) 18%,
    var(--c-muted) 82%,
    transparent
  );
}

.noor-selector-option input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 4px 0 0;
  accent-color: var(--c-strong);
}

.noor-selector-option-label {
  display: block;
  min-width: 0;
  unicode-bidi: isolate;
}

.noor-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 0;
  margin: 8px auto;
  color: var(--c-muted);
  font-size: .82em;
  text-align: center;
}

.noor-status.is-error {
  color: var(--c-danger);
}

.api-retry-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--c-strong);
  background: var(--c-surface);
  cursor: pointer;
}

.api-retry-button:hover,
.api-retry-button:focus-visible {
  background: var(--c-mint);
  outline: none;
}

.api-retry-button svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.noor-empty {
  margin: 28px auto;
  padding: 18px;
  border: 1px dashed var(--c-line);
  border-radius: 8px;
  color: var(--c-muted);
  background: var(--c-paper);
  font-size: .9em;
  text-align: center;
}

.noor-resource-heading {
  margin: 8px auto 24px;
  color: var(--c-ink);
  font-size: 1em;
  text-align: center;
}

[data-noor-controls]:empty {
  display: none;
}

[data-noor-resource="hadith"] {
  margin-top: 12px;
}

.noor-source-group {
  margin: 30px 0 42px;
  scroll-margin-top: 18px;
}

.noor-source-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 4px 18px;
  padding: 11px 14px;
  border: 1px solid rgba(var(--c-strong-rgb), .2);
  border-radius: 13px;
  color: var(--c-accent);
  background: linear-gradient(135deg, var(--c-mint), var(--c-mint));
  box-shadow:
    0 6px 18px rgba(var(--c-ink-rgb), .08),
    inset 3px 0 0 rgba(var(--c-strong-rgb), .34);
  font-size: 1em;
  text-align: center;
  cursor: pointer;
  list-style: none;
}

.noor-source-heading::-webkit-details-marker {
  display: none;
}

.noor-source-heading:before {
  content: '';
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-left: 3px;
  border-right: 2px solid var(--c-muted);
  border-bottom: 2px solid var(--c-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease;
}

.noor-source-group:not([open]) > .noor-source-heading {
  margin-bottom: 0;
}

.noor-source-group:not([open]) > .noor-source-heading:before {
  transform: rotate(135deg) translateY(-1px);
}

.noor-source-language,
.noor-source-name {
  unicode-bidi: isolate;
}

.noor-source-heading .noor-entry-info {
  margin-right: 2px;
}

.noor-local-info .noor-metadata {
  font-weight: normal;
}

.noor-metadata-value[href] {
  color: var(--c-accent);
  direction: ltr;
  unicode-bidi: isolate;
}

.noor-entry {
  position: relative;
  margin: 0 0 16px;
  padding: 16px 18px;
  border: 1px solid var(--c-line);
  border-radius: 9px;
  color: var(--c-ink);
  background: var(--c-surface);
  box-shadow: 0 2px 12px rgba(var(--c-ink-rgb), .055);
}

.noor-hadith-entry.noor-entry,
.noor-source-card.noor-entry {
  padding: 0;
  scroll-margin-top: 12px;
  background: var(--c-surface);
}

.noor-local-commentary[hidden] {
  display: none;
}

.noor-source-card-heading,
.noor-hadith-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--c-line-warm);
  color: var(--c-ink);
  background: var(--c-paper);
  cursor: pointer;
  list-style: none;
  direction: rtl;
  border-radius: 8px 8px 0 0;
}

.noor-source-card-heading::-webkit-details-marker,
.noor-source-card-heading::marker,
.noor-hadith-heading::-webkit-details-marker,
.noor-hadith-heading::marker {
  display: none;
  content: "";
}

.noor-source-card-copy,
.noor-hadith-heading-copy {
  flex: 1 1 auto;
  min-width: 0;
  text-align: start;
}

.noor-source-card-title,
.noor-hadith-index {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-accent);
  font-size: .95em;
  font-weight: 700;
  line-height: 1.45;
}

.noor-source-card-title:before,
.noor-hadith-index:before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--c-muted);
  border-bottom: 2px solid var(--c-muted);
  transform: rotate(45deg) translateY(-1px);
  transition: transform .16s ease;
}

.noor-source-card:not([open]) > .noor-source-card-heading .noor-source-card-title:before,
.noor-hadith-entry:not([open]) .noor-hadith-index:before {
  transform: rotate(135deg) translateY(-1px);
}

.noor-source-card:not([open]) > .noor-source-card-heading,
.noor-hadith-entry:not([open]) .noor-hadith-heading {
  border-bottom: 0;
  border-radius: 8px;
}

.noor-source-card-meta,
.noor-hadith-meta {
  margin-top: 3px;
  color: var(--c-muted);
  font-size: .82em;
  font-weight: 400;
  line-height: 1.55;
}

.noor-source-card-heading .noor-entry-actions,
.noor-hadith-heading .noor-entry-actions {
  margin-top: 1px;
}

.noor-source-card-body,
.noor-hadith-body {
  padding: 14px 18px 16px;
  background: var(--c-surface);
}

.noor-source-card-body .ar-hadis {
  margin: 0 0 10px;
}

.noor-source-card-body .fa-hadis {
  margin: 0;
}

.noor-source-card-body .noor-entry-content + .noor-entry-content,
.noor-source-card-body .noor-commentary-placeholder + .noor-entry-content,
.noor-source-card-body .noor-entry-content + .noor-commentary-placeholder,
.noor-source-card-body .noor-commentary-placeholder + .noor-commentary-placeholder {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--c-paper);
}

.noor-local-commentary > .noor-source-card-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 14px 18px 16px;
  overflow: visible;
}

.noor-local-hadith {
  color: var(--c-ink);
}

.noor-local-hadith + .noor-local-hadith {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 0;
  position: relative;
}

.noor-local-hadith + .noor-local-hadith::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(
    to left,
    transparent,
    var(--c-line) 18%,
    var(--c-line) 82%,
    transparent
  );
}

.noor-local-hadith-arabic {
  margin: 0 0 8px;
  color: inherit;
  font-size: inherit;
  line-height: 1.8;
}

.noor-local-hadith-index {
  color: inherit;
  font-weight: inherit;
}

.noor-local-hadith-arabic .ar-hadis {
  margin: 0;
  color: inherit;
  font-size: 1.1em;
}

.noor-local-hadith .fa-hadis {
  color: inherit;
}

.noor-local-hadith-source {
  display: block;
  margin: 8px 0 0;
  color: var(--c-muted);
  font-size: .86em;
  line-height: 1.65;
}

.noor-local-commentary > .noor-source-card-body > .noor-source-card {
  margin: 0;
}

.noor-sticky-chrome {
  position: sticky;
  z-index: 12;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 0 0 10px;
  padding: 8px 0 6px;
  background: var(--c-paper);
}

.noor-sticky-chrome .noor-selector {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* Scrollable source lens: native touch scrolling without a visible scrollbar. */
.noor-selection-nav {
  position: relative; z-index: 10; box-sizing: border-box;
  width: 94%; max-width: 94%; margin: 0 auto;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  border-radius: 999px; scroll-behavior: smooth;
  background: rgba(217, 230, 219, .38);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .9);
  pointer-events: auto;
}
.noor-selection-nav::-webkit-scrollbar { display: none; width: 0; height: 0; }

.noor-resource.has-selection-nav {
  padding-left: 0;
}

.noor-source-scroll-pad {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: 0;
  pointer-events: none;
  visibility: hidden;
}

.noor-selection-rail {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-sizing: border-box; width: max-content; min-width: 100%; padding: 9px 14px;
  direction: ltr;
}
.noor-selection-jump {
  display: grid; place-items: center; flex: 0 0 34px;
  width: 34px; height: 34px; padding: 0; border: 1px solid transparent;
  border-radius: 50%; color: var(--c-muted); background: transparent;
  cursor: pointer;
  font-family: inherit; font-size: .9em; line-height: 1; font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.noor-selection-jump.is-current, .noor-selection-jump[aria-current="true"] {
  transform: scale(1.22); color: var(--c-accent);
  border-color: rgba(255, 255, 255, .9);
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(224,242,230,.52));
  backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 3px 9px rgba(32,65,48,.18), inset 0 1px 2px #fff;
}
.noor-selection-jump:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .noor-selection-jump { transition: none; }
  .noor-selection-nav { scroll-behavior: auto; }
}

.noor-entry[dir="ltr"] {
  text-align: left;
}

.noor-entry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.noor-entry-title {
  margin: 0;
  color: var(--c-ink);
  font-size: .95em;
  line-height: 1.6;
}

.noor-entry-info {
  position: relative;
  flex: 0 0 auto;
}

.noor-entry-actions {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.noor-entry-actions[hidden],
.noor-translate-button[hidden] {
  display: none;
}

.noor-entry-actions .noor-entry-info {
  display: inline-flex;
}

.noor-translate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 4px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-accent);
  background: var(--c-surface);
  cursor: pointer;
}

.noor-translate-button:hover,
.noor-translate-button:focus {
  color: var(--c-accent);
  background: var(--c-page);
  outline: none;
}

.noor-translate-button svg {
  width: 18px;
  height: 18px;
}

.noor-translate-button.is-loading svg {
  animation: noor-translate-spin .8s linear infinite;
}

.noor-translate-button.is-translated {
  color: var(--c-surface);
  background: var(--c-muted);
}

@keyframes noor-translate-spin {
  to {
    transform: rotate(360deg);
  }
}

.noor-info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--c-muted);
  border-radius: 50%;
  color: var(--c-accent);
  background: var(--c-page);
  cursor: pointer;
  font: 700 15px/1 Georgia, serif;
}

.noor-info-button:hover,
.noor-info-button:focus-visible {
  color: var(--c-surface);
  background: var(--c-strong);
  outline: none;
}

.noor-metadata {
  position: absolute;
  z-index: 20;
  top: 32px;
  left: 0;
  box-sizing: border-box;
  width: min(360px, 80vw);
  padding: 11px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  color: var(--c-ink);
  background: var(--c-surface);
  box-shadow: 0 12px 32px rgba(var(--c-ink-rgb), .2);
  direction: rtl;
  font-size: .78em;
  text-align: right;
}

.noor-entry[dir="ltr"] .noor-metadata {
  right: 0;
  left: auto;
}

.noor-metadata-row {
  display: grid;
  grid-template-columns: minmax(80px, .7fr) minmax(0, 1.5fr);
  gap: 10px;
  padding: 6px 4px;
  border-bottom: 1px solid var(--c-mint);
}

.noor-metadata-row:last-child {
  border-bottom: 0;
}

.noor-metadata-label {
  color: var(--c-muted);
}

.noor-metadata-value {
  overflow-wrap: anywhere;
}

.noor-reference {
  margin-bottom: 9px;
  color: var(--c-muted);
  font-size: .78em;
}

.noor-entry-content {
  color: var(--c-ink);
  font-size: 1em;
  line-height: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

[data-noor-resource="translation"] .noor-entry-content,
[data-noor-resource="commentary"] .noor-entry-content {
  font-size: 1.3em;
}

.noor-entry-content[dir="rtl"] {
  text-align: right;
}

.noor-entry-content[dir="ltr"] {
  text-align: left;
}

.noor-retry {
  display: block;
  margin: 20px auto;
  padding: 8px 18px;
  border: 1px solid var(--c-strong);
  border-radius: 6px;
  color: var(--c-accent);
  background: var(--c-mint);
  cursor: pointer;
  font: inherit;
}

.noor-commentary-more-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.noor-commentary-more {
  padding: 4px 16px;
  border: 1px solid var(--c-strong);
  border-radius: 999px;
  color: var(--c-accent);
  background: var(--c-mint);
  cursor: pointer;
  font: inherit;
  font-size: 0.95em;
}

.noor-commentary-more:disabled {
  cursor: progress;
  opacity: 0.7;
}

@media screen and (max-width: 620px) {
  .noor-resource {
    margin-top: 16px;
    margin-bottom: 32px;
    padding: 0;
  }

  .noor-resource.has-selection-nav {
    padding-left: 0;
  }

  .noor-selector-popover {
    position: fixed;
    z-index: 80;
    top: 15vh;
    right: 12px;
    bottom: auto;
    left: 12px;
    max-height: 70vh;
  }

  .noor-selector-options {
    max-height: calc(70vh - 78px);
  }

  .noor-entry {
    padding: 13px;
  }

  .noor-hadith-entry.noor-entry,
  .noor-source-card.noor-entry {
    padding: 0;
  }

  .noor-metadata {
    position: fixed;
    top: 20vh;
    right: 16px !important;
    left: 16px !important;
    width: auto;
    max-height: 60vh;
    overflow-y: auto;
  }
}

@media screen and (min-width: 981px) {
  .ayah-view[data-ayah-view="two-column"] .mushaf-page-meta,
  html[data-mushaf-view="two-column"] .ayah-view .mushaf-page-meta {
    min-height: var(--two-column-section-height);
    margin-bottom: 0;
    padding: 0 8px;
    border-bottom: 1px solid var(--c-line-warm);
  }
}

.ayah-view .lt-hadis {
  max-width: none;
  margin: 0 auto;
}

.ayah-view .mushaf-page:not(.is-selected-page):not(.is-continuous-page) {
  display: none;
}

.mushaf-continuous-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 12px;
  color: var(--c-muted);
  font-size: .82em;
  text-align: center;
}

.mushaf-continuous-loader[hidden] {
  display: none;
}

.mushaf-continuous-loader button {
  padding: 7px 13px;
  border: 1px solid var(--c-strong);
  border-radius: 5px;
  color: var(--c-accent);
  background: var(--c-mint);
  cursor: pointer;
  font: inherit;
}

.ayah-view[data-ayah-view="single-column"] .ayah-view-track,
html[data-mushaf-view="single-column"] .ayah-view .ayah-view-track {
  display: flex;
  align-items: flex-start;
  width: 100%;
  overflow-x: clip;
  overflow-y: hidden;
  scroll-behavior: auto;
  scroll-snap-type: none;
  scrollbar-width: none;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  direction: ltr;
  transition: height .2s ease;
}

.ayah-view[data-ayah-view="single-column"] .ayah-view-track::-webkit-scrollbar,
html[data-mushaf-view="single-column"] .ayah-view .ayah-view-track::-webkit-scrollbar {
  display: none;
}

.ayah-view[data-ayah-view="single-column"] .content-pane,
html[data-mushaf-view="single-column"] .ayah-view .content-pane {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  direction: rtl;
}

.ayah-view[data-ayah-view="single-column"] .mushaf-pages,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-pages,
.ayah-view[data-ayah-view="single-column"] .mushaf-stage-chrome,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-stage-chrome {
  width: min(100%, var(--mushaf-page-width, 570px));
  margin: 0 auto;
}

@media screen and (max-width: 980px) {
  .mushaf-stage {
    padding-right: 0;
    padding-left: 0;
  }

  .tafseer-tab-panel {
    padding-right: 8px;
    padding-left: 8px;
  }
}

@media screen and (max-width: 620px) {
  .ayah-page {
    padding-right: 0;
    padding-left: 0;
  }

  .mushaf-app-header {
    grid-template-areas: "actions location brand";
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-content: stretch;
    gap: 7px;
    width: calc(100% - 8px);
    max-width: calc(100vw - 8px);
    height: var(--mushaf-header-height);
    min-height: var(--mushaf-header-height);
    margin-top: var(--mushaf-chrome-edge);
    padding: 0 5px;
  }

  .mushaf-app-header-copy {
    display: flex;
    max-width: 100%;
  }

  .mushaf-app-header-brand {
    max-width: min(52vw, 240px);
    gap: 4px;
  }

  .mushaf-app-header-kicker {
    display: none;
  }

  .mushaf-app-header-title {
    display: block;
  }

  .mushaf-app-header-actions {
    gap: var(--mushaf-chrome-gap, 4px);
  }

  .mushaf-app-header-actions .content-dock-button {
    display: none !important;
  }

  .mushaf-app-header .toolbar-popover {
    position: fixed;
    z-index: 120;
    top: 46px;
    right: 12px;
    left: 12px;
    width: auto;
    min-width: 0;
    max-height: calc(100dvh - 56px);
  }

  .mushaf-pages {
    gap: 10px;
  }

  .settings-options {
    grid-template-columns: 1fr;
  }

  .content-tab {
    padding-right: 8px;
    padding-left: 8px;
  }

  .tafseer-source-row {
    padding-right: 0;
  }
}

@media screen and (max-width: 380px) {
  .mushaf-app-header-copy {
    line-height: 1.1;
  }

  .mushaf-app-header-mark {
    width: 1.3em;
    height: 1.3em;
  }
}

.ayah-view[data-ayah-view="single-column"] .content-tabs,
html[data-mushaf-view="single-column"] .ayah-view .content-tabs {
  display: none;
}

.ayah-view[data-ayah-view="single-column"] .content-tabs-row,
html[data-mushaf-view="single-column"] .ayah-view .content-tabs-row,
.ayah-view[data-ayah-view="single-column"] .column-stage-footer,
html[data-mushaf-view="single-column"] .ayah-view .column-stage-footer,
.ayah-view[data-ayah-view="single-column"] .column-resizer,
html[data-mushaf-view="single-column"] .ayah-view .column-resizer {
  display: none;
}

.ayah-view[data-ayah-view="single-column"] .content-ayah-sticky,
html[data-mushaf-view="single-column"] .ayah-view .content-ayah-sticky {
  display: none;
}

.ayah-view[data-ayah-view="single-column"] .tafseer-pane,
html[data-mushaf-view="single-column"] .ayah-view .tafseer-pane {
  display: contents;
}

.ayah-view[data-ayah-view="single-column"],
html[data-mushaf-view="single-column"] .ayah-view {
  --mushaf-chrome-font: clamp(
    .72rem,
    calc(var(--mushaf-chrome-unit) * .32),
    1.05rem
  );
  --mushaf-footer-height: clamp(31px, 5.32dvh, 42px);
}

.ayah-view[data-ayah-view="single-column"] .mushaf-app-header,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header {
  grid-template-areas: "actions location brand";
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  width: min(calc(100% - 8px), var(--mushaf-page-width, 570px));
  height: var(--mushaf-header-height);
  min-height: var(--mushaf-header-height);
  padding: 0 6px;
}

.ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions {
  gap: var(--mushaf-chrome-gap, 5px);
  justify-self: start;
}

.ayah-view[data-ayah-view="single-column"] .mushaf-app-header-brand,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-brand {
  width: auto;
  max-width: min(48vw, 220px);
  justify-self: end;
}

.ayah-view[data-ayah-view="single-column"] .mushaf-app-header-copy,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-copy {
  max-width: 100%;
  overflow: hidden;
}

.ayah-view[data-ayah-view="single-column"] .mushaf-app-header-kicker,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-kicker {
  display: none;
}

.ayah-view[data-ayah-view="single-column"] .mushaf-app-header-title,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-title {
  display: block;
}

.ayah-view[data-ayah-view="single-column"] .mushaf-stage-meta,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-stage-meta {
  min-height: 0;
}

.ayah-view[data-ayah-view="single-column"] .mushaf-stage-meta .mushaf-page-meta,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-stage-meta .mushaf-page-meta {
  height: var(--mushaf-chrome-height);
  min-height: var(--mushaf-chrome-height);
  padding: 0 2px;
  font-size: var(--mushaf-chrome-font);
}

.ayah-view[data-ayah-view="single-column"] .mushaf-stage-meta .mushaf-page-arrow,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-stage-meta .mushaf-page-arrow {
  width: var(--mushaf-chrome-height);
  height: var(--mushaf-chrome-height);
}

.ayah-view[data-ayah-view="single-column"] .mushaf-stage-meta .mushaf-page-arrow svg,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-stage-meta .mushaf-page-arrow svg {
  width: calc(var(--mushaf-chrome-height) * .43);
  height: calc(var(--mushaf-chrome-height) * .43);
}

.ayah-view[data-ayah-view="single-column"] .mushaf-stage-meta .mushaf-juz-trigger,
.ayah-view[data-ayah-view="single-column"] .mushaf-stage-meta .mushaf-page-trigger,
.ayah-view[data-ayah-view="single-column"] .mushaf-stage-meta .mushaf-surah-trigger,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-stage-meta .mushaf-juz-trigger,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-stage-meta .mushaf-page-trigger,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-stage-meta .mushaf-surah-trigger {
  min-height: var(--mushaf-chrome-height);
  padding-right: 6px;
  padding-left: 6px;
}

html:not([data-single-column-chrome="parked"]) .ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions .recitation-play-button,
html:not([data-single-column-chrome="parked"])[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions .recitation-play-button,
html:not([data-single-column-chrome="parked"]) .ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions [data-tooltip-undock],
html:not([data-single-column-chrome="parked"])[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions [data-tooltip-undock],
html:not([data-single-column-chrome="parked"]) .ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions [data-app-fullscreen],
html:not([data-single-column-chrome="parked"])[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions [data-app-fullscreen],
html:not([data-single-column-chrome="parked"]) .ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions [data-slide-view],
html:not([data-single-column-chrome="parked"])[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions [data-slide-view] {
  display: none !important;
}

html[data-single-column-chrome="parked"] .ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions,
html[data-single-column-chrome="parked"][data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions {
  gap: var(--mushaf-chrome-gap, 3px);
}

html[data-single-column-chrome="parked"] .ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions [data-tooltip-undock],
html[data-single-column-chrome="parked"][data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions [data-tooltip-undock] {
  display: none !important;
}

html[data-single-column-chrome="parked"] .ayah-view[data-ayah-view="single-column"] .mushaf-app-header-brand,
html[data-single-column-chrome="parked"][data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-brand {
  display: none;
}

.ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions .recitation-icon,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions .recitation-icon {
  width: 78%;
  height: 78%;
}

.ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions .settings-trigger,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions .settings-trigger {
  width: var(--mushaf-chrome-control);
  height: var(--mushaf-chrome-control);
}

.ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions .view-menu-icon,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions .view-menu-icon {
  width: calc(var(--mushaf-chrome-control) * .52);
  height: calc(var(--mushaf-chrome-control) * .52);
}

.ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions [data-tooltip-undock] svg,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions [data-tooltip-undock] svg,
.ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions [data-app-fullscreen] svg,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions [data-app-fullscreen] svg,
.ayah-view[data-ayah-view="single-column"] .mushaf-app-header-actions [data-slide-view] svg,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions [data-slide-view] svg {
  width: calc(var(--mushaf-chrome-control) * .52);
  height: calc(var(--mushaf-chrome-control) * .52);
}

.ayah-view .mushaf-app-header-actions .settings-menu {
  position: relative;
  z-index: 90;
}

.ayah-view .mushaf-app-header-actions .settings-menu .settings-popover {
  right: auto;
  left: 0;
  z-index: 120;
}

.chrome-help-tip {
  position: fixed;
  z-index: 10040;
  max-width: min(240px, calc(100vw - 16px));
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--c-paper);
  background: var(--c-ink);
  box-shadow: 0 6px 18px rgba(var(--c-ink-rgb), .28);
  font-size: .75rem;
  line-height: 1.35;
  pointer-events: none;
  white-space: nowrap;
}

.chrome-help-tip[hidden] {
  display: none;
}

.ayah-view[data-ayah-view="single-column"] .ayah-view-track,
html[data-mushaf-view="single-column"] .ayah-view .ayah-view-track {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  margin-top: calc(var(--mushaf-chrome-edge) + var(--mushaf-chrome-height));
  padding: 0 4px;
  overflow-x: hidden;
  overflow-y: visible;
  background: var(--c-page);
  direction: rtl;
  touch-action: pan-y;
}

.ayah-view[data-ayah-view="single-column"] .mushaf-stage,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-stage {
  grid-column: 1;
  width: min(100%, var(--mushaf-page-width, 570px));
  max-width: 100%;
  margin: 0 auto;
  padding-top: 0;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: var(--c-paper);
}

.ayah-view[data-ayah-view="single-column"] > .mushaf-stage-meta,
html[data-mushaf-view="single-column"] .ayah-view > .mushaf-stage-meta {
  position: absolute;
  z-index: 21;
  top: calc(var(--mushaf-app-header-offset, var(--mushaf-header-height)) + var(--mushaf-chrome-edge));
  left: 50%;
  box-sizing: border-box;
  width: min(calc(100% - 8px), var(--mushaf-page-width, 570px));
  border: 1px solid var(--c-line);
  transform: translateX(-50%);
}

.ayah-view[data-ayah-view="single-column"] .mushaf-stage-meta,
html[data-mushaf-view="single-column"] .ayah-view .mushaf-stage-meta {
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

.ayah-view[data-ayah-view="two-column"],
html[data-mushaf-view="two-column"] .ayah-view {
  --two-column-card-gap: var(--mushaf-chrome-edge);
  --two-column-section-height: 42px;
  --two-column-chrome-font: clamp(
    .58rem,
    calc(var(--mushaf-page-width, 24rem) * .038),
    .92rem
  );
  overflow: hidden;
}

.ayah-view[data-ayah-view="two-column"] > .mushaf-app-header,
html[data-mushaf-view="two-column"] .ayah-view > .mushaf-app-header {
  flex: 0 0 auto;
  width: calc(100% - 16px);
  padding-right: 8px;
  padding-left: 8px;
  z-index: 80;
}

.column-resizer {
  display: none;
  position: absolute;
  z-index: 50;
  top: calc(
    var(--mushaf-app-header-offset, var(--mushaf-header-height)) +
    var(--two-column-card-gap, var(--mushaf-chrome-edge))
  );
  right: calc(8px + var(--mushaf-column-width, 50%) - 14px);
  bottom: var(--two-column-track-bottom, 10px);
  width: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: col-resize;
  touch-action: none;
  pointer-events: auto;
}

.column-resizer:before {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 3px;
  border-radius: 999px;
  background: rgba(var(--c-strong-rgb), .28);
  transform: translateX(-50%);
  transition: background .15s ease, width .15s ease;
}

.ayah-view[data-ayah-view="two-column"] .column-resizer,
html[data-mushaf-view="two-column"] .ayah-view .column-resizer {
  display: block;
}

.column-resizer:hover:before,
.column-resizer.is-active:before,
.ayah-view.is-column-resizing .column-resizer:before {
  width: 4px;
  background: rgba(var(--c-strong-rgb), .7);
}

html.is-column-resizing,
html.is-column-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

@media (pointer: coarse) {
  .column-resizer {
    width: 24px;
  }
}

.page-resizer {
  display: none;
  position: absolute;
  z-index: 50;
  width: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: col-resize;
  touch-action: none;
}

.page-resizer:before {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 3px;
  border-radius: 999px;
  background: rgba(var(--c-strong-rgb), .28);
  transform: translateX(-50%);
  transition: background .15s ease, width .15s ease;
}

html[data-workspace="desktop"] .ayah-view[data-ayah-view="single-column"] .page-resizer,
html[data-workspace="desktop"][data-mushaf-view="single-column"] .ayah-view .page-resizer {
  display: block;
}

.page-resizer:hover:before,
.page-resizer.is-active:before,
.ayah-view.is-page-resizing .page-resizer:before {
  width: 4px;
  background: rgba(var(--c-strong-rgb), .7);
}

.ayah-view[data-ayah-view="two-column"] .ayah-view-headings,
html[data-mushaf-view="two-column"] .ayah-view .ayah-view-headings {
  position: absolute;
  z-index: 20;
  top: calc(
    var(--mushaf-app-header-offset, var(--mushaf-header-height)) +
    var(--two-column-card-gap)
  );
  left: 8px;
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
  width: calc(100% - var(--mushaf-column-width, 50%) - 26px);
  height: var(--two-column-section-height);
}

.ayah-view[data-ayah-view="two-column"] .content-tabs-row,
html[data-mushaf-view="two-column"] .ayah-view .content-tabs-row {
  position: relative;
  z-index: 20;
  top: auto;
  left: auto;
  box-sizing: border-box;
  align-items: stretch;
  width: 100%;
  height: var(--two-column-section-height);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: 14px 14px 0 0;
  background: var(--c-chrome);
  font-size: var(--two-column-chrome-font);
}

.ayah-view[data-ayah-view="two-column"] .content-tabs,
html[data-mushaf-view="two-column"] .ayah-view .content-tabs {
  flex: 1 1 auto;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.content-column-close {
  display: none;
  box-sizing: border-box;
  width: calc(var(--mushaf-chrome-control, 36px) * .85);
  height: calc(var(--mushaf-chrome-control, 36px) * .85);
  padding: 4px;
  border: 0;
  border-radius: 50%;
  color: var(--c-ink);
  background: transparent;
  cursor: pointer;
  place-items: center;
}

.content-column-close svg {
  width: 70%;
  height: 70%;
}

html[data-workspace="desktop"][data-mushaf-view="two-column"] .content-column-close,
.ayah-view[data-ayah-view="two-column"][data-workspace="desktop"] .content-column-close {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 6px;
  display: inline-grid;
  transform: translateY(-50%);
}

html[data-workspace="desktop"][data-mushaf-view="two-column"] .content-tabs,
.ayah-view[data-ayah-view="two-column"][data-workspace="desktop"] .content-tabs {
  padding-left: 34px;
}

.ayah-view[data-ayah-view="two-column"] .mushaf-app-header-actions [data-tooltip-dock],
html[data-mushaf-view="two-column"] .ayah-view .mushaf-app-header-actions [data-tooltip-dock],
.ayah-view[data-ayah-view="two-column"] .mushaf-app-header-actions [data-mushaf-focus],
html[data-mushaf-view="two-column"] .ayah-view .mushaf-app-header-actions [data-mushaf-focus] {
  display: inline-grid;
}

.ayah-view[data-ayah-view="two-column"] [data-tooltip-undock],
html[data-mushaf-view="two-column"] .ayah-view [data-tooltip-undock] {
  display: none;
}

.ayah-view[data-ayah-view="two-column"] .content-tab,
html[data-mushaf-view="two-column"] .ayah-view .content-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding-top: 0;
  padding-right: 6px;
  padding-bottom: 0;
  padding-left: 6px;
  overflow: hidden;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--c-chrome);
  font-size: min(
    var(--two-column-chrome-font),
    calc(var(--two-column-section-height) * .42)
  );
}

.ayah-view[data-ayah-view="two-column"] .content-tab > span,
html[data-mushaf-view="two-column"] .ayah-view .content-tab > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ayah-view[data-ayah-view="two-column"] .content-tab.is-active:after,
html[data-mushaf-view="two-column"] .ayah-view .content-tab.is-active:after {
  bottom: 0;
  height: 2px;
}

.ayah-view[data-ayah-view="two-column"] .ayah-view-track,
html[data-mushaf-view="two-column"] .ayah-view .ayah-view-track {
  position: absolute;
  z-index: 1;
  top: calc(
    var(--mushaf-app-header-offset, var(--mushaf-header-height)) +
    var(--two-column-card-gap) +
    var(--two-column-section-height)
  );
  right: 0;
  bottom: var(--two-column-track-bottom, max(8px, var(--safe-area-bottom, 0px)));
  left: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: var(--mushaf-column-width, minmax(0, 1fr)) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  width: auto;
  height: auto;
  min-height: 0;
  max-height: none;
  margin-top: 0;
  padding: 0 8px;
  overflow: hidden;
  background: var(--c-page);
  direction: rtl;
}

.ayah-view[data-ayah-view="two-column"] .mushaf-stage,
.ayah-view[data-ayah-view="two-column"] .mushaf-stage.is-continuous-scroll,
html[data-mushaf-view="two-column"] .ayah-view .mushaf-stage,
html[data-mushaf-view="two-column"] .ayah-view .mushaf-stage.is-continuous-scroll {
  grid-column: 1;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  padding-top: 0;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: var(--c-paper);
}

.ayah-view[data-ayah-view="two-column"] .mushaf-stage-chrome,
html[data-mushaf-view="two-column"] .ayah-view .mushaf-stage-chrome {
  width: 100%;
}

.ayah-view[data-ayah-view="two-column"] > .mushaf-stage-meta,
html[data-mushaf-view="two-column"] .ayah-view > .mushaf-stage-meta {
  position: absolute;
  z-index: 21;
  top: calc(
    var(--mushaf-app-header-offset, var(--mushaf-header-height)) +
    var(--two-column-card-gap)
  );
  right: 8px;
  box-sizing: border-box;
  width: var(--mushaf-column-width, calc(50% - 13px));
  height: var(--two-column-section-height);
  min-height: var(--two-column-section-height);
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: 14px 14px 0 0;
  background: var(--c-chrome);
}

.ayah-view[data-ayah-view="two-column"] [data-content-tab="hadith"] [data-content-ayah-heading],
html[data-mushaf-view="two-column"] .ayah-view [data-content-tab="hadith"] [data-content-ayah-heading],
.ayah-view[data-ayah-view="two-column"] .word-by-word-panel-heading,
html[data-mushaf-view="two-column"] .ayah-view .word-by-word-panel-heading {
  display: none;
}

.ayah-view[data-ayah-view="two-column"] .content-ayah-sticky,
html[data-mushaf-view="two-column"] .ayah-view .content-ayah-sticky {
  position: relative;
  z-index: 11;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 4px 10px 3px;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-paper);
  font-size: var(--two-column-chrome-font);
}

.ayah-view[data-ayah-view="two-column"] .tafseer-pane,
html[data-mushaf-view="two-column"] .ayah-view .tafseer-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: 2;
  box-sizing: border-box;
  height: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: var(--c-paper);
}

.ayah-view[data-ayah-view="two-column"] .mushaf-stage-footer,
html[data-mushaf-view="two-column"] .ayah-view .mushaf-stage-footer {
  position: relative;
  z-index: 8;
  display: block;
  flex: 0 0 var(--mushaf-footer-height);
  box-sizing: border-box;
  width: 100%;
  height: var(--mushaf-footer-height);
  min-height: var(--mushaf-footer-height);
  overflow: visible;
  border-top: 1px solid var(--c-line-warm);
  border-radius: 0 0 13px 13px;
  background: var(--c-chrome);
  box-shadow: none;
  pointer-events: auto;
}

.ayah-view[data-ayah-view="two-column"] .column-stage-footer,
html[data-mushaf-view="two-column"] .ayah-view .column-stage-footer {
  position: absolute;
  z-index: 9;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  flex: none;
  box-sizing: border-box;
  width: 100%;
  height: var(--mushaf-footer-height);
  min-height: var(--mushaf-footer-height);
  overflow: visible;
  border-top: 1px solid var(--c-line-warm);
  border-bottom: 0;
  border-radius: 0 0 13px 13px;
  background: var(--c-chrome);
  box-shadow: none;
  pointer-events: auto;
}

.ayah-view[data-ayah-view="two-column"] .tafseer-tab-panel,
html[data-mushaf-view="two-column"] .ayah-view .tafseer-tab-panel {
  flex: 1 1 0;
  min-height: 0;
  padding: 0 8px var(--mushaf-footer-height);
  border: 0;
  border-radius: 0;
  background: transparent;
  scrollbar-gutter: auto;
}

.ayah-view[data-ayah-view="two-column"] .noor-resource,
.ayah-view[data-ayah-view="two-column"] .noor-selector,
.ayah-view[data-ayah-view="two-column"] .word-by-word--panel,
.ayah-view[data-ayah-view="two-column"] .word-by-word-panel-heading,
.ayah-view[data-ayah-view="two-column"] .lt-hadis,
html[data-mushaf-view="two-column"] .ayah-view .noor-resource,
html[data-mushaf-view="two-column"] .ayah-view .noor-selector,
html[data-mushaf-view="two-column"] .ayah-view .word-by-word--panel,
html[data-mushaf-view="two-column"] .ayah-view .word-by-word-panel-heading,
html[data-mushaf-view="two-column"] .ayah-view .lt-hadis {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.ayah-view[data-ayah-view="two-column"] .noor-resource,
.ayah-view[data-ayah-view="two-column"] .noor-selector,
html[data-mushaf-view="two-column"] .ayah-view .noor-resource,
html[data-mushaf-view="two-column"] .ayah-view .noor-selector {
  padding-right: 0;
  padding-left: 0;
}

.ayah-view[data-ayah-view="two-column"] .noor-local-commentary > .noor-source-card-body,
html[data-mushaf-view="two-column"] .ayah-view .noor-local-commentary > .noor-source-card-body {
  padding: 14px 18px 16px;
}

.ayah-view[data-ayah-view="two-column"] .noor-resource.has-selection-nav,
html[data-mushaf-view="two-column"] .ayah-view .noor-resource.has-selection-nav {
  padding-left: 0;
}

.ayah-view[data-ayah-view="two-column"] .tafseer-tab-panel,
html[data-mushaf-view="two-column"] .ayah-view .tafseer-tab-panel {
  scrollbar-width: none;
}

.ayah-view[data-ayah-view="two-column"] .tafseer-tab-panel::-webkit-scrollbar,
html[data-mushaf-view="two-column"] .ayah-view .tafseer-tab-panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.ayah-view[data-ayah-view="two-column"] .mushaf-page-meta,
html[data-mushaf-view="two-column"] .ayah-view .mushaf-page-meta {
  height: var(--two-column-section-height);
  min-height: var(--two-column-section-height);
  margin-bottom: 0;
  padding: 0 6px;
  border-bottom: 1px solid var(--c-line-warm);
  font-size: var(--two-column-chrome-font);
}

.ayah-view[data-ayah-view="two-column"] .mushaf-juz-trigger,
.ayah-view[data-ayah-view="two-column"] .mushaf-surah-trigger,
html[data-mushaf-view="two-column"] .ayah-view .mushaf-juz-trigger,
html[data-mushaf-view="two-column"] .ayah-view .mushaf-surah-trigger {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ayah-view[data-ayah-view="two-column"] .mushaf-page-arrow,
html[data-mushaf-view="two-column"] .ayah-view .mushaf-page-arrow {
  width: calc(var(--two-column-section-height) * .72);
  height: calc(var(--two-column-section-height) * .72);
}

.ayah-view[data-ayah-view="two-column"] .mushaf-page-arrow svg,
html[data-mushaf-view="two-column"] .ayah-view .mushaf-page-arrow svg {
  width: calc(var(--two-column-section-height) * .38);
  height: calc(var(--two-column-section-height) * .38);
}

.ayah-view[data-ayah-view="two-column"] .mushaf-stage-meta > .mushaf-page-meta,
html[data-mushaf-view="two-column"] .ayah-view .mushaf-stage-meta > .mushaf-page-meta {
  border-bottom: 0;
}

.ayah-view[data-ayah-view="two-column"] .mushaf-stage-meta,
html[data-mushaf-view="two-column"] .ayah-view .mushaf-stage-meta {
  min-height: 0;
}

.word-by-word-content-pane .word-by-word-section {
  display: block;
}

html[dir="ltr"] body,
html[dir="ltr"] .md .rtl,
html[dir="ltr"] .ayah-toolbar,
html[dir="ltr"] .ayah-view,
html[dir="ltr"] .ayah-view-track,
html[dir="ltr"] .content-tabs-row,
html[dir="ltr"] .content-toolbar-actions,
html[dir="ltr"] .toolbar-popover,
html[dir="ltr"] .single-column-settings-menu,
html[dir="ltr"] .tafseer-tab-panel,
html[dir="ltr"] .noor-resource {
  direction: ltr;
}

html[dir="ltr"] .settings-menu .settings-popover {
  right: 0;
  left: auto;
}

html[dir="ltr"] .mushaf-app-header-actions .settings-menu .settings-popover {
  right: auto;
  left: 0;
}

html[dir="ltr"] .mushaf-app-header-brand {
  direction: ltr;
}

html[dir="ltr"] .mushaf-app-header {
  grid-template-areas: "brand location actions";
}

html[dir="ltr"] .mushaf-app-header-actions {
  justify-self: end;
}

html[dir="ltr"] .mushaf-app-header-brand {
  justify-self: start;
}

html[dir="ltr"] .mushaf-app-header-actions .settings-menu .settings-popover {
  right: 0;
  left: auto;
}

html[dir="ltr"] .ayah-view[data-ayah-view="single-column"] .mushaf-app-header,
html[dir="ltr"][data-mushaf-view="single-column"] .ayah-view .mushaf-app-header {
  grid-template-areas: "brand location actions";
}

html[dir="ltr"] .ayah-view[data-ayah-view="single-column"] .settings-menu .settings-popover,
html[dir="ltr"][data-mushaf-view="single-column"] .ayah-view .settings-menu .settings-popover {
  right: 0;
  left: auto;
}

html[dir="ltr"] .reciter-selector-trigger {
  padding-right: 12px;
  padding-left: 34px;
}

html[dir="ltr"] .reciter-selector-trigger:before {
  right: auto;
  left: 14px;
}

html[dir="ltr"] .ayah-view[data-ayah-view="single-column"] .content-pane,
html[dir="ltr"][data-mushaf-view="single-column"] .ayah-view .content-pane {
  direction: ltr;
}

html[dir="ltr"] .mushaf-stage,
html[dir="ltr"] .mushaf-pages,
html[dir="ltr"] .mushaf-page-meta,
html[dir="ltr"] .content-ayah-heading p,
html[dir="ltr"] .content-ayah-source,
html[dir="ltr"] .fa,
html[dir="ltr"] .ar,
html[dir="ltr"] [lang="fa"],
html[dir="ltr"] [lang="ar"],
html[dir="ltr"] [dir="rtl"] {
  direction: rtl;
}

html[dir="ltr"] .ayah-view[data-ayah-view="two-column"] .ayah-view-track,
html[dir="ltr"][data-mushaf-view="two-column"] .ayah-view .ayah-view-track {
  direction: rtl;
}

html[data-mushaf-view="single-column"] .ayah-view .content-tabs {
  display: none;
}

html[data-mushaf-view="single-column"] .ayah-view .content-dock-button {
  display: none;
}

html:not([data-single-column-chrome="parked"])[data-mushaf-view="single-column"] .ayah-view .mushaf-app-header-actions [data-tooltip-undock] {
  display: none !important;
}

html[data-mushaf-view="single-column"] .ayah-view .content-tabs-row {
  display: none;
}

html[data-mushaf-view="single-column"] .ayah-view .ayah-view-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

html[data-mushaf-view="single-column"] .ayah-view .tafseer-tab-panel {
  display: none !important;
}

@media screen and (max-width: 620px) {
  .mushaf-app-header {
    grid-template-areas: "actions location brand";
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-content: stretch;
    width: calc(100% - 8px);
    max-width: calc(100vw - 8px);
  }

  html[dir="ltr"] .mushaf-app-header {
    grid-template-areas: "brand location actions";
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  }

  html[dir="ltr"] .mushaf-app-header .toolbar-popover {
    right: 12px;
    left: 12px;
  }
}

html[data-slide-view="open"] {
  overflow: hidden;
}

html[data-slide-view="open"] body {
  overflow: hidden;
}

.mushaf-slide-view {
  --slide-icon: 60px;
  --slide-play: 80px;
  --slide-icon-gap: 10px;
  --slide-icon-fill: var(--c-paper);
  --slide-icon-ink: var(--c-ink);
  --slide-icon-line: var(--c-line);
  --slide-chrome-height: 112px;
  --slide-translation-height: 180px;
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: env(safe-area-inset-top, 0px) 0 0;
  overflow: hidden;
  color: var(--c-ink);
  background: var(--c-paper);
  touch-action: pan-y;
}

.mushaf-slide-view[hidden] {
  display: none;
}

.mushaf-slide-view-videos,
.mushaf-slide-view-video,
.mushaf-slide-view-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.mushaf-slide-view-videos {
  z-index: 0;
  display: none;
  overflow: hidden;
  background: #070b09;
}

.mushaf-slide-view-video {
  z-index: 0;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s cubic-bezier(0.45, 0, 0.2, 1);
}

.mushaf-slide-view-video.is-on {
  z-index: 1;
  opacity: 1;
}

.mushaf-slide-view-scrim {
  z-index: 1;
  display: none;
}

.mushaf-slide-view-card {
  --slide-card-border-width: 0px;
  --slide-meta-font-size: clamp(1rem, min(2.8vh, 4.4vw), 1.25rem);
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 0;
  margin: 24px 24px 10px;
  padding: 64px 0 calc(36px + var(--safe-area-bottom, env(safe-area-inset-bottom, 0px)));
  overflow: visible;
}

.mushaf-slide-view-top {
  position: absolute;
  z-index: 5;
  top: 26px;
  right: 12px;
  left: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 0;
  direction: ltr;
  pointer-events: none;
}

.mushaf-slide-view-top > * {
  pointer-events: auto;
}

.mushaf-slide-view-top-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  justify-self: center;
}

.mushaf-slide-view-close {
  position: static;
  z-index: 5;
  display: grid;
  box-sizing: border-box;
  width: 27px;
  height: 27px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .5);
  cursor: pointer;
  justify-self: center;
  place-items: center;
}

.mushaf-slide-view-close:hover,
.mushaf-slide-view-close:focus,
.mushaf-slide-view-close:focus-visible,
.mushaf-slide-view-close:active {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(0, 0, 0, .5);
  outline: none;
}

.mushaf-slide-view-close svg {
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: inherit;
}

.mushaf-slide-view-surah,
.mushaf-slide-view-juz,
.mushaf-slide-view-page {
  position: static;
  z-index: 3;
  max-width: 100%;
  overflow: hidden;
  color: var(--c-accent);
  font-family: inherit;
  font-size: var(--slide-meta-font-size);
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mushaf-slide-view-surah {
  justify-self: start;
  text-align: left;
}

.mushaf-slide-view-page {
  position: static;
  z-index: 5;
  text-align: center;
  padding: 2px 6px;
  transform: none;
}

.mushaf-slide-view-juz {
  justify-self: end;
  text-align: right;
}

.mushaf-slide-view-ayah {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 0;
  padding: 12px 5% 18px;
  overflow: hidden;
}

.mushaf-slide-view-ayah-text {
  display: block;
  margin: 0;
  width: 90%;
  max-width: 90%;
  overflow: visible;
  color: var(--c-ink);
  font-family: var(--font-quran-arabic);
  font-size: clamp(1.7rem, 5.2vh, 3.6rem);
  line-height: 2.12;
  text-align: center;
  padding: .18em .2em .42em;
}

.mushaf-slide-view-ayah-body {
  display: inline;
  overflow: visible;
  font-family: var(--font-quran-arabic);
  line-height: inherit;
  padding: .06em .08em .28em;
}

.mushaf-slide-view-ayah-mark {
  display: inline;
  margin: 0;
  overflow: visible;
  color: var(--c-accent);
  font-family: var(--font-quran-arabic);
  font-size: calc(2em / 3);
  font-weight: 400;
  line-height: inherit;
  text-align: center;
  white-space: nowrap;
  padding: 0;
}

/* Quran fonts have incomplete Persian digits and ornamental Arabic numerals.
   Use one numeric font so a reference cannot mix glyph sizes and baselines. */
.mushaf-slide-view-ayah-number {
  font-family: Tahoma, Arial, sans-serif;
  font-size: 1em;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1;
  vertical-align: baseline;
  direction: ltr;
  unicode-bidi: isolate;
}

.mushaf-slide-view-divider {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  width: min(86%, 36rem);
  height: auto;
  margin: 8px auto 0;
  background: none;
  direction: ltr;
}
button.mushaf-slide-view-divider {
  box-sizing: border-box; appearance: none; border: 0; padding: 8px 0;
  min-height: 32px; font: inherit; cursor: pointer;
}
button.mushaf-slide-view-divider:disabled { cursor: default; }
button.mushaf-slide-view-divider:focus-visible {
  outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 8px;
}
@media (hover: hover) {
  button.mushaf-slide-view-divider:not(:disabled):hover .mushaf-slide-view-divider-label {
    text-decoration: underline; text-underline-offset: 3px;
  }
}

.mushaf-slide-view-divider-line {
  flex: 1 1 auto;
  height: 1px;
  min-width: 12px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(var(--c-line-rgb), .9) 36%,
    rgba(var(--c-ink-rgb), .28)
  );
}

.mushaf-slide-view-divider-line:last-child {
  background: linear-gradient(
    to left,
    transparent,
    rgba(var(--c-line-rgb), .9) 36%,
    rgba(var(--c-ink-rgb), .28)
  );
}

.mushaf-slide-view-divider-label {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--c-muted);
  font-family: Tahoma, Arial, sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
}

.mushaf-slide-view-tooltip-host {
  box-sizing: border-box;
  flex: 0 0 var(--slide-translation-height, 180px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 22px 5% 10px;
  overflow: hidden;
}

.mushaf-slide-view-chrome {
  position: relative;
  z-index: 2;
  order: 1;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  box-sizing: border-box;
  min-height: var(--slide-chrome-height, 112px);
  padding: 8px 0 0;
  overflow: visible;
}

html[data-app-fullscreen="on"] .mushaf-slide-view-fullscreen,
html:fullscreen .mushaf-slide-view-fullscreen,
html:-webkit-full-screen .mushaf-slide-view-fullscreen {
  display: none;
}

.mushaf-slide-view-controls {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 90%;
  max-width: 90%;
  min-height: 0;
  margin: 0 auto;
  overflow: visible;
}

html[data-slide-view-tabs="hidden"] .mushaf-slide-view-tooltip-host,
html[data-slide-view-tabs="hidden"] .mushaf-slide-view-divider {
  display: none;
}

html[data-slide-view="open"][data-slide-view-tab="word-gloss"] .mushaf-slide-view-ayah,
html[data-slide-view="open"][data-slide-view-tab="word-gloss"] .mushaf-slide-view-divider {
  display: none;
}

html[data-slide-view="open"][data-slide-view-tab="word-gloss"] .mushaf-slide-view-tooltip-host {
  flex: 1 1 auto;
}

html[data-slide-view-corners="hidden"] .mushaf-slide-view-surah,
html[data-slide-view-corners="hidden"] .mushaf-slide-view-juz,
html[data-slide-view="open"][data-slide-view-corners="hidden"] .mushaf-slide-view .mushaf-reading-progress {
  display: none;
}

html[data-slide-view-tabs="hidden"] .mushaf-slide-view-ayah {
  flex: 1 1 auto;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-reading-progress {
  position: absolute;
  z-index: 5;
  right: 12px;
  bottom: 10px;
  left: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
  align-items: center;
  width: auto;
  height: auto;
  padding: 0;
  gap: 4px;
  background: transparent;
  direction: ltr;
  pointer-events: none;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-reading-progress > * {
  pointer-events: auto;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-audio-progress {
  visibility: hidden;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-surah-progress-value,
html[data-slide-view="open"] .mushaf-slide-view .mushaf-juz-progress {
  color: var(--c-ink);
  font-family: inherit;
  font-size: var(--slide-meta-font-size);
  font-weight: 700;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-juz-progress {
  gap: 2px;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-translation-tooltip {
  position: relative;
  inset: auto;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 90%;
  max-width: 90%;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--c-paper);
  box-shadow: none;
  transform: none;
  animation: none;
  pointer-events: auto;
  font-size: clamp(1.05rem, 3.6vh, 1.575rem);
  text-align: center;
  letter-spacing: normal;
  word-spacing: normal;
  justify-content: flex-start;
}

@media (orientation: landscape) {
  .mushaf-slide-view-ayah-text {
    font-size: clamp(2rem, 6.8vh, 4.8rem);
  }
  html[data-slide-view="open"] .mushaf-slide-view .mushaf-translation-tooltip {
    font-size: clamp(1.15rem, 3.2vh, 2.325rem);
  }
}

html[data-slide-view="open"] .mushaf-slide-view [data-tooltip-tab-panel="translation"] [data-tooltip-source-content] {
  font-size: calc(1em * var(--slide-translation-font-scale, 1));
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-translation-tooltip::before {
  display: none;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-header {
  display: none;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-window-controls {
  display: none;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-tabs,
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-source-row,
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-settings {
  display: none;
}

html[data-slide-view="open"] .mushaf-slide-view [data-tooltip-tab-panel]:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: auto;
  touch-action: manipulation;
}

html[data-slide-view="open"] .mushaf-slide-view-tooltip-host,
html[data-slide-view="open"] .mushaf-slide-view-tooltip-host *,
html[data-slide-view="open"] .mushaf-slide-view [data-tooltip-tab-panel]:not([hidden]) {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html[data-slide-view="open"] .mushaf-slide-view-tooltip-host::-webkit-scrollbar,
html[data-slide-view="open"] .mushaf-slide-view-tooltip-host *::-webkit-scrollbar,
html[data-slide-view="open"] .mushaf-slide-view [data-tooltip-tab-panel]:not([hidden])::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html[data-slide-view="open"] .mushaf-slide-view [data-tooltip-source-content],
html[data-slide-view="open"] .mushaf-slide-view [data-tooltip-source-content] p,
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-panel-content,
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-panel-content > p {
  text-align: center;
  text-align-last: auto;
  letter-spacing: normal;
  word-spacing: normal;
}

html[data-slide-view="open"] .mushaf-slide-view [data-tooltip-tab-panel][hidden] {
  display: none;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-word-gloss .word-gloss-arabic,
html[data-slide-view="open"] .mushaf-slide-view .word-gloss-arabic {
  font-size: 1.22em;
  line-height: 1.65;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-word-gloss .word-gloss-translation,
html[data-slide-view="open"] .mushaf-slide-view .word-gloss-translation {
  display: block;
  font-size: .76em;
  line-height: 1.4;
}

html[data-slide-view="open"] .mushaf-slide-view .word-gloss-tooltip-title {
  display: none;
}

html[data-slide-view="open"] .mushaf-slide-view .word-gloss-token,
html[data-slide-view="open"] .mushaf-slide-view .word-gloss-skeleton {
  display: inline-grid;
  background: none;
  border-color: transparent;
  box-shadow: none;
  min-width: 3.1em;
  padding: .22em .32em .28em;
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view .word-gloss-arabic,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view .word-gloss-translation,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view .word-gloss-tooltip-title {
  color: #fff;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-body,
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-tab-panel {
  min-height: 0;
  max-height: none;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-body {
  order: 2;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-start;
  margin-top: 0;
  overflow: hidden;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-panel-content,
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-word-gloss,
html[data-slide-view="open"] .mushaf-slide-view .word-by-word--tooltip,
html[data-slide-view="open"] .mushaf-slide-view [data-noor-results] {
  flex: 0 0 auto;
  min-height: 0;
  max-height: none;
  height: auto;
  margin-block: auto;
  overflow: visible;
}

html[data-slide-view="open"] .mushaf-slide-view [data-tooltip-source-content],
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-panel-content {
  max-height: 100%;
  overflow: hidden;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-word-gloss,
html[data-slide-view="open"] .mushaf-slide-view .word-by-word--tooltip {
  flex: 1 1 auto;
  align-content: center;
  justify-content: center;
  gap: .22em .55em;
  width: 100%;
  max-height: 100%;
  margin-block: 0;
  overflow: hidden;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-slide-view-controls .mushaf-tooltip-controls {
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  height: auto;
  gap: var(--slide-icon-gap, 10px);
  padding: 0;
  overflow: visible;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-ayah-navigation--previous {
  order: 1;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-recitation {
  order: 3;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-section-repeat {
  order: 4;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-ayah-navigation--next {
  order: 5;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-chrome,
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-undock,
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls [data-app-fullscreen],
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls [data-slide-view] {
  display: none;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-repeat,
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-ayah-navigation {
  --repeat-knockout: var(--slide-icon-fill, var(--c-paper));
  flex: 0 0 var(--slide-icon, 60px);
  width: var(--slide-icon, 60px);
  height: var(--slide-icon, 60px);
  max-width: var(--slide-icon, 60px);
  max-height: var(--slide-icon, 60px);
  aspect-ratio: 1;
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--slide-icon-line, var(--c-line));
  border-radius: 50%;
  color: var(--slide-icon-ink, var(--c-ink));
  background: var(--slide-icon-fill, var(--c-paper));
  opacity: 1;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-repeat.is-repeat-off {
  --repeat-knockout: var(--slide-icon-fill, var(--c-paper));
  color: var(--slide-icon-ink, var(--c-ink));
  background: var(--slide-icon-fill, var(--c-paper));
  border-color: var(--slide-icon-line, var(--c-line));
  opacity: .62;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-recitation,
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-recitation.recitation-play-button {
  flex: 0 0 var(--slide-play, 80px);
  align-self: center;
  width: var(--slide-play, 80px);
  height: var(--slide-play, 80px);
  max-width: var(--slide-play, 80px);
  max-height: var(--slide-play, 80px);
  aspect-ratio: 1;
  background: var(--slide-icon-fill, var(--c-paper));
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-recitation .recitation-progress {
  width: 100%;
  height: 100%;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-recitation .recitation-icon {
  z-index: 1;
  width: 78%;
  height: 78%;
}

html[data-slide-view="open"] .mushaf-slide-view button,
html[data-slide-view="open"] .mushaf-slide-view [role="button"] {
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-controls :is(
  .mushaf-tooltip-repeat,
  .mushaf-tooltip-ayah-navigation,
  .mushaf-tooltip-recitation,
  .recitation-play-button
):is(:hover, :focus, :focus-visible, :active) {
  --repeat-knockout: var(--slide-icon-fill, var(--c-paper));
  color: var(--slide-icon-ink, var(--c-ink));
  background: var(--slide-icon-fill, var(--c-paper));
  border-color: var(--slide-icon-line, var(--c-line));
  filter: none;
  outline: none;
  box-shadow: none;
}

html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-repeat-badge {
  width: auto;
  min-width: 1.25em;
  height: 1.25em;
  padding: 0 0.14em;
  border-radius: 999px;
  color: inherit;
  background: var(--repeat-knockout, var(--c-surface));
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view {
  --slide-icon-fill: rgba(0, 0, 0, .5);
  --slide-icon-ink: #fff;
  --slide-icon-line: rgba(255, 255, 255, .22);
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view {
  color: #fff;
  background: #070b09;
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-repeat,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-ayah-navigation,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-recitation,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-repeat,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-ayah-navigation,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-controls .mushaf-tooltip-recitation {
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-videos {
  display: block;
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-chrome {
  position: relative;
  z-index: 3;
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-card {
  --slide-card-border-width: 1px;
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  margin: 24px 24px 10px;
  padding: 64px 12px 36px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 34px 28px 36px 24px;
  background: rgba(0, 0, 0, .5);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .2);
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-ayah-text,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-ayah-body,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-ayah-mark,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-surah,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-page,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-juz,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view .mushaf-surah-progress-value,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view .mushaf-juz-progress,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view .mushaf-translation-tooltip,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view .mushaf-tooltip-body,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view [data-tooltip-source-content] {
  color: #fff;
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-divider {
  background: none;
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-divider-line {
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, .28) 36%,
    rgba(255, 255, 255, .78)
  );
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-divider-line:last-child {
  background: linear-gradient(
    to left,
    transparent,
    rgba(255, 255, 255, .28) 36%,
    rgba(255, 255, 255, .78)
  );
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-divider-label {
  color: #fff;
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view .mushaf-translation-tooltip {
  background: transparent;
}

html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-surah,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-page,
html[data-slide-view="open"][data-slide-view-backdrop]:not([data-slide-view-backdrop="none"]) .mushaf-slide-view-juz {
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}

html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view-card {
  --slide-card-border-width: 1px;
  margin: 24px 24px 10px;
  padding: 64px 12px 36px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 34px 28px 36px 24px;
  background: rgba(0, 0, 0, .5);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .2);
}

html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view-ayah-text,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view-ayah-body,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view-ayah-mark,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view-divider-label,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-translation-tooltip,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-body,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view [data-tooltip-source-content],
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-entry,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-entry h3,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-entry small,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-entry p,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-entry-content,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-source-card,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-source-card-heading,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-source-card-title,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-source-card-body,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-source-card-meta,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-local-commentary,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-status {
  color: #fff;
}

html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-translation-tooltip,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-source-card,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-source-card-heading,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-source-card-body,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-hadith-toolbar {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view [data-tooltip-tab-panel="tafseer"],
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-entry,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-entry p,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-entry-content,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-source-card-body,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-source-card-copy {
  text-align: justify;
  text-align-last: center;
}

html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-entry-header,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-entry h3,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-source-card-title,
html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .noor-source-card-heading {
  justify-content: center;
  text-align: center;
  text-align-last: center;
}

html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view-divider {
  background: none;
}

html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view-divider-line {
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, .28) 36%,
    rgba(255, 255, 255, .78)
  );
}

html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view-divider-line:last-child {
  background: linear-gradient(
    to left,
    transparent,
    rgba(255, 255, 255, .28) 36%,
    rgba(255, 255, 255, .78)
  );
}

html[data-slide-view="open"][data-slide-view-tab="tafseer"] .mushaf-slide-view .mushaf-tooltip-entry {
  border-bottom-color: rgba(255, 255, 255, .18);
}

/* The player overlays the reader, leaving its full height available for reading. */
html[data-mushaf-view] .ayah-view > [data-reading-controls] {
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  max-width: none;
  height: calc(72px + env(safe-area-inset-bottom));
  min-height: calc(72px + env(safe-area-inset-bottom));
  margin: 0;
  padding: 4px 12px calc(6px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: 0;
  background: var(--c-page);
  z-index: 10030;
  overflow: visible;
  transform: translateY(0);
  transition: transform 240ms cubic-bezier(.2, .7, .2, 1);
  box-shadow: 0 -5px 20px rgba(var(--c-ink-rgb), .08);
}
html[data-mushaf-view] .ayah-view > [data-reading-controls][data-player-visible="false"] {
  transform: translateY(100%);
  /* Keep the visible part tappable during its exit animation. Offscreen
     controls cannot intercept a touch; a touch during motion reveals them. */
  box-shadow: none;
}
html:not([data-slide-view="open"])[data-player-autohide="off"] .ayah-view {
  box-sizing: border-box;
  padding-bottom: var(--reader-player-reserved-height, calc(72px + env(safe-area-inset-bottom)));
}
html:not([data-slide-view="open"])[data-player-autohide="off"][data-mushaf-view="two-column"] .ayah-view .ayah-view-track {
  bottom: calc(var(--two-column-track-bottom, max(8px, var(--safe-area-bottom, 0px))) + var(--reader-player-reserved-height, calc(72px + env(safe-area-inset-bottom))));
}
html[data-player-autohide="off"] .ayah-view > [data-reading-controls] {
  transform: translateY(0);
  transition: none;
}
[data-player-autohide-toggle][hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html[data-mushaf-view] .ayah-view > [data-reading-controls] { transition: none; }
}
html[data-mushaf-view] [data-reading-controls] .mushaf-app-header-brand,
html[data-mushaf-view] [data-reading-controls] .mushaf-app-header-spacer { display: none !important; }
html[data-mushaf-view] [data-reading-controls] [data-mushaf-header-actions] {
  width: auto; display: flex; gap: 8px; align-items: center; justify-content: center; direction: ltr;
}
html[data-mushaf-view] [data-reading-controls] [data-mushaf-header-actions] > .mushaf-tooltip-ayah-navigation,
html[data-mushaf-view] [data-reading-controls] [data-mushaf-header-actions] > [data-recitation-toggle],
html[data-mushaf-view] [data-reading-controls] [data-mushaf-header-actions] > [data-recitation-section-repeat-toggle],
html[data-mushaf-view] [data-reading-controls] .settings-trigger {
  display: inline-grid !important; place-items: center; width: 44px; height: 44px; min-width: 44px; padding: 0; margin: 0; flex-shrink: 0;
}
html[data-mushaf-view] [data-reading-controls] .mushaf-tooltip-ayah-navigation--previous { order: 0; }
html[data-mushaf-view] [data-reading-controls] .settings-menu { order: 1; margin: 0; display: flex; align-items: center; }
html[data-mushaf-view] [data-reading-controls] [data-mushaf-header-actions] > [data-recitation-toggle] { order: 2; width: 52px; height: 52px; min-width: 52px; }
html[data-mushaf-view] [data-reading-controls] [data-recitation-toggle] svg { width: 30px; height: 30px; }
html[data-mushaf-view] [data-reading-controls] [data-recitation-section-repeat-toggle] { order: 3; }
html[data-mushaf-view] [data-reading-controls] .mushaf-tooltip-ayah-navigation--next { order: 4; }
html[data-mushaf-view] .ayah-view [data-reading-controls] .settings-menu .settings-popover {
  position: fixed; top: auto !important; bottom: calc(80px + env(safe-area-inset-bottom)); left: 50%; right: auto;
  width: min(380px, calc(100vw - 24px)); min-width: 0; box-sizing: border-box;
  max-height: calc(100dvh - 104px - env(safe-area-inset-bottom));
  transform: translate(-50%, 5px); z-index: 140;
}
html[data-mushaf-view] [data-reading-controls] .settings-menu.is-open .settings-popover { transform: translate(-50%, 0); }
html[data-mushaf-view] [data-reading-controls] .settings-view-selection {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 44px; margin-bottom: 8px; padding: 8px; font: inherit;
  border-radius: 8px;
}
html[data-mushaf-view] [data-reading-controls] .settings-view-selection svg { width: 24px; height: 24px; }
html[data-mushaf-view="single-column"] .ayah-view .ayah-view-track { margin-top: calc(10px + var(--mushaf-chrome-height)); }

html:not([data-slide-view="open"])[data-mushaf-view="single-column"] .mushaf-translation-tooltip { overflow: visible; }
html:not([data-slide-view="open"])[data-mushaf-view="single-column"] .mushaf-translation-tooltip .mushaf-tooltip-controls,
html:not([data-slide-view="open"])[data-mushaf-view="single-column"] .mushaf-translation-tooltip .mushaf-tooltip-header-start { display: none !important; }
html:not([data-slide-view="open"])[data-mushaf-view="single-column"] .mushaf-translation-tooltip .mushaf-tooltip-header,
html:not([data-slide-view="open"])[data-mushaf-view="single-column"] .mushaf-translation-tooltip .mushaf-tooltip-window-controls { display: contents; }
html:not([data-slide-view="open"])[data-mushaf-view="single-column"] .mushaf-translation-tooltip .mushaf-tooltip-close {
  position: absolute; right: -10px; top: -10px; width: 30px; height: 30px; min-width: 30px; margin: 0;
  border-radius: 50%; background: var(--c-paper, #fffdf7); border: 1px solid #b7bdb6; z-index: 5;
}
html[data-slide-view="open"] [data-reading-controls] { display: none !important; }

html[data-mushaf-view] .ayah-view[data-ayah-view] [data-reading-controls] [data-mushaf-header-actions] > [data-recitation-toggle] { display: inline-grid !important; }

@media (orientation: landscape) {
  .mushaf-slide-view-ayah-text { font-size: clamp(3rem, 14vh, 8rem); line-height: 1.8; padding: .08em .1em .12em; }
  .mushaf-slide-view-ayah-body { padding: .03em .08em .06em; }
}

.welcome-confirm[hidden], [data-view-orientation-badge][hidden] { display: none !important; }

.view-preview-frame { position: relative; display: block; grid-row: span 2; }
.view-orientation-badge { position: absolute; top: 6px; left: 6px; right: 6px; padding: 6px 8px; border-radius: 6px; color: #fff; background: #4b5551; font-size: .78rem; font-weight: 600; text-align: center; line-height: 1.5; }
.view-choices button:disabled, .view-choices button:disabled:hover { cursor: not-allowed; border-color: var(--c-line); background: var(--c-page); box-shadow: none; }
.view-choices button:disabled .view-preview { filter: grayscale(1); opacity: .45; }
.view-choices button:disabled > strong, .view-choices button:disabled > small { opacity: .5; }
/* Compact reading chrome shares the slide controls' translucent surface. */
:root { --reader-control-fill: rgba(0, 0, 0, .5); --reader-control-ink: #fff; --reader-control-line: rgba(255, 255, 255, .22); }
html[data-mushaf-view] .ayah-view .mushaf-stage-meta .mushaf-page-meta {
  height: 42px; min-height: 42px; padding: 0 6px; font-size: 19.6px;
  color: var(--reader-control-ink); background: var(--reader-control-fill);
}
html[data-mushaf-view] .ayah-view .mushaf-page-meta button { min-height: 26px; height: 26px; color: inherit; }
html[data-mushaf-view] .ayah-view .mushaf-page-meta .mushaf-page-arrow { width: 26px; height: 26px; }
html[data-mushaf-view] .ayah-view .mushaf-page-meta .mushaf-page-arrow svg { width: 16px; height: 16px; }
html[data-mushaf-view] .ayah-view .mushaf-surah-trigger { font-family: inherit; direction: inherit; }
html[dir="ltr"] .mushaf-page-juz { text-align: left; }
html[data-mushaf-view] .ayah-view .mushaf-stage-footer,
html[data-mushaf-view] .ayah-view [data-content-stage-footer],
html[data-mushaf-view] .ayah-view .content-tabs-row {
  background: var(--reader-control-fill); color: var(--reader-control-ink);
}
html[data-mushaf-view] .ayah-view .content-tabs-row .content-tab { color: inherit; }
html[data-mushaf-view] .ayah-view [data-reading-controls] [data-mushaf-header-actions] > button,
html[data-mushaf-view] .ayah-view [data-reading-controls] .settings-trigger {
  --repeat-knockout: var(--reader-control-fill);
  position: relative; border: 1px solid var(--reader-control-line); border-radius: 50%;
  color: var(--reader-control-ink); background: var(--reader-control-fill); opacity: 1;
}
html[data-mushaf-view] .ayah-view [data-reading-controls] button:disabled { opacity: .38; }
html[data-mushaf-view] .ayah-view [data-reading-controls] .is-repeat-off { opacity: .62; }
html[data-mushaf-view] .ayah-view [data-reading-controls] [data-recitation-toggle] .recitation-icon {
  position: absolute; width: 78%; height: 78%; inset: 11%; margin: 0;
}
html[data-mushaf-view] .ayah-view [data-reading-controls] [data-recitation-toggle] .recitation-progress { width: 100%; height: 100%; }
html[data-mushaf-view] .ayah-view [data-reading-controls] .settings-trigger svg { width: 23px; height: 23px; }
html[data-mushaf-view] .ayah-view [data-reading-controls] .settings-menu .settings-popover {
  width: min(320px, calc(100vw - 24px)); max-height: min(540px, calc(100dvh - 104px - env(safe-area-inset-bottom)));
  padding: 6px; font-size: .82rem; color: var(--c-ink);
}
.settings-grid { gap: 5px; }
.settings-group { padding: 6px; border-radius: 7px; }
.settings-sources { padding: 0; }
.settings-group h2 { margin-bottom: 4px; }
.account-google-retry { border: 0; background: transparent; color: var(--c-accent); font: inherit; text-decoration: underline; cursor: pointer; padding: 6px; }
.account-google-retry:disabled { opacity: .5; cursor: wait; }
html[dir="ltr"] .ayah-view .mushaf-page-meta { direction: ltr; }
html[data-mushaf-view] .ayah-view .column-stage-footer .content-ayah-sticky { color: inherit; background: transparent; }
html[data-mushaf-view] .ayah-view .content-tabs,
html[data-mushaf-view] .ayah-view .content-tabs .content-tab { background: transparent; color: var(--reader-control-ink); }
html[data-mushaf-view] .ayah-view .content-tabs .content-tab.is-active { border-bottom: 3px solid #7ddeab; }
html[data-mushaf-view] .ayah-view .content-column-close,
html[data-mushaf-view] .ayah-view .content-ayah-sticky-title,
html[data-mushaf-view] .ayah-view .mushaf-surah-progress-value { color: var(--reader-control-ink); }
html[dir="ltr"] [data-slide-view-heading],
html[dir="ltr"] [data-slide-view-surah],
html[dir="ltr"] [data-slide-view-page],
html[dir="ltr"] [data-slide-view-juz],
html[dir="ltr"] .content-ayah-sticky-title { direction: ltr; }
html[dir="ltr"] .mushaf-page-arrow svg { transform: rotate(180deg); }
html[dir="ltr"] .mushaf-page-arrow--next svg { transform: none; }
.mushaf-surah-progress-value { direction: ltr; unicode-bidi: isolate; }

/* One player is shared by all views. Explicit square bounds prevent flex
   shrink and old minimum sizes from turning circles into ellipses. */
html[data-mushaf-view] .reader-player-actions[data-mushaf-header-actions] {
  --player-gap: clamp(2px, .8vw, 8px);
  --player-size: clamp(32px, calc((100vw - 44px - 6 * var(--player-gap)) / 7), 50px);
  display: flex; align-items: center; justify-content: center;
  direction: ltr; width: auto; max-width: 100%; gap: var(--player-gap);
}
html[data-slide-view="open"] .reader-player-actions[data-mushaf-header-actions] { --player-size: clamp(28px, 7vw, 44px); }
html[data-mushaf-view] .reader-player-actions[data-mushaf-header-actions] > :is(.reader-control, .mushaf-tooltip-ayah-navigation, .recitation-play-button, .mushaf-tooltip-repeat, [data-view-selection]),
html[data-mushaf-view] .reader-player-actions[data-mushaf-header-actions] .settings-trigger {
  --button-size: var(--player-size);
  display: inline-grid !important; place-items: center; position: relative;
  width: var(--button-size); min-width: var(--button-size); max-width: var(--button-size);
  height: var(--button-size); min-height: var(--button-size); max-height: var(--button-size);
  flex: 0 0 var(--button-size); aspect-ratio: 1; box-sizing: border-box;
  padding: 0; margin: 0; border: 1px solid var(--reader-control-line); border-radius: 50%;
  background: var(--reader-control-fill); color: var(--reader-control-ink);
  --repeat-knockout: var(--reader-control-fill);
}
html[data-mushaf-view] .reader-player-actions[data-mushaf-header-actions] > [data-recitation-toggle] { --button-size: calc(var(--player-size) + 8px); order: 3; }
html[data-mushaf-view] .reader-player-actions[data-mushaf-header-actions] > .settings-menu { order: 0; margin: 0; }
html[data-mushaf-view] .reader-player-actions[data-mushaf-header-actions] > [data-account-button] { order: 6; }
html[data-mushaf-view] .reader-player-actions[data-mushaf-header-actions] > [data-player-report] { order: 2; }
html[data-mushaf-view] .reader-player-actions[data-mushaf-header-actions] > [data-reciter-trigger] { order: 5; }
html[data-mushaf-view] .reader-player-actions[data-mushaf-header-actions] > [data-recitation-section-repeat-toggle] { order: 4; }
html[data-mushaf-view] .reader-player-actions[data-mushaf-header-actions] > [data-view-selection] { order: 1; }
html[data-mushaf-view] .reader-player-actions[data-mushaf-header-actions] > button > svg,
html[data-mushaf-view] .reader-player-actions[data-mushaf-header-actions] .settings-trigger svg,
html[data-mushaf-view] .reader-player-actions[data-mushaf-header-actions] .settings-account-icon { width: 58%; height: 58%; }
html[data-mushaf-view] .reader-player-actions[data-mushaf-header-actions] .settings-account-icon svg { width: 100%; height: 100%; }
html[data-mushaf-view] .reader-player-actions[data-mushaf-header-actions] [data-recitation-toggle] .recitation-icon { position: absolute; width: 78%; height: 78%; inset: 11%; margin: 0; }
html[data-mushaf-view] .reader-player-actions[data-mushaf-header-actions] [data-recitation-toggle] .recitation-progress { width: 100%; height: 100%; }
html[data-slide-view="open"] .mushaf-translation-tooltip .mushaf-tooltip-controls { display: none !important; }
html[data-slide-view="open"] .mushaf-slide-view-controls { width: 100%; max-width: 100%; }
html[data-slide-view="open"] .reader-player-actions .settings-popover {
  position: fixed; inset: auto auto calc(80px + env(safe-area-inset-bottom)) 50%;
  width: min(320px, calc(100vw - 24px)); min-width: 0;
  max-height: min(540px, calc(100dvh - 104px)); box-sizing: border-box;
  transform: translateX(-50%); padding: 6px; font-size: .82rem; color: var(--c-ink);
}
html[data-slide-view="open"] .reader-player-actions .settings-menu.is-open .settings-popover { transform: translateX(-50%); }
.reciter-selector-heading { display: flex; align-items: center; justify-content: flex-end; direction: ltr; margin-bottom: 6px; }
.reciter-selector-popover .recitation-status[hidden] { display: none; }
.reciter-selector-heading button { display: grid; place-items: center; width: 30px; height: 30px; padding: 5px; border: 0; border-radius: 50%; background: var(--c-mint); color: var(--c-ink); cursor: pointer; }
.reciter-selector-heading svg { width: 20px; height: 20px; }
.mushaf-slide-view-bismillah { display: block; font-family: var(--font-quran-arabic); font-size: 1em; line-height: inherit; padding-bottom: .12em; }

/* Match the header's text line boxes to the adjacent tab titles. */
html[data-mushaf-view] .ayah-view .mushaf-page-meta { box-sizing: border-box; line-height: 1; }
html[data-mushaf-view] .ayah-view .mushaf-page-meta button { display: inline-flex; align-items: center; justify-content: center; gap: 3px; padding-block: 0; line-height: 1; box-sizing: border-box; }
html[data-mushaf-view] .ayah-view .mushaf-page-meta .mushaf-surah-trigger { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[lang="en"][data-mushaf-view] .ayah-view .mushaf-stage-meta .mushaf-page-meta { font-size: clamp(14px, 1.54vw, 16.8px); }
/* Height-fitted Quran pages can be very narrow on landscape phones. */
html[data-mushaf-view="two-column"] .ayah-view .mushaf-stage-meta {
  container: mushaf-meta / inline-size;
}
@container mushaf-meta (max-width: 260px) {
  html[lang][data-mushaf-view="two-column"] .ayah-view .mushaf-stage-meta .mushaf-page-meta {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: 18px 20px;
    align-content: center;
    gap: 0 4px;
    padding-inline: 4px;
    font-size: clamp(10px, 8cqi, 14px);
  }
  .mushaf-page-meta .mushaf-page-juz { grid-area: 1 / 1; }
  .mushaf-page-meta .mushaf-page-surah { grid-area: 1 / 2; max-width: 100%; }
  .mushaf-page-meta .mushaf-page-navigation { grid-area: 2 / 1 / 3 / -1; gap: 1px; }
  html[data-mushaf-view="two-column"] .ayah-view .mushaf-stage-meta .mushaf-page-meta button {
    height: 18px; min-height: 18px; gap: 2px;
  }
  html[data-mushaf-view="two-column"] .ayah-view .mushaf-page-meta .mushaf-page-arrow {
    width: 18px; height: 18px;
  }
  html[data-mushaf-view="two-column"] .ayah-view .mushaf-page-meta .mushaf-page-arrow svg {
    width: 12px; height: 12px;
  }
}
html[lang="en"] .content-tabs .content-tab { font-size: clamp(14px, 1.4vw, 16.8px); line-height: 1.25; padding-inline: 3px; min-width: 0; }
html[lang="en"] .mushaf-tooltip-tab { font-size: clamp(10px, 2.8vw, 12px); line-height: 1.25; padding-inline: 3px; min-width: 0; }
html[lang="en"] .mushaf-tooltip-tabs { direction: ltr; grid-template-columns: 1.6fr 1fr 1.15fr 1.1fr 1.1fr; }
html:not([data-slide-view="open"])[lang="en"][data-mushaf-view="single-column"] .mushaf-tooltip-tab { white-space: normal; overflow-wrap: anywhere; padding-inline: 1px; }
html[lang="en"] .noor-selector-trigger { font-size: .9rem; }
html[lang="en"] .noor-selector-count { font-size: .75rem; }
html[lang="en"] .mushaf-slide-view-top button { font-size: var(--slide-meta-font-size); }
html[lang="en"] .settings-group :is(h2, label, button, select) { font-size: .75rem; line-height: 1.35; }
html[lang="en"] .settings-group :is(h2, label) { white-space: normal; overflow-wrap: anywhere; }
html[lang="en"] .view-choices button strong { font-size: .92rem; }
html[lang="en"] .view-choices button small { font-size: .74rem; }

/* Reader section sizing and view-specific Settings. */
html[data-mushaf-view="two-column"] [data-tooltip-translation-toggle] { display: none; }
html[data-slide-view="open"] .reader-player-actions .settings-popover { display: none; }
html[data-mushaf-view] .ayah-view .content-tabs .content-tab { font-size: 1.4em; }
html[lang="en"][data-mushaf-view] .ayah-view .content-tabs .content-tab { font-size: clamp(14px, 1.4vw, 16.8px); }
html[data-mushaf-view] .ayah-view .mushaf-stage-footer .mushaf-surah-progress-value { font-size: .98em; }
html[data-mushaf-view] .ayah-view .column-stage-footer .content-ayah-sticky-title { font-size: 1.28em; }
html[data-mushaf-view] .ayah-view [data-content-stage-footer] {
  background: #80807c; isolation: isolate;
}
.noor-selector-trigger, .noor-selector-search,
.mushaf-tooltip-source-dialog .mushaf-tooltip-search { background: var(--c-paper); color: var(--c-ink); }

/* Readable view captions in Arabic and Persian, including compact previews. */
html:is([lang="fa"], [lang="ar"]) .view-choices strong { font-size: 1.3rem; line-height: 1.5; }
html:is([lang="fa"], [lang="ar"]) .view-choices small { font-size: 1.05rem; line-height: 1.65; }

html[data-mushaf-view="two-column"] .word-by-word-content-pane .word-by-word-section {
  box-sizing: border-box;
  padding-top: 16px;
  min-width: 0;
}
html[data-mushaf-view="two-column"] .word-by-word--panel {
  box-sizing: border-box;
  min-width: 0;
  background: var(--c-paper);
}
html[data-mushaf-view="two-column"] .word-by-word--panel .word-gloss-token {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

html[data-slide-view="open"] .mushaf-slide-view [data-slide-translation-scroll] {
  flex: 0 1 auto;
  padding-block: 0;
  line-height: 1.65;
  overflow-x: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
html[data-slide-view="open"] .mushaf-slide-view [data-slide-translation-scroll] p {
  margin-block: 0;
  line-height: inherit;
}
/* Keep the center track occupied when corner information is hidden. */
.mushaf-slide-view-top-center { grid-column: 2; grid-row: 1; }
.mushaf-slide-view-top > .mushaf-slide-view-surah { grid-column: 1; grid-row: 1; }
.mushaf-slide-view-top > .mushaf-slide-view-juz { grid-column: 3; grid-row: 1; }

.welcome-title-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 10px; direction: ltr; margin-bottom: 18px; }
.welcome-title-row #startup-view-title { margin: 0; direction: rtl; text-align: center; }
html[dir="ltr"] .welcome-title-row #startup-view-title { direction: ltr; }
.welcome-language-cycle { padding: 7px 10px; border: 1px solid var(--c-line); border-radius: 9px; background: var(--c-mint); color: var(--c-accent); font: 700 .85rem Arial, sans-serif; cursor: pointer; }
.welcome-close { display: grid; place-items: center; width: 40px; height: 40px; padding: 8px; border: 1px solid var(--c-line); border-radius: 50%; background: var(--c-mint); color: var(--c-accent); cursor: pointer; }
.welcome-close svg { width: 22px; height: 22px; }
.welcome-close:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.welcome-account-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin-top: 16px; padding: 9px 12px; border: 1px solid var(--c-line); border-radius: 9px; background: var(--c-paper); color: var(--c-accent); font: inherit; cursor: pointer; }
.welcome-account-button svg { width: 23px; height: 23px; flex: 0 0 23px; }
.welcome-account-button[data-state="signed-out"] .account-icon--in,
.welcome-account-button[data-state="signed-in"] .account-icon--out { display: none; }
.welcome-account-button[data-state="signed-in"] .account-icon--in,
.welcome-account-button[data-state="signed-out"] .account-icon--out { display: block; }
.welcome-account-button:disabled { opacity: .5; cursor: wait; }
.welcome-account-copy { min-width: 0; }
.welcome-account-copy [data-welcome-account-email] { display: block; overflow-wrap: anywhere; font: .85em Arial, sans-serif; color: var(--c-muted); margin-block: 3px; }
.welcome-account-copy [data-welcome-account-email][hidden] { display: none; }
.reader-player-actions [data-account-button][data-state="signed-out"] .account-icon--in,
.reader-player-actions [data-account-button][data-state="signed-in"] .account-icon--out { display: none; }
.reader-player-actions [data-account-button][data-state="signed-in"] .account-icon--in,
.reader-player-actions [data-account-button][data-state="signed-out"] .account-icon--out { display: block; }
.welcome-dialog .remember-view { margin-top: 14px; }
.welcome-dialog.is-previewing .welcome-account-button { margin-top: 8px; padding-block: 5px; }

:root { --reader-footer-fill: #80807c; }
html[data-account-state="signed-in"] { --reader-control-fill: rgba(14, 78, 49, .5); --reader-footer-fill: #86a695; }
html[data-mushaf-view] .ayah-view [data-content-stage-footer] { background: var(--reader-footer-fill); }
html[data-account-state="signed-in"] .mushaf-slide-view { --slide-icon-fill: var(--reader-control-fill); }
html[data-account-state="signed-in"] :is(.mushaf-slide-view-close, .mushaf-slide-view-fullscreen) { background: var(--reader-control-fill); }
html[data-slide-view="open"] .reader-player-actions[data-mushaf-header-actions] { --player-size: var(--slide-icon, 60px); gap: var(--slide-icon-gap, 10px); }
html[data-slide-view="open"] .reader-player-actions[data-mushaf-header-actions] > [data-recitation-toggle] { --button-size: var(--slide-play, 80px); }

.mushaf-slide-view-options-popover { box-sizing: border-box; width: min(320px, calc(100vw - 16px)); padding: 12px; }
.mushaf-slide-view-content-row { flex-direction: column; align-items: stretch; gap: 6px; }
.mushaf-slide-view-content-row .mushaf-stop-at-column-title { font-size: 1.1em; text-align: start; }
.mushaf-slide-view-content-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
.mushaf-slide-view-content-choices .mushaf-stop-at-option { width: 100%; box-sizing: border-box; white-space: normal; }
.mushaf-slide-view-option-switch.recitation-continuous-toggle { box-sizing: border-box; }
.mushaf-slide-translation-font-setting {
  box-sizing: border-box; display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 6px 8px; border: 1px solid var(--c-line);
  border-radius: 8px; color: var(--c-ink); background: var(--c-surface); font-size: .9em;
}

html:not([data-slide-view="open"]) .mushaf-tooltip-word-gloss { font-size: inherit; }
html:not([data-slide-view="open"]) .mushaf-tooltip-word-gloss .word-gloss-arabic { font-size: 1em; }
html:not([data-slide-view="open"]) .mushaf-tooltip-word-gloss .word-gloss-translation { font-size: .85em; }
[data-word-gloss-bismillah] { display: none; }
html[data-slide-view="open"] [data-word-gloss-bismillah] { display: block; flex: 0 0 100%; font-family: var(--font-quran-arabic); font-size: 1em; line-height: 1.8; text-align: center; }
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-word-gloss .word-gloss-arabic { min-width: 0; max-width: 100%; font-size: 1em; line-height: 1.8; overflow-wrap: anywhere; white-space: normal; }
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-word-gloss .word-gloss-translation { font-size: max(12px, .3em); line-height: 1.4; max-width: 10em; }
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-word-gloss .word-gloss-token { box-sizing: border-box; min-width: min(1.4em, 100%); max-width: 100%; grid-template-columns: minmax(0, 1fr); padding: .05em .12em .08em; }
html[data-slide-view="open"] .mushaf-slide-view .mushaf-tooltip-word-gloss { flex: 0 1 auto; gap: .12em .25em; touch-action: pan-y; overscroll-behavior: contain; }

/* Seal the sticky author row against the panel's clipping edge. */
html:not([data-slide-view="open"]) .mushaf-tooltip-tab-panel { padding-top: 0; }
.mushaf-tooltip-source-row { isolation: isolate; }
.mushaf-tooltip-source-dialog .mushaf-tooltip-options { flex: 0 1 auto; min-height: 123px; max-height: 50vh; grid-auto-rows: 41px; }
.mushaf-tooltip-source-dialog .mushaf-tooltip-option { height: 41px; min-height: 41px; }

.noor-selection-strip { display: grid; grid-template-columns: 26px minmax(0, 1fr) 26px; align-items: center; gap: 4px; width: 100%; min-width: 0; direction: ltr; }
.noor-selection-strip .noor-selection-nav { width: 100%; max-width: 100%; min-width: 0; direction: ltr; }
.noor-source-scroll { display: grid; place-items: center; box-sizing: border-box; width: 26px; height: 30px; padding: 0; border: 1px solid var(--c-line); border-radius: 50%; color: var(--c-accent); background: var(--c-paper); font: 24px/1 Arial, sans-serif; cursor: pointer; }
.noor-source-scroll:disabled { opacity: .3; cursor: default; }
.noor-selection-strip:not(.is-overflowing) .noor-source-scroll { visibility: hidden; }
.mushaf-tooltip-hadith .noor-sticky-chrome { margin-top: 0; padding-top: 0; background: var(--c-surface); }

/* Large landscape displays retain a calm reading size for short verses. */
@media (orientation: landscape) and (min-width: 1200px) {
  .mushaf-slide-view-ayah-text { font-size: clamp(3rem, 7.4vh, 5rem); }
}
.welcome-account-copy { display: grid; gap: 3px; min-width: 0; }
.welcome-account-copy small { font-size: .82em; line-height: 1.5; font-weight: 400; opacity: .8; }
.settings-sources { display: grid; gap: 6px; }
.settings-popover { max-height: calc(100dvh - 105px); overflow-y: auto; }
.search-tab-body { padding: 14px; min-width: 0; height: 100%; box-sizing: border-box; overflow-y: auto; scrollbar-width: none; }
.search-tab-body::-webkit-scrollbar { display: none; }
.quran-search-form { position: sticky; top: -14px; z-index: 2; padding: 12px 0; background: var(--c-surface); }
.quran-search-form label { display: block; margin-bottom: 8px; font-weight: 700; }
.quran-search-form > div { display: flex; gap: 8px; }
.quran-search-form input { min-width: 0; width: 100%; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-paper); color: var(--c-ink); font: inherit; }
.quran-search-form button { flex: 0 0 auto; border: 1px solid var(--c-line); border-radius: 12px; padding: 8px 14px; background: var(--c-paper); color: var(--c-accent); font: inherit; cursor: pointer; }
[data-search-status] { font-size: .9em; margin: 6px 0 12px; opacity: .8; }
.quran-search-result { display: block; min-width: 0; padding: 12px; margin-bottom: 8px; border: 1px solid var(--c-line); border-radius: 14px; background: var(--c-paper); color: var(--c-ink); text-decoration: none; }
.quran-search-result:hover, .quran-search-result:focus-visible { border-color: var(--c-accent); }
.quran-search-result strong { display: block; font-size: .85em; color: var(--c-accent); margin-bottom: 6px; }
.quran-search-verse { display: block; font-family: var(--font-quran-arabic); font-size: 1.2em; line-height: 2.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quran-search-verse mark { background: #d9e8bf; color: #174b30; border-radius: 4px; }
.quran-search-pagination { padding: 12px 0; }
.quran-search-pagination .noor-selection-jump { font-variant-numeric: tabular-nums; }
.quran-search-pagination button:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.quran-search-pagination[hidden] { display: none; }
.mushaf-tooltip-tab-panel[data-tooltip-tab-panel="search"] { scrollbar-width: none; overflow: hidden; }
.mushaf-tooltip-tab-panel[data-tooltip-tab-panel="search"]:not([hidden]) { display: flex; flex-direction: column; }
.mushaf-tooltip-tab-panel[data-tooltip-tab-panel="search"]::-webkit-scrollbar { display: none; }
.mushaf-translation-tooltip [data-search-tab] { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; height: auto; padding: 0; overflow: hidden; min-width: 0; }
.mushaf-translation-tooltip .quran-search-form { position: static; flex: 0 0 auto; padding: 4px 0 6px; font-size: max(13px, .75em); }
.mushaf-translation-tooltip .quran-search-form label { margin-bottom: 4px; }
.mushaf-translation-tooltip .quran-search-form > div { gap: 4px; }
.mushaf-translation-tooltip .quran-search-form input { padding: 6px 7px; border-radius: 8px; font-size: max(16px, 1em); }
.mushaf-translation-tooltip .quran-search-form button { padding: 5px 8px; border-radius: 8px; }
.mushaf-translation-tooltip [data-search-status] { flex: 0 0 auto; font-size: max(11px, .7em); padding: 3px 0 6px; }
.mushaf-translation-tooltip [data-search-results] { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.mushaf-translation-tooltip [data-search-results]::-webkit-scrollbar { display: none; }
.mushaf-translation-tooltip .quran-search-result { padding: 7px; margin-bottom: 5px; border-radius: 9px; }
.mushaf-translation-tooltip .quran-search-result strong { font-size: max(11px, .65em); margin-bottom: 2px; }
.mushaf-translation-tooltip .quran-search-verse { font-size: .9em; line-height: 2; }
.mushaf-translation-tooltip .quran-search-pagination {
  position: relative; flex: 0 0 auto; z-index: 2; padding: 3px 0; background: var(--c-surface);
}
.mushaf-translation-tooltip .quran-search-pagination .noor-selection-rail { gap: 6px; padding: 6px 9px; }
.mushaf-translation-tooltip .quran-search-pagination .noor-selection-jump {
  flex-basis: 25px; width: 25px; height: 25px; font-size: 12px;
}
.mushaf-translation-tooltip .quran-search-pagination .noor-source-scroll { flex-basis: 22px; width: 22px; height: 26px; }
.activity-dialog { box-sizing: border-box; width: min(600px, calc(100vw - 28px)); max-height: calc(100dvh - 36px); margin: auto; padding: 22px; overflow-y: auto; border: 1px solid var(--c-line); border-radius: 24px; background: var(--c-surface); color: var(--c-ink); box-shadow: 0 24px 80px #0003; font: inherit; }
html[dir="rtl"] .activity-dialog { font-size: 18px; }
.activity-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.activity-dialog h2 { margin: 0; font-size: 1.35em; }
.activity-dialog button { font: inherit; color: inherit; cursor: pointer; }
.activity-dialog header button { border: 0; border-radius: 50%; width: 36px; height: 36px; font: 26px/1 Arial; background: var(--c-paper); }
.activity-month { display: grid; grid-template-columns: 36px 36px minmax(0, 1fr) 36px 36px; align-items: center; gap: 6px; direction: ltr; }
.activity-month button { width: 36px; height: 36px; border: 1px solid var(--c-line); background: var(--c-paper); border-radius: 50%; font: 24px/1 Arial; }
.activity-month strong { min-width: 0; text-align: center; overflow-wrap: anywhere; line-height: 1.25; }
.activity-weekdays, .activity-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; direction: inherit; }
.activity-weekdays { margin: 12px 0 6px; font-size: .75em; text-align: center; opacity: .7; }
.activity-day { position: relative; min-height: 36px; padding: 6px 0; border: 1px solid transparent; border-radius: 10px; background: var(--c-paper); }
.activity-day.has-activity::after { content: ''; position: absolute; width: 4px; height: 4px; background: var(--c-accent); border-radius: 50%; bottom: 3px; left: calc(50% - 2px); }
.activity-day[aria-pressed="true"] { color: white; background: #236147; border-color: #236147; }
.activity-day[aria-pressed="true"]::after { background: white; }
.activity-totals { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; margin: 14px 0 8px; }
.activity-totals button { display: grid; align-content: start; gap: 4px; text-align: center; border: 1px solid var(--c-line); border-radius: 12px; padding: 9px 3px; background: var(--c-paper); min-width: 0; overflow-wrap: anywhere; }
.activity-totals button[aria-pressed="true"] { border-color: #236147; box-shadow: inset 0 0 0 1px #236147; }
.activity-totals span, .activity-totals small { font-size: .68em; line-height: 1.4; }
.activity-totals strong { font-size: .85em; color: var(--c-accent); }
.activity-lifetime { margin: 0 0 12px; font-size: .8em; text-align: center; }
.activity-sections { max-height: 230px; overflow-y: auto; }
.activity-passages h3 { font-size: .9em; margin: 10px 0; }
.activity-date-header { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 8px; direction: ltr; }
.activity-date-header h3 { text-align: right; }
.activity-day-total { font-size: .75em; font-weight: 600; text-align: left; }
.activity-date-start { font-size: .75em; font-weight: 600; text-align: center; }
.activity-passage { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 8px; color: inherit; padding: 9px 0; border-bottom: 1px solid var(--c-line); }
.activity-passage-range { font-size: .82em; overflow-wrap: anywhere; }
.activity-session-duration { text-align: end; }
.activity-passage-endpoint { color: var(--c-accent); text-decoration: none; text-underline-offset: 3px; }
.activity-passage-endpoint:hover, .activity-passage-endpoint:focus-visible { text-decoration: underline; }
.activity-session-start { font-size: .75em; direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; white-space: nowrap; }
.activity-session-duration { opacity: .75; font-size: .7em; }
.activity-empty { font-size: .9em; text-align: center; padding: 12px; opacity: .75; }
.activity-dialog footer { border-top: 1px solid var(--c-line); margin-top: 16px; padding-top: 10px; font-size: .8em; }
.activity-dialog footer button { background: var(--c-paper); border: 1px solid var(--c-line); border-radius: 10px; padding: 8px 12px; }
.activity-rule { margin: 8px 0 10px; line-height: 1.6; }
.mushaf-bookmark-toggle {
  grid-column: 1; grid-row: 1; justify-self: start; display: grid; place-items: center;
  box-sizing: border-box; flex: 0 0 auto; width: clamp(22px, calc(var(--mushaf-page-width, 390px) * .075), 32px);
  aspect-ratio: 1; padding: 3px; border: 0; border-radius: 7px; color: inherit;
  background: transparent; cursor: pointer; touch-action: manipulation;
}
.mushaf-bookmark-toggle svg { width: 100%; height: 100%; }
.mushaf-bookmark-toggle[aria-pressed="true"], .bookmark-remove { --bookmark-fill: currentColor; }
.mushaf-bookmark-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.mushaf-bookmark-toggle:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.mushaf-bookmark-toggle:disabled { opacity: .4; cursor: default; }
.activity-view-tabs {
  display: flex; gap: 5px; padding: 4px; margin: 12px 0 14px; border: 1px solid var(--c-line);
  border-radius: 14px; background: var(--c-paper);
}
.activity-view-tab {
  display: flex; align-items: center; justify-content: center; gap: 7px; flex: 1 1 0;
  min-width: 0; padding: 9px 5px; border: 1px solid transparent; border-radius: 10px;
  font-size: .8em !important; line-height: 1.35; background: transparent;
}
.activity-view-tab[aria-selected="true"] {
  background: var(--c-surface); border-color: var(--c-line); color: var(--c-accent);
  font-weight: 700; box-shadow: 0 2px 7px #10251b0c;
}
.bookmark-tab-count {
  display: grid; place-items: center; min-width: 1.5em; height: 1.5em; padding-inline: 3px;
  box-sizing: border-box; border-radius: 100px; font-size: .85em;
  background: color-mix(in srgb, var(--c-accent) 10%, transparent);
}
.bookmark-search-label { display: block; margin-bottom: 6px; font-size: .8em; }
[data-bookmarks-search] {
  box-sizing: border-box; width: 100%; min-width: 0; padding: 10px 12px;
  border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-paper);
  color: inherit; font: inherit; font-size: .85em;
}
.bookmarks-count, .bookmarks-status { font-size: .78em; margin: 10px 0; color: var(--c-muted); }
.bookmarks-status:empty { display: none; }
.bookmarks-list { display: grid; gap: 8px; max-height: min(55dvh, 460px); overflow-y: auto; scrollbar-width: none; }
.bookmarks-list::-webkit-scrollbar { display: none; }
.bookmark-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 8px;
  padding: 8px 10px; border: 1px solid var(--c-line); border-radius: 14px; background: var(--c-paper);
}
.bookmark-link { display: block; min-width: 0; color: inherit; text-decoration: none; }
.bookmark-link strong { display: block; font-size: .8em; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bookmark-verse { display: block; font-family: MeQuran, serif; font-size: .94em; line-height: 1.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bookmark-link:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }
.bookmark-row:hover { border-color: color-mix(in srgb, var(--c-accent) 40%, var(--c-line)); }
.bookmark-row-actions { display: flex; align-items: center; gap: 2px; }
.bookmark-remove, .bookmark-note { box-sizing: border-box; display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; padding: 8px; border: 0; border-radius: 50%; color: var(--c-accent) !important; background: transparent; touch-action: manipulation; }
.bookmark-remove svg, .bookmark-note svg { width: 100%; height: 100%; }
.bookmark-remove:hover, .bookmark-note:hover, .bookmark-note.has-note { background: color-mix(in srgb, var(--c-accent) 9%, transparent); }
.bookmark-note:focus-visible, .bookmark-remove:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.bookmark-note-preview {
  grid-column: 1 / -1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin: 2px 0 0; padding: 6px 9px; border-inline-start: 2px solid color-mix(in srgb, var(--c-accent) 35%, transparent);
  border-radius: 6px; color: var(--c-muted); background: color-mix(in srgb, var(--c-accent) 4%, transparent);
  font-size: .76em; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere;
}
.bookmark-note-editor { grid-column: 1 / -1; min-width: 0; padding-top: 8px; border-top: 1px solid var(--c-line); }
.bookmark-note-label { display: block; margin-bottom: 6px; font-size: .78em; font-weight: 600; }
.bookmark-note-input {
  box-sizing: border-box; display: block; width: 100%; max-width: 100%; min-height: 104px; max-height: 220px;
  resize: vertical; padding: 10px; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-surface);
  color: var(--c-ink); font-family: inherit; font-size: 14px; line-height: 1.65; scrollbar-width: none;
}
.bookmark-note-input::-webkit-scrollbar { display: none; }
.bookmark-note-input:focus { outline: 2px solid rgba(var(--c-accent-rgb), .16); border-color: var(--c-accent); }
.bookmark-note-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.bookmark-note-count { color: var(--c-muted); font-size: .65em; font-variant-numeric: tabular-nums; }
.bookmark-note-actions { display: flex; gap: 6px; margin-inline-start: auto; }
.activity-dialog .bookmark-note-actions button { min-height: 34px; padding: 5px 12px; border: 1px solid var(--c-line); border-radius: 9px; font-size: .76em; background: var(--c-surface); }
.activity-dialog .bookmark-note-actions .bookmark-note-save { background: var(--c-accent); color: #fff; border-color: var(--c-accent); font-weight: 600; }
.bookmark-note-actions button:disabled { opacity: .5; cursor: wait; }
.bookmarks-pagination { padding: 10px 0 0; font-size: .85em; }
.bookmarks-pagination .noor-selection-rail { gap: 7px; padding: 6px 9px; }
.bookmarks-pagination .noor-selection-jump { min-width: 30px; min-height: 30px; }
.activity-dialog [data-activity-reset], .activity-dialog [data-activity-reset-confirm] { color: #943c35; }
.activity-dialog [data-activity-reset-box] { padding-top: 10px; }
@media (max-width: 450px) { .activity-dialog { padding: 16px; } .activity-weekdays { font-size: .65em; } }



/* Interface direction follows the chosen language; Quran content keeps its own direction. */
:root { --ui-direction: rtl; }
html[dir="ltr"] { --ui-direction: ltr; }
html[dir] .md .rtl,
.surah-dialog-ayah-picker, .single-column-settings-menu,
.mushaf-app-header-actions .content-settings-menu,
.reciter-selector-search, .mushaf-tooltip-source-dialog-header,
.content-tabs-row, .content-toolbar-actions, .mushaf-tooltip-heading,
.mushaf-tooltip-source-row, .tafseer-tab-panel, .noor-resource,
.mushaf-slide-view-content-row, .mushaf-slide-view-content-choices {
  direction: var(--ui-direction);
}
.mushaf-ayah-progress-popover, .reciter-selector-popover, .noor-selector-popover,
.mushaf-tooltip-source-dialog, .noor-metadata, .settings-popover, .sources-dialog,
.account-dialog, .activity-dialog {
  direction: var(--ui-direction); text-align: start;
}
.mushaf-ayah-progress-popover .surah-dialog-ayah-title,
.mushaf-stop-at-column-title, .mushaf-tooltip-source-dialog-title,
.settings-group-title, .sources-contact, .noor-selector-popover label { text-align: start; }
.mushaf-stop-at-popover { font-family: inherit; }
.mushaf-stop-at-popover > .surah-dialog-ayah-title { justify-content: flex-start; }
.mushaf-stop-at-popover > [data-recitation-silence] { margin-bottom: 16px; }
.mushaf-stop-at-column-title { margin: 0; font-size: .9em; }
.mushaf-stop-at-segments {
  display: flex; gap: 0; border: 1px solid var(--c-line); border-radius: 12px;
  background: var(--c-surface); align-items: stretch;
}
.mushaf-stop-at-segments > .mushaf-picker-select,
.mushaf-stop-at-segments .mushaf-stop-at-time-fields > .mushaf-picker-select {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column;
}
.mushaf-stop-at-field-label {
  display: block; box-sizing: border-box; width: 100%;
  color: var(--c-muted); font-size: .74em; font-weight: 400; line-height: 1.3;
  text-align: center; overflow-wrap: anywhere;
}
.mushaf-stop-at-field-value { font-size: 1.1em; font-weight: 600; line-height: 1.4; }
.mushaf-stop-at-segments .mushaf-stop-at-time-fields:not([hidden]) { display: contents; }
.mushaf-stop-at-segments .mushaf-picker-select-trigger {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 64px; border: 0; border-radius: 11px; background: transparent;
  flex: 1; text-align: center; padding: 7px 6px 8px; cursor: pointer;
}
.mushaf-stop-at-segments > .mushaf-picker-select + .mushaf-picker-select,
.mushaf-stop-at-segments > .mushaf-stop-at-time-fields:not([hidden]) .mushaf-picker-select,
.mushaf-stop-at-segments > .mushaf-stop-at-time-fields + .mushaf-picker-select { border-inline-start: 1px solid var(--c-line); }
.mushaf-picker-select-menu {
  box-sizing: border-box; min-width: min(180px, 70vw); max-height: 220px; padding: 5px;
  inset-inline-start: 0; inset-inline-end: auto; text-align: start; border-radius: 12px;
}
.mushaf-stop-at-segments > .mushaf-picker-select:last-child .mushaf-picker-select-menu { inset-inline-start: auto; inset-inline-end: 0; }
/* Keep dropdowns scrollable with mouse, touch and keyboard, without visible bars. */
.mushaf-picker-select-menu, .noor-selector-options, .reciter-selector-options,
.mushaf-tooltip-options, .settings-popover, .slide-backdrop-picker,
.mushaf-ayah-progress-popover { scrollbar-width: none; scrollbar-gutter: auto; }
.mushaf-picker-select-menu::-webkit-scrollbar, .noor-selector-options::-webkit-scrollbar,
.reciter-selector-options::-webkit-scrollbar, .mushaf-tooltip-options::-webkit-scrollbar,
.settings-popover::-webkit-scrollbar, .slide-backdrop-picker::-webkit-scrollbar,
.mushaf-ayah-progress-popover::-webkit-scrollbar { display: none; width: 0; height: 0; }
.mushaf-picker-select-option { min-height: 40px; border-radius: 7px; }
[data-picker-custom] { display: grid; gap: 5px; padding: 8px; }
[data-picker-custom][hidden] { display: none; }
[data-picker-custom] input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 7px; border: 1px solid var(--c-line); border-radius: 8px; font: inherit; background: var(--c-paper); color: var(--c-ink); }
.sources-contact { padding: 12px 16px; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-paper); margin-top: 14px; }
.sources-contact p { display: inline; margin: 0; }
.sources-contact a { color: var(--c-accent); text-underline-offset: 3px; }
.toolbar-popover .settings-sources-button[data-reading-activity-open],
.mushaf-slide-view-options-popover .settings-sources-button[data-reading-activity-open] {
  box-sizing: border-box; display: flex; align-items: center; width: 100%;
  min-height: 36px; padding: 6px 8px; border: 1px solid var(--c-line);
  border-radius: 8px; color: var(--c-ink); background: var(--c-surface);
  cursor: pointer; font: inherit; text-align: start;
}

/* Stable targets avoid hover-induced layout shifts and delayed mobile activation. */
button, [role="button"], [role="switch"], [role="tab"] { touch-action: manipulation; }
button > svg { pointer-events: none; }
.mushaf-slide-view-close { width: 44px; height: 44px; padding: 12px; flex: 0 0 44px; }
.mushaf-slide-view-top-center { position: relative; }
.mushaf-slide-view-top-center .mushaf-slide-view-fullscreen {
  position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%);
}
.mushaf-slide-view-close-dock { position: absolute; top: calc(-22px - var(--slide-card-border-width)); right: calc(-22px - var(--slide-card-border-width)); z-index: 6; display: flex; align-items: center; gap: 6px; direction: ltr; }
.mushaf-slide-view-close-dock .mushaf-slide-view-fullscreen { position: static; transform: none; }
.mushaf-reading-progress .mushaf-tooltip-ayah-navigation {
  --mushaf-chrome-control: clamp(22px, calc(var(--mushaf-page-width, 390px) * .075), 32px);
  flex: 0 0 auto; padding: 4px; border: 0; color: inherit; background: transparent;
}
[data-mushaf-stage-footer] { container: quran-footer / inline-size; }
@container quran-footer (max-width: 240px) {
  .mushaf-reading-progress { grid-template-rows: 24px 16px; row-gap: 0; padding-inline: 4px; align-content: center; }
  .mushaf-reading-progress [data-surah-progress] { grid-row: 1; }
  .mushaf-reading-progress [data-juz-progress] { grid-row: 2; grid-column: 1 / -1; font-size: 11px; }
}
@media (orientation: landscape) and (max-height: 480px) {
  html[data-mushaf-view="two-column"] .ayah-view { --mushaf-footer-height: 44px; }
}
html[data-mushaf-view="single-column"] [data-page-resizer] { display: none !important; }
:is(.mushaf-juz-trigger, .mushaf-page-trigger, .mushaf-surah-trigger, .mushaf-ayah-trigger,
.mushaf-surah-progress-value, [data-juz-progress], [data-slide-view-surah], [data-slide-view-juz], [data-slide-view-page]) {
  border-radius: 8px; transition: background-color 160ms ease, box-shadow 160ms ease;
}
:is(.mushaf-juz-trigger, .mushaf-page-trigger, .mushaf-surah-trigger, .mushaf-ayah-trigger,
.mushaf-surah-progress-value, [data-juz-progress], [data-slide-view-surah], [data-slide-view-juz], [data-slide-view-page]):focus-visible {
  outline: 2px solid #559b7c; outline-offset: 2px;
  background: rgba(21, 99, 70, .2);
}
@media (hover: hover) {
  html :is(.mushaf-juz-trigger, .mushaf-page-trigger, .mushaf-surah-trigger, .mushaf-ayah-trigger,
  .mushaf-surah-progress-value, [data-juz-progress], [data-slide-view-surah], [data-slide-view-juz], [data-slide-view-page]):hover {
    background: rgba(21, 99, 70, .2); box-shadow: inset 0 0 0 1px rgba(95, 160, 129, .4);
  }
  html[data-slide-view="open"] .mushaf-slide-view :is(.mushaf-juz-trigger, .mushaf-page-trigger, .mushaf-surah-trigger,
  .mushaf-ayah-trigger, .mushaf-surah-progress-value, [data-juz-progress], [data-slide-view-surah], [data-slide-view-juz], [data-slide-view-page]):hover {
    background: rgba(16, 81, 58, .78); color: #effaf3; box-shadow: inset 0 0 0 1px rgba(145, 197, 170, .5);
  }
}

/* Optional text Mushaf keeps the same page containers and certified page boundaries. */
.mushaf-page[data-mushaf-renderer="text"] .mushaf-page-image,
.mushaf-page[data-mushaf-renderer="text"] .mushaf-ayah-overlay,
.mushaf-page[data-mushaf-renderer="text"] .mushaf-focus-veil,
.mushaf-page[data-mushaf-renderer="text"] .mushaf-loading,
.mushaf-page[data-mushaf-renderer="text"] .mushaf-image-retry { display: none; }
.mushaf-page[data-mushaf-renderer="text"] .mushaf-canvas { aspect-ratio: auto !important; }
.mushaf-text-page {
  position: relative; inset: auto; box-sizing: border-box; width: 100%; padding: 6px 8px; overflow: visible;
  color: var(--c-ink); background: var(--c-paper);
  direction: rtl; font-family: var(--font-quran-arabic); font-weight: normal; scrollbar-width: none;
}
.mushaf-text-page::-webkit-scrollbar { display: none; }
.mushaf-text-page[hidden] { display: none; }
.mushaf-text-page :is(.mushaf-text-content, .mushaf-text-block, .mushaf-text-ayah, .mushaf-text-verse,
.mushaf-text-basmala) { font-family: var(--font-quran-arabic); }
.mushaf-text-content {
  --mushaf-text-line-height: 1.9em;
  box-sizing: border-box; width: 100%; padding: .3em .08em;
  font-size: 28px; line-height: var(--mushaf-text-line-height); text-align: justify; text-justify: inter-word;
  overflow-wrap: anywhere;
}
.mushaf-text-block { text-align: justify; text-align-last: center; }
.mushaf-text-surah-title {
  margin: .3em 0; padding: .2em .5em; border-block: 1px solid var(--c-line);
  font-family: var(--font-quran-arabic); font-size: 1em; font-weight: normal; line-height: inherit;
  text-align: center; color: var(--c-accent); background: var(--c-mint);
}
.mushaf-text-basmala { margin: .15em 0 .25em; text-align: center; font: inherit; }
.mushaf-text-ayah {
  --mushaf-text-highlight-fill: transparent; --mushaf-text-highlight-edge: transparent;
  display: inline; color: inherit; font: inherit; line-height: inherit;
  white-space: normal; text-decoration: none; cursor: pointer; border-radius: 0;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  /* Quran glyph metrics exceed the line box. Match paint to the shared line
     height so wrapped bands meet without painting over adjacent lines. */
  background-image: linear-gradient(to bottom, var(--mushaf-text-highlight-edge) 0 1px,
    var(--mushaf-text-highlight-fill) 1px calc(100% - 1px), var(--mushaf-text-highlight-edge) calc(100% - 1px) 100%),
    linear-gradient(var(--mushaf-text-highlight-edge), var(--mushaf-text-highlight-edge)),
    linear-gradient(var(--mushaf-text-highlight-edge), var(--mushaf-text-highlight-edge));
  background-size: 100% var(--mushaf-text-line-height), 1px var(--mushaf-text-line-height), 1px var(--mushaf-text-line-height);
  background-position: center, left center, right center; background-repeat: no-repeat;
  transition: opacity 140ms ease;
}
.mushaf-text-ornament-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.mushaf-text-page .mushaf-text-ayah-marker {
  position: relative; display: inline-block; box-sizing: border-box;
  width: 1.95em; max-width: calc(100% - .28em); height: 1.15em; margin-inline: .14em; vertical-align: -.16em;
  font: inherit; font-size: calc(2em / 3); line-height: 1; direction: ltr; unicode-bidi: isolate; pointer-events: none;
}
.mushaf-text-ayah-ornament { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mushaf-text-page .mushaf-text-ayah-marker[data-ayah-digits="3"] { width: 2.5em; }
.mushaf-text-page .mushaf-text-ayah-number {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  white-space: nowrap; font-family: Tahoma, Arial, sans-serif; font-size: .7em; font-weight: normal;
  font-variant-numeric: lining-nums tabular-nums; line-height: 1; direction: ltr; unicode-bidi: isolate;
}
.mushaf-text-page .mushaf-text-ayah:link,
.mushaf-text-page .mushaf-text-ayah:visited,
.mushaf-text-page .mushaf-text-ayah .mushaf-text-verse { color: var(--c-ink); }
.mushaf-text-ayah.is-selected { --mushaf-text-highlight-fill: rgba(var(--c-strong-rgb), .04); --mushaf-text-highlight-edge: rgba(var(--c-accent-rgb), .13); }
.mushaf-text-ayah:focus-visible { outline: none; --mushaf-text-highlight-edge: rgba(var(--c-accent-rgb), .2); }
.mushaf-text-ayah:not(.is-selected):focus-visible { --mushaf-text-highlight-fill: rgba(245, 198, 66, .03); --mushaf-text-highlight-edge: rgba(var(--c-danger-rgb), .075); }
html.is-mushaf-focus .mushaf-text-ayah:not(.is-selected) { opacity: .22; }
html.is-mushaf-focus .mushaf-text-ayah.is-selected { --mushaf-text-highlight-fill: rgba(var(--c-accent-rgb), .03); --mushaf-text-highlight-edge: rgba(var(--c-accent-rgb), .2); }
@media (hover: hover) {
  .mushaf-text-ayah:not(.is-selected):hover { --mushaf-text-highlight-fill: rgba(245, 198, 66, .03); --mushaf-text-highlight-edge: rgba(var(--c-danger-rgb), .075); }
}

/* Optional Hafs tajweed colors: inline spans preserve the Quran font and joining. */
[data-tajweed-surah] {
  --tajweed-muted: #8a8990; --tajweed-green: #168453; --tajweed-blue: #1976bd;
  --tajweed-iqlab: #219ab7; --tajweed-short-madd: #b17a17;
  --tajweed-medium-madd: #d47422; --tajweed-long-madd: #c33e4e; --tajweed-lazim: #9d3577;
}
.mushaf-slide-view [data-tajweed-surah] {
  --tajweed-muted: #aab3b7; --tajweed-green: #62d29e; --tajweed-blue: #75bcff;
  --tajweed-iqlab: #62d6e8; --tajweed-short-madd: #edc36c;
  --tajweed-medium-madd: #ffab68; --tajweed-long-madd: #ff7b89; --tajweed-lazim: #eda1da;
}
[data-tajweed-rule] { font: inherit; line-height: inherit; letter-spacing: inherit; }
[data-tajweed-rule="hamzat_wasl"], [data-tajweed-rule="lam_shamsiyyah"],
[data-tajweed-rule="silent"], [data-tajweed-rule="idghaam_no_ghunnah"],
[data-tajweed-rule="idghaam_mutajanisayn"], [data-tajweed-rule="idghaam_mutaqaribayn"] { color: var(--tajweed-muted); }
[data-tajweed-rule="ghunnah"], [data-tajweed-rule="ikhfa"], [data-tajweed-rule="ikhfa_shafawi"],
[data-tajweed-rule="idghaam_ghunnah"], [data-tajweed-rule="idghaam_shafawi"] { color: var(--tajweed-green); }
[data-tajweed-rule="iqlab"] { color: var(--tajweed-iqlab); }
[data-tajweed-rule="qalqalah"] { color: var(--tajweed-blue); }
[data-tajweed-rule="madd_2"] { color: var(--tajweed-short-madd); }
[data-tajweed-rule="madd_246"] { color: var(--tajweed-medium-madd); }
[data-tajweed-rule="madd_munfasil"], [data-tajweed-rule="madd_muttasil"] { color: var(--tajweed-long-madd); }
[data-tajweed-rule="madd_6"] { color: var(--tajweed-lazim); }
[data-tajweed-toggle]:disabled { opacity: .5; cursor: default; }
.tajweed-setting-row { box-sizing: border-box; min-width: 0; max-width: 100%; }
.tajweed-setting-copy { display: grid; gap: 3px; text-align: start; min-width: 0; flex: 1; }
.tajweed-setting-copy small { font-size: .68em; line-height: 1.4; }
.tajweed-setting-row:not(.is-unavailable) .tajweed-setting-copy small { display: none; }
.tajweed-setting-title { display: flex; align-items: center; gap: 4px; }
.tajweed-setting-row.is-unavailable .tajweed-setting-title > [data-i18n] { opacity: .55; }
.tajweed-setting-row .tajweed-toggle-control {
  flex: 0 0 auto; display: grid; place-items: center; width: 36px; min-height: 28px;
  padding: 0; margin: 0; border: 0; background: transparent; border-radius: 6px;
}
.tajweed-setting-row .tajweed-guide-trigger {
  display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px;
  padding: 3px; margin: 0; border: 0; border-radius: 50%; color: var(--c-accent);
  background: transparent; cursor: pointer; touch-action: manipulation;
}
.tajweed-guide-trigger svg { width: 22px; height: 22px; }
.tajweed-guide-trigger:hover { background: rgba(var(--c-accent-rgb), .08); }
.tajweed-guide-trigger:focus-visible, .tajweed-toggle-control:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.tajweed-guide-dialog {
  box-sizing: border-box; width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 18px; border: 1px solid var(--c-line); border-radius: 18px; margin: auto;
  color: var(--c-ink); background: var(--c-paper); box-shadow: 0 16px 60px #10251b30;
  font-family: inherit; font-size: 16px; overflow-y: auto; scrollbar-width: none;
}
.tajweed-guide-dialog::-webkit-scrollbar { display: none; }
.tajweed-guide-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tajweed-guide-dialog h2 { margin: 0; font: inherit; font-weight: 700; font-size: 1.08em; }
.tajweed-guide-dialog [data-tajweed-guide-close] {
  display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px;
  padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font: inherit; font-size: 22px;
}
.tajweed-guide-intro { font-size: .8em; line-height: 1.6; margin: 8px 0 12px; color: var(--c-muted); }
.tajweed-guide-list { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.tajweed-guide-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.tajweed-guide-swatch { display: block; width: 16px; height: 16px; margin-top: 4px; border: 1px solid #10251b18; border-radius: 6px; }
.tajweed-guide-list strong { display: block; font-size: .85em; line-height: 1.5; }
.tajweed-guide-list [data-tajweed-guide-description] { display: block; font-size: .78em; line-height: 1.6; }

/* One backdrop treatment for full dialogs and anchored popup menus. */
dialog::backdrop, [data-popup-backdrop]::backdrop {
  background: rgba(16, 37, 27, .05);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.settings-popover::backdrop, [data-dialog-slide-view-picker]::backdrop {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.md, .mushaf-tooltip-source-dialog, .reciter-selector-backdrop {
  background: rgba(16, 37, 27, .05);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
:where([data-popup-backdrop]) { inset: auto; margin: 0; }
[data-popup-backdrop][data-popup-positioned]:popover-open {
  position: fixed !important; inset: auto !important;
  top: var(--popup-top) !important; left: var(--popup-left) !important;
  box-sizing: border-box; width: var(--popup-width) !important;
  margin: 0 !important; transform: none !important;
}
.md[data-popup-backdrop], .mushaf-tooltip-source-dialog[data-popup-backdrop] {
  width: 100%; height: 100%; border: 0;
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
}
body:has([data-reciter-popover][data-popup-backdrop]) .reciter-selector-backdrop {
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.mushaf-repeat-enable { box-sizing: border-box; width: 100%; direction: rtl; justify-content: space-between; }
.mushaf-repeat-enable > span:first-child { text-align: right; }
[data-loop-repeat-fields][hidden], [data-loop-stop-fields][hidden] { display: none !important; }
